function t(t,e,n,a){var o,i=arguments.length,r=i<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,a);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(i<3?o(r):i>3?o(e,n,r):o(e,n))||r);return i>3&&r&&Object.defineProperty(e,n,r),r}"function"==typeof SuppressedError&&SuppressedError;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const e=globalThis,n=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),o=new WeakMap;let i=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&o.set(e,t))}return t}toString(){return this.cssText}};const r=(t,...e)=>{const n=1===t.length?t[0]:e.reduce((e,n,a)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new i(n,t,a)},s=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new i("string"==typeof t?t:t+"",void 0,a))(e)})(t):t,{is:l,defineProperty:c,getOwnPropertyDescriptor:d,getOwnPropertyNames:u,getOwnPropertySymbols:h,getPrototypeOf:g}=Object,m=globalThis,p=m.trustedTypes,y=p?p.emptyScript:"",_=m.reactiveElementPolyfillSupport,f=(t,e)=>t,v={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},w=(t,e)=>!l(t,e),b={attribute:!0,type:String,converter:v,reflect:!1,useDefault:!1,hasChanged:w};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */Symbol.metadata??=Symbol("metadata"),m.litPropertyMetadata??=new WeakMap;let A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=b){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),a=this.getPropertyDescriptor(t,n,e);void 0!==a&&c(this.prototype,t,a)}}static getPropertyDescriptor(t,e,n){const{get:a,set:o}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:a,set(e){const i=a?.call(this);o?.call(this,e),this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const t=this.properties,e=[...u(t),...h(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,a)=>{if(n)t.adoptedStyleSheets=a.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const n of a){const a=document.createElement("style"),o=e.litNonce;void 0!==o&&a.setAttribute("nonce",o),a.textContent=n.cssText,t.appendChild(a)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){const n=this.constructor.elementProperties.get(t),a=this.constructor._$Eu(t,n);if(void 0!==a&&!0===n.reflect){const o=(void 0!==n.converter?.toAttribute?n.converter:v).toAttribute(e,n.type);this._$Em=t,null==o?this.removeAttribute(a):this.setAttribute(a,o),this._$Em=null}}_$AK(t,e){const n=this.constructor,a=n._$Eh.get(t);if(void 0!==a&&this._$Em!==a){const t=n.getPropertyOptions(a),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:v;this._$Em=a;const i=o.fromAttribute(e,t.type);this[a]=i??this._$Ej?.get(a)??i,this._$Em=null}}requestUpdate(t,e,n,a=!1,o){if(void 0!==t){const i=this.constructor;if(!1===a&&(o=this[t]),n??=i.getPropertyOptions(t),!((n.hasChanged??w)(o,e)||n.useDefault&&n.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:a,wrapped:o},i){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),!0!==o||void 0!==i)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),!0===a&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t){const{wrapped:t}=n,a=this[e];!0!==t||this._$AL.has(e)||void 0===a||this.C(e,void 0,n,a)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[f("elementProperties")]=new Map,A[f("finalized")]=new Map,_?.({ReactiveElement:A}),(m.reactiveElementVersions??=[]).push("2.1.2");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const x=globalThis,P=t=>t,E=x.trustedTypes,L=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,N="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,T="?"+C,S=`<${T}>`,M=document,I=()=>M.createComment(""),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,D="[ \t\n\f\r]",k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,z=/>/g,R=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,G=/"/g,H=/^(?:script|style|textarea|title)$/i,U=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),W=U(1),Z=U(2),Q=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),F=new WeakMap,X=M.createTreeWalker(M,129);function J(t,e){if(!B(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(e):e}class K{constructor({strings:t,_$litType$:e},n){let a;this.parts=[];let o=0,i=0;const r=t.length-1,s=this.parts,[l,c]=((t,e)=>{const n=t.length-1,a=[];let o,i=2===e?"<svg>":3===e?"<math>":"",r=k;for(let e=0;e<n;e++){const n=t[e];let s,l,c=-1,d=0;for(;d<n.length&&(r.lastIndex=d,l=r.exec(n),null!==l);)d=r.lastIndex,r===k?"!--"===l[1]?r=V:void 0!==l[1]?r=z:void 0!==l[2]?(H.test(l[2])&&(o=RegExp("</"+l[2],"g")),r=R):void 0!==l[3]&&(r=R):r===R?">"===l[0]?(r=o??k,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,s=l[1],r=void 0===l[3]?R:'"'===l[3]?G:j):r===G||r===j?r=R:r===V||r===z?r=k:(r=R,o=void 0);const u=r===R&&t[e+1].startsWith("/>")?" ":"";i+=r===k?n+S:c>=0?(a.push(s),n.slice(0,c)+N+n.slice(c)+C+u):n+C+(-2===c?e:u)}return[J(t,i+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),a]})(t,e);if(this.el=K.createElement(l,n),X.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(a=X.nextNode())&&s.length<r;){if(1===a.nodeType){if(a.hasAttributes())for(const t of a.getAttributeNames())if(t.endsWith(N)){const e=c[i++],n=a.getAttribute(t).split(C),r=/([.?@])?(.*)/.exec(e);s.push({type:1,index:o,name:r[2],strings:n,ctor:"."===r[1]?nt:"?"===r[1]?at:"@"===r[1]?ot:et}),a.removeAttribute(t)}else t.startsWith(C)&&(s.push({type:6,index:o}),a.removeAttribute(t));if(H.test(a.tagName)){const t=a.textContent.split(C),e=t.length-1;if(e>0){a.textContent=E?E.emptyScript:"";for(let n=0;n<e;n++)a.append(t[n],I()),X.nextNode(),s.push({type:2,index:++o});a.append(t[e],I())}}}else if(8===a.nodeType)if(a.data===T)s.push({type:2,index:o});else{let t=-1;for(;-1!==(t=a.data.indexOf(C,t+1));)s.push({type:7,index:o}),t+=C.length-1}o++}}static createElement(t,e){const n=M.createElement("template");return n.innerHTML=t,n}}function q(t,e,n=t,a){if(e===Q)return e;let o=void 0!==a?n._$Co?.[a]:n._$Cl;const i=O(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),void 0===i?o=void 0:(o=new i(t),o._$AT(t,n,a)),void 0!==a?(n._$Co??=[])[a]=o:n._$Cl=o),void 0!==o&&(e=q(t,o._$AS(t,e.values),o,a)),e}class ${constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,a=(t?.creationScope??M).importNode(e,!0);X.currentNode=a;let o=X.nextNode(),i=0,r=0,s=n[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new tt(o,o.nextSibling,this,t):1===s.type?e=new s.ctor(o,s.name,s.strings,this,t):6===s.type&&(e=new it(o,this,t)),this._$AV.push(e),s=n[++r]}i!==s?.index&&(o=X.nextNode(),i++)}return X.currentNode=M,a}p(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,a){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),O(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==Q&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>B(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Y&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:n}=t,a="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=K.createElement(J(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(e);else{const t=new $(a,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new K(t)),e}k(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,a=0;for(const o of t)a===e.length?e.push(n=new tt(this.O(I()),this.O(I()),this,this.options)):n=e[a],n._$AI(o),a++;a<e.length&&(this._$AR(n&&n._$AB.nextSibling,a),e.length=a)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=P(t).nextSibling;P(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,a,o){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Y}_$AI(t,e=this,n,a){const o=this.strings;let i=!1;if(void 0===o)t=q(this,t,e,0),i=!O(t)||t!==this._$AH&&t!==Q,i&&(this._$AH=t);else{const a=t;let r,s;for(t=o[0],r=0;r<o.length-1;r++)s=q(this,a[n+r],e,r),s===Q&&(s=this._$AH[r]),i||=!O(s)||s!==this._$AH[r],s===Y?t=Y:t!==Y&&(t+=(s??"")+o[r+1]),this._$AH[r]=s}i&&!a&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class nt extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}class at extends et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Y)}}class ot extends et{constructor(t,e,n,a,o){super(t,e,n,a,o),this.type=5}_$AI(t,e=this){if((t=q(this,t,e,0)??Y)===Q)return;const n=this._$AH,a=t===Y&&n!==Y||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Y&&(n===Y||a);a&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const rt={I:tt},st=x.litHtmlPolyfillSupport;st?.(K,tt),(x.litHtmlVersions??=[]).push("3.3.2");const lt=(t,e,n)=>{const a=n?.renderBefore??e;let o=a._$litPart$;if(void 0===o){const t=n?.renderBefore??null;a._$litPart$=o=new tt(e.insertBefore(I(),t),t,void 0,n??{})}return o._$AI(t),o
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */},ct=globalThis;let dt=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Q}};dt._$litElement$=!0,dt.finalized=!0,ct.litElementHydrateSupport?.({LitElement:dt});const ut=ct.litElementPolyfillSupport;ut?.({LitElement:dt}),(ct.litElementVersions??=[]).push("4.2.2");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const ht=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});let mt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const{I:pt}=rt,yt=t=>t,_t=(t,e)=>void 0!==t?._$litType$,ft=()=>document.createComment(""),vt=(t,e,n)=>{const a=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=a.insertBefore(ft(),o),i=a.insertBefore(ft(),o);n=new pt(e,i,t,t.options)}else{const e=n._$AB.nextSibling,i=n._$AM,r=i!==t;if(r){let e;n._$AQ?.(t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==i._$AU&&n._$AP(e)}if(e!==o||r){let t=n._$AA;for(;t!==e;){const e=yt(t).nextSibling;yt(a).insertBefore(t,o),t=e}}}return n},wt=(t,e,n=t)=>(t._$AI(e,n),t),bt={},At=(t,e=bt)=>t._$AH=e,xt=t=>t._$AH,Pt=t=>{t._$AR(),t._$AA.remove()},Et=t=>(t=>null!=t?._$litType$?.h)(t)?t._$litType$.h:t.strings,Lt=gt(class extends mt{constructor(t){super(t),this.et=new WeakMap}render(t){return[t]}update(t,[e]){const n=_t(this.it)?Et(this.it):null,a=_t(e)?Et(e):null;if(null!==n&&(null===a||n!==a)){const e=xt(t).pop();let a=this.et.get(n);if(void 0===a){const t=document.createDocumentFragment();a=lt(Y,t),a.setConnected(!1),this.et.set(n,a)}At(a,[e]),vt(a,void 0,e)}if(null!==a){if(null===n||n!==a){const e=this.et.get(a);if(void 0!==e){const n=xt(e).pop();(t=>{t._$AR()})(t),vt(t,void 0,n),At(t,[n])}}this.it=e}else this.it=void 0;return this.render(e)}}),Nt=gt(class extends mt{constructor(){super(...arguments),this.key=Y}render(t,e){return this.key=t,e}update(t,[e,n]){return e!==this.key&&(At(t),this.key=e),n}}),Ct=t=>(e,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)},Tt={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:w},St=(t=Tt,e,n)=>{const{kind:a,metadata:o}=n;let i=globalThis.litPropertyMetadata.get(o);if(void 0===i&&globalThis.litPropertyMetadata.set(o,i=new Map),"setter"===a&&((t=Object.create(t)).wrapped=!0),i.set(n.name,t),"accessor"===a){const{name:a}=n;return{set(n){const o=e.get.call(this);e.set.call(this,n),this.requestUpdate(a,o,t,!0,n)},init(e){return void 0!==e&&this.C(a,void 0,t,e),e}}}if("setter"===a){const{name:a}=n;return function(n){const o=this[a];e.call(this,n),this.requestUpdate(a,o,t,!0,n)}}throw Error("Unsupported decorator location: "+a)};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function Mt(t){return(e,n)=>"object"==typeof n?St(t,e,n):((t,e,n)=>{const a=e.hasOwnProperty(n);return e.constructor.createProperty(n,t),a?Object.getOwnPropertyDescriptor(e,n):void 0})(t,e,n)}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function It(t,e){return(e,n,a)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,n),n))(e,n,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}function Ot(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Bt,Dt;const kt=r(Bt||(Bt=Ot(["\n\t.container {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t\tpadding: 5px;\n\t}\n\n\t.card {\n\t\tborder-radius: var(--ha-card-border-radius, 10px);\n\t\tbox-shadow: var(\n\t\t\t--ha-card-box-shadow,\n\t\t\t0px 0px 0px 1px rgba(0, 0, 0, 0.12),\n\t\t\t0px 0px 0px 0px rgba(0, 0, 0, 0.12),\n\t\t\t0px 0px 0px 0px rgba(0, 0, 0, 0.12)\n\t\t);\n\t\tbackground: var(--ha-card-background, var(--card-background-color, white));\n\t\tborder-width: var(--ha-card-border-width);\n\t\tpadding: 0px;\n\t}\n\n\ttext {\n\t\ttext-anchor: middle;\n\t\tdominant-baseline: middle;\n\t}\n\n\t.left-align {\n\t\ttext-anchor: start;\n\t}\n\t.right-align {\n\t\ttext-anchor: end;\n\t}\n\t.st1 {\n\t\tfill: #ff9b30;\n\t}\n\t.st2 {\n\t\tfill: #f3b3ca;\n\t}\n\t.st3 {\n\t\tfont-size: 9px;\n\t}\n\t.st4 {\n\t\tfont-size: 14px;\n\t}\n\t.st5 {\n\t\tfill: #969696;\n\t}\n\t.st6 {\n\t\tfill: #5fb6ad;\n\t}\n\t.st7 {\n\t\tfill: #5490c2;\n\t}\n\t.st8 {\n\t\tfont-weight: 500;\n\t}\n\t.st9 {\n\t\tfill: #959595;\n\t}\n\t.st10 {\n\t\tfont-size: 16px;\n\t}\n\t.st11 {\n\t\tfill: transparent;\n\t}\n\t.st12 {\n\t\tdisplay: none;\n\t}\n\t.st13 {\n\t\tfont-size: 22px;\n\t}\n\t.st14 {\n\t\tfont-size: 12px;\n\t}\n\t.remaining-energy {\n\t\tfont-size: 9px;\n\t}\n"]))),Vt=t=>W(Dt||(Dt=Ot(["\n\t<style>\n\t\t.essload1-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\n\t\t.essload2-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\n\t\t.essload1-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.essload2-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.essload3-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.essload4-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.essload5-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.essload6-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.grid-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 64px;\n\t\t}\n\n\t\t.essload1-icon-full {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 36px;\n\t\t}\n\n\t\t.aux-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 70px;\n\t\t}\n\n\t\t.aux-small-icon-1 {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 24px;\n\t\t}\n\n\t\t.aux-small-icon-2 {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 24px;\n\t\t}\n\n\t\t.aux-off-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 70px;\n\t\t}\n\n\t\t.nonessload1-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\n\t\t.nonessload2-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\n\t\t.nonessload3-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\n\t\t.noness-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 70px;\n\t\t}\n\n\t\t.grid-icon-small {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\t</style>\n"])),t.dynamicColourEssentialLoad1,t.dynamicColourEssentialLoad2,t.dynamicColourEssentialLoad1,t.dynamicColourEssentialLoad2,t.dynamicColourEssentialLoad3,t.dynamicColourEssentialLoad4,t.dynamicColourEssentialLoad5,t.dynamicColourEssentialLoad6,t.customGridIconColour,t.dynamicColourEssentialLoad1,t.auxDynamicColour,t.auxDynamicColourLoad1,t.auxDynamicColourLoad2,t.auxOffColour,t.dynamicColourNonEssentialLoad1,t.dynamicColourNonEssentialLoad2,t.dynamicColourNonEssentialLoad3,t.gridColour,t.customGridIconColour);var zt,Rt,jt;!function(t){t.Azzurro="azzurro",t.CESBatteryBox="ces-battery-box",t.Chisage="chisage",t.Deye="deye",t.DeyeNew="deye-new",t.E3dc="e3dc",t.Easun="easun",t.Ferroamp="ferroamp",t.FoxESS="foxess",t.Fronius="fronius",t.Goodwe="goodwe",t.GoodweGridMode="goodwe_gridmode",t.Growatt="growatt",t.Huawei="huawei",t.Linky="linky",t.Lux="lux",t.MakeSkyBlue="makeskyblue",t.MPPSolar="mppsolar",t.PowMr="powmr",t.Sigenergy="sigenergy",t.SMASolar="smasolar",t.Sofar="sofar",t.SolarEdge="solaredge",t.Solax="solax",t.Solis="solis",t.Solinteg="solinteg",t.SRNEHES="srne-hes",t.Sungrow="sungrow",t.Sunsynk="sunsynk",t.Victron="victron"}(zt||(zt={})),function(t){t.Compact="compact",t.Lite="lite",t.Full="full"}(Rt||(Rt={})),function(t){t.Energy="energy",t.Power="power",t.No="no"}(jt||(jt={}));var Gt={cardstyle:"lite",wide:!1,large_font:!1,show_solar:!0,show_battery:!0,show_grid:!0,center_no_grid:!1,card_height:"100%",card_width:"100%",decimal_places:2,decimal_places_energy:1,dynamic_line_width:!0,max_line_width:4,min_line_width:1,inverter:{modern:!0,colour:"#9e9e9e",autarky:"power",model:zt.Sunsynk,auto_scale:!0,three_phase:!1,navigate:"",label_autarky:"",label_ratio:""},battery:{count:1,energy:0,shutdown_soc:20,soc_end_of_charge:100,invert_power:!1,hide_soc:!1,colour:"#ffc0cb",show_daily:!1,show_remaining_energy:!0,remaining_energy_to_shutdown:!1,animation_speed:6,max_power:4500,show_absolute:!1,auto_scale:!0,dynamic_colour:!0,linear_gradient:!0,animate:!0,path_threshold:100,navigate:"",invert_flow:!1,label_daily_chrg:"",label_daily_dischrg:""},battery2:{energy:0,shutdown_soc:20,soc_end_of_charge:100,invert_power:!1,hide_soc:!1,colour:"#ffc0cb",show_remaining_energy:!0,remaining_energy_to_shutdown:!1,show_absolute:!1,auto_scale:!0,dynamic_colour:!0,linear_gradient:!0,animate:!0,path_threshold:100,navigate:"",invert_flow:!1},solar:{colour:"#ffa500",show_daily:!1,mppts:2,animation_speed:9,max_power:8e3,pv1_name:"",pv2_name:"",pv3_name:"",pv4_name:"",pv5_name:"",pv6_name:"",auto_scale:!0,display_mode:1,dynamic_colour:!0,efficiency:3,off_threshold:10,navigate:"",invert_flow:!1},load:{colour:"#5fb6ad",off_colour:"#9e9e9e",dynamic_colour:!0,dynamic_icon:!0,aux_dynamic_colour:!0,off_threshold:0,show_daily:!1,show_aux:!1,show_daily_aux:!1,invert_aux:!1,invert_load:!1,show_absolute_aux:!1,animation_speed:4,max_power:8e3,aux_name:"",aux_daily_name:"",aux_type:"default",additional_loads:0,aux_loads:0,aux_load1_name:"",aux_load2_name:"",essential_name:"",load1_icon:"default",load2_icon:"default",load1_name:"",load2_name:"",load3_name:"",load4_name:"",load5_name:"",load6_name:"",auto_scale:!0,path_threshold:100,navigate:"",invert_flow:!1,label_daily_load:""},grid:{colour:"#5490c2",grid_name:"",label_daily_grid_buy:"",label_daily_grid_sell:"",show_daily_buy:!1,show_daily_sell:!1,show_nonessential:!0,nonessential_icon:"default",nonessential_name:"",additional_loads:0,load1_name:"",load2_name:"",load3_name:"",load1_icon:"default",load2_icon:"default",load3_icon:"default",invert_grid:!1,animation_speed:8,max_power:8e3,auto_scale:!0,energy_cost_decimals:2,show_absolute:!1,off_threshold:0,navigate:"",invert_flow:!1}};const Ht=[0,1,2,3,4,5,6],Ut=[0,1,2,3],Wt=[!0,!1],Zt=[!0,!1],Qt=[0,1,2],Yt=["off","0","off-grid","off grid","offgrid"],Ft=["on","1","on-grid","on grid","ongrid"],Xt="sunsynk-content-card-editor";var Jt,Kt,qt,$t,te,ee;!function(t){t.DATE="date",t.ENUM="enum",t.TIMESTAMP="timestamp",t.APPARENT_POWER="apparent_power",t.ATMOSPHERIC_PRESSURE="atmospheric_pressure",t.BATTERY="battery",t.CO="carbon_monoxide",t.CO2="carbon_dioxide",t.CURRENT="current",t.ENERGY="energy",t.ENERGY_STORAGE="energy_storage",t.FREQUENCY="frequency",t.IRRADIANCE="irradiance",t.MONETARY="monetary",t.POWER_FACTOR="power_factor",t.POWER="power",t.REACTIVE_POWER="reactive_power",t.TEMPERATURE="temperature",t.VOLTAGE="voltage"}(Jt||(Jt={})),function(t){t.WATT="W",t.KILO_WATT="kW",t.MEGA_WATT="MW",t.BTU_PER_HOUR="BTU/h"}(Kt||(Kt={})),function(t){t.GIGA_JOULE="GJ",t.KILO_WATT_HOUR="kWh",t.MEGA_JOULE="MJ",t.MEGA_WATT_HOUR="MWh",t.WATT_HOUR="Wh"}(qt||(qt={})),function(t){t.MILLIAMPERE="mA",t.AMPERE="A"}($t||($t={})),function(t){t.MILLIVOLT="mV",t.VOLT="V"}(te||(te={})),function(t){t.PERCENTAGE="%"}(ee||(ee={}));const ne={[qt.WATT_HOUR]:[{threshold:1e6,divisor:1e6,targetUnit:qt.MEGA_WATT_HOUR},{threshold:1e3,divisor:1e3,targetUnit:qt.KILO_WATT_HOUR,decimal:1}],[qt.KILO_WATT_HOUR]:[{threshold:1e3,divisor:1e3,targetUnit:qt.MEGA_WATT_HOUR,decimal:2}],[qt.MEGA_WATT_HOUR]:[],[qt.GIGA_JOULE]:[{threshold:1e3,divisor:1e3,targetUnit:qt.MEGA_JOULE}],[qt.MEGA_JOULE]:[],[Kt.WATT]:[{threshold:1e6,divisor:1e6,targetUnit:Kt.MEGA_WATT},{threshold:1e3,divisor:1e3,targetUnit:Kt.KILO_WATT}],[Kt.KILO_WATT]:[{threshold:1e3,divisor:1e3,targetUnit:Kt.MEGA_WATT}],[Kt.MEGA_WATT]:[],[Kt.BTU_PER_HOUR]:[]};var ae={description:"Una tarjeta de Home Assistant per emular el flxue d'energoa Sunsynk que es mostra a la pantalla de l'inversor",version:"Versió",runtime_to:"TEMPS FUNCIONAMENT FINS",battery_floating:"BATERIA EN FLOTACIÓ",charge:"CÀRREGA",to:"A",daily_load:"CÀRREGA DIÀRIA",daily_aux:"AUXILIAR DIARI",daily_grid_buy:"COMPRA DIÀRIA XARXA",daily_grid_sell:"VENDA DIÀRIA XARXA",daily_solar:"SOLAR DIARI",daily_solar_left:"SOLAR DIARI / RESTA AVUI",total_solar_generation:"SOLAR DIARI / TOTAL SOLAR",daily_charge:"CÀRREGA DIÀRIA",daily_discharge:"DESCÀRREGA DIÀRIA",ratio:"Relació",timer_off:"Temporitzador apagat",timer_on:"Temporitzador encès",priority_batt:"Prioritat de la Bateria",priority_load:"Prioritat de la Càrrega",nonessential_name:"No Essencial",aux_name:"Auxiliar",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Esencial",autarky:"Autarquia",discharging:"Descàrrega",charging:"Càrrega",waiting:"Esperant",standby:"En espera",no_battery:"Sense bateria",selftest:"Prova automàtica",normal:"Normal",alarm:"Alarma",fault:"Avaria",days:"dies",hrs:"hrs",min:"min",flash:"Flash",check:"Comprova",idle:"Inactiu",exporting:"Exportació",importing:"Importació",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorció",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"Control Extern",recharge:"Recàrrega",scheduledrecharge:"Recàrrega Programada"},oe={battery:{bat:"No s'han definit atributs de la bateria",energy:"Si us plau, inclou l'atribut d'energia de la bateria i el seu valor a Wh, per exemple, 5.32 Energia de la bateria: 5320",shutdown_soc:"Si us plau, inclou l'atribut shutdown_soc de la bateria i el seu valor, per exemple shutdown_soc: 20",full_capacity:"La capacitat completa ha d'estar entre 80 i 100",empty_capacity:"La capacitat buida ha de ser <= 40",show_daily:"Si us plau, inclou els atributs day_battery_charge_70 i day_battery_discharge_71 i les IDs de les entitats"},solar:{sol:"No s'han definit cap atribut solar",mppts:"Si us plau, inclou l'atribut mppts solars i el seu valor; 1,2,3 o 4, per exemple, mppts: 2",show_daily:"Si us plau, inclou l'atribut day_pv_energy_108 i la ID de l'entitat"},grid:{show_daily:"Si us plau, inclou els atributs day_grid_import_76 i day_grid_export_77 i les IDs de les entitats"},essential_power:"L'atribut essential_power està configurat com a cap. Inclou l'atribut inverter_power_175 i l'ID de l'entitat perquè la targeta pugui calcular aquest valor.",nonessential_power:"L'atribut nonessential_power està configurat com a cap. Inclou l'atribut grid_power_169 i l'ID de l'entitat perquè la targeta pugui calcular aquest valor.",missing_entity:"Si us plau, inclou l'atribut i la ID de l'entitat"},ie={title:"Títol",title_colour:"Color Títol",title_size:"Mida Títol (px)",decimal_places:"Posicions Decimals",decimal_places_energy:"Posicions Decimals (Energia Diaria)",card_height:"Alçada Targeta (px)",card_width:"Amplada Targeta (px)",model:"Model",wide:"Wide Screen Layout",autarky:"Autarquia",cardstyle:"Estil Targeta",large_font:"Font Gran",modern:"Modern",show_solar:"Mostra Solar",show_battery:"Mostra Bateria",show_grid:"Mostra Xarxa",show_aux:"Mostra Aux",dynamic_line_width:"Gruix Línia Dinàmic",max_line_width:"Màx. Gruix Línia",min_line_width:"Min Gruix Línia",solar:"Solar",mppts:"MPPTs",show_daily:"Mostra Diari",show_daily_aux:"Mostra Diari Aux",animation_speed:"Anim. Velocitat",max_power:"Màxima Potència",pv1_max_power:"Màxima Potència PV1",pv2_max_power:"Màxima Potència PV2",pv3_max_power:"Màxima Potència PV3",pv4_max_power:"Màxima Potència PV4",pv5_max_power:"Màxima Potència PV5",pv6_max_power:"Màxima Potència PV6",pv1_name:"Nom PV1",pv2_name:"Nom PV2",pv3_name:"Nom PV3",pv4_name:"Nom PV4",pv5_name:"Nom PV5",pv6_name:"Nom PV6",display_mode:"Mode Visualització",efficiency:"Mode d'Eficiència",battery:"Bateria",load1_name:"Nom Càrrega 1",load2_name:"Nom Càrrega 2",load3_name:"Nom Càrrega 3",load4_name:"Nom Càrrega 4",load1_icon:"Icona Càrrega 1",load2_icon:"Icona Càrrega 2",load3_icon:"Icona Càrrega 3",load4_icon:"Icona Càrrega 4",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Nom Càrrega Aux 1",aux_load2_name:"Nom Càrrega Aux 2",aux_load1_icon:"Icona Càrrega Aux 1",aux_load2_icon:"Icona Càrrega Aux 2",show_daily_buy:"Mostra Compra diària",show_daily_sell:"Mostra Venta diària",no_grid_colour:"Xarxa Sense Color",grid_off_colour:"Color Xarxa Caiguda",grid_name:"Nom Xarxa",colour:"Color",charge_colour:"Color Càrrega",linear_gradient:"Gradient Lineal",animate:"Gradient Lineal Animat",aux_colour:"Color",aux_off_colour:"Color Caigut",off_threshold:"Umbral de Caiguda",invert_grid:"Invertir Valors",invert_load:"Invertir Valors",shutdown_soc:"SOC d'Apagada",shutdown_soc_offgrid:"SOC d'Apagada (Sense Xarxa)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energia",auto_scale:"Escala Automàtica",three_phase:"Trifàsic",dynamic_colour:"Color Dinàmic",aux_dynamic_colour:"Color Dinàmic Aux",dynamic_icon:"Icona Dinàmica",invert_power:"Invertir Potència",show_absolute:"Mostra Absoluts",hide_soc:"Oculta SOC",invert_aux:"Invertir Aux",show_absolute_aux:"Mostra Absoluts",show_nonessential:"Mostra No Essencial",aux_name:"Nom Aux",aux_daily_name:"Nom Diari Aux",aux_type:"Icona Aux",aux_loads:"Càrregues Aux",essential_name:"Nom Essencials",additional_loads:"Càrregues addicionals",export_colour:"Color Exportació",nonessential_name:"Nom No Essencials",nonessential_icon:"Icona No Essencials",energy_cost_decimals:"Decimals Cost Energia",show_remaining_energy:"Mostra Energia Romanent",path_threshold:"Umbral Ruta",label_daily_grid_buy:"Etiqueta Compra Diària Xarxa",label_daily_grid_sell:"Etiqueta Venta Diària Xarxa",invert_flow:"Invert Flow",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Opcions Títol",general:"Opcions Generals",inverter:"Opcions Inversor",solar:"Opcions Solar",battery:"Opcions Bateria",grid:"Opcions Xarxa",load:"Opcions Càrrega",entities:"Entitats",aux:"Opcions Aux",energy:"Entitats Energia",bat:"Entitats Bateria",sol:"Entitats Solar",inv:"Entitats Inversor",ld:"Entitats Càrrega",gri:"Entitats Xarxa",sensor:"Sensors Opcionals",bat1:"Battery 1",bat2:"Battery 2"}},re={common:ae,errors:oe,config:ie},se={description:"一个用于模拟逆变器屏幕上显示的Sunsynk功率流的Home Assistant卡片",version:"版本",runtime_to:"运行时间至",battery_floating:"电池浮充",charge:"充电",to:"至",daily_load:"每日负载",daily_aux:"每日辅助",daily_grid_buy:"每日电网购电",daily_grid_sell:"每日电网售电",daily_solar:"每日太阳能",daily_solar_left:"每日太阳能 / 今日剩余",total_solar_generation:"每日太阳能 / 总太阳能",daily_charge:"每日充电",daily_discharge:"每日放电",ratio:"比例",timer_off:"定时器关闭",timer_on:"定时器开启",priority_batt:"优先电池",priority_load:"优先负载",nonessential_name:"非必需",aux_name:"辅助",pv1_name:"光伏1",pv2_name:"光伏2",pv3_name:"光伏3",pv4_name:"光伏4",pv5_name:"光伏5",pv6_name:"光伏6",essential:"必需",autarky:"自给自足",discharging:"放电中",charging:"充电中",waiting:"等待中",standby:"待机",no_battery:"无电池",selftest:"自检",normal:"正常",alarm:"警报",fault:"故障",days:"天",hrs:"小时",min:"分钟",flash:"闪烁",check:"检查",idle:"空闲",exporting:"导出",importing:"导入",ongrid:"并网",offgrid:"离网",normalstop:"正常停止",shutdown:"关机",offline:"离线",running:"运行中",sleepmode:"睡眠模式",grid_name:"电网",limit:"限制",off:"关闭",lowpower:"低功率",bulk:"批量",absorption:"吸收",float:"浮充",storage:"存储",equalize:"均衡",passthru:"直通",inverting:"逆变",powerassist:"功率辅助",powersupply:"电源供应",sustain:"维持",externalcontrol:"外部控制",recharge:"充电",scheduledrecharge:"定时充电"},le={battery:{bat:"未定义电池属性",energy:"请包含电池能量属性和值，单位为Wh，例如 5.32 电池能量：5320",shutdown_soc:"请包含电池 shutdown_soc 属性和值，例如 shutdown_soc: 20",full_capacity:"满容量需在80到100之间",empty_capacity:"空容量需小于等于40",show_daily:"请包含 day_battery_charge_70 和 day_battery_discharge_71 属性及实体ID"},solar:{sol:"未定义太阳能属性",mppts:"请包含太阳能 mppts 属性和值；1,2,3或4，例如 mppts: 2",show_daily:"请包含 day_pv_energy_108 属性及实体ID"},grid:{show_daily:"请包含 day_grid_import_76 和 day_grid_export_77 属性及实体ID"},essential_power:"essential_power 属性设置为none。请包含 inverter_power_175 属性及实体ID，以便卡片计算该值。",nonessential_power:"nonessential_power 属性设置为none。请包含 grid_power_169 属性及实体ID，以便卡片计算该值。",missing_entity:"请包含属性和实体ID"},ce={title:"标题",title_colour:"标题颜色",title_size:"标题大小 (px)",card_height:"卡片高度 (px)",card_width:"卡片宽度 (px)",decimal_places:"小数位数",decimal_places_energy:"小数位数 (每日能量)",model:"型号",autarky:"自给自足",cardstyle:"卡片样式",large_font:"大字体",wide:"宽屏布局",modern:"现代",show_solar:"显示太阳能",show_battery:"显示电池",show_grid:"显示电网",show_aux:"显示辅助",dynamic_line_width:"动态线宽",max_line_width:"最大线宽",min_line_width:"最小线宽",solar:"太阳能",mppts:"MPPTs",show_daily:"显示每日",show_daily_aux:"显示每日辅助",animation_speed:"动画速度",max_power:"最大功率",pv1_max_power:"光伏1最大功率",pv2_max_power:"光伏2最大功率",pv3_max_power:"光伏3最大功率",pv4_max_power:"光伏4最大功率",pv5_max_power:"光伏5最大功率",pv6_max_power:"光伏6最大功率",pv1_name:"光伏1名称",pv2_name:"光伏2名称",pv3_name:"光伏3名称",pv4_name:"光伏4名称",pv5_name:"光伏5名称",pv6_name:"光伏6名称",display_mode:"显示模式",efficiency:"效率模式",battery:"电池",load1_name:"负载1名称",load2_name:"负载2名称",load3_name:"负载3名称",load4_name:"负载4名称",load1_icon:"负载1图标",load2_icon:"负载2图标",load3_icon:"负载3图标",load4_icon:"负载4图标",load5_name:"负载5名称",load6_name:"负载6名称",load5_icon:"负载5图标",load6_icon:"负载6图标",aux_load1_name:"辅助负载1名称",aux_load2_name:"辅助负载2名称",aux_load1_icon:"辅助负载1图标",aux_load2_icon:"辅助负载2图标",aux_dynamic_colour:"辅助动态颜色",off_threshold:"关闭阈值",show_daily_buy:"显示每日购电",show_daily_sell:"显示每日售电",no_grid_colour:"无电网颜色",grid_off_colour:"电网关闭颜色",grid_name:"电网名称",colour:"颜色",charge_colour:"充电颜色",linear_gradient:"线性渐变",animate:"动画线性渐变",aux_colour:"颜色",aux_off_colour:"关闭颜色",invert_grid:"反转值",invert_load:"反转值",shutdown_soc:"关闭SOC",shutdown_soc_offgrid:"关闭SOC (离网)",soc_end_of_charge:"SOC充电结束",navigate:"导航路径",energy:"能量",auto_scale:"自动缩放",three_phase:"三相",dynamic_colour:"动态颜色",dynamic_icon:"动态图标",invert_power:"反转功率",show_absolute:"显示绝对值",hide_soc:"隐藏SOC",invert_aux:"反转辅助",show_absolute_aux:"显示绝对值",show_nonessential:"显示非必需",aux_name:"辅助名称",aux_daily_name:"每日辅助名称",aux_type:"辅助图标",aux_loads:"辅助负载",essential_name:"必需名称",additional_loads:"额外负载",export_colour:"导出颜色",nonessential_name:"非必需名称",nonessential_icon:"非必需图标",energy_cost_decimals:"能源成本小数位",show_remaining_energy:"显示剩余能量",path_threshold:"路径阈值",label_daily_grid_buy:"每日电网购电标签",label_daily_grid_sell:"每日电网售电标签",invert_flow:"反转流向",label_daily_load:"每日负载标签",remaining_energy_to_shutdown:"剩余能量至关闭",off_colour:"关闭颜色",load1_max_threshold:"负载1最大阈值",load2_max_threshold:"负载2最大阈值",load3_max_threshold:"负载3最大阈值",load4_max_threshold:"负载4最大阈值",load5_max_threshold:"负载5最大阈值",load6_max_threshold:"负载6最大阈值",max_colour:"最大颜色",custom_label:"自定义标签",soc_decimal_places:"SOC小数位",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"标题选项",general:"常规选项",inverter:"逆变器选项",solar:"太阳能选项",battery:"电池选项",grid:"电网选项",load:"负载选项",entities:"实体",aux:"辅助选项",energy:"能量实体",bat:"电池实体",sol:"太阳能实体",inv:"逆变器实体",ld:"负载实体",gri:"电网实体",sensor:"可选传感器",bat1:"电池1",bat2:"电池2"}},de={common:se,errors:le,config:ce},ue={description:"Karta Home Assistant pro emulaci toku energie, který je zobrazen na displeji měniče Sunsynk",version:"Verze",runtime_to:"ČAS DO",battery_floating:"BATERIE JE NABITÁ",charge:"NABÍT",to:"DO",daily_load:"DNES SPOTŘEBA",daily_aux:"DENNÍ VSTUP",daily_grid_buy:"DNES NÁKUP",daily_grid_sell:"DNES PRODEJ",daily_solar:"DNES VÝROBA",daily_solar_left:"DNES VÝROBA / OČEKÁVANÁ VÝROBA",total_solar_generation:"DNES VÝROBA / CELKOVÁ VÝROBA",daily_charge:"DNES NABÍJENÍ",daily_discharge:"DNES VYBÍJENÍ",ratio:"Poměr",timer_off:"Časovač off",timer_on:"Časovač on",priority_batt:"Nabít Baterii z DS",priority_load:"Nabíjím Baterii z DS",nonessential_name:"Nedostupné",aux_name:"Pomocné",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Nezbytný",autarky:"Vlastní",discharging:"Vybíjí se",charging:"Nabíjí se",waiting:"Čeká",standby:"Standby",no_battery:"Není baterie",selftest:"Vlastní test",normal:"Normální",alarm:"Alarm",fault:"Chyba",days:"dní",hrs:"hod",min:"min",flash:"Flash",check:"Check",idle:"Nečinný",exporting:"Odesílání",importing:"Příjem",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Omezení",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Dobíjání",scheduledrecharge:"Naplánované dobíjání"},he={battery:{bat:"Nejsou definovány žádné atributy baterie",energy:"Uveďte prosím atribut energie baterie a hodnotu ve Wh, např. 5,32 Energie baterie: 5320",shutdown_soc:"Uveďte atribut battery shut down_soc a hodnotu, např. shutdown_soc: 20 shutdown_soc: 20",full_capacity:"Plná kapacita musí být mezi 80 a 100",empty_capacity:"Prázdná kapacita musí být <= 40",show_daily:"Uveďte prosím atributy day_battery_charge_70 a day_battery_discharge_71 a ID entit"},solar:{sol:"Nejsou definovány žádné solar atributy",mppts:"Uveďte prosím atribut a hodnotu solar mppts; 1,2,3 nebo 4 např. mppts: 2",show_daily:"Uveďte prosím atribut day_pv_energy_108 a ID entity"},grid:{show_daily:"Uveďte prosím atributy day_grid_import_76 a day_grid_export_77 a ID entit"},essential_power:"Atribut essential_power je nastaven na hodnotu none. Uveďte prosím atribut inverter_power_175 a ID entity, aby karta mohla vypočítat tuto hodnotu.",nonessential_power:"Atribut neesenciální_výkon je nastaven na hodnotu none. Uveďte prosím atribut grid_power_169 a ID entity, aby karta mohla vypočítat tuto hodnotu.",missing_entity:"Uveďte prosím atribut a ID entity"},ge={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",wide:"Wide Screen Layout",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",aux_dynamic_colour:"Aux Dynamic Colour",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},me={common:ue,errors:he,config:ge},pe={description:"Et Home Assistant-kort til at emulere Sunsynk-strømflowet, som vises på inverter-skærmen",version:"Version",runtime_to:"Køretid til",battery_floating:"BATTERI SVÆVER",charge:"OPLADNING",to:"TIL",daily_load:"DAGLIG FORBRUG",daily_aux:"DAGLIG AUX",daily_grid_buy:"DAGLIG KØB AF EL",daily_grid_sell:"DAGLIG SALG AF EL",daily_solar:"DAGLIG SOLAR",daily_solar_left:"DAGLIG SOLAR / RESTERENDE ENERGI",total_solar_generation:"DAGLIG SOLAR / TOTAL SOLAR",daily_charge:"DAGLIG OPLADNING",daily_discharge:"DAGLIG AFLADNING",ratio:"Forhold",timer_off:"Timer slukket",timer_on:"Timer tændt",priority_batt:"Batteri Prioriteret",priority_load:"Forbrug Prioriteret",nonessential_name:"Uvæsentlig",aux_name:"Sekundær",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Væsentlig",autarky:"Autarky",discharging:"Aflader",charging:"Oplader",waiting:"Venter",standby:"Standby",no_battery:"Ingen batteri",selftest:"Selvtest",normal:"Normal",alarm:"Alarm",fault:"Fejl",days:"dage",hrs:"timer",min:"min",flash:"Flash",check:"Check",idle:"Inaktiv",exporting:"Eksport",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Slukket",offline:"Offline",running:"Kører",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Genopladning",scheduledrecharge:"Planlagt genopladning"},ye={battery:{bat:"Ingen batteriattributter defineret",energy:"Angiv venligst batterienergiattribut og værdi i Wh, f.eks. 5,32 Batterienergi: 5320",shutdown_soc:"Angiv venligst batteri shutdown_soc-attribut og værdi, f.eks. shutdown_soc: 20",full_capacity:"Fuld kapacitet skal være mellem 80 og 100",empty_capacity:"Tom kapacitet skal være <= 40",show_daily:"Angiv venligst day_battery_charge_70 og day_battery_discharge_71 samt enheds-ID'er"},solar:{sol:"Ingen sol attributter defineret",mppts:"Angiv venligst attributten og værdien for sol-MPPT'er; 1,2,3 eller 4, f.eks. mppts: 2",show_daily:"Angiv venligst day_pv_energy_108-attributten og enheds-ID'en"},grid:{show_daily:"Angiv venligst day_grid_import_76 og day_grid_export_77-attributterne samt enheds-ID'er"},essential_power:"essential_power-attributten er ikke indstillet. Angiv venligst inverter_power_175-attribut og enheds-ID så kortet kan beregne denne værdi.",nonessential_power:"nonessential_power-attributten er indstillet til ingen. Angiv venligst grid_power_169-attribut og enheds-ID så kortet kan beregne denne værdi.",missing_entity:"Angiv venligst attributten og enheds-ID'en"},_e={title:"Titel",title_colour:"Titel Farve",title_size:"Titel Størrelse (px)",card_height:"Card Højde (px)",card_width:"Card Bredde (px)",decimal_places:"Antal viste Decimaler",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",wide:"Wide Screen Layout",autarky:"Autarky",cardstyle:"Kortstil",large_font:"Stor Font",modern:"Moderne",show_solar:"Vis Solar",show_battery:"Vis Battery",show_grid:"Vis Grid",show_aux:"Vis Aux",dynamic_line_width:"Dynamisk Linje Bredde",max_line_width:"Max Linje Bredde",min_line_width:"Min Linje Bredde",solar:"Solar",mppts:"MPPTs",show_daily:"Vis Daglig",show_daily_aux:"Vis Daglig Aux",animation_speed:"Anim. Hast.",max_power:"Max Effekt",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Navn",pv2_name:"PV2 Navn",pv3_name:"PV3 Navn",pv4_name:"PV4 Navn",pv5_name:"PV5 Navn",pv6_name:"PV6 Navn",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Batteri",load1_name:"Load 1 Navn",load2_name:"Load 2 Navn",load3_name:"Load 3 Navn",load4_name:"Load 4 Navn",load1_icon:"Load 1 Ikon",load2_icon:"Load 2 Ikon",load3_icon:"Load 3 Ikon",load4_icon:"Load 4 Ikon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Navn",aux_load2_name:"Aux Load 2 Navn",aux_load1_icon:"Aux Load 1 Ikon",aux_load2_icon:"Aux Load 2 Ikon",show_daily_buy:"Vis Daglig Køb",show_daily_sell:"Vis Daglig Salg",no_grid_colour:"Ingen Grid Farve",grid_off_colour:"Grid Off Farve",grid_name:"Grid Navn",colour:"Farve",charge_colour:"Ladnings Farve",linear_gradient:"Lineær Gradient",animate:"Animate Linear Gradient",aux_colour:"Farve",aux_dynamic_colour:"Aux Dynamisk Farve",aux_off_colour:"Off Farve",off_threshold:"Off Threshold",invert_grid:"Inverter Værdier",invert_load:"Inverter Værdier",shutdown_soc:"Nedluknings SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energi",auto_scale:"Auto Skalering",three_phase:"Tre Faser",dynamic_colour:"Dynamisk Farve",dynamic_icon:"Dynamisk Ikon",invert_power:"Inverter Effekt",show_absolute:"Vis Absolut",hide_soc:"Skjul SOC",invert_aux:"Inverter Aux",show_absolute_aux:"Vis Absolut",show_nonessential:"Vis ikke Essentiel",aux_name:"Aux Navn",aux_daily_name:"Daglig Aux Navn",aux_type:"Aux Ikon",aux_loads:"Aux belastning",essential_name:"Essentielt Navn",additional_loads:"Ekstra Belastninger",export_colour:"Eksport Farve",nonessential_name:"Ikke Essentielt Navn",nonessential_icon:"Ikke Essentielt Ikon",energy_cost_decimals:"Energiudgift Decimaler",show_remaining_energy:"Vis resterende Energi",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Titel Options",general:"Generelle Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Batteri Options",grid:"Grid Options",load:"Belastnings Options",entities:"Entities",aux:"Aux Options",energy:"Energi Entities",bat:"Batteri Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Belastnings Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},fe={common:pe,errors:ye,config:_e},ve={description:"Eine Home Assistant-Karte zur Emulation des Sunsynk-Stromflusses, der auf dem Inverter-Bildschirm angezeigt wird",version:"Version",runtime_to:"LAUFZEIT BIS",battery_floating:"BATTERIE haltend",charge:"AUFLADEN",to:"ZU",daily_load:"ENERGIE heute",daily_aux:"HILFSANTRIEB heute",daily_grid_buy:"NETZEINKAUF heute",daily_grid_sell:"NETZVERKAUF heute",daily_solar:"SOLAR heute",daily_solar_left:"SOLAR heute / VERBLEIBEND heute",total_solar_generation:"SOLAR heute / TOTAL SOLAR",daily_charge:"AUFLADUNG heute",daily_discharge:"ENTNAHME heute",ratio:"Verhältnis",timer_off:"Timer aus",timer_on:"Timer ein",priority_batt:"Batteriepriorität",priority_load:"Lastpriorität",nonessential_name:"Nebenverbraucher",aux_name:"Hilfsantrieb",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Hauptverbraucher",autarky:"Autark",discharging:"Entladen",charging:"Laden",waiting:"Warten",standby:"Bereitschaft",no_battery:"Keine Batterie",selftest:"Selbsttest",normal:"Normal",alarm:"Alarm",fault:"Fehler",days:"Tage",hrs:"Std",min:"Min",flash:"Flash",check:"Check",idle:"Leerlauf",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Aufladen",scheduledrecharge:"Geplantes Aufladen"},we={battery:{bat:"Keine Batterieattribute definiert",energy:"Bitte fügen Sie das Batterieenergieattribut und den Wert in Wh hinzu, z.B. 5.32 Batterieenergie: 5320",shutdown_soc:"Bitte fügen Sie das Batterie-Shutdown-SOC-Attribut und den Wert hinzu, z.B. shutdown_soc: 20",full_capacity:"Die volle Kapazität muss zwischen 80 und 100 liegen",empty_capacity:"Die leere Kapazität muss <= 40 sein",show_daily:"Bitte fügen Sie die Tages-Batterieladung_70- und Tages-Batterieentladung_71-Attribute und die Entity-IDs hinzu"},solar:{sol:"Keine Solarattribute definiert",mppts:"Bitte fügen Sie das Solar-MPPT-Attribut und den Wert hinzu; 1,2,3 oder 4 z.B. mppts: 2",show_daily:"Bitte fügen Sie das Tages-PV-Energie_108-Attribut und die Entity-ID hinzu"},grid:{show_daily:"Bitte fügen Sie die Tages-Grideinspeisung_76- und Tages-Gridexport_77-Attribute und die Entity-IDs hinzu"},essential_power:"Das Essenziell-Stromattribut ist auf 'none' gesetzt. Bitte fügen Sie das Inverter-Power_175-Attribut und die Entity-ID hinzu, damit die Karte diesen Wert berechnen kann.",nonessential_power:"Das Nicht-Essenziell-Stromattribut ist auf 'none' gesetzt. Bitte fügen Sie das Grid-Power_169-Attribut und die Entity-ID hinzu, damit die Karte diesen Wert berechnen kann.",missing_entity:"Bitte fügen Sie das Attribut und die Entity-ID hinzu"},be={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",aux_dynamic_colour:"Aux Dynamic Colour",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Ae={common:ve,errors:we,config:be},xe={description:"A Home Assistant card to emulate the Sunsynk power flow that's shown on the Inverter screen",version:"Version",runtime_to:"RUNTIME TO",battery_floating:"BATTERY FLOATING",charge:"CHARGE",to:"TO",daily_load:"DAILY LOAD",daily_aux:"DAILY AUX",daily_grid_buy:"DAILY GRID BUY",daily_grid_sell:"DAILY GRID SELL",daily_solar:"DAILY SOLAR",daily_solar_left:"DAILY SOLAR / LEFT TODAY",total_solar_generation:"DAILY SOLAR / TOTAL SOLAR",daily_charge:"DAILY CHARGE",daily_discharge:"DAILY DISCHARGE",ratio:"Ratio",timer_off:"Timer off",timer_on:"Timer on",priority_batt:"Priority Batt",priority_load:"Priority Load",nonessential_name:"Non Essential",aux_name:"Auxiliary",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Essential",autarky:"Autarky",discharging:"Discharging",charging:"Charging",waiting:"Waiting",standby:"Standby",no_battery:"No Battery",selftest:"Selftest",normal:"Normal",alarm:"Alarm",fault:"Fault",days:"days",hrs:"hrs",min:"min",flash:"Flash",check:"Check",idle:"Idle",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Recharge",scheduledrecharge:"Scheduled Recharge"},Pe={battery:{bat:"No battery attributes defined",energy:"Please include the battery energy attribute and value in Wh e.g. 5.32 Battery energy: 5320",shutdown_soc:"Please include the battery shutdown_soc attribute and value e.g shutdown_soc: 20",full_capacity:"Full capacity needs to be between 80 and 100",empty_capacity:"Empty capacity needs to be <= 40",show_daily:"Please include the day_battery_charge_70 and day_battery_discharge_71 attributes and entity IDs"},solar:{sol:"No solar attributes defined",mppts:"Please include the solar mppts attribute and value; 1,2,3 or 4 e.g. mppts: 2",show_daily:"Please include the day_pv_energy_108 attribute and entity ID"},grid:{show_daily:"Please include the day_grid_import_76 and day_grid_export_77 attributes and entity IDs"},essential_power:"The essential_power attribute is set to none. Please include the inverter_power_175 attribute and entity ID in order for the card to calculate this value.",nonessential_power:"The nonessential_power attribute is set to none. Please include the grid_power_169 attribute and entity ID in order for the card to calculate this value.",missing_entity:"`Please include the attribute and entity ID"},Ee={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",wide:"Wide Screen Layout",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",off_threshold:"Off Threshold",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Le={common:xe,errors:Pe,config:Ee},Ne={description:"Una tarjeta de Home Assistant para emular el flujo de energía Sunsynk que se muestra en la pantalla del inversor",version:"Versión",runtime_to:"TIEMPO DE FUNCIONAMIENTO HASTA",battery_floating:"BATERÍA EN FLOTACIÓN",charge:"CARGA",to:"A",daily_load:"CARGA DIARIA",daily_aux:"AUXILIAR DIARIO",daily_grid_buy:"COMPRA DIARIA DE LA RED",daily_grid_sell:"VENTA DIARIA A LA RED",daily_solar:"SOLAR DIARIO",daily_solar_left:"SOLAR DIARIO / LO QUE QUEDA HOY",total_solar_generation:"SOLAR DIARIO / TOTAL SOLAR",daily_charge:"CARGA DIARIA",daily_discharge:"DESCARGA DIARIA",ratio:"Relación",timer_off:"Temporizador apagado",timer_on:"Temporizador encendido",priority_batt:"Prioridad de la Batería",priority_load:"Prioridad de la Carga",nonessential_name:"No Esencial",aux_name:"Auxiliar",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Esencial",autarky:"Autarky",discharging:"Descargando",charging:"Cargando",waiting:"Esperando",standby:"En Espera",no_battery:"Sin Batería",selftest:"Autoevaluación",normal:"Normal",alarm:"Alarma",fault:"Fallo",days:"dìas",hrs:"horas",min:"min",flash:"Flash",check:"Check",idle:"Inactivo",exporting:"Exportando",importing:"Importando",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Recarga",scheduledrecharge:"Recarga Programada"},Ce={battery:{bat:"No se han definido atributos de la batería",energy:"Por favor, incluye el atributo de energía de la batería y su valor en Wh, por ejemplo, 5.32 Energía de la batería: 5320",shutdown_soc:"Por favor, incluye el atributo shutdown_soc de la batería y su valor, por ejemplo shutdown_soc: 20",full_capacity:"La capacidad completa debe estar entre 80 y 100",empty_capacity:"La capacidad vacía debe ser <= 40",show_daily:"Por favor, incluye los atributos day_battery_charge_70 y day_battery_discharge_71 y las IDs de las entidades"},solar:{sol:"No se han definido atributos solares",mppts:"Por favor, incluye el atributo mppts solares y su valor; 1,2,3 o 4, por ejemplo, mppts: 2",show_daily:"Por favor, incluye el atributo day_pv_energy_108 y la ID de la entidad"},grid:{show_daily:"Por favor, incluye los atributos day_grid_import_76 y day_grid_export_77 y las IDs de las entidades"},essential_power:"El atributo essential_power está configurado como ninguno. Por favor, incluye el atributo inverter_power_175 y la ID de la entidad para que la tarjeta pueda calcular este valor.",nonessential_power:"El atributo nonessential_power está configurado como ninguno. Por favor, incluye el atributo grid_power_169 y la ID de la entidad para que la tarjeta pueda calcular este valor.",missing_entity:"Por favor, incluye el atributo y la ID de la entidad"},Te={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Se={common:Ne,errors:Ce,config:Te},Me={description:"Home Assistant kaart Sunsynk võimsusvoogu emuleerimiseks, mis kuvatakse inverteri ekraanil",version:"Versioon",runtime_to:"TÖÖAEG KUNI",battery_floating:"UJUV AKU",charge:"LAADIMINE",to:"KUNI",daily_load:"PÄEVA KOORMUS",daily_aux:"PÄEVA ABISTAV",daily_grid_buy:"PÄEVA VÕRGUST OST",daily_grid_sell:"PÄEVA VÕRGU MÜÜK",daily_solar:"PÄEVA PÄIKE",daily_solar_left:"PÄEVA PÄIKE / TÄNA JÄÄNUD",total_solar_generation:"PÄEVA PÄIKE / TOTAL SOLAR",daily_charge:"PÄEVA LAADIMINE",daily_discharge:"PÄEVA TÜHJENDAMINE",ratio:"Suhe",timer_off:"Ajastus välja",timer_on:"Ajastus sisse",priority_batt:"Akuprioriteet",priority_load:"Koormuse prioriteet",nonessential_name:"Mitteoluline",aux_name:"Abiseadmed",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Oluline",autarky:"Autarky",discharging:"Tühjenemine",charging:"Laadimine",waiting:"Ootamine",standby:"Ooterežiim",no_battery:"Puudub aku",selftest:"Eneseanalüüs",normal:"Tavaline",alarm:"Häire",fault:"Rike",days:"päeva",hrs:"tundi",min:"min",flash:"Flash",check:"Check",idle:"Tühikäik",exporting:"Eksport",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Laadimine",scheduledrecharge:"Plaanitud laadimine"},Ie={battery:{bat:"Aku atribuute pole määratletud",energy:"Palun sisestage aku energiat atribuut ja väärtus Wh-s, näiteks 5,32 Aku energia: 5320",shutdown_soc:"Palun sisestage aku shutdown_soc atribuut ja väärtus, näiteks shutdown_soc: 20",full_capacity:"Täiskasvanu maht peab olema vahemikus 80 kuni 100",empty_capacity:"Tühi mahutavus peab olema <= 40",show_daily:"Palun sisestage päeva_battery_charge_70 ja päeva_battery_discharge_71 atribuudid ning seadmete ID-d"},solar:{sol:"Päikesepaneelide atribuute pole määratletud",mppts:"Palun sisestage päikesepaneelide mppts atribuut ja väärtus; 1,2,3 või 4, näiteks mppts: 2",show_daily:"Palun sisestage päeva_pv_energy_108 atribuut ja seadme ID"},grid:{show_daily:"Palun sisestage päeva_grid_import_76 ja päeva_grid_export_77 atribuudid ning seadmete ID-d"},essential_power:"Olulise võimsuse atribuut on määratud puuduvaks. Palun sisestage inverteri_power_175 atribuut ja seadme ID, et kaart saaks selle väärtuse arvutada.",nonessential_power:"Mittetähtsa võimsuse atribuut on määratud puuduvaks. Palun sisestage võrgu_power_169 atribuut ja seadme ID, et kaart saaks selle väärtuse arvutada.",missing_entity:"Sisestage palun atribuut ja seadme ID"},Oe={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Be={common:Me,errors:Ie,config:Oe},De={description:"Une carte Home Assistant pour émuler les flux d'énergie affichés à l'écran des onduleurs Sunsynk ",version:"Version",runtime_to:"DÉCHARGÉE À",battery_floating:"BATTERIE FLOTTANTE",charge:"CHARGE",to:"À",daily_load:"CHARGE (JOUR)",daily_aux:"CHARGE AUX (JOUR)",daily_grid_buy:"ACHAT (JOUR)",daily_grid_sell:"VENTE (JOUR)",daily_solar:"PRODUCTION (JOUR)",daily_solar_left:"PRODUCTION / RESTANT (JOUR)",total_solar_generation:"PRODUCTION / TOTAL SOLAR",daily_charge:"CHARGE (JOUR)",daily_discharge:"DÉCHARGE (JOUR)",ratio:"Ratio",timer_off:"Prog. Off",timer_on:"Prog. On",priority_batt:"Batterie en 1er",priority_load:"Charges en 1er",nonessential_name:"Non Essentielles",aux_name:"Auxiliaire",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Essentielles",autarky:"AutoConso",discharging:"Décharge",charging:"Charge",waiting:"En attente",standby:"Veille",no_battery:"Pas de batterie",selftest:"Auto-test",normal:"Normal",alarm:"Alarme",fault:"Défaut",days:"jours",hrs:"heures",min:"min",flash:"Flash",check:"Check",idle:"Inactif",exporting:"Exportation",importing:"Importation",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Réseau",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Recharge",scheduledrecharge:"Recharge Programmée"},ke={battery:{bat:"Aucun attribut de batterie défini",energy:"Veuillez inclure l'attribut d'énergie de la batterie et la valeur en Wh, par exemple 5.32 Énergie de la batterie : 5320",shutdown_soc:"Veuillez inclure l'attribut de batterie shutdown_soc et la valeur, par exemple shutdown_soc : 20",full_capacity:"La capacité totale doit être comprise entre 80 et 100",empty_capacity:"La capacité vide doit être <= 40",show_daily:"Veuillez inclure les attributs day_battery_charge_70 et day_battery_discharge_71 ainsi que les ID d'entité"},solar:{sol:"Aucun attribut solaire défini",mppts:"Veuillez inclure l'attribut solaire mppts et la valeur ; 1,2,3 ou 4 par exemple mppts : 2",show_daily:"Veuillez inclure l'attribut day_pv_energy_108 et l'ID d'entité"},grid:{show_daily:"Veuillez inclure les attributs day_grid_import_76 et day_grid_export_77 ainsi que les ID d'entité"},essential_power:"L'attribut essential_power est réglé sur 'none'. Veuillez inclure l'attribut inverter_power_175 et l'ID d'entité afin que la carte puisse calculer cette valeur.",nonessential_power:"L'attribut nonessential_power est réglé sur 'none'. Veuillez inclure l'attribut grid_power_169 et l'ID d'entité afin que la carte puisse calculer cette valeur.",missing_entity:"Veuillez inclure l'attribut et l'ID d'entité"},Ve={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},ze={common:De,errors:ke,config:Ve},Re={description:"Una scheda Home Assistant per emulare il flusso di potenza Sunsynk visualizzato sullo schermo dell'inverter",version:"Versione",runtime_to:"DURATA AL",battery_floating:"BATTERY CARICA",charge:"CARICA",to:"A",daily_load:"CONSUMO OGGI",daily_aux:"AUX OGGI",daily_grid_buy:"PRELIEVO OGGI DA RETE",daily_grid_sell:"CESSIONE OGGI IN RETE",daily_solar:"ENERGIA SOLARE OGGI",daily_solar_left:"ENERGIA SOLARE OGGI / STIMA RIMANENTE",total_solar_generation:"ENERGIA SOLARE OGGI / TOTALE SOLARE",daily_charge:"CARICA OGGI",daily_discharge:"SCARICA OGGI",ratio:"Autoconsumo",timer_off:"Spegnimento timer",timer_on:"Accensione timer",priority_batt:"Priorità batteria",priority_load:"Priorità carico",nonessential_name:" Non Essenziale",aux_name:"Ausiliario",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Essenziale",autarky:"Autosuff.",discharging:"Scarica",charging:"Carica",waiting:"In attesa",standby:"Standby",no_battery:"Nessuna batteria",selftest:"Auto-test",normal:"Normale",alarm:"Allarme",fault:"Guasto",days:"giorni",hrs:"ore",min:"min",flash:"Flash",check:"Check",idle:"Inattivo",exporting:"Esportazione",importing:"Importazione",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Ricarica",scheduledrecharge:"Ricarica Programmata"},je={battery:{bat:"Nessun attributo della batteria definito",energy:"Si prega di includere l'attributo dell'energia della batteria e il valore in Wh, ad esempio 5,32 Energia della batteria: 5320",shutdown_soc:"Si prega di includere l'attributo di spegnimento della batteria e il valore, ad esempio spegnimento_soc: 20",full_capacity:"La capacità massima deve essere compresa tra 80 e 100",empty_capacity:"La capacità vuota deve essere <= 40",show_daily:"Si prega di includere gli attributi day_battery_charge_70 e day_battery_discharge_71 e gli ID delle entità"},solar:{sol:"Nessun attributo solare definito",mppts:"Si prega di includere l'attributo solare mppts e il valore; 1,2,3 o 4, ad esempio mppts: 2",show_daily:"Si prega di includere l'attributo day_pv_energy_108 e l'ID dell'entità"},grid:{show_daily:"Si prega di includere gli attributi day_grid_import_76 e day_grid_export_77 e gli ID delle entità"},essential_power:"L'attributo essential_power è impostato su none. Si prega di includere l'attributo inverter_power_175 e l'ID dell'entità in modo che la scheda possa calcolare questo valore.",nonessential_power:"L'attributo nonessential_power è impostato su none. Si prega di includere l'attributo grid_power_169 e l'ID dell'entità in modo che la scheda possa calcolare questo valore.",missing_entity:"Si prega di includere l'attributo e l'ID dell'entità"},Ge={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",label_daily_load:"Daily Load Label",invert_flow:"Invert Flow",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},He={common:Re,errors:je,config:Ge},Ue={description:"Een Home Assistant-kaart om de Sunsynk energiestroom te emuleren die op het omvormerscherm wordt weergegeven",version:"Versie",runtime_to:"WERKTIJD TOT",battery_floating:"DRIJVENDE BATTERIJ",charge:"LADEN",to:"TOT",daily_load:"DAGELIJKSE BELASTING",daily_aux:"DAGELIJKSE HULP",daily_grid_buy:"DAGELIJKS NETSTROOM KOPEN",daily_grid_sell:"DAGELIJKSE NETSTROOM VERKOPEN",daily_solar:"DAGELIJKSE ZONNE-ENERGIE",daily_solar_left:"DAGELIJKSE ZONNE-ENERGIE / OVER VANDAAG",total_solar_generation:"DAGELIJKSE ZONNE-ENERGIE / TOTAL SOLAR",daily_charge:"DAGELIJKSE LADING",daily_discharge:"DAGELIJKSE ONTLADING",ratio:"Verhouding",timer_off:"Timer uit",timer_on:"Timer aan",priority_batt:"Batterijprioriteit",priority_load:"Belastingsprioriteit",nonessential_name:"Niet-Essentieel",aux_name:"Hulp",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Essentieel",autarky:"Autarky",discharging:"Ontladen",charging:"Opladen",waiting:"Wachten",standby:"Standby",no_battery:"Geen batterij",selftest:"Zelftest",normal:"Normaal",alarm:"Alarm",fault:"Fout",days:"dagen",hrs:"uren",min:"minuten",flash:"Flash",check:"Check",idle:"Inactief",exporting:"Exporteren",importing:"Importeren",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Opladen",scheduledrecharge:"Geplande Oplading"},We={battery:{bat:"Geen batterijattributen gedefinieerd",energy:"Voeg alstublieft het batterij-energieattribuut en de waarde in Wh toe, bijvoorbeeld 5.32 Batterij-energie: 5320",shutdown_soc:"Voeg alstublieft het batterij-shutdown_soc-attribuut en de waarde toe, bijvoorbeeld shutdown_soc: 20",full_capacity:"De volledige capaciteit moet tussen 80 en 100 liggen",empty_capacity:"De lege capaciteit moet <= 40 zijn",show_daily:"Voeg alstublieft de attributen day_battery_charge_70 en day_battery_discharge_71 toe, evenals de entiteits-ID's"},solar:{sol:"Geen zonne-attributen gedefinieerd",mppts:"Voeg alstublieft het zonne-mppts-attribuut en de waarde toe; 1,2,3 of 4 bijvoorbeeld mppts: 2",show_daily:"Voeg alstublieft het day_pv_energy_108-attribuut en de entiteits-ID toe"},grid:{show_daily:"Voeg alstublieft de attributen day_grid_import_76 en day_grid_export_77 toe, evenals de entiteits-ID's"},essential_power:"Het essential_power-attribuut is ingesteld op 'geen'. Voeg alstublieft het inverter_power_175-attribuut en de entiteits-ID toe zodat de kaart deze waarde kan berekenen.",nonessential_power:"Het nonessential_power-attribuut is ingesteld op 'geen'. Voeg alstublieft het grid_power_169-attribuut en de entiteits-ID toe zodat de kaart deze waarde kan berekenen.",missing_entity:"Voeg alstublieft het attribuut en de entiteits-ID toe"},Ze={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Qe={common:Ue,errors:We,config:Ze},Ye={description:"Karta Home Assistant emulująca przepływy energii widoczne na ekranie falowników Sunsynk",version:"Wersja",runtime_to:"DO ROZŁADOWYWANIA DO",battery_floating:"PODTRZYMANIE BATERII",charge:"NAŁADOWANIA",to:"DO",daily_load:"ZUŻYCIE PODSTAWOWE",daily_aux:"ZUŻYCIE DODATKOWE",daily_grid_buy:"POBÓR Z SIECI",daily_grid_sell:"ODDAWANIE DO SIECI",daily_solar:"PRODUKCJA PV",daily_solar_left:"POZOSTAŁA PRODUKCJA PV",total_solar_generation:"ŁĄCZNA PRODUKCJA PV",daily_charge:"ŁADOWANIE",daily_discharge:"ROZŁADOWANIE",ratio:"Wskaźnik",timer_off:"Timer wyłączony",timer_on:"Timer włączony",priority_batt:"Priorytet: Bateria",priority_load:"Priorytet: Obciążenie",nonessential_name:"Nieistotne",aux_name:"Pomocnicze",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Istotne",autarky:"Autonomia",discharging:"Rozładowywanie",charging:"Ładowanie",waiting:"Oczekiwanie",standby:"Tryb czuwania",no_battery:"Brak baterii",selftest:"Autotest",normal:"Normalny",alarm:"Alarm",fault:"Awaria",days:"dni",hrs:"godz.",min:"min",flash:"Miganie",check:"Sprawdź",idle:"Bezczynny",exporting:"Eksport do sieci",importing:"Import z sieci",ongrid:"Praca z siecią",offgrid:"Praca wyspowa",normalstop:"Zwykłe zatrzymanie",shutdown:"Wyłączenie",offline:"Offline",running:"Uruchomiony",sleepmode:"Tryb uśpienia",grid_name:"Sieć",limit:"Limit",off:"Wyłączone",lowpower:"Niskie zużycie",bulk:"Bulk",absorption:"Absorpcja",float:"Float",storage:"Magazynowanie",equalize:"Wyrównanie",passthru:"Przepływ bezpośredni",inverting:"Praca jako inwerter",powerassist:"Wspomaganie zasilania",powersupply:"Zasilanie",sustain:"Podtrzymanie",externalcontrol:"Sterowanie zewnętrzne",recharge:"Ładowanie",scheduledrecharge:"Zaplanowane ładowanie"},Fe={battery:{bat:"Brak zdefiniowanych atrybutów baterii",energy:"Określ atrybut energii baterii oraz wartość w Wh, np. 5320",shutdown_soc:"Określ atrybut shutdown_soc baterii oraz wartość, np. shutdown_soc: 20",full_capacity:"Pełna pojemność musi wynosić od 80 do 100",empty_capacity:"Minimalna pojemność musi być mniejsza lub równa 40",show_daily:"Określ atrybuty day_battery_charge_70 i day_battery_discharge_71 oraz identyfikatory encji"},solar:{sol:"Brak zdefiniowanych atrybutów produkcji PV",mppts:"Określ atrybuty i liczbę MPPT: 1, 2, 3 lub 4, np. mppts: 2",show_daily:"Określ atrybut day_pv_energy_108 oraz identyfikator encji"},grid:{show_daily:"Określ atrybuty day_grid_import_76 i day_grid_export_77 oraz identyfikatory encji"},essential_power:"Atrybut essential_power ma wartość none. Podaj atrybut inverter_power_175 oraz ID encji, aby karta mogła obliczyć tę wartość.",nonessential_power:"Atrybut nonessential_power ma wartość none. Podaj atrybut grid_power_169 oraz ID encji, aby karta mogła obliczyć tę wartość.",missing_entity:"Podaj atrybut i identyfikator encji"},Xe={title:"Tytuł",title_colour:"Kolor tytułu",title_size:"Rozmiar tytułu (px)",card_height:"Wysokość karty (px)",card_width:"Szerokość karty (px)",decimal_places:"Miejsca po przecinku",decimal_places_energy:"Miejsca po przecinku (energia dzienna)",model:"Model",autarky:"Autarkia",cardstyle:"Styl karty",large_font:"Duża czcionka",wide:"Tryb szeroki",modern:"Nowoczesny",show_solar:"Pokaż PV",show_battery:"Pokaż baterię",show_grid:"Pokaż sieć",show_aux:"Pokaż AUX",dynamic_line_width:"Dynamiczna szerokość linii",max_line_width:"Maks. szerokość linii",min_line_width:"Min. szerokość linii",solar:"PV",mppts:"MPPT",show_daily:"Pokaż dane dzienne",show_daily_aux:"Pokaż dane dzienne AUX",animation_speed:"Prędkość animacji",max_power:"Maks. moc",pv1_max_power:"Maks. moc PV1",pv2_max_power:"Maks. moc PV2",pv3_max_power:"Maks. moc PV3",pv4_max_power:"Maks. moc PV4",pv5_max_power:"Maks. moc PV5",pv6_max_power:"Maks. moc PV6",pv1_name:"Nazwa PV1",pv2_name:"Nazwa PV2",pv3_name:"Nazwa PV3",pv4_name:"Nazwa PV4",pv5_name:"Nazwa PV5",pv6_name:"Nazwa PV6",display_mode:"Tryb wyświetlania",efficiency:"Tryb efektywności",battery:"Bateria",load1_name:"Nazwa obciążenia 1",load2_name:"Nazwa obciążenia 2",load3_name:"Nazwa obciążenia 3",load4_name:"Nazwa obciążenia 4",load1_icon:"Ikona obciążenia 1",load2_icon:"Ikona obciążenia 2",load3_icon:"Ikona obciążenia 3",load4_icon:"Ikona obciążenia 4",load5_name:"Nazwa obciążenia 5",load6_name:"Nazwa obciążenia 6",load5_icon:"Ikona obciążenia 5",load6_icon:"Ikona obciążenia 6",aux_load1_name:"Nazwa AUX 1",aux_load2_name:"Nazwa AUX 2",aux_load1_icon:"Ikona AUX 1",aux_load2_icon:"Ikona AUX 2",aux_dynamic_colour:"Dynamiczny kolor AUX",off_threshold:"Próg wyłączenia",show_daily_buy:"Pokaż dzienne zakupy",show_daily_sell:"Pokaż dzienną sprzedaż",no_grid_colour:"Kolor braku sieci",grid_off_colour:"Kolor wyłączenia sieci",grid_name:"Nazwa sieci",colour:"Kolor",charge_colour:"Kolor ładowania",linear_gradient:"Gradient liniowy",animate:"Animuj gradient",aux_colour:"Kolor AUX",aux_off_colour:"Kolor wyłączenia AUX",invert_grid:"Odwróć wartości sieci",invert_load:"Odwróć wartości obciążenia",shutdown_soc:"SOC do wyłączenia",shutdown_soc_offgrid:"SOC do wyłączenia (tryb wyspowy)",soc_end_of_charge:"SOC po zakończeniu ładowania",navigate:"Ścieżka nawigacji",energy:"Energia",auto_scale:"Autoskalowanie",three_phase:"Trójfazowy",dynamic_colour:"Dynamiczny kolor",dynamic_icon:"Dynamiczna ikona",invert_power:"Odwróć moc",show_absolute:"Pokaż wartość bezwzględną",hide_soc:"Ukryj SOC",invert_aux:"Odwróć AUX",show_absolute_aux:"Pokaż wartość bezwzględną AUX",show_nonessential:"Pokaż niepriorytetowe",aux_name:"Nazwa AUX",aux_daily_name:"Nazwa dzienna AUX",aux_type:"Ikona AUX",aux_loads:"Obciążenia AUX",essential_name:"Nazwa priorytetowego",additional_loads:"Obciążenia dodatkowe",export_colour:"Kolor eksportu",nonessential_name:"Nazwa niepriorytetowego",nonessential_icon:"Ikona niepriorytetowego",energy_cost_decimals:"Miejsca po przecinku kosztu energii",show_remaining_energy:"Pokaż pozostałą energię",path_threshold:"Próg ścieżki",label_daily_grid_buy:"Etykieta dziennego zakupu z sieci",label_daily_grid_sell:"Etykieta dziennej sprzedaży do sieci",invert_flow:"Odwróć przepływ",label_daily_load:"Etykieta dziennego zużycia",remaining_energy_to_shutdown:"Pozostała energia do wyłączenia",off_colour:"Kolor wyłączenia",load1_max_threshold:"Maksymalny próg obciążenia 1",load2_max_threshold:"Maksymalny próg obciążenia 2",load3_max_threshold:"Maksymalny próg obciążenia 3",load4_max_threshold:"Maksymalny próg obciążenia 4",load5_max_threshold:"Maksymalny próg obciążenia 5",load6_max_threshold:"Maksymalny próg obciążenia 6",max_colour:"Kolor maksymalny",custom_label:"Własna etykieta",soc_decimal_places:"Miejsca po przecinku SOC",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Opcje tytułu",general:"Opcje ogólne",inverter:"Opcje inwertera",solar:"Opcje PV",battery:"Opcje baterii",grid:"Opcje sieci",load:"Opcje obciążenia",entities:"Encje",aux:"Opcje AUX",energy:"Encje energii",bat:"Encje baterii",sol:"Encje PV",inv:"Encje inwertera",ld:"Encje obciążenia",gri:"Encje sieci",sensor:"Opcjonalne sensory",bat1:"Bateria 1",bat2:"Bateria 2"}},Je={common:Ye,errors:Fe,config:Xe},Ke={description:"Um Card para o Home Assistant que ajuda a emular o fluxo de energia exibido na tela do inversor",version:"Versão",runtime_to:"TEMPO DE ATIVIDADE",battery_floating:"FLUTUAÇÃO DA BATERIA",charge:"CARGA",to:"PARA",daily_load:"USO DIÁRIO",daily_aux:"AUXILIAR DIÁRIO",daily_grid_buy:"CONSUMO DIÁRIO",daily_grid_sell:"ENVIO DIÁRIO",daily_solar:"SOLAR DIÁRIO",daily_solar_left:"PRODUÇÃO DIÁRIA / RESTANTE DIÁRIO",total_solar_generation:"PRODUÇÃO DIÁRIA / PREVISÃO SOLAR",daily_charge:"CARGA DIÁRIA",daily_discharge:"DESCARGA DIÁRIA",ratio:"Proporção",timer_off:"Temporizador desligado",timer_on:"Temporizador ligado",priority_batt:"Prioridade da Bateria",priority_load:"Prioridade de Uso",nonessential_name:"Desnecessário",aux_name:"Auxiliar",pv1_name:"PFV1",pv2_name:"PFV2",pv3_name:"PFV3",pv4_name:"PFV4",pv5_name:"PFV5",pv6_name:"PFV6",essential:"Essencial",autarky:"Autoconsumo",discharging:"Descaregando",charging:"Caregando",waiting:"Aguardando",standby:"Em espera",no_battery:"Sem Bateria",selftest:"Autoteste",normal:"Normal",alarm:"Alarme",fault:"Falta",days:"dìas",hrs:"horas",min:"min",flash:"Flash",check:"Check",idle:"Inativo",exporting:"Exportando",importing:"Importando",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Parado",shutdown:"Desligar",offline:"Offline",running:"Rodando",sleepmode:"Dormindo",grid_name:"Rede",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Recarregar",scheduledrecharge:"Recarga Programada"},qe={battery:{bat:"Nenhum atributo de bateria definido",energy:"Inclua o atributo de energia da bateria e seu valor em Wh, por exemplo: 5,32 Potência da bateria: 5320",shutdown_soc:"Inclua o atributo shutdown_soc da bateria e seu valor, por exemplo shutdown_soc: 20",full_capacity:"A capacidade total deve estar entre 80 e 100",empty_capacity:"A capacidade vazia deve ser <= 40",show_daily:"Por favor, inclua os atributos day_battery_charge_70 e day_battery_discharge_71 e os IDs das entidade"},solar:{sol:"Nenhum atributo solar definido",mppts:"Por favor, inclua o atributo solar mppts e seu valor; 1,2,3 ou 4, por exemplo, mppts: 2",show_daily:"Por favor, inclua o atributo day_pv_energy_108 e o ID da entidade"},grid:{show_daily:"Por favor, inclua os atributos day_grid_import_76 e day_grid_export_77 e os IDs das entidade"},essential_power:"O atributo Essential_Power está definido como nenhum. Inclua o atributo inverter_power_175 e o ID da entidade para que o cartão possa calcular esse valor.",nonessential_power:"O atributo nonessential_power está configurado como nenhum. Inclua o atributo grid_power_169 e o ID da entidade para que o cartão possa calcular esse valor.",missing_entity:"Por favor, inclua o atributo e o ID da entidade"},$e={title:"Título",title_colour:"Cor do Título",title_size:"Tamanho do Título (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Casas decimais",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Modelo",autarky:"Autoconsumo",cardstyle:"Estilo do Cartão",large_font:"Largura da fonte",modern:"Moderno",show_solar:"Exibir Solar",show_battery:"Exibir Bateria",show_grid:"Exibir Rede",show_aux:"Exibir Aux",dynamic_line_width:"Largura da linha dinâmica",max_line_width:"Largura máxima da linha",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Exibir Diário",show_daily_aux:"Exibir Diário Aux",animation_speed:"Velocidade de Animação",max_power:"Potência Max",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PFV1 Name",pv2_name:"PFV2 Name",pv3_name:"PFV3 Name",pv4_name:"PFV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 Name",display_mode:"Mode de Exibição",efficiency:"Efficiency Mode",battery:"Bateria",load1_name:"Nome Uso1",load2_name:"Nome Uso2",load3_name:"Nome Uso3",load4_name:"Nome Uso4",load1_icon:"Icone Uso1",load2_icon:"Icone Uso2",load3_icon:"Icone Uso3",load4_icon:"Icone Uso4",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Nome Aux_Uso1",aux_load2_name:"Nome Aux_Uso2",aux_load1_icon:"Nome Aux_Uso3",aux_load2_icon:"Nome Aux_Uso4",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Consumo Diário",show_daily_sell:"Produção Diária",no_grid_colour:"Cor No_Grid",grid_off_colour:"Cor Grid_Off",grid_name:"Nome Grid",colour:"Cor",charge_colour:"Cor Charge",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Cor",aux_off_colour:"Cor Off",off_threshold:"Off Threshold",invert_grid:"Inverter Valores",invert_load:"Inverter Valores",shutdown_soc:"Desligamento do SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energia",auto_scale:"Escala automática",three_phase:"Trifásico",dynamic_colour:"Cor Dinâmica",dynamic_icon:"Ícone Dinâmico",invert_power:"Potência do Inversor",show_absolute:"Exibir valor absoluto",hide_soc:"Ocultar SOC",invert_aux:"Inverter Aux",show_absolute_aux:"Exibir absoluto_aux",show_nonessential:"Exibir Desnecessário",aux_name:"Nome Aux",aux_daily_name:"Daily Aux Name",aux_type:"Icone Aux",aux_loads:"Aux Loads",essential_name:"Nome Essencial",additional_loads:"Uso Adicional",export_colour:"Cor Expor",nonessential_name:"Nome Desnecessário",nonessential_icon:"Icone Desnecessário",energy_cost_decimals:"Decimais do custo de energia",show_remaining_energy:"Exibir energia restante",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Opções de título",general:"Opções gerais",inverter:"Opções do inversor",solar:"Opções Solar",battery:"Opções da Bateria",grid:"Opções da Rede",load:"Opções Load",entities:"Entidades",aux:"Opções do Aux",energy:"Entidade de Enêrgia",bat:"Entidades da Bateria ",sol:"Entidades de Solar",inv:"Entidades do Inversor",ld:"Entidade do Load",gri:"Entidade da Rede",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},tn={common:Ke,errors:qe,config:$e},en={description:"Карта Home Assistant для эмуляции потока энергии Sunsynk, отображаемого на экране инвертора",version:"Версия",runtime_to:"ВРЕМЯ ДО",battery_floating:"ПЛАВАЮЩАЯ БАТАРЕЯ",charge:"ЗАРЯД",to:"ДО",daily_load:"НАГРУЗКА",daily_aux:"ВСПОМОГАТЕЛЬНАЯ",daily_grid_buy:"ПОКУПКА ИЗ СЕТИ",daily_grid_sell:"ПРОДАЖА В СЕТЬ",daily_solar:"ЕЖЕДНЕВНАЯ СОЛНЕЧНАЯ ЭНЕРГИЯ",daily_solar_left:"СОЛНЕЧНАЯ ЭНЕРГИЯ / ОСТАЛОСЬ СЕГОДНЯ",total_solar_generation:"СОЛНЕЧНАЯ ЭНЕРГИЯ / ИТОГО СОЛНЕЧНАЯ ЭНЕРГИЯ",daily_charge:"ЗАРЯД",daily_discharge:"РАЗРЯД",ratio:"Соотношение",timer_off:"Таймер выключен",timer_on:"Таймер включен",priority_batt:"Приоритет батареи",priority_load:"Приоритет нагрузки",nonessential_name:"Не существенное",aux_name:"Вспомогательное",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Существенное",autarky:"Autarky",discharging:"Разряд",charging:"Заряд",waiting:"Ожидание",standby:"Режим ожидания",no_battery:"Без батареи",selftest:"Самодиагностика",normal:"Нормально",alarm:"Авария",fault:"Неисправность",days:"дни",hrs:"часов",min:"мин",flash:"Flash",check:"Check",idle:"Бездействие",exporting:"Экспорт",importing:"Импорт",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:"Остановка",shutdown:"Отключение",offline:"Оффлайн",running:"Работает",sleepmode:"Спящий Режим",grid_name:"Сеть",limit:"Лимит",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Перезарядка",scheduledrecharge:"Запланированная перезарядка"},nn={battery:{bat:"Не определены атрибуты батареи",energy:"Пожалуйста, включите атрибут батарейной энергии и значение в Втч, например, 5.32 Энергия батареи: 5320",shutdown_soc:"Пожалуйста, включите атрибут батарейного shutdown_soc и значение, например, shutdown_soc: 20",full_capacity:"Полная емкость должна быть в диапазоне от 80 до 100",empty_capacity:"Пустая емкость должна быть <= 40",show_daily:"Пожалуйста, включите атрибуты day_battery_charge_70 и day_battery_discharge_71 и идентификаторы сущностей"},solar:{sol:"Не определены атрибуты солнечной энергии",mppts:"Пожалуйста, включите атрибут солнечных mppts и значение; 1,2,3 или 4, например, mppts: 2",show_daily:"Пожалуйста, включите атрибут day_pv_energy_108 и идентификатор сущности"},grid:{show_daily:"Пожалуйста, включите атрибуты day_grid_import_76 и day_grid_export_77 и идентификаторы сущностей"},essential_power:"Атрибут essential_power установлен на 'none'. Пожалуйста, включите атрибут inverter_power_175 и идентификатор сущности, чтобы карта могла вычислить это значение.",nonessential_power:"Атрибут nonessential_power установлен на 'none'. Пожалуйста, включите атрибут grid_power_169 и идентификатор сущности, чтобы карта могла вычислить это значение.",missing_entity:"Пожалуйста, включите атрибут и идентификатор сущности"},an={title:"Заголовок",title_colour:"Цвет Заголовка",title_size:"Размер Заголовка (px)",card_height:"Высота Карточки (px)",card_width:"Ширина Карточки (px)",decimal_places:"Десятичные Знаки",decimal_places_energy:"Десятичные Знаки (Ежедневная Енергия)",model:"Модель",autarky:"Autarky",cardstyle:"Стиль Карточки",large_font:"Увеличенный Шрифт",modern:"Современный Инвертор",show_solar:"Показать PV",show_battery:"Показать Батарею",show_grid:"Показать Сеть",show_aux:"Показать Вспомогательный",dynamic_line_width:"Динамические линии",max_line_width:"Макс. Ширина Линий",min_line_width:"Мин. Ширина Линий",solar:"Solar",mppts:"MPPTs",show_daily:"Ежедневный Показатель",show_daily_aux:"Ежедневный показатель вспомогательный",animation_speed:"Скорость Анимации",max_power:"Макс. Мощность",pv1_max_power:"PV1 Макс. Мощность",pv2_max_power:"PV2 Макс. Мощность",pv3_max_power:"PV3 Макс. Мощность",pv4_max_power:"PV4 Макс. Мощность",pv5_max_power:"PV5 Макс. Мощность",pv6_max_power:"PV6 Макс. Мощность",pv1_name:"PV1 Название",pv2_name:"PV2 Название",pv3_name:"PV3 Название",pv4_name:"PV4 Название",pv5_name:"PV5 Название",pv6_name:"PV6 Название",display_mode:"Режим Отображения",efficiency:"Режим Эффективности",battery:"Батарея",load1_name:"Нагрузка 1 Название",load2_name:"Нагрузка 2 Название",load3_name:"Нагрузка 3 Название",load4_name:"Нагрузка 4 Название",load1_icon:"Нагрузка 1 Иконка",load2_icon:"Нагрузка 2 Иконка",load3_icon:"Нагрузка 3 Иконка",load4_icon:"Нагрузка 4 Иконка",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Вспом. Нагр. 1 Название",aux_load2_name:"Вспом. Нагр. 2 Название",aux_load1_icon:"Вспом. Нагр. 2 Иконка",aux_load2_icon:"Вспом. Нагр. 2 Иконка",aux_dynamic_colour:"Вспом. Нагр. Динамический Цвет",show_daily_buy:"Показать Ежедневную Покупку",show_daily_sell:"Показать Ежедневную Продажу",no_grid_colour:"Нет Сети Цвет",grid_off_colour:"Сеть Отключена Цвет",grid_name:"Название Сети",colour:"Цвет",charge_colour:"Цвет Зарядки",linear_gradient:"Градиент",animate:"Анимированный Градиент",aux_colour:"Цвет",aux_off_colour:"Цвет выключенного",off_threshold:"Off Threshold",invert_grid:"Инвертировать показания",invert_load:"Инвертировать показания",shutdown_soc:"% Отключения",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Энергия",auto_scale:"Масштабирование",three_phase:"Три Фазы",dynamic_colour:"Динамический Цвет",dynamic_icon:"Динамическая Иконка",invert_power:"Инвертировать Мощность",show_absolute:"Убрать Отрицательные",hide_soc:"Скрыть SOC",invert_aux:"Инвертировать Вспомогательную",show_absolute_aux:"Убрать Отрицательные",show_nonessential:"Показать Не Обязательную Нагрузку",aux_name:"Название вспомогательного",aux_daily_name:"Название вспомогательного ежедневного",aux_type:"Тип вспомогательного",aux_loads:"Нагрузка вспомогательного",essential_name:"Название Обязательной Нагрузки",additional_loads:"Количество Нагрузок",export_colour:"Цвет Экспорта",nonessential_name:"Название Не Обязательной Нагрузки",nonessential_icon:"Иконка Не Обязательной Нагрузки",energy_cost_decimals:"Разрядность Стоимости Энергии",show_remaining_energy:"Показать Остаток Энергии",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Параметры Заголовка",general:"Общие Настройки",inverter:"Настройки Инвертора",solar:"Настройки Солнечного Поля",battery:"Настройки Батареи",grid:"Настройки Сети",load:"Настройки Нагрузки",entities:"Сущности",aux:"Настройки Всп. Нагрузки",energy:"Сущности Энергии",bat:"Сущности Батареи",sol:"Сущности Солнечного Поля",inv:"Сущности Инвертора",ld:"Сущности Нагрузки",gri:"Сущности Сети",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},on={common:en,errors:nn,config:an},rn={description:"Karta Home Assistant na emuláciu Sunsynk power flow, ktorý sa zobrazuje na obrazovke invertora",version:"Verzia",runtime_to:"RUNTIME DO",battery_floating:"PLÁVAJÚCA BATÉRIA",charge:"NABÍJANIE",to:"DO",daily_load:"DENNÁ ZÁŤAŽ",daily_aux:"DAILY POM",daily_grid_buy:"SIEŤ DENNÝ NÁKUP",daily_grid_sell:"SIEŤ DENNÝ PREDAJ",daily_solar:"DENNÝ SLNKO",daily_solar_left:"DENNÉ SLNKO / ZOSTÁVA DNES",total_solar_generation:"DENNÉ SLNKO / CELKOVO SLNKO",daily_charge:"DENNÉ NABÍJANIE",daily_discharge:"DENNÉ VYBÍJANIE",ratio:"Pomer",timer_off:"Časovač vypnutý",timer_on:"Časovač zapnutý",priority_batt:"Priorita Bat",priority_load:"Priorita Záťaž",nonessential_name:"Nepodstatné",aux_name:"Pomocné",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Podstatné",autarky:"Autarky",discharging:"Vykladanie",charging:"Nabíjanie",waiting:"Čakanie",standby:"Pohotovostný režim",no_battery:"Žiadna batéria",selftest:"Samotest",normal:"Normálny",alarm:"Poplach",fault:"Porucha",days:"dni",hrs:"hod",min:"min",flash:"Flash",check:"Check",idle:"Nečinnosť",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control",recharge:"Dobíjanie",scheduledrecharge:"Naplánované dobíjanie"},sn={battery:{bat:"Nie sú definované žiadne atribúty batérie",energy:"Uveďte atribút energie batérie a hodnotu vo Wh, napr. 5,32 Energia batérie: 5320",shutdown_soc:"Uveďte atribút vypnutia batérie a hodnotu, napr. shutdown_soc: 20",full_capacity:"Plná kapacita musí byť medzi 80 a 100",empty_capacity:"Prázdna kapacita musí byť <= 40",show_daily:"Uveďte atribúty day_battery_charge_70 a day_battery_discharge_71 a ID entity"},solar:{sol:"Nie sú definované žiadne solárne atribúty",mppts:"Uveďte atribút a hodnotu solar mppts; 1,2,3 alebo 4 napr. mppts: 2",show_daily:"Uveďte atribút day_pv_energy_108 a ID entity"},grid:{show_daily:"Uveďte atribúty day_grid_import_76 a day_grid_export_77 a ID entity"},essential_power:"Atribút essential_power je nastavený na hodnotu none. Uveďte atribút inverter_power_175 a ID entity, aby karta vypočítala túto hodnotu.",nonessential_power:"Atribút noesential_power je nastavený na hodnotu none. Uveďte atribút grid_power_169 a ID entity, aby karta vypočítala túto hodnotu.",missing_entity:"`Uveďte atribút a ID entity"},ln={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},cn={common:rn,errors:sn,config:ln},dn={description:"kartica Home Assistant za posnemanje pretoka energije Sunsynk, ki je prikazan na zaslonu pretvornika",version:"različica",runtime_to:"spraznitev do",battery_floating:"vzdrževanje polnosti",charge:"napolnitev",to:"",daily_load:"dnevna poraba",daily_aux:"dnevna pomoč",daily_grid_buy:"dnevni nakup iz omrežja",daily_grid_sell:"dnevna prodaja v omrežje",daily_solar:"dnevna proizvodnja",daily_solar_left:"dnevna proizvodnja / preostanek danes",total_solar_generation:"dnevna proizvodnja / skupna proizvodnja",daily_charge:"dnevno polnjenje",daily_discharge:"dnevno praznjenje",ratio:"razmerje",timer_off:"časovnik izklopljen",timer_on:"časovnik vklopljen",priority_batt:"prednost baterije",priority_load:"prednost bremen",nonessential_name:"nebistveno",aux_name:"dodatno",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"bistveno",autarky:"samoosk.",discharging:"praznjenje",charging:"polnjenje",waiting:"čakanje",standby:"mirovanje",no_battery:"ni baterije",selftest:"samotestiranje",normal:"normalno",alarm:"alarm",fault:"napaka",days:"d",hrs:"h",min:"min",flash:"nadgradnja",check:"preverjanje",idle:"neaktivno",exporting:"izvažanje",importing:"uvažanje",ongrid:"na omrežju",offgrid:"izven omrežja",normalstop:"normalna zaustavitev",shutdown:"izklop",offline:"brez povezave",running:"delovanje",sleepmode:"način spanja",grid_name:"omrežje",limit:"omejitev",off:"izklopljeno",lowpower:"nizka moč",bulk:"skupno",absorption:"absorpcija",float:"vzdrževanje",storage:"skladiščenje",equalize:"izenačevanje",passthru:"prehajanje",inverting:"invertiranje",powerassist:"pomaganje z močjo",powersupply:"napajanje",sustain:"vzdrževanje",externalcontrol:"zunanje upravljanje",recharge:"polnjenje",scheduledrecharge:"načrtovano polnjenje"},un={battery:{bat:"niso definirani atributi baterije",energy:"določite atribut energije baterije in vrednost v Wh, npr. 5.32 energija baterije: 5320",shutdown_soc:"določite atribut shutdown_soc baterije in vrednost, npr. shutdown_soc: 20",full_capacity:"polna kapaciteta mora biti med 80 in 100",empty_capacity:"prazna kapaciteta mora biti <= 40",show_daily:"določite atribute day_battery_charge_70 in day_battery_discharge_71 ter ID-je entitet"},solar:{sol:"niso definirani atributi sončne energije",mppts:"določite atribute in vrednosti MPPT-jev; 1,2,3 ali 4, npr. mppts: 2",show_daily:"določite atribut day_pv_energy_108 ter ID entitete"},grid:{show_daily:"določite atribute day_grid_import_76 in day_grid_export_77 ter ID-je entitet"},essential_power:"Atribut essential_power je nastavljen na none. Vključite atribut inverter_power_175 ter ID entitete, da kartica izračuna to vrednost.",nonessential_power:"Atribut nonessential_power je nastavljen na none. Vključite atribut grid_power_169 ter ID entitete, da kartica izračuna to vrednost.",missing_entity:"vključite atribut in ID entitete"},hn={title:"naslov",title_colour:"barva naslova",title_size:"velikost naslova (px)",card_height:"višina kartice (px)",card_width:"širina kartice (px)",decimal_places:"decimalna mesta",decimal_places_energy:"decimalna mesta (dnevna energija)",model:"model",autarky:"samoosk.",cardstyle:"slog kartice",large_font:"velika pisava",wide:"širok zaslonski način",modern:"moderno",show_solar:"prikaz sončne energije",show_battery:"prikaz baterije",show_grid:"prikaz omrežja",show_aux:"prikaz dodatnega (AUX)",dynamic_line_width:"dinamična širina linije",max_line_width:"največja širina linije",min_line_width:"najmanjša širina linije",solar:"sončna energija",mppts:"MPPT-ji",show_daily:"prikaz dnevnih podatkov",show_daily_aux:"prikaz dnevnih podatkov za dodatno",animation_speed:"hitrost animacije",max_power:"največja moč",pv1_max_power:"največja moč PV1",pv2_max_power:"največja moč PV2",pv3_max_power:"največja moč PV3",pv4_max_power:"največja moč PV4",pv5_max_power:"največja moč PV5",pv6_max_power:"največja moč PV6",pv1_name:"ime PV1",pv2_name:"ime PV2",pv3_name:"ime PV3",pv4_name:"ime PV4",pv5_name:"ime PV5",pv6_name:"ime PV6",display_mode:"način prikaza",efficiency:"način učinkovitosti",battery:"baterija",load1_name:"ime obremenitve 1",load2_name:"ime obremenitve 2",load3_name:"ime obremenitve 3",load4_name:"ime obremenitve 4",load1_icon:"ikona obremenitve 1",load2_icon:"ikona obremenitve 2",load3_icon:"ikona obremenitve 3",load4_icon:"ikona obremenitve 4",load5_name:"ime obremenitve 5",load6_name:"ime obremenitve 6",load5_icon:"ikona obremenitve 5",load6_icon:"ikona obremenitve 6",aux_load1_name:"ime dodatne (AUX) obremenitve 1",aux_load2_name:"ime dodatne (AUX) obremenitve 2",aux_load1_icon:"ikona dodatne (AUX) obremenitve 1",aux_load2_icon:"ikona dodatne (AUX) obremenitve 2",aux_dynamic_colour:"dinamična barva pomoči",off_threshold:"prag izklopa",show_daily_buy:"prikaz dnevnega nakupa",show_daily_sell:"prikaz dnevne prodaje",no_grid_colour:"barva brez omrežja",grid_off_colour:"barva izklopa omrežja",grid_name:"ime omrežja",colour:"barva",charge_colour:"barva polnjenja",linear_gradient:"linearni gradient",animate:"animiraj linearni gradient",aux_colour:"barva pomoči",aux_off_colour:"barva izklopa",panel_mode:"način plošče",invert_grid:"invertiraj vrednosti omrežja",invert_load:"invertiraj vrednosti obremenitve",shutdown_soc:"stanje napolnjenosti (SOC) ob izklopu",shutdown_soc_offgrid:"stanje napolnjenosti (SOC) ob izklopu (izven omrežja)",soc_end_of_charge:"stanje napolnjenosti (SOC) ob koncu polnjenja",navigate:"navigacijska pot",energy:"energija",auto_scale:"samodejno prilagajanje",three_phase:"trifazni",dynamic_colour:"dinamična barva",dynamic_icon:"dinamična ikona",invert_power:"invertiraj moč",show_absolute:"prikaži absolutno",hide_soc:"skrij stanje napolnjenosti (SOC)",invert_aux:"invertiraj dodatno (AUX)",show_absolute_aux:"prikaži absolutno dodatnega (AUX)",show_nonessential:"prikaži nebistveno",aux_name:"ime dodatnega (AUX)",aux_daily_name:"ime za dnevno pri dodatnem (AUX)",aux_type:"ikona dodatnega (AUX)",aux_loads:"dodatna (AUX) bremena",essential_name:"ime bistvenega",additional_loads:"dodatna bremena",export_colour:"barva izvoza",nonessential_name:"ime nebistvenega ",nonessential_icon:"ikona nebistvenega",energy_cost_decimals:"decimalna mesta stroškov energije",show_remaining_energy:"prikaži preostalo energijo",path_threshold:"prag poti",label_daily_grid_buy:"oznaka dnevnega nakupa iz omrežja",label_daily_grid_sell:"oznaka dnevne prodaje v omrežje",invert_flow:"invertiraj pretok",label_daily_load:"oznaka dnevne obremenitve",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"možnosti naslova",general:"splošne možnosti",inverter:"možnosti pretvornika",solar:"možnosti sončne energije",battery:"možnosti baterije",grid:"možnosti omrežja",load:"možnosti obremenitve",entities:"entitete",aux:"možnosti ddodatnega (AUX)",energy:"entitete energije",bat:"entitete baterije",sol:"entitete sončne energije",inv:"entitete pretvornika",ld:"entitete obremenitve",gri:"entitete omrežja",sensor:"neobvezni senzorji"}},gn={common:dn,errors:un,config:hn},mn={description:"Ett Home Assistant-kort för att emulera Sunsynk-energiflödet som visas på omvandlarskärmen",version:"Version",runtime_to:"DRIFTTID TILL",battery_floating:"BATTERI I FLYTLADDNING",charge:"LADDA",to:"TILL",daily_load:"FÖRBRUKNING IDAG",daily_aux:"AUX IDAG",daily_grid_buy:"INKÖPT IDAG",daily_grid_sell:"SÅLT IDAG",daily_solar:"SOLINTAG IDAG",daily_solar_left:"SOLINTAG IDAG / KVAR IDAG",total_solar_generation:"SOLINTAG IDAG / TOTAL SOLINTAG",daily_charge:"LADDAT IDAG",daily_discharge:"URLADDAT IDAG",ratio:"Förhållande",timer_off:"Timer av",timer_on:"Timer på",priority_batt:"Prioritet Batteri",priority_load:"Prioritet Belastning",nonessential_name:"Icke Nödvändigt",aux_name:"Hjälpkraft",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Nödvändig",autarky:"Självförsörjning",discharging:"Laddar ur",charging:"Laddar",waiting:"Väntar",standby:"Standby",no_battery:"Inget Batteri",selftest:"Självtest",normal:"Normal",alarm:"Larm",fault:"Fel",days:"dagar",hrs:"timmar",min:"min",flash:"Blinka",check:"Kontrollera",idle:"Inaktiv",exporting:"Export",importing:"Import",ongrid:"Ansluten till nätet",offgrid:"Frånkopplad från nätet",normalstop:"Normal Stopp",shutdown:"Avstängning",offline:"Offline",running:"Igång",sleepmode:"Viloläge",grid_name:"Nät",limit:"Begränsning",off:"Av",lowpower:"Låg Effekt",bulk:"Bulk",absorption:"Absorption",float:"Flytläge",storage:"Lagring",equalize:"Utjämna",passthru:"Passera genom",inverting:"Inverterar",powerassist:"Ström Assistans",powersupply:"Strömförsörjning",sustain:"Upprätthålla",externalcontrol:"Extern Kontroll",recharge:"Laddning",scheduledrecharge:"Schemalagd laddning"},pn={battery:{bat:"Inga batteriattribut definierade",energy:"Vänligen inkludera batterienergiattributet och värdet i Wh, t.ex. 5.32 Batterienergi: 5320",shutdown_soc:"Vänligen inkludera batteriets shutdown_soc-attribut och värde, t.ex shutdown_soc: 20",full_capacity:"Full kapacitet måste vara mellan 80 och 100",empty_capacity:"Tom kapacitet måste vara <= 40",show_daily:"Vänligen inkludera dag_battery_charge_70 och dag_battery_discharge_71 attribut och entitets-ID"},solar:{sol:"Inga solattribut definierade",mppts:"Vänligen inkludera solens mppts-attribut och värde; 1, 2, 3 eller 4 t.ex. mppts: 2",show_daily:"Vänligen inkludera dag_pv_energy_108 attribut och entitets-ID"},grid:{show_daily:"Vänligen inkludera dag_grid_import_76 och dag_grid_export_77 attribut och entitets-ID"},essential_power:"essential_power-attributet är inställt på none. Vänligen inkludera inverter_power_175-attributet och entitets-ID så att kortet kan beräkna detta värde.",nonessential_power:"nonessential_power-attributet är inställt på none. Vänligen inkludera grid_power_169-attributet och entitets-ID så att kortet kan beräkna detta värde.",missing_entity:"Vänligen inkludera attributet och entitets-ID"},yn={title:"Titel",title_colour:"Titel Färg",title_size:"Titel Storlek (px)",card_height:"Kort Höjd (px)",card_width:"Kort Bredd (px)",decimal_places:"Decimaler",decimal_places_energy:"Decimaler (Daglig Energi)",model:"Modell",autarky:"Självförsörjning",cardstyle:"Kortstil",large_font:"Stor Text",modern:"Modern",show_solar:"Visa Sol",show_battery:"Visa Batteri",show_grid:"Visa Nät",show_aux:"Visa Aux",dynamic_line_width:"Dynamisk Linjebredd",max_line_width:"Max Linjebredd",min_line_width:"Min Linjebredd",solar:"Sol",mppts:"MPPTs",show_daily:"Visa Daglig",show_daily_aux:"Visa Daglig Aux",animation_speed:"Animationshastighet",max_power:"Max Effekt",pv1_max_power:"PV1 Max Effekt",pv2_max_power:"PV2 Max Effekt",pv3_max_power:"PV3 Max Effekt",pv4_max_power:"PV4 Max Effekt",pv5_max_power:"PV5 Max Effekt",pv6_max_power:"PV6 Max Effekt",pv1_name:"PV1 Namn",pv2_name:"PV2 Namn",pv3_name:"PV3 Namn",pv4_name:"PV4 Namn",pv5_name:"PV5 Namn",pv6_name:"PV6 Namn",display_mode:"Visningsläge",efficiency:"Effektivitet",battery:"Batteri",load1_name:"Belastning 1 Namn",load2_name:"Belastning 2 Namn",load3_name:"Belastning 3 Namn",load4_name:"Belastning 4 Namn",load1_icon:"Belastning 1 Ikon",load2_icon:"Belastning 2 Ikon",load3_icon:"Belastning 3 Ikon",load4_icon:"Belastning 4 Ikon",load5_name:"Belastning 5 Namn",load6_name:"Belastning 6 Namn",load5_icon:"Belastning 5 Ikon",load6_icon:"Belastning 6 Ikon",aux_load1_name:"Aux Belastning 1 Namn",aux_load2_name:"Aux Belastning 2 Namn",aux_load1_icon:"Aux Belastning 1 Ikon",aux_load2_icon:"Aux Belastning 2 Ikon",aux_dynamic_colour:"Aux Dynamisk Färg",off_threshold:"Av Gränsvärde",show_daily_buy:"Visa Dagligt Köp",show_daily_sell:"Visa Dagligt Sälj",no_grid_colour:"Inget Nät Färg",grid_off_colour:"Nät Av Färg",grid_name:"Nät Namn",colour:"Färg",charge_colour:"Laddningsfärg",linear_gradient:"Linjär Gradient",animate:"Animera Linjär Gradient",aux_colour:"Färg",aux_off_colour:"Av Färg",invert_grid:"Invertera Värden",invert_load:"Invertera Värden",shutdown_soc:"Avstängning SOC",shutdown_soc_offgrid:"Avstängning SOC (Av Nät)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energi",auto_scale:"Skala Automatiskt",three_phase:"Tre Faser",dynamic_colour:"Dynamisk Färg",dynamic_icon:"Dynamisk Ikon",invert_power:"Invertera Effekt",show_absolute:"Visa Absolut",hide_soc:"Dölj SOC",invert_aux:"Invertera Aux",show_absolute_aux:"Visa Absolut",show_nonessential:"Visa Icke Nödvändigt",aux_name:"Aux Namn",aux_daily_name:"Daglig Aux Namn",aux_type:"Aux Ikon",aux_loads:"Aux Belastningar",essential_name:"Nödvändig Namn",additional_loads:"Ytterligare Belastningar",export_colour:"Export Färg",nonessential_name:"Icke Nödvändigt Namn",nonessential_icon:"Icke Nödvändig Ikon",energy_cost_decimals:"Energikostnad Decimaler",show_remaining_energy:"Visa Återstående Energi",path_threshold:"Väg Tröskelvärde",label_daily_grid_buy:"Daglig Nätköp Etikett",label_daily_grid_sell:"Daglig Nätsälj Etikett",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",load1_max_threshold:"Load 1 Max Threshold",load2_max_threshold:"Load 2 Max Threshold",load3_max_threshold:"Load 3 Max Threshold",load4_max_threshold:"Load 4 Max Threshold",load5_max_threshold:"Load 5 Max Threshold",load6_max_threshold:"Load 6 Max Threshold",max_colour:"Max Colour",custom_label:"Custom Label",soc_decimal_places:"SOC Decimal Places",center_no_grid:"Center content when Grid is hidden",cat_title:{title:"Titelalternativ",general:"Allmänna Alternativ",inverter:"Växlaralternativ",solar:"Solalternativ",battery:"Batterialternativ",grid:"Nätalternativ",load:"Belastningsalternativ",entities:"Entiteter",aux:"Aux Alternativ",energy:"Energientiteter",bat:"Batterientiteter",sol:"Solentiteter",inv:"Inverterentiteter",ld:"Belastningsentiteter",gri:"Nätentiteter",sensor:"Valfria Sensorer",bat1:"Battery 1",bat2:"Battery 2"}},_n={common:mn,errors:pn,config:yn},fn={description:"Карта Home Assistant для емуляції потоку енергії Sunsynk, що відображається на екрані інвертора",version:"Версія",runtime_to:"ЧАС ДО",battery_floating:"ПІДТРИМУЮЧИЙ ЗАРЯД",charge:"ЗАРЯД",to:"ДО",daily_load:"СПОЖИВАННЯ",daily_aux:"ДОПОМІЖНЕ ОБЛАДНАННЯ",daily_grid_buy:"КУПІВЛЯ",daily_grid_sell:"ПРОДАЖ",daily_solar:"ВИРОБЛЕНО СЬОГОДНІ",daily_solar_left:"ВИРОБЛЕНО/ЗАЛИШОК СЬОГОДНІ",total_solar_generation:"ВИРОБЛЕНО СЬОГОДНІ/ВСЬОГО",daily_charge:"ЗАРЯД",daily_discharge:"РОЗРЯД",ratio:"Пропорція",timer_off:"Таймер вимкнено",timer_on:"Таймер",priority_batt:"Пріорітет батареї",priority_load:"Пріорітет наван.",nonessential_name:"Негарантоване",aux_name:"Допоміжне",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",pv5_name:"PV5",pv6_name:"PV6",essential:"Основне",autarky:"Автоном.",discharging:"Розряджання",charging:"Заряджання",waiting:"Чекаю",standby:"Режим очікування",no_battery:"Без батареї",selftest:"Самодіагностика",normal:"Нормально",alarm:"Аварія",fault:"Несправність",days:"дн",hrs:"год",min:"хв",flash:"Flash",check:"Перевірити",idle:"Бездіяльність",exporting:"Експорт",importing:"Імпорт",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:"Звичайна зупинка",shutdown:"Відключення",offline:"Не в мережі",running:"Працює",sleepmode:"Режим сну",grid_name:"Мережа",limit:"Ліміт",off:"Вимкнено",lowpower:"Низька потужність",bulk:"Bulk",absorption:"Поглинання",float:"Підтримуючий заряд",storage:"Зберігання",equalize:"Вирівнювання",passthru:"Наскрізний режим",inverting:"Інвертування",powerassist:"Power Assist",powersupply:"Джерело живлення",sustain:"Підтримка",externalcontrol:"Зовнішній контроль",recharge:"Перезарядка",scheduledrecharge:"Запланована перезарядка"},vn={battery:{bat:"Атрибути батареї не визначено",energy:"Будь ласка, ввімкніть атрибут енергії батареї та значення у Вт-год, наприклад 5.32 Енергія батареї: 5320",shutdown_soc:"Будь ласка, додайте атрибут shutdown_soc батареї та значення, наприклад shutdown_soc: 20",full_capacity:"Повна ємність має становити від 80 до 100",empty_capacity:"Порожня ємність має бути <= 40",show_daily:"Будь ласка, додайте атрибути day_battery_charge_70 і day_battery_discharge_71 та ідентифікатори сутності"},solar:{sol:"Сонячні атрибути не визначені",mppts:"Будь ласка, додайте атрибут і значення solar mppts; 1, 2, 3 або 4 напр. mppts: 2",show_daily:"Будь ласка, додайте атрибут day_pv_energy_108 та ідентифікатор сутності"},grid:{show_daily:"Будь ласка, додайте атрибути day_grid_import_76 і day_grid_export_77 та ідентифікатори сутності"},essential_power:"Для атрибута essential_power встановлено значення none. Додайте атрибут inverter_power_175 та ідентифікатор сутності, щоб картка могла обчислити це значення.",nonessential_power:"Для атрибута nonessential_power встановлено значення none. Додайте атрибут grid_power_169 і ідентифікатор сутності, щоб картка могла обчислити це значення.",missing_entity:"Будь ласка, додайте атрибут і ідентифікатор сутності"},wn={title:"Назва",title_colour:"Колір заголовку",title_size:"Розмір заголовка (px)",card_height:"Висота картки (px)",card_width:"Ширина картки (px)",decimal_places:"Десяткові знаки",decimal_places_energy:"Десяткові знаки енергії",model:"Модель",autarky:"Самодостатність",cardstyle:"Стиль картки",large_font:"Збільшений шрифт",modern:"Піктограма інвертора",show_solar:"Показати сонячне поле",show_battery:"Показати батарею",show_grid:"Показати мережу",show_aux:"Показати допоміжне",dynamic_line_width:"Ширина динамічної лінії",max_line_width:"Максимальна ширина лінії",min_line_width:"Мінімальна ширина лінії",solar:"Сонячне поле",mppts:"Кількість MPPT",show_daily:"Показати енергію",show_daily_aux:"Показати допоміжну енергію",animation_speed:"Швидкість анімації",max_power:"Макс. потужність",pv1_max_power:"Макс. потужність PV1",pv2_max_power:"Макс. потужність PV2",pv3_max_power:"Макс. потужність PV3",pv4_max_power:"Макс. потужність PV4",pv5_max_power:"Макс. потужність PV5",pv6_max_power:"Макс. потужність PV6",pv1_name:"Назва PV1",pv2_name:"Назва PV2",pv3_name:"Назва PV3",pv4_name:"Назва PV4",pv5_name:"Назва PV4",pv6_name:"Назва PV4",display_mode:"Режим відображення",efficiency:"Режим ефективності",battery:"Батарея",load1_name:"Назва споживача 1",load2_name:"Назва споживача 2",load3_name:"Назва споживача 3",load4_name:"Назва споживача 4",load1_icon:"Значок споживача 1",load2_icon:"Значок споживача 2",load3_icon:"Значок споживача 3",load4_icon:"Значок споживача 4",load5_name:"Назва споживача 5",load6_name:"Назва споживача 6",load5_icon:"Значок споживача 5",load6_icon:"Значок споживача 6",aux_load1_name:"Назва допоміжного 1",aux_load2_name:"Назва допоміжного 2",aux_load1_icon:"Значок допоміжн. 1",aux_load2_icon:"Значок допоміжн. 2",aux_dynamic_colour:"Динамічний колір допоміжного",show_daily_buy:"Показати купівлю",show_daily_sell:"Показати продаж",no_grid_colour:"Колір коли немає імпорту і експорту",grid_off_colour:"Колір коли мережа вимкнена",grid_name:"Назва мережі",colour:"Колір",charge_colour:"Колір заряджання",linear_gradient:"Лінейний градієнт",animate:"Анімація лінійного градієнта",aux_colour:"Колір допоміжного",aux_off_colour:"Колір вимкненого допоміжного",off_threshold:"Поріг вимкнення",invert_grid:"Інвертувати мережу",invert_load:"Інвертувати навантаження",shutdown_soc:"SOC вимкнення",shutdown_soc_offgrid:"SOC вимкнення (Off Grid)",soc_end_of_charge:"SOC завершення заряду",navigate:"Посилання",energy:"Енергія",auto_scale:"Автомаштабування",three_phase:"Три фази",dynamic_colour:"Динамічний колір",dynamic_icon:"Динамічний значок",invert_power:"Інвертувати потужніть",show_absolute:"Показати абсолютні значення",hide_soc:"Сховати SOC",invert_aux:"Інвертувати допоміжне",show_absolute_aux:"Показати абсолютні значення",show_nonessential:"Показувати негарантоване",aux_name:"Назва допоміжного",aux_daily_name:"Назва енергії допоміжного",aux_type:"Тип допоміжного",aux_loads:"Кількість допоміжного",essential_name:"Назва важливого",additional_loads:"Кількість споживачів",export_colour:"Колір експорта",nonessential_name:"Назва негарантованого",nonessential_icon:"Значок негарантованого",energy_cost_decimals:"Десяткові знаки вартості енергії",show_remaining_energy:"Показати залишок енергії",path_threshold:"Поріг шляху",label_daily_grid_buy:"Назва купівлі з мережі",label_daily_grid_sell:"Назва продажу в мережу",invert_flow:"Інвертувати потік",label_daily_load:"Назва енергії навантаження",wide:"Широкоекранний макет",remaining_energy_to_shutdown:"Залишок енергії до вимкнення",off_colour:"Колір вимкнення",load1_max_threshold:"Поріг споживача 1",load2_max_threshold:"Поріг споживача 2",load3_max_threshold:"Поріг споживача 3",load4_max_threshold:"Поріг споживача 4",load5_max_threshold:"Поріг споживача 5",load6_max_threshold:"Поріг споживача 6",max_colour:"Колір максимума",custom_label:"Назва виробленої енергії",soc_decimal_places:"Десяткові знаки SOC",count:"Кількість",load1_switch:"Вимикач споживача 1",load2_switch:"Вимикач споживача 2",load3_switch:"Вимикач споживача 3",load4_switch:"Вимикач споживача 4",load5_switch:"Вимикач споживача 5",load6_switch:"Вимикач споживача 6",import_icon:"Значок імпорта",export_icon:"Значок експорта",disconnected_icon:"Значок відсутності мережі",center_no_grid:"Центрувати вміст коли мережа прихована",cat_title:{title:"Параметри заголовка",general:"Загальні параметри",inverter:"Параметри інвертора",solar:"Параметри сонячного поля",battery:"Параметри батареї",grid:"Параметри мережі",load:"Параметри навантаження",entities:"Сутності",aux:"Параметри допоміжного обладнання",energy:"Сутності енергії",bat:"Сутності батареї",sol:"Сутності сонячного поля",inv:"Сутності інвертора",ld:"Сутності навантаження",gri:"Сутності мережі",sensor:"Додаткові датчики",bat1:"Батарея 1",bat2:"Батарея 2"}},bn={common:fn,errors:vn,config:wn};const An={hass:null},xn={ca:Object.freeze({__proto__:null,common:ae,config:ie,default:re,errors:oe}),"zh-Hans":Object.freeze({__proto__:null,common:se,config:ce,default:de,errors:le}),cs:Object.freeze({__proto__:null,common:ue,config:ge,default:me,errors:he}),da:Object.freeze({__proto__:null,common:pe,config:_e,default:fe,errors:ye}),de:Object.freeze({__proto__:null,common:ve,config:be,default:Ae,errors:we}),en:Object.freeze({__proto__:null,common:xe,config:Ee,default:Le,errors:Pe}),es:Object.freeze({__proto__:null,common:Ne,config:Te,default:Se,errors:Ce}),et:Object.freeze({__proto__:null,common:Me,config:Oe,default:Be,errors:Ie}),fr:Object.freeze({__proto__:null,common:De,config:Ve,default:ze,errors:ke}),it:Object.freeze({__proto__:null,common:Re,config:Ge,default:He,errors:je}),nl:Object.freeze({__proto__:null,common:Ue,config:Ze,default:Qe,errors:We}),pl:Object.freeze({__proto__:null,common:Ye,config:Xe,default:Je,errors:Fe}),pt_BR:Object.freeze({__proto__:null,common:Ke,config:$e,default:tn,errors:qe}),ru:Object.freeze({__proto__:null,common:en,config:an,default:on,errors:nn}),sk:Object.freeze({__proto__:null,common:rn,config:ln,default:cn,errors:sn}),sl:Object.freeze({__proto__:null,common:dn,config:hn,default:gn,errors:un}),sv:Object.freeze({__proto__:null,common:mn,config:yn,default:_n,errors:pn}),uk:Object.freeze({__proto__:null,common:fn,config:wn,default:bn,errors:vn})};let Pn="";const En=new Map;function Ln(t,e="",n=""){const a=function(){const t=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_");return"".concat(An.hass?.selectedLanguage||An.hass?.locale?.language||An.hass?.language||t)}();let o=function(t,e){return t!==Pn&&(En.clear(),Pn=t),En.get("".concat(t,"|").concat(e))}(a,t);if(void 0===o){try{o=t.split(".").reduce((t,e)=>t[e],xn[a])}catch(e){o=t.split(".").reduce((t,e)=>t[e],xn.en)}void 0===o&&(o=t.split(".").reduce((t,e)=>t[e],xn.en)),"string"==typeof o&&function(t,e,n){if(t!==Pn&&(En.clear(),Pn=t),En.size>=500){const t=En.keys().next().value;void 0!==t&&En.delete(t)}En.set("".concat(t,"|").concat(e),n)}(a,t,o)}let i=o;return"string"!=typeof i&&(i=String(i)),""!==e&&""!==n&&(i=i.replace(e,n)),i}var Nn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Tn,Sn={exports:{}};var Mn,In,On=(Tn||(Tn=1,function(t,e){var n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",i="[object Function]",r="[object Object]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[o]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[i]=c["[object Map]"]=c["[object Number]"]=c[r]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var d,u="object"==typeof Nn&&Nn&&Nn.Object===Object&&Nn,h="object"==typeof self&&self&&self.Object===Object&&self,g=u||h||Function("return this")(),m=e&&!e.nodeType&&e,p=m&&t&&!t.nodeType&&t,y=p&&p.exports===m,_=y&&u.process,f=function(){try{var t=p&&p.require&&p.require("util").types;return t||_&&_.binding&&_.binding("util")}catch(t){}}(),v=f&&f.isTypedArray,w=Array.prototype,b=Function.prototype,A=Object.prototype,x=g["__core-js_shared__"],P=b.toString,E=A.hasOwnProperty,L=(d=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",N=A.toString,C=P.call(Object),T=RegExp("^"+P.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=y?g.Buffer:void 0,M=g.Symbol,I=g.Uint8Array;S&&S.allocUnsafe;var O,B,D=(O=Object.getPrototypeOf,B=Object,function(t){return O(B(t))}),k=Object.create,V=A.propertyIsEnumerable,z=w.splice,R=M?M.toStringTag:void 0,j=function(){try{var t=ut(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),G=S?S.isBuffer:void 0,H=Math.max,U=Date.now,W=ut(g,"Map"),Z=ut(Object,"create"),Q=function(){function t(){}return function(e){if(!xt(e))return{};if(k)return k(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Y(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}function F(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}function J(t){var e=this.__data__=new F(t);this.size=e.size}function K(t,e){var n=ft(t),a=!n&&_t(t),o=!n&&!a&&wt(t),i=!n&&!a&&!o&&Et(t),r=n||a||o||i,s=r?function(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}(t.length,String):[],l=s.length;for(var c in t)r&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ht(c,l))||s.push(c);return s}function q(t,e,n){(void 0!==n&&!yt(t[e],n)||void 0===n&&!(e in t))&&et(t,e,n)}function $(t,e,n){var a=t[e];E.call(t,e)&&yt(a,n)&&(void 0!==n||e in t)||et(t,e,n)}function tt(t,e){for(var n=t.length;n--;)if(yt(t[n][0],e))return n;return-1}function et(t,e,n){"__proto__"==e&&j?j(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}Y.prototype.clear=function(){this.__data__=Z?Z(null):{},this.size=0},Y.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Y.prototype.get=function(t){var e=this.__data__;if(Z){var a=e[t];return a===n?void 0:a}return E.call(e,t)?e[t]:void 0},Y.prototype.has=function(t){var e=this.__data__;return Z?void 0!==e[t]:E.call(e,t)},Y.prototype.set=function(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=Z&&void 0===e?n:e,this},F.prototype.clear=function(){this.__data__=[],this.size=0},F.prototype.delete=function(t){var e=this.__data__,n=tt(e,t);return!(n<0||(n==e.length-1?e.pop():z.call(e,n,1),--this.size,0))},F.prototype.get=function(t){var e=this.__data__,n=tt(e,t);return n<0?void 0:e[n][1]},F.prototype.has=function(t){return tt(this.__data__,t)>-1},F.prototype.set=function(t,e){var n=this.__data__,a=tt(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(W||F),string:new Y}},X.prototype.delete=function(t){var e=dt(this,t).delete(t);return this.size-=e?1:0,e},X.prototype.get=function(t){return dt(this,t).get(t)},X.prototype.has=function(t){return dt(this,t).has(t)},X.prototype.set=function(t,e){var n=dt(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this},J.prototype.clear=function(){this.__data__=new F,this.size=0},J.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},J.prototype.get=function(t){return this.__data__.get(t)},J.prototype.has=function(t){return this.__data__.has(t)},J.prototype.set=function(t,e){var n=this.__data__;if(n instanceof F){var a=n.__data__;if(!W||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new X(a)}return n.set(t,e),this.size=n.size,this};var nt=function(t,e,n){for(var a=-1,o=Object(t),i=n(t),r=i.length;r--;){var s=i[++a];if(!1===e(o[s],s,o))break}return t};function at(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?function(t){var e=E.call(t,R),n=t[R];try{t[R]=void 0;var a=!0}catch(t){}var o=N.call(t);return a&&(e?t[R]=n:delete t[R]),o}(t):function(t){return N.call(t)}(t)}function ot(t){return Pt(t)&&at(t)==o}function it(t){return!(!xt(t)||function(t){return!!L&&L in t}(t))&&(bt(t)?T:s).test(function(t){if(null!=t){try{return P.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function rt(t){if(!xt(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=gt(t),n=[];for(var a in t)("constructor"!=a||!e&&E.call(t,a))&&n.push(a);return n}function st(t,e,n,a,o){t!==e&&nt(e,function(i,s){if(o||(o=new J),xt(i))!function(t,e,n,a,o,i,s){var l=mt(t,n),c=mt(e,n),d=s.get(c);if(d)q(t,n,d);else{var u,h=i?i(l,c,n+"",t,e,s):void 0,g=void 0===h;if(g){var m=ft(c),p=!m&&wt(c),y=!m&&!p&&Et(c);h=c,m||p||y?ft(l)?h=l:Pt(u=l)&&vt(u)?h=function(t,e){var n=-1,a=t.length;for(e||(e=Array(a));++n<a;)e[n]=t[n];return e}(l):p?(g=!1,h=c.slice()):y?(g=!1,h=function(t){var e,n,a=(e=t.buffer,n=new e.constructor(e.byteLength),new I(n).set(new I(e)),n);return new t.constructor(a,t.byteOffset,t.length)}(c)):h=[]:function(t){if(!Pt(t)||at(t)!=r)return!1;var e=D(t);if(null===e)return!0;var n=E.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==C}(c)||_t(c)?(h=l,_t(l)?h=function(t){return function(t,e,n){var a=!n;n||(n={});for(var o=-1,i=e.length;++o<i;){var r=e[o],s=void 0;void 0===s&&(s=t[r]),a?et(n,r,s):$(n,r,s)}return n}(t,Lt(t))}(l):xt(l)&&!bt(l)||(h=function(t){return"function"!=typeof t.constructor||gt(t)?{}:Q(D(t))}(c))):g=!1}g&&(s.set(c,h),o(h,c,a,i,s),s.delete(c)),q(t,n,h)}}(t,e,s,n,st,a,o);else{var l=a?a(mt(t,s),i,s+"",t,e,o):void 0;void 0===l&&(l=i),q(t,s,l)}},Lt)}function lt(t,e){return pt(function(t,e,n){return e=H(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,i=H(a.length-e,0),r=Array(i);++o<i;)r[o]=a[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=a[o];return s[e]=n(r),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,s)}}(t,e,Tt),t+"")}var ct=j?function(t,e){return j(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Tt;function dt(t,e){var n,a,o=t.__data__;return("string"==(a=typeof(n=e))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function ut(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return it(n)?n:void 0}function ht(t,e){var n=typeof t;return!!(e=null==e?a:e)&&("number"==n||"symbol"!=n&&l.test(t))&&t>-1&&t%1==0&&t<e}function gt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||A)}function mt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var pt=function(t){var e=0,n=0;return function(){var a=U(),o=16-(a-n);if(n=a,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ct);function yt(t,e){return t===e||t!=t&&e!=e}var _t=ot(function(){return arguments}())?ot:function(t){return Pt(t)&&E.call(t,"callee")&&!V.call(t,"callee")},ft=Array.isArray;function vt(t){return null!=t&&At(t.length)&&!bt(t)}var wt=G||function(){return!1};function bt(t){if(!xt(t))return!1;var e=at(t);return e==i||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function At(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function xt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Pt(t){return null!=t&&"object"==typeof t}var Et=v?function(t){return function(e){return t(e)}}(v):function(t){return Pt(t)&&At(t.length)&&!!c[at(t)]};function Lt(t){return vt(t)?K(t):rt(t)}var Nt,Ct=(Nt=function(t,e,n){st(t,e,n)},lt(function(t,e){var n=-1,a=e.length,o=a>1?e[a-1]:void 0,i=a>2?e[2]:void 0;for(o=Nt.length>3&&"function"==typeof o?(a--,o):void 0,i&&function(t,e,n){if(!xt(n))return!1;var a=typeof e;return!!("number"==a?vt(n)&&ht(e,n.length):"string"==a&&e in n)&&yt(n[e],t)}(e[0],e[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n<a;){var r=e[n];r&&Nt(t,r,n,o)}return t}));function Tt(t){return t}t.exports=Ct}(Sn,Sn.exports)),Sn.exports),Bn=Cn(On);!function(t){t.language="language",t.system="system",t.comma_decimal="comma_decimal",t.decimal_comma="decimal_comma",t.space_comma="space_comma",t.none="none"}(Mn||(Mn={})),function(t){t.language="language",t.system="system",t.am_pm="12",t.twenty_four="24"}(In||(In={}));var Dn=function(t,e,n,a){a=a||{},n=null==n?{}:n;var o=new Event(e,{bubbles:void 0===a.bubbles||a.bubbles,cancelable:Boolean(a.cancelable),composed:void 0===a.composed||a.composed});return o.detail=n,t.dispatchEvent(o),o};class kn{static toNum(t,e=-1,n=!1){let a=Number(t);return Number.isNaN(a)?0:(e>=0&&(a=parseFloat(a.toFixed(e))),n&&(a*=-1),a)}static invertKeyPoints(t){return t.split(";").reverse().join(";")}static formatNumberLocale(t,e){const n=Number.isNaN(e)?2:e,a=An.hass,o=a?.locale?.number_format,i=a?.selectedLanguage||a?.locale?.language||a?.language;let r,s=!0;switch(o){case"auto":case"language":r=i;break;case"system":default:r=void 0;break;case"comma_decimal":r="en-US";break;case"decimal_comma":r="de-DE";break;case"space_comma":r="fr-FR";break;case"none":r=i,s=!1}return t.toLocaleString(r,{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:s})}static convertValue(t,e=2){if(e=Number.isNaN(e)?2:e,Math.abs(t)>=1e6){const n=t/1e6;return"".concat(kn.formatNumberLocale(n,e)," MW")}if(Math.abs(t)>=1e3){const n=t/1e3;return"".concat(kn.formatNumberLocale(n,e)," kW")}{const e=Math.round(t);return"".concat(e.toLocaleString(void 0)," W")}}static convertValueNew(t,e="",n=2){n=isNaN(n)?2:n;const a=Number(t);if(isNaN(a))return 0;const o=ne[e];if(!o)return"".concat(kn.formatNumberLocale(a,n)," ").concat(e);if(e===qt.WATT_HOUR&&Math.abs(a)<1e3){const t=Math.round(a);return"".concat(t.toLocaleString(void 0)," ").concat(e)}if(e===Kt.WATT&&Math.abs(a)<1e3){const t=Math.round(a);return"".concat(t.toLocaleString(void 0)," ").concat(e)}if(e===Kt.KILO_WATT&&Math.abs(a)<1){const t=Math.round(1e3*a);return"".concat(t.toLocaleString(void 0)," W")}if(e===Kt.MEGA_WATT&&Math.abs(a)<1){const t=1e3*a;return"".concat(kn.formatNumberLocale(t,n)," kW")}for(const t of o)if(Math.abs(a)>=t.threshold){const e=a/t.divisor,o=t.decimal||n,i=kn.formatNumberLocale(e,o);return"".concat(i," ").concat(t.targetUnit)}return"".concat(kn.formatNumberLocale(a,n)," ").concat(e)}static handlePopup(t,e){e&&(t.preventDefault(),this._handleClick(t,{action:"more-info"},e))}static handleNavigation(t,e){e&&(t.preventDefault(),this._handleClick(t,{action:"navigate",navigation_path:e},null))}static _handleClick(t,e,n){if(t&&(n||e.navigation_path))switch(t.stopPropagation(),e.action){case"more-info":this._dispatchMoreInfoEvent(t,n);break;case"navigate":this._handleNavigationEvent(t,e.navigation_path);break;default:console.warn("Action '".concat(e.action,"' is not supported."))}}static _dispatchMoreInfoEvent(t,e){if(kn.isPopupOpen)return;kn.isPopupOpen=!0;const n=new CustomEvent("hass-more-info",{composed:!0,detail:{entityId:e}});history.pushState({popupOpen:!0},"",window.location.href),t.target.dispatchEvent(n);const a=()=>{kn.isPopupOpen&&(kn.isPopupOpen=!1,window.removeEventListener("popstate",a))};window.addEventListener("popstate",a,{once:!0})}static toHexColor(t){if(!t)return"grey";if(/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(t))return t.toUpperCase();const e=t.match(/^rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/);if(e){const[t,n,a]=e.slice(1,4).map(Number);return"#".concat((1<<24|t<<16|n<<8|a).toString(16).slice(1).toUpperCase())}return t}static _handleNavigationEvent(t,e){e?function(t,e,n){void 0===n&&(n=!1),n?history.replaceState(null,"",e):history.pushState(null,"",e),Dn(window,"location-changed",{replace:n})}(t.target,e):console.warn("Navigation path is not provided.")}}kn.isPopupOpen=!1;const Vn={ess:"m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",essBat:"M15 9h1V7.5h4V9h1c.55 0 1 .45 1 1v11c0 .55-.45 1-1 1h-6c-.55 0-1-.45-1-1V10c0-.55.45-1 1-1m1 2v3h4v-3h-4m-4-5.31l-5 4.5V18h5v2H5v-8H2l10-9l2.78 2.5H14v1.67l-.24.1L12 5.69Z",essGrid:"M5 20v-8H2l10-9l10 9h-3v8zm7-14.31l-5 4.5V18h10v-7.81zM11.5 18v-4H9l3.5-7v4H15z",essPv:"M11.6 3.45zM18.25 19.6v-7.6h2.85L11.6 3.45 2.1 12h2.85v7.6zM11.6 6.015l4.75 4.275V17.7H6.85v-7.41zM6.58 2.8v1.42L8 3.508zm-.4 2.4L5.2 6.184l1.5.5zM2.8 6.58 3.508 8l.712-1.42zM6 2.8H2.8v3.2c.228.068.468.1.708.1 1.432.004 2.596-1.16 2.6-2.6-.004-.236-.04-.472-.108-.7M12.5 3.844l2.25 2.026.5-.5-2.24-2.04zM17.71 8.53 18.2 8.04 15.76 5.84 15.26 6.34ZM20.52 11.09l.48-.49-2.31-2.14-.5.5z M18.1299 5.1169 17.318 4.6482l2.4492-1.6171-.75 1.299.8119.4687-2.4492 1.6171z",boiler:"M9.3 10.775q0 .475.163.925t.462.825q.05-.3.2-.588t.375-.487L12 10l1.475 1.475q.225.2.375.475t.2.575q.275-.375.487-.8t.213-.9q0-.475-.15-.913t-.45-.812q-.275.125-.563.2T13 9.375q-.75 0-1.375-.425t-.95-1.125q-.3.3-.55.637t-.438.713Q9.5 9.55 9.4 9.95t-.1.825ZM12 12.1l-.425.425q-.1.1-.138.2t-.037.225q0 .25.175.4t.425.15q.25 0 .425-.15t.175-.4q0-.125-.037-.225t-.138-.2L12 12.1ZM12 5v1.9q0 .425.3.713t.725.287q.275 0 .5-.162t.4-.388l.175-.25q1.025.575 1.588 1.563t.562 2.162q0 1.75-1.25 2.963T12 15q-1.75 0-2.975-1.225T7.8 10.8q0-1.925 1.225-3.425T12 5ZM6 22q-.825 0-1.413-.588T4 20V6q0-1.65 1.175-2.825T8 2h8q1.65 0 2.825 1.175T20 6v14q0 .825-.588 1.413T18 22H6Zm0-4v2h12v-2q-.75 0-1.2.5T15 19q-1.35 0-1.763-.5T12 18q-.825 0-1.238.5T9 19q-1.35 0-1.763-.5T6 18Zm3-1q.825 0 1.238-.5T12 16q1.35 0 1.8.5t1.2.5q.75 0 1.2-.5T18 16V6q0-.825-.588-1.413T16 4H8q-.825 0-1.413.588T6 6v10q1.35 0 1.763.5T9 17Z",oven:"M3 7.5A4.5 4.5 0 0 1 7.5 3h17A4.5 4.5 0 0 1 29 7.5v17a4.5 4.5 0 0 1-4.5 4.5h-17A4.5 4.5 0 0 1 3 24.5v-17Zm24 0A2.5 2.5 0 0 0 24.5 5h-17A2.5 2.5 0 0 0 5 7.5V11h22V7.5Zm0 17V13H5v11.5A2.5 2.5 0 0 0 7.5 27h17a2.5 2.5 0 0 0 2.5-2.5Zm-17-15a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3Zm6 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3ZM23.5 8a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0ZM9 23v-6h14v6H9Zm-.5-8A1.5 1.5 0 0 0 7 16.5v7A1.5 1.5 0 0 0 8.5 25h15a1.5 1.5 0 0 0 1.5-1.5v-7a1.5 1.5 0 0 0-1.5-1.5h-15Z",aircon:"M6.59.66c2.34-1.81 4.88.4 5.45 3.84c.43 0 .85.12 1.23.34c.52-.6.98-1.42.8-2.34c-.42-2.15 1.99-3.89 4.28-.92c1.81 2.34-.4 4.88-3.85 5.45c0 .43-.11.86-.34 1.24c.6.51 1.42.97 2.34.79c2.13-.42 3.88 1.98.91 4.28c-2.34 1.81-4.88-.4-5.45-3.84c-.43 0-.85-.13-1.22-.35c-.52.6-.99 1.43-.81 2.35c.42 2.14-1.99 3.89-4.28.92c-1.82-2.35.4-4.89 3.85-5.45c0-.43.13-.85.35-1.23c-.6-.51-1.42-.98-2.35-.8c-2.13.42-3.88-1.98-.91-4.28M5 16h2a2 2 0 0 1 2 2v6H7v-2H5v2H3v-6a2 2 0 0 1 2-2m0 2v2h2v-2H5m7.93-2H15l-2.93 8H10l2.93-8M18 16h3v2h-3v4h3v2h-3a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2Z",pump:"M3 17h4.1q-.425-.425-.787-.925T5.675 15H3v2Zm9 0q2.075 0 3.538-1.463T17 12q0-2.075-1.463-3.538T12 7Q9.925 7 8.462 8.463T7 12q0 2.075 1.463 3.538T12 17Zm6.325-8H21V7h-4.1q.425.425.788.925T18.325 9ZM1 20v-8h2v1h2.075q-.05-.25-.063-.488T5 12q0-2.925 2.038-4.963T12 5h9V4h2v8h-2v-1h-2.075q.05.25.063.488T19 12q0 2.925-2.038 4.963T12 19H3v1H1Zm2-3v-2v2Zm18-8V7v2Zm-9 3Zm0 3q-.825 0-1.413-.588T10 13q0-.575.238-1.137t.912-1.613L12 9l.85 1.25q.675 1.05.913 1.613T14 13q0 .825-.588 1.413T12 15Z",inverter:"M35 887 l-27 -23 0 -404 0 -404 27 -23 c26 -23 28 -23 329 -23 284 0 305 1 327 19 l24 19 0 412 0 412 -24 19 c-22 18 -43 19 -327 19 -301 0 -303 0 -329 -23z m585 -157 l0 -80 -255 0 -255 0 0 80 0 80 255 0 255 0 0 -80z m-242 -229 c44 -34 40 -46 -14 -46 -60 0 -97 -38 -93 -94 5 -64 -23 -80 -35 -20 -9 44 24 113 63 134 35 18 34 15 21 50 -11 29 -14 30 58 -24z m110 -129 c4 -51 -19 -97 -59 -117 -27 -14 -30 -20 -23 -48 l6 -31 -51 43 c-29 24 -49 46 -46 49 3 4 23 5 44 3 58 -4 95 32 97 95 3 60 1 57 17 52 6 -3 13 -23 15 -46z",generator:"M6 3a2 2 0 0 0-2 2v11h2v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h6v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h2V5a2 2 0 0 0-2-2H6m6 4V5h6v2h-6m0 2h6v2h-6V9M8 5v4h2l-3 6v-4H5l3-6m14 15v2H2v-2h20Z",aux:"M5 20v-8H2l10-9l10 9h-3v8H5m7-14.31l-5 4.5V18h10v-7.81l-5-4.5M11.5 18v-4H9l3.5-7v4H15l-3.5 7Z",nonEss:"M 12 3 z z M 19 20 v -8 h 3 L 12 3 L 2 12 h 3 v 8 z M 12 5.7 l 5 4.5 V 18 H 7 v -7.8 z",timerOn:"M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42A8.962 8.962 0 0 0 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a8.994 8.994 0 0 0 7.03-14.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7s7 3.13 7 7s-3.13 7-7 7z",timerOff:"m19.95 17.15l-1.5-1.5q.275-.675.413-1.337T19 13q0-2.9-2.05-4.95T12 6q-.6 0-1.275.125t-1.4.4l-1.5-1.5q.95-.5 2.012-.763T12 4q1.5 0 2.938.5t2.712 1.45l1.4-1.4l1.4 1.4l-1.4 1.4q.95 1.275 1.45 2.713T21 13q0 1.05-.263 2.087t-.787 2.063ZM13 10.2V8h-2v.2l2 2Zm6.8 12.4l-2.4-2.4q-1.2.875-2.588 1.338T12 22q-1.85 0-3.488-.713T5.65 19.35q-1.225-1.225-1.938-2.863T3 13q0-1.5.463-2.888T4.8 7.6L1.4 4.2l1.4-1.4l18.4 18.4l-1.4 1.4ZM12 20q1.05 0 2.05-.325t1.875-.925L6.2 9.025q-.6.875-.9 1.875T5 13q0 2.9 2.05 4.95T12 20ZM9 3V1h6v2H9Zm2.075 10.875Zm2.825-2.8Z",solarSellOn:"m5.18 5.45l-1.78-.9L4.66 2h8.47l1.27 2.55l-1.78.89L11.9 4h-6l-.72 1.45M15.5 8H11l-.8-3H7.6l-.79 3H2.28L1 10.55l1.79.89L3.5 10h10.78l.72 1.45l1.79-.89L15.5 8m-.83 14H12.6l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H3.13L6 11h2.09l-.36 1.35L8.9 14.1l1.16-1.75L9.71 11h2.07l2.89 11M8.3 15l-.9-1.35l-1.18 4.48L8.3 15m3.28 3.12l-1.18-4.48L9.5 15l2.08 3.12M23 16l-4-4v3h-4v2h4v3l4-4Z",solarSellOff:"M 26 16 L 22 12 L 22 15 L 18 15 L 18 17 L 22 17 L 22 20 L 26 16 Z M 22.1 21.5 L 2.4 1.7 L 1.1 3 L 6.1 8 L 5.4 8 L 4.1 10.5 L 5.9 11.4 L 6.6 10 L 8.1 10 L 9.1 11 L 6.2 22 L 8.3 22 L 8.5 21.1 L 12 15.9 L 15.5 21.1 L 15.7 22 L 17.8 22 L 17 18.8 L 20.9 22.7 L 22.1 21.5 M 9.3 18.1 L 10.5 13.6 L 11.4 14.9 L 9.3 18.1 M 14.7 18.1 L 12.6 15 L 12.8 14.7 L 14.1 16 L 14.7 18.1 M 14.2 11 L 14.9 11 L 15.1 11.9 L 14.2 11 M 14.1 8 L 18.6 8 L 19.9 10.6 L 18.1 11.5 L 17.4 10 L 13.2 10 L 10.2 7 L 10.7 5 L 13.3 5 L 14.1 8 M 8.4 5.2 L 6.9 3.7 L 7.8 2 L 16.3 2 L 17.6 4.5 L 15.8 5.4 L 15 4 L 9 4 L 8.4 5.2 Z",priorityLoadOff:"M15.95 21.175L13.1 18.35l1.425-1.4l1.425 1.4l3.525-3.525l1.425 1.4l-4.95 4.95ZM8 22q-.425 0-.713-.288T7 21V5q0-.425.288-.713T8 4h2V2h4v2h2q.425 0 .713.288T17 5v7q-.525 0-1.025.088T15 12.35V6H9v14h2.35q.2.575.488 1.075t.687.925H8Zm1-2h2.35H11h.35H9Z",priorityLoadOn:"m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",progGridOn:"M11.5 19h1v-1.85l3.5-3.5V9H8v4.65l3.5 3.5V19Zm-2 2v-3L6 14.5V9q0-.825.588-1.413T8 7h1L8 8V3h2v4h4V3h2v5l-1-1h1q.825 0 1.413.588T18 9v5.5L14.5 18v3h-5Zm2.5-7Z",progGridOff:"M10 3H8v1.88l2 2zm6 6v3.88l1.8 1.8l.2-.2V9c0-1.1-.9-2-2-2V3h-2v4h-3.88l2 2H16zM4.12 3.84L2.71 5.25L6 8.54v5.96L9.5 18v3h5v-3l.48-.48l4.47 4.47l1.41-1.41L4.12 3.84zm8.38 13.33V19h-1v-1.83L8 13.65v-3.11l5.57 5.57l-1.07 1.06z",gridExportCompact:"m5.39 5.45-1.78-.9L4.87 2h8.47l1.27 2.55-1.78.89L12.11 4h-6zM15.73 8H11.2l-.79-3h-2.6L7 8H2.5l-1.29 2.55 1.79.89.73-1.44H14.5l.71 1.45 1.79-.89zm-.85 14h-2.07l-.24-.9-3.46-5.2-3.47 5.2-.23.9H3.34l2.89-11h2.07l-.36 1.35 1.17 1.75 1.16-1.75-.35-1.35H12zm-6.38-7-.89-1.35-1.18 4.48zm3.29 3.12-1.18-4.48-.9 1.36zM15 16l4-4v3H23v2h-4v3z",gridExport:"m11.39 5.45l-1.78-.9L10.87 2h8.47l1.27 2.55l-1.78.89L18.11 4h-6zM21.73 8H17.2l-.79-3h-2.6L13 8H8.5l-1.29 2.55l1.79.89l.73-1.44H20.5l.71 1.45l1.79-.89zm-.85 14h-2.07l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H9.34l2.89-11h2.07l-.36 1.35l1.17 1.75l1.16-1.75l-.35-1.35H18zm-6.38-7l-.89-1.35l-1.18 4.48zm3.29 3.12l-1.18-4.48l-.9 1.36zM9 16l-4-4v3H1v2h4v3z",gridOff:"M22.1 21.5L2.4 1.7L1.1 3l5 5h-.7l-1.3 2.5l1.8.9l.7-1.4h1.5l1 1l-2.9 11h2.1l.2-.9l3.5-5.2l3.5 5.2l.2.9h2.1l-.8-3.2l3.9 3.9l1.2-1.2M9.3 18.1l1.2-4.5l.9 1.3l-2.1 3.2m5.4 0L12.6 15l.2-.3l1.3 1.3l.6 2.1m-.5-7.1h.7l.2.9l-.9-.9m-.1-3h4.5l1.3 2.6l-1.8.9l-.7-1.5h-4.2l-3-3l.5-2h2.6l.8 3M8.4 5.2L6.9 3.7L7.8 2h8.5l1.3 2.5l-1.8.9L15 4H9l-.6 1.2Z",gridOn:"m8.28 5.45l-1.78-.9L7.76 2h8.47l1.27 2.55l-1.78.89L15 4H9l-.72 1.45M18.62 8h-4.53l-.79-3h-2.6l-.79 3H5.38L4.1 10.55l1.79.89l.73-1.44h10.76l.72 1.45l1.79-.89L18.62 8m-.85 14H15.7l-.24-.9L12 15.9l-3.47 5.2l-.23.9H6.23l2.89-11h2.07l-.36 1.35L12 14.1l1.16-1.75l-.35-1.35h2.07l2.89 11m-6.37-7l-.9-1.35l-1.18 4.48L11.4 15m3.28 3.12l-1.18-4.48l-.9 1.36l2.08 3.12Z",sun:"M11.45 2v3.55L15 3.77L11.45 2m-1 6L8 10.46l3.75 1.25L10.45 8M2 11.45L3.77 15l1.78-3.55H2M10 2H2v8c.57.17 1.17.25 1.77.25c3.58.01 6.49-2.9 6.5-6.5c-.01-.59-.1-1.18-.27-1.75m7 20v-6h-3l5-9v6h3l-5 9Z"};var zn,Rn,jn,Gn,Hn,Un,Wn,Zn;function Qn(t,e,n,a,o){const i="".concat(t,"LG"),r=a[{pvtotal:"totalPVEfficiency",pv1:"PV1Efficiency",pv2:"PV2Efficiency",pv3:"PV3Efficiency",pv4:"PV4Efficiency",pv5:"PV5Efficiency",pv6:"PV6Efficiency"}[t]||"totalPVEfficiency"],s="number"==typeof r?r:parseFloat(String(r??"").replace("%","")),l=Math.max(0,Math.min(100,Number.isFinite(s)?s:0)),c=a.solarColour,d=[1,3].includes(o.solar.efficiency)&&l>0,u=0===l?"grey":c,h=d?"url(#".concat(i,")"):u;let g="";("pv2"===t&&1===o.solar.mppts||"pv3"===t&&[1,2].includes(o.solar.mppts)||"pv4"===t&&[1,2,3].includes(o.solar.mppts)||"pv5"===t&&[1,2,3,4].includes(o.solar.mppts)||"pv6"===t&&[1,2,3,4,5].includes(o.solar.mppts))&&(g="st12");const m="pvtotal"===t&&1===o.solar.mppts?"display: none;":"";return Z(zn||(zn=Ot(['\n\t\t<svg\n\t\t\tid="','"\n\t\t\tx="','"\n\t\t\ty="','"\n\t\t\twidth="70"\n\t\t\theight="30"\n\t\t\tviewBox="0 0 70 30"\n\t\t\toverflow="visible"\n\t\t>\n\t\t\t','\n\t\t\t<rect\n\t\t\t\tid="','"\n\t\t\t\twidth="70"\n\t\t\t\theight="30"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tstroke-width="1"\n\t\t\t\tpointer-events="all"\n\t\t\t\tclass="','"\n\t\t\t\tstyle="','"\n\t\t\t/>\n\t\t</svg>\n\t'])),t,e,n,d?Z(Rn||(Rn=Ot(['<defs>\n\t\t\t\t\t\t<linearGradient\n\t\t\t\t\t\t\tid="','"\n\t\t\t\t\t\t\tx1="0%"\n\t\t\t\t\t\t\tx2="0%"\n\t\t\t\t\t\t\ty1="100%"\n\t\t\t\t\t\t\ty2="0%"\n\t\t\t\t\t\t\tgradientUnits="objectBoundingBox"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<stop offset="0%" stop-color="','" />\n\t\t\t\t\t\t\t<stop offset="','%" stop-color="','" />\n\t\t\t\t\t\t\t<stop offset="','%" stop-color="grey" />\n\t\t\t\t\t\t\t<stop offset="100%" stop-color="grey" />\n\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t</defs>'])),i,c,l,c,l):Z(jn||(jn=Ot([""]))),t,h,g,m)}function Yn(t,e,n,a,o,i,r,s,l="",c="0;1"){const d="".concat(t,"-line"),u=!0===r?kn.invertKeyPoints(c):c,h=o>0,g=Number.isFinite(i)&&i>0?i:1;return Z(Gn||(Gn=Ot(['\n\t\t<svg\n\t\t\tid="','-flow"\n\t\t\txmlns:xlink="http://www.w3.org/1999/xlink"\n\t\t\toverflow="visible"\n\t\t>\n\t\t\t<path\n\t\t\t\tid="','"\n\t\t\t\td="','"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tstroke-width="','"\n\t\t\t\tstroke-miterlimit="10"\n\t\t\t\tpointer-events="stroke"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t',"\n\t\t</svg>\n\t"])),t,d,e,n,a,l,h?Z(Hn||(Hn=Ot(['<circle\n\t\t\t\t\t\tid="','-dot"\n\t\t\t\t\t\tr="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\tclass="','"\n\t\t\t\t\t>\n\t\t\t\t\t\t<animateMotion\n\t\t\t\t\t\t\tdur="','s"\n\t\t\t\t\t\t\trepeatCount="indefinite"\n\t\t\t\t\t\t\tkeyPoints="','"\n\t\t\t\t\t\t\tkeyTimes="0;1"\n\t\t\t\t\t\t\tcalcMode="linear"\n\t\t\t\t\t\t\trotate="auto"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<mpath href="#','" xlink:href="#','" />\n\t\t\t\t\t\t</animateMotion>\n\t\t\t\t\t</circle>'])),t,Math.min(2+a+Math.max(s-2,0),8),n,l,g,u,d,d):Z(Un||(Un=Ot([""]))))}const Fn=(t,e,n,a,o,i,r,s,l=!1)=>Z(Wn||(Wn=Ot(['\n        <a href="#" @click=','>\n            <text id="','" x="','" y="','" \n                display="','" \n                class="','" \n                fill="','">\n                ',"\n            </text>\n        </a>\n    "])),s,t,e,n,l?a?"none":"":a?"":"none",o,i,r),Xn=(t,e,n,a,o,i,r,s=!1)=>Z(Zn||(Zn=Ot(['\n        <text id="','" x="','" y="','" \n            display="','"\n            class="','" \n            fill="','">\n            ',"\n        </text>\n    "])),t,e,n,s?a?"none":"":a?"":"none",o,i,r);var Jn,Kn,qn,$n,ta;var ea;const na=(t,e,n,a,o)=>Z(ea||(ea=Ot(['\n        <path id="','" d="','" fill="none" display="','"\n            stroke="','" stroke-width="','"\n            stroke-miterlimit="10" pointer-events="stroke"/>\n    '])),t,e,n?"":"none",a,o);var aa,oa;const ia=(t,e,n,a,o,i,r=!1)=>"transparent"===n?Z(aa||(aa=Ot([""]))):Z(oa||(oa=Ot(['\n        <circle id="','" cx="0" cy="0" r="','" fill="','">\n            <animateMotion dur="','s" repeatCount="indefinite"\n                keyPoints="','"\n                keyTimes="0;1" calcMode="linear">\n                <mpath href="','"/>\n            </animateMotion>\n        </circle>\n    '])),t,e,n,a,r?kn.invertKeyPoints(o):o,i);var ra;const sa=(t,e,n)=>{const a=new Map;for(let o=e;o<=n;o++)a.set(t[o],o);return a},la=gt(class extends mt{constructor(t){if(super(t),t.type!==ht)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let a;void 0===n?n=e:void 0!==e&&(a=e);const o=[],i=[];let r=0;for(const e of t)o[r]=a?a(e,r):r,i[r]=n(e,r),r++;return{values:i,keys:o}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,a]){const o=xt(t),{values:i,keys:r}=this.dt(e,n,a);if(!Array.isArray(o))return this.ut=r,i;const s=this.ut??=[],l=[];let c,d,u=0,h=o.length-1,g=0,m=i.length-1;for(;u<=h&&g<=m;)if(null===o[u])u++;else if(null===o[h])h--;else if(s[u]===r[g])l[g]=wt(o[u],i[g]),u++,g++;else if(s[h]===r[m])l[m]=wt(o[h],i[m]),h--,m--;else if(s[u]===r[m])l[m]=wt(o[u],i[m]),vt(t,l[m+1],o[u]),u++,m--;else if(s[h]===r[g])l[g]=wt(o[h],i[g]),vt(t,o[u],o[h]),h--,g++;else if(void 0===c&&(c=sa(r,g,m),d=sa(s,u,h)),c.has(s[u]))if(c.has(s[h])){const e=d.get(r[g]),n=void 0!==e?o[e]:null;if(null===n){const e=vt(t,o[u]);wt(e,i[g]),l[g]=e}else l[g]=wt(n,i[g]),vt(t,o[u],n),o[e]=null;g++}else Pt(o[h]),h--;else Pt(o[u]),u++;for(;g<=m;){const e=vt(t,l[m+1]);wt(e,i[g]),l[g++]=e}for(;u<=h;){const t=o[u++];null!==t&&Pt(t)}return this.ut=r,At(t,l),Q}}),ca={},da=gt(class extends mt{constructor(){super(...arguments),this.ot=ca}render(t,e){return e()}update(t,[e,n]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every((t,e)=>t===this.ot[e]))return Q}else if(this.ot===e)return Q;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,n)}});
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var ua;var ha,ga,ma,pa,ya,_a,fa,va,wa,ba,Aa,xa,Pa,Ea,La;function Na(t,e,n,a,o,i=30,r=30,s=!0){return e&&t?Z(ha||(ha=Ot(['\n            <a href="#" @click=','>\n                <foreignObject x="','" y="','" width="','" height="','" display="','">\n                    <div xmlns="http://www.w3.org/1999/xhtml" style="position: fixed; width: ',"px; height: ",'px;">\n                        <ha-icon icon="','" class="','"></ha-icon>\n                    </div>\n                </foreignObject>\n            </a>'])),e=>kn.handlePopup(e,t),a,o,i,r,s?"":"none",i,r,e,n):e?Z(ga||(ga=Ot(['\n            <foreignObject x="','" y="','" width="','" height="','" display="','">\n                <div xmlns="http://www.w3.org/1999/xhtml" style="position: fixed; width: ',"px; height: ",'px;">\n                    <ha-icon icon="','" class="','"></ha-icon>\n                </div>\n            </foreignObject>'])),a,o,i,r,s?"":"none",i,r,e,n):""}const Ca=(t,e)=>{const n=Ft.includes(t.gridStatus.toLowerCase()),a=Yt.includes(t.gridStatus.toLowerCase()),o=t.totalGridPower,i=t.gridColour,r=e.inverter.three_phase;return Z(ma||(ma=Ot(['\n        <svg xmlns="http://www.w3.org/2000/svg" id="transmission_on"\n            x="','"\n            y="','"\n            width="','"\n            height="','" viewBox="0 0 24 24">\n            <path class="','"\n                fill="','"\n                display="','"\n                d="','"/>\n        </svg>\n        <svg xmlns="http://www.w3.org/2000/svg" id="transmission_off"\n            x="','"\n            y="','"\n            width="','"\n            height="','" viewBox="0 0 24 24">\n            <path class="','"\n                fill="','" display="','"\n                d="','"/>\n        </svg>\n        <svg xmlns="http://www.w3.org/2000/svg" id="grid_export"\n            x="','"\n            y="','"\n            width="','"\n            height="','" viewBox="0 0 24 24">\n            <path class="','"\n                fill="','"\n                display="','"\n                d="','"/>\n        </svg>\n    '])),r?"404":"389",r?"339":"308",r?"34":"65",r?"34":"65",a?"st12":"",i,o<0||e.grid.import_icon?"none":"",Vn.gridOn,r?"404":"389",r?"339":"308",r?"34":"65",r?"34":"65",n?"st12":"",t.gridOffColour,e.grid.disconnected_icon?"none":"",Vn.gridOff,r?"404":"389",r?"339":"308",r?"34":"65",r?"34":"65",a?"st12":"",i,o>=0||e.grid.export_icon?"none":"",Vn.gridExport)},Ta=(t,e)=>{const{nonessentialLoads:n,showNonessential:a,decimalPlaces:o,gridColour:i,largeFont:r,totalGridPower:s,autoScaledGridPower:l}=t,{auto_scale:c,invert_flow:d}=e.grid,{three_phase:u}=e.inverter;return W(pa||(pa=Ot(['\n\t\t\x3c!-- Grid Elements --\x3e\n\t\t<svg\n\t\t\tid="Grid"\n\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\tx="','"\n\t\t\ty="2.5%"\n\t\t>\n\t\t\t<svg id="nonessential3" style="overflow: visible">\n\t\t\t\t<rect\n\t\t\t\t\tid="noness3"\n\t\t\t\t\tx="266"\n\t\t\t\t\ty="310"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tclass="','"\n\t\t\t\t/>\n\t\t\t\t','\n\t\t\t\t<g\n\t\t\t\t\tdisplay="','"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t</g>\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<rect\n\t\t\t\tx="234"\n\t\t\t\ty="153"\n\t\t\t\twidth="70"\n\t\t\t\theight="70"\n\t\t\t\trx="10.5"\n\t\t\t\try="10.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tx="386"\n\t\t\t\ty="265"\n\t\t\t\twidth="70"\n\t\t\t\theight="30"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="nonesstotal"\n\t\t\t\tx="304"\n\t\t\t\ty="265"\n\t\t\t\twidth="70"\n\t\t\t\theight="30"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="noness1"\n\t\t\t\tx="304"\n\t\t\t\ty="310"\n\t\t\t\twidth="70"\n\t\t\t\theight="20"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tdisplay="','"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="noness1"\n\t\t\t\tx="303"\n\t\t\t\ty="310"\n\t\t\t\twidth="35"\n\t\t\t\theight="20"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tdisplay="','"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="noness2"\n\t\t\t\tx="340"\n\t\t\t\ty="310"\n\t\t\t\twidth="35"\n\t\t\t\theight="20"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tdisplay="','"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<svg id="grid-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="grid1-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="ne1-flow">\n\t\t\t\t',"\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="ne-flow">\n\t\t\t\t',"\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="grid2-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t</svg>\n\t\t\t","\n\t\t\t","\n\t\t\t\x3c!-- Nonessential Icons--\x3e\n\t\t\t",'\n\n\t\t\t<g\n\t\t\t\tdisplay="','"\n\t\t\t>\n\t\t\t\t','\n\t\t\t</g>\n\t\t\t<g\n\t\t\t\tdisplay="','"\n\t\t\t>\n\t\t\t\t','\n\t\t\t</g>\n\t\t\t<g\n\t\t\t\tdisplay="','"\n\t\t\t>\n\t\t\t\t','\n\t\t\t</g>\n\t\t\t<g\n\t\t\t\tdisplay="','"\n\t\t\t>\n\t\t\t\t',"\n\t\t\t</g>\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t</svg>\n\t"])),e.show_grid?"inline":"none",e.wide?"30%":"3%",3===n&&(e.battery.hide_soc||e.wide)?"":"none",t.dynamicColourNonEssentialLoad3,a&&1!==n?"":"st12",Xn("noness3",284,338,!a||[0,1,2].includes(n),e.battery.hide_soc||e.wide?"st3 st8":"st12",t.dynamicColourNonEssentialLoad3,e.grid.load3_name,!0),!a||[0,1,2].includes(n)?"none":"",Na(void 0,t.iconNonessentialLoad3,"nonessload3-icon",269,341,30,30,(e.battery.hide_soc||e.wide)&&3===n),Fn("noness3_value",283,321,!a||[0,1,2].includes(n)||!t.stateNonessentialLoad3.isValid(),e.battery.hide_soc||e.wide?"st3":"st12",t.dynamicColourNonEssentialLoad3,t.stateNonessentialLoad3.toPowerString(c,o),t=>kn.handlePopup(t,e.entities.non_essential_load3),!0),Fn("non_ess_load3_value_extra",300,305,e.entities?.non_essential_load3_extra&&3===n&&t.stateNonEssentialLoad3Extra.isValid()&&e.show_grid&&e.wide&&a,"st3 right-align",t.dynamicColourNonEssentialLoad3,"".concat(kn.formatNumberLocale(t.stateNonEssentialLoad3Extra.toNum(1),1)," ").concat(t.stateNonEssentialLoad3Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.non_essential_load3_extra)),i,i,i,a?"":"st12",1===n?"":"none",t.dynamicColourNonEssentialLoad1,a?"":"st12",[2,3].includes(n)?"":"none",t.dynamicColourNonEssentialLoad1,a&&1!==n?"":"st12",[2,3].includes(n)?"":"none",t.dynamicColourNonEssentialLoad2,a&&1!==n?"":"st12",Xn("noness1",340,338,!a||[0,2,3].includes(n),"st3 st8",t.dynamicColourNonEssentialLoad1,e.grid.load1_name,!0),Xn("noness2",321,338,!a||[0,1].includes(n),"st3 st8",t.dynamicColourNonEssentialLoad1,e.grid.load1_name,!0),Xn("noness2",358,338,!a||[0,1].includes(n),"st3 st8",t.dynamicColourNonEssentialLoad2,e.grid.load2_name,!0),Xn("grid_name",421,377,!0,"st3 st8",i,e.grid.grid_name||Ln("common.grid_name")),Xn("daily_grid_buy",a?"347":"311",a?e.entities?.max_sell_power?"256":"253":"368",!0!==t.gridShowDailyBuy,"st3 left-align",i,e.grid.label_daily_grid_buy||Ln("common.daily_grid_buy"),!0),Xn("daily_grid_sell",a?"347":"311",a?e.entities?.max_sell_power?"225":"222":"337",!0!==t.gridShowDailySell,"st3 left-align",i,e.grid.label_daily_grid_sell||Ln("common.daily_grid_sell"),!0),Xn("noness",340,377,!a,"st3 st8",i,e.grid.nonessential_name||Ln("common.nonessential_name"),!0),na("grid-line","M 304 188 L 411 188 Q 421 188 421 198 L421 265",!0,i,t.gridLineWidth),ia("grid-dot",Math.min(2+t.gridLineWidth+Math.max(t.minLineWidth-2,0),8),s<=0?"transparent":i,t.durationCur.grid,"1;0","#grid-line",!0===d),ia("grid-dot",Math.min(2+t.gridLineWidth+Math.max(t.minLineWidth-2,0),8),s>=0?"transparent":i,t.durationCur.grid,"0;1","#grid-line",!0===d),na("grid-line1",u?"M 421 295 L 421 337":"M 421 295 L 421 310.5",!0,i,t.gridLineWidth),ia("grid-dot",Math.min(2+t.gridLineWidth+Math.max(t.minLineWidth-2,0),8),s<=0?"transparent":i,t.durationCur.grid/1.5,"1;0","#grid-line1",!0===d),ia("grid-dot",Math.min(2+t.gridLineWidth+Math.max(t.minLineWidth-2,0),8),s>=0?"transparent":i,t.durationCur.grid/1.5,"0;1","#grid-line1",!0===d),na("ne-line1","M 339 295 L 339 310",a,i,t.nonessLineWidth),ia("ne-dot1",Math.min(2+t.nonessLineWidth+Math.max(t.minLineWidth-2,0),8),t.nonessentialPower<=0||!a?"transparent":i,t.durationCur.ne/1.5,"0;1","#ne-line1",!0===d),na("ne-line","M 339 265 L 339 188",a,i,t.nonessLineWidth),ia("ne-dot",Math.min(2+t.nonessLineWidth+Math.max(t.minLineWidth-2,0),5),t.nonessentialPower<=0||!a?"transparent":i,t.durationCur.ne,"1;0","#ne-line",!0===d),na("grid2-line",e.wide?"M143 187 234 187":"M215 187 234 187",!0,i,t.grid169LineWidth),ia("grid-dot",Math.min(2+t.gridLineWidth+Math.max(t.minLineWidth-2,0),8),l<0||0===l?"transparent":i,t.durationCur.grid,"1;0","#grid2-line",!0===d),ia("grid-dot",Math.min(2+t.gridLineWidth+Math.max(t.minLineWidth-2,0),8),l>0||0===l?"transparent":i,t.durationCur.grid,"0;1","#grid2-line",!0===d),e.grid?.navigate?Z(ya||(ya=Ot(['\n                    <a href="#" @click=',">\n\t\t\t\t\t\t\t","\n                    </a>"])),t=>kn.handleNavigation(t,e.grid.navigate),da([t.gridStatus,t.totalGridPower>=0,t.gridColour,u,e.grid.import_icon,e.grid.export_icon,e.grid.disconnected_icon],()=>Ca(t,e))):Z(_a||(_a=Ot(['\n                    <a href="#" @click=',">\n\t\t\t\t\t\t\t","\n                    </a>"])),t=>kn.handlePopup(t,e.entities.grid_connected_status_194),da([t.gridStatus,t.totalGridPower>=0,t.gridColour,u,e.grid.import_icon,e.grid.export_icon,e.grid.disconnected_icon],()=>Ca(t,e))),e.grid?.navigate?Z(fa||(fa=Ot(['\n                    <a href="#" @click=','>\n                        <g display="','">\n                            ',"\n                        </g>\n                    </a>"])),t=>kn.handleNavigation(t,e.grid.navigate),e.show_grid&&(e.grid.import_icon||e.grid.disconnected_icon||e.grid.export_icon)?"":"none",Na(void 0,t.customGridIcon,u?"grid-icon-small":"grid-icon",u?"404":"389",u?"339":"308",u?34:65,u?34:65,!0)):Z(va||(va=Ot(['\n                    <a href="#" @click=','>\n                        <g display="','">\n                            ',"\n                        </g>\n                    </a>"])),t=>kn.handlePopup(t,e.entities.grid_connected_status_194),e.show_grid&&(e.grid.import_icon||e.grid.disconnected_icon||e.grid.export_icon)?"":"none",Na(void 0,t.customGridIcon,u?"grid-icon-small":"grid-icon",u?"404":"389",u?"339":"308",u?34:65,u?34:65,!0)),da([t.nonessentialLoads,t.showNonessential,t.iconNonessentialLoad1,t.iconNonessentialLoad2,t.nonessentialIcon,t.dynamicColourNonEssentialLoad1,t.dynamicColourNonEssentialLoad2,t.gridColour],()=>la((t=>[{id:"noness_default",x:320,y:339,width:38,height:38,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"default"===t.iconNonessentialLoad1&&"default"===t.iconNonessentialLoad2,iconType:"nonEss",prefix:"noness",dynamicColor:t.gridColour,viewBoxSize:24},{id:"noness_default",x:303.5,y:305.5,width:70,height:70,displayCondition:!t.showNonessential||[1,2,3].includes(t.nonessentialLoads),opacityCondition:"default"===t.nonessentialIcon,iconType:"nonEss",prefix:"noness",dynamicColor:t.gridColour,viewBoxSize:24},{id:"noness_oven",x:303.5,y:305.5,width:70,height:70,displayCondition:!t.showNonessential||[1,2,3].includes(t.nonessentialLoads),opacityCondition:"oven"===t.nonessentialIcon,iconType:"oven",prefix:"noness",dynamicColor:t.gridColour,viewBoxSize:32},{id:"noness_boiler",x:303.5,y:305.5,width:70,height:70,displayCondition:!t.showNonessential||[1,2,3].includes(t.nonessentialLoads),opacityCondition:"boiler"===t.nonessentialIcon,iconType:"boiler",prefix:"noness",dynamicColor:t.gridColour,viewBoxSize:24},{id:"noness_pump",x:303.5,y:305.5,width:70,height:70,displayCondition:!t.showNonessential||[1,2,3].includes(t.nonessentialLoads),opacityCondition:"pump"===t.nonessentialIcon,iconType:"pump",prefix:"noness",dynamicColor:t.gridColour,viewBoxSize:24},{id:"noness_ac",x:311,y:312,width:55,height:55,displayCondition:!t.showNonessential||[1,2,3].includes(t.nonessentialLoads),opacityCondition:"aircon"===t.nonessentialIcon,iconType:"aircon",prefix:"noness",dynamicColor:t.gridColour,viewBoxSize:24},{id:"noness_default_left",x:306,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"default"===t.iconNonessentialLoad1&&"default"!==t.iconNonessentialLoad2,iconType:"nonEss",prefix:"noness",dynamicColor:t.dynamicColourNonEssentialLoad1,viewBoxSize:24},{id:"noness_default_right",x:343,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"default"!==t.iconNonessentialLoad1&&"default"===t.iconNonessentialLoad2,iconType:"nonEss",prefix:"noness",dynamicColor:t.dynamicColourNonEssentialLoad2,viewBoxSize:24},{id:"noness_boiler_left",x:306,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"boiler"===t.iconNonessentialLoad1,iconType:"boiler",prefix:"noness",dynamicColor:t.dynamicColourNonEssentialLoad1,viewBoxSize:24},{id:"noness_boiler_right",x:343,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"boiler"===t.iconNonessentialLoad2,iconType:"boiler",prefix:"noness",dynamicColor:t.dynamicColourNonEssentialLoad2,viewBoxSize:24},{id:"noness_pump_left",x:306,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"pump"===t.iconNonessentialLoad1,iconType:"pump",prefix:"noness",dynamicColor:t.dynamicColourNonEssentialLoad1,viewBoxSize:24},{id:"noness_pump_right",x:343,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"pump"===t.iconNonessentialLoad2,iconType:"pump",prefix:"noness",dynamicColor:t.dynamicColourNonEssentialLoad2,viewBoxSize:24},{id:"noness_oven_left",x:306,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"oven"===t.iconNonessentialLoad1,iconType:"oven",prefix:"noness",dynamicColor:t.dynamicColourNonEssentialLoad1,viewBoxSize:32},{id:"noness_oven_right",x:343,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"oven"===t.iconNonessentialLoad2,iconType:"oven",prefix:"noness",dynamicColor:t.dynamicColourNonEssentialLoad2,viewBoxSize:32},{id:"noness_ac_left",x:308,y:345,width:25,height:25,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"aircon"===t.iconNonessentialLoad1,iconType:"aircon",prefix:"noness",dynamicColor:t.dynamicColourNonEssentialLoad1,viewBoxSize:24},{id:"noness_ac_right",x:345,y:345,width:25,height:25,displayCondition:!t.showNonessential||[0,1].includes(t.nonessentialLoads),opacityCondition:"aircon"===t.iconNonessentialLoad2,iconType:"aircon",prefix:"noness",dynamicColor:t.dynamicColourNonEssentialLoad2,viewBoxSize:24},{id:"noness1_default",x:324.5,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,2,3].includes(t.nonessentialLoads),opacityCondition:"default"===t.iconNonessentialLoad1,iconType:"nonEss",prefix:"noness1",dynamicColor:t.dynamicColourNonEssentialLoad1,viewBoxSize:24},{id:"noness1_boiler",x:324.5,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,2,3].includes(t.nonessentialLoads),opacityCondition:"boiler"===t.iconNonessentialLoad1,iconType:"boiler",prefix:"noness1",dynamicColor:t.dynamicColourNonEssentialLoad1,viewBoxSize:24},{id:"noness1_pump",x:324.5,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,2,3].includes(t.nonessentialLoads),opacityCondition:"pump"===t.iconNonessentialLoad1,iconType:"pump",prefix:"noness1",dynamicColor:t.dynamicColourNonEssentialLoad1,viewBoxSize:24},{id:"noness1_oven",x:324.5,y:341,width:32,height:32,displayCondition:!t.showNonessential||[0,2,3].includes(t.nonessentialLoads),opacityCondition:"oven"===t.iconNonessentialLoad1,iconType:"oven",prefix:"noness1",dynamicColor:t.dynamicColourNonEssentialLoad1,viewBoxSize:32},{id:"noness1_ac",x:326.5,y:345,width:25,height:25,displayCondition:!t.showNonessential||[0,2,3].includes(t.nonessentialLoads),opacityCondition:"aircon"===t.iconNonessentialLoad1,iconType:"aircon",prefix:"noness1",dynamicColor:t.dynamicColourNonEssentialLoad1,viewBoxSize:24}])(t),t=>t.id,t=>(t=>{const e=Vn[t.iconType];return W(ua||(ua=Ot(['\n\t\t<svg\n\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\tid="',"_",'"\n\t\t\tx="','"\n\t\t\ty="','"\n\t\t\twidth="','"\n\t\t\theight="','"\n\t\t\tviewBox="0 0 '," ",'"\n\t\t\topacity="','"\n\t\t>\n\t\t\t<path\n\t\t\t\tdisplay="','"\n\t\t\t\tfill="','"\n\t\t\t\td="','"\n\t\t\t/>\n\t\t</svg>\n\t'])),t.prefix,t.id,t.x,t.y,t.width,t.height,t.viewBoxSize||24,t.viewBoxSize||24,t.opacityCondition?"1":"0",t.displayCondition?"none":"",t.dynamicColor,e)})(t))),!a||[1,2,3].includes(n)?"none":"",Na(void 0,t.nonessentialIcon,"noness-icon",303.5,303.5,85,85),!a||[0,1].includes(n)?"none":"",Na(void 0,t.iconNonessentialLoad1,"nonessload1-icon",306,341),!a||[0,1].includes(n)?"none":"",Na(void 0,t.iconNonessentialLoad2,"nonessload2-icon",343,341),!a||[0,2,3].includes(n)?"none":"",Na(void 0,t.iconNonessentialLoad1,"nonessload1-icon",324.5,341),Fn("daily_grid_buy_value",a?"347":"311",a?e.entities?.max_sell_power?"242":"239":"354",!0!==t.gridShowDailyBuy||!t.stateDayGridImport.isValid(),"st10 left-align",i,t.stateDayGridImport.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_grid_import_76),!0),Fn("daily_grid_sell_value",a?"347":"311",a?e.entities?.max_sell_power?"212":"209":"323",!0!==t.gridShowDailySell||!t.stateDayGridExport.isValid(),"st10 left-align",i,t.stateDayGridExport.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_grid_export_77),!0),Fn("max_sell_power",a?"347":"311",a?"198":"309",!t.stateMaxSellPower.isValid||!e.entities?.max_sell_power,"st3 left-align",["off","0"].includes(t.stateSolarSell.state)?"grey":i,"".concat(Ln("common.limit"),": ").concat(t.stateMaxSellPower.toPowerString(c,o)),t=>kn.handlePopup(t,e.entities.max_sell_power),!0),u?e.entities?.grid_ct_power_total?Z(wa||(wa=Ot(["\n                        ",""])),Fn("grid_total_power",420,281.5,"none"===e.entities.grid_ct_power_172,"".concat(!0!==r?"st14":"st4"," st8"),i,"".concat(c?e.grid.show_absolute?kn.convertValue(Math.abs(s),o)||"0":kn.convertValue(s,o)||0:e.grid.show_absolute?"".concat(Math.abs(s)," ").concat(Kt.WATT):"".concat(s||0," ").concat(Kt.WATT)),t=>kn.handlePopup(t,e.entities.grid_ct_power_total),!0)):Z(ba||(ba=Ot(["\n                        ",""])),Xn("grid_total_power",420,281.5,"none"===e.entities.grid_ct_power_172,"".concat(!0!==r?"st14":"st4"," st8"),i,"".concat(c?e.grid.show_absolute?kn.convertValue(Math.abs(s),o)||"0":kn.convertValue(s,o)||0:e.grid.show_absolute?"".concat(Math.abs(s)," ").concat(Kt.WATT):"".concat(s||0," ").concat(Kt.WATT)),!0)):Z(Aa||(Aa=Ot(["\n                    ",""])),Fn("grid_total_power",420,281.5,"none"===e.entities.grid_ct_power_172,"".concat(!0!==r?"st14":"st4"," st8"),i,"".concat(c?e.grid.show_absolute?kn.convertValue(Math.abs(s),o)||"0":kn.convertValue(s,o)||0:e.grid.show_absolute?"".concat(Math.abs(s)," ").concat(Kt.WATT):"".concat(s||0," ").concat(Kt.WATT)),t=>kn.handlePopup(t,e.entities.grid_ct_power_172),!0)),e.entities?.nonessential_power&&"none"!==e.entities.nonessential_power?Z(xa||(xa=Ot(["\n                    ",""])),Fn("non_ess_power",338,281.5,!a,"".concat(!0!==r?"st14":"st4"," st8"),i,c?"".concat(kn.convertValue(t.nonessentialPower,o)||0):"".concat(t.nonessentialPower||0," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.nonessential_power),!0)):Z(Pa||(Pa=Ot(["\n                    ",""])),Xn("non_ess_power",338,281.5,!a,"".concat(!0!==r?"st14":"st4"," st8"),i,c?"".concat(kn.convertValue(t.nonessentialPower,o)||0):"".concat(t.nonessentialPower||0," ").concat(Kt.WATT),!0)),s>=0?Z(Ea||(Ea=Ot(['\n                    <a href="#" @click=',">\n                        ","\n                        ","\n                        ","\n                    </a>"])),t=>kn.handlePopup(t,e.entities.energy_cost_buy),Xn("energy_cost",414,305,!(!e.entities?.energy_cost_buy||!t.stateEnergyCostBuy.isValid()||e.entities.non_essential_load2_extra),"st3 right-align",i,"".concat(kn.formatNumberLocale(t.energyCost,2)," ").concat(t.stateEnergyCostBuy?.getUOM())),Xn("energy_cost",u?414:430,305,!!(e.entities?.energy_cost_buy&&t.stateEnergyCostBuy.isValid()&&e.entities.non_essential_load2_extra),u?"st3 right-align":"st3 left-align",i,"".concat(kn.formatNumberLocale(t.energyCost,2))),Xn("energy_cost",u?414:437,318,!!(e.entities?.energy_cost_buy&&t.stateEnergyCostBuy.isValid()&&e.entities.non_essential_load2_extra),u?"st3 right-align":"st3 left-align",i,"".concat(t.stateEnergyCostBuy?.getUOM()))):Z(La||(La=Ot(['\n                    <a href="#" @click=',">\n                        ","\n                        ","\n                        ","\n                    </a>"])),t=>kn.handlePopup(t,e.entities.energy_cost_sell),Xn("energy_cost",414,305,!(!e.entities?.energy_cost_sell||!t.stateEnergyCostSell.isValid()||e.entities.non_essential_load2_extra),"st3 right-align",i,"".concat(kn.formatNumberLocale(t.energyCost,2)," ").concat(t.stateEnergyCostSell?.getUOM())),Xn("energy_cost",u?414:430,305,!!(e.entities?.energy_cost_sell&&t.stateEnergyCostSell.isValid()&&e.entities.non_essential_load2_extra),u?"st3 right-align":"st3 left-align",i,"".concat(kn.formatNumberLocale(t.energyCost,2))),Xn("energy_cost",u?414:437,318,!!(e.entities?.energy_cost_sell&&t.stateEnergyCostSell.isValid()&&e.entities.non_essential_load2_extra),u?"st3 right-align":"st3 left-align",i,"".concat(t.stateEnergyCostSell?.getUOM()))),Fn("grid_power_169",270,u?216:209,"none"===e.entities.grid_power_169,"".concat(!0!==r?"st14":"st4"," st8"),i,"".concat(c?e.grid.show_absolute?kn.convertValue(Math.abs(l),o)||"0":kn.convertValue(l,o)||0:e.grid.show_absolute?"".concat(Math.abs(l)," ").concat(Kt.WATT):"".concat(l||0," ").concat(Kt.WATT)),t=>kn.handlePopup(t,e.entities.grid_power_169),!0),Fn("prepaid",428,258,!t.statePrepaidUnits.isValid(),e.entities?.prepaid_units?"st3 left-align":"st12",i,kn.formatNumberLocale(t.statePrepaidUnits.toNum(1),1),t=>kn.handlePopup(t,e.entities.prepaid_units),!0),Fn("grid-power-L1",428,305,u,"st3 left-align",i,e.load.auto_scale?"".concat(kn.convertValue(t.gridPower,o)||0):"".concat(t.gridPower||0," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.grid_ct_power_172)),Fn("grid-power-L2",428,318,!(!u||!e.entities?.grid_ct_power_L2),"st3 left-align",i,e.load.auto_scale?"".concat(kn.convertValue(t.gridPowerL2,o)||0):"".concat(t.gridPowerL2||0," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.grid_ct_power_L2)),Fn("grid-power-L3",428,331,!(!u||!e.entities?.grid_ct_power_L3),"st3 left-align",i,e.load.auto_scale?"".concat(kn.convertValue(t.gridPowerL3,o)||0):"".concat(t.gridPowerL3||0," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.grid_ct_power_L3)),Fn("inverter_voltage_154",270,u?164:170.4,"none"===e.entities.inverter_voltage_154||!e.entities.inverter_voltage_154,"".concat(!0!==r?"st14":"st4"," st8"),i,"".concat(kn.formatNumberLocale(t.inverterVoltage,1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.inverter_voltage_154),!0),Fn("inverter_voltage_L2",270,177,!(!u||!e.entities?.inverter_voltage_L2),!0!==r?"st14 st8":"st4 st8",i,"".concat(kn.formatNumberLocale(t.inverterVoltageL2,1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.inverter_voltage_L2)),Fn("inverter_voltage_L3",270,190,!(!u||!e.entities?.inverter_voltage_L3),!0!==r?"st14 st8":"st4 st8",i,"".concat(kn.formatNumberLocale(t.inverterVoltageL3,1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.inverter_voltage_L3)),Fn("load_frequency_192",270,u?"203":"189.5","none"===e.entities.load_frequency_192||!e.entities.load_frequency_192,"".concat(!0!==r?"st14":"st4"," st8"),i,"".concat(kn.formatNumberLocale(t.loadFrequency,2)," Hz"),t=>kn.handlePopup(t,e.entities.load_frequency_192),!0),Fn("noness1_value",340,321,!a||[0,2,3].includes(n)||!t.stateNonessentialLoad1.isValid(),"st3",t.dynamicColourNonEssentialLoad1,t.stateNonessentialLoad1.toPowerString(c,o),t=>kn.handlePopup(t,e.entities.non_essential_load1),!0),Fn("noness2_value",320,321,!a||[0,1].includes(n)||!t.stateNonessentialLoad1.isValid(),"st3",t.dynamicColourNonEssentialLoad1,t.stateNonessentialLoad1.toPowerString(c,o),t=>kn.handlePopup(t,e.entities.non_essential_load1),!0),Fn("noness2_value",357,321,!a||[0,1].includes(n)||!t.stateNonessentialLoad2.isValid(),"st3",t.dynamicColourNonEssentialLoad2,t.stateNonessentialLoad2.toPowerString(c,o),t=>kn.handlePopup(t,e.entities.non_essential_load2),!0),Fn("non_ess_load1_value_extra",335,305,e.entities?.non_essential_load1_extra&&[1,2,3].includes(n)&&t.stateNonEssentialLoad1Extra.isValid()&&e.show_grid&&a,"st3 right-align",t.dynamicColourNonEssentialLoad1,"".concat(kn.formatNumberLocale(t.stateNonEssentialLoad1Extra.toNum(1),1)," ").concat(t.stateNonEssentialLoad1Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.non_essential_load1_extra)),Fn("non_ess_load2_value_extra",342,305,e.entities?.non_essential_load2_extra&&[2,3].includes(n)&&t.stateNonEssentialLoad2Extra.isValid()&&e.show_grid&&a,"st3 left-align",t.dynamicColourNonEssentialLoad2,"".concat(kn.formatNumberLocale(t.stateNonEssentialLoad2Extra.toNum(1),1)," ").concat(t.stateNonEssentialLoad2Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.non_essential_load2_extra)))};var Sa,Ma,Ia;const Oa=(t,e)=>{if(!e.displayCondition||!e.opacityCondition)return W(Sa||(Sa=Ot([""])));const n=1===e.loadNumber?t.dynamicColourEssentialLoad1:t.dynamicColourEssentialLoad2,a=Vn[e.iconType],o=e.viewBoxSize||24;return a?W(Ia||(Ia=Ot(['\n\t\t<svg\n\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\tid="',"_",'"\n\t\t\tx="','"\n\t\t\ty="','"\n\t\t\twidth="','"\n\t\t\theight="','"\n\t\t\tviewBox="0 0 '," ",'"\n\t\t\topacity="','"\n\t\t>\n\t\t\t<path\n\t\t\t\tdisplay="','"\n\t\t\t\tfill="','"\n\t\t\t\td="','"\n\t\t\t/>\n\t\t</svg>\n\t'])),e.prefix,e.id,e.x,e.y,e.width,e.height,o,o,e.opacityCondition?"1":"0",e.displayCondition?"":"none",n,a):W(Ma||(Ma=Ot([""])))};var Ba,Da,ka;var Va;var za,Ra,ja;const Ga=(t,e)=>{const{showAux:n,additionalAuxLoad:a,largeFont:o,auxDynamicColour:i,auxStatus:r,auxPower:s,decimalPlaces:l}=t,{auto_scale:c}=e.load;return W(za||(za=Ot(['\n\t\t\x3c!-- Aux Load Elements --\x3e\n\t\t<svg\n\t\t\tid="Aux Load"\n\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\tx="','"\n\t\t\ty="2.5%"\n\t\t>\n\t\t\t<rect\n\t\t\t\tx="237"\n\t\t\t\ty="32"\n\t\t\t\twidth="70"\n\t\t\t\theight="30"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="aux-load1"\n\t\t\t\tx="374"\n\t\t\t\ty="20"\n\t\t\t\twidth="70"\n\t\t\t\theight="25"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tdisplay="','"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="aux-load2"\n\t\t\t\tx="374"\n\t\t\t\ty="50"\n\t\t\t\twidth="70"\n\t\t\t\theight="25"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tdisplay="','"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<svg id="aux-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="aux1-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t\x3c!-- Aux Icon --\x3e\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=',"\n\t\t\t>\n\t\t\t\t",'\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="aux_inverter"\n\t\t\t\t\tx="388"\n\t\t\t\t\ty="8"\n\t\t\t\t\twidth="44"\n\t\t\t\t\theight="69"\n\t\t\t\t\tviewBox="0 0 74 91"\n\t\t\t\t\tpreserveAspectRatio="xMidYMid meet"\n\t\t\t\t>\n\t\t\t\t\t<g\n\t\t\t\t\t\ttransform="translate(0.000000,91.000000) scale(0.100000,-0.100000)"\n\t\t\t\t\t\tclass="','"\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\tstroke="none"\n\t\t\t\t\t>\n\t\t\t\t\t\t<path d="','" />\n\t\t\t\t\t</g>\n\t\t\t\t</svg>\n\t\t\t\t<g\n\t\t\t\t\tdisplay="','"\n\t\t\t\t>\n\t\t\t\t\t','\n\t\t\t\t</g>\n\t\t\t</a>\n\t\t\t<g display="','">\n\t\t\t\t','\n\t\t\t</g>\n\t\t\t<g\n\t\t\t\tdisplay="','"\n\t\t\t>\n\t\t\t\t',"\n\t\t\t</g>\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t</svg>\n\t"])),n?"inline":"none",e.wide?"30%":"3%",i,n?"":"st12",t.auxDynamicColourLoad1,n?"":"none",[1,2].includes(a)?"":"st12",t.auxDynamicColourLoad2,n?"":"none",2===a?"":"st12",Xn("daily_load_aux",238,93,!t.loadShowDaily||!n,"st3 left-align",t.loadColour,e.load.label_daily_load||Ln("common.daily_load"),!0),Xn("aux_one",411,82,!n||[1,2].includes(a),"st3 st8","on"===r||"1"===r?i:t.auxOffColour,e.load.aux_name||Ln("common.aux_name"),!0),Xn("aux_load1",411,1===a?53:14,!n||0===a,"st3 st8",t.auxDynamicColourLoad1,e.load.aux_load1_name,!0),Xn("aux_load2",411,83,!n||[0,1].includes(a),"st3 st8",t.auxDynamicColourLoad2,e.load.aux_load2_name,!0),Xn("aux_daily_text",238,24,!n||!0!==t.showDailyAux,"st3 left-align",i,e.load.aux_daily_name||Ln("common.daily_aux"),!0),na("aux-line","M 307 47 L 371 47",n,i,t.auxLineWidth),ia("aux-dot",Math.min(2+t.auxLineWidth+Math.max(t.minLineWidth-2,0),8),s<=0?"transparent":i,t.durationCur.aux,"0;1","#aux-line"),ia("aux-dot",Math.min(2+t.auxLineWidth+Math.max(t.minLineWidth-2,0),8),s>=0?"transparent":i,t.durationCur.aux,"1;0","#aux-line"),na("aux-line2",e.wide?"M 108 162 L 108 57 Q 108 47 118 47 L 237 47":"M 180 162 L 180 57 Q 180 47 190 47 L 237 47",n,i,t.auxLineWidth),ia("aux-dot",Math.min(2+t.auxLineWidth+Math.max(t.minLineWidth-2,0),8),s<=0?"transparent":i,t.durationCur.aux,"0;1","#aux-line2"),ia("aux-dot",Math.min(2+t.auxLineWidth+Math.max(t.minLineWidth-2,0),8),s>=0?"transparent":i,t.durationCur.aux,"1;0","#aux-line2"),t=>kn.handlePopup(t,e.entities.aux_connected_status),da([t.additionalAuxLoad,t.showAux,t.auxType,t.iconAuxLoad1,t.iconAuxLoad2,t.auxDynamicColour,t.auxDynamicColourLoad1,t.auxDynamicColourLoad2,t.auxOffColour,t.auxStatus],()=>la((t=>[{id:"aux_default",x:371,y:5,width:83,height:83,displayCondition:!t.showAux||[1,2].includes(t.additionalAuxLoad),opacityCondition:"default"===t.auxType,iconType:"aux",prefix:"aux",dynamicColor:"on"===t.auxStatus||"1"===t.auxStatus?t.auxDynamicColour:t.auxOffColour,viewBoxSize:24},{id:"aux_generator",x:374,y:5,width:74,height:74,displayCondition:!t.showAux||[1,2].includes(t.additionalAuxLoad),opacityCondition:"gen"===t.auxType,iconType:"generator",prefix:"aux",dynamicColor:"on"===t.auxStatus||"1"===t.auxStatus?t.auxDynamicColour:t.auxOffColour,viewBoxSize:24},{id:"aux_oven",x:375,y:8,width:70,height:70,displayCondition:!t.showAux||[1,2].includes(t.additionalAuxLoad),opacityCondition:"oven"===t.auxType,iconType:"oven",prefix:"aux",dynamicColor:"on"===t.auxStatus||"1"===t.auxStatus?t.auxDynamicColour:t.auxOffColour,viewBoxSize:32},{id:"aux_boiler",x:375,y:8,width:70,height:70,displayCondition:!t.showAux||[1,2].includes(t.additionalAuxLoad),opacityCondition:"boiler"===t.auxType,iconType:"boiler",prefix:"aux",dynamicColor:"on"===t.auxStatus||"1"===t.auxStatus?t.auxDynamicColour:t.auxOffColour,viewBoxSize:24},{id:"aux_ac",x:380,y:12,width:60,height:60,displayCondition:!t.showAux||[1,2].includes(t.additionalAuxLoad),opacityCondition:"aircon"===t.auxType,iconType:"aircon",prefix:"aux",dynamicColor:"on"===t.auxStatus||"1"===t.auxStatus?t.auxDynamicColour:t.auxOffColour,viewBoxSize:24},{id:"aux_pump",x:380,y:15,width:60,height:70,displayCondition:!t.showAux||[1,2].includes(t.additionalAuxLoad),opacityCondition:"pump"===t.auxType,iconType:"pump",prefix:"aux",dynamicColor:"on"===t.auxStatus||"1"===t.auxStatus?t.auxDynamicColour:t.auxOffColour,viewBoxSize:24}])(t),t=>t.id,t=>(t=>{const e=Vn[t.iconType];return W(Va||(Va=Ot(['\n\t\t<svg\n\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\tid="',"_",'"\n\t\t\tx="','"\n\t\t\ty="','"\n\t\t\twidth="','"\n\t\t\theight="','"\n\t\t\tviewBox="0 0 '," ",'"\n\t\t\topacity="','"\n\t\t>\n\t\t\t<path\n\t\t\t\tdisplay="','"\n\t\t\t\tfill="','"\n\t\t\t\td="','"\n\t\t\t/>\n\t\t</svg>\n\t'])),t.prefix,t.id,t.x,t.y,t.width,t.height,t.viewBoxSize||24,t.viewBoxSize||24,t.opacityCondition?"1":"0",t.displayCondition?"none":"",t.dynamicColor,e)})(t))),"inverter"===t.auxType?"":"st12",!n||[1,2].includes(a)?"none":"","".concat("on"===r||"1"===r?i:t.auxOffColour),Vn.inverter,!n||[1,2].includes(a)?"none":"",Na(void 0,t.auxType,"".concat("on"===r||"1"===r?"aux-icon":"aux-off-icon"),375,8,70,70),n&&0!==a?"":"none",Na(void 0,t.iconAuxLoad1,"aux-small-icon-1",345,18,40,40),!n||[0,1].includes(a)?"none":"",Na(void 0,t.iconAuxLoad2,"aux-small-icon-2",345,52,40,40),Fn("aux_daily_value",238,12,!n||!0!==t.showDailyAux||!t.stateDayAuxEnergy.isValid(),"st10 left-align",i,t.stateDayAuxEnergy.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_aux_energy),!0),e.entities?.aux_power_166?Z(Ra||(Ra=Ot(["\n                    ",""])),Fn("aux_power_166",270,48,!n,"".concat(!0!==o?"st14":"st4"," st8"),i,c?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(kn.convertValue(s,l)))," ").concat(kn.convertValue(s,l).split(" ")[1]):kn.convertValue(s,l)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(s)):s||0," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.aux_power_166),!0)):Z(ja||(ja=Ot(["\n                    ",""])),Xn("aux_power_166",270,48,!n,"".concat(!0!==o?"st14":"st4"," st8"),i,c?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(kn.convertValue(s,l)))," ").concat(kn.convertValue(s,l).split(" ")[1]):kn.convertValue(s,l)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(s)):s||0," ").concat(Kt.WATT),!0)),Fn("aux_load1_value",411,34,!n||0===a||!t.stateAuxLoad1.isValid(),"".concat(!0!==o?"st14":"st4"," st8"),t.auxDynamicColourLoad1,t.stateAuxLoad1.toPowerString(c,l),t=>kn.handlePopup(t,e.entities.aux_load1),!0),Fn("aux_load2_value",411,64,!n||[0,1].includes(a)||!t.stateAuxLoad2.isValid(),"".concat(!0!==o?"st14":"st4"," st8"),t.auxDynamicColourLoad2,t.stateAuxLoad2.toPowerString(c,l),t=>kn.handlePopup(t,e.entities.aux_load2),!0),Fn("aux_load1_extra",411,8,!n||[1,2].includes(a)||!e.entities.aux_load1_extra,"st3 st8","on"===r||"1"===r?i:t.auxOffColour,"".concat(kn.formatNumberLocale(t.stateAuxLoad1Extra.toNum(1),1)," ").concat(t.stateAuxLoad1Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.aux_load1_extra),!0),Fn("aux_load1_extra",360,14,n&&[1,2].includes(a)&&e.entities.aux_load1_extra,"st3 st8",t.auxDynamicColourLoad1,"".concat(kn.formatNumberLocale(t.stateAuxLoad1Extra.toNum(1),1)," ").concat(t.stateAuxLoad1Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.aux_load1_extra)),Fn("aux_load2_extra",360,83,!n||[0,1].includes(a)||!e.entities.aux_load2_extra,"st3 st8",t.auxDynamicColourLoad2,"".concat(kn.formatNumberLocale(t.stateAuxLoad2Extra.toNum(1),1)," ").concat(t.stateAuxLoad2Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.aux_load2_extra),!0))};var Ha,Ua,Wa,Za,Qa;var Ya,Fa;const Xa=(t,e,n)=>{const a=t.title?"".concat(t.title,"|").concat(t.title_colour??"","|").concat(t.title_size??""):"no-title",o=t.title?Lt(Nt(a,W(Ya||(Ya=Ot(['<h1\n\t\t\t\t\t\tstyle="text-align: center; color: ',"; font-size: ",';"\n\t\t\t\t\t>\n\t\t\t\t\t\t',"\n\t\t\t\t\t</h1>"])),t.title_colour||"inherit",t.title_size||"32px",t.title))):"";return W(Fa||(Fa=Ot(["\n\t\t<ha-card>\n\t\t\t",'\n\t\t\t<div class="container card">\n\t\t\t\t','\n\t\t\t\t<svg\n\t\t\t\t\tviewBox="','"\n\t\t\t\t\tpreserveAspectRatio="xMidYMid meet"\n\t\t\t\t\theight="','"\n\t\t\t\t\twidth="','"\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\txmlns:xlink="http://www.w3.org/1999/xlink"\n\t\t\t\t>\n\t\t\t\t\t\x3c!-- Solar Elements --\x3e\n\t\t\t\t\t',"\n\n\t\t\t\t\t\x3c!-- Battery Elements --\x3e\n\t\t\t\t\t","\n\n\t\t\t\t\t\x3c!-- Grid Elements --\x3e\n\t\t\t\t\t","\n\n\t\t\t\t\t\x3c!-- Load Elements --\x3e\n\t\t\t\t\t","\n\n\t\t\t\t\t\x3c!-- AUX Elements --\x3e\n\t\t\t\t\t","\n\n\t\t\t\t\t\x3c!-- Inverter Elements --\x3e\n\t\t\t\t\t","\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t</ha-card>\n\t"])),Vt(n),o,t.wide?"0 0 720 405":"0 0 483 405",n.cardHeight,n.cardWidth,((t,e)=>{const{solarColour:n,decimalPlaces:a,totalPV:o,minLineWidth:i,solarShowDaily:r,largeFont:s,durationCur:l}=t,{auto_scale:c,efficiency:d,mppts:u,display_mode:h,invert_flow:g}=e.solar;return W(Jn||(Jn=Ot(['\n\t\t\x3c!-- Solar Elements --\x3e\n\t\t<svg\n\t\t\tid="Solar"\n\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\tx="3%"\n\t\t\ty="2.5%"\n\t\t>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=','\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="solar_sell_on"\n\t\t\t\t\tx="96"\n\t\t\t\t\ty="197"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 30 30"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="solar_sell_off"\n\t\t\t\t\tx="96"\n\t\t\t\t\ty="197"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 30 30"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t</a>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t</svg>\n\t"])),e.show_solar?"inline":"none",Qn("pvtotal","51","162",t,e),Qn("pv1","0","40",t,e),Qn("pv2","101","40",t,e),Qn("pv3","0","100",t,e),Qn("pv4","101","100",t,e),Xn("pv1_name",0,78.5,!e.show_solar,"st3 st8 left-align",n,e.solar.pv1_name||Ln("common.pv1_name"),!0),Xn("pv1_efficiency",0,90,[0,1].includes(d),[2,3].includes(d)?"st3 st8 left-align":"st12",n,"".concat(t.PV1Efficiency,"%"),!0),Xn("pv2_name",99,78.5,1===u,"st3 st8 left-align",n,e.solar.pv2_name||Ln("common.pv2_name"),!0),Xn("pv2_efficiency",99,90,1===u||[0,1].includes(d),[2,3].includes(d)?"st3 st8 left-align":"st12",n,"".concat(t.PV2Efficiency,"%"),!0),Xn("pv3_name",0,139,[1,2].includes(u),"st3 st8 left-align",n,e.solar.pv3_name||Ln("common.pv3_name"),!0),Xn("pv3_efficiency",0,150,[1,2].includes(u)||[0,1].includes(d),[2,3].includes(d)?"st3 st8 left-align":"st12",n,"".concat(t.PV3Efficiency,"%"),!0),Xn("pv4_name",99,139,[1,2,3].includes(u),"st3 st8 left-align",n,e.solar.pv4_name||Ln("common.pv4_name"),!0),Xn("pv4_efficiency",99,150,[1,2,3].includes(u)||[0,1].includes(d),[2,3].includes(d)?"st3 st8 left-align":"st12",n,"".concat(t.PV4Efficiency,"%"),!0),Xn("total_pv_efficiency",51,202,[0,1].includes(d)||1===u,[2,3].includes(d)?"st3 st8 left-align":"st12",n,"".concat(t.totalPVEfficiency,"%"),!0),Xn("daily_solar",43.5,29,1===h,"st3 left-align",r?n:"transparent",e.solar.custom_label||Ln("common.daily_solar"),!1),Xn("remaining_solar",43.5,29,2===h,"st3 left-align",r?n:"transparent",e.solar.custom_label||Ln("common.daily_solar_left"),!1),Xn("total_solar_generation",43.5,29,3===h,"st3 left-align",r?n:"transparent",e.solar.custom_label||Ln("common.total_solar_generation"),!1),Yn("pv1",1===u?e.wide?"M 86 175 M 278 250 L 96 250 Q 86 250 86 240 L 86 56 H 70":"M 86 175 M 155 250 L 96 250 Q 86 250 86 240 L 86 56 H 70":"M 86 162 L 86 56 Q 86 56 86 56 L 70 56",n,t.pv1LineWidth,t.pv1PowerWatts,l.pv1,g,i,"","1;0"),Yn("pv2","M 86 162 L 86 56 Q 86 56 86 56 L 101 56",n,t.pv2LineWidth,t.pv2PowerWatts,l.pv2,g,i,1===u?"st12":"","1;0"),Yn("pv3","M 86 162 L 86 115 Q 86 115 86 115 L 70 115",n,t.pv3LineWidth,t.pv3PowerWatts,l.pv3,g,i,[1,2].includes(u)?"st12":"","1;0"),Yn("pv4","M 86 162 L 86 115 Q 86 115 86 115 L 101 115",n,t.pv4LineWidth,t.pv4PowerWatts,l.pv4,g,i,[1,2,3].includes(u)?"st12":"","1;0"),Yn("solar",e.wide?"M 278 250 L 96 250 Q 86 250 86 240 L 86 192":"M 155 250 L 96 250 Q 86 250 86 240 L 86 192",n,t.solarLineWidth,o,l.solar,g,i,1===u?"st12":"","1;0"),e.solar?.navigate?Z(Kn||(Kn=Ot(['\n                    <a href="#" @click=','>\n                        <svg xmlns="http://www.w3.org/2000/svg" id="sun" x="0" y="-0.5" width="40" height="40"\n                            viewBox="0 0 24 24">\n                            <path fill="','"\n                                d="','"/>\n                        </svg>\n                    </a>'])),t=>kn.handleNavigation(t,e.solar.navigate),n,Vn.sun):Z(qn||(qn=Ot(['\n                    <svg xmlns="http://www.w3.org/2000/svg" id="sun" x="0" y="-0.5" width="40" height="40"\n                        viewBox="0 0 24 24">\n                        <path fill="','"\n                            d="','"/>\n                    </svg>'])),n,Vn.sun),t=>kn.handlePopup(t,e.entities.solar_sell_247),e.entities.solar_sell_247&&"none"!==e.entities.solar_sell_247&&"off"!==t.stateSolarSell.state&&"0"!==t.stateSolarSell.state&&["1","on"].includes(t.stateSolarSell.state)?"":"none",n,Vn.solarSellOn,e.entities.solar_sell_247&&"none"!==e.entities.solar_sell_247&&"on"!==t.stateSolarSell.state&&"1"!==t.stateSolarSell.state&&["0","off"].includes(t.stateSolarSell.state)?"":"none",n,Vn.solarSellOff,Fn("daily_solar_value",43.5,15,1===h&&t.stateDayPVEnergy.isValid(),"st10 left-align",r?n:"transparent",t.stateDayPVEnergy.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_pv_energy_108)),Fn("remaining_solar_value",43.5,15,2===h&&t.stateDayPVEnergy.isValid(),"st10 left-align",r?n:"transparent","".concat(t.stateDayPVEnergy.toPowerString(!0,t.decimalPlacesEnergy)," / ").concat(t.remainingSolar),t=>kn.handlePopup(t,e.entities.day_pv_energy_108)),Fn("total_solar_value",43.5,15,3===h&&t.stateDayPVEnergy.isValid(),"st10 left-align",r?n:"transparent","".concat(t.stateDayPVEnergy.toPowerString(!0,t.decimalPlacesEnergy)," / ").concat(t.totalSolarGeneration),t=>kn.handlePopup(t,e.entities.day_pv_energy_108)),e.entities?.pv_total?Z($n||($n=Ot(["\n                    ",""])),Fn("pvtotal_power",87,178,1===u||!t.statePVTotal.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?e.entities?.pv_total?"".concat(kn.convertValueNew(o,t.statePVTotal?.getUOM(),a)):"".concat(kn.convertValue(o,a)||0):"".concat(kn.toNum(o||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv_total),!0)):Z(ta||(ta=Ot(["\n                    ",""])),Xn("pvtotal_power",87,178,1===u||!t.statePVTotal.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?e.entities?.pv_total?"".concat(kn.convertValueNew(o,t.statePVTotal?.getUOM(),a)):"".concat(kn.convertValue(o,a)||0):"".concat(kn.toNum(o||0,0)," ").concat(Kt.WATT),!0)),Fn("pv1_power_186",36.5,56.5,!t.statePV1Power.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?"".concat(kn.convertValue(t.pv1PowerWatts,a)||0):"".concat(kn.toNum(t.pv1PowerWatts||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv1_power_186),!0),Fn("pv2_power_187",137,56.5,1===u||!t.statePV2Power.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?"".concat(kn.convertValue(t.pv2PowerWatts,a)||0):"".concat(kn.toNum(t.pv2PowerWatts||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv2_power_187),!0),Fn("pv3_power_188",36.5,117,[1,2].includes(u)||!t.statePV3Power.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?"".concat(kn.convertValue(t.pv3PowerWatts,a)||0):"".concat(kn.toNum(t.pv3PowerWatts||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv3_power_188),!0),Fn("pv4_power_189",137,117,[1,2,3].includes(u)||!t.statePV3Power.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?"".concat(kn.convertValue(t.pv4PowerWatts,a)||0):"".concat(kn.toNum(t.pv4PowerWatts||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv4_power_189),!0),Fn("pv1_voltage",41,78.5,!e.entities.pv1_voltage_109||"none"===e.entities.pv1_voltage_109||!t.statePV1Voltage.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV1Voltage.toNum(1),1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.pv1_voltage_109),!0),Fn("pv1_current",41,90,!e.entities.pv1_current_110||"none"===e.entities.pv1_current_110||!t.statePV1Current.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV1Current.toNum(1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.pv1_current_110),!0),Fn("pv2_voltage",142,78.5,!e.entities.pv2_voltage_111||"none"===e.entities.pv2_voltage_111||1===u||!t.statePV2Voltage.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV2Voltage.toNum(1),1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.pv2_voltage_111),!0),Fn("pv2_current",142,90,!e.entities.pv2_current_112||"none"===e.entities.pv2_current_112||1===u||!t.statePV2Current.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV2Current.toNum(1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.pv2_current_112),!0),Fn("pv3_voltage",41,139,!e.entities.pv3_voltage_113||"none"===e.entities.pv3_voltage_113||[1,2].includes(u)||!t.statePV3Voltage.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV3Voltage.toNum(1),1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.pv3_voltage_113),!0),Fn("pv3_current",41,150,!e.entities.pv3_current_114||"none"===e.entities.pv3_current_114||[1,2].includes(u)||!t.statePV3Current.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV3Current.toNum(1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.pv3_current_114),!0),Fn("pv4_voltage",142,139,!e.entities.pv4_voltage_115||"none"===e.entities.pv4_voltage_115||[1,2,3].includes(u)||!t.statePV4Voltage.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV4Voltage.toNum(1),1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.pv4_voltage_115),!0),Fn("pv4_current",142,150,!e.entities.pv4_current_116||"none"===e.entities.pv4_current_116||[1,2,3].includes(u)||!t.statePV4Current.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV4Current.toNum(1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.pv4_current_116),!0),Fn("environ_temp",1,32,!t.stateEnvironmentTemp.isValid(),e.entities?.environment_temp?"st3 left-align":"st12",n,"".concat(t.stateEnvironmentTemp.toNum(1),"°"),t=>kn.handlePopup(t,e.entities.environment_temp),!0))})(n,t),((t,e)=>{const{batteryCount:n,batteryColour:a,battery2Colour:o,largeFont:i,decimalPlaces:r,batteryPower:s,battery2Power:l,isFloating:c,isFloating2:d,batteryShutdown:u,batteryShutdown2:h}=t,{auto_scale:g,show_absolute:m}=e.battery;return W(ra||(ra=Ot(['\n\t\t\x3c!-- Battery Elements --\x3e\n\t\t<svg\n\t\t\tid="Battery"\n\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\tx="','"\n\t\t\ty="2.5%"\n\t\t>\n\t\t\t<svg\n\t\t\t\tid="battery_total_power"\n\t\t\t\tstyle="display: ',';"\n\t\t\t>\n\t\t\t\t<rect\n\t\t\t\t\tx="86"\n\t\t\t\t\ty="265"\n\t\t\t\t\twidth="70"\n\t\t\t\t\theight="30"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tclass="','"\n\t\t\t\t/>\n\t\t\t\t','\n\t\t\t</svg>\n\t\t\t<svg id="battery1_icon" x="','">\n\t\t\t\t<a\n\t\t\t\t\thref="#"\n\t\t\t\t\t@click=','\n\t\t\t\t>\n\t\t\t\t\t<svg\n\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\t\tid="bat"\n\t\t\t\t\t\tx="74.5"\n\t\t\t\t\t\ty="','"\n\t\t\t\t\t\twidth="82"\n\t\t\t\t\t\theight="82"\n\t\t\t\t\t\tpreserveAspectRatio="none"\n\t\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t\t>\n\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t<linearGradient id="bLg-bat1" x1="0%" x2="0%" y1="100%" y2="0%">\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset="0%"\n\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\t\td="','"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\t\tid="bat"\n\t\t\t\t\t\tx="74.5"\n\t\t\t\t\t\ty="','"\n\t\t\t\t\t\twidth="82"\n\t\t\t\t\t\theight="82"\n\t\t\t\t\t\tpreserveAspectRatio="none"\n\t\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t\t>\n\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t<linearGradient id="sLg-bat1" x1="0%" x2="0%" y1="100%" y2="0%">\n\t\t\t\t\t\t\t\t<stop offset="0%" stop-color="red" />\n\t\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t\t\t<animate\n\t\t\t\t\t\t\t\t\tattributeName="','"\n\t\t\t\t\t\t\t\t\tdur="6s"\n\t\t\t\t\t\t\t\t\tvalues="100%; 0%"\n\t\t\t\t\t\t\t\t\trepeatCount="indefinite"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\t\td="','"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t</a>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\tid="battery2_icon"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\tx="','"\n\t\t\t>\n\t\t\t\t<a\n\t\t\t\t\thref="#"\n\t\t\t\t\t@click=','\n\t\t\t\t>\n\t\t\t\t\t<svg\n\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\t\tid="bat"\n\t\t\t\t\t\tx="74.5"\n\t\t\t\t\t\ty="','"\n\t\t\t\t\t\twidth="82"\n\t\t\t\t\t\theight="82"\n\t\t\t\t\t\tpreserveAspectRatio="none"\n\t\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t\t>\n\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t<linearGradient id="b2Lg-bat2" x1="0%" x2="0%" y1="100%" y2="0%">\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset="0%"\n\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\t\td="','"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\t\tid="bat"\n\t\t\t\t\t\tx="74.5"\n\t\t\t\t\t\ty="','"\n\t\t\t\t\t\twidth="82"\n\t\t\t\t\t\theight="82"\n\t\t\t\t\t\tpreserveAspectRatio="none"\n\t\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t\t>\n\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t<linearGradient id="s2Lg-bat2" x1="0%" x2="0%" y1="100%" y2="0%">\n\t\t\t\t\t\t\t\t<stop offset="0%" stop-color="red" />\n\t\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t\t\t<animate\n\t\t\t\t\t\t\t\t\tattributeName="','"\n\t\t\t\t\t\t\t\t\tdur="6s"\n\t\t\t\t\t\t\t\t\tvalues="100%; 0%"\n\t\t\t\t\t\t\t\t\trepeatCount="indefinite"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\t\td="','"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t</a>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\tid="battery1_remaining"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t\t<svg\n\t\t\t\t\tid="Battery1_SOC"\n\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t>\n\t\t\t\t\t','\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="Battery1_SOC_Program_Capacity"\n\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t>\n\t\t\t\t\t','\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="Battery1_SOC_Shutdown"\n\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t</svg>\n\t\t\t\t",'\n\t\t\t</svg>\n\n\t\t\t<svg\n\t\t\t\tid="two_batteries_battery1_remaining"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\tx="-20%"\n\t\t\t>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t\t<svg\n\t\t\t\t\tid="Battery1_SOC"\n\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t>\n\t\t\t\t\t','\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="Battery1_SOC_Program_Capacity"\n\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t>\n\t\t\t\t\t','\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="Battery1_SOC_Shutdown"\n\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t</svg>\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\tid="battery2_remaining"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\tx="','"\n\t\t\t>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t\t<svg\n\t\t\t\t\tid="Battery2_SOC"\n\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t>\n\t\t\t\t\t','\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="Battery2_SOC_Program_Capacity"\n\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t>\n\t\t\t\t\t','\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="Battery2_SOC_Shutdown"\n\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t</svg>\n\t\t\t\t",'\n\t\t\t\t<circle\n\t\t\t\t\tid="bat2"\n\t\t\t\t\tcx="136"\n\t\t\t\t\tcy="377"\n\t\t\t\t\tr="3"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t\tfill="','"\n\t\t\t\t/>\n\t\t\t\t<text x="144" y="378" class="st3 left-align" fill="','">\n\t\t\t\t\t','\n\t\t\t\t</text>\n\t\t\t</svg>\n\t\t\t<svg id="battery1_data" x="','">\n\t\t\t\t<rect\n\t\t\t\t\tx="6"\n\t\t\t\t\ty="','"\n\t\t\t\t\twidth="','"\n\t\t\t\t\theight="','"\n\t\t\t\t\trx="','"\n\t\t\t\t\try="','"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t/>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\tid="battery2_data"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\tx="36%"\n\t\t\t>\n\t\t\t\t<rect\n\t\t\t\t\tx="6"\n\t\t\t\t\ty="320.75"\n\t\t\t\t\twidth="40"\n\t\t\t\t\theight="50"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t/>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<circle\n\t\t\t\tid="bat"\n\t\t\t\tcx="','"\n\t\t\t\tcy="377"\n\t\t\t\tr="3"\n\t\t\t\tdisplay="','"\n\t\t\t\tfill="','"\n\t\t\t/>\n\t\t\t','\n\t\t\t<svg\n\t\t\t\tid="battery_daily"\n\t\t\t\tx="','"\n\t\t\t\ty="','"\n\t\t\t>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="battery-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t</svg>\n\t\t</svg>\n\t"])),e.show_battery?"inline":"none",(e.wide,"3%"),e.wide&&2===n?"inline":"none",e.battery.dynamic_colour?t.flowBatColour:a,(t.compactMode,""),Xn("battery_power_total",120,282,!0,"".concat(!0!==i?"st14":"st4"," st8"),a,g?"".concat(kn.convertValue(t.batteryPowerTotal,r)||0):"".concat(kn.toNum(t.batteryPowerTotal||0,0)," ").concat(Kt.WATT)),2===n?"12.25%":"0%",t=>e.battery.navigate?kn.handleNavigation(t,e.battery.navigate):null,e.battery?.show_remaining_energy?"294":"296.25",t.gridPercentageBat>0?t.gridColour:t.pvPercentageBat>0?t.solarColour:a,t.gridPercentageBat<2?0:t.gridPercentageBat,t.gridPercentageBat>0?t.gridColour:t.pvPercentageBat>0?t.solarColour:a,t.gridPercentageBat<2?0:t.gridPercentageBat,t.pvPercentageBat>0?t.solarColour:a,(t.gridPercentageBat<2?0:t.gridPercentageBat)+(t.pvPercentageBat<2?0:t.pvPercentageBat),t.pvPercentageBat>0?t.solarColour:a,(t.gridPercentageBat<2?0:t.gridPercentageBat)+(t.pvPercentageBat<2?0:t.pvPercentageBat),a,a,e.battery.dynamic_colour?"url(#bLg-bat1)":a,e.battery.linear_gradient?t.battery0:t.batteryIcon,e.battery?.show_remaining_energy?"294":"296.25",t.stopColour,e.battery.animate?"y2":"none",e.battery.linear_gradient?"url(#sLg-bat1)":a,e.battery.linear_gradient?"":"none",t.batteryCharge,Fn("battery_temp_182",93.7,295,!t.stateBatteryTemp.isValid(),e.entities?.battery_temp_182?"st3 left-align":"st12",a,"".concat(kn.formatNumberLocale(t.stateBatteryTemp.toNum(1),1),"°"),t=>kn.handlePopup(t,e.entities.battery_temp_182),!0),Fn("battery_soh",93.7,295,!t.stateBatterySOH.isValid()||!!e.entities?.battery_temp_182,e.entities?.battery_soh?"st3 left-align":"st12",a,"".concat(t.stateBatterySOH.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soh),!0),Xn("battery_remaining_energy",101,378,!e.battery.show_remaining_energy,"remaining-energy",a,e.battery.remaining_energy_to_shutdown?"".concat(kn.formatNumberLocale(kn.toNum(t.batteryEnergy*((t.stateBatterySoc?.toNum()-t.batteryOneShutdown)/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR):"".concat(kn.formatNumberLocale(kn.toNum(t.batteryEnergy*(t.stateBatterySoc.toNum()/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR),!0),2===n?"inline":"none",2===n?"19%":"0%",t=>e.battery2.navigate?kn.handleNavigation(t,e.battery2.navigate):null,e.battery2?.show_remaining_energy?"294":"296.25",t.gridPercentageBat>0?t.gridColour:t.pvPercentageBat>0?t.solarColour:o,t.gridPercentageBat<2?0:t.gridPercentageBat,t.gridPercentageBat>0?t.gridColour:t.pvPercentageBat>0?t.solarColour:o,t.gridPercentageBat<2?0:t.gridPercentageBat,t.pvPercentageBat>0?t.solarColour:o,(t.gridPercentageBat<2?0:t.gridPercentageBat)+(t.pvPercentageBat<2?0:t.pvPercentageBat),t.pvPercentageBat>0?t.solarColour:o,(t.gridPercentageBat<2?0:t.gridPercentageBat)+(t.pvPercentageBat<2?0:t.pvPercentageBat),o,o,e.battery2.dynamic_colour?"url(#b2Lg-bat2)":o,e.battery2.linear_gradient?t.battery20:t.battery2Icon,e.battery2?.show_remaining_energy?"294":"296.25",t.stop2Colour,e.battery2.animate?"y2":"none",e.battery2.linear_gradient?"url(#s2Lg-bat2)":o,e.battery2.linear_gradient?"":"none",t.battery2Charge,Fn("battery2_temp_182",93.7,295,!t.stateBattery2Temp.isValid(),e.entities?.battery2_temp_182?"st3 left-align":"st12",o,"".concat(kn.formatNumberLocale(t.stateBattery2Temp.toNum(1),1),"°"),t=>kn.handlePopup(t,e.entities.battery2_temp_182),!0),Fn("battery2_soh",93.7,295,!t.stateBattery2SOH.isValid()||!!e.entities?.battery2_temp_182,e.entities?.battery2_soh?"st3 left-align":"st12",o,"".concat(t.stateBattery2SOH.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery2_soh),!0),Xn("battery2_remaining_energy",101,378,!e.battery2.show_remaining_energy,"remaining-energy",o,e.battery2.remaining_energy_to_shutdown?"".concat(kn.formatNumberLocale(kn.toNum(t.battery2Energy*((t.stateBattery2Soc?.toNum()-t.batteryTwoShutdown)/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR):"".concat(kn.formatNumberLocale(kn.toNum(t.battery2Energy*(t.stateBattery2Soc.toNum()/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR),!0),1===n?"inline":"none",Xn("duration_text",132,368,!0,"st3 left-align",0===t.batteryEnergy||(!0===e.battery.invert_flow?s>=0:s<=0)||c?"transparent":a,"".concat(Ln("common.runtime_to")," ").concat(t.batteryCapacity,"% @").concat(t.formattedResultTime)),Xn("duration_text_charging",132,368,!0,"st3 left-align",0===t.batteryEnergy||(!0===e.battery.invert_flow?s<=0:s>=0)||c?"transparent":a,"".concat(Ln("common.to")," ").concat(t.batteryCapacity,"% ").concat(Ln("common.charge")," @").concat(t.formattedResultTime)),Xn("floating",132,368,!0,"st3 left-align",0!==t.batteryEnergy&&c?a:"transparent",Ln("common.battery_floating")),Xn("battery_soc_184",202,327,!t.inverterProg.show&&e.battery?.shutdown_soc_offgrid,"".concat(e.battery.hide_soc?"st12":"st14 left-align"),a,"".concat(u,"%")),Xn("battery_soc_184",202,340,!t.inverterProg.show&&e.battery?.shutdown_soc_offgrid,"".concat(e.battery.hide_soc?"st12":"st14 left-align"),a,"".concat(t.shutdownOffGrid,"%")),"none"!==e.entities.battery_soc_184&&t.stateBatterySoc.isValid()?"inline":"none",Fn("battery_soc_184",132.5,333,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid(),"st13 st8 left-align",a,!t.inverterProg.show&&e.battery.shutdown_soc_offgrid?e.battery.hide_soc?t.stateBatterySoc.toDisplay():"".concat(t.stateBatterySoc.toNum(0),"% | "):e.battery.hide_soc?t.stateBatterySoc.toDisplay():"".concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184),!0),"none"!==e.entities.battery_soc_184&&t.stateBatterySoc.isValid()&&!e.battery.hide_soc&&t.inverterProg.show?"inline":"none",Fn("battery_soc_184",132.5,333,!0,"st13 st8 left-align",a,"".concat(t.stateBatterySoc.toNum(0),"% | ").concat(t.inverterProg.capacity||0,"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184)),"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid()||e.battery.hide_soc||t.inverterProg.show||!e.battery?.shutdown_soc||e.battery?.shutdown_soc_offgrid?"none":"inline",Fn("battery_soc_184",132.5,333,!0,"st13 st8 left-align",a,"".concat(t.stateBatterySoc.toNum(0),"% | ").concat(u||0,"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184)),Xn("duration",132,352,!0,"".concat(!0!==i?"st14":"st4"," left-align"),0===t.batteryEnergy||c||0===s?"transparent":a,t.batteryDuration),2===n?"inline":"none",Xn("duration_text",258,368,!0,"st3 right-align",0===t.batteryEnergy||(!0===e.battery.invert_flow?s>=0:s<=0)||c?"transparent":a,"".concat(Ln("common.runtime_to")," ").concat(t.batteryCapacity,"% @").concat(t.formattedResultTime)),Xn("duration_text_charging",258,368,!0,"st3 right-align",0===t.batteryEnergy||(!0===e.battery.invert_flow?s<=0:s>=0)||c?"transparent":a,"".concat(Ln("common.to")," ").concat(t.batteryCapacity,"% ").concat(Ln("common.charge")," @").concat(t.formattedResultTime)),Xn("floating",258,368,!0,"st3 right-align",0!==t.batteryEnergy&&c?a:"transparent",Ln("common.battery_floating")),Xn("battery_soc_184",187,327,!t.inverterProg.show&&e.battery?.shutdown_soc_offgrid,"".concat(e.battery.hide_soc?"st12":"st14 right-align"),a,"".concat(u,"%")),Xn("battery_soc_184",187,340,!t.inverterProg.show&&e.battery?.shutdown_soc_offgrid,"".concat(e.battery.hide_soc?"st12":"st14 right-align"),a,"".concat(t.shutdownOffGrid,"%")),"none"!==e.entities.battery_soc_184&&t.stateBatterySoc.isValid()?"inline":"none",Fn("battery_soc_184",258,333,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid(),"st13 st8 right-align",a,!t.inverterProg.show&&e.battery.shutdown_soc_offgrid?e.battery.hide_soc?t.stateBatterySoc.toDisplay():"| ".concat(t.stateBatterySoc.toNum(0),"%"):e.battery.hide_soc?t.stateBatterySoc.toDisplay():"".concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184),!0),"none"!==e.entities.battery_soc_184&&t.stateBatterySoc.isValid()&&!e.battery.hide_soc&&t.inverterProg.show?"inline":"none",Fn("battery_soc_184",258,333,!0,"st13 st8 right-align",a,"".concat(t.inverterProg.capacity||0,"% | ").concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184)),"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid()||e.battery.hide_soc||t.inverterProg.show||!e.battery?.shutdown_soc||e.battery?.shutdown_soc_offgrid?"none":"inline",Fn("battery_soc_184",258,333,!0,"st13 st8 right-align",a,"".concat(u||0,"% | ").concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184)),Xn("duration",258,352,!0,"".concat(!0!==i?"st14":"st4"," right-align"),0===t.batteryEnergy||c||0===s?"transparent":a,t.batteryDuration),2===n?"inline":"none",2===n?"25%":"0%",Xn("duration_text",132,368,!0,"st3 left-align",0===t.battery2Energy||(!0===e.battery2.invert_flow?l>=0:l<=0)||d?"transparent":o,"".concat(Ln("common.runtime_to")," ").concat(t.battery2Capacity,"% @").concat(t.formattedResultTime2)),Xn("duration_text_charging",132,368,!0,"st3 left-align",0===t.battery2Energy||(!0===e.battery2.invert_flow?l<=0:l>=0)||d?"transparent":o,"".concat(Ln("common.to")," ").concat(t.battery2Capacity,"% ").concat(Ln("common.charge")," @").concat(t.formattedResultTime2)),Xn("floating",132,368,!0,"st3 left-align",0!==t.battery2Energy&&d?o:"transparent",Ln("common.battery_floating")),Xn("battery_soc_184",202,327,!t.inverterProg.show&&e.battery2?.shutdown_soc_offgrid,"".concat(e.battery2.hide_soc?"st12":"st14 left-align"),o,"".concat(h,"%")),Xn("battery_soc_184",202,340,!t.inverterProg.show&&e.battery2?.shutdown_soc_offgrid,"".concat(e.battery2.hide_soc?"st12":"st14 left-align"),o,"".concat(t.shutdownOffGrid2,"%")),"none"!==e.entities.battery2_soc_184&&t.stateBattery2Soc.isValid()?"inline":"none",Fn("battery_soc_184",132,333,"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid(),"st13 st8 left-align",o,!t.inverterProg.show&&e.battery2.shutdown_soc_offgrid?e.battery2.hide_soc?t.stateBattery2Soc.toDisplay():"".concat(t.stateBattery2Soc.toNum(0),"% |"):e.battery2.hide_soc?t.stateBattery2Soc.toDisplay():"".concat(t.stateBattery2Soc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery2_soc_184),!0),"none"!==e.entities.battery2_soc_184&&t.stateBattery2Soc.isValid()&&!e.battery2.hide_soc&&t.inverterProg.show?"inline":"none",Fn("battery_soc_184",132,333,"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid(),"st13 st8 left-align",o,"".concat(t.stateBattery2Soc.toNum(0),"% | ").concat(t.inverterProg.capacity||0,"%"),t=>kn.handlePopup(t,e.entities.battery2_soc_184),!0),"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid()||e.battery2.hide_soc||t.inverterProg.show||!e.battery2?.shutdown_soc||e.battery2?.shutdown_soc_offgrid?"none":"inline",Fn("battery_soc_184",132,333,"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid(),"st13 st8 left-align",o,"".concat(t.stateBattery2Soc.toNum(0),"% | ").concat(h||0,"%"),t=>kn.handlePopup(t,e.entities.battery2_soc_184),!0),Xn("duration",132,352,!0,"".concat(!0!==i?"st14":"st4"," left-align"),0===t.battery2Energy||d||0===l?"transparent":o,t.batteryDuration2),"none"!==e.entities?.battery2_status&&e.entities?.battery2_status?"":"none",t.battery2StateColour,o,t.battery2StateMsg,2===n?"16.25%":"0%",2===n?"320.75":"300.75",2===n?40:70,2===n?50:70,2===n?4.5:10.5,2===n?4.5:10.5,a,Fn("battery_voltage_183",2===n?25:41,2===n?329.5:317,"none"===e.entities.battery_voltage_183||!e.entities.battery_voltage_183,2===n?"st3 st8":!0!==i?"st14 st8":"st4 st8",a,"".concat(kn.formatNumberLocale(t.batteryVoltage,1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.battery_voltage_183),!0),Fn("battery_power_190",2===n?25:41,2===n?362:356,"none"===e.entities.battery_power_190,2===n?"st3 st8":!0!==i?"st14 st8":"st4 st8",a,"".concat(g?m?kn.convertValue(Math.abs(s),r)||"0":kn.convertValue(s,r)||"0":m?"".concat(Math.abs(s)," ").concat(Kt.WATT):"".concat(s||0," ").concat(Kt.WATT)),t=>kn.handlePopup(t,e.entities.battery_power_190),!0),Fn("battery_current_191",2===n?25:41,2===n?345.75:336,"none"===e.entities.battery_current_191||!t.stateBatteryCurrent.isValid(),2===n?"st3 st8":!0!==i?"st14 st8":"st4 st8",a,"".concat(kn.formatNumberLocale(m?Math.abs(kn.toNum(t.stateBatteryCurrent.state,1)):kn.toNum(t.stateBatteryCurrent.state,1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.battery_current_191),!0),2===n?"inline":"none",o,Fn("battery2_voltage_183",25,329.5,"none"===e.entities.battery2_voltage_183||!e.entities.battery2_voltage_183,"st3 st8",o,"".concat(kn.formatNumberLocale(t.battery2Voltage,1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.battery2_voltage_183),!0),Fn("battery2_power_190",25,362,"none"===e.entities.battery2_power_190,"st3 st8",o,e.battery2.auto_scale?"".concat(e.battery2.show_absolute?kn.convertValue(Math.abs(l),r)||"0":kn.convertValue(l,r)||"0"):"".concat(e.battery2.show_absolute?"".concat(Math.abs(l)," ").concat(Kt.WATT):"".concat(l||0," ").concat(Kt.WATT)),t=>kn.handlePopup(t,e.entities.battery2_power_190),!0),Fn("battery2_current_191",25,345.75,"none"===e.entities.battery2_current_191||!t.stateBattery2Current.isValid(),"st3 st8",o,"".concat(kn.formatNumberLocale(e.battery2.show_absolute?Math.abs(kn.toNum(t.stateBattery2Current.state,1)):kn.toNum(t.stateBattery2Current.state,1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.battery2_current_191),!0),2===n?"-8":e.battery.show_remaining_energy?"8":"73","none"!==e.entities?.battery_status&&e.entities?.battery_status?"":"none",t.batteryStateColour,Xn("battery_state_msg",2===n?0:e.battery.show_remaining_energy?15:80,378,!0,"st3 left-align",a,t.batteryStateMsg),2===n?"-2%":"0%",2===n?"2%":"0%",Xn("daily_bat_charge",4.5,251,!0!==t.batteryShowDaily,"st3 left-align",a,e.battery.label_daily_chrg||Ln("common.daily_charge"),!0),Xn("daily_bat_discharge",4.5,285,!0!==t.batteryShowDaily,"st3 left-align",a,e.battery.label_daily_dischrg||Ln("common.daily_discharge"),!0),Fn("daily_bat_charge_value",4.5,237,!0!==t.batteryShowDaily||!t.stateDayBatteryCharge.isValid(),"st10 left-align",a,t.stateDayBatteryCharge.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_battery_charge_70),!0),Fn("daily_bat_discharge_value",4.5,271,!0!==t.batteryShowDaily||!t.stateDayBatteryDischarge.isValid(),"st10 left-align",a,t.stateDayBatteryDischarge.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_battery_discharge_71),!0),na("bat-line",e.wide?2===n?"M 279 280 L 156 281":"M 279 280 L 96 280 Q 86 280 86 290 L 86 297":"M 155 280 L 96 280 Q 86 280 86 290 L 86 297",!0,e.battery.dynamic_colour?t.flowBatColour:a,t.batLineWidth),ia("power-dot-discharge",Math.min(2+t.batLineWidth+Math.max(t.minLineWidth-2,0),8),t.batteryPowerTotal<0||0===t.batteryPowerTotal?"transparent":a,t.durationCur.battery,"1;0","#bat-line",e.battery.invert_flow),ia("power-dot-charge",Math.min(2+t.batLineWidth+Math.max(t.minLineWidth-2,0),8),t.batteryPowerTotal>0||0===t.batteryPowerTotal?"transparent":e.battery.dynamic_colour?t.flowBatColour:a,t.durationCur.battery,"0;1","#bat-line",e.battery.invert_flow))})(n,t),Ta(n,t),((t,e)=>{const{showAux:n,additionalLoad:a,largeFont:o,dynamicColourEssentialLoad1:i,dynamicColourEssentialLoad2:r,dynamicColourEssentialLoad3:s,dynamicColourEssentialLoad4:l,dynamicColourEssentialLoad5:c,dynamicColourEssentialLoad6:d,decimalPlaces:u,loadColour:h,flowColour:g,solarColour:m,gridColour:p,batteryColour:y,essentialPower:_}=t,{auto_scale:f,load1_name:v,load1_switch:w,load2_name:b,load2_switch:A,load3_name:x,load3_switch:P,load4_name:E,load4_switch:L,load5_name:N,load5_switch:C,load6_name:T,load6_switch:S,dynamic_colour:M}=e.load;return W(Ba||(Ba=Ot(['\n\t\t\x3c!-- Load Elements --\x3e\n\t\t<svg\n\t\t\tid="Load"\n\t\t\tstyle="overflow: visible; border: 1px solid red;"\n\t\t\tx="','"\n\t\t\ty="2.5%"\n\t\t>\n\t\t\t<svg\n\t\t\t\tid="es-load5"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\tx="','"\n\t\t\t>\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load5"\n\t\t\t\t\tx="413"\n\t\t\t\t\ty="30"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t','\n\t\t\t\t<g display="','">\n\t\t\t\t\t',"\n\t\t\t\t</g>\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\tid="es-load6"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\tx="','"\n\t\t\t>\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load6"\n\t\t\t\t\tx="413"\n\t\t\t\t\ty="149"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t','\n\t\t\t\t<g display="','">\n\t\t\t\t\t',"\n\t\t\t\t</g>\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<rect\n\t\t\t\tx="236"\n\t\t\t\ty="103"\n\t\t\t\twidth="70"\n\t\t\t\theight="30"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="es-load1"\n\t\t\t\tx="374"\n\t\t\t\ty="','"\n\t\t\t\twidth="70"\n\t\t\t\theight="30"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tdisplay="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="es-load2"\n\t\t\t\tx="','"\n\t\t\t\ty="','"\n\t\t\t\twidth="35"\n\t\t\t\theight="20"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tdisplay="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="es-load2"\n\t\t\t\tx="','"\n\t\t\t\ty="','"\n\t\t\t\twidth="35"\n\t\t\t\theight="20"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tdisplay="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="es-load4"\n\t\t\t\tx="376"\n\t\t\t\ty="149"\n\t\t\t\twidth="35"\n\t\t\t\theight="20"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tdisplay="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="es-load4"\n\t\t\t\tx="413"\n\t\t\t\ty="149"\n\t\t\t\twidth="35"\n\t\t\t\theight="20"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tdisplay="','"\n\t\t\t/>\n\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<svg id="load-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="load1-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t\x3c!-- Essential Icon --\x3e\n\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=','\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="essen_aux"\n\t\t\t\t\tx="373.5"\n\t\t\t\t\ty="','"\n\t\t\t\t\twidth="77"\n\t\t\t\t\theight="77"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<defs>\n\t\t\t\t\t\t<linearGradient id="Lg-essen_aux" x1="0%" x2="0%" y1="100%" y2="0%">\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="0%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t</defs>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="essen_noaux"\n\t\t\t\t\tx="390"\n\t\t\t\t\ty="89"\n\t\t\t\t\twidth="38"\n\t\t\t\t\theight="38"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<defs>\n\t\t\t\t\t\t<linearGradient\n\t\t\t\t\t\t\tid="Lg-essen_noaux"\n\t\t\t\t\t\t\tx1="0%"\n\t\t\t\t\t\t\tx2="0%"\n\t\t\t\t\t\t\ty1="100%"\n\t\t\t\t\t\t\ty2="0%"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="0%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t</defs>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="essen_noaux_four"\n\t\t\t\t\tx="387"\n\t\t\t\t\ty="77"\n\t\t\t\t\twidth="50"\n\t\t\t\t\theight="50"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<defs>\n\t\t\t\t\t\t<linearGradient\n\t\t\t\t\t\t\tid="Lg-essen_noaux_four"\n\t\t\t\t\t\t\tx1="0%"\n\t\t\t\t\t\t\tx2="0%"\n\t\t\t\t\t\t\ty1="100%"\n\t\t\t\t\t\t\ty2="0%"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="0%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t</defs>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="essen_default"\n\t\t\t\t\tx="373.5"\n\t\t\t\t\ty="','"\n\t\t\t\t\twidth="77"\n\t\t\t\t\theight="77"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<defs>\n\t\t\t\t\t\t<linearGradient\n\t\t\t\t\t\t\tid="Lg-essen_default"\n\t\t\t\t\t\t\tx1="0%"\n\t\t\t\t\t\t\tx2="0%"\n\t\t\t\t\t\t\ty1="100%"\n\t\t\t\t\t\t\ty2="0%"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="0%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t</defs>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t</a>\n\t\t\t}\n\t\t\t\x3c!-- Render Static Icons e.g. Boiler, Aircon, Oven and Pump etc --\x3e\n\t\t\t','\n\n\t\t\t<g display="','">\n\t\t\t\t','\n\t\t\t</g>\n\t\t\t<g display="','">\n\t\t\t\t','\n\t\t\t</g>\n\t\t\t<g display="','">\n\t\t\t\t','\n\t\t\t</g>\n\t\t\t<g display="','">\n\t\t\t\t','\n\t\t\t</g>\n\t\t\t<g display="','">\n\t\t\t\t',"\n\t\t\t</g>\n\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t</svg>\n\t"])),e.wide?"30%":"3%",![5,6].includes(a)||!e.wide&&e.load.show_aux?"none":"inline",e.wide?"5%":"-15.25%",c,[5,6].includes(a)?"":"none",Xn("ess-load5",e.wide?416:445,59,[5,6].includes(a),e.wide?"st3 st8 left-align":"st3 st8 right-align",c,N),[5,6].includes(a)?"":"none",Na(C,t.iconEssentialLoad5,"essload5-small-icon",421,5),Fn("ess_load5_value_extra",e.wide?416:445,70,!!e.entities?.essential_load5_extra&&[5,6].includes(a)&&!n&&t.stateEssentialLoad5Extra.isValid(),e.wide?"st3 left-align":"st3 right-align",c,"".concat(kn.formatNumberLocale(t.stateEssentialLoad5Extra.toNum(1),1)," ").concat(t.stateEssentialLoad5Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load5_extra)),Fn("ess_load5_value",430,41,[5,6].includes(a)&&t.stateEssentialLoad5.isValid(),"st3",c,t.stateEssentialLoad5.toPowerString(f,u),t=>kn.handlePopup(t,e.entities.essential_load5)),![6].includes(a)||!e.wide&&e.load.show_aux?"none":"inline",e.wide?"5%":"-15.25%",d,[5,6].includes(a)?"":"none",Xn("ess-load6",e.wide?416:445,178,[5,6].includes(a),e.wide?"st3 st8 left-align":"st3 st8 right-align",d,T),[5,6].includes(a)?"":"none",Na(S,t.iconEssentialLoad6,"essload6-small-icon",421,123),Fn("ess_load6_value_extra",e.wide?416:445,190,!!e.entities?.essential_load6_extra&&[5,6].includes(a)&&!n&&!!e.wide&&t.stateEssentialLoad6Extra.isValid(),e.wide?"st3 left-align":"st3 right-align",d,"".concat(kn.formatNumberLocale(t.stateEssentialLoad6Extra.toNum(1),1)," ").concat(t.stateEssentialLoad6Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load6_extra)),Fn("ess_load6_value",430,160,[5,6].includes(a)&&t.stateEssentialLoad6.isValid(),"st3",d,t.stateEssentialLoad6.toPowerString(f,u),t=>kn.handlePopup(t,e.entities.essential_load6)),M?g:h,n?"143":"30",i,1===a?"":"none",n?"373":"376",n?"149":"30",i,[2,4,5,6].includes(a)?"":"none",n?"410":"413",n?"149":"30",r,[2,4,5,6].includes(a)?"":"none",s,!n&&[3,4,5,6].includes(a)?"":"none",l,!n&&[3,4,5,6].includes(a)?"":"none",Xn("essential_name",411,157,[0].includes(a)||!n&&[1,2].includes(a),"st3 st8",h,e.load.essential_name||Ln("common.essential")),Xn("ess_load",!n&&[4,5,6].includes(a)?411:409,130,[1,2].includes(a)&&n||!n&&[4,5,6].includes(a),"st3 st8",h,e.load.essential_name||Ln("common.essential")),Xn("ess-load1",409,n?181:23,1===a,"st3",i,v),Xn("ess-load2",n?406:408,n?178:59,[2,4,5,6].includes(a),"st3 st8 right-align",i,v),Xn("ess-load2",n?412:414,n?178:59,[2,4,5,6].includes(a),"st3 st8 left-align",r,b),Xn("ess-load4",408,178,[4,5,6].includes(a),"st3 st8 right-align",s,x),Xn("ess-load4",414,178,[4,5,6].includes(a),"st3 st8 left-align",l,E),Xn("daily_load",0===a?"377":"238",0===a?71:93,!t.loadShowDaily||n,"st3 left-align",h,e.load.label_daily_load||Ln("common.daily_load"),!0),Xn("load-power-3P",237,142,e.inverter.three_phase&&!!e.entities?.load_power_L1,"st3 left-align",h,e.inverter.three_phase&&e.entities?.load_power_L1?"".concat(f?kn.convertValue(t.loadPowerL1,u)||0:"".concat(t.loadPowerL1||0)).concat(e.inverter.three_phase&&e.entities?.load_power_L2?" | ".concat(f?kn.convertValue(t.loadPowerL2,u)||0:"".concat(t.loadPowerL2||0)):"").concat(e.inverter.three_phase&&e.entities?.load_power_L3?" | ".concat(f?kn.convertValue(t.loadPowerL3,u)||0:"".concat(t.loadPowerL3||0)):"").concat(f?"":" ".concat(Kt.WATT)):"0"),na("es-load1","M 409 143 L 409 135",n&&[1,2].includes(a),t.load1Colour,1),na("es-load1","M 412 143 L 412 135",!n&&[4,5,6].includes(a),t.load2Colour,1),na("es-load1","M 412 80 L 412 60",!n&&1===a,t.load1Colour,1),na("es-load2","M 412 80 L 412 53",!n&&[2,4,5,6].includes(a),t.load1Colour,1),na("es-line2","M 306 118 L 371 118",!0,M?g:h,t.loadLineWidth),ia("es-dot",Math.min(2+t.loadLineWidth+Math.max(t.minLineWidth-2,0),8),_<=0?"transparent":M?g:h,t.durationCur.load,"0;1","#es-line2",!0===e.load.invert_flow),ia("es-dot",Math.min(2+t.loadLineWidth+Math.max(t.minLineWidth-2,0),8),_>=0?"transparent":M?g:h,t.durationCur.load,"1;0","#es-line2",!0===e.load.invert_flow),na("es-line",e.wide?"M 236 118 L 118 118 Q 108 118 108 128 L 108 162":"M 236 118 L 190 118 Q 180 118 180 128 L 180 162",!0,M?g:h,t.loadLineWidth),ia("es-dot",Math.min(2+t.loadLineWidth+Math.max(t.minLineWidth-2,0),8),_<=0?"transparent":M?g:h,t.durationCur.load,"1;0","#es-line",!0===e.load.invert_flow),ia("es-dot",Math.min(2+t.loadLineWidth+Math.max(t.minLineWidth-2,0),8),_>=0?"transparent":M?g:h,t.durationCur.load,"0;1","#es-line",!0===e.load.invert_flow),t=>e.load.navigate?kn.handleNavigation(t,e.load.navigate):null,1===t.essIconSize?"82.5":"78.5",t.gridPercentage>0?p:t.batteryPercentage>0?y:m,t.gridPercentage,t.gridPercentage>0?p:t.batteryPercentage>0?y:m,t.gridPercentage,t.batteryPercentage>0?y:m,t.gridPercentage+t.batteryPercentage,t.batteryPercentage>0?y:m,t.gridPercentage+t.batteryPercentage,m,m,[1,2].includes(a)&&!n?"":"none",M?"url(#Lg-essen_aux)":h,t.essIcon,t.gridPercentage>0?p:t.batteryPercentage>0?y:m,t.gridPercentage,t.gridPercentage>0?p:t.batteryPercentage>0?y:m,t.gridPercentage,t.batteryPercentage>0?y:m,t.gridPercentage+t.batteryPercentage,t.batteryPercentage>0?y:m,t.gridPercentage+t.batteryPercentage,m,m,[1,2].includes(a)&&n?"":"none",M?"url(#Lg-essen_noaux)":h,t.essIcon,t.gridPercentage>0?p:t.batteryPercentage>0?y:m,t.gridPercentage,t.gridPercentage>0?p:t.batteryPercentage>0?y:m,t.gridPercentage,t.batteryPercentage>0?y:m,t.gridPercentage+t.batteryPercentage,t.batteryPercentage>0?y:m,t.gridPercentage+t.batteryPercentage,m,m,[4,5,6].includes(a)&&!n?"":"none",M?"url(#Lg-essen_noaux_four)":h,t.essIcon,1===t.essIconSize?"82.5":"78.5",t.gridPercentage>0?p:t.batteryPercentage>0?y:m,t.gridPercentage,t.gridPercentage>0?p:t.batteryPercentage>0?y:m,t.gridPercentage,t.batteryPercentage>0?y:m,t.gridPercentage+t.batteryPercentage,t.batteryPercentage>0?y:m,t.gridPercentage+t.batteryPercentage,m,m,[1,2,3,4,5,6].includes(a)?"none":"",M?"url(#Lg-essen_default)":h,t.essIcon,da([t.additionalLoad,t.showAux,t.iconEssentialLoad1,t.iconEssentialLoad2,t.iconEssentialLoad3,t.iconEssentialLoad4,t.iconEssentialLoad5,t.iconEssentialLoad6,t.dynamicColourEssentialLoad1,t.dynamicColourEssentialLoad2,t.dynamicColourEssentialLoad3,t.dynamicColourEssentialLoad4,t.dynamicColourEssentialLoad5,t.dynamicColourEssentialLoad6],()=>la((t=>[{id:"ess_boiler_left_bottom",x:369,y:123,width:24,height:24,loadNumber:1,displayCondition:t.showAux&&[2].includes(t.additionalLoad),opacityCondition:"boiler"===t.iconEssentialLoad1&&[2].includes(t.additionalLoad),iconType:"boiler",prefix:"ess"},{id:"ess_boiler_right_bottom",x:427,y:123,width:24,height:24,loadNumber:2,displayCondition:t.showAux&&[2].includes(t.additionalLoad),opacityCondition:"boiler"===t.iconEssentialLoad2&&[2].includes(t.additionalLoad),iconType:"boiler",prefix:"ess"},{id:"ess_boiler_left_top",x:382,y:5,width:24,height:24,loadNumber:1,displayCondition:[2,4,5,6].includes(t.additionalLoad),opacityCondition:"boiler"===t.iconEssentialLoad1&&[2,4,5,6].includes(t.additionalLoad)&&!t.showAux,iconType:"boiler",prefix:"ess"},{id:"ess_boiler_right_top",x:419,y:5,width:24,height:24,loadNumber:2,displayCondition:[2,4,5,6].includes(t.additionalLoad),opacityCondition:"boiler"===t.iconEssentialLoad2&&[2,4,5,6].includes(t.additionalLoad)&&!t.showAux,iconType:"boiler",prefix:"ess"},{id:"ess_boiler_aux",x:340,y:140,width:36,height:36,loadNumber:1,displayCondition:t.showAux&&[1].includes(t.additionalLoad),opacityCondition:"boiler"===t.iconEssentialLoad1&&1===t.additionalLoad,iconType:"boiler",prefix:"ess"},{id:"ess_boiler_noaux",x:340,y:27,width:36,height:36,loadNumber:1,displayCondition:[1].includes(t.additionalLoad),opacityCondition:"boiler"===t.iconEssentialLoad1&&1===t.additionalLoad&&!t.showAux,iconType:"boiler",prefix:"ess"},{id:"ess_ac_left_bottom",x:371,y:124,width:20,height:20,loadNumber:1,displayCondition:t.showAux&&[2].includes(t.additionalLoad),opacityCondition:"aircon"===t.iconEssentialLoad1&&[2].includes(t.additionalLoad),iconType:"aircon",prefix:"ess"},{id:"ess_ac_right_bottom",x:429,y:124,width:20,height:20,loadNumber:2,displayCondition:t.showAux&&[2].includes(t.additionalLoad),opacityCondition:"aircon"===t.iconEssentialLoad2&&[2,3,4,5,6].includes(t.additionalLoad),iconType:"aircon",prefix:"ess"},{id:"ess_ac_left_top",x:382,y:6,width:20,height:20,loadNumber:1,displayCondition:[2,4,5,6].includes(t.additionalLoad),opacityCondition:"aircon"===t.iconEssentialLoad1&&[2,4,5,6].includes(t.additionalLoad)&&!t.showAux,iconType:"aircon",prefix:"ess"},{id:"ess_ac_right_top",x:419,y:6,width:20,height:20,loadNumber:2,displayCondition:[2,4,5,6].includes(t.additionalLoad),opacityCondition:"aircon"===t.iconEssentialLoad2&&[2,4,5,6].includes(t.additionalLoad)&&!t.showAux,iconType:"aircon",prefix:"ess"},{id:"ess_ac_aux",x:342,y:143,width:30,height:30,loadNumber:1,displayCondition:t.showAux&&[1].includes(t.additionalLoad),opacityCondition:"aircon"===t.iconEssentialLoad1&&1===t.additionalLoad,iconType:"aircon",prefix:"ess"},{id:"ess_ac_noaux",x:342,y:30,width:30,height:30,loadNumber:1,displayCondition:[1].includes(t.additionalLoad),opacityCondition:"aircon"===t.iconEssentialLoad1&&1===t.additionalLoad&&!t.showAux,iconType:"aircon",prefix:"ess"},{id:"ess_pump_left_bottom",x:371,y:125,width:20,height:25,loadNumber:1,displayCondition:t.showAux&&[2].includes(t.additionalLoad),opacityCondition:"pump"===t.iconEssentialLoad1&&[2].includes(t.additionalLoad),iconType:"pump",prefix:"ess"},{id:"ess_pump_right_bottom",x:429,y:125,width:20,height:25,loadNumber:2,displayCondition:t.showAux&&[2].includes(t.additionalLoad),opacityCondition:"pump"===t.iconEssentialLoad2&&[2].includes(t.additionalLoad),iconType:"pump",prefix:"ess"},{id:"ess_pump_left_top",x:383,y:7,width:20,height:25,loadNumber:1,displayCondition:[2,4,5,6].includes(t.additionalLoad),opacityCondition:"pump"===t.iconEssentialLoad1&&[2,4,5,6].includes(t.additionalLoad)&&!t.showAux,iconType:"pump",prefix:"ess"},{id:"ess_pump_right_top",x:421,y:7,width:20,height:25,loadNumber:2,displayCondition:[2,4,5,6].includes(t.additionalLoad),opacityCondition:"pump"===t.iconEssentialLoad2&&[2,4,5,6].includes(t.additionalLoad)&&!t.showAux,iconType:"pump",prefix:"ess"},{id:"ess_pump_aux",x:336,y:140,width:36,height:36,loadNumber:1,displayCondition:t.showAux&&[1].includes(t.additionalLoad),opacityCondition:"pump"===t.iconEssentialLoad1&&1===t.additionalLoad,iconType:"pump",prefix:"ess"},{id:"ess_pump_noaux",x:336,y:27,width:36,height:36,loadNumber:1,displayCondition:[1].includes(t.additionalLoad),opacityCondition:"pump"===t.iconEssentialLoad1&&1===t.additionalLoad&&!t.showAux,iconType:"pump",prefix:"ess"},{id:"ess_oven_left_bottom",x:371,y:126,width:20,height:20,loadNumber:1,displayCondition:t.showAux&&[2].includes(t.additionalLoad),opacityCondition:"oven"===t.iconEssentialLoad1&&[2].includes(t.additionalLoad),iconType:"oven",prefix:"ess",viewBoxSize:32},{id:"ess_oven_right_bottom",x:429,y:126,width:20,height:20,loadNumber:2,displayCondition:t.showAux&&[2].includes(t.additionalLoad),opacityCondition:"oven"===t.iconEssentialLoad2&&[2].includes(t.additionalLoad),iconType:"oven",prefix:"ess",viewBoxSize:32},{id:"ess_oven_left_top",x:382,y:5,width:24,height:24,loadNumber:1,displayCondition:[2,4,5,6].includes(t.additionalLoad),opacityCondition:"oven"===t.iconEssentialLoad1&&[2,4,5,6].includes(t.additionalLoad)&&!t.showAux,iconType:"oven",prefix:"ess",viewBoxSize:32},{id:"ess_oven_right_top",x:419,y:5,width:24,height:24,loadNumber:2,displayCondition:[2,4,5,6].includes(t.additionalLoad),opacityCondition:"oven"===t.iconEssentialLoad2&&[2,4,5,6].includes(t.additionalLoad)&&!t.showAux,iconType:"oven",prefix:"ess",viewBoxSize:32},{id:"ess_oven_aux",x:336,y:140,width:36,height:36,loadNumber:1,displayCondition:t.showAux&&[1].includes(t.additionalLoad),opacityCondition:"oven"===t.iconEssentialLoad1&&1===t.additionalLoad,iconType:"oven",prefix:"ess",viewBoxSize:32},{id:"ess_oven_noaux",x:336,y:27,width:36,height:36,loadNumber:1,displayCondition:[1].includes(t.additionalLoad),opacityCondition:"oven"===t.iconEssentialLoad1&&1===t.additionalLoad&&!t.showAux,iconType:"oven",prefix:"ess",viewBoxSize:32}])(t),t=>t.id,e=>Oa(t,e))),[2,4,5,6].includes(a)?"":"none",Na(w,t.iconEssentialLoad1,"essload1-small-icon",n?371:384,n?123:5),[2,4,5,6].includes(a)?"":"none",Na(A,t.iconEssentialLoad2,"essload2-small-icon",n?429:421,n?123:5),[4,5,6].includes(a)?"":"none",Na(P,t.iconEssentialLoad3,"essload3-small-icon",371,123),[4,5,6].includes(a)?"":"none",Na(L,t.iconEssentialLoad4,"essload4-small-icon",429,123),1===a?"":"none",Na(w,t.iconEssentialLoad1,"essload1-icon-full",336,n?140:27),Fn("daily_load_value_aux",238,80,!t.loadShowDaily||!n||!t.stateDayLoadEnergy.isValid(),"st10 left-align",h,t.stateDayLoadEnergy.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_load_energy_84),!0),Fn("daily_load_value",0===a?377:238,0===a?57:80,!t.loadShowDaily||n||!t.stateDayLoadEnergy.isValid(),"st10 left-align",h,t.stateDayLoadEnergy.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_load_energy_84),!0),Fn("ess_load1_value_extra",416,70,!!e.entities?.essential_load1_extra&&1===a&&!n&&t.stateEssentialLoad1Extra.isValid(),"st3 left-align",i,"".concat(kn.formatNumberLocale(t.stateEssentialLoad1Extra.toNum(1),1)," ").concat(t.stateEssentialLoad1Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load1_extra)),Fn("ess_load1_value_extra",360,136,e.entities?.essential_load1_extra&&1===a&&n&&t.stateEssentialLoad1Extra.isValid(),"st3 st8",i,"".concat(kn.formatNumberLocale(t.stateEssentialLoad1Extra.toNum(1),1)," ").concat(t.stateEssentialLoad1Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load1_extra)),Fn("ess_load1_value_extra",408,70,!!e.entities?.essential_load1_extra&&[2,4,5,6].includes(a)&&!n&&t.stateEssentialLoad1Extra.isValid(),"st3 right-align",i,"".concat(kn.formatNumberLocale(t.stateEssentialLoad1Extra.toNum(1),1)," ").concat(t.stateEssentialLoad1Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load1_extra)),Fn("ess_load2_value_extra",414,70,!!e.entities?.essential_load2_extra&&[2,4,5,6].includes(a)&&!n&&t.stateEssentialLoad2Extra.isValid(),"st3 left-align",r,"".concat(kn.formatNumberLocale(t.stateEssentialLoad2Extra.toNum(1),1)," ").concat(t.stateEssentialLoad2Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_power&&"none"!==e.entities.essential_power?Z(Da||(Da=Ot(["\n                    ",""])),Fn("ess_power",270,119,!0,"".concat(!0!==o?"st14":"st4"," st8"),h,f?"".concat(kn.convertValue(_,u)||0):"".concat(_||0," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.essential_power),!1)):Z(ka||(ka=Ot(["\n                    ",""])),Xn("ess_power",270,119,!0,"".concat(!0!==o?"st14":"st4"," st8"),h,f?"".concat(kn.convertValue(_,u)||0):"".concat(_||0," ").concat(Kt.WATT),!1)),Fn("ess_load1_value",409,n?160:47,1===a&&t.stateEssentialLoad1.isValid(),"".concat(!0!==o?"st14":"st4"," st8"),i,t.stateEssentialLoad1.toPowerString(f,u),t=>kn.handlePopup(t,e.entities.essential_load1)),Fn("ess_load2_value",n?391:394,n?160:41,[2,4,5,6].includes(a)&&t.stateEssentialLoad2.isValid(),"st3",i,t.stateEssentialLoad1.toPowerString(f,u),t=>kn.handlePopup(t,e.entities.essential_load1)),Fn("ess_load2_value",n?427:430,n?160:41,[2,4,5,6].includes(a)&&t.stateEssentialLoad2.isValid(),"st3",r,t.stateEssentialLoad2.toPowerString(f,u),t=>kn.handlePopup(t,e.entities.essential_load2)),Fn("ess_load3_value",392,160,[4,5,6].includes(a)&&t.stateEssentialLoad3.isValid(),"st3",s,t.stateEssentialLoad3.toPowerString(f,u),t=>kn.handlePopup(t,e.entities.essential_load3)),Fn("ess_load4_value",430,160,[4,5,6].includes(a)&&t.stateEssentialLoad4.isValid(),"st3",l,t.stateEssentialLoad4.toPowerString(f,u),t=>kn.handlePopup(t,e.entities.essential_load4)))})(n,t),Ga(n,t),((t,e,n)=>{const{inverterColour:a,largeFont:o,enableAutarky:i,enableTimer:r,priorityLoad:s}=t,{auto_scale:l,three_phase:c}=n.inverter;return W(Ha||(Ha=Ot(['\n\t\t\x3c!-- Inverter Elements --\x3e\n\t\t<svg\n\t\t\tid="Inverter"\n\t\t\tstyle="overflow: visible"\n\t\t\tx="','"\n\t\t\ty="2.5%"\n\t\t>\n\t\t\t<rect\n\t\t\t\tx="145.15"\n\t\t\t\ty="162"\n\t\t\t\twidth="70"\n\t\t\t\theight="','"\n\t\t\t\trx="7.5"\n\t\t\t\try="7.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t/>\n\t\t\t<text x="167" y="306" class="st3 left-align" fill="','">\n\t\t\t\t',"\n\t\t\t</text>\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<circle\n\t\t\t\tid="standby"\n\t\t\t\tcx="160"\n\t\t\t\tcy="304"\n\t\t\t\tr="3.5"\n\t\t\t\tfill="','"\n\t\t\t/>\n\t\t\t',"\n\t\t\t",'\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=','\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="timer"\n\t\t\t\t\tx="210"\n\t\t\t\t\ty="','"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="timer_off"\n\t\t\t\t\tx="210"\n\t\t\t\t\ty="','"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t',"\n\t\t\t\t",'\n\t\t\t</a>\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=','\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="pbat"\n\t\t\t\t\tx="210"\n\t\t\t\t\ty="','"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="pload"\n\t\t\t\t\tx="210"\n\t\t\t\t\ty="','"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t</a>\n\t\t\t",'\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=','\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="prog_grid_on"\n\t\t\t\t\tx="265"\n\t\t\t\t\ty="','"\n\t\t\t\t\twidth="20"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tclass="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\tid="prog_grid_off"\n\t\t\t\t\tx="265"\n\t\t\t\t\ty="','"\n\t\t\t\t\twidth="20"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tclass="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t</a>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t</svg>\n\t"])),n.wide?"20%":"3%",c?60:50,a,a,t.inverterStateMsg,Xn("autarkye_value",212,283,i===jt.No,i===jt.Energy?"st4 st8 left-align":"st12",a,"".concat(t.autarkyEnergy,"%"),!0),Xn("ratioe_value",256,283,i===jt.No,i===jt.Energy?"st4 st8 left-align":"st12",a,"".concat(t.ratioEnergy,"%"),!0),Xn("autarkyp_value",212,283,i===jt.No,i===jt.Power?"st4 st8 left-align":"st12",a,"".concat(t.autarkyPower,"%"),!0),Xn("ratiop_value",256,283,i===jt.No,i===jt.Power?"st4 st8 left-align":"st12",a,"".concat(t.ratioPower,"%"),!0),Xn("autarky",212,295,i===jt.No,"st3 left-align",a,n.inverter.label_autarky||Ln("common.autarky"),!0),Xn("ratio",256,295,i===jt.No,"st3 left-align",a,n.inverter.label_ratio||Ln("common.ratio"),!0),t.inverterStateColour,na("inverter-path",c?"M 180 223 L 180 235":"M 180 212 L 180 235",!0,n.battery.dynamic_colour&&n.load.dynamic_colour?t.flowInvColour:a,t.minLineWidth),da([a,t.genericInverterImage,Boolean(n.inverter?.navigate)],()=>n.inverter?.navigate?Z(Ua||(Ua=Ot(['\n\t\t\t\t\t\t\t<a href="#" @click=','>\n\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" x="154.5" y="224.75" width="54"\n\t\t\t\t\t\t\t\t\theight="79" viewBox="0 0 74 91" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\t\t\topacity="','">\n\t\t\t\t\t\t\t\t\t<g transform="translate(0.000000,91.000000) scale(0.100000,-0.100000)"\n\t\t\t\t\t\t\t\t\tfill="','" stroke="none">\n\t\t\t\t\t\t\t\t\t\t<path d="','"/>\n\t\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t</a>'])),t=>kn.handleNavigation(t,n.inverter.navigate),t.genericInverterImage?1:0,a,Vn.inverter):Z(Wa||(Wa=Ot(['\n\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" x="154.5" y="224.75" width="54"\n\t\t\t\t\t\t\t\theight="79" viewBox="0 0 74 91" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\t\topacity="','">\n\t\t\t\t\t\t\t\t<g transform="translate(0.000000,91.000000) scale(0.100000,-0.100000)"\n\t\t\t\t\t\t\t\tfill="','" stroke="none">\n\t\t\t\t\t\t\t\t\t<path d="','"/>\n\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t</svg>'])),t.genericInverterImage?1:0,a,Vn.inverter)),t=>kn.handlePopup(t,n.entities.use_timer_248),i!=jt.No?"232":"249","on"==t.stateUseTimer.state&&"no"!==r?"":"none",a,Vn.timerOn,i!=jt.No?"232":"249","off"==t.stateUseTimer.state&&"no"!==r?"":"none",a,Vn.timerOff,Xn("timer_text_on",228.5,i!=jt.No?243:260,"on"==t.stateUseTimer.state&&"no"!==r,"st3 left-align",a,Ln("common.timer_on")),Xn("timer_text_off",228.5,i!=jt.No?243:260,"off"==t.stateUseTimer.state&&"no"!==r,"st3 left-align",a,Ln("common.timer_off")),t=>kn.handlePopup(t,n.entities.priority_load_243),"no"!=i?"251":"268","off"!==s||"no"===s&&s?"none":"",a,Vn.priorityLoadOff,"no"!=i?"251":"268","on"!==s||"no"===s&&s?"none":"",a,Vn.priorityLoadOn,Xn("priority_text_load",228.5,i!=jt.No?262:280,"on"===s&&("no"!==s||!s),"st3 left-align",a,Ln("common.priority_load")),Xn("priority_text_batt",228.5,i!=jt.No?262:280,"off"===s&&("no"!==s||!s),"st3 left-align",a,Ln("common.priority_batt")),n.inverter?.navigate?Z(Za||(Za=Ot(['\n                    <a href="#" @click=','>\n                        <image x="155" y="224.75" width="53" height="72"\n                            class="','"\n                            href="','"\n                            preserveAspectRatio="none"/>\n                    </a>'])),t=>kn.handleNavigation(t,n.inverter.navigate),t.genericInverterImage?"st12":"",e):Z(Qa||(Qa=Ot(['\n                    <image x="155" y="224.75" width="53" height="72"\n                        class="','"\n                        href="','"\n                        preserveAspectRatio="none"/>'])),t.genericInverterImage?"st12":"",e),e=>kn.handlePopup(e,t.inverterProg.entityID),i!=jt.No?"232":"249",!1===t.inverterProg.show||"no"===r?"none":"","none"===t.inverterProg.charge||"off"!=t.stateUseTimer.state&&"on"!=t.stateUseTimer.state?"st12":"",a,Vn.progGridOn,i!=jt.No?"232":"249",!1===t.inverterProg.show||"no"===r?"none":"","none"!==t.inverterProg.charge||"off"!==t.stateUseTimer.state&&"on"!==t.stateUseTimer.state?"st12":"",a,Vn.progGridOff,Fn("inverter_current_164",180.5,c?188:199,"none"===n.entities.inverter_current_164||!n.entities.inverter_current_164,"".concat(!0!==o?"st14":"st4"," st8"),a,"".concat(kn.formatNumberLocale(t.inverterCurrent,1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,n.entities.inverter_current_164),!0),Fn("inverter_current_L2",180.5,201,!(!c||!n.entities?.inverter_current_L2),"".concat(!0!==o?"st14":"st4"," st8"),a,"".concat(kn.formatNumberLocale(t.inverterCurrentL2,1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,n.entities.inverter_current_L2)),Fn("inverter_current_L3",180.5,214,!(!c||!n.entities?.inverter_current_L3),"".concat(!0!==o?"st14":"st4"," st8"),a,"".concat(kn.formatNumberLocale(t.inverterCurrentL3,1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,n.entities.inverter_current_L3)),Fn("inverter_power_175",180.5,c?174:178,"none"===n.entities.inverter_power_175,"".concat(!0!==o?"st14":"st4"," st8"),a,l?"".concat(kn.convertValue(t.autoScaledInverterPower,t.decimalPlaces)||0):"".concat(t.autoScaledInverterPower," ").concat(Kt.WATT),t=>kn.handlePopup(t,n.entities.inverter_power_175),!0),Fn("ac_temp",[4,5,6].includes(n.solar?.mppts)&&!n.wide?110:134,[4,5,6].includes(n.solar?.mppts)&&!n.wide?237:153,!(!n.entities?.radiator_temp_91||!t.stateRadiatorTemp.isValid()),"st3 left-align",a,"AC: ".concat(kn.formatNumberLocale(t.stateRadiatorTemp.toNum(1),1),"°"),t=>kn.handlePopup(t,n.entities.radiator_temp_91)),Fn("dc_temp",110,266,!(!n.entities?.dc_transformer_temp_90||!t.stateDCTransformerTemp.isValid()),"st3 left-align",a,"DC: ".concat(kn.formatNumberLocale(t.stateDCTransformerTemp.toNum(1),1),"°"),t=>kn.handlePopup(t,n.entities.dc_transformer_temp_90)))})(n,e,t))};var Ja,Ka,qa,$a,to;var eo;var no,ao,oo,io,ro,so,lo,co,uo,ho,go,mo;const po=(t,e)=>{const n=Ft.includes(t.gridStatus.toLowerCase()),a=Yt.includes(t.gridStatus.toLowerCase()),o=e.show_grid,i=t.totalGridPower,r=t.gridColour;return Z(no||(no=Ot(['\n        <svg id="transmission_on" x="-0.5" y="187.5" width="64.5" height="64.5" viewBox="0 0 24 24">\n            <path class="','"\n                fill="','"\n                display="','"\n                d="','"/>\n        </svg>\n        <svg id="transmission_off" x="-0.5" y="187.5" width="64.5" height="64.5" viewBox="0 0 24 24">\n            <path class="','"\n                fill="','" display="','"\n                d="','"/>\n        </svg>\n        <svg id="grid_export" x="-0.5" y="187.5" width="64.5" height="64.5" viewBox="0 0 24 24">\n            <path class="','"\n                fill="','"\n                display="','"\n                d="','"/>\n        </svg>\n    '])),a?"st12":"",r,!o||i<0||e.grid.import_icon?"none":"",Vn.gridOn,n?"st12":"",t.gridOffColour,!o||e.grid.disconnected_icon?"none":"",Vn.gridOff,a?"st12":"",r,!o||i>=0||e.grid.export_icon?"none":"",Vn.gridExportCompact)},yo=(t,e)=>{const n=t.totalGridPower,a=e.grid.auto_scale,o=e.grid.show_absolute,i=t.decimalPlaces,r=t.largeFont,s=t.gridColour;let l;if(a){const t=kn.convertValue(n,i);l=o?kn.convertValue(Math.abs(n),i)||"0":t||"0"}else l=o?Math.abs(n):n||0;return Z(ao||(ao=Ot(['\n        <text id="grid_total_power" x="135" y="219.2"\n            display="','"\n            class="',' st8" fill="','">\n            '," ","\n        </text>\n    "])),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==r?"st14":"st4",s,l,a?"":Kt.WATT)};var _o,fo,vo,wo,bo,Ao;var xo,Po,Eo,Lo,No;var Co,To;const So=(t,e,n)=>{const a=t.title?"".concat(t.title,"|").concat(t.title_colour??"","|").concat(t.title_size??""):"no-title",o=t.title?Lt(Nt(a,W(Co||(Co=Ot(['\n\t\t\t\t\t\t<h1\n\t\t\t\t\t\t\tstyle="text-align: center; color: ',"; font-size: ",';"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t',"\n\t\t\t\t\t\t</h1>\n\t\t\t\t\t"])),t.title_colour||"inherit",t.title_size||"32px",t.title))):"";return W(To||(To=Ot(["\n\t\t<ha-card>\n\t\t\t",'\n\t\t\t<div class="container card">\n\t\t\t\t','\n\t\t\t\t<svg\n\t\t\t\t\tviewBox="','"\n\t\t\t\t\tpreserveAspectRatio="xMidYMid meet"\n\t\t\t\t\theight="','"\n\t\t\t\t\twidth="','"\n\t\t\t\t\txmlns="http://www.w3.org/2000/svg"\n\t\t\t\t\txmlns:xlink="http://www.w3.org/1999/xlink"\n\t\t\t\t>\n\t\t\t\t\t\x3c!-- Solar Elements --\x3e\n\t\t\t\t\t',"\n\n\t\t\t\t\t\x3c!-- Battery Elements --\x3e\n\t\t\t\t\t","\n\n\t\t\t\t\t\x3c!-- Grid Elements --\x3e\n\t\t\t\t\t","\n\n\t\t\t\t\t\x3c!-- Load Elements --\x3e\n\t\t\t\t\t","\n\n\t\t\t\t\t\x3c!-- Inverter Elements --\x3e\n\t\t\t\t\t","\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t</ha-card>\n\t"])),Vt(n),o,t.wide?"0 0 720 405":"".concat(n.viewBoxXLite," ").concat(n.viewBoxYLite," ").concat(n.viewBoxWidthLite," ").concat(n.viewBoxHeightLite),n.cardHeight,n.cardWidth,((t,e)=>{const{solarColour:n,decimalPlaces:a,totalPV:o,minLineWidth:i,solarShowDaily:r,largeFont:s,durationCur:l}=t,{auto_scale:c,efficiency:d,mppts:u,display_mode:h,invert_flow:g}=e.solar;return W(Ja||(Ja=Ot(['\n\t\t\x3c!-- Solar Elements --\x3e\n\t\t<svg\n\t\t\tid="Solar"\n\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\tx="','"\n\t\t>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<svg\n\t\t\t\tid="PV5"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\tx="-10.5%"\n\t\t\t>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\tid="PV6"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\tx="10.5%"\n\t\t\t>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t</svg>\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=','\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\tid="solar_sell_on"\n\t\t\t\t\tx="245"\n\t\t\t\t\ty="150"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 30 30"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="solar_sell_off"\n\t\t\t\t\tx="245"\n\t\t\t\t\ty="150"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 30 30"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t</a>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t</svg>\n\t"])),e.show_solar?"inline":"none",e.wide?"10%":"0%",Qn("pvtotal","205","116.5",t,e),Qn("pv1",1===u?"205":"154","54.5",t,e),Qn("pv2","254","54.5",t,e),Qn("pv3","78","54.5",t,e),Qn("pv4","330","54.5",t,e),e.show_solar&&e.wide&&[5,6].includes(u)?"inline":"none",Qn("pv5","78","54.5",t,e),Xn("pv5_name",105,94,!0,"st3 st8 right-align",n,e.solar.pv5_name||Ln("common.pv5_name")),Xn("pv5_efficiency",105,106,[0,1].includes(d),[2,3].includes(d)?"st3 st8 right-align":"st12",n,"".concat(t.PV5Efficiency,"%"),!0),Yn("pv5","M 113 84 L 113 125 Q 113 132 120 132 L 280 132",n,t.pv5LineWidth,t.pv5PowerWatts,l.pv5,g,i),Fn("pv5_voltage",120,106,!e.entities.pv5_voltage||"none"===e.entities.pv5_voltage||!t.statePV5Voltage.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV5Voltage.toNum(1),1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.pv5_voltage),!0),Fn("pv5_current",120,94,!e.entities.pv5_current||"none"===e.entities.pv5_current||!t.statePV5Current.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV5Current.toNum(1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.pv5_current),!0),Fn("pv5_power",113,71,!t.statePV5Power.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?"".concat(kn.convertValue(t.pv5PowerWatts,a)||0):"".concat(kn.toNum(t.pv5PowerWatts||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv5_power),!0),e.show_solar&&e.wide&&6===u?"inline":"none",Qn("pv6","330","54.5",t,e),Xn("pv6_name",357,94,!0,"st3 st8 right-align",n,e.solar.pv6_name||Ln("common.pv6_name")),Xn("pv6_efficiency",357,106,[0,1].includes(d),[2,3].includes(d)?"st3 st8 right-align":"st12",n,"".concat(t.PV6Efficiency,"%"),!0),Yn("pv6","M 365 85 L 365 125 Q 365 132 358 132 L 200 132",n,t.pv6LineWidth,t.pv6PowerWatts,l.pv6,g,i),Fn("pv6_voltage",372,106,!e.entities.pv6_voltage||"none"===e.entities.pv6_voltage||!t.statePV6Voltage.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV6Voltage.toNum(1),1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.pv6_voltage),!0),Fn("pv6_current",372,94,!e.entities.pv6_current||"none"===e.entities.pv6_current||!t.statePV6Current.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV6Current.toNum(1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.pv6_current),!0),Fn("pv6_power",366,71,!t.statePV6Power.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?"".concat(kn.convertValue(t.pv6PowerWatts,a)||0):"".concat(kn.toNum(t.pv6PowerWatts||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv6_power),!0),Xn("daily_solar",200,40,1===h,"st3 left-align",r&&e.show_solar?n:"transparent",e.solar.custom_label||Ln("common.daily_solar")),Xn("remaining_solar",200,40,2===h,"st3 left-align",r&&e.show_solar?n:"transparent",e.solar.custom_label||Ln("common.daily_solar_left")),Xn("total_solar_generation",200,40,3===h,"st3 left-align",r&&e.show_solar?n:"transparent",e.solar.custom_label||Ln("common.total_solar_generation"),!1),Xn("pv1_name",1===u?"230":"179",94,!0,"st3 st8 right-align",n,e.solar.pv1_name||Ln("common.pv1_name")),Xn("pv1_efficiency",1===u?"230":"179",106,[0,1].includes(d),[2,3].includes(d)?"st3 st8 right-align":"st12",n,"".concat(t.PV1Efficiency,"%"),!0),Xn("pv2_name",281,94,1===u,"st3 st8 right-align",n,e.solar.pv2_name||Ln("common.pv2_name"),!0),Xn("pv2_efficiency",281,106,1===u||[0,1].includes(d),[2,3].includes(d)?"st3 st8 right-align":"st12",n,"".concat(t.PV2Efficiency,"%"),!0),Xn("pv3_name",105,94,[1,2].includes(u),"st3 st8 right-align",n,e.solar.pv3_name||Ln("common.pv3_name"),!0),Xn("pv3_efficiency",105,106,[1,2].includes(u)||[0,1].includes(d),[2,3].includes(d)?"st3 st8 right-align":"st12",n,"".concat(t.PV3Efficiency,"%"),!0),Xn("pv4_name",357,94,[1,2,3].includes(u),"st3 st8 right-align",n,e.solar.pv4_name||Ln("common.pv4_name"),!0),Xn("pv4_efficiency",357,106,[1,2,3].includes(u)||[0,1].includes(d),[2,3].includes(d)?"st3 st8 right-align":"st12",n,"".concat(t.PV4Efficiency,"%"),!0),Xn("total_pv_efficiency",215,156,1===u,[2,3].includes(d)?"st3 st8":"st12",n,"".concat(t.totalPVEfficiency,"%"),!0),Yn("pv1",1===u?"M 239.23 84 L 239 190":"M 187 84 L 187 122 Q 187 132 195 132 L 205 132.03",n,t.pv1LineWidth,t.pv1PowerWatts,l.pv1,g,i),Yn("pv2","M 289 84.5 L 289 125 Q 289 132 282 132 L 275 132",n,t.pv2LineWidth,t.pv2PowerWatts,l.pv2,g,i,1===u?"st12":""),Yn("pv3","M 113 84 L 113 125 Q 113 132 120 132 L 205 132.03",n,t.pv3LineWidth,t.pv3PowerWatts,l.pv3,g,i,[1,2].includes(u)?"st12":""),Yn("pv4","M 365 85 L 365 125 Q 365 132 358 132 L 275 132",n,t.pv4LineWidth,t.pv4PowerWatts,l.pv4,g,i,[1,2,3].includes(u)?"st12":""),Yn("solar","M 239 190 L 239 147",n,t.solarLineWidth,o,l.solar,g,i,1===u?"st12":"","1;0"),e.solar?.navigate?Z(Ka||(Ka=Ot(['\n                    <a href="#" @click=','>\n                        <svg id="sun" x="154" y="10" width="40" height="40"\n                            viewBox="0 0 24 24">\n                            <path fill="','"\n                                d="','"/>\n                        </svg>\n                    </a>'])),t=>kn.handleNavigation(t,e.solar.navigate),n,Vn.sun):Z(qa||(qa=Ot(['\n                    <svg id="sun" x="154" y="10" width="40" height="40"\n                        viewBox="0 0 24 24">\n                        <path fill="','"\n                            d="','"/>\n                    </svg>'])),n,Vn.sun),t=>kn.handlePopup(t,e.entities.solar_sell_247),e.entities.solar_sell_247&&"off"!==t.stateSolarSell.state&&"0"!==t.stateSolarSell.state&&e.show_solar&&["1","on"].includes(t.stateSolarSell.state)?"":"none",n,Vn.solarSellOn,e.entities.solar_sell_247&&"on"!==t.stateSolarSell.state&&"1"!==t.stateSolarSell.state&&e.show_solar&&["0","off"].includes(t.stateSolarSell.state)?"":"none",n,Vn.solarSellOff,Fn("daily_solar_value",200,26,1===h&&t.stateDayPVEnergy.isValid(),"st10 left-align",r?n:"transparent",t.stateDayPVEnergy?.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_pv_energy_108)),Fn("remaining_solar_value",200,26,2===h&&t.stateDayPVEnergy.isValid(),"st10 left-align",r?n:"transparent","".concat(t.stateDayPVEnergy?.toPowerString(!0,t.decimalPlacesEnergy)," / ").concat(t.remainingSolar),t=>kn.handlePopup(t,e.entities.day_pv_energy_108)),Fn("total_solar_value",200,26,3===h&&t.stateDayPVEnergy.isValid(),"st10 left-align",r?n:"transparent","".concat(t.stateDayPVEnergy?.toPowerString(!0,t.decimalPlacesEnergy)," / ").concat(t.totalSolarGeneration),t=>kn.handlePopup(t,e.entities.day_pv_energy_108)),Fn("pv1_voltage",1===u?"244.7":"194",106,!e.entities.pv1_voltage_109||"none"===e.entities.pv1_voltage_109||!t.statePV1Voltage.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV1Voltage.toNum(1),1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.pv1_voltage_109),!0),Fn("pv1_current",1===u?"244.7":"194",94,!e.entities.pv1_current_110||"none"===e.entities.pv1_current_110||!t.statePV1Current.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV1Current.toNum(1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.pv1_current_110),!0),Fn("pv2_voltage",296,106,!e.entities.pv2_voltage_111||"none"===e.entities.pv2_voltage_111||1===u||!t.statePV2Voltage.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV2Voltage.toNum(1),1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.pv2_voltage_111),!0),Fn("pv2_current",296,94,!e.entities.pv2_current_112||"none"===e.entities.pv2_current_112||1===u||!t.statePV2Current.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV2Current.toNum(1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.pv2_current_112),!0),Fn("pv3_voltage",120,106,!e.entities.pv3_voltage_113||"none"===e.entities.pv3_voltage_113||[1,2].includes(u)||!t.statePV3Voltage.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV3Voltage.toNum(1),1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.pv3_voltage_113),!0),Fn("pv3_current",120,94,!e.entities.pv3_current_114||"none"===e.entities.pv3_current_114||[1,2].includes(u)||!t.statePV3Current.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV3Current.toNum(1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.pv3_current_114),!0),Fn("pv4_voltage",372,106,!e.entities.pv4_voltage_115||"none"===e.entities.pv4_voltage_115||[1,2,3].includes(u)||!t.statePV4Voltage.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV4Voltage.toNum(1),1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.pv4_voltage_115),!0),Fn("pv4_current",372,94,!e.entities.pv4_current_116||"none"===e.entities.pv4_current_116||[1,2,3].includes(u)||!t.statePV4Current.isValid(),"st3 left-align",n,"".concat(kn.formatNumberLocale(t.statePV4Current.toNum(1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.pv4_current_116),!0),Fn("environ_temp",154,45,!t.stateEnvironmentTemp.isValid(),e.entities?.environment_temp?"st3 left-align":"st12",n,"".concat(kn.formatNumberLocale(t.stateEnvironmentTemp.toNum(1),1),"°"),t=>kn.handlePopup(t,e.entities.environment_temp),!0),e.entities?.pv_total?Z($a||($a=Ot(["\n                    ",""])),Fn("pvtotal_power",238.8,133.9,1===u||!t.statePVTotal.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?e.entities?.pv_total?"".concat(kn.convertValueNew(o,t.statePVTotal.getUOM(),a)):"".concat(kn.convertValue(o,a)||0):"".concat(kn.toNum(o||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv_total),!0)):Z(to||(to=Ot(["\n                    ",""])),Xn("pvtotal_power",238.8,133.9,1===u||!t.statePVTotal.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?e.entities?.pv_total?"".concat(kn.convertValueNew(o,t.statePVTotal.getUOM(),a)):"".concat(kn.convertValue(o,a)||0):"".concat(kn.toNum(o||0,0)," ").concat(Kt.WATT),!0)),Fn("pv1_power_186",1===u?"238.8":"188.1",71,!t.statePV1Power.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?"".concat(kn.convertValue(t.pv1PowerWatts,a)||0):"".concat(kn.toNum(t.pv1PowerWatts||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv1_power_186),!0),Fn("pv2_power_187",289.5,71,1===u||!t.statePV2Power.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?"".concat(kn.convertValue(t.pv2PowerWatts,a)||0):"".concat(kn.toNum(t.pv2PowerWatts||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv2_power_187),!0),Fn("pv3_power_188",113,71,[1,2].includes(u)||!t.statePV3Power.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?"".concat(kn.convertValue(t.pv3PowerWatts,a)||0):"".concat(kn.toNum(t.pv3PowerWatts||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv3_power_188),!0),Fn("pv4_power_189",366,71,[1,2,3].includes(u)||!t.statePV4Power.isValid(),"".concat(!0!==s?"st14":"st4"," st8"),n,c?"".concat(kn.convertValue(t.pv4PowerWatts,a)||0):"".concat(kn.toNum(t.pv4PowerWatts||0,0)," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.pv4_power_189),!0))})(n,t),((t,e)=>{const{batteryCount:n,batteryColour:a,battery2Colour:o,compactMode:i,largeFont:r,decimalPlaces:s,batteryPower:l,battery2Power:c,isFloating:d,isFloating2:u,batteryShutdown:h,batteryShutdown2:g}=t,{auto_scale:m,show_absolute:p}=e.battery;return W(eo||(eo=Ot(['\n\t\t\x3c!-- Battery Elements --\x3e\n\t\t<svg\n\t\t\tid="battery_main"\n\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\tx="','"\n\t\t>\n\t\t\t<g>\n\t\t\t\t<svg\n\t\t\t\t\tid="battery_total_power"\n\t\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\t>\n\t\t\t\t\t<rect\n\t\t\t\t\t\tx="205"\n\t\t\t\t\t\ty="285"\n\t\t\t\t\t\twidth="70"\n\t\t\t\t\t\theight="30"\n\t\t\t\t\t\trx="4.5"\n\t\t\t\t\t\try="4.5"\n\t\t\t\t\t\tfill="none"\n\t\t\t\t\t\tstroke="','"\n\t\t\t\t\t\tpointer-events="all"\n\t\t\t\t\t\tclass="','"\n\t\t\t\t\t/>\n\t\t\t\t\t','\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="battery_data"\n\t\t\t\t\tstyle="overflow: visible;"\n\t\t\t\t\tx="','"\n\t\t\t\t>\n\t\t\t\t\t<rect\n\t\t\t\t\t\tx="205"\n\t\t\t\t\t\ty="290"\n\t\t\t\t\t\twidth="70"\n\t\t\t\t\t\theight="30"\n\t\t\t\t\t\trx="4.5"\n\t\t\t\t\t\try="4.5"\n\t\t\t\t\t\tfill="none"\n\t\t\t\t\t\tstroke="','"\n\t\t\t\t\t\tpointer-events="all"\n\t\t\t\t\t\tclass="','"\n\t\t\t\t\t/>\n\t\t\t\t\t<rect\n\t\t\t\t\t\tx="159"\n\t\t\t\t\t\ty="','"\n\t\t\t\t\t\twidth="70"\n\t\t\t\t\t\theight="','"\n\t\t\t\t\t\trx="','"\n\t\t\t\t\t\try="','"\n\t\t\t\t\t\tfill="none"\n\t\t\t\t\t\tstroke="','"\n\t\t\t\t\t\tpointer-events="all"\n\t\t\t\t\t\tclass="','"\n\t\t\t\t\t/>\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t",'\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="two_batteries_data_compact_bat1"\n\t\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\t\tx="-2.5%"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t\t",'\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="two_batteries_data_compact_bat2"\n\t\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\t\tx="9.5%"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t",'\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="battery2_data_lite"\n\t\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\t\tx="19%"\n\t\t\t\t>\n\t\t\t\t\t<rect\n\t\t\t\t\t\tx="159"\n\t\t\t\t\t\ty="329.75"\n\t\t\t\t\t\twidth="70"\n\t\t\t\t\t\theight="70"\n\t\t\t\t\t\trx="10.5"\n\t\t\t\t\t\try="10.5"\n\t\t\t\t\t\tfill="none"\n\t\t\t\t\t\tstroke="','"\n\t\t\t\t\t\tpointer-events="all"\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t/>\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t",'\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="battery_1_runtime"\n\t\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t",'\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery1_SOC"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery1_SOC_Program_Capacity"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery1_SOC_Shutdown"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="two_batteries_battery1_runtime_lite"\n\t\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\t\tx="-43.5%"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t",'\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery1_SOC"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery1_SOC_Program_Capacity"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery1_SOC_Shutdown"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="two_batteries_battery_2_runtime_lite"\n\t\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\t\tx="12%"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t",'\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery2_SOC"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery2_SOC_Program_Capacity"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery2_SOC_Shutdown"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="two_batteries_runtime_compact_bat1"\n\t\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\t\tx="-29%"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t",'\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery1_SOC"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery1_SOC_Program_Capacity"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery1_SOC_Shutdown"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t',"\n\t\t\t\t\t</svg>\n\t\t\t\t\t",'\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="two_batteries_runtime_compact_bat2"\n\t\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\t\tx="0.3%"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t","\n\t\t\t\t\t",'\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery2_SOC"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery2_SOC_Program_Capacity"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="Battery2_SOC_Shutdown"\n\t\t\t\t\t\tstyle="overflow: visible; \n                        display: ',';"\n\t\t\t\t\t>\n\t\t\t\t\t\t','\n\t\t\t\t\t</svg>\n\t\t\t\t</svg>\n\t\t\t\t<svg id="battery_flow" style="overflow: visible;">\n\t\t\t\t\t',"\n\t\t\t\t\t","\n\t\t\t\t\t",'\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="battery_icon"\n\t\t\t\t\tstyle="overflow: visible;"\n\t\t\t\t\tx="','"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t\t",'\n\t\t\t\t\t<circle\n\t\t\t\t\t\tid="bat"\n\t\t\t\t\t\tcx="','"\n\t\t\t\t\t\tcy="','"\n\t\t\t\t\t\tr="3.5"\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t/>\n\n\t\t\t\t\t<a\n\t\t\t\t\t\thref="#"\n\t\t\t\t\t\t@click=','\n\t\t\t\t\t>\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\tid="bat_outter"\n\t\t\t\t\t\t\tx="','"\n\t\t\t\t\t\t\ty="325.5"\n\t\t\t\t\t\t\twidth="78.75"\n\t\t\t\t\t\t\theight="78.75"\n\t\t\t\t\t\t\tpreserveAspectRatio="none"\n\t\t\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t\t<linearGradient id="bLg-bat1" x1="0%" x2="0%" y1="100%" y2="0%">\n\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\toffset="0%"\n\t\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\t\t\td="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\tid="bat_inner"\n\t\t\t\t\t\t\tx="','"\n\t\t\t\t\t\t\ty="325.5"\n\t\t\t\t\t\t\twidth="78.75"\n\t\t\t\t\t\t\theight="78.75"\n\t\t\t\t\t\t\tpreserveAspectRatio="none"\n\t\t\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t\t<linearGradient id="sLg-bat1" x1="0%" x2="0%" y1="100%" y2="0%">\n\t\t\t\t\t\t\t\t\t<stop offset="0%" stop-color="red" />\n\t\t\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t\t\t\t<animate\n\t\t\t\t\t\t\t\t\t\tattributeName="','"\n\t\t\t\t\t\t\t\t\t\tdur="6s"\n\t\t\t\t\t\t\t\t\t\tvalues="100%; 0%"\n\t\t\t\t\t\t\t\t\t\trepeatCount="indefinite"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\t\t\td="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</a>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="battery2_icon"\n\t\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\t\tx="0.75%"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t\t",'\n\t\t\t\t\t<circle\n\t\t\t\t\t\tid="bat"\n\t\t\t\t\t\tcx="295"\n\t\t\t\t\t\tcy="','"\n\t\t\t\t\t\tr="3.5"\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t/>\n\n\t\t\t\t\t<a\n\t\t\t\t\t\thref="#"\n\t\t\t\t\t\t@click=','\n\t\t\t\t\t>\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\tid="bat"\n\t\t\t\t\t\t\tx="232.5"\n\t\t\t\t\t\t\ty="325.5"\n\t\t\t\t\t\t\twidth="78.75"\n\t\t\t\t\t\t\theight="78.75"\n\t\t\t\t\t\t\tpreserveAspectRatio="none"\n\t\t\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t\t\x3c!-- Stable ID for battery2 gradient; Shadow DOM scoping prevents collisions across cards --\x3e\n\t\t\t\t\t\t\t\t<linearGradient id="b2Lg" x1="0%" x2="0%" y1="100%" y2="0%">\n\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\toffset="0%"\n\t\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\t\t\td="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\tid="bat"\n\t\t\t\t\t\t\tx="232.5"\n\t\t\t\t\t\t\ty="325.5"\n\t\t\t\t\t\t\twidth="78.75"\n\t\t\t\t\t\t\theight="78.75"\n\t\t\t\t\t\t\tpreserveAspectRatio="none"\n\t\t\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t\t\x3c!-- Stable ID for battery2 animated gradient; Shadow DOM scoping prevents collisions across cards --\x3e\n\t\t\t\t\t\t\t\t<linearGradient id="s2Lg" x1="0%" x2="0%" y1="100%" y2="0%">\n\t\t\t\t\t\t\t\t\t<stop offset="0%" stop-color="red" />\n\t\t\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t\t\t\t<animate\n\t\t\t\t\t\t\t\t\t\tattributeName="','"\n\t\t\t\t\t\t\t\t\t\tdur="6s"\n\t\t\t\t\t\t\t\t\t\tvalues="100%; 0%"\n\t\t\t\t\t\t\t\t\t\trepeatCount="indefinite"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\t\t\td="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</a>\n\t\t\t\t</svg>\n\t\t\t\t<svg id="battery_daily" style="overflow: visible;">\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="battery_daily_charge"\n\t\t\t\t\t\tstyle="overflow: visible;"\n\t\t\t\t\t\tx="','"\n\t\t\t\t\t\ty="','"\n\t\t\t\t\t>\n\t\t\t\t\t\t',"\n\t\t\t\t\t\t",'\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tid="battery_daily_discharge"\n\t\t\t\t\t\tstyle="overflow: visible;"\n\t\t\t\t\t\tx="','"\n\t\t\t\t\t\ty="','"\n\t\t\t\t\t>\n\t\t\t\t\t\t',"\n\t\t\t\t\t\t","\n\t\t\t\t\t</svg>\n\t\t\t\t</svg>\n\t\t\t</g>\n\t\t</svg>\n\t"])),e.show_battery?"inline":"none",e.wide?"10%":"0%",e.wide&&2===n?"inline":"none",e.battery.dynamic_colour?t.flowBatColour:a,"",Xn("battery_power_total",240,302,!0,"".concat(!0!==r?"st14":"st4"," st8"),a,m?"".concat(kn.convertValue(t.batteryPowerTotal,s)||0):"".concat(kn.toNum(t.batteryPowerTotal||0,0)," ").concat(Kt.WATT)),2===n?"-6.5%":"0%",e.battery.dynamic_colour?t.flowBatColour:a,i&&1===n?"":"st12",i?"348":"329.75",i?"50":"70",i?"7.5":"10.5",i?"7.5":"10.5",a,i?"st12":"",Fn("battery_voltage_183",193,346,"none"===e.entities.battery_voltage_183||!e.entities.battery_voltage_183||i,"".concat(!0!==r?"st14":"st4"," st8"),a,"".concat(kn.formatNumberLocale(t.batteryVoltage,1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.battery_voltage_183),!0),Fn("battery_voltage_183",281,299,"none"===e.entities.battery_voltage_183||!e.entities.battery_voltage_183||!i||2===n,"".concat(i?"st3 left-align":"st12"),a,"".concat(kn.formatNumberLocale(t.batteryVoltage,1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.battery_voltage_183),!0),Fn("battery_current_191",193,365.3,!e.entities.battery_current_191||"none"===e.entities.battery_current_191||i||!t.stateBatteryCurrent.isValid(),"".concat(!0!==r?"st14":"st4"," st8"),a,"".concat(kn.formatNumberLocale(p?Math.abs(kn.toNum(t.stateBatteryCurrent.state,1)):kn.toNum(t.stateBatteryCurrent.state,1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.battery_current_191),!0),Fn("battery_current_191",281,312,!e.entities.battery_current_191||"none"===e.entities.battery_current_191||!i||!t.stateBatteryCurrent.isValid()||2===n,"".concat(i?"st3 left-align":"st12"),a,"".concat(kn.formatNumberLocale(p?Math.abs(kn.toNum(t.stateBatteryCurrent.state,1)):kn.toNum(t.stateBatteryCurrent.state,1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.battery_current_191),!0),Fn("data.batteryPower_190",i?239:193,i?307:386,"none"===e.entities.battery_power_190||i&&2===n,"".concat(!0!==r?"st14":"st4"," st8"),a,"".concat(m?p?kn.convertValue(Math.abs(l),s)||"0":kn.convertValue(l,s)||"0":p?"".concat(Math.abs(l)," ").concat(Kt.WATT):"".concat(l||0," ").concat(Kt.WATT)),t=>kn.handlePopup(t,e.entities.battery_power_190),!0),Xn("battery_remaining_energy",i?270:e.entities?.battery_status?169:193,i?338:323,!e.battery.show_remaining_energy||i&&2===n,e.entities?.battery_status||i?"remaining-energy left-align":"remaining-energy",a,e.battery.remaining_energy_to_shutdown?"".concat(kn.formatNumberLocale(kn.toNum(t.batteryEnergy*((t.stateBatterySoc?.toNum()-t.batteryOneShutdown)/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR):"".concat(kn.formatNumberLocale(kn.toNum(t.batteryEnergy*(t.stateBatterySoc.toNum()/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR),!0),Xn("battery_state_msg",169,e.battery.show_remaining_energy?311:320,i,"st3 left-align",a,t.batteryStateMsg,!0),e.wide&&2===n&&i?"inline":"none",Fn("battery_voltage_183",215,295,"none"===e.entities.battery_voltage_183||!e.entities.battery_voltage_183,"st3 right-align",a,"".concat(kn.formatNumberLocale(t.batteryVoltage,1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.battery_voltage_183),!0),Fn("battery_current_191",215,308,!e.entities.battery_current_191||"none"===e.entities.battery_current_191||!t.stateBatteryCurrent.isValid(),"st3 right-align",a,"".concat(kn.formatNumberLocale(p?Math.abs(kn.toNum(t.stateBatteryCurrent.state,1)):kn.toNum(t.stateBatteryCurrent.state,1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.battery_current_191),!0),Fn("data.batteryPower_190",232,325,"none"===e.entities.battery_power_190,"st3",a,"".concat(m?p?kn.convertValue(Math.abs(l),s)||"0":kn.convertValue(l,s)||"0":p?"".concat(Math.abs(l)," ").concat(Kt.WATT):"".concat(l||0," ").concat(Kt.WATT)),t=>kn.handlePopup(t,e.entities.battery_power_190),!0),e.wide&&2===n&&i?"inline":"none",Fn("battery2_voltage_183",213.5,295,"none"===e.entities.battery2_voltage_183||!e.entities.battery2_voltage_183,"st3 left-align",o,"".concat(kn.formatNumberLocale(t.battery2Voltage,1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.battery2_voltage_183),!0),Fn("battery2_current_191",213.5,308,!e.entities.battery2_current_191||"none"===e.entities.battery2_current_191||!t.stateBattery2Current.isValid(),"st3 left-align",o,"".concat(kn.formatNumberLocale(e.battery2.show_absolute?Math.abs(kn.toNum(t.stateBattery2Current.state,1)):kn.toNum(t.stateBattery2Current.state,1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.battery2_current_191),!0),Fn("data.battery2Power_190",195.5,325,"none"===e.entities.battery2_power_190,"st3",o,e.battery2.auto_scale?"".concat(e.battery2.show_absolute?kn.convertValue(Math.abs(c),s)||"0":kn.convertValue(c,s)||"0"):"".concat(e.battery2.show_absolute?"".concat(Math.abs(c)," ").concat(Kt.WATT):"".concat(c||0," ").concat(Kt.WATT)),t=>kn.handlePopup(t,e.entities.battery2_power_190),!0),Xn("battery2_remaining_energy",225,338,!e.battery2.show_remaining_energy,"remaining-energy left-align",o,e.battery2.remaining_energy_to_shutdown?"".concat(kn.formatNumberLocale(kn.toNum(t.battery2Energy*((t.stateBattery2Soc?.toNum()-t.batteryTwoShutdown)/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR):"".concat(kn.formatNumberLocale(kn.toNum(t.battery2Energy*(t.stateBattery2Soc.toNum()/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR),!0),e.wide&&2===n&&!i?"inline":"none",o,e.show_battery?"":"none",Fn("battery2_voltage_183",193,346,"none"===e.entities.battery2_voltage_183||!e.entities.battery2_voltage_183||!e.show_battery,"".concat(!0!==r?"st14":"st4"," st8"),o,"".concat(kn.formatNumberLocale(t.battery2Voltage,1)," ").concat(te.VOLT),t=>kn.handlePopup(t,e.entities.battery2_voltage_183),!0),Fn("battery2_current_191",193,365.3,!e.entities.battery2_current_191||"none"===e.entities.battery2_current_191||!e.show_battery||!t.stateBattery2Current.isValid(),"".concat(!0!==r?"st14":"st4"," st8"),o,"".concat(kn.formatNumberLocale(e.battery2.show_absolute?Math.abs(kn.toNum(t.stateBattery2Current.state,1)):kn.toNum(t.stateBattery2Current.state,1),1)," ").concat($t.AMPERE),t=>kn.handlePopup(t,e.entities.battery2_current_191),!0),Fn("data.battery2Power_190",193,386,"none"===e.entities.battery2_power_190||!e.show_battery,"".concat(!0!==r?"st14":"st4"," st8"),o,e.battery2.auto_scale?"".concat(e.battery2.show_absolute?kn.convertValue(Math.abs(c),s)||"0":kn.convertValue(c,s)||"0"):"".concat(e.battery2.show_absolute?"".concat(Math.abs(c)," ").concat(Kt.WATT):"".concat(c||0," ").concat(Kt.WATT)),t=>kn.handlePopup(t,e.entities.battery2_power_190),!0),Xn("battery2_remaining_energy",e.entities?.battery2_status?169:193,323,!e.show_battery||!e.battery2.show_remaining_energy,e.entities?.battery2_status?"remaining-energy left-align":"remaining-energy",o,e.battery2.remaining_energy_to_shutdown?"".concat(kn.formatNumberLocale(kn.toNum(t.battery2Energy*((t.stateBattery2Soc?.toNum()-t.batteryTwoShutdown)/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR):"".concat(kn.formatNumberLocale(kn.toNum(t.battery2Energy*(t.stateBattery2Soc.toNum()/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR),!0),Xn("battery2_state_msg",169,e.battery2.show_remaining_energy?311:320,!e.show_battery,"st3 left-align",o,t.battery2StateMsg,!0),2===n?"none":"inline",Xn("duration",i?270:290,377.5,i&&2===n,"".concat(!0!==r?"st14":"st4"," left-align"),0===t.batteryEnergy||d||0===l?"transparent":a,t.batteryDuration,!0),Xn("duration_text",i?270:290,393.7,i&&2===n,"st3 left-align",0===t.batteryEnergy||(!0===e.battery.invert_flow?l>=0:l<=0)||d?"transparent":a,"".concat(Ln("common.runtime_to")," ").concat(t.batteryCapacity,"% @").concat(t.formattedResultTime),!0),Xn("duration_text_charging",i?270:290,393.7,i&&2===n,"st3 left-align",0===t.batteryEnergy||(!0===e.battery.invert_flow?l<=0:l>=0)||d?"transparent":a,"".concat(Ln("common.to")," ").concat(t.batteryCapacity,"% ").concat(Ln("common.charge")," @").concat(t.formattedResultTime),!0),Xn("floating",i?270:290,393.7,i&&2===n,"st3 left-align",0!==t.batteryEnergy&&d?a:"transparent",Ln("common.battery_floating"),!0),Xn("battery_soc_184",i?340:360,351,!t.inverterProg.show&&e.battery?.shutdown_soc_offgrid,"".concat(e.battery.hide_soc||i&&2===n?"st12":"st14 left-align"),a,"".concat(h,"%")),Xn("battery_soc_184",i?340:360,364,!t.inverterProg.show&&e.battery?.shutdown_soc_offgrid,"".concat(e.battery.hide_soc||i&&2===n?"st12":"st14 left-align"),a,"".concat(t.shutdownOffGrid,"%")),"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid()||i&&2===n?"none":"inline",Fn("battery_soc_184",i?270:290,358,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid()||i&&2===n,"st13 st8 left-align",a,!t.inverterProg.show&&e.battery.shutdown_soc_offgrid?e.battery.hide_soc?t.stateBatterySoc.toDisplay():"".concat(t.stateBatterySoc.toNum(0),"% | "):e.battery.hide_soc?t.stateBatterySoc.toDisplay():"".concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184),!0),"none"!==e.entities.battery_soc_184&&t.stateBatterySoc.isValid()&&!e.battery.hide_soc&&t.inverterProg.show?"inline":"none",Fn("battery_soc_184",i?270:290,358,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid(),"st13 st8 left-align",a,"".concat(t.stateBatterySoc.toNum(0),"% | ").concat(t.inverterProg.capacity||0,"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184),!0),"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid()||e.battery.hide_soc||t.inverterProg.show||!e.battery?.shutdown_soc||e.battery?.shutdown_soc_offgrid?"none":"inline",Fn("battery_soc_184",i?270:290,358,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid(),"st13 st8 left-align",a,"".concat(t.stateBatterySoc.toNum(0),"% | ").concat(h||0,"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184),!0),e.wide&&2===n&&!i?"inline":"none",Xn("duration",413,377.5,!0,"".concat(!0!==r?"st14":"st4"," right-align"),0===t.batteryEnergy||d||0===l?"transparent":a,t.batteryDuration),Xn("duration_text",413,393.7,!0,"st3 right-align",0===t.batteryEnergy||(e.battery.invert_flow?l>=0:l<=0)||d?"transparent":a,"".concat(Ln("common.runtime_to")," ").concat(t.batteryCapacity,"% @").concat(t.formattedResultTime)),Xn("duration_text_charging",413,393.7,!0,"st3 right-align",0===t.batteryEnergy||(!0===e.battery.invert_flow?l<=0:l>=0)||d?"transparent":a,"".concat(Ln("common.to")," ").concat(t.batteryCapacity,"% ").concat(Ln("common.charge")," @").concat(t.formattedResultTime)),Xn("floating",413,393.7,!0,"st3 right-align",0!==t.batteryEnergy&&d?a:"transparent",Ln("common.battery_floating")),Xn("battery_soc_184",342,351,!t.inverterProg.show&&e.battery?.shutdown_soc_offgrid,"".concat(e.battery.hide_soc||i&&2===n?"st12":"st14 right-align"),a,"".concat(h,"%")),Xn("battery_soc_184",342,364,!t.inverterProg.show&&e.battery?.shutdown_soc_offgrid,"".concat(e.battery.hide_soc||i&&2===n?"st12":"st14 right-align"),a,"".concat(t.shutdownOffGrid,"%")),"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid()||i&&2===n?"none":"inline",Fn("battery_soc_184",413,358,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid()||i&&2===n,"st13 st8 right-align",a,!t.inverterProg.show&&e.battery.shutdown_soc_offgrid?e.battery.hide_soc?t.stateBatterySoc.toDisplay():"| ".concat(t.stateBatterySoc.toNum(0),"%"):e.battery.hide_soc?t.stateBatterySoc.toDisplay():"".concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184),!0),"none"!==e.entities.battery_soc_184&&t.stateBatterySoc.isValid()&&!e.battery.hide_soc&&t.inverterProg.show?"inline":"none",Fn("battery_soc_184",413,358,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid(),"st13 st8 right-align",a,"".concat(t.inverterProg.capacity||0,"% | ").concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184),!0),"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid()||e.battery.hide_soc||t.inverterProg.show||!e.battery?.shutdown_soc||e.battery?.shutdown_soc_offgrid?"none":"inline",Fn("battery_soc_184",413,358,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid(),"st13 st8 right-align",a,"".concat(h||0,"% | ").concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184),!0),e.wide&&2===n&&!i?"inline":"none",Xn("duration",290,377.5,!0,"".concat(!0!==r?"st14":"st4"," left-align"),0===t.battery2Energy||u||0===c?"transparent":o,t.batteryDuration2),Xn("duration_text",290,393.7,!0,"st3 left-align",0===t.battery2Energy||(!0===e.battery2.invert_flow?c>=0:c<=0)||u?"transparent":o,"".concat(Ln("common.runtime_to")," ").concat(t.battery2Capacity,"% @").concat(t.formattedResultTime2)),Xn("duration_text_charging",290,393.7,!0,"st3 left-align",0===t.battery2Energy||(!0===e.battery2.invert_flow?c<=0:c>=0)||u?"transparent":o,"".concat(Ln("common.to")," ").concat(t.battery2Capacity,"% ").concat(Ln("common.charge")," @").concat(t.formattedResultTime2)),Xn("floating",290,393.7,!0,"st3 left-align",0!==t.battery2Energy&&u?o:"transparent",Ln("common.battery_floating")),Xn("battery_soc_184",360,351,!t.inverterProg.show&&e.battery2?.shutdown_soc_offgrid,"".concat(e.battery2.hide_soc?"st12":"st14 left-align"),o,"".concat(g,"%")),Xn("battery_soc_184",360,364,!t.inverterProg.show&&e.battery2?.shutdown_soc_offgrid,"".concat(e.battery2.hide_soc?"st12":"st14 left-align"),o,"".concat(t.shutdownOffGrid2,"%")),"none"!==e.entities.battery2_soc_184&&t.stateBattery2Soc.isValid()?"inline":"none",Fn("battery_soc_184",290,358,"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid(),"st13 st8 left-align",o,!t.inverterProg.show&&e.battery2.shutdown_soc_offgrid?e.battery2.hide_soc?t.stateBattery2Soc.toDisplay():"".concat(t.stateBattery2Soc.toNum(0),"% |"):e.battery2.hide_soc?t.stateBattery2Soc.toDisplay():"".concat(t.stateBattery2Soc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery2_soc_184),!0),"none"!==e.entities.battery2_soc_184&&t.stateBattery2Soc.isValid()&&!e.battery2.hide_soc&&t.inverterProg.show?"inline":"none",Fn("battery_soc_184",290,358,"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid(),"st13 st8 left-align",o,"".concat(t.stateBattery2Soc.toNum(0),"% | ").concat(t.inverterProg.capacity||0,"%"),t=>kn.handlePopup(t,e.entities.battery2_soc_184),!0),"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid()||e.battery2.hide_soc||t.inverterProg.show||!e.battery2?.shutdown_soc||e.battery2?.shutdown_soc_offgrid?"none":"inline",Fn("battery_soc_184",290,358,"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid(),"st13 st8 left-align",o,"".concat(t.stateBattery2Soc.toNum(0),"% | ").concat(g||0,"%"),t=>kn.handlePopup(t,e.entities.battery2_soc_184),!0),e.wide&&2===n&&i?"inline":"none",Xn("duration",393,377.5,!0,"".concat(!0!==r?"st14":"st4"," right-align"),0===t.batteryEnergy||d||0===l?"transparent":a,t.batteryDuration),Xn("duration_text",393,393.7,1===n,"st3 right-align",0===t.batteryEnergy||(!0===e.battery.invert_flow?l>=0:l<=0)||d?"transparent":a,"".concat(Ln("common.runtime_to")," ").concat(t.batteryCapacity,"% @").concat(t.formattedResultTime),!0),Xn("duration_text_charging",393,393.7,!0,"st3 right-align",0===t.batteryEnergy||(!0===e.battery.invert_flow?l<=0:l>=0)||d?"transparent":a,"".concat(Ln("common.to")," ").concat(t.batteryCapacity,"% ").concat(Ln("common.charge")," @").concat(t.formattedResultTime)),Xn("floating",393,393.7,!0,"st3 right-align",0!==t.batteryEnergy&&d?a:"transparent",Ln("common.battery_floating")),Xn("battery_soc_184",320,351,!t.inverterProg.show&&e.battery?.shutdown_soc_offgrid,"".concat(e.battery.hide_soc?"st12":"st14 right-align"),a,"".concat(h,"%")),Xn("battery_soc_184",320,364,!t.inverterProg.show&&e.battery?.shutdown_soc_offgrid,"".concat(e.battery.hide_soc?"st12":"st14 right-align"),a,"".concat(t.shutdownOffGrid,"%")),"none"!==e.entities.battery_soc_184&&t.stateBatterySoc.isValid()?"inline":"none",Fn("battery_soc_184",393,358,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid(),"st13 st8 right-align",a,!t.inverterProg.show&&e.battery.shutdown_soc_offgrid?e.battery.hide_soc?t.stateBatterySoc.toDisplay():"| ".concat(t.stateBatterySoc.toNum(0),"%"):e.battery.hide_soc?t.stateBatterySoc.toDisplay():"".concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184),!0),"none"!==e.entities.battery_soc_184&&t.stateBatterySoc.isValid()&&!e.battery.hide_soc&&t.inverterProg.show?"inline":"none",Fn("battery_soc_184",393,358,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid(),"st13 st8 right-align",a,"".concat(t.inverterProg.capacity||0,"% | ").concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soc_184),!0),"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid()||e.battery.hide_soc||t.inverterProg.show||!e.battery?.shutdown_soc||e.battery?.shutdown_soc_offgrid?"none":"inline",Fn("battery_soc_184",393,358,"none"===e.entities.battery_soc_184||!t.stateBatterySoc.isValid(),"st13 st8 right-align",a,"".concat(h||0,"% | ").concat(t.stateBatterySoc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery2_soc_184),!0),Xn("battery_remaining_energy",393,338,!e.battery.show_remaining_energy,"remaining-energy right-align",a,e.battery.remaining_energy_to_shutdown?"".concat(kn.formatNumberLocale(kn.toNum(t.batteryEnergy*((t.stateBatterySoc?.toNum()-t.batteryOneShutdown)/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR):"".concat(kn.formatNumberLocale(kn.toNum(t.batteryEnergy*(t.stateBatterySoc.toNum()/100)/1e3,2),2)," ").concat(qt.KILO_WATT_HOUR),!0),e.wide&&2===n&&i?"inline":"none",Xn("duration",290,377.5,!0,"".concat(!0!==r?"st14":"st4"," left-align"),0===t.battery2Energy||u||0===c?"transparent":o,t.batteryDuration2),Xn("duration_text",290,393.7,!0,"st3 left-align",0===t.battery2Energy||(!0===e.battery2.invert_flow?c>=0:c<=0)||u?"transparent":o,"".concat(Ln("common.runtime_to")," ").concat(t.battery2Capacity,"% @").concat(t.formattedResultTime2)),Xn("duration_text_charging",290,393.7,!0,"st3 left-align",0===t.battery2Energy||(!0===e.battery2.invert_flow?c<=0:c>=0)||u?"transparent":o,"".concat(Ln("common.to")," ").concat(t.battery2Capacity,"% ").concat(Ln("common.charge")," @").concat(t.formattedResultTime2)),Xn("floating",290,393.7,!0,"st3 left-align",0!==t.battery2Energy&&u?o:"transparent",Ln("common.battery_floating")),Xn("battery_soc_184",360,351,!t.inverterProg.show&&e.battery2?.shutdown_soc_offgrid,"".concat(e.battery2.hide_soc?"st12":"st14 left-align"),o,"".concat(g,"%")),Xn("battery_soc_184",360,364,!t.inverterProg.show&&e.battery2?.shutdown_soc_offgrid,"".concat(e.battery2.hide_soc?"st12":"st14 left-align"),o,"".concat(t.shutdownOffGrid2,"%")),"none"!==e.entities.battery2_soc_184&&t.stateBattery2Soc.isValid()?"inline":"none",Fn("battery_soc_184",290,358,"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid(),"st13 st8 left-align",o,!t.inverterProg.show&&e.battery2.shutdown_soc_offgrid?e.battery2.hide_soc?t.stateBattery2Soc.toDisplay():"".concat(t.stateBattery2Soc.toNum(0),"% |"):e.battery2.hide_soc?t.stateBattery2Soc.toDisplay():"".concat(t.stateBattery2Soc.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery2_soc_184),!0),"none"!==e.entities.battery2_soc_184&&t.stateBattery2Soc.isValid()&&!e.battery2.hide_soc&&t.inverterProg.show?"inline":"none",Fn("battery_soc_184",290,358,"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid(),"st13 st8 left-align",o,"".concat(t.stateBattery2Soc.toNum(0),"% | ").concat(t.inverterProg.capacity||0,"%"),t=>kn.handlePopup(t,e.entities.battery2_soc_184),!0),"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid()||e.battery2.hide_soc||t.inverterProg.show||!e.battery2?.shutdown_soc||e.battery2?.shutdown_soc_offgrid?"none":"inline",Fn("battery_soc_184",290,358,"none"===e.entities.battery2_soc_184||!t.stateBattery2Soc.isValid(),"st13 st8 left-align",o,"".concat(t.stateBattery2Soc.toNum(0),"% | ").concat(g||0,"%"),t=>kn.handlePopup(t,e.entities.battery2_soc_184),!0),na("bat-line",2===n?"M 239 250 L 239 285":i?"M 239 250 L 239 290":"M 239 250 L 239 324",!0,e.battery.dynamic_colour?t.flowBatColour:a,t.batLineWidth),ia("power-dot-discharge",Math.min(2+t.batLineWidth+Math.max(t.minLineWidth-2,0),8),t.batteryPowerTotal<0||0===t.batteryPowerTotal?"transparent":a,t.durationCur.battery,"1;0","#bat-line",!0===e.battery.invert_flow),ia("power-dot-charge",Math.min(2+t.batLineWidth+Math.max(t.minLineWidth-2,0),8),t.batteryPowerTotal>=0?"transparent":"".concat(e.battery.dynamic_colour?t.flowBatColour:a),t.durationCur.battery,"0;1","#bat-line",!0===e.battery.invert_flow),2===n?"-6.25%":"0%",Fn("battery_temp_182",i?205:250,i?332:324.5,!t.stateBatteryTemp.isValid()||i&&2===n,e.entities?.battery_temp_182?"st3 left-align":"st12",a,"".concat(kn.formatNumberLocale(t.stateBatteryTemp.toNum(1),1),"°"),t=>kn.handlePopup(t,e.entities.battery_temp_182),!0),Fn("battery_soh",i?205:250,i?332:324.5,!t.stateBatterySOH.isValid()||e.entities?.battery_temp_182||i&&2===n,e.entities?.battery_soh?"st3 left-align":"st12",a,"".concat(t.stateBatterySOH.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery_soh),!0),i?"238.5":"162",i?"326":e.battery.show_remaining_energy?"310":"319","none"===e.entities?.battery_status||!e.entities?.battery_status||i&&2===n?"none":"",t.batteryStateColour,t=>e.battery.navigate?kn.handleNavigation(t,e.battery.navigate):null,i&&1===n?"212.5":"232.5",t.gridPercentageBat>0?t.gridColour:t.pvPercentageBat>0?t.solarColour:a,t.gridPercentageBat<2?0:t.gridPercentageBat,t.gridPercentageBat>0?t.gridColour:t.pvPercentageBat>0?t.solarColour:a,t.gridPercentageBat<2?0:t.gridPercentageBat,t.pvPercentageBat>0?t.solarColour:a,(t.gridPercentageBat<2?0:t.gridPercentageBat)+(t.pvPercentageBat<2?0:t.pvPercentageBat),t.pvPercentageBat>0?t.solarColour:a,(t.gridPercentageBat<2?0:t.gridPercentageBat)+(t.pvPercentageBat<2?0:t.pvPercentageBat),a,a,e.battery.dynamic_colour?"url(#bLg-bat1)":a,e.battery.linear_gradient?t.battery0:t.batteryIcon,i&&1===n?"212.5":"232.5",t.stopColour,e.battery.animate?"y2":"none",e.battery.linear_gradient?"url(#sLg-bat1)":a,e.battery.linear_gradient?"":"none",t.batteryCharge,e.wide&&2===n?"inline":"none",Fn("battery2_temp_182",250,324.5,!t.stateBattery2Temp.isValid()||i&&2===n,e.entities?.battery2_temp_182?"st3 left-align":"st12",o,"".concat(kn.formatNumberLocale(t.stateBattery2Temp.toNum(1),1),"°"),t=>kn.handlePopup(t,e.entities.battery2_temp_182),!0),Fn("battery_soh",250,324.5,!t.stateBattery2SOH.isValid()||e.entities?.battery2_temp_182||i&&2===n,e.entities?.battery2_soh?"st3 left-align":"st12",o,"".concat(t.stateBattery2SOH.toNum(0),"%"),t=>kn.handlePopup(t,e.entities.battery2_soh),!0),i?"326":e.battery2.show_remaining_energy?"310":"319","none"===e.entities?.battery2_status||!e.entities?.battery2_status||i&&2===n?"none":"",t.battery2StateColour,t=>e.battery2.navigate?kn.handleNavigation(t,e.battery2.navigate):null,t.gridPercentageBat>0?t.gridColour:t.pvPercentageBat>0?t.solarColour:o,t.gridPercentageBat<2?0:t.gridPercentageBat,t.gridPercentageBat>0?t.gridColour:t.pvPercentageBat>0?t.solarColour:o,t.gridPercentageBat<2?0:t.gridPercentageBat,t.pvPercentageBat>0?t.solarColour:o,(t.gridPercentageBat<2?0:t.gridPercentageBat)+(t.pvPercentageBat<2?0:t.pvPercentageBat),t.pvPercentageBat>0?t.solarColour:a,(t.gridPercentageBat<2?0:t.gridPercentageBat)+(t.pvPercentageBat<2?0:t.pvPercentageBat),o,o,e.battery2.dynamic_colour?"url(#b2Lg)":o,e.battery2.linear_gradient?t.battery20:t.battery2Icon,t.stop2Colour,e.battery2.animate?"y2":"none",e.battery2.linear_gradient?"url(#s2Lg)":o,e.battery2.linear_gradient?"":"none",t.battery2Charge,2===n?"42%":"0%",2===n?"-20%":"0%",Xn("daily_bat_charge",i&&1===n?132:77.2,357.2,!0!==t.batteryShowDaily,"st3 left-align",a,e.battery.label_daily_chrg||Ln("common.daily_charge"),!0),Fn("daily_bat_charge_value",i&&1===n?132:77.2,343,!0!==t.batteryShowDaily||!t.stateDayBatteryCharge.isValid(),"st10 left-align",a,t.stateDayBatteryCharge?.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_battery_charge_70),!0),2===n?"42%":"0%",2===n?"-20%":"0%",Xn("daily_bat_dischcharge",i&&1===n?132:77.2,393.7,!0!==t.batteryShowDaily,"st3 left-align",a,e.battery.label_daily_dischrg||Ln("common.daily_discharge"),!0),Fn("daily_bat_discharge_value",i&&1===n?132:77.2,380.1,!0!==t.batteryShowDaily||!t.stateDayBatteryDischarge.isValid(),"st10 left-align",a,t.stateDayBatteryDischarge?.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_battery_discharge_71),!0))})(n,t),((t,e)=>{const{decimalPlaces:n,gridColour:a,totalGridPower:o}=t,{auto_scale:i,invert_flow:r}=e.grid,{three_phase:s}=e.inverter,l=r?kn.invertKeyPoints(o<0?"1;0":"0;1"):o<0?"1;0":"0;1",c=r?kn.invertKeyPoints(o<0?"0;1":"1;0"):o<0?"0;1":"1;0";return W(oo||(oo=Ot(['\n\t\t\x3c!-- Grid Elements --\x3e\n\t\t<svg\n\t\t\tid="Grid"\n\t\t\tstyle="overflow: visible; display: ',';"\n\t\t>\n\t\t\t<rect\n\t\t\t\tx="103"\n\t\t\t\ty="203.5"\n\t\t\t\twidth="70"\n\t\t\t\theight="30"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tdisplay="','"\n\t\t\t/>\n\t\t\t',"\n\t\t\t","\n\t\t\t",'\n\t\t\t<svg id="grid-flow">\n\t\t\t\t',"\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="grid1-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t</svg>\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t</svg>\n\t"])),e.show_grid?"inline":"none",a,e.show_grid?"":"none",Xn("daily_grid_buy",5,282.1,!e.show_grid,"st3 left-align",!0!==t.gridShowDailyBuy?"transparent":a,e.grid.label_daily_grid_buy||Ln("common.daily_grid_buy"),!0),Xn("daily_grid_sell",5,179,!e.show_grid,"st3 left-align",!0!==t.gridShowDailySell?"transparent":a,e.grid.label_daily_grid_sell||Ln("common.daily_grid_sell"),!0),Xn("grid_name",5,e.grid.show_daily_buy?"294":"267",!e.show_grid,"st3 st8 left-align",a,e.grid.grid_name||Ln("common.grid_name"),!0),na("grid-line",e.wide?"M 173 218 L 287 218":"M 173 218 L 214 218",e.show_grid,a,t.gridLineWidth),ia("grid-dot",Math.min(2+t.gridLineWidth+Math.max(t.minLineWidth-2,0),8),0===o?"transparent":a,t.durationCur.grid,l,"#grid-line"),na("grid-line1","M 103 218 L 64.5 218",e.show_grid,a,t.gridLineWidth),ia("grid-dot1",Math.min(2+t.gridLineWidth+Math.max(t.minLineWidth-2,0),8),0===o?"transparent":a,t.durationCur.grid,c,"#grid-line1"),e.grid?.navigate?Z(io||(io=Ot(['\n                    <a href="#" @click=',">\n                        ","\n                    </a>"])),t=>kn.handleNavigation(t,e.grid.navigate),po(t,e)):Z(ro||(ro=Ot(['\n                    <a href="#" @click=',">\n                        ","\n                    </a>"])),t=>kn.handlePopup(t,e.entities.grid_connected_status_194),po(t,e)),e.grid?.navigate?Z(so||(so=Ot(['\n                        <a href="#" @click=','>\n                            <g display="','">\n                                <foreignObject x="-0.5" y="187.5" width="70" height="70">\n                                    <div xmlns="http://www.w3.org/1999/xhtml" style="position: fixed; width: 70px; height: 70px;">\n                                        <ha-icon icon="','" class="grid-icon"></ha-icon>\n                                    </div>\n                                </foreignObject>\n                            </g>\n                        </a>'])),t=>kn.handleNavigation(t,e.grid.navigate),e.show_grid&&(e.grid.import_icon||e.grid.disconnected_icon||e.grid.export_icon)?"":"none",t.customGridIcon):Z(lo||(lo=Ot(['\n                        <a href="#" @click=','>\n                            <g display="','">\n                                <foreignObject x="-0.5" y="187.5" width="70" height="70">\n                                    <div xmlns="http://www.w3.org/1999/xhtml" style="position: fixed; width: 70px; height: 70px;">\n                                        <ha-icon icon="','" class="grid-icon"></ha-icon>\n                                    </div>\n                                </foreignObject>\n                            </g>\n                        </a>'])),t=>kn.handlePopup(t,e.entities.grid_connected_status_194),e.show_grid&&(e.grid.import_icon||e.grid.disconnected_icon||e.grid.export_icon)?"":"none",t.customGridIcon),Fn("daily_grid_buy_value",5,267.9,!e.show_grid||!0!==t.gridShowDailyBuy||!t.stateDayGridImport.isValid(),"st10 left-align",a,t.stateDayGridImport?.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_grid_import_76),!0),Fn("daily_grid_sell_value",5,165,!e.show_grid||!0!==t.gridShowDailySell||!t.stateDayGridExport.isValid(),"st10 left-align",a,t.stateDayGridExport?.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_grid_export_77),!0),Fn("max_sell_power",5,150,!e.show_grid||!t.stateMaxSellPower.isValid||!e.entities?.max_sell_power,"st3 left-align",["off","0"].includes(t.stateSolarSell.state)?"grey":a,"".concat(Ln("common.limit"),": ").concat(t.stateMaxSellPower.toPowerString(i,n)),t=>kn.handlePopup(t,e.entities.max_sell_power),!0),s?e.entities?.grid_ct_power_total?Z(co||(co=Ot(['\n                            <a href="#" @click=',">\n                            ","\n                        </a>"])),t=>kn.handlePopup(t,e.entities.grid_ct_power_total),yo(t,e)):Z(uo||(uo=Ot(["\n                            ",""])),yo(t,e)):Z(ho||(ho=Ot(['\n                    <a href="#" @click=',">\n                        ","\n                    </a>"])),t=>kn.handlePopup(t,e.entities.grid_ct_power_172),yo(t,e)),o>=0?Z(go||(go=Ot(["\n                    ","}"])),Fn("energy_cost",105,195,!(!e.entities?.energy_cost_buy||!t.stateEnergyCostBuy.isValid()),"".concat(e.show_grid?"st3 left-align":"st12"),a,"".concat(kn.formatNumberLocale(t.energyCost,2)," ").concat(t.stateEnergyCostBuy.getUOM()),t=>kn.handlePopup(t,e.entities.energy_cost_buy))):Z(mo||(mo=Ot(["\n                    ",""])),Fn("energy_cost",105,195,!(!e.entities?.energy_cost_sell||!t.stateEnergyCostSell.isValid()),"".concat(e.show_grid?"st3 left-align":"st12"),a,"".concat(kn.formatNumberLocale(t.energyCost,2)," ").concat(t.stateEnergyCostSell.getUOM()),t=>kn.handlePopup(t,e.entities.energy_cost_sell),!1)),Fn("prepaid",31.5,253,!e.show_grid||!t.statePrepaidUnits.isValid(),e.entities?.prepaid_units?"st3":"st12",a,kn.formatNumberLocale(t.statePrepaidUnits.toNum(1),1),t=>kn.handlePopup(t,e.entities.prepaid_units),!0),Fn("grid-power-L1",80,241,s,e.show_grid?"st3 left-align":"st12",a,i?"".concat(kn.convertValue(t.gridPower,n)||0):"".concat(t.gridPower||0," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.grid_ct_power_172)),Fn("grid-power-L2",80,254,!(!s||!e.entities?.grid_ct_power_L2),e.show_grid?"st3 left-align":"st12",a,i?"".concat(kn.convertValue(t.gridPowerL2,n)||0):"".concat(t.gridPowerL2||0," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.grid_ct_power_L2)),Fn("grid-power-L3",80,267,!(!s||!e.entities?.grid_ct_power_L3),e.show_grid?"st3 left-align":"st12",a,i?"".concat(kn.convertValue(t.gridPowerL3,n)||0):"".concat(t.gridPowerL3||0," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.grid_ct_power_L3)))})(n,t),((t,e)=>{const{additionalLoad:n,largeFont:a,dynamicColourEssentialLoad1:o,dynamicColourEssentialLoad2:i,dynamicColourEssentialLoad3:r,dynamicColourEssentialLoad4:s,dynamicColourEssentialLoad5:l,dynamicColourEssentialLoad6:c,decimalPlaces:d,loadColour:u,flowColour:h,solarColour:g,batteryColour:m,essentialPower:p}=t,{auto_scale:y,load1_name:_,load1_switch:f,load2_name:v,load2_switch:w,load3_name:b,load3_switch:A,load4_name:x,load4_switch:P,load5_name:E,load5_switch:L,load6_name:N,load6_switch:C,dynamic_colour:T}=e.load;return W(_o||(_o=Ot(['\n\t\t\x3c!-- Load Elements --\x3e\n\t\t<svg id="Load" style="overflow: visible" x="','">\n\t\t\t<rect\n\t\t\t\tx="304"\n\t\t\t\ty="203.5"\n\t\t\t\twidth="70"\n\t\t\t\theight="30"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t/>\n\t\t\t<svg id="Esential-Load1" style="overflow: visible">\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load1"\n\t\t\t\t\tx="406"\n\t\t\t\t\ty="116.5"\n\t\t\t\t\twidth="70"\n\t\t\t\t\theight="30"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t\t<g display="','">\n\t\t\t\t\t','\n\t\t\t\t</g>\n\t\t\t</svg>\n\t\t\t<svg id="Esential-Load2" style="overflow: visible">\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load2"\n\t\t\t\t\tx="406"\n\t\t\t\t\ty="290"\n\t\t\t\t\twidth="70"\n\t\t\t\t\theight="30"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t\t<g display="','">\n\t\t\t\t\t','\n\t\t\t\t</g>\n\t\t\t</svg>\n\t\t\t<svg id="Esential-Load3" style="overflow: visible">\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load2"\n\t\t\t\t\tx="405"\n\t\t\t\t\ty="290"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load3"\n\t\t\t\t\tx="441"\n\t\t\t\t\ty="290"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t',"\n\t\t\t\t",'\n\t\t\t\t<g display="','">\n\t\t\t\t\t','\n\t\t\t\t</g>\n\t\t\t\t<g display="','">\n\t\t\t\t\t',"\n\t\t\t\t</g>\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="Esential-Load4" style="overflow: visible">\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load3"\n\t\t\t\t\tx="405"\n\t\t\t\t\ty="290"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load1"\n\t\t\t\t\tx="405"\n\t\t\t\t\ty="107"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load2"\n\t\t\t\t\tx="441"\n\t\t\t\t\ty="107"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load4"\n\t\t\t\t\tx="441"\n\t\t\t\t\ty="290"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t\t<g display="','">\n\t\t\t\t\t','\n\t\t\t\t</g>\n\t\t\t\t<g display="','">\n\t\t\t\t\t','\n\t\t\t\t</g>\n\t\t\t\t<g display="','">\n\t\t\t\t\t','\n\t\t\t\t</g>\n\t\t\t\t<g display="','">\n\t\t\t\t\t',"\n\t\t\t\t</g>\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\tid="Esential-Load5"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\tx="','"\n\t\t\t>\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load5"\n\t\t\t\t\tx="405"\n\t\t\t\t\ty="107"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t','\n\t\t\t\t<g display="','">\n\t\t\t\t\t',"\n\t\t\t\t</g>\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\tid="Esential-Load6"\n\t\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\t\tx="','"\n\t\t\t>\n\t\t\t\t<rect\n\t\t\t\t\tid="es-load6"\n\t\t\t\t\tx="405"\n\t\t\t\t\ty="290"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t/>\n\t\t\t\t','\n\t\t\t\t<g display="','">\n\t\t\t\t\t',"\n\t\t\t\t</g>\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t</svg>\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<svg id="load-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="load-flow1">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t</svg>\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=','\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\tid="essen"\n\t\t\t\t\tx="','"\n\t\t\t\t\ty="','"\n\t\t\t\t\twidth="','"\n\t\t\t\t\theight="','"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<defs>\n\t\t\t\t\t\t<linearGradient\n\t\t\t\t\t\t\tid="Lg-esscompact"\n\t\t\t\t\t\t\tx1="0%"\n\t\t\t\t\t\t\tx2="0%"\n\t\t\t\t\t\t\ty1="100%"\n\t\t\t\t\t\t\ty2="0%"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="0%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset="','%"\n\t\t\t\t\t\t\t\tstop-color="','"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop offset="100%" stop-color="','" />\n\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t</defs>\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t</a>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t</svg>\n\t"])),e.wide?"30%":"0%",T?h:u,o,[1,2,3].includes(n)?"":"none",Xn("es-load1",441,108,[1,2,3].includes(n),"st3",o,_),Fn("ess_load1",440,133,[1,2,3].includes(n)&&t.stateEssentialLoad1.isValid(),"".concat(!0!==a?"st14":"st4"," st8"),o,t.stateEssentialLoad1?.toPowerString(y,d),t=>kn.handlePopup(t,e.entities.essential_load1)),Fn("ess_load1_extra",448,157,!!e.entities?.essential_load1_extra&&[1,2,3].includes(n)&&t.stateEssentialLoad1Extra.isValid(),"st3 left-align",o,"".concat(kn.formatNumberLocale(t.stateEssentialLoad1Extra.toNum(1),1)," ").concat(t.stateEssentialLoad1Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load1_extra)),[0,4,5,6].includes(n)?"none":"",Na(f,t.iconEssentialLoad1,"essload1-icon",371,114),i,2===n?"":"none",Xn("es-load2",441,330.5,2===n,"st3",i,v),Fn("ess_load2",440,306.5,2===n&&t.stateEssentialLoad2.isValid(),"".concat(!0!==a?"st14":"st4"," st8"),i,t.stateEssentialLoad2?.toPowerString(y,d),t=>kn.handlePopup(t,e.entities.essential_load2)),Fn("ess_load2_extra",448,282,!!e.entities?.essential_load2_extra&&2===n&&t.stateEssentialLoad2Extra.isValid(),"st3 left-align",i,"".concat(kn.formatNumberLocale(t.stateEssentialLoad2Extra.toNum(1),1)," ").concat(t.stateEssentialLoad2Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load2_extra)),2===n?"":"none",Na(e.load.load2_switch,t.iconEssentialLoad2,"essload2-icon",371,288),t.dynamicColourEssentialLoad2,3===n?"":"none",t.dynamicColourEssentialLoad3,3===n?"":"none",Xn("es-load2",438,320,3===n,"st3 st8 right-align",i,v),Xn("es-load3",444,320,3===n,"st3 st8 left-align",r,b),3===n?"":"none",Na(e.load.load2_switch,t.iconEssentialLoad2,"essload2-small-icon",412,264),3===n?"":"none",Na(e.load.load3_switch,t.iconEssentialLoad3,"essload3-small-icon",449,264),Fn("ess_load2_extra",438,332,!!e.entities?.essential_load2_extra&&3===n&&t.stateEssentialLoad2Extra.isValid(),"st3 right-align",i,"".concat(kn.formatNumberLocale(t.stateEssentialLoad2Extra.toNum(1),1)," ").concat(t.stateEssentialLoad2Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load2_extra)),Fn("ess_load3_extra",444,332,!!e.entities?.essential_load3_extra&&3===n&&t.stateEssentialLoad3Extra.isValid(),"st3 left-align",r,"".concat(kn.formatNumberLocale(t.stateEssentialLoad3Extra.toNum(1),1)," ").concat(t.stateEssentialLoad3Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load3_extra)),Fn("ess_load4",423,301,3===n&&t.stateEssentialLoad2.isValid(),"st3",i,t.stateEssentialLoad2?.toPowerString(y,d),t=>kn.handlePopup(t,e.entities.essential_load2)),Fn("ess_load4",459,301,3===n&&t.stateEssentialLoad3.isValid(),"st3",r,t.stateEssentialLoad3?.toPowerString(y,d),t=>kn.handlePopup(t,e.entities.essential_load3)),t.dynamicColourEssentialLoad3,n>=4?"":"none",t.dynamicColourEssentialLoad1,n>=4?"":"none",t.dynamicColourEssentialLoad2,n>=4?"":"none",t.dynamicColourEssentialLoad4,n>=4?"":"none",Xn("es-load1",438,136,n>=4,"st3 st8 right-align",o,_),Xn("es-load2",444,136,n>=4,"st3 st8 left-align",i,v),Xn("es-load3",438,320,n>=4,"st3 st8 right-align",r,b),Xn("es-load4",444,320,n>=4,"st3 st8 left-align",s,x),n>=4?"":"none",Na(f,t.iconEssentialLoad1,"essload1-small-icon",412,81),n>=4?"":"none",Na(w,t.iconEssentialLoad2,"essload2-small-icon",449,81),n>=4?"":"none",Na(A,t.iconEssentialLoad3,"essload3-small-icon",412,264),n>=4?"":"none",Na(P,t.iconEssentialLoad4,"essload4-small-icon",449,264),Fn("ess_load1_extra",438,147,!!e.entities?.essential_load1_extra&&n>=4&&t.stateEssentialLoad1Extra.isValid(),"st3 right-align",o,"".concat(kn.formatNumberLocale(t.stateEssentialLoad1Extra.toNum(1),1)," ").concat(t.stateEssentialLoad1Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load1_extra)),Fn("ess_load2_extra",444,147,!!e.entities?.essential_load2_extra&&n>=4&&t.stateEssentialLoad2Extra.isValid(),"st3 left-align",i,"".concat(kn.formatNumberLocale(t.stateEssentialLoad2Extra.toNum(1),1)," ").concat(t.stateEssentialLoad2Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load2_extra)),Fn("ess_load3_extra",438,332,!!e.entities?.essential_load3_extra&&n>=4&&t.stateEssentialLoad3Extra.isValid(),"st3 right-align",r,"".concat(kn.formatNumberLocale(t.stateEssentialLoad3Extra.toNum(1),1)," ").concat(t.stateEssentialLoad3Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load3_extra)),Fn("ess_load4_extra",444,332,!!e.entities?.essential_load4_extra&&n>=4&&t.stateEssentialLoad4Extra.isValid(),"st3 left-align",s,"".concat(kn.formatNumberLocale(t.stateEssentialLoad4Extra.toNum(1),1)," ").concat(t.stateEssentialLoad4Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load4_extra)),Fn("ess_load4",423,118,n>=4&&t.stateEssentialLoad1.isValid(),"st3",o,t.stateEssentialLoad1?.toPowerString(y,d),t=>kn.handlePopup(t,e.entities.essential_load1)),Fn("ess_load4",459,118,n>=4&&t.stateEssentialLoad2.isValid(),"st3",i,t.stateEssentialLoad2?.toPowerString(y,d),t=>kn.handlePopup(t,e.entities.essential_load2)),Fn("ess_load4",423,301,n>=4&&t.stateEssentialLoad3.isValid(),"st3",r,t.stateEssentialLoad3?.toPowerString(y,d),t=>kn.handlePopup(t,e.entities.essential_load3)),Fn("ess_load4",459,301,n>=4&&t.stateEssentialLoad4.isValid(),"st3",s,t.stateEssentialLoad4?.toPowerString(y,d),t=>kn.handlePopup(t,e.entities.essential_load4)),[5,6].includes(n)&&(e.wide||!e.wide&&[1,2,3].includes(e.solar.mppts))?"inline":"none",e.wide?"-5%":"-7.35%",t.dynamicColourEssentialLoad5,[5,6].includes(n)?"":"none",Xn("es-load5",437,136,[5,6].includes(n),"st3 st8 right-align",l,E),[5,6].includes(n)?"":"none",Na(L,t.iconEssentialLoad5,"essload5-small-icon",412,81),Fn("ess_load5_extra",437,147,!!e.entities?.essential_load5_extra&&[5,6].includes(n)&&t.stateEssentialLoad5Extra.isValid(),"st3 right-align",l,"".concat(kn.formatNumberLocale(t.stateEssentialLoad5Extra.toNum(1),1)," ").concat(t.stateEssentialLoad5Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load5_extra)),Fn("ess_load5",423,118,[5,6].includes(n)&&t.stateEssentialLoad5.isValid(),"st3",l,t.stateEssentialLoad5?.toPowerString(y,d),t=>kn.handlePopup(t,e.entities.essential_load5)),[6].includes(n)&&(e.wide||!e.wide&&[1,2,3].includes(e.solar.mppts))?"inline":"none",e.wide?"-5%":"-7.35%",t.dynamicColourEssentialLoad6,6===n?"":"none",Xn("es-load6",437,320,6===n,"st3 st8 right-align",c,N),6===n?"":"none",Na(C,t.iconEssentialLoad6,"essload6-small-icon",412,264),Fn("ess_load6_extra",437,332,!!e.entities?.essential_load6_extra&&6===n&&t.stateEssentialLoad6Extra.isValid(),"st3 right-align",c,"".concat(kn.formatNumberLocale(t.stateEssentialLoad6Extra.toNum(1),1)," ").concat(t.stateEssentialLoad6Extra?.getUOM()),t=>kn.handlePopup(t,e.entities.essential_load6_extra)),Fn("ess_load6",423,301,6===n&&t.stateEssentialLoad6.isValid(),"st3",c,t.stateEssentialLoad6?.toPowerString(y,d),t=>kn.handlePopup(t,e.entities.essential_load6)),Xn("daily_load",[2,3,4,5,6].includes(n)?"365":"412",[2,3,4,5,6].includes(n)?"189":"282.1",!t.loadShowDaily,"st3 left-align",u,e.load.label_daily_load||Ln("common.daily_load"),!0),Xn("load-power-3P",304,241,e.inverter.three_phase&&!!e.entities?.load_power_L1,"st3 left-align",u,e.inverter.three_phase&&e.entities?.load_power_L1?"".concat(y?kn.convertValue(t.loadPowerL1,d)||0:"".concat(t.loadPowerL1||0)).concat(e.inverter.three_phase&&e.entities?.load_power_L2?" | ".concat(y?kn.convertValue(t.loadPowerL2,d)||0:"".concat(t.loadPowerL2||0)):"").concat(e.inverter.three_phase&&e.entities?.load_power_L3?" | ".concat(y?kn.convertValue(t.loadPowerL3,d)||0:"".concat(t.loadPowerL3||0)):"").concat(y?"":" ".concat(Kt.WATT)):"0"),e.inverter.three_phase&&e.entities?.load_power_L1?Z(fo||(fo=Ot(['<a\n\t\t\t\t\t\t\thref="#"\n\t\t\t\t\t\t\t@click=','\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t\tx="300"\n\t\t\t\t\t\t\t\ty="233.5"\n\t\t\t\t\t\t\t\twidth="30"\n\t\t\t\t\t\t\t\theight="10"\n\t\t\t\t\t\t\t\tfill="transparent"\n\t\t\t\t\t\t\t\tpointer-events="all"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</a>'])),t=>kn.handlePopup(t,e.entities.load_power_L1)):"",e.inverter.three_phase&&e.entities?.load_power_L2?Z(vo||(vo=Ot(['<a\n\t\t\t\t\t\t\thref="#"\n\t\t\t\t\t\t\t@click=','\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t\tx="330"\n\t\t\t\t\t\t\t\ty="233.5"\n\t\t\t\t\t\t\t\twidth="30"\n\t\t\t\t\t\t\t\theight="10"\n\t\t\t\t\t\t\t\tfill="transparent"\n\t\t\t\t\t\t\t\tpointer-events="all"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</a>'])),t=>kn.handlePopup(t,e.entities.load_power_L2)):"",e.inverter.three_phase&&e.entities?.load_power_L3?Z(wo||(wo=Ot(['<a\n\t\t\t\t\t\t\thref="#"\n\t\t\t\t\t\t\t@click=','\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t\tx="360"\n\t\t\t\t\t\t\t\ty="233.5"\n\t\t\t\t\t\t\t\twidth="30"\n\t\t\t\t\t\t\t\theight="10"\n\t\t\t\t\t\t\t\tfill="transparent"\n\t\t\t\t\t\t\t\tpointer-events="all"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</a>'])),t=>kn.handlePopup(t,e.entities.load_power_L3)):"",na("es-line",e.wide?"M 304 218.5 L 117 218.5":"M 304 218.5 L 264.7 218.5",!0,T?h:u,t.loadLineWidth),ia("es-dot",Math.min(2+t.loadLineWidth+Math.max(t.minLineWidth-2,0),8),0===p||p<0?"transparent":"".concat(T?h:u),t.durationCur.load,"1;0","#es-line",!0===e.load.invert_flow),ia("es-dot",Math.min(2+t.loadLineWidth+Math.max(t.minLineWidth-2,0),8),0===p||p>0?"transparent":"".concat(T?h:u),t.durationCur.load,"0;1","#es-line",e.load.invert_flow),na("es-line1","M 374 218.5 L 402.38 218.5",!0,T?h:u,t.loadLineWidth),ia("es-dot",Math.min(2+t.loadLineWidth+Math.max(t.minLineWidth-2,0),8),0===p||p<0?"transparent":"".concat(T?h:u),t.durationCur.load,"0;1","#es-line1",!0===e.load.invert_flow),ia("es-dot",Math.min(2+t.loadLineWidth+Math.max(t.minLineWidth-2,0),8),0===p||p>0?"transparent":"".concat(T?h:u),t.durationCur.load,"1;0","#es-line1",!0===e.load.invert_flow),na("es-load1","M 441 180 L 441 147",1===n,t.load1Colour,1),na("es-load1","M 441 180 L 441 147",[2,3,4,5,6].includes(n),t.load1Colour,1),na("es-load2","M 441 290 L 441 257",[2,3,4,5,6].includes(n),t.load2Colour,1),e.load?.navigate?t=>kn.handleNavigation(t,e.load.navigate):null,1===t.essIconSize?"405":"402",1===t.essIconSize?"186":"177.5",1===t.essIconSize?"75":"79",1===t.essIconSize?"75":"79",t.gridPercentage>0?t.gridColour:t.batteryPercentage>0?m:g,t.gridPercentage,t.gridPercentage>0?t.gridColour:t.batteryPercentage>0?m:g,t.gridPercentage,t.batteryPercentage>0?m:g,t.gridPercentage+t.batteryPercentage,t.batteryPercentage>0?m:g,t.gridPercentage+t.batteryPercentage,g,g,T?"url(#Lg-esscompact)":u,t.essIcon,Fn("daily_load_value",[2,3,4,5,6].includes(n)?"365":"412",[2,3,4,5,6].includes(n)?"175":"267.9",!t.loadShowDaily||!t.stateDayLoadEnergy.isValid(),"st10 left-align",u,t.stateDayLoadEnergy?.toPowerString(!0,t.decimalPlacesEnergy),t=>kn.handlePopup(t,e.entities.day_load_energy_84),!0),e.entities?.essential_power&&"none"!==e.entities.essential_power?Z(bo||(bo=Ot(["\n                    ",""])),Fn("ess_power",340.1,219.2,!0,"".concat(!0!==a?"st14":"st4"," st8"),u,y?"".concat(kn.convertValue(p,d)||0):"".concat(p||0," ").concat(Kt.WATT),t=>kn.handlePopup(t,e.entities.essential_power))):Z(Ao||(Ao=Ot(["\n                    ",""])),Xn("ess_power",340.1,219.2,!0,"".concat(!0!==a?"st14":"st4"," st8"),u,y?"".concat(kn.convertValue(p,d)||0):"".concat(p||0," ").concat(Kt.WATT))),da([t.additionalLoad,t.showAux,t.iconEssentialLoad1,t.iconEssentialLoad2,t.dynamicColourEssentialLoad1,t.dynamicColourEssentialLoad2],()=>la((t=>[{id:"ess_oven_top",x:368,y:113,width:36,height:36,loadNumber:1,displayCondition:[1,2].includes(t.additionalLoad),opacityCondition:"oven"===t.iconEssentialLoad1&&[1,2].includes(t.additionalLoad),iconType:"oven",prefix:"ess",viewBoxSize:32},{id:"ess_pump_top",x:368,y:113,width:36,height:36,loadNumber:1,displayCondition:[1,2].includes(t.additionalLoad),opacityCondition:"pump"===t.iconEssentialLoad1&&[1,2].includes(t.additionalLoad),iconType:"pump",prefix:"ess"},{id:"ess_ac_top",x:374,y:116,width:30,height:30,loadNumber:1,displayCondition:[1,2].includes(t.additionalLoad),opacityCondition:"aircon"===t.iconEssentialLoad1&&[1,2].includes(t.additionalLoad),iconType:"aircon",prefix:"ess"},{id:"ess_boiler_top",x:371,y:113,width:36,height:36,loadNumber:1,displayCondition:[1,2].includes(t.additionalLoad),opacityCondition:"boiler"===t.iconEssentialLoad1&&[1,2].includes(t.additionalLoad),iconType:"boiler",prefix:"ess"},{id:"ess_oven_bottom",x:368,y:287,width:36,height:36,loadNumber:2,displayCondition:[1,2].includes(t.additionalLoad),opacityCondition:"oven"===t.iconEssentialLoad2&&2===t.additionalLoad,iconType:"oven",prefix:"ess",viewBoxSize:32},{id:"ess_pump_bottom",x:368,y:287,width:36,height:36,loadNumber:2,displayCondition:[1,2].includes(t.additionalLoad),opacityCondition:"pump"===t.iconEssentialLoad2&&2===t.additionalLoad,iconType:"pump",prefix:"ess"},{id:"ess_ac_bottom",x:374,y:289,width:30,height:30,loadNumber:2,displayCondition:[1,2].includes(t.additionalLoad),opacityCondition:"aircon"===t.iconEssentialLoad2&&2===t.additionalLoad,iconType:"aircon",prefix:"ess"},{id:"ess_boiler_bottom",x:371,y:287,width:36,height:36,loadNumber:2,displayCondition:[1,2].includes(t.additionalLoad),opacityCondition:"boiler"===t.iconEssentialLoad2&&2===t.additionalLoad,iconType:"boiler",prefix:"ess"}])(t),t=>t.id,e=>Oa(t,e))))})(n,t),((t,e,n)=>{const{inverterColour:a,enableAutarky:o,enableTimer:i,priorityLoad:r}=t,{three_phase:s}=n.inverter;return W(xo||(xo=Ot(['\n\t\t\x3c!-- Inverter Elements --\x3e\n\t\t<svg\n\t\t\tid="Inverter"\n\t\t\tstyle="overflow: visible"\n\t\t\tx="','"\n\t\t>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<circle\n\t\t\t\tid="standby"\n\t\t\t\tcx="220"\n\t\t\t\tcy="260"\n\t\t\t\tr="3.5"\n\t\t\t\tfill="','"\n\t\t\t/>\n\t\t\t','\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=','\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\tid="timer"\n\t\t\t\t\tx="267.7"\n\t\t\t\t\ty="243.3"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="timer_off"\n\t\t\t\t\tx="267.7"\n\t\t\t\t\ty="243.3"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t',"\n\t\t\t\t",'\n\t\t\t</a>\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=','\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\tid="pbat"\n\t\t\t\t\tx="267.7"\n\t\t\t\t\ty="262.5"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="pload"\n\t\t\t\t\tx="267.7"\n\t\t\t\t\ty="262.5"\n\t\t\t\t\twidth="18"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<text\n\t\t\t\t\tid="priority_text_batt"\n\t\t\t\t\tx="287"\n\t\t\t\t\ty="273"\n\t\t\t\t\tclass="st3 left-align"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t\tfill="','"\n\t\t\t\t>\n\t\t\t\t\t','\n\t\t\t\t</text>\n\t\t\t\t<text\n\t\t\t\t\tid="priority_text_load"\n\t\t\t\t\tx="287"\n\t\t\t\t\ty="273"\n\t\t\t\t\tclass="st3 left-align"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t\tfill="','"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t</text>\n\t\t\t</a>\n\t\t\t",'\n\t\t\t<a\n\t\t\t\thref="#"\n\t\t\t\t@click=','\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\tid="prog_grid_on"\n\t\t\t\t\tx="323"\n\t\t\t\t\ty="243"\n\t\t\t\t\twidth="20"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tclass="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<svg\n\t\t\t\t\tid="prog_grid_off"\n\t\t\t\t\tx="323"\n\t\t\t\t\ty="243"\n\t\t\t\t\twidth="20"\n\t\t\t\t\theight="18"\n\t\t\t\t\tviewBox="0 0 24 24"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tdisplay="','"\n\t\t\t\t\t\tclass="','"\n\t\t\t\t\t\tfill="','"\n\t\t\t\t\t\td="','"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t</a>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t</svg>\n\t"])),n.wide?"10%":"0%",Xn("autarkye_value",127,260,o===jt.No,o===jt.Energy?"st4 st8 left-align":"st12",a,"".concat(t.autarkyEnergy,"%"),!0),Xn("ratioe_value",173,260,o===jt.No,o===jt.Energy?"st4 st8 left-align":"st12",a,"".concat(t.ratioEnergy,"%"),!0),Xn("autarkyp_value",127,260,o===jt.No,o===jt.Power?"st4 st8 left-align":"st12",a,"".concat(t.autarkyPower,"%"),!0),Xn("ratiop_value",173,260,o===jt.No,o===jt.Power?"st4 st8 left-align":"st12",a,"".concat(t.ratioPower,"%"),!0),Xn("autarky",127,273,o===jt.No,"st3 left-align",a,n.inverter.label_autarky||Ln("common.autarky"),!0),Xn("ratio",173,273,o===jt.No,"st3 left-align",a,n.inverter.label_ratio||Ln("common.ratio"),!0),t.inverterStateColour,da([a,t.genericInverterImage,Boolean(n.inverter?.navigate)],()=>n.inverter?.navigate?Z(Po||(Po=Ot(['\n\t\t\t\t\t\t\t<a href="#" @click=','>\n\t\t\t\t\t\t\t\t<svg x="213.5" y="179.5" width="54"\n\t\t\t\t\t\t\t\t\theight="79" viewBox="0 0 74 91" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\t\t\topacity="','">\n\t\t\t\t\t\t\t\t\t<g transform="translate(0.000000,91.000000) scale(0.100000,-0.100000)"\n\t\t\t\t\t\t\t\t\tfill="','" stroke="none">\n\t\t\t\t\t\t\t\t\t\t<path d="','"/>\n\t\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t</a>'])),t=>kn.handleNavigation(t,n.inverter.navigate),t.genericInverterImage?1:0,a,Vn.inverter):Z(Eo||(Eo=Ot(['\n\t\t\t\t\t\t\t<svg x="213.5" y="179.5" width="54"\n\t\t\t\t\t\t\t\theight="79" viewBox="0 0 74 91" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\t\topacity="','">\n\t\t\t\t\t\t\t\t<g transform="translate(0.000000,91.000000) scale(0.100000,-0.100000)"\n\t\t\t\t\t\t\t\tfill="','" stroke="none">\n\t\t\t\t\t\t\t\t\t<path d="','"/>\n\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t</svg>'])),t.genericInverterImage?1:0,a,Vn.inverter)),t=>kn.handlePopup(t,n.entities.use_timer_248),"on"==t.stateUseTimer.state&&"no"!==i?"":"none",a,Vn.timerOn,"off"==t.stateUseTimer.state&&"no"!==i?"":"none",a,Vn.timerOff,Xn("timer_text_off",287,254.7,!("off"!=t.stateUseTimer.state||"no"===i),"st3 left-align",a,Ln("common.timer_off")),Xn("timer_text_on",287,254.7,!("on"!=t.stateUseTimer.state||"no"===i),"st3 left-align",a,Ln("common.timer_on")),t=>kn.handlePopup(t,n.entities.priority_load_243),"off"!==r||"no"===r&&r?"none":"",a,Vn.priorityLoadOff,"on"!==r||"no"===r&&r?"none":"",a,Vn.priorityLoadOn,"off"!==r||"no"===r&&r?"none":"",a,Ln("common.priority_batt"),"on"!==r||"no"===r&&r?"none":"",a,Ln("common.priority_load"),da([e,t.genericInverterImage,Boolean(n.inverter?.navigate)],()=>n.inverter?.navigate?Z(Lo||(Lo=Ot(['\n\t\t\t\t\t\t\t<a href="#" @click=','>\n\t\t\t\t\t\t\t\t<image x="212" y="180" width="54" height="72"\n\t\t\t\t\t\t\t\tclass="','"\n\t\t\t\t\t\t\t\thref="','"\n\t\t\t\t\t\t\t\tpreserveAspectRatio="none"/>\n\t\t\t\t\t\t\t</a>'])),t=>kn.handleNavigation(t,n.inverter.navigate),t.genericInverterImage?"st12":"",e):Z(No||(No=Ot(['\n\t\t\t\t\t\t\t<image x="212" y="180" width="54" height="72"\n\t\t\t\t\t\t\tclass="','"\n\t\t\t\t\t\t\thref="','"\n\t\t\t\t\t\t\tpreserveAspectRatio="none"/>'])),t.genericInverterImage?"st12":"",e)),e=>kn.handlePopup(e,t.inverterProg.entityID),!1===t.inverterProg.show||"no"===i?"none":"","none"===t.inverterProg.charge||"off"!=t.stateUseTimer.state&&"on"!=t.stateUseTimer.state?"st12":"",a,Vn.progGridOn,!1===t.inverterProg.show||"no"===i?"none":"","none"!==t.inverterProg.charge||"off"!==t.stateUseTimer.state&&"on"!==t.stateUseTimer.state?"st12":"",a,Vn.progGridOff,Fn("inverter_voltage_154",270.2,168.2,"none"===n.entities.inverter_voltage_154||!n.entities.inverter_voltage_154,"st3 left-align",a,"".concat(kn.formatNumberLocale(t.inverterVoltage,0))+"".concat(s&&n.entities?.inverter_voltage_L2?" | "+kn.formatNumberLocale(t.inverterVoltageL2,0):"")+"".concat(s&&n.entities?.inverter_voltage_L3?" | "+kn.formatNumberLocale(t.inverterVoltageL3,0):"")+" ".concat(te.VOLT),t=>kn.handlePopup(t,n.entities.inverter_voltage_154),!0),Fn("load_frequency_192",270.2,192.6,"none"===n.entities.load_frequency_192||!n.entities.load_frequency_192,"st3 left-align",a,"".concat(kn.formatNumberLocale(t.loadFrequency,2)," Hz"),t=>kn.handlePopup(t,n.entities.load_frequency_192),!0),Fn("inverter_current_164",270.2,180.4,"none"===n.entities.inverter_current_164||!n.entities.inverter_current_164,"st3 left-align",a,"".concat(kn.formatNumberLocale(t.inverterCurrent,1))+"".concat(s&&n.entities?.inverter_current_L2?" | "+kn.formatNumberLocale(t.inverterCurrentL2,1):"")+"".concat(s&&n.entities?.inverter_current_L3?" | "+kn.formatNumberLocale(t.inverterCurrentL3,1):"")+" ".concat($t.AMPERE),t=>kn.handlePopup(t,n.entities.inverter_current_164),!0),Fn("ac_temp",173,168.2,!(!n.entities?.radiator_temp_91||!t.stateRadiatorTemp.isValid()),"st3 left-align",a,"AC: ".concat(kn.formatNumberLocale(t.stateRadiatorTemp.toNum(1),1),"°"),t=>kn.handlePopup(t,n.entities.radiator_temp_91)),Fn("dc_temp",173,180.4,!(!n.entities?.dc_transformer_temp_90||!t.stateDCTransformerTemp.isValid()),"st3 left-align",a,"DC: ".concat(kn.formatNumberLocale(t.stateDCTransformerTemp.toNum(1),1),"°"),t=>kn.handlePopup(t,n.entities.dc_transformer_temp_90),!1))})(n,e,t))};class Mo{constructor(){}getBatteryCapacity(t,e,n,a,o,i,r){let s=0;return(!0===r?t<0:t>0)?s="off"===e||"0"===e||"off-grid"===e.toLowerCase()||!a.show||parseInt(o.state)<=a.capacity?n:a.capacity:(!0===r?t>0:t<0)&&("off"===e||"0"===e||"off-grid"===e.toLowerCase()||!a.show||parseInt(o.state)>=a.capacity?s=i:parseInt(o.state)<a.capacity&&(s=a.capacity)),s}}var Io;!function(t){t.Standby="standby",t.SelfTest="selftest",t.Normal="normal",t.Alarm="alarm",t.Fault="fault",t.Idle="idle",t.NormalStop="normalstop",t.Shutdown="shutdown",t.OnGrid="ongrid",t.OffGrid="offgrid",t.Check="check",t.NoBattery="noBattery",t.Discharging="discharging",t.Charging="charging",t.Waiting="waiting",t.Exporting="exporting",t.Importing="importing",t.Flash="flash",t.Offline="offline",t.Running="running",t.SleepMode="sleepmode",t.Off="off",t.LowPower="lowpower",t.Bulk="bulk",t.Absorption="absorption",t.Float="float",t.Storage="storage",t.Equalize="equalize",t.Passthru="passthru",t.Inverting="inverting",t.PowerAssist="powerassist",t.PowerSupply="powersupply",t.Sustain="sustain",t.ExternalControl="externalcontrol",t.Recharge="recharge",t.ScheduledRecharge="scheduledrecharge"}(Io||(Io={}));class Oo extends Mo{constructor(){super(...arguments),this.brand=zt.Solis,this.statusGroups={normal:{states:["0","3"],color:"green",message:Ln("common.normal")},standby:{states:["1","2"],color:"blue",message:Ln("common.standby")},alarm:{states:["4140","4100","4112","4113","4114","4115","4116","4120","4122","4123","4124","4125","4127","4128","4129","4130","4132","4133","4134","4135","4136","4137","4138","4144","4145","4146","4147","4148","4150","4151","4152","8123"],color:"red",message:Ln("common.alarm")},fault:{states:["4117","4118","4119","4121","4131","4134","4135","4164","4167","4144"],color:"red",message:Ln("common.fault")},selftest:{states:["4139"],color:"purple",message:Ln("common.selftest")}},this.image="data:image/png;base64, "}}class Bo extends Mo{constructor(){super(...arguments),this.brand=zt.Lux,this.statusGroups={standby:{states:["0"],color:"blue",message:Ln("common.standby")},selftest:{states:[],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","4","5","8","9","10","11","12","16","20","32","40"],color:"green",message:Ln("common.normal")},alarm:{states:["7","17","64","136","192"],color:"orange",message:Ln("common.alarm")},fault:{states:["1"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class Do extends Mo{constructor(){super(...arguments),this.brand=zt.Goodwe,this.batteryStatusGroups={noBattery:{states:["0"],color:"yellow",message:Ln("common.no_battery")},standby:{states:["1"],color:"blue",message:Ln("common.standby")},discharging:{states:["2"],color:"red",message:Ln("common.discharging")},charging:{states:["3"],color:"green",message:Ln("common.charging")},waiting:{states:["4","5"],color:"yellow",message:Ln("common.waiting")}},this.statusGroups={standby:{states:["0","wait mode"],color:"blue",message:Ln("common.standby")},ongrid:{states:["1","normal (on-grid)"],color:"green",message:Ln("common.ongrid")},offgrid:{states:["2","normal (off-grid)"],color:"green",message:Ln("common.offgrid")},fault:{states:["3","fault mode"],color:"red",message:Ln("common.fault")},flash:{states:["4","flash mode"],color:"yellow",message:Ln("common.flash")},check:{states:["5","check mode"],color:"orange",message:Ln("common.check")}},this.image="data:image/png;base64, "}}class ko extends Mo{constructor(){super(...arguments),this.brand=zt.GoodweGridMode,this.batteryStatusGroups={noBattery:{states:["0"],color:"yellow",message:Ln("common.no_battery")},standby:{states:["1"],color:"blue",message:Ln("common.standby")},discharging:{states:["2"],color:"red",message:Ln("common.discharging")},charging:{states:["3"],color:"green",message:Ln("common.charging")},waiting:{states:["4","5"],color:"yellow",message:Ln("common.waiting")}},this.statusGroups={idle:{states:["0","idle"],color:"blue",message:Ln("common.idle")},exporting:{states:["1","exporting"],color:"green",message:Ln("common.exporting")},importing:{states:["2","importing"],color:"red",message:Ln("common.importing")}},this.image="data:image/png;base64, "}}class Vo extends Mo{constructor(){super(...arguments),this.brand=zt.FoxESS,this.image="data:image/png;base64,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",this.statusGroups={standby:{states:["waiting"],color:"blue",message:Ln("common.standby")},selftest:{states:["self test"],color:"yellow",message:Ln("common.selftest")},ongrid:{states:["on grid"],color:"green",message:Ln("common.ongrid")},offgrid:{states:["off grid / eps"],color:"green",message:Ln("common.offgrid")},fault:{states:["recoverable fault","unrecoverable fault"],color:"red",message:Ln("common.fault")},check:{states:["checking"],color:"orange",message:Ln("common.check")}}}}class zo extends Mo{constructor(){super(...arguments),this.brand=zt.Huawei,this.batteryStatusGroups={offline:{states:["0","offline"],color:"yellow",message:Ln("common.offline")},standby:{states:["1","standby"],color:"blue",message:Ln("common.standby")},running:{states:["2","running"],color:"green",message:Ln("common.running")},fault:{states:["3","fault"],color:"red",message:Ln("common.fault")},sleepmode:{states:["4","sleep_mode"],color:"yellow",message:Ln("common.sleepmode")}},this.statusGroups={standby:{states:["standby"],color:"blue",message:Ln("common.standby")},selftest:{states:["spot check"],color:"yellow",message:Ln("common.selftest")},normal:{states:["grid-connected, grid-connected normally","grid-connected, grid connection with derating due to power rationing"],color:"green",message:Ln("common.normal")},shutdown:{states:["shutdown"],color:"red",message:Ln("common.shutdown")},normalstop:{states:["normal stop"],color:"yellow",message:Ln("common.normalstop")},alarm:{states:["grid-connected, grid connection with derating due to internal causes of the solar inverter"],color:"orange",message:Ln("common.alarm")},fault:{states:["stop due to faults","stop due to power rationing"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64,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"}}class Ro extends Mo{constructor(){super(...arguments),this.brand=zt.Fronius,this.image="data:image/png;base64, ",this.statusGroups={standby:{states:["8","11","13"],color:"blue",message:Ln("common.standby")},selftest:{states:["0","1","2","3","4","5","6","9"],color:"yellow",message:Ln("common.selftest")},normal:{states:["7","12"],color:"green",message:Ln("common.normal")},alarm:{states:["3"],color:"orange",message:Ln("common.alarm")},fault:{states:["255"],color:"red",message:Ln("common.fault")}}}}class jo extends Mo{constructor(){super(...arguments),this.brand=zt.PowMr,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["3","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["4","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64,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"}}class Go extends Mo{constructor(){super(...arguments),this.brand=zt.Victron,this.statusGroups={off:{states:["0","off"],color:"red",message:Ln("common.off")},lowpower:{states:["1","low power"],color:"yellow",message:Ln("common.lowpower")},fault:{states:["2","fault"],color:"red",message:Ln("common.fault")},bulk:{states:["3","bulk"],color:"green",message:Ln("common.bulk")},absorption:{states:["4","absorption"],color:"green",message:Ln("common.absorption")},float:{states:["5","float"],color:"green",message:Ln("common.float")},storage:{states:["6","storage"],color:"green",message:Ln("common.storage")},equalize:{states:["7","equalize"],color:"green",message:Ln("common.equalize")},passthru:{states:["8","passthru"],color:"green",message:Ln("common.passthru")},inverting:{states:["9","inverting"],color:"blue",message:Ln("common.inverting")},powerassist:{states:["10","power assist"],color:"blue",message:Ln("common.powerassist")},powersupply:{states:["11","power supply"],color:"blue",message:Ln("common.powersupply")},sustain:{states:["244","sustain"],color:"green",message:Ln("common.sustain")},externalcontrol:{states:["252","external control"],color:"green",message:Ln("common.externalcontrol")},discharging:{states:["256","discharging"],color:"green",message:Ln("common.discharging")},recharge:{states:["258","recharge"],color:"green",message:Ln("common.recharge")},scheduledrecharge:{states:["259","scheduled recharge"],color:"green",message:Ln("common.scheduledrecharge")}},this.image="data:image/png;base64, "}}class Ho extends Mo{constructor(){super(...arguments),this.brand=zt.Solax,this.statusGroups={normal:{states:["2","normal","normalmode","normal mode"],color:"green",message:Ln("common.normal")},standby:{states:["0","waiting","waitmode","9","idle","idlemode","idle mode","10","standby","standbymode"],color:"blue",message:Ln("common.standby")},selftest:{states:["8","self testing","selftest","self test"],color:"yellow",message:Ln("common.selftest")},offgrid:{states:["6","off-grid waiting","epscheckmode","7","off-grid","epsmode","eps mode"],color:"green",message:Ln("common.offgrid")},fault:{states:["4","permanent fault","permanentfaultmode","permanent fault mode","3","fault","faultmode"],color:"red",message:Ln("common.fault")},check:{states:["1","checking","checkmode","5","update","updatemode","update mode","eps check mode"],color:"orange",message:Ln("common.check")}},this.image="data:image/png;base64,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"}}class Uo extends Mo{constructor(){super(...arguments),this.brand=zt.Growatt,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["1","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["3","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64,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"}}class Wo extends Mo{constructor(){super(...arguments),this.brand=zt.Sofar,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["3","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["4","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class Zo extends Mo{constructor(){super(...arguments),this.brand=zt.Sunsynk,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["3","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["4","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class Qo extends Mo{constructor(){super(...arguments),this.brand=zt.CESBatteryBox,this.image="data:image/png;base64, "}}class Yo extends Mo{constructor(){super(...arguments),this.brand=zt.SolarEdge,this.statusGroups={standby:{states:["0","1","2","3","6","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["8","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["4","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["5","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["7","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class Fo extends Mo{constructor(){super(...arguments),this.brand=zt.Deye,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["3","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["4","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64,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"}}class Xo extends Mo{constructor(){super(...arguments),this.brand=zt.Azzurro,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["3","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["4","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class Jo extends Mo{constructor(){super(...arguments),this.brand=zt.MakeSkyBlue,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["1","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["3","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64,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"}}class Ko extends Mo{constructor(){super(...arguments),this.brand=zt.MPPSolar,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["3","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["4","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class qo extends Mo{constructor(){super(...arguments),this.brand=zt.SMASolar,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["307: Ok (Ok)"],color:"green",message:Ln("common.normal")},alarm:{states:["455: Warning (Wrn)"],color:"orange",message:Ln("common.alarm")},fault:{states:["35: Fault (Alm)"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class $o extends Mo{constructor(){super(...arguments),this.brand=zt.E3dc,this.image="data:image/png;base64,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"}}class ti extends Mo{constructor(){super(...arguments),this.brand=zt.Sungrow,this.statusGroups={standby:{states:["standby","initial standby"],color:"blue",message:Ln("common.standby")},selftest:{states:["startup"],color:"blue",message:Ln("common.selftest")},running:{states:["running"],color:"green",message:Ln("common.running")},offgrid:{states:["off-grid mode"],color:"orange",message:Ln("common.offgrid")},externalcontrol:{states:["external ems mode","forced mode","dispatch run"],color:"green",message:Ln("common.externalcontrol")},shutdown:{states:["shutdown","restarting","afci self test shutdown"],color:"red",message:Ln("common.shutdown")},normalstop:{states:["stop"],color:"yellow",message:Ln("common.normalstop")},alarm:{states:["warn running"],color:"orange",message:Ln("common.alarm")},sustain:{states:["de-rating running"],color:"red",message:Ln("common.sustain")},fault:{states:["update failed","maintain mode","emergency stop","fault","unknown","un-initialized","open loop","safe mode"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class ei extends Mo{constructor(){super(...arguments),this.brand=zt.Sigenergy,this.statusGroups={standby:{states:["standby"],color:"blue",message:Ln("common.standby")},running:{states:["running"],color:"green",message:Ln("common.running")},shutdown:{states:["shutdown"],color:"red",message:Ln("common.shutdown")},alarm:{states:["software version mismatch","low insulation resistance","over-temperature","equipment fault","system grounding fault","pv string over-voltage","pv string reversely connected","pv string back-filling","afci fault","grid power outage","grid over-voltage","grid under-voltage","grid over-frequency","grid under-frequency","grid voltage imbalance","dc component of output current out of limit","leak current out of limit","system internal protection","afci self-checking circuit fault","off-grid protection","manual operation protection","abnormal phase sequence","short circuit to pe","soft start failure","off-grid protection","manual operation protection","soft start failure","excessive leakage current in off-grid output","n line grounding fault","abnormal phase sequence of grid wiring","abnormal phase sequence of inverter wiring","grid phase loss","the energy storage module has low insulation resistance to ground","the temperature is too high","under-temperature","internal protection","thermal runaway"],color:"red",message:Ln("common.alarm")},fault:{states:["fault","communication abnormal","environmental abnormality"],color:"orange",message:Ln("common.fault")},ongrid:{states:["on grid"],color:"green",message:Ln("common.ongrid")},offgrid:{states:["off grid (auto)","off grid (manual)"],color:"yellow",message:Ln("common.offgrid")},externalcontrol:{states:["pcs remote control","standby","maximum self consumption","command charging (grid first)","command charging (pv first)","command discharging (pv first)","command discharging (ess first)","unknown"],color:"green",message:Ln("common.externalcontrol")}},this.image="data:image/png;base64, "}}class ni extends Mo{constructor(){super(...arguments),this.brand=zt.Linky,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["3","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["4","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class ai extends Mo{constructor(){super(...arguments),this.brand=zt.Ferroamp,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["3","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["4","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64,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"}}class oi extends Mo{constructor(){super(...arguments),this.brand=zt.Easun,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["3","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["4","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class ii extends Mo{constructor(){super(...arguments),this.brand=zt.Solinteg,this.statusGroups={normal:{states:["2","On Grid generating","On Grid"],color:"green",message:Ln("common.normal")},standby:{states:["0","waiting","wait"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","Self checking","check"],color:"yellow",message:Ln("common.selftest")},offgrid:{states:["5","Off Grid generating","Off Grid"],color:"green",message:Ln("common.offgrid")},fault:{states:["3","Fault","permanentfaultmode","fault"],color:"red",message:Ln("common.fault")},check:{states:["4","Firmware upgrade","flash"],color:"orange",message:Ln("common.check")}},this.image="data:image/png;base64,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"}}class ri extends Mo{constructor(){super(...arguments),this.brand=zt.DeyeNew,this.statusGroups={standby:{states:["0","standby","stand-by"],color:"blue",message:Ln("common.standby")},selftest:{states:["1","selftest","self-checking"],color:"yellow",message:Ln("common.selftest")},normal:{states:["2","normal","ok"],color:"green",message:Ln("common.normal")},alarm:{states:["3","alarm"],color:"orange",message:Ln("common.alarm")},fault:{states:["4","fault"],color:"red",message:Ln("common.fault")}},this.image="data:image/png;base64, "}}class si extends Mo{constructor(){super(...arguments),this.brand=zt.Chisage,this.image="data:image/png;base64, "}}class li extends Mo{constructor(){super(...arguments),this.brand=zt.SRNEHES,this.image="data:image/png;base64,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"}}class ci{static getInstance(t){return this.instance&&this.instance.brand===t||(this.instance=this.createInstance(t)),this.instance}static createInstance(t){switch(t){case zt.SRNEHES:return new li;case zt.Chisage:return new si;case zt.Sigenergy:return new ei;case zt.Linky:return new ni;case zt.Ferroamp:return new ai;case zt.Easun:return new oi;case zt.Azzurro:return new Xo;case zt.Solis:return new Oo;case zt.Lux:return new Bo;case zt.Goodwe:return new Do;case zt.GoodweGridMode:return new ko;case zt.E3dc:return new $o;case zt.FoxESS:return new Vo;case zt.Huawei:return new zo;case zt.Fronius:return new Ro;case zt.Victron:return new Go;case zt.Solax:return new Ho;case zt.Growatt:return new Uo;case zt.Sofar:return new Wo;case zt.CESBatteryBox:return new Qo;case zt.SolarEdge:return new Yo;case zt.Deye:return new Fo;case zt.DeyeNew:return new ri;case zt.PowMr:return new jo;case zt.MPPSolar:return new Ko;case zt.SMASolar:return new qo;case zt.Sungrow:return new ti;case zt.MakeSkyBlue:return new Jo;case zt.Solinteg:return new ii;case zt.Sunsynk:default:return new Zo}}}class di{static convert(t){const e=parseInt(t.state),n=Number.isFinite(e)?e>=95?100:e>=85?90:e>=75?80:e>=65?70:e>=55?60:e>=45?50:e>=35?40:e>=25?30:e>=10?20:0:0,a=this._cache.get(n);if(a)return a;let o;switch(n){case 100:o={batteryIcon:this.BATTERY_ICON_100,batteryCharge:this.BATTERY_100,stopColour:"green",battery0:this.BATTERY_0};break;case 90:o={batteryIcon:this.BATTERY_ICON_90,batteryCharge:this.BATTERY_90,stopColour:"green",battery0:this.BATTERY_0};break;case 80:o={batteryIcon:this.BATTERY_ICON_80,batteryCharge:this.BATTERY_80,stopColour:"#9ACD32",battery0:this.BATTERY_0};break;case 70:o={batteryIcon:this.BATTERY_ICON_70,batteryCharge:this.BATTERY_70,stopColour:"gold",battery0:this.BATTERY_0};break;case 60:o={batteryIcon:this.BATTERY_ICON_60,batteryCharge:this.BATTERY_60,stopColour:"gold",battery0:this.BATTERY_0};break;case 50:o={batteryIcon:this.BATTERY_ICON_50,batteryCharge:this.BATTERY_50,stopColour:"gold",battery0:this.BATTERY_0};break;case 40:o={batteryIcon:this.BATTERY_ICON_40,batteryCharge:this.BATTERY_40,stopColour:"orange",battery0:this.BATTERY_0};break;case 30:o={batteryIcon:this.BATTERY_ICON_30,batteryCharge:this.BATTERY_30,stopColour:"orange",battery0:this.BATTERY_0};break;case 20:o={batteryIcon:this.BATTERY_ICON_20,batteryCharge:this.BATTERY_20,stopColour:"orange",battery0:this.BATTERY_0};break;default:o={batteryIcon:this.BATTERY_0,batteryCharge:this.BATTERY_0,stopColour:"red",battery0:this.BATTERY_0}}return this._cache.set(n,o),o}}function ui(t,e="NA",n=-1){const a=t?.entity_id,o=a?"".concat(a,"|").concat(String(t?.state),"|").concat(e,"|").concat(n,"|").concat(String(t?.attributes?.unit_of_measurement||"")):void 0;if(o){const t=yi.get(o);if(t)return t}const i={...t,measurement:e,decimals:n,toNum:(e,n)=>kn.toNum(t?.state,e,n),isValid:()=>null!==t?.state&&void 0!==t.state&&"unknown"!==t.state||!1,notEmpty:()=>""!==t?.state&&null!==t?.state&&"unknown"!==t?.state&&void 0!==t.state||!1,isNaN:()=>null===t?.state||Number.isNaN(t?.state),toPower:e=>{const n=(t.attributes?.unit_of_measurement||"").toLowerCase();return"kw"===n||"kwh"===n?kn.toNum(1e3*(t?.state||"0"),0,e):"mw"===n||"mwh"===n?kn.toNum(1e6*(t?.state||"0"),0,e):kn.toNum(t?.state||"0",0,e)||0},toPowerString:(e,n,a)=>{const o=t?.attributes?.unit_of_measurement||"",i="".concat(t?.state,"|").concat(o,"|").concat(e?1:0,"|").concat(n??-1,"|").concat(a?1:0),r=mi.get(i);if(void 0!==r)return r;const s=e?kn.convertValueNew(t?.state,o,n||0):null,l=e?"number"==typeof s?"".concat(s," ").concat(o):String(s):"".concat(kn.toNum(t?.state,0,a)," ").concat(o);return mi.size>pi&&mi.clear(),mi.set(i,l),l},toString:()=>t?.state?.toString()||"",getUOM:()=>t?.attributes?.unit_of_measurement||"",toDisplay:()=>function(t,e,n){if(null==t)return t;if(Number.isNaN(t))return"".concat(t).concat(e);const a="".concat(t,"|").concat(e,"|").concat(n??-1),o=hi.get(a);if(void 0!==o)return o;const i=null!=n&&n>=0?parseFloat(t).toFixed(n):t,r="NA"!=e&&e?e:"",s="".concat(i).concat(r);hi.size>gi&&hi.clear();return hi.set(a,s),s}(t.state,e,n)};return o&&(yi.size>_i&&yi.clear(),yi.set(o,i)),i}di._cache=new Map,di.BATTERY_ICON_100="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zM5 6.5 11 6.5 11 7.5H5z",di.BATTERY_ICON_90="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5z",di.BATTERY_ICON_80="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5z",di.BATTERY_ICON_70="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5z",di.BATTERY_ICON_60="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5z",di.BATTERY_ICON_50="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5z",di.BATTERY_ICON_40="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5z",di.BATTERY_ICON_30="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5z",di.BATTERY_ICON_20="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5z",di.BATTERY_100="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zM5 6.5 11 6.5 11 7.5H5z",di.BATTERY_90="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5z",di.BATTERY_80="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zH5z",di.BATTERY_70="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 11z",di.BATTERY_60="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5z",di.BATTERY_50="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zH5z",di.BATTERY_40="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zH5z",di.BATTERY_30="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 17z",di.BATTERY_20="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 19z",di.BATTERY_0="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4";const hi=new Map,gi=2048,mi=new Map,pi=2048,yi=new Map,_i=4096;console.groupCollapsed("%c ⚡ SUNSYNK-POWER-FLOW-CARD %c ".concat(Ln("common.version"),": ").concat("7.3.3"," "),"color: orange; font-weight: bold; background: black","color: white; font-weight: bold; background: dimgray"),console.log("Readme:","https://github.com/slipx06/sunsynk-power-flow-card"),console.groupEnd();let fi=class extends dt{constructor(){super(...arguments),this._animationsPaused=!1,this._isVisible=!0,this._updateScheduled=!1,this._rafId=0,this.durationPrev={},this.durationCur={},this._pendingSpeedUpdates=new Map,this._speedRafId=null,this._lineWidthCache=new Map,this._trackedEntityIds=new Set,this._lastEntityStates=new Map,this._entityCache=new Map,this._colorCache=new Map,this._computed={grid:{importColour:"#00ffff",exportColour:"#00ffff",noGridColour:"#00ffff",offThreshold:0},load:{invertLoad:!1}}}get hass(){return this._hass}set hass(t){const e=this._hass;this._hass=t,this._scheduleUpdateFromHass(e)}static get styles(){return kt}_scheduleUpdateFromHass(t){if(this._updateScheduled)return;this._updateScheduled=!0;let e=!1;const n=()=>{e||(e=!0,this._updateScheduled=!1,void 0!==this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=void 0),super.requestUpdate("hass",t))};this._rafId=window.requestAnimationFrame(()=>{n()}),this._timeoutId=window.setTimeout(()=>{this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=0),n()},50)}shouldUpdate(t){if(!this._lastEntityStates.size)return!0;if(t.has("hass")){if(!this._isVisible)return!1;if(0===this._trackedEntityIds.size)return!0;let t=!1;for(const e of this._trackedEntityIds){if((this.hass?.states?.[e]?.state??"")!==(this._lastEntityStates.get(e)??"")){t=!0;break}}return t}return!0}disconnectedCallback(){this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=0,this._updateScheduled=!1),void 0!==this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=void 0),this._intersection&&(this._intersection.disconnect(),this._intersection=void 0),this._onVisibilityChange&&(document.removeEventListener("visibilitychange",this._onVisibilityChange),this._onVisibilityChange=void 0),super.disconnectedCallback()}connectedCallback(){super.connectedCallback(),this._intersection&&this._intersection.disconnect(),this._intersection=new IntersectionObserver(t=>{const e=t[0]?.isIntersecting??!0;this._isVisible=e,e?(this._resumeAnimations(),this.requestUpdate()):this._pauseAnimations()},{root:null,rootMargin:"0px",threshold:.01}),this._intersection.observe(this),this._onVisibilityChange=()=>{const t="visible"===document.visibilityState;this._isVisible=t,t?(this._resumeAnimations(),this.requestUpdate()):this._pauseAnimations()},document.addEventListener("visibilitychange",this._onVisibilityChange)}_forEachFlow(t){const e=[this.gridFlow,this.grid1Flow,this.solarFlow,this.pv1Flow,this.pv2Flow,this.pv3Flow,this.pv4Flow,this.pv5Flow,this.pv6Flow,this.batteryFlow,this.loadFlow,this.auxFlow,this.neFlow,this.ne1Flow];for(const n of e)n&&t(n)}_pauseAnimations(){this._animationsPaused||(this._forEachFlow(t=>{try{t.pauseAnimations()}catch{}}),this._animationsPaused=!0)}_resumeAnimations(){this._animationsPaused&&(this._forEachFlow(t=>{try{t.unpauseAnimations()}catch{}}),this._animationsPaused=!1,this._pendingSpeedUpdates.size>0&&this._flushAnimationSpeedUpdates())}getCurrentThemeName(){const t=this.hass?.themes?.theme;return"string"==typeof t?t:""}static async getConfigElement(){return await Promise.resolve().then(function(){return Ti}),document.createElement(Xt)}static getStubConfig(){return{cardstyle:Rt.Lite,show_solar:!0,battery:{energy:0,shutdown_soc:20,show_daily:!0},solar:{show_daily:!0,mppts:2},load:{show_daily:!0},grid:{show_daily_buy:!0,show_daily_sell:!1,show_nonessential:!0},entities:{use_timer_248:"switch.sunsynk_toggle_system_timer",priority_load_243:"switch.sunsynk_toggle_priority_load",inverter_voltage_154:"sensor.sunsynk_inverter_voltage",load_frequency_192:"sensor.sunsynk_load_frequency",inverter_current_164:"sensor.sunsynk_inverter_current",inverter_power_175:"sensor.sunsynk_inverter_power",grid_connected_status_194:"binary_sensor.sunsynk_grid_connected_status",inverter_status_59:"sensor.sunsynk_overall_state",day_battery_charge_70:"sensor.sunsynk_day_battery_charge",day_battery_discharge_71:"sensor.sunsynk_day_battery_discharge",battery_voltage_183:"sensor.sunsynk_battery_voltage",battery_soc_184:"sensor.sunsynk_battery_soc",battery_power_190:"sensor.sunsynk_battery_power",battery_current_191:"sensor.sunsynk_battery_current",grid_power_169:"sensor.sunsynk_grid_power",day_grid_import_76:"sensor.sunsynk_day_grid_import",day_grid_export_77:"sensor.sunsynk_day_grid_export",grid_ct_power_172:"sensor.sunsynk_grid_ct_power",day_load_energy_84:"sensor.sunsynk_day_load_energy",essential_power:"none",nonessential_power:"none",aux_power_166:"sensor.sunsynk_aux_power",day_pv_energy_108:"sensor.sunsynk_day_pv_energy",pv1_power_186:"sensor.sunsynk_pv1_power",pv2_power_187:"sensor.sunsynk_pv2_power",pv1_voltage_109:"sensor.sunsynk_pv1_voltage",pv1_current_110:"sensor.sunsynk_pv1_current",pv2_voltage_111:"sensor.sunsynk_pv2_voltage",pv2_current_112:"sensor.sunsynk_pv2_current"}}}render(){this._lineWidthCache.clear(),this._entityCache.clear(),this._trackedEntityIds.clear(),An.hass=this.hass;const t=this._config,e=this.getEntity("entities.day_battery_discharge_71"),n=this.getEntity("entities.day_battery_charge_70"),a=this.getEntity("entities.day_battery2_discharge_71"),o=this.getEntity("entities.day_battery2_charge_70"),i=this.getEntity("entities.day_load_energy_84"),r=this.getEntity("entities.day_grid_import_76"),s=this.getEntity("entities.day_pv_energy_108"),l=this.getEntity("entities.day_grid_export_77"),c=this.getEntity("entities.day_aux_energy"),d=this.getEntity("entities.inverter_voltage_154"),u=this.getEntity("entities.load_frequency_192"),h=this.getEntity("entities.inverter_current_164"),g=this.getEntity("entities.inverter_status_59",{state:""}),m=this.getEntity("entities.inverter_power_175"),p=this.getEntity("entities.priority_load_243",{state:t.entities.priority_load_243?.toString()??"false"}),y=this.getEntity("entities.use_timer_248",{state:t.entities.use_timer_248?.toString()??"false"}),_=this.getEntity("entities.dc_transformer_temp_90",{state:""}),f=this.getEntity("entities.radiator_temp_91",{state:""}),v=this.getEntity("entities.inverter_voltage_L2",{state:""}),w=this.getEntity("entities.inverter_voltage_L3",{state:""}),b=this.getEntity("entities.inverter_current_L2",{state:""}),A=this.getEntity("entities.inverter_current_L3",{state:""}),x=this.getEntity("entities.environment_temp",{state:""}),P=this.getEntity("entities.battery_voltage_183"),E=this.getEntity("entities.battery_soc_184",null,t.battery.soc_decimal_places,ee.PERCENTAGE),L=this.getEntity("entities.battery_power_190"),N=this.getEntity("entities.battery_current_191"),C=this.getEntity("entities.battery_temp_182",{state:""}),T=this.getEntity("entities.battery_status",{state:""}),S=this.getEntity("entities.battery_current_direction",{state:""}),M=this.getEntity("entities.battery_rated_capacity",{state:""}),I=this.getEntity("battery.shutdown_soc",{state:t.battery.shutdown_soc?.toString()??""}),O=this.getEntity("battery.shutdown_soc_offgrid",{state:t.battery.shutdown_soc_offgrid?.toString()??""}),B=this.getEntity("entities.battery_soh",{state:""}),D=this.getEntity("battery.soc_end_of_charge",{state:t.battery.soc_end_of_charge?.toString()??""}),k=this.getEntity("entities.battery2_voltage_183"),V=this.getEntity("entities.battery2_soc_184",null,t.battery2.soc_decimal_places,ee.PERCENTAGE),z=this.getEntity("entities.battery2_power_190"),R=this.getEntity("entities.battery2_current_191"),j=this.getEntity("entities.battery2_temp_182",{state:""}),G=this.getEntity("entities.battery2_status",{state:""}),H=this.getEntity("entities.battery2_current_direction",{state:""}),U=this.getEntity("entities.battery2_rated_capacity",{state:""}),W=this.getEntity("battery2.shutdown_soc",{state:t.battery2.shutdown_soc?.toString()??""}),Z=this.getEntity("battery2.shutdown_soc_offgrid",{state:t.battery2.shutdown_soc_offgrid?.toString()??""}),Q=this.getEntity("entities.battery2_soh",{state:""}),Y=this.getEntity("battery2.soc_end_of_charge",{state:t.battery2.soc_end_of_charge?.toString()??""}),F=this.getEntity("entities.essential_power"),X=this.getEntity("entities.aux_power_166"),J=this.getEntity("entities.nonessential_power"),K=this.getEntity("entities.non_essential_load1"),q=this.getEntity("entities.non_essential_load2"),$=this.getEntity("entities.non_essential_load3"),tt=this.getEntity("entities.non_essential_load1_extra"),et=this.getEntity("entities.non_essential_load2_extra"),nt=this.getEntity("entities.non_essential_load3_extra"),at=this.getEntity("entities.essential_load1"),ot=this.getEntity("entities.essential_load2"),it=this.getEntity("entities.essential_load3"),rt=this.getEntity("entities.essential_load4"),st=this.getEntity("entities.essential_load5"),lt=this.getEntity("entities.essential_load6"),ct=this.getEntity("entities.aux_connected_status",{state:"on"}),dt=this.getEntity("entities.aux_load1"),ut=this.getEntity("entities.aux_load2"),ht=this.getEntity("entities.essential_load1_extra"),gt=this.getEntity("entities.essential_load2_extra"),mt=this.getEntity("entities.essential_load3_extra"),pt=this.getEntity("entities.essential_load4_extra"),yt=this.getEntity("entities.essential_load5_extra"),_t=this.getEntity("entities.essential_load6_extra"),ft=this.getEntity("entities.load_power_L1"),vt=this.getEntity("entities.load_power_L2"),wt=this.getEntity("entities.load_power_L3"),bt=this.getEntity("entities.aux_load1_extra"),At=this.getEntity("entities.aux_load2_extra"),xt=this.getEntity("entities.grid_ct_power_172"),Pt=this.getEntity("entities.grid_ct_power_L2"),Et=this.getEntity("entities.grid_ct_power_L3"),Ct=this.getEntity("entities.grid_ct_power_total"),Tt=this.getEntity("entities.grid_connected_status_194",{state:"on"}),St=this.getEntity("entities.grid_power_169"),Mt=this.getEntity("entities.energy_cost_buy",{state:"",attributes:{unit_of_measurement:""}}),It=this.getEntity("entities.energy_cost_sell",{state:"",attributes:{unit_of_measurement:""}}),Ot=this.getEntity("entities.grid_voltage",null),Bt=this.getEntity("entities.prepaid_units"),Dt=this.getEntity("entities.max_sell_power"),kt=this.getEntity("entities.pv1_voltage_109"),Vt=this.getEntity("entities.pv1_current_110"),Rt=this.getEntity("entities.pv2_voltage_111"),jt=this.getEntity("entities.pv2_current_112"),Gt=this.getEntity("entities.pv3_voltage_113"),Xt=this.getEntity("entities.pv3_current_114"),Jt=this.getEntity("entities.pv4_voltage_115"),Kt=this.getEntity("entities.pv4_current_116"),qt=this.getEntity("entities.pv5_voltage"),$t=this.getEntity("entities.pv5_current"),te=this.getEntity("entities.pv6_voltage"),ne=this.getEntity("entities.pv6_current"),ae=this.getEntity("entities.pv1_power_186"),oe=this.getEntity("entities.pv2_power_187"),ie=this.getEntity("entities.pv3_power_188"),re=this.getEntity("entities.pv4_power_189"),se=this.getEntity("entities.pv5_power"),le=this.getEntity("entities.pv6_power"),ce=this.getEntity("entities.remaining_solar"),de=this.getEntity("entities.solar_sell_247",{state:"undefined"}),ue=this.getEntity("entities.pv_total"),he=this.getEntity("entities.total_pv_generation"),ge=t.load?.invert_aux??!1,me=X.toPower(ge),pe=t.grid?.invert_grid??!1,ye=xt.toPower(pe),_e=Pt.toPower(pe),fe=Et.toPower(pe),ve=t.entities?.grid_ct_power_total?Ct.toPower(pe):ye+_e+fe,we=t.inverter.three_phase?ve:ye,be=Ot.isNaN()?null:Ot.toNum(0),Ae=S.isNaN()?null:S.toNum(0),xe=H.isNaN()?null:H.toNum(0),Pe=t.inverter?.modern,Ee=t.decimal_places,Le=t.decimal_places_energy,Ne=this.colourConvert(t.load?.colour),Ce=this.calculateAuxLoadColour(X.toPower(!1),kn.toNum(t.load?.off_threshold,0))||Ne,Te=this.colourConvert(t.load?.aux_off_colour||Ce),Se=this.calculateAuxLoadColour(dt.toPower(!1),kn.toNum(t.load?.off_threshold,0))||Ne,Me=this.calculateAuxLoadColour(ut.toPower(!1),kn.toNum(t.load?.off_threshold,0))||Ne,Ie=kn.toNum(t.load?.off_threshold,0),Oe=kn.toNum(t.load?.load1_max_threshold,0)||1/0,Be=kn.toNum(t.load?.load2_max_threshold,0)||1/0,De=kn.toNum(t.load?.load3_max_threshold,0)||1/0,ke=kn.toNum(t.load?.load4_max_threshold,0)||1/0,Ve=kn.toNum(t.load?.load5_max_threshold,0)||1/0,ze=kn.toNum(t.load?.load6_max_threshold,0)||1/0,Re=this.calculateEssentialLoadColour(at.toPower(!1),Ie,Oe)||Ne,je=this.calculateEssentialLoadColour(ot.toPower(!1),Ie,Be)||Ne,Ge=this.calculateEssentialLoadColour(it.toPower(!1),Ie,De)||Ne,He=this.calculateEssentialLoadColour(rt.toPower(!1),Ie,ke)||Ne,Ue=this.calculateEssentialLoadColour(st.toPower(!1),Ie,Ve)||Ne,We=this.calculateEssentialLoadColour(lt.toPower(!1),Ie,ze)||Ne;t.title_colour=this.colourConvert(t.title_colour);const Ze=t.load?.show_daily,Qe=t.grid?.show_nonessential;let Ye=t.entities?.grid_connected_status_194?Tt.state:"on";Ft.includes(Ye.toLowerCase())||Yt.includes(Ye.toLowerCase())||(Ye="on");const Fe=t.entities?.aux_connected_status?ct.state:"on",Xe=t.entities?.load_frequency_192?u.toNum(2):0,Je=t.entities?.inverter_voltage_154?t.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?d.toNum(0):d.toNum(1):0,Ke=t.entities?.inverter_voltage_L2?t.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?v.toNum(0):v.toNum(1):"",qe=t.entities?.inverter_voltage_L3?t.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?w.toNum(0):w.toNum(1):"",$e=t.entities?.inverter_current_164?h.toNum(1):0,tn=t.entities?.inverter_current_L2?b.toNum(1):"",en=t.entities?.inverter_current_L3?A.toNum(1):"",nn=t.entities?.battery_voltage_183?P.toNum(1):0,an=t.entities?.battery2_voltage_183?k.toNum(1):0,on=t.entities?.inverter_power_175?m.toPower():0,rn=t.entities?.grid_power_169?St.toPower():0,sn=this._computed.load.invertLoad,ln=t.entities?.load_power_L1?ft.toPower(sn):"",cn=t.entities?.load_power_L2?vt.toPower(sn):"",dn=t.entities?.load_power_L3?wt.toPower(sn):"",{importColour:un,exportColour:hn,noGridColour:gn,offThreshold:mn}=this._computed.grid;let pn;switch(!0){case we<-mn:pn=hn;break;case we>=-mn&&we<=mn:pn=gn;break;default:pn=un}const yn=Math.abs(K.toPower(!1))>this._computed.grid.offThreshold?pn:"grey",_n=Math.abs(q.toPower(!1))>this._computed.grid.offThreshold?pn:"grey",fn=Math.abs($.toPower(!1))>this._computed.grid.offThreshold?pn:"grey",vn=this.colourConvert(t.grid?.grid_off_colour||pn);let wn=t.grid?.additional_loads;Ut.includes(wn)||(wn=0),t.solar;const bn=t.grid?.show_daily_buy,xn=t.grid?.show_daily_sell,Pn=this.colourConvert(t.battery?.colour),En=this.colourConvert(t.battery?.charge_colour||Pn),Nn=this.colourConvert(t.battery2?.colour),Cn=this.colourConvert(t.battery2?.charge_colour||Nn),Tn=t.battery?.show_daily,Sn=t.solar?.show_daily;let Mn=t.load?.show_aux;Zt.includes(Mn)||(Mn=!1);const In=t.load?.show_daily_aux;let On=t.load?.additional_loads;(!Ht.includes(On)||this.isFullCard&&[3,4,5,6].includes(On)&&Mn||this.isFullCard&&3===On||this.isCompactCard&&!t.wide&&On>=5&&[4,5,6].includes(t.solar.mppts))&&(On=0);let Bn=t.load?.aux_loads;Qt.includes(Bn)||(Bn=0);const Dn=t.load?.aux_type,zn=this.getEntity("load.load1_icon",{state:t.load?.load1_icon?.toString()??""}).state,Rn=this.getEntity("load.load2_icon",{state:t.load?.load2_icon?.toString()??""}).state,jn=this.getEntity("load.load3_icon",{state:t.load?.load3_icon?.toString()??""}).state,Gn=this.getEntity("load.load4_icon",{state:t.load?.load4_icon?.toString()??""}).state,Hn=this.getEntity("load.load5_icon",{state:t.load?.load5_icon?.toString()??""}).state,Un=this.getEntity("load.load6_icon",{state:t.load?.load6_icon?.toString()??""}).state,Wn=this.getEntity("load.aux_load1_icon",{state:t.load?.aux_load1_icon?.toString()??""}).state,Zn=this.getEntity("load.aux_load2_icon",{state:t.load?.aux_load2_icon?.toString()??""}).state,Qn=this.getEntity("grid.nonessential_icon",{state:t.grid?.nonessential_icon?.toString()??""}).state,Yn=this.getEntity("grid.load1_icon",{state:t.grid?.load1_icon?.toString()??""}).state,Fn=this.getEntity("grid.load2_icon",{state:t.grid?.load2_icon?.toString()??""}).state,Xn=this.getEntity("grid.load3_icon",{state:t.grid?.load3_icon?.toString()??""}).state,Jn=this.getEntity("grid.import_icon",{state:t.grid?.import_icon?.toString()??""}).state,Kn=this.getEntity("grid.disconnected_icon",{state:t.grid?.disconnected_icon?.toString()??""}).state,qn=this.getEntity("grid.export_icon",{state:t.grid?.export_icon?.toString()??""}).state,$n=!!t.entities.remaining_solar&&kn.convertValueNew(ce.state,ce.attributes?.unit_of_measurement,Ee),ta=!!t.entities.total_pv_generation&&kn.convertValueNew(he.state,he.attributes?.unit_of_measurement,2),ea=t.large_font,na=this.colourConvert(t.inverter?.colour),aa=t.inverter?.autarky,oa=!!t.entities.use_timer_248&&y.state,ia=!!t.entities.priority_load_243&&p.state;let ra=L.toPower(t.battery?.invert_power),sa=z.toPower(t.battery2?.invert_power);const la=this.getEntity("card_height",{state:t.card_height?.toString()??""}).state,ca=this.getEntity("card_width",{state:t.card_width?.toString()??""}).state,da=0===t.grid?.energy_cost_decimals?0:t.grid?.energy_cost_decimals||2,ua=we>=0?Mt.toNum(da):It.toNum(da);let ha=zt.Sunsynk;Object.values(zt).includes(t.inverter.model)&&(ha=t.inverter.model);let ga="";const ma=ci.getInstance(ha);Pe||(ga=ma.image);let pa=!1;this.isCompactCard&&(pa=!0);const ya=ae.toPower(),_a=oe.toPower(),fa=ie.toPower(),va=re.toPower(),wa=se.toPower(),ba=le.toPower(),Aa=ya+_a+fa+va+wa+ba,xa=t.entities?.pv_total?ue.toNum():Aa,Pa=t.solar.dynamic_colour?kn.toNum(xa,0)>kn.toNum(t.solar?.off_threshold,0)?this.colourConvert(t.solar?.colour):"grey":this.colourConvert(t.solar?.colour);let Ea,La=t.inverter?.three_phase;Wt.includes(La)||(La=!1);const{essential_power:Na,nonessential_power:Ca}=t.entities;Ea=!1===La?"none"!==Ca&&Ca?J.toPower():ye-rn:"none"!==Ca&&Ca?J.toPower():ye+_e+fe-rn;const Ta="none"!==Na&&Na?F.toPower(sn):!0===La&&t.entities.load_power_L1&&t.entities.load_power_L2?Number(ln)+Number(cn)+Number(dn):on+rn-me,Sa={time:this.getEntity("entities.prog1_time",{state:t.entities.prog1_time??""}),capacity:this.getEntity("entities.prog1_capacity",{state:t.entities.prog1_capacity??""}),charge:this.getEntity("entities.prog1_charge",{state:t.entities.prog1_charge??""})},Ma={time:this.getEntity("entities.prog2_time",{state:t.entities.prog2_time??""}),capacity:this.getEntity("entities.prog2_capacity",{state:t.entities.prog2_capacity??""}),charge:this.getEntity("entities.prog2_charge",{state:t.entities.prog2_charge??""})},Ia={time:this.getEntity("entities.prog3_time",{state:t.entities.prog3_time??""}),capacity:this.getEntity("entities.prog3_capacity",{state:t.entities.prog3_capacity??""}),charge:this.getEntity("entities.prog3_charge",{state:t.entities.prog3_charge??""})},Oa={time:this.getEntity("entities.prog4_time",{state:t.entities.prog4_time??""}),capacity:this.getEntity("entities.prog4_capacity",{state:t.entities.prog4_capacity??""}),charge:this.getEntity("entities.prog4_charge",{state:t.entities.prog4_charge??""})},Ba={time:this.getEntity("entities.prog5_time",{state:t.entities.prog5_time??""}),capacity:this.getEntity("entities.prog5_capacity",{state:t.entities.prog5_capacity??""}),charge:this.getEntity("entities.prog5_charge",{state:t.entities.prog5_charge??""})},Da={time:this.getEntity("entities.prog6_time",{state:t.entities.prog6_time??""}),capacity:this.getEntity("entities.prog6_capacity",{state:t.entities.prog6_capacity??""}),charge:this.getEntity("entities.prog6_charge",{state:t.entities.prog6_charge??""})};let ka=t.battery?.count;(!t.wide||1!==ka&&2!==ka)&&(ka=1);const Va=O.toNum(),za=I.toNum(),Ra=Z.toNum()||Va,ja=W.toNum()||za,Ga={capacity:za,entityID:""};switch(!0){case"off"===y.state:case!oa:case!t.entities.prog1_time:case!t.entities.prog2_time:case!t.entities.prog3_time:case!t.entities.prog4_time:case!t.entities.prog5_time:case!t.entities.prog6_time:Ga.show=!1;break;default:{Ga.show=!0;function rr(e){const n=[];[Sa,Ma,Ia,Oa,Ba,Da].forEach((t,a)=>{if(!t||!t.time||!t.time.state)return void console.error("Program ".concat(a+1," is not defined or has no valid time."));const[o,i]=t.time.state.split(":").map(t=>parseInt(t,10)),r=new Date(e.getTime());r.setHours(o),r.setMinutes(i);const s=(a+1)%6,l=[Sa,Ma,Ia,Oa,Ba,Da][s],c=(l&&l.time&&l.time.state,new Date(e.getTime()));if(l&&l.time&&l.time.state){const[t,e]=l.time.state.split(":").map(t=>parseInt(t,10));c.setHours(t),c.setMinutes(e)}else console.warn("Next program ".concat(s+1," is not defined or has no valid time."));n[a]={start:r,end:c}}),sr(n,e);for(let a=0;a<n.length;a++){const{start:o,end:i}=n[a];if(o<=e&&e<i){lr([Sa,Ma,Ia,Oa,Ba,Da][a],t.entities["prog".concat(a+1,"_charge")]);break}if(o>i&&(e>=o||e<i)){lr([Sa,Ma,Ia,Oa,Ba,Da][a],t.entities["prog".concat(a+1,"_charge")]);break}}}function sr(t,e){const n=e.getTime();return t.forEach(t=>{t.start.getTime()<n&&t.end.getTime()<n&&(t.start.setDate(t.start.getDate()+1),t.end.setDate(t.end.getDate()+1))}),t}function lr(t,e){"No Grid or Gen"===t.charge.state||"0"===t.charge.state||"off"===t.charge.state?Ga.charge="none":Ga.charge="both",Ga.capacity=parseInt(t.capacity.state),Ga.entityID=e}rr(new Date);break}}null==be||Number.isNaN(be)||ha!=zt.Solis||(Ye=be>50?"on":"off"),null!=Ae&&ha==zt.Solis&&0===Ae&&(ra=-ra),null!=xe&&ha==zt.Solis&&0===xe&&(sa=-sa);let Ha=D.toNum();Ha=Math.max(50,Math.min(Ha,100));let Ua=Y.toNum()||Ha;Ua=Math.max(50,Math.min(Ua,100));const Wa=2===ka?ra+sa:ra;let Za=0;if(t.show_battery)if(!0==!Ga.show)(!0===t.battery.invert_flow?ra<0:ra>0)?Za="on"!==Ye&&"1"!==Ye&&"on-grid"!==Ye.toLowerCase()||Ga.show?"off"!==Ye&&"0"!==Ye&&"off-grid"!==Ye.toLowerCase()||!O.notEmpty()||Ga.show?za:Va:za:(!0===t.battery.invert_flow?ra>0:ra<0)&&(Za=Ha);else Za=ma.getBatteryCapacity(ra,Ye,za,Ga,E,Ha,t.battery.invert_flow);let Qa=0;if(t.show_battery)if(!0==!Ga.show)(!0===t.battery2.invert_flow?sa<0:sa>0)?Qa="on"!==Ye&&"1"!==Ye&&"on-grid"!==Ye.toLowerCase()||Ga.show?"off"!==Ye&&"0"!==Ye&&"off-grid"!==Ye.toLowerCase()||!Z.notEmpty()||Ga.show?ja:Ra:ja:(!0===t.battery2.invert_flow?sa>0:sa<0)&&(Qa=Ua);else Qa=ma.getBatteryCapacity(sa,Ye,ja,Ga,V,Ua,t.battery2.invert_flow);let Ya="",Fa="",Ja="",Ka="";const qa=this.getEntity("battery.energy",{state:t.battery.energy?.toString()??""}),$a=this.getEntity("battery2.energy",{state:t.battery2.energy?.toString()??""});let to=qa.toPower(!1),eo=$a.toPower(!1);nn&&M.notEmpty()&&(to=kn.toNum(nn*M.toNum(0),0)),an&&U.notEmpty()&&(eo=kn.toNum(an*U.toNum(0),0));const no=to+eo;if(t.show_battery||0!==to||0!==eo){const cr=(t,e,n,a,o,i)=>0===o?(t.toNum(0)-e)/100*a*60*60:(i?o<0:o>0)?(t.toNum(0)-n)/100*a/Math.abs(o)*60*60:(i?o>0:o<0)?(n-t.toNum(0))/100*a/Math.abs(o)*60*60:0;let dr=0;if(0!==to){dr=cr(E,za,Za,to,ra,t.battery.invert_flow);const hr=new Date,gr=new Date(hr.getTime()+1e3*dr),mr=gr.getHours(),pr=gr.getMinutes().toString().padStart(2,"0"),yr=mr.toString().padStart(2,"0");Ya="".concat(yr,":").concat(pr);const _r=Math.floor(dr/86400),fr=Math.floor(dr%86400/3600),vr=Math.floor(dr%3600/60);_r>0&&(Ja+="".concat(_r," ").concat(Ln("common.days"),", ")),(fr>0||_r>0)&&(Ja+="".concat(fr," ").concat(Ln("common.hrs"),", ")),Ja+="".concat(vr," ").concat(Ln("common.min"))}let ur=0;if(0!==eo){ur=cr(V,ja,Qa,eo,sa,t.battery2.invert_flow);const wr=new Date,br=new Date(wr.getTime()+1e3*ur),Ar=br.getHours(),xr=br.getMinutes().toString().padStart(2,"0"),Pr=Ar.toString().padStart(2,"0");Fa="".concat(Pr,":").concat(xr);const Er=Math.floor(ur/86400),Lr=Math.floor(ur%86400/3600),Nr=Math.floor(ur%3600/60);Er>0&&(Ka+="".concat(Er," ").concat(Ln("common.days"),", ")),(Lr>0||Er>0)&&(Ka+="".concat(Lr," ").concat(Ln("common.hrs"),", ")),Ka+="".concat(Nr," ").concat(Ln("common.min"))}}const ao=-2<=N.toNum(0)&&N.toNum(0)<=2&&E.toNum(0)>=99,oo=-2<=R.toNum(0)&&R.toNum(0)<=2&&V.toNum(0)>=99,io=2===ka?ao&&oo:ao;let ro,so;ro=(!0===t.battery.invert_flow?ra>0&&!ao:ra<0&&!ao)?En:Pn,so=(!0===t.battery2.invert_flow?sa>0&&!oo:sa<0&&!oo)?Cn:Nn;let lo="",co="",uo=g.state,ho=!1;ha==zt.Solis&&(uo=g.isNaN()?g.toString():g.toNum(0).toString());const go=ma.statusGroups;if(go)for(const Cr of Object.keys(go)){const Tr=go[Cr],{states:Sr,color:Mr,message:Ir}=Tr;if(Sr.includes(uo.toLowerCase())){lo=Mr,co=Ir,ho=!0;break}}ho||("none"!==t.entities?.inverter_status_59&&t.entities?.inverter_status_59?(lo="transparent",co="Status"):(lo="transparent",co=""));let mo="transparent",po="",yo="transparent",_o="",fo=!1,vo=!1;if([zt.GoodweGridMode,zt.Goodwe,zt.Huawei].includes(ha)){const Or=ma.batteryStatusGroups;if(Or)for(const Br of Object.keys(Or)){const Dr=Or[Br],{states:kr,color:Vr,message:zr}=Dr;if(!fo&&kr.includes(T.state.toLowerCase())&&(mo=Vr,po=zr,fo=!0),!vo&&kr.includes(G.state.toLowerCase())&&(yo=Vr,_o=zr,vo=!0),fo&&vo)break}fo||("none"!==t.entities?.battery_status&&t.entities?.battery_status?(mo="transparent",po="Status"):(mo="transparent",po="")),vo||("none"!==t.entities?.battery2_status&&t.entities?.battery2_status?(yo="transparent",_o="Status"):(yo="transparent",_o=""))}const wo=e.toNum()+a.toNum(),bo=n.toNum()+o.toNum(),Ao=s.toNum()+wo,xo=i.toNum()+bo,Po=0!=xo?Math.max(Math.min(Math.round(100*Ao/xo),100),0):0,Eo=0!=Ao?Math.max(Math.min(Math.round(100*xo/Ao),100),0):0,Lo=xa+(!0===t.battery.invert_flow?Wa<0?Math.abs(Wa):0:Wa>0?Math.abs(Wa):0)+(me<0?Math.abs(me):0),No=Ta+Math.max(Ea,0)+(me>0?me:0)+(!0===t.battery.invert_flow?Wa>0?Math.abs(Wa):0:Wa<0?Math.abs(Wa):0),Co=0!=No?Math.max(Math.min(Math.round(100*Lo/No),100),0):0,To=0!=Lo?Math.max(Math.min(Math.round(100*No/Lo),100),0):0,Mo=(kn.toNum(t.max_line_width)<1?1:t.max_line_width)-1,Io=kn.toNum(t.min_line_width)||1,Oo=this.getEntity("battery.max_power",{state:t.battery.max_power?.toString()??""}).toNum(0),Bo=this.getEntity("solar.max_power",{state:t.solar.max_power?.toString()??""}),Do=this.getEntity("load.max_power",{state:t.load.max_power?.toString()??""}),ko=this.getEntity("grid.max_power",{state:t.grid.max_power?.toString()??""}),Vo=t.solar.max_power?this.dynamicLineWidth(ya,Bo.toNum()||ya,Mo,Io):Io,zo=t.solar.max_power?this.dynamicLineWidth(_a,Bo.toNum()||_a,Mo,Io):Io,Ro=t.solar.max_power?this.dynamicLineWidth(fa,Bo.toNum()||fa,Mo,Io):Io,jo=t.solar.max_power?this.dynamicLineWidth(va,Bo.toNum()||va,Mo,Io):Io,Go=t.solar.max_power?this.dynamicLineWidth(wa,Bo.toNum()||wa,Mo,Io):Io,Ho=t.solar.max_power?this.dynamicLineWidth(ba,Bo.toNum()||ba,Mo,Io):Io,Uo=t.battery.max_power?this.dynamicLineWidth(Math.abs(Wa),Oo||Math.abs(Wa),Mo,Io):Io,Wo=t.load.max_power?this.dynamicLineWidth(Math.abs(Ta),Do.toNum()||Math.abs(Ta),Mo,Io):Io,Zo=t.load.max_power?this.dynamicLineWidth(Math.abs(me),Do.toNum()||Math.abs(me),Mo,Io):Io,Qo=t.grid.max_power?this.dynamicLineWidth(Math.abs(we),ko.toNum()||Math.abs(we),Mo,Io):Io,Yo=t.grid.max_power?this.dynamicLineWidth(Math.abs(rn),ko.toNum()||Math.abs(rn),Mo,Io):Io,Fo=t.grid.max_power?this.dynamicLineWidth(Math.abs(Ea),ko.toNum()||Math.abs(Ea),Mo,Io):Io,Xo=t.solar.max_power?this.dynamicLineWidth(xa,Bo.toNum()||xa,Mo,Io):Io;if(t&&t.solar&&t.solar.animation_speed){const Rr=t.solar.animation_speed-(t.solar.animation_speed-1)*(xa/(Bo.toNum()||xa));this.changeAnimationSpeed("solar",Rr)}if(t&&t.solar&&t.solar.animation_speed){const jr=t.solar.animation_speed-(t.solar.animation_speed-1)*(ya/(Bo.toNum()||ya));this.changeAnimationSpeed("pv1",jr)}if(t&&t.solar&&t.solar.animation_speed){const Gr=t.solar.animation_speed-(t.solar.animation_speed-1)*(_a/(Bo.toNum()||_a));this.changeAnimationSpeed("pv2",Gr)}if(t&&t.solar&&t.solar.animation_speed){const Hr=t.solar.animation_speed-(t.solar.animation_speed-1)*(fa/(Bo.toNum()||fa));this.changeAnimationSpeed("pv3",Hr)}if(t&&t.solar&&t.solar.animation_speed){const Ur=t.solar.animation_speed-(t.solar.animation_speed-1)*(va/(Bo.toNum()||va));this.changeAnimationSpeed("pv4",Ur)}if(t&&t.solar&&t.solar.animation_speed){const Wr=t.solar.animation_speed-(t.solar.animation_speed-1)*(wa/(Bo.toNum()||wa));this.changeAnimationSpeed("pv5",Wr)}if(t&&t.solar&&t.solar.animation_speed){const Zr=t.solar.animation_speed-(t.solar.animation_speed-1)*(ba/(Bo.toNum()||ba));this.changeAnimationSpeed("pv6",Zr)}if(t&&t.battery&&t.battery.animation_speed){const Qr=t.battery.animation_speed-(t.battery.animation_speed-1)*(Math.abs(Wa)/(Oo||Math.abs(Wa)));this.changeAnimationSpeed("battery",Qr)}if(t&&t.load&&t.load.animation_speed){const Yr=t.load.animation_speed-(t.load.animation_speed-1)*(Math.abs(Ta)/(Do.toNum()||Math.abs(Ta)));this.changeAnimationSpeed("load",Yr),this.changeAnimationSpeed("load1",Yr)}if(t&&t.load&&t.load.animation_speed){const Fr=t.load.animation_speed-(t.load.animation_speed-1)*(Math.abs(me)/(Do.toNum()||Math.abs(me)));this.changeAnimationSpeed("aux",Fr),this.changeAnimationSpeed("aux1",Fr)}if(t&&t.grid&&t.grid.animation_speed){const Xr=t.grid.animation_speed-(t.grid.animation_speed-1)*(Math.abs(we)/(ko.toNum()||Math.abs(we)));this.changeAnimationSpeed("grid1",Xr),this.changeAnimationSpeed("grid",Xr),this.changeAnimationSpeed("grid2",Xr)}if(t&&t.grid&&t.grid.animation_speed){const Jr=t.grid.animation_speed-(t.grid.animation_speed-1)*(Math.abs(Ea)/(ko.toNum()||Math.abs(Ea)));this.changeAnimationSpeed("ne",Jr)}const Jo=0===xa?0:"off"!==ia&&ia?xa/(La?Ta+Math.max(me,0):Ta)*100:!0===t.battery.invert_flow?Wa<0?xa/(La?Ta+Math.max(me,0):Ta)*100:(xa-Math.abs(Wa))/(La?Ta+Math.max(me,0):Ta)*100:Wa>0?xa/(La?Ta+Math.max(me,0):Ta)*100:(xa-Math.abs(Wa))/(La?Ta+Math.max(me,0):Ta)*100,Ko=!0===t.battery.invert_flow?Wa>=0?0:Math.abs(Wa)/(La?Ta+Math.max(me,0):Ta)*100:Wa<=0?0:Math.abs(Wa)/(La?Ta+Math.max(me,0):Ta)*100,qo=Jo+Ko,$o=0===qo?0:Jo/qo*100,ti=0===qo?0:Ko/qo*100;let ei=0,ni=0,ai=0;qo>100?(ei=kn.toNum($o,0),ni=kn.toNum(ti,0)):(ei=kn.toNum(Math.min(Jo,100),0),ni=kn.toNum(Math.min(Ko,100),0),ai=we>0?100-(ei+ni):0);const oi=0===xa||(!0===t.battery.invert_flow?Wa<=0:Wa>=0)?0:"off"!==ia&&ia?(xa-Ta)/Math.abs(Wa)*100:xa/Math.abs(Wa)*100,ii=(!0===t.battery.invert_flow?ra<=0:ra>=0)||we<=0?0:"on"===ia?xa-Ta>=Math.abs(Wa)?0:(we-Math.max(Ta-xa,0))/Math.abs(Wa)*100:xa>=Math.abs(Wa)?0:(Math.abs(Wa)-xa)/Math.abs(Wa)*100,ri=oi+ii,si=0===ri?0:oi/ri*100,li=0===ri?0:ii/ri*100;let ui,hi,gi,mi,pi,yi=0,_i=0;switch(ri>100?(yi=kn.toNum(si,0),_i=kn.toNum(li,0)):(yi=kn.toNum(Math.min(oi,100),0),_i=kn.toNum(Math.min(ii,100),0)),!0){case yi>=kn.toNum(t.battery?.path_threshold,0):ui=kn.toHexColor(Pa);break;case _i>=kn.toNum(t.battery?.path_threshold,0):ui=kn.toHexColor(pn);break;default:ui=kn.toHexColor(ro)}switch(!0){case ei>=kn.toNum(t.load?.path_threshold,0):hi=kn.toHexColor(Pa);break;case ni>=kn.toNum(t.load?.path_threshold,0):hi=kn.toHexColor(ro);break;case ai>=kn.toNum(t.load?.path_threshold,0):hi=kn.toHexColor(pn);break;default:hi=kn.toHexColor(Ne)}switch(!0){case ei>=kn.toNum(t.load?.path_threshold,0):gi=kn.toHexColor(Pa);break;case ni>=kn.toNum(t.load?.path_threshold,0):gi=kn.toHexColor(ro);break;case ai>=kn.toNum(t.load?.path_threshold,0):case _i>=kn.toNum(t.battery?.path_threshold,0):gi=kn.toHexColor(pn);break;default:gi=kn.toHexColor(na)}switch(!0){case Jo>=100&&Ko<=5&&we-Ea<50&&t.load.dynamic_icon:mi=Vn.essPv,pi=1;break;case Ko>=100&&Jo<=5&&we-Ea<50&&t.load.dynamic_icon:mi=Vn.essBat,pi=0;break;case Jo<5&&Ko<5&&ai>0&&t.load.dynamic_icon:mi=Vn.essGrid,pi=0;break;default:mi=Vn.ess,pi=0}const{batteryIcon:fi,batteryCharge:vi,stopColour:wi,battery0:bi}=di.convert(E),{batteryIcon:Ai,batteryCharge:xi,stopColour:Pi,battery0:Ei}=di.convert(V),Li=this.getEntity("solar.pv1_max_power",{state:t.solar.pv1_max_power?.toString()??""}),Ni=this.getEntity("solar.pv2_max_power",{state:t.solar.pv2_max_power?.toString()??""}),Ci=this.getEntity("solar.pv3_max_power",{state:t.solar.pv3_max_power?.toString()??""}),Ti=this.getEntity("solar.pv4_max_power",{state:t.solar.pv4_max_power?.toString()??""}),Si=this.getEntity("solar.pv5_max_power",{state:t.solar.pv5_max_power?.toString()??""}),Mi=this.getEntity("solar.pv6_max_power",{state:t.solar.pv6_max_power?.toString()??""}),Ii=t.solar.max_power&&0!==t.solar.efficiency?kn.toNum(Math.min(xa/Bo.toNum()*100,200),0):100,Oi=t.solar.pv1_max_power&&0!==t.solar.efficiency?kn.toNum(Math.min(ya/Li.toNum()*100,200),0):100,Bi=t.solar.pv2_max_power&&0!==t.solar.efficiency?kn.toNum(Math.min(_a/Ni.toNum()*100,200),0):100,Di=t.solar.pv3_max_power&&0!==t.solar.efficiency?kn.toNum(Math.min(fa/Ci.toNum()*100,200),0):100,ki=t.solar.pv4_max_power&&0!==t.solar.efficiency?kn.toNum(Math.min(va/Ti.toNum()*100,200),0):100,Vi=t.solar.pv5_max_power&&0!==t.solar.efficiency?kn.toNum(Math.min(wa/Si.toNum()*100,200),0):100,zi=t.solar.pv6_max_power&&0!==t.solar.efficiency?kn.toNum(Math.min(ba/Mi.toNum()*100,200),0):100;let Ri,ji,Gi,Hi;switch(!0){case we<0&&Ft.includes(Ye.toLowerCase()):Ri=qn,ji=kn.toHexColor(pn);break;case we>=0&&Ft.includes(Ye.toLowerCase()):Ri=Jn,ji=kn.toHexColor(pn);break;case 0===we&&Yt.includes(Ye.toLowerCase()):Ri=Kn,ji=kn.toHexColor(vn);break;default:Ri=Jn,ji=kn.toHexColor(pn)}let Ui="-2",Wi="490";switch(!0){case!t.show_solar&&t.show_battery&&0===On:Gi="138",Hi="280";break;case!t.show_solar&&t.show_battery&&[1,2,3,4].includes(On):Gi="70",Hi="350";break;case t.show_solar&&!t.show_battery&&[2,3,4].includes(On):Gi="0",Hi="350";break;case t.show_solar&&!t.show_battery&&[0,1].includes(On):Gi="0",Hi="315";break;case!t.show_solar&&!t.show_battery&&0===On:Gi="115",Hi="225";break;case!t.show_solar&&!t.show_battery&&1===On:Gi="85",Hi="230";break;case!t.show_solar&&!t.show_battery&&[2,3,4].includes(On):Gi="65",Hi="285";break;default:Gi="0",Hi="408"}if(!t.show_grid&&t?.center_no_grid){let Kr=50,qr=460;if("compact"===t.cardstyle){const $r=kn.toNum(t.solar?.mppts,0);[Kr,qr]=$r>2?[50,460]:[70,460]}else"lite"===t.cardstyle&&([Kr,qr]=[50,460]);Ui=String(Kr),Wi=String(qr)}const Zi=kn.toNum(t.load?.off_threshold,0),Qi="transparent"===t.load?.off_colour;let Yi=kn.toHexColor(Ne),Fi=kn.toHexColor(Ne);const Xi={1:[at],2:[at],3:[at],4:[at,ot],5:[at,ot,st],6:[at,ot,st]},Ji={2:[ot],3:[ot,it],4:[it,rt],5:[it,rt],6:[it,rt,lt]},Ki={1:[at],2:[at,ot],4:[at,ot],5:[at,ot,st],6:[at,ot,st]},qi={4:[it,rt],5:[it,rt],6:[it,rt,lt]},$i=(t,e)=>((...t)=>t.every(t=>t.toPower(!1)<=Zi))(...t)?"transparent":e;Qi&&(this.isLiteCard||this.isCompactCard)&&(Yi=$i(Xi[On]||[],Yi),Fi=$i(Ji[On]||[],Fi)),Qi&&this.isFullCard&&(Yi=$i(Ki[On]||[],Yi),Fi=$i(qi[On]||[],Fi));const tr=Ye.toLowerCase();let er=za,nr=ja;switch(!0){case["on","1","on-grid"].includes(tr):er=za,nr=ja;break;case["off","0","off-grid"].includes(tr):er=O.notEmpty()?Va:za,nr=Z.notEmpty()?Ra:ja}const ar={timestamp_id:(new Date).getTime(),config:t,compactMode:pa,viewBoxYLite:Gi,viewBoxHeightLite:Hi,viewBoxXLite:Ui,viewBoxWidthLite:Wi,cardHeight:la,cardWidth:ca,loadColour:Ne,load1Colour:Yi,load2Colour:Fi,batteryColour:ro,battery2Colour:so,gridColour:pn,isFloating:ao,isFloating2:oo,isFloatingCombined:io,inverterColour:na,solarColour:Pa,auxOffColour:Te,batteryEnergy:to,battery2Energy:eo,batteryTotalEnergy:no,largeFont:ea,batteryPower:ra,battery2Power:sa,batteryPowerTotal:Wa,batteryDuration:Ja,batteryDuration2:Ka,batteryCapacity:Za,battery2Capacity:Qa,additionalLoad:On,essIconSize:pi,essIcon:mi,stateUseTimer:y,batteryStateMsg:po,battery2StateMsg:_o,stateBatterySoc:E,stateBattery2Soc:V,inverterProg:Ga,solarShowDaily:Sn,batteryPercentage:ni,pvPercentage:ei,loadShowDaily:Ze,stateEnergyCostSell:It,stateEnergyCostBuy:Mt,loadPowerL1:ln,loadPowerL2:cn,loadPowerL3:dn,durationCur:this.durationCur,stateEssentialLoad1:at,stateEssentialLoad2:ot,stateEssentialLoad3:it,stateEssentialLoad4:rt,stateEssentialLoad5:st,stateEssentialLoad6:lt,gridPower:ye,gridPowerL2:_e,gridPowerL3:fe,decimalPlaces:Ee,decimalPlacesEnergy:Le,stateEssentialLoad1Extra:ht,stateEssentialLoad2Extra:gt,stateEssentialLoad3Extra:mt,stateEssentialLoad4Extra:pt,stateEssentialLoad5Extra:yt,stateEssentialLoad6Extra:_t,stateNonEssentialLoad1Extra:tt,stateNonEssentialLoad2Extra:et,stateNonEssentialLoad3Extra:nt,loadFrequency:Xe,gridShowDailyBuy:bn,gridShowDailySell:xn,batteryShowDaily:Tn,inverterModel:ha,batteryShutdown:za,batteryShutdown2:ja,enableAutarky:aa,autarkyPower:Co,ratioPower:To,ratioEnergy:Eo,autarkyEnergy:Po,shutdownOffGrid2:Ra,shutdownOffGrid:Va,batteryOneShutdown:er,batteryTwoShutdown:nr,statePV1Current:Vt,statePV2Current:jt,statePV3Current:Xt,statePV4Current:Kt,statePV5Current:$t,statePV6Current:ne,energyCost:ua,inverterCurrent:$e,inverterCurrentL2:tn,inverterCurrentL3:en,stateRadiatorTemp:f,inverterVoltage:Je,inverterVoltageL2:Ke,inverterVoltageL3:qe,batteryVoltage:nn,battery2Voltage:an,stateBatteryCurrent:N,stateBattery2Current:R,batLineWidth:Uo,totalGridPower:we,solarLineWidth:Xo,totalPV:xa,loadLineWidth:Wo,pvPercentageBat:yi,gridPercentageBat:_i,genericInverterImage:Pe,battery0:bi,battery20:Ei,essentialPower:Ta,pv1LineWidth:Vo,pv2LineWidth:zo,pv3LineWidth:Ro,pv4LineWidth:jo,pv5LineWidth:Go,pv6LineWidth:Ho,gridLineWidth:Qo,pv1PowerWatts:ya,pv2PowerWatts:_a,pv3PowerWatts:fa,pv4PowerWatts:va,pv5PowerWatts:wa,pv6PowerWatts:ba,stateEnvironmentTemp:x,statePV1Voltage:kt,statePV2Voltage:Rt,statePV3Voltage:Gt,statePV4Voltage:Jt,statePV5Voltage:qt,statePV6Voltage:te,batteryStateColour:mo,battery2StateColour:yo,inverterStateColour:lo,stateBatteryTemp:C,stateBattery2Temp:j,statePrepaidUnits:Bt,stateDCTransformerTemp:_,iconEssentialLoad1:zn,iconEssentialLoad2:Rn,iconEssentialLoad3:jn,iconEssentialLoad4:Gn,iconEssentialLoad5:Hn,iconEssentialLoad6:Un,enableTimer:oa,stateSolarSell:de,priorityLoad:ia,inverterImg:ga,stateDayPVEnergy:s,remainingSolar:$n,totalSolarGeneration:ta,stateDayLoadEnergy:i,stateDayBatteryDischarge:e,stateDayGridImport:r,stateDayBatteryCharge:n,stateDayGridExport:l,statePVTotal:ue,statePV1Power:ae,statePV2Power:oe,statePV3Power:ie,statePV4Power:re,statePV5Power:se,statePV6Power:le,minLineWidth:Io,stopColour:wi,stop2Colour:Pi,gridStatus:Ye,batteryCharge:vi,battery2Charge:xi,gridOffColour:vn,batteryIcon:fi,battery2Icon:Ai,formattedResultTime:Ya,formattedResultTime2:Fa,showAux:Mn,nonessentialIcon:Qn,showNonessential:Qe,auxStatus:Fe,nonessentialLoads:wn,additionalAuxLoad:Bn,stateAuxLoad1Extra:bt,stateAuxLoad2Extra:At,iconNonessentialLoad1:Yn,iconNonessentialLoad2:Fn,iconNonessentialLoad3:Xn,inverterStateMsg:co,auxType:Dn,showDailyAux:In,nonessentialPower:Ea,auxPower:me,nonessLineWidth:Fo,grid169LineWidth:Yo,auxLineWidth:Zo,iconAuxLoad1:Wn,iconAuxLoad2:Zn,stateDayAuxEnergy:c,stateAuxLoad1:dt,stateAuxLoad2:ut,stateNonessentialLoad1:K,stateNonessentialLoad2:q,stateNonessentialLoad3:$,autoScaledInverterPower:on,autoScaledGridPower:rn,auxDynamicColour:Ce,auxDynamicColourLoad1:Se,auxDynamicColourLoad2:Me,stateMaxSellPower:Dt,totalPVEfficiency:Ii,PV1Efficiency:Oi,PV2Efficiency:Bi,PV3Efficiency:Di,PV4Efficiency:ki,PV5Efficiency:Vi,PV6Efficiency:zi,gridPercentage:ai,flowColour:hi,flowBatColour:ui,flowInvColour:gi,dynamicColourEssentialLoad1:Re,dynamicColourEssentialLoad2:je,dynamicColourEssentialLoad3:Ge,dynamicColourEssentialLoad4:He,dynamicColourEssentialLoad5:Ue,dynamicColourEssentialLoad6:We,dynamicColourNonEssentialLoad1:yn,dynamicColourNonEssentialLoad2:_n,dynamicColourNonEssentialLoad3:fn,stateBatterySOH:B,stateBattery2SOH:Q,customGridIcon:Ri,customGridIconColour:ji,maximumSOC:Ha,batteryCount:ka};let or,ir=null;return this.isFullCard?(or="full",ir=Xa(t,ga,ar)):(this.isLiteCard||this.isCompactCard)&&(or="compact",ir=So(t,ga,ar)),ir&&or?Lt(Nt(or,ir)):ir??null}getEntity(t,e={state:"0",attributes:{unit_of_measurement:""}},n=0,a="NA"){const o="".concat(String(t),"|").concat(n,"|").concat(String(a)),i=this._entityCache.get(o);if(i)return i;let r;const s=String(t).split(".");if(s.length>1){const t=s[0],e=s[1],n=this._config[t],a=n?n[e]:void 0;r="string"==typeof a?a:void 0}else if(s.length>0){const t=s[0],e=this._config[t];r="string"==typeof e?e:void 0}r&&"none"!==r&&this._trackedEntityIds.add(r);const l=r?this.hass.states[r]:void 0;r&&this._trackedEntityIds.add(r);const c=ui(void 0!==l?l:e||{state:void 0},a,n);return r&&void 0!==l&&this._lastEntityStates.set(r,String(l.state??"")),this._entityCache.set(o,c),c}changeAnimationSpeed(t,e){const n=e>=1?kn.toNum(e,3):1;this.durationCur[t]=n;(this.durationPrev[t]??1)!==n?this._isVisible?(this._pendingSpeedUpdates.set(t,n),null==this._speedRafId&&(this._speedRafId=requestAnimationFrame(()=>{this._flushAnimationSpeedUpdates()}))):this.durationPrev[t]=this.durationCur[t]:this._pendingSpeedUpdates.delete(t)}_flushAnimationSpeedUpdates(){if(this._speedRafId=null,this._isVisible&&0!==this._pendingSpeedUpdates.size){for(const[t,e]of this._pendingSpeedUpdates){const n=this["".concat(t,"Flow")],a=this.durationPrev[t]??1;if(n&&a!==e)try{n.setCurrentTime(n.getCurrentTime()*(e/a))}catch{}this.durationPrev[t]=this.durationCur[t]}this._pendingSpeedUpdates.clear()}else this._pendingSpeedUpdates.clear()}get isCompactCard(){return this._config.cardstyle==Rt.Compact}get isLiteCard(){return this._config.cardstyle==Rt.Lite}get isFullCard(){return this._config.cardstyle==Rt.Full}colourConvert(t){const e=Array.isArray(t)?"arr:".concat(t):"str:".concat(t),n=this._colorCache.get(e);if(n)return n;let a;return a=t&&Array.isArray(t)?kn.toHexColor("rgb(".concat(t,")")):kn.toHexColor(t),this._colorCache.set(e,a),a}dynamicLineWidth(t,e,n,a=1){const o="".concat(t,"|").concat(e,"|").concat(n,"|").concat(a,"|").concat(this._config.dynamic_line_width?1:0),i=this._lineWidthCache.get(o);if(void 0!==i)return i;let r;return r=this._config.dynamic_line_width?Math.min(a+Math.min(t/Math.max(e,1),1)*n,8):Math.min(a,8),this._lineWidthCache.set(o,r),r}calculateAuxLoadColour(t,e){return this._config.load.aux_dynamic_colour?Math.abs(t)>e?this.colourConvert(this._config.load?.aux_colour):"grey":this.colourConvert(this._config.load?.aux_colour)}calculateEssentialLoadColour(t,e,n){return this._config.load.dynamic_colour?Math.abs(t)>n?this.colourConvert(this._config.load?.max_colour):Math.abs(t)>e?this.colourConvert(this._config.load?.colour):this.colourConvert(this._config.load?.off_colour)||"grey":this.colourConvert(this._config.load?.colour)}setConfig(t){if(t.show_battery&&!t.battery)throw Error(Ln("errors.battery.bat"));if(t.show_battery&&!t.battery.shutdown_soc)throw new Error(Ln("errors.battery.shutdown_soc"));if(t.show_battery&&t.battery.show_daily&&(!t.entities.day_battery_charge_70||!t.entities.day_battery_discharge_71))throw Error(Ln("errors.battery.show_daily"));if(t.show_solar&&!t.solar)throw Error(Ln("errors.solar.sol"));if(t.show_solar&&!t.solar.mppts)throw Error(Ln("errors.solar.mppts"));if(t&&t.solar&&t.show_solar&&t.solar.show_daily&&!t.entities.day_pv_energy_108)throw Error(Ln("errors.solar.show_daily"));if(t&&t.grid&&t.grid.show_daily_buy&&!t.entities.day_grid_import_76||t&&t.grid&&t.grid.show_daily_sell&&!t.entities.day_grid_export_77)throw Error(Ln("errors.grid.show_daily"));if(t&&t.entities&&"none"===t.entities.essential_power&&!t.entities.inverter_power_175||t&&t.entities&&"none"===t.entities.essential_power&&"none"===t.entities.inverter_power_175)throw Error(Ln("errors.essential_power"));if(t&&t.entities&&"none"===t.entities.nonessential_power&&!t.entities.grid_power_169)throw Error(Ln("errors.nonessential_power"));const e=["battery_soc_184","battery_power_190","battery_current_191","grid_ct_power_172","pv1_power_186"];for(const n of e)if("pv1_power_186"===n&&t.show_solar&&!t.entities[n]&&!t.entities[n])throw new Error("".concat(Ln("errors.missing_entity")," e.g: ").concat(n,": sensor.example"));const n=t;this._config=Bn({},Gt,n);const a=this._config,o=this.colourConvert(a.grid?.colour),i=this.colourConvert(a.grid?.export_colour||o),r=this.colourConvert(a.grid?.no_grid_colour||o),s=kn.toNum(a.grid?.off_threshold,0),l=!!a.load?.invert_load;this._computed={grid:{importColour:o,exportColour:i,noGridColour:r,offThreshold:s},load:{invertLoad:l}},this._lastTheme=this.getCurrentThemeName(),this._lastEntityStates.clear(),this._trackedEntityIds.clear(),this._entityCache.clear(),this._colorCache.clear(),this.requestUpdate()}getCardSize(){return 2}};t([Mt({attribute:!1})],fi.prototype,"hass",null),t([Mt()],fi.prototype,"_config",void 0),t([It("#grid-flow")],fi.prototype,"gridFlow",void 0),t([It("#grid1-flow")],fi.prototype,"grid1Flow",void 0),t([It("#solar-flow")],fi.prototype,"solarFlow",void 0),t([It("#pv1-flow")],fi.prototype,"pv1Flow",void 0),t([It("#pv2-flow")],fi.prototype,"pv2Flow",void 0),t([It("#pv3-flow")],fi.prototype,"pv3Flow",void 0),t([It("#pv4-flow")],fi.prototype,"pv4Flow",void 0),t([It("#pv5-flow")],fi.prototype,"pv5Flow",void 0),t([It("#pv6-flow")],fi.prototype,"pv6Flow",void 0),t([It("#battery-flow")],fi.prototype,"batteryFlow",void 0),t([It("#load-flow")],fi.prototype,"loadFlow",void 0),t([It("#aux-flow")],fi.prototype,"auxFlow",void 0),t([It("#ne-flow")],fi.prototype,"neFlow",void 0),t([It("#ne1-flow")],fi.prototype,"ne1Flow",void 0),fi=t([Ct("sunsynk-power-flow-card")],fi),window.customCards.push({type:"sunsynk-power-flow-card",name:"Sunsynk Power Flow Card",preview:!0,description:Ln("common.description"),configurable:!0});var vi,wi={exports:{}};
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */var bi,Ai,xi,Pi,Ei,Li,Ni=(vi||(vi=1,bi=wi,Ai=wi.exports,function(){var t,e="Expected a function",n="__lodash_hash_undefined__",a="__lodash_placeholder__",o=32,i=128,r=256,s=1/0,l=9007199254740991,c=NaN,d=4294967295,u=[["ary",i],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",r]],h="[object Arguments]",g="[object Array]",m="[object Boolean]",p="[object Date]",y="[object Error]",_="[object Function]",f="[object GeneratorFunction]",v="[object Map]",w="[object Number]",b="[object Object]",A="[object Promise]",x="[object RegExp]",P="[object Set]",E="[object String]",L="[object Symbol]",N="[object WeakMap]",C="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",M="[object Float64Array]",I="[object Int8Array]",O="[object Int16Array]",B="[object Int32Array]",D="[object Uint8Array]",k="[object Uint8ClampedArray]",V="[object Uint16Array]",z="[object Uint32Array]",R=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,W=RegExp(H.source),Z=RegExp(U.source),Q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,F=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,$=RegExp(q.source),tt=/^\s+/,et=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,it=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rt=/[()=,{}\[\]\/\s]/,st=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ct=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ut=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,pt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,ft="\\ud800-\\udfff",vt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",wt="\\u2700-\\u27bf",bt="a-z\\xdf-\\xf6\\xf8-\\xff",At="A-Z\\xc0-\\xd6\\xd8-\\xde",xt="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Et="['’]",Lt="["+ft+"]",Nt="["+Pt+"]",Ct="["+vt+"]",Tt="\\d+",St="["+wt+"]",Mt="["+bt+"]",It="[^"+ft+Pt+Tt+wt+bt+At+"]",Ot="\\ud83c[\\udffb-\\udfff]",Bt="[^"+ft+"]",Dt="(?:\\ud83c[\\udde6-\\uddff]){2}",kt="[\\ud800-\\udbff][\\udc00-\\udfff]",Vt="["+At+"]",zt="\\u200d",Rt="(?:"+Mt+"|"+It+")",jt="(?:"+Vt+"|"+It+")",Gt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ut="(?:"+Ct+"|"+Ot+")?",Wt="["+xt+"]?",Zt=Wt+Ut+"(?:"+zt+"(?:"+[Bt,Dt,kt].join("|")+")"+Wt+Ut+")*",Qt="(?:"+[St,Dt,kt].join("|")+")"+Zt,Yt="(?:"+[Bt+Ct+"?",Ct,Dt,kt,Lt].join("|")+")",Ft=RegExp(Et,"g"),Xt=RegExp(Ct,"g"),Jt=RegExp(Ot+"(?="+Ot+")|"+Yt+Zt,"g"),Kt=RegExp([Vt+"?"+Mt+"+"+Gt+"(?="+[Nt,Vt,"$"].join("|")+")",jt+"+"+Ht+"(?="+[Nt,Vt+Rt,"$"].join("|")+")",Vt+"?"+Rt+"+"+Gt,Vt+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tt,Qt].join("|"),"g"),qt=RegExp("["+zt+ft+vt+xt+"]"),$t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,te=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ee=-1,ne={};ne[S]=ne[M]=ne[I]=ne[O]=ne[B]=ne[D]=ne[k]=ne[V]=ne[z]=!0,ne[h]=ne[g]=ne[C]=ne[m]=ne[T]=ne[p]=ne[y]=ne[_]=ne[v]=ne[w]=ne[b]=ne[x]=ne[P]=ne[E]=ne[N]=!1;var ae={};ae[h]=ae[g]=ae[C]=ae[T]=ae[m]=ae[p]=ae[S]=ae[M]=ae[I]=ae[O]=ae[B]=ae[v]=ae[w]=ae[b]=ae[x]=ae[P]=ae[E]=ae[L]=ae[D]=ae[k]=ae[V]=ae[z]=!0,ae[y]=ae[_]=ae[N]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ie=parseFloat,re=parseInt,se="object"==typeof Nn&&Nn&&Nn.Object===Object&&Nn,le="object"==typeof self&&self&&self.Object===Object&&self,ce=se||le||Function("return this")(),de=Ai&&!Ai.nodeType&&Ai,ue=de&&bi&&!bi.nodeType&&bi,he=ue&&ue.exports===de,ge=he&&se.process,me=function(){try{var t=ue&&ue.require&&ue.require("util").types;return t||ge&&ge.binding&&ge.binding("util")}catch(t){}}(),pe=me&&me.isArrayBuffer,ye=me&&me.isDate,_e=me&&me.isMap,fe=me&&me.isRegExp,ve=me&&me.isSet,we=me&&me.isTypedArray;function be(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ae(t,e,n,a){for(var o=-1,i=null==t?0:t.length;++o<i;){var r=t[o];e(a,r,n(r),t)}return a}function xe(t,e){for(var n=-1,a=null==t?0:t.length;++n<a&&!1!==e(t[n],n,t););return t}function Pe(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ee(t,e){for(var n=-1,a=null==t?0:t.length;++n<a;)if(!e(t[n],n,t))return!1;return!0}function Le(t,e){for(var n=-1,a=null==t?0:t.length,o=0,i=[];++n<a;){var r=t[n];e(r,n,t)&&(i[o++]=r)}return i}function Ne(t,e){return!(null==t||!t.length)&&Ve(t,e,0)>-1}function Ce(t,e,n){for(var a=-1,o=null==t?0:t.length;++a<o;)if(n(e,t[a]))return!0;return!1}function Te(t,e){for(var n=-1,a=null==t?0:t.length,o=Array(a);++n<a;)o[n]=e(t[n],n,t);return o}function Se(t,e){for(var n=-1,a=e.length,o=t.length;++n<a;)t[o+n]=e[n];return t}function Me(t,e,n,a){var o=-1,i=null==t?0:t.length;for(a&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function Ie(t,e,n,a){var o=null==t?0:t.length;for(a&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function Oe(t,e){for(var n=-1,a=null==t?0:t.length;++n<a;)if(e(t[n],n,t))return!0;return!1}var Be=Ge("length");function De(t,e,n){var a;return n(t,function(t,n,o){if(e(t,n,o))return a=n,!1}),a}function ke(t,e,n,a){for(var o=t.length,i=n+(a?1:-1);a?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Ve(t,e,n){return e==e?function(t,e,n){for(var a=n-1,o=t.length;++a<o;)if(t[a]===e)return a;return-1}(t,e,n):ke(t,Re,n)}function ze(t,e,n,a){for(var o=n-1,i=t.length;++o<i;)if(a(t[o],e))return o;return-1}function Re(t){return t!=t}function je(t,e){var n=null==t?0:t.length;return n?We(t,e)/n:c}function Ge(e){return function(n){return null==n?t:n[e]}}function He(e){return function(n){return null==e?t:e[n]}}function Ue(t,e,n,a,o){return o(t,function(t,o,i){n=a?(a=!1,t):e(n,t,o,i)}),n}function We(e,n){for(var a,o=-1,i=e.length;++o<i;){var r=n(e[o]);r!==t&&(a=a===t?r:a+r)}return a}function Ze(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}function Qe(t){return t?t.slice(0,dn(t)+1).replace(tt,""):t}function Ye(t){return function(e){return t(e)}}function Fe(t,e){return Te(e,function(e){return t[e]})}function Xe(t,e){return t.has(e)}function Je(t,e){for(var n=-1,a=t.length;++n<a&&Ve(e,t[n],0)>-1;);return n}function Ke(t,e){for(var n=t.length;n--&&Ve(e,t[n],0)>-1;);return n}var qe=He({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),$e=He({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function tn(t){return"\\"+oe[t]}function en(t){return qt.test(t)}function nn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,a){n[++e]=[a,t]}),n}function an(t,e){return function(n){return t(e(n))}}function on(t,e){for(var n=-1,o=t.length,i=0,r=[];++n<o;){var s=t[n];s!==e&&s!==a||(t[n]=a,r[i++]=n)}return r}function rn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function sn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function ln(t){return en(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):Be(t)}function cn(t){return en(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function dn(t){for(var e=t.length;e--&&et.test(t.charAt(e)););return e}var un=He({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function et(ft){var vt,wt=(ft=null==ft?ce:hn.defaults(ce.Object(),ft,hn.pick(ce,te))).Array,bt=ft.Date,At=ft.Error,xt=ft.Function,Pt=ft.Math,Et=ft.Object,Lt=ft.RegExp,Nt=ft.String,Ct=ft.TypeError,Tt=wt.prototype,St=xt.prototype,Mt=Et.prototype,It=ft["__core-js_shared__"],Ot=St.toString,Bt=Mt.hasOwnProperty,Dt=0,kt=(vt=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||""))?"Symbol(src)_1."+vt:"",Vt=Mt.toString,zt=Ot.call(Et),Rt=ce._,jt=Lt("^"+Ot.call(Bt).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gt=he?ft.Buffer:t,Ht=ft.Symbol,Ut=ft.Uint8Array,Wt=Gt?Gt.allocUnsafe:t,Zt=an(Et.getPrototypeOf,Et),Qt=Et.create,Yt=Mt.propertyIsEnumerable,Jt=Tt.splice,qt=Ht?Ht.isConcatSpreadable:t,oe=Ht?Ht.iterator:t,se=Ht?Ht.toStringTag:t,le=function(){try{var t=ui(Et,"defineProperty");return t({},"",{}),t}catch(t){}}(),de=ft.clearTimeout!==ce.clearTimeout&&ft.clearTimeout,ue=bt&&bt.now!==ce.Date.now&&bt.now,ge=ft.setTimeout!==ce.setTimeout&&ft.setTimeout,me=Pt.ceil,Be=Pt.floor,He=Et.getOwnPropertySymbols,gn=Gt?Gt.isBuffer:t,mn=ft.isFinite,pn=Tt.join,yn=an(Et.keys,Et),_n=Pt.max,fn=Pt.min,vn=bt.now,wn=ft.parseInt,bn=Pt.random,An=Tt.reverse,xn=ui(ft,"DataView"),Pn=ui(ft,"Map"),En=ui(ft,"Promise"),Ln=ui(ft,"Set"),Nn=ui(ft,"WeakMap"),Cn=ui(Et,"create"),Tn=Nn&&new Nn,Sn={},Mn=Vi(xn),In=Vi(Pn),On=Vi(En),Bn=Vi(Ln),Dn=Vi(Nn),kn=Ht?Ht.prototype:t,Vn=kn?kn.valueOf:t,zn=kn?kn.toString:t;function Rn(t){if(ts(t)&&!Ur(t)&&!(t instanceof Un)){if(t instanceof Hn)return t;if(Bt.call(t,"__wrapped__"))return zi(t)}return new Hn(t)}var jn=function(){function e(){}return function(n){if(!$r(n))return{};if(Qt)return Qt(n);e.prototype=n;var a=new e;return e.prototype=t,a}}();function Gn(){}function Hn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function Un(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Wn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}function Zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}function Qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qn;++e<n;)this.add(t[e])}function Fn(t){var e=this.__data__=new Zn(t);this.size=e.size}function Xn(t,e){var n=Ur(t),a=!n&&Hr(t),o=!n&&!a&&Yr(t),i=!n&&!a&&!o&&ls(t),r=n||a||o||i,s=r?Ze(t.length,Nt):[],l=s.length;for(var c in t)!e&&!Bt.call(t,c)||r&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||fi(c,l))||s.push(c);return s}function Jn(e){var n=e.length;return n?e[Ya(0,n-1)]:t}function Kn(t,e){return Bi(To(t),ra(e,0,t.length))}function qn(t){return Bi(To(t))}function $n(e,n,a){(a!==t&&!Rr(e[n],a)||a===t&&!(n in e))&&oa(e,n,a)}function ta(e,n,a){var o=e[n];Bt.call(e,n)&&Rr(o,a)&&(a!==t||n in e)||oa(e,n,a)}function ea(t,e){for(var n=t.length;n--;)if(Rr(t[n][0],e))return n;return-1}function na(t,e,n,a){return ua(t,function(t,o,i){e(a,t,n(t),i)}),a}function aa(t,e){return t&&So(e,Ss(e),t)}function oa(t,e,n){"__proto__"==e&&le?le(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ia(e,n){for(var a=-1,o=n.length,i=wt(o),r=null==e;++a<o;)i[a]=r?t:Es(e,n[a]);return i}function ra(e,n,a){return e==e&&(a!==t&&(e=e<=a?e:a),n!==t&&(e=e>=n?e:n)),e}function sa(e,n,a,o,i,r){var s,l=1&n,c=2&n,d=4&n;if(a&&(s=i?a(e,o,i,r):a(e)),s!==t)return s;if(!$r(e))return e;var u=Ur(e);if(u){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Bt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!l)return To(e,s)}else{var g=mi(e),y=g==_||g==f;if(Yr(e))return xo(e,l);if(g==b||g==h||y&&!i){if(s=c||y?{}:yi(e),!l)return c?function(t,e){return So(t,gi(t),e)}(e,function(t,e){return t&&So(e,Ms(e),t)}(s,e)):function(t,e){return So(t,hi(t),e)}(e,aa(s,e))}else{if(!ae[g])return i?e:{};s=function(t,e,n){var a,o=t.constructor;switch(e){case C:return Po(t);case m:case p:return new o(+t);case T:return function(t,e){var n=e?Po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case S:case M:case I:case O:case B:case D:case k:case V:case z:return Eo(t,n);case v:return new o;case w:case E:return new o(t);case x:return function(t){var e=new t.constructor(t.source,ct.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new o;case L:return a=t,Vn?Et(Vn.call(a)):{}}}(e,g,l)}}r||(r=new Fn);var A=r.get(e);if(A)return A;r.set(e,s),is(e)?e.forEach(function(t){s.add(sa(t,n,a,t,e,r))}):es(e)&&e.forEach(function(t,o){s.set(o,sa(t,n,a,o,e,r))});var N=u?t:(d?c?oi:ai:c?Ms:Ss)(e);return xe(N||e,function(t,o){N&&(t=e[o=t]),ta(s,o,sa(t,n,a,o,e,r))}),s}function la(e,n,a){var o=a.length;if(null==e)return!o;for(e=Et(e);o--;){var i=a[o],r=n[i],s=e[i];if(s===t&&!(i in e)||!r(s))return!1}return!0}function ca(n,a,o){if("function"!=typeof n)throw new Ct(e);return Si(function(){n.apply(t,o)},a)}function da(t,e,n,a){var o=-1,i=Ne,r=!0,s=t.length,l=[],c=e.length;if(!s)return l;n&&(e=Te(e,Ye(n))),a?(i=Ce,r=!1):e.length>=200&&(i=Xe,r=!1,e=new Yn(e));t:for(;++o<s;){var d=t[o],u=null==n?d:n(d);if(d=a||0!==d?d:0,r&&u==u){for(var h=c;h--;)if(e[h]===u)continue t;l.push(d)}else i(e,u,a)||l.push(d)}return l}Rn.templateSettings={escape:Q,evaluate:Y,interpolate:F,variable:"",imports:{_:Rn}},Rn.prototype=Gn.prototype,Rn.prototype.constructor=Rn,Hn.prototype=jn(Gn.prototype),Hn.prototype.constructor=Hn,Un.prototype=jn(Gn.prototype),Un.prototype.constructor=Un,Wn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Wn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Wn.prototype.get=function(e){var a=this.__data__;if(Cn){var o=a[e];return o===n?t:o}return Bt.call(a,e)?a[e]:t},Wn.prototype.has=function(e){var n=this.__data__;return Cn?n[e]!==t:Bt.call(n,e)},Wn.prototype.set=function(e,a){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Cn&&a===t?n:a,this},Zn.prototype.clear=function(){this.__data__=[],this.size=0},Zn.prototype.delete=function(t){var e=this.__data__,n=ea(e,t);return!(n<0||(n==e.length-1?e.pop():Jt.call(e,n,1),--this.size,0))},Zn.prototype.get=function(e){var n=this.__data__,a=ea(n,e);return a<0?t:n[a][1]},Zn.prototype.has=function(t){return ea(this.__data__,t)>-1},Zn.prototype.set=function(t,e){var n=this.__data__,a=ea(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Pn||Zn),string:new Wn}},Qn.prototype.delete=function(t){var e=ci(this,t).delete(t);return this.size-=e?1:0,e},Qn.prototype.get=function(t){return ci(this,t).get(t)},Qn.prototype.has=function(t){return ci(this,t).has(t)},Qn.prototype.set=function(t,e){var n=ci(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this},Yn.prototype.add=Yn.prototype.push=function(t){return this.__data__.set(t,n),this},Yn.prototype.has=function(t){return this.__data__.has(t)},Fn.prototype.clear=function(){this.__data__=new Zn,this.size=0},Fn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Fn.prototype.get=function(t){return this.__data__.get(t)},Fn.prototype.has=function(t){return this.__data__.has(t)},Fn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Zn){var a=n.__data__;if(!Pn||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qn(a)}return n.set(t,e),this.size=n.size,this};var ua=Oo(va),ha=Oo(wa,!0);function ga(t,e){var n=!0;return ua(t,function(t,a,o){return n=!!e(t,a,o)}),n}function ma(e,n,a){for(var o=-1,i=e.length;++o<i;){var r=e[o],s=n(r);if(null!=s&&(l===t?s==s&&!ss(s):a(s,l)))var l=s,c=r}return c}function pa(t,e){var n=[];return ua(t,function(t,a,o){e(t,a,o)&&n.push(t)}),n}function ya(t,e,n,a,o){var i=-1,r=t.length;for(n||(n=_i),o||(o=[]);++i<r;){var s=t[i];e>0&&n(s)?e>1?ya(s,e-1,n,a,o):Se(o,s):a||(o[o.length]=s)}return o}var _a=Bo(),fa=Bo(!0);function va(t,e){return t&&_a(t,e,Ss)}function wa(t,e){return t&&fa(t,e,Ss)}function ba(t,e){return Le(e,function(e){return Jr(t[e])})}function Aa(e,n){for(var a=0,o=(n=vo(n,e)).length;null!=e&&a<o;)e=e[ki(n[a++])];return a&&a==o?e:t}function xa(t,e,n){var a=e(t);return Ur(t)?a:Se(a,n(t))}function Pa(e){return null==e?e===t?"[object Undefined]":"[object Null]":se&&se in Et(e)?function(e){var n=Bt.call(e,se),a=e[se];try{e[se]=t;var o=!0}catch(t){}var i=Vt.call(e);return o&&(n?e[se]=a:delete e[se]),i}(e):function(t){return Vt.call(t)}(e)}function Ea(t,e){return t>e}function La(t,e){return null!=t&&Bt.call(t,e)}function Na(t,e){return null!=t&&e in Et(t)}function Ca(e,n,a){for(var o=a?Ce:Ne,i=e[0].length,r=e.length,s=r,l=wt(r),c=1/0,d=[];s--;){var u=e[s];s&&n&&(u=Te(u,Ye(n))),c=fn(u.length,c),l[s]=!a&&(n||i>=120&&u.length>=120)?new Yn(s&&u):t}u=e[0];var h=-1,g=l[0];t:for(;++h<i&&d.length<c;){var m=u[h],p=n?n(m):m;if(m=a||0!==m?m:0,!(g?Xe(g,p):o(d,p,a))){for(s=r;--s;){var y=l[s];if(!(y?Xe(y,p):o(e[s],p,a)))continue t}g&&g.push(p),d.push(m)}}return d}function Ta(e,n,a){var o=null==(e=Ni(e,n=vo(n,e)))?e:e[ki(Xi(n))];return null==o?t:be(o,e,a)}function Sa(t){return ts(t)&&Pa(t)==h}function Ma(e,n,a,o,i){return e===n||(null==e||null==n||!ts(e)&&!ts(n)?e!=e&&n!=n:function(e,n,a,o,i,r){var s=Ur(e),l=Ur(n),c=s?g:mi(e),d=l?g:mi(n),u=(c=c==h?b:c)==b,_=(d=d==h?b:d)==b,f=c==d;if(f&&Yr(e)){if(!Yr(n))return!1;s=!0,u=!1}if(f&&!u)return r||(r=new Fn),s||ls(e)?ei(e,n,a,o,i,r):function(t,e,n,a,o,i,r){switch(n){case T:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case C:return!(t.byteLength!=e.byteLength||!i(new Ut(t),new Ut(e)));case m:case p:case w:return Rr(+t,+e);case y:return t.name==e.name&&t.message==e.message;case x:case E:return t==e+"";case v:var s=nn;case P:var l=1&a;if(s||(s=rn),t.size!=e.size&&!l)return!1;var c=r.get(t);if(c)return c==e;a|=2,r.set(t,e);var d=ei(s(t),s(e),a,o,i,r);return r.delete(t),d;case L:if(Vn)return Vn.call(t)==Vn.call(e)}return!1}(e,n,c,a,o,i,r);if(!(1&a)){var A=u&&Bt.call(e,"__wrapped__"),N=_&&Bt.call(n,"__wrapped__");if(A||N){var S=A?e.value():e,M=N?n.value():n;return r||(r=new Fn),i(S,M,a,o,r)}}return!!f&&(r||(r=new Fn),function(e,n,a,o,i,r){var s=1&a,l=ai(e),c=l.length,d=ai(n),u=d.length;if(c!=u&&!s)return!1;for(var h=c;h--;){var g=l[h];if(!(s?g in n:Bt.call(n,g)))return!1}var m=r.get(e),p=r.get(n);if(m&&p)return m==n&&p==e;var y=!0;r.set(e,n),r.set(n,e);for(var _=s;++h<c;){var f=e[g=l[h]],v=n[g];if(o)var w=s?o(v,f,g,n,e,r):o(f,v,g,e,n,r);if(!(w===t?f===v||i(f,v,a,o,r):w)){y=!1;break}_||(_="constructor"==g)}if(y&&!_){var b=e.constructor,A=n.constructor;b==A||!("constructor"in e)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof A&&A instanceof A||(y=!1)}return r.delete(e),r.delete(n),y}(e,n,a,o,i,r))}(e,n,a,o,Ma,i))}function Ia(e,n,a,o){var i=a.length,r=i,s=!o;if(null==e)return!r;for(e=Et(e);i--;){var l=a[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<r;){var c=(l=a[i])[0],d=e[c],u=l[1];if(s&&l[2]){if(d===t&&!(c in e))return!1}else{var h=new Fn;if(o)var g=o(d,u,c,e,n,h);if(!(g===t?Ma(u,d,3,o,h):g))return!1}}return!0}function Oa(t){return!(!$r(t)||(e=t,kt&&kt in e))&&(Jr(t)?jt:ht).test(Vi(t));var e}function Ba(t){return"function"==typeof t?t:null==t?nl:"object"==typeof t?Ur(t)?ja(t[0],t[1]):Ra(t):ul(t)}function Da(t){if(!xi(t))return yn(t);var e=[];for(var n in Et(t))Bt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function ka(t){if(!$r(t))return function(t){var e=[];if(null!=t)for(var n in Et(t))e.push(n);return e}(t);var e=xi(t),n=[];for(var a in t)("constructor"!=a||!e&&Bt.call(t,a))&&n.push(a);return n}function Va(t,e){return t<e}function za(t,e){var n=-1,a=Zr(t)?wt(t.length):[];return ua(t,function(t,o,i){a[++n]=e(t,o,i)}),a}function Ra(t){var e=di(t);return 1==e.length&&e[0][2]?Ei(e[0][0],e[0][1]):function(n){return n===t||Ia(n,t,e)}}function ja(e,n){return wi(e)&&Pi(n)?Ei(ki(e),n):function(a){var o=Es(a,e);return o===t&&o===n?Ls(a,e):Ma(n,o,3)}}function Ga(e,n,a,o,i){e!==n&&_a(n,function(r,s){if(i||(i=new Fn),$r(r))!function(e,n,a,o,i,r,s){var l=Ci(e,a),c=Ci(n,a),d=s.get(c);if(d)$n(e,a,d);else{var u=r?r(l,c,a+"",e,n,s):t,h=u===t;if(h){var g=Ur(c),m=!g&&Yr(c),p=!g&&!m&&ls(c);u=c,g||m||p?Ur(l)?u=l:Qr(l)?u=To(l):m?(h=!1,u=xo(c,!0)):p?(h=!1,u=Eo(c,!0)):u=[]:as(c)||Hr(c)?(u=l,Hr(l)?u=ys(l):$r(l)&&!Jr(l)||(u=yi(c))):h=!1}h&&(s.set(c,u),i(u,c,o,r,s),s.delete(c)),$n(e,a,u)}}(e,n,s,a,Ga,o,i);else{var l=o?o(Ci(e,s),r,s+"",e,n,i):t;l===t&&(l=r),$n(e,s,l)}},Ms)}function Ha(e,n){var a=e.length;if(a)return fi(n+=n<0?a:0,a)?e[n]:t}function Ua(t,e,n){e=e.length?Te(e,function(t){return Ur(t)?function(e){return Aa(e,1===t.length?t[0]:t)}:t}):[nl];var a=-1;e=Te(e,Ye(li()));var o=za(t,function(t,n,o){var i=Te(e,function(e){return e(t)});return{criteria:i,index:++a,value:t}});return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(o,function(t,e){return function(t,e,n){for(var a=-1,o=t.criteria,i=e.criteria,r=o.length,s=n.length;++a<r;){var l=Lo(o[a],i[a]);if(l)return a>=s?l:l*("desc"==n[a]?-1:1)}return t.index-e.index}(t,e,n)})}function Wa(t,e,n){for(var a=-1,o=e.length,i={};++a<o;){var r=e[a],s=Aa(t,r);n(s,r)&&qa(i,vo(r,t),s)}return i}function Za(t,e,n,a){var o=a?ze:Ve,i=-1,r=e.length,s=t;for(t===e&&(e=To(e)),n&&(s=Te(t,Ye(n)));++i<r;)for(var l=0,c=e[i],d=n?n(c):c;(l=o(s,d,l,a))>-1;)s!==t&&Jt.call(s,l,1),Jt.call(t,l,1);return t}function Qa(t,e){for(var n=t?e.length:0,a=n-1;n--;){var o=e[n];if(n==a||o!==i){var i=o;fi(o)?Jt.call(t,o,1):uo(t,o)}}return t}function Ya(t,e){return t+Be(bn()*(e-t+1))}function Fa(t,e){var n="";if(!t||e<1||e>l)return n;do{e%2&&(n+=t),(e=Be(e/2))&&(t+=t)}while(e);return n}function Xa(t,e){return Mi(Li(t,e,nl),t+"")}function Ja(t){return Jn(Rs(t))}function Ka(t,e){var n=Rs(t);return Bi(n,ra(e,0,n.length))}function qa(e,n,a,o){if(!$r(e))return e;for(var i=-1,r=(n=vo(n,e)).length,s=r-1,l=e;null!=l&&++i<r;){var c=ki(n[i]),d=a;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var u=l[c];(d=o?o(u,c,l):t)===t&&(d=$r(u)?u:fi(n[i+1])?[]:{})}ta(l,c,d),l=l[c]}return e}var $a=Tn?function(t,e){return Tn.set(t,e),t}:nl,to=le?function(t,e){return le(t,"toString",{configurable:!0,enumerable:!1,value:$s(e),writable:!0})}:nl;function eo(t){return Bi(Rs(t))}function no(t,e,n){var a=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=wt(o);++a<o;)i[a]=t[a+e];return i}function ao(t,e){var n;return ua(t,function(t,a,o){return!(n=e(t,a,o))}),!!n}function oo(t,e,n){var a=0,o=null==t?a:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;a<o;){var i=a+o>>>1,r=t[i];null!==r&&!ss(r)&&(n?r<=e:r<e)?a=i+1:o=i}return o}return io(t,e,nl,n)}function io(e,n,a,o){var i=0,r=null==e?0:e.length;if(0===r)return 0;for(var s=(n=a(n))!=n,l=null===n,c=ss(n),d=n===t;i<r;){var u=Be((i+r)/2),h=a(e[u]),g=h!==t,m=null===h,p=h==h,y=ss(h);if(s)var _=o||p;else _=d?p&&(o||g):l?p&&g&&(o||!m):c?p&&g&&!m&&(o||!y):!m&&!y&&(o?h<=n:h<n);_?i=u+1:r=u}return fn(r,4294967294)}function ro(t,e){for(var n=-1,a=t.length,o=0,i=[];++n<a;){var r=t[n],s=e?e(r):r;if(!n||!Rr(s,l)){var l=s;i[o++]=0===r?0:r}}return i}function so(t){return"number"==typeof t?t:ss(t)?c:+t}function lo(t){if("string"==typeof t)return t;if(Ur(t))return Te(t,lo)+"";if(ss(t))return zn?zn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function co(t,e,n){var a=-1,o=Ne,i=t.length,r=!0,s=[],l=s;if(n)r=!1,o=Ce;else if(i>=200){var c=e?null:Xo(t);if(c)return rn(c);r=!1,o=Xe,l=new Yn}else l=e?[]:s;t:for(;++a<i;){var d=t[a],u=e?e(d):d;if(d=n||0!==d?d:0,r&&u==u){for(var h=l.length;h--;)if(l[h]===u)continue t;e&&l.push(u),s.push(d)}else o(l,u,n)||(l!==s&&l.push(u),s.push(d))}return s}function uo(t,e){var n=-1,a=(e=vo(e,t)).length;if(!a)return!0;for(var o=null==t||"object"!=typeof t&&"function"!=typeof t;++n<a;){var i=e[n];if("string"==typeof i){if("__proto__"===i&&!Bt.call(t,"__proto__"))return!1;if("constructor"===i&&n+1<a&&"string"==typeof e[n+1]&&"prototype"===e[n+1]){if(o&&0===n)continue;return!1}}}var r=Ni(t,e);return null==r||delete r[ki(Xi(e))]}function ho(t,e,n,a){return qa(t,e,n(Aa(t,e)),a)}function go(t,e,n,a){for(var o=t.length,i=a?o:-1;(a?i--:++i<o)&&e(t[i],i,t););return n?no(t,a?0:i,a?i+1:o):no(t,a?i+1:0,a?o:i)}function mo(t,e){var n=t;return n instanceof Un&&(n=n.value()),Me(e,function(t,e){return e.func.apply(e.thisArg,Se([t],e.args))},n)}function po(t,e,n){var a=t.length;if(a<2)return a?co(t[0]):[];for(var o=-1,i=wt(a);++o<a;)for(var r=t[o],s=-1;++s<a;)s!=o&&(i[o]=da(i[o]||r,t[s],e,n));return co(ya(i,1),e,n)}function yo(e,n,a){for(var o=-1,i=e.length,r=n.length,s={};++o<i;){var l=o<r?n[o]:t;a(s,e[o],l)}return s}function _o(t){return Qr(t)?t:[]}function fo(t){return"function"==typeof t?t:nl}function vo(t,e){return Ur(t)?t:wi(t,e)?[t]:Di(_s(t))}var wo=Xa;function bo(e,n,a){var o=e.length;return a=a===t?o:a,!n&&a>=o?e:no(e,n,a)}var Ao=de||function(t){return ce.clearTimeout(t)};function xo(t,e){if(e)return t.slice();var n=t.length,a=Wt?Wt(n):new t.constructor(n);return t.copy(a),a}function Po(t){var e=new t.constructor(t.byteLength);return new Ut(e).set(new Ut(t)),e}function Eo(t,e){var n=e?Po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Lo(e,n){if(e!==n){var a=e!==t,o=null===e,i=e==e,r=ss(e),s=n!==t,l=null===n,c=n==n,d=ss(n);if(!l&&!d&&!r&&e>n||r&&s&&c&&!l&&!d||o&&s&&c||!a&&c||!i)return 1;if(!o&&!r&&!d&&e<n||d&&a&&i&&!o&&!r||l&&a&&i||!s&&i||!c)return-1}return 0}function No(t,e,n,a){for(var o=-1,i=t.length,r=n.length,s=-1,l=e.length,c=_n(i-r,0),d=wt(l+c),u=!a;++s<l;)d[s]=e[s];for(;++o<r;)(u||o<i)&&(d[n[o]]=t[o]);for(;c--;)d[s++]=t[o++];return d}function Co(t,e,n,a){for(var o=-1,i=t.length,r=-1,s=n.length,l=-1,c=e.length,d=_n(i-s,0),u=wt(d+c),h=!a;++o<d;)u[o]=t[o];for(var g=o;++l<c;)u[g+l]=e[l];for(;++r<s;)(h||o<i)&&(u[g+n[r]]=t[o++]);return u}function To(t,e){var n=-1,a=t.length;for(e||(e=wt(a));++n<a;)e[n]=t[n];return e}function So(e,n,a,o){var i=!a;a||(a={});for(var r=-1,s=n.length;++r<s;){var l=n[r],c=o?o(a[l],e[l],l,a,e):t;c===t&&(c=e[l]),i?oa(a,l,c):ta(a,l,c)}return a}function Mo(t,e){return function(n,a){var o=Ur(n)?Ae:na,i=e?e():{};return o(n,t,li(a,2),i)}}function Io(e){return Xa(function(n,a){var o=-1,i=a.length,r=i>1?a[i-1]:t,s=i>2?a[2]:t;for(r=e.length>3&&"function"==typeof r?(i--,r):t,s&&vi(a[0],a[1],s)&&(r=i<3?t:r,i=1),n=Et(n);++o<i;){var l=a[o];l&&e(n,l,o,r)}return n})}function Oo(t,e){return function(n,a){if(null==n)return n;if(!Zr(n))return t(n,a);for(var o=n.length,i=e?o:-1,r=Et(n);(e?i--:++i<o)&&!1!==a(r[i],i,r););return n}}function Bo(t){return function(e,n,a){for(var o=-1,i=Et(e),r=a(e),s=r.length;s--;){var l=r[t?s:++o];if(!1===n(i[l],l,i))break}return e}}function Do(e){return function(n){var a=en(n=_s(n))?cn(n):t,o=a?a[0]:n.charAt(0),i=a?bo(a,1).join(""):n.slice(1);return o[e]()+i}}function ko(t){return function(e){return Me(Js(Hs(e).replace(Ft,"")),t,"")}}function Vo(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=jn(t.prototype),a=t.apply(n,e);return $r(a)?a:n}}function zo(e){return function(n,a,o){var i=Et(n);if(!Zr(n)){var r=li(a,3);n=Ss(n),a=function(t){return r(i[t],t,i)}}var s=e(n,a,o);return s>-1?i[r?n[s]:s]:t}}function Ro(n){return ni(function(a){var o=a.length,i=o,r=Hn.prototype.thru;for(n&&a.reverse();i--;){var s=a[i];if("function"!=typeof s)throw new Ct(e);if(r&&!l&&"wrapper"==ri(s))var l=new Hn([],!0)}for(i=l?i:o;++i<o;){var c=ri(s=a[i]),d="wrapper"==c?ii(s):t;l=d&&bi(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?l[ri(d[0])].apply(l,d[3]):1==s.length&&bi(s)?l[c]():l.thru(s)}return function(){var t=arguments,e=t[0];if(l&&1==t.length&&Ur(e))return l.plant(e).value();for(var n=0,i=o?a[n].apply(this,t):e;++n<o;)i=a[n].call(this,i);return i}})}function jo(e,n,a,o,r,s,l,c,d,u){var h=n&i,g=1&n,m=2&n,p=24&n,y=512&n,_=m?t:Vo(e);return function i(){for(var f=arguments.length,v=wt(f),w=f;w--;)v[w]=arguments[w];if(p)var b=si(i),A=function(t,e){for(var n=t.length,a=0;n--;)t[n]===e&&++a;return a}(v,b);if(o&&(v=No(v,o,r,p)),s&&(v=Co(v,s,l,p)),f-=A,p&&f<u){var x=on(v,b);return Yo(e,n,jo,i.placeholder,a,v,x,c,d,u-f)}var P=g?a:this,E=m?P[e]:e;return f=v.length,c?v=function(e,n){for(var a=e.length,o=fn(n.length,a),i=To(e);o--;){var r=n[o];e[o]=fi(r,a)?i[r]:t}return e}(v,c):y&&f>1&&v.reverse(),h&&d<f&&(v.length=d),this&&this!==ce&&this instanceof i&&(E=_||Vo(E)),E.apply(P,v)}}function Go(t,e){return function(n,a){return function(t,e,n,a){return va(t,function(t,o,i){e(a,n(t),o,i)}),a}(n,t,e(a),{})}}function Ho(e,n){return function(a,o){var i;if(a===t&&o===t)return n;if(a!==t&&(i=a),o!==t){if(i===t)return o;"string"==typeof a||"string"==typeof o?(a=lo(a),o=lo(o)):(a=so(a),o=so(o)),i=e(a,o)}return i}}function Uo(t){return ni(function(e){return e=Te(e,Ye(li())),Xa(function(n){var a=this;return t(e,function(t){return be(t,a,n)})})})}function Wo(e,n){var a=(n=n===t?" ":lo(n)).length;if(a<2)return a?Fa(n,e):n;var o=Fa(n,me(e/ln(n)));return en(n)?bo(cn(o),0,e).join(""):o.slice(0,e)}function Zo(e){return function(n,a,o){return o&&"number"!=typeof o&&vi(n,a,o)&&(a=o=t),n=hs(n),a===t?(a=n,n=0):a=hs(a),function(t,e,n,a){for(var o=-1,i=_n(me((e-t)/(n||1)),0),r=wt(i);i--;)r[a?i:++o]=t,t+=n;return r}(n,a,o=o===t?n<a?1:-1:hs(o),e)}}function Qo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ps(e),n=ps(n)),t(e,n)}}function Yo(e,n,a,i,r,s,l,c,d,u){var h=8&n;n|=h?o:64,4&(n&=~(h?64:o))||(n&=-4);var g=[e,n,r,h?s:t,h?l:t,h?t:s,h?t:l,c,d,u],m=a.apply(t,g);return bi(e)&&Ti(m,g),m.placeholder=i,Ii(m,e,n)}function Fo(t){var e=Pt[t];return function(t,n){if(t=ps(t),(n=null==n?0:fn(gs(n),292))&&mn(t)){var a=(_s(t)+"e").split("e");return+((a=(_s(e(a[0]+"e"+(+a[1]+n)))+"e").split("e"))[0]+"e"+(+a[1]-n))}return e(t)}}var Xo=Ln&&1/rn(new Ln([,-0]))[1]==s?function(t){return new Ln(t)}:sl;function Jo(t){return function(e){var n=mi(e);return n==v?nn(e):n==P?sn(e):function(t,e){return Te(e,function(e){return[e,t[e]]})}(e,t(e))}}function Ko(n,s,l,c,d,u,h,g){var m=2&s;if(!m&&"function"!=typeof n)throw new Ct(e);var p=c?c.length:0;if(p||(s&=-97,c=d=t),h=h===t?h:_n(gs(h),0),g=g===t?g:gs(g),p-=d?d.length:0,64&s){var y=c,_=d;c=d=t}var f=m?t:ii(n),v=[n,s,l,c,d,y,_,u,h,g];if(f&&function(t,e){var n=t[1],o=e[1],s=n|o,l=s<131,c=o==i&&8==n||o==i&&n==r&&t[7].length<=e[8]||384==o&&e[7].length<=e[8]&&8==n;if(!l&&!c)return t;1&o&&(t[2]=e[2],s|=1&n?0:4);var d=e[3];if(d){var u=t[3];t[3]=u?No(u,d,e[4]):d,t[4]=u?on(t[3],a):e[4]}(d=e[5])&&(u=t[5],t[5]=u?Co(u,d,e[6]):d,t[6]=u?on(t[5],a):e[6]),(d=e[7])&&(t[7]=d),o&i&&(t[8]=null==t[8]?e[8]:fn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=s}(v,f),n=v[0],s=v[1],l=v[2],c=v[3],d=v[4],!(g=v[9]=v[9]===t?m?0:n.length:_n(v[9]-p,0))&&24&s&&(s&=-25),s&&1!=s)w=8==s||16==s?function(e,n,a){var o=Vo(e);return function i(){for(var r=arguments.length,s=wt(r),l=r,c=si(i);l--;)s[l]=arguments[l];var d=r<3&&s[0]!==c&&s[r-1]!==c?[]:on(s,c);return(r-=d.length)<a?Yo(e,n,jo,i.placeholder,t,s,d,t,t,a-r):be(this&&this!==ce&&this instanceof i?o:e,this,s)}}(n,s,g):s!=o&&33!=s||d.length?jo.apply(t,v):function(t,e,n,a){var o=1&e,i=Vo(t);return function e(){for(var r=-1,s=arguments.length,l=-1,c=a.length,d=wt(c+s),u=this&&this!==ce&&this instanceof e?i:t;++l<c;)d[l]=a[l];for(;s--;)d[l++]=arguments[++r];return be(u,o?n:this,d)}}(n,s,l,c);else var w=function(t,e,n){var a=1&e,o=Vo(t);return function e(){return(this&&this!==ce&&this instanceof e?o:t).apply(a?n:this,arguments)}}(n,s,l);return Ii((f?$a:Ti)(w,v),n,s)}function qo(e,n,a,o){return e===t||Rr(e,Mt[a])&&!Bt.call(o,a)?n:e}function $o(e,n,a,o,i,r){return $r(e)&&$r(n)&&(r.set(n,e),Ga(e,n,t,$o,r),r.delete(n)),e}function ti(e){return as(e)?t:e}function ei(e,n,a,o,i,r){var s=1&a,l=e.length,c=n.length;if(l!=c&&!(s&&c>l))return!1;var d=r.get(e),u=r.get(n);if(d&&u)return d==n&&u==e;var h=-1,g=!0,m=2&a?new Yn:t;for(r.set(e,n),r.set(n,e);++h<l;){var p=e[h],y=n[h];if(o)var _=s?o(y,p,h,n,e,r):o(p,y,h,e,n,r);if(_!==t){if(_)continue;g=!1;break}if(m){if(!Oe(n,function(t,e){if(!Xe(m,e)&&(p===t||i(p,t,a,o,r)))return m.push(e)})){g=!1;break}}else if(p!==y&&!i(p,y,a,o,r)){g=!1;break}}return r.delete(e),r.delete(n),g}function ni(e){return Mi(Li(e,t,Wi),e+"")}function ai(t){return xa(t,Ss,hi)}function oi(t){return xa(t,Ms,gi)}var ii=Tn?function(t){return Tn.get(t)}:sl;function ri(t){for(var e=t.name+"",n=Sn[e],a=Bt.call(Sn,e)?n.length:0;a--;){var o=n[a],i=o.func;if(null==i||i==t)return o.name}return e}function si(t){return(Bt.call(Rn,"placeholder")?Rn:t).placeholder}function li(){var t=Rn.iteratee||al;return t=t===al?Ba:t,arguments.length?t(arguments[0],arguments[1]):t}function ci(t,e){var n,a,o=t.__data__;return("string"==(a=typeof(n=e))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function di(t){for(var e=Ss(t),n=e.length;n--;){var a=e[n],o=t[a];e[n]=[a,o,Pi(o)]}return e}function ui(e,n){var a=function(e,n){return null==e?t:e[n]}(e,n);return Oa(a)?a:t}var hi=He?function(t){return null==t?[]:(t=Et(t),Le(He(t),function(e){return Yt.call(t,e)}))}:ml,gi=He?function(t){for(var e=[];t;)Se(e,hi(t)),t=Zt(t);return e}:ml,mi=Pa;function pi(t,e,n){for(var a=-1,o=(e=vo(e,t)).length,i=!1;++a<o;){var r=ki(e[a]);if(!(i=null!=t&&n(t,r)))break;t=t[r]}return i||++a!=o?i:!!(o=null==t?0:t.length)&&qr(o)&&fi(r,o)&&(Ur(t)||Hr(t))}function yi(t){return"function"!=typeof t.constructor||xi(t)?{}:jn(Zt(t))}function _i(t){return Ur(t)||Hr(t)||!!(qt&&t&&t[qt])}function fi(t,e){var n=typeof t;return!!(e=null==e?l:e)&&("number"==n||"symbol"!=n&&mt.test(t))&&t>-1&&t%1==0&&t<e}function vi(t,e,n){if(!$r(n))return!1;var a=typeof e;return!!("number"==a?Zr(n)&&fi(e,n.length):"string"==a&&e in n)&&Rr(n[e],t)}function wi(t,e){if(Ur(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ss(t))||J.test(t)||!X.test(t)||null!=e&&t in Et(e)}function bi(t){var e=ri(t),n=Rn[e];if("function"!=typeof n||!(e in Un.prototype))return!1;if(t===n)return!0;var a=ii(n);return!!a&&t===a[0]}(xn&&mi(new xn(new ArrayBuffer(1)))!=T||Pn&&mi(new Pn)!=v||En&&mi(En.resolve())!=A||Ln&&mi(new Ln)!=P||Nn&&mi(new Nn)!=N)&&(mi=function(e){var n=Pa(e),a=n==b?e.constructor:t,o=a?Vi(a):"";if(o)switch(o){case Mn:return T;case In:return v;case On:return A;case Bn:return P;case Dn:return N}return n});var Ai=It?Jr:pl;function xi(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Mt)}function Pi(t){return t==t&&!$r(t)}function Ei(e,n){return function(a){return null!=a&&a[e]===n&&(n!==t||e in Et(a))}}function Li(e,n,a){return n=_n(n===t?e.length-1:n,0),function(){for(var t=arguments,o=-1,i=_n(t.length-n,0),r=wt(i);++o<i;)r[o]=t[n+o];o=-1;for(var s=wt(n+1);++o<n;)s[o]=t[o];return s[n]=a(r),be(e,this,s)}}function Ni(t,e){return e.length<2?t:Aa(t,no(e,0,-1))}function Ci(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ti=Oi($a),Si=ge||function(t,e){return ce.setTimeout(t,e)},Mi=Oi(to);function Ii(t,e,n){var a=e+"";return Mi(t,function(t,e){var n=e.length;if(!n)return t;var a=n-1;return e[a]=(n>1?"& ":"")+e[a],e=e.join(n>2?", ":" "),t.replace(nt,"{\n/* [wrapped with "+e+"] */\n")}(a,function(t,e){return xe(u,function(n){var a="_."+n[0];e&n[1]&&!Ne(t,a)&&t.push(a)}),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(ot):[]}(a),n)))}function Oi(e){var n=0,a=0;return function(){var o=vn(),i=16-(o-a);if(a=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function Bi(e,n){var a=-1,o=e.length,i=o-1;for(n=n===t?o:n;++a<n;){var r=Ya(a,i),s=e[r];e[r]=e[a],e[a]=s}return e.length=n,e}var Di=function(t){var e=Or(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(K,function(t,n,a,o){e.push(a?o.replace(st,"$1"):n||t)}),e});function ki(t){if("string"==typeof t||ss(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Vi(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zi(t){if(t instanceof Un)return t.clone();var e=new Hn(t.__wrapped__,t.__chain__);return e.__actions__=To(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ri=Xa(function(t,e){return Qr(t)?da(t,ya(e,1,Qr,!0)):[]}),ji=Xa(function(e,n){var a=Xi(n);return Qr(a)&&(a=t),Qr(e)?da(e,ya(n,1,Qr,!0),li(a,2)):[]}),Gi=Xa(function(e,n){var a=Xi(n);return Qr(a)&&(a=t),Qr(e)?da(e,ya(n,1,Qr,!0),t,a):[]});function Hi(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var o=null==n?0:gs(n);return o<0&&(o=_n(a+o,0)),ke(t,li(e,3),o)}function Ui(e,n,a){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return a!==t&&(i=gs(a),i=a<0?_n(o+i,0):fn(i,o-1)),ke(e,li(n,3),i,!0)}function Wi(t){return null!=t&&t.length?ya(t,1):[]}function Zi(e){return e&&e.length?e[0]:t}var Qi=Xa(function(t){var e=Te(t,_o);return e.length&&e[0]===t[0]?Ca(e):[]}),Yi=Xa(function(e){var n=Xi(e),a=Te(e,_o);return n===Xi(a)?n=t:a.pop(),a.length&&a[0]===e[0]?Ca(a,li(n,2)):[]}),Fi=Xa(function(e){var n=Xi(e),a=Te(e,_o);return(n="function"==typeof n?n:t)&&a.pop(),a.length&&a[0]===e[0]?Ca(a,t,n):[]});function Xi(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Ji=Xa(Ki);function Ki(t,e){return t&&t.length&&e&&e.length?Za(t,e):t}var qi=ni(function(t,e){var n=null==t?0:t.length,a=ia(t,e);return Qa(t,Te(e,function(t){return fi(t,n)?+t:t}).sort(Lo)),a});function $i(t){return null==t?t:An.call(t)}var tr=Xa(function(t){return co(ya(t,1,Qr,!0))}),er=Xa(function(e){var n=Xi(e);return Qr(n)&&(n=t),co(ya(e,1,Qr,!0),li(n,2))}),nr=Xa(function(e){var n=Xi(e);return n="function"==typeof n?n:t,co(ya(e,1,Qr,!0),t,n)});function ar(t){if(!t||!t.length)return[];var e=0;return t=Le(t,function(t){if(Qr(t))return e=_n(t.length,e),!0}),Ze(e,function(e){return Te(t,Ge(e))})}function or(e,n){if(!e||!e.length)return[];var a=ar(e);return null==n?a:Te(a,function(e){return be(n,t,e)})}var ir=Xa(function(t,e){return Qr(t)?da(t,e):[]}),rr=Xa(function(t){return po(Le(t,Qr))}),sr=Xa(function(e){var n=Xi(e);return Qr(n)&&(n=t),po(Le(e,Qr),li(n,2))}),lr=Xa(function(e){var n=Xi(e);return n="function"==typeof n?n:t,po(Le(e,Qr),t,n)}),cr=Xa(ar),dr=Xa(function(e){var n=e.length,a=n>1?e[n-1]:t;return a="function"==typeof a?(e.pop(),a):t,or(e,a)});function ur(t){var e=Rn(t);return e.__chain__=!0,e}function hr(t,e){return e(t)}var gr=ni(function(e){var n=e.length,a=n?e[0]:0,o=this.__wrapped__,i=function(t){return ia(t,e)};return!(n>1||this.__actions__.length)&&o instanceof Un&&fi(a)?((o=o.slice(a,+a+(n?1:0))).__actions__.push({func:hr,args:[i],thisArg:t}),new Hn(o,this.__chain__).thru(function(e){return n&&!e.length&&e.push(t),e})):this.thru(i)}),mr=Mo(function(t,e,n){Bt.call(t,n)?++t[n]:oa(t,n,1)}),pr=zo(Hi),yr=zo(Ui);function _r(t,e){return(Ur(t)?xe:ua)(t,li(e,3))}function fr(t,e){return(Ur(t)?Pe:ha)(t,li(e,3))}var vr=Mo(function(t,e,n){Bt.call(t,n)?t[n].push(e):oa(t,n,[e])}),wr=Xa(function(t,e,n){var a=-1,o="function"==typeof e,i=Zr(t)?wt(t.length):[];return ua(t,function(t){i[++a]=o?be(e,t,n):Ta(t,e,n)}),i}),br=Mo(function(t,e,n){oa(t,n,e)});function Ar(t,e){return(Ur(t)?Te:za)(t,li(e,3))}var xr=Mo(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),Pr=Xa(function(t,e){if(null==t)return[];var n=e.length;return n>1&&vi(t,e[0],e[1])?e=[]:n>2&&vi(e[0],e[1],e[2])&&(e=[e[0]]),Ua(t,ya(e,1),[])}),Er=ue||function(){return ce.Date.now()};function Lr(e,n,a){return n=a?t:n,n=e&&null==n?e.length:n,Ko(e,i,t,t,t,t,n)}function Nr(n,a){var o;if("function"!=typeof a)throw new Ct(e);return n=gs(n),function(){return--n>0&&(o=a.apply(this,arguments)),n<=1&&(a=t),o}}var Cr=Xa(function(t,e,n){var a=1;if(n.length){var i=on(n,si(Cr));a|=o}return Ko(t,a,e,n,i)}),Tr=Xa(function(t,e,n){var a=3;if(n.length){var i=on(n,si(Tr));a|=o}return Ko(e,a,t,n,i)});function Sr(n,a,o){var i,r,s,l,c,d,u=0,h=!1,g=!1,m=!0;if("function"!=typeof n)throw new Ct(e);function p(e){var a=i,o=r;return i=r=t,u=e,l=n.apply(o,a)}function y(e){var n=e-d;return d===t||n>=a||n<0||g&&e-u>=s}function _(){var t=Er();if(y(t))return f(t);c=Si(_,function(t){var e=a-(t-d);return g?fn(e,s-(t-u)):e}(t))}function f(e){return c=t,m&&i?p(e):(i=r=t,l)}function v(){var e=Er(),n=y(e);if(i=arguments,r=this,d=e,n){if(c===t)return function(t){return u=t,c=Si(_,a),h?p(t):l}(d);if(g)return Ao(c),c=Si(_,a),p(d)}return c===t&&(c=Si(_,a)),l}return a=ps(a)||0,$r(o)&&(h=!!o.leading,s=(g="maxWait"in o)?_n(ps(o.maxWait)||0,a):s,m="trailing"in o?!!o.trailing:m),v.cancel=function(){c!==t&&Ao(c),u=0,i=d=r=c=t},v.flush=function(){return c===t?l:f(Er())},v}var Mr=Xa(function(t,e){return ca(t,1,e)}),Ir=Xa(function(t,e,n){return ca(t,ps(e)||0,n)});function Or(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Ct(e);var a=function(){var e=arguments,o=n?n.apply(this,e):e[0],i=a.cache;if(i.has(o))return i.get(o);var r=t.apply(this,e);return a.cache=i.set(o,r)||i,r};return a.cache=new(Or.Cache||Qn),a}function Br(t){if("function"!=typeof t)throw new Ct(e);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Or.Cache=Qn;var Dr=wo(function(t,e){var n=(e=1==e.length&&Ur(e[0])?Te(e[0],Ye(li())):Te(ya(e,1),Ye(li()))).length;return Xa(function(a){for(var o=-1,i=fn(a.length,n);++o<i;)a[o]=e[o].call(this,a[o]);return be(t,this,a)})}),kr=Xa(function(e,n){var a=on(n,si(kr));return Ko(e,o,t,n,a)}),Vr=Xa(function(e,n){var a=on(n,si(Vr));return Ko(e,64,t,n,a)}),zr=ni(function(e,n){return Ko(e,r,t,t,t,n)});function Rr(t,e){return t===e||t!=t&&e!=e}var jr=Qo(Ea),Gr=Qo(function(t,e){return t>=e}),Hr=Sa(function(){return arguments}())?Sa:function(t){return ts(t)&&Bt.call(t,"callee")&&!Yt.call(t,"callee")},Ur=wt.isArray,Wr=pe?Ye(pe):function(t){return ts(t)&&Pa(t)==C};function Zr(t){return null!=t&&qr(t.length)&&!Jr(t)}function Qr(t){return ts(t)&&Zr(t)}var Yr=gn||pl,Fr=ye?Ye(ye):function(t){return ts(t)&&Pa(t)==p};function Xr(t){if(!ts(t))return!1;var e=Pa(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!as(t)}function Jr(t){if(!$r(t))return!1;var e=Pa(t);return e==_||e==f||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Kr(t){return"number"==typeof t&&t==gs(t)}function qr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function $r(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ts(t){return null!=t&&"object"==typeof t}var es=_e?Ye(_e):function(t){return ts(t)&&mi(t)==v};function ns(t){return"number"==typeof t||ts(t)&&Pa(t)==w}function as(t){if(!ts(t)||Pa(t)!=b)return!1;var e=Zt(t);if(null===e)return!0;var n=Bt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==zt}var os=fe?Ye(fe):function(t){return ts(t)&&Pa(t)==x},is=ve?Ye(ve):function(t){return ts(t)&&mi(t)==P};function rs(t){return"string"==typeof t||!Ur(t)&&ts(t)&&Pa(t)==E}function ss(t){return"symbol"==typeof t||ts(t)&&Pa(t)==L}var ls=we?Ye(we):function(t){return ts(t)&&qr(t.length)&&!!ne[Pa(t)]},cs=Qo(Va),ds=Qo(function(t,e){return t<=e});function us(t){if(!t)return[];if(Zr(t))return rs(t)?cn(t):To(t);if(oe&&t[oe])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[oe]());var e=mi(t);return(e==v?nn:e==P?rn:Rs)(t)}function hs(t){return t?(t=ps(t))===s||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function gs(t){var e=hs(t),n=e%1;return e==e?n?e-n:e:0}function ms(t){return t?ra(gs(t),0,d):0}function ps(t){if("number"==typeof t)return t;if(ss(t))return c;if($r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=$r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Qe(t);var n=ut.test(t);return n||gt.test(t)?re(t.slice(2),n?2:8):dt.test(t)?c:+t}function ys(t){return So(t,Ms(t))}function _s(t){return null==t?"":lo(t)}var fs=Io(function(t,e){if(xi(e)||Zr(e))So(e,Ss(e),t);else for(var n in e)Bt.call(e,n)&&ta(t,n,e[n])}),vs=Io(function(t,e){So(e,Ms(e),t)}),ws=Io(function(t,e,n,a){So(e,Ms(e),t,a)}),bs=Io(function(t,e,n,a){So(e,Ss(e),t,a)}),As=ni(ia),xs=Xa(function(e,n){e=Et(e);var a=-1,o=n.length,i=o>2?n[2]:t;for(i&&vi(n[0],n[1],i)&&(o=1);++a<o;)for(var r=n[a],s=Ms(r),l=-1,c=s.length;++l<c;){var d=s[l],u=e[d];(u===t||Rr(u,Mt[d])&&!Bt.call(e,d))&&(e[d]=r[d])}return e}),Ps=Xa(function(e){return e.push(t,$o),be(Os,t,e)});function Es(e,n,a){var o=null==e?t:Aa(e,n);return o===t?a:o}function Ls(t,e){return null!=t&&pi(t,e,Na)}var Ns=Go(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Vt.call(e)),t[e]=n},$s(nl)),Cs=Go(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Vt.call(e)),Bt.call(t,e)?t[e].push(n):t[e]=[n]},li),Ts=Xa(Ta);function Ss(t){return Zr(t)?Xn(t):Da(t)}function Ms(t){return Zr(t)?Xn(t,!0):ka(t)}var Is=Io(function(t,e,n){Ga(t,e,n)}),Os=Io(function(t,e,n,a){Ga(t,e,n,a)}),Bs=ni(function(t,e){var n={};if(null==t)return n;var a=!1;e=Te(e,function(e){return e=vo(e,t),a||(a=e.length>1),e}),So(t,oi(t),n),a&&(n=sa(n,7,ti));for(var o=e.length;o--;)uo(n,e[o]);return n}),Ds=ni(function(t,e){return null==t?{}:function(t,e){return Wa(t,e,function(e,n){return Ls(t,n)})}(t,e)});function ks(t,e){if(null==t)return{};var n=Te(oi(t),function(t){return[t]});return e=li(e),Wa(t,n,function(t,n){return e(t,n[0])})}var Vs=Jo(Ss),zs=Jo(Ms);function Rs(t){return null==t?[]:Fe(t,Ss(t))}var js=ko(function(t,e,n){return e=e.toLowerCase(),t+(n?Gs(e):e)});function Gs(t){return Xs(_s(t).toLowerCase())}function Hs(t){return(t=_s(t))&&t.replace(pt,qe).replace(Xt,"")}var Us=ko(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Ws=ko(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Zs=Do("toLowerCase"),Qs=ko(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Ys=ko(function(t,e,n){return t+(n?" ":"")+Xs(e)}),Fs=ko(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Xs=Do("toUpperCase");function Js(e,n,a){return e=_s(e),(n=a?t:n)===t?function(t){return $t.test(t)}(e)?function(t){return t.match(Kt)||[]}(e):function(t){return t.match(it)||[]}(e):e.match(n)||[]}var Ks=Xa(function(e,n){try{return be(e,t,n)}catch(t){return Xr(t)?t:new At(t)}}),qs=ni(function(t,e){return xe(e,function(e){e=ki(e),oa(t,e,Cr(t[e],t))}),t});function $s(t){return function(){return t}}var tl=Ro(),el=Ro(!0);function nl(t){return t}function al(t){return Ba("function"==typeof t?t:sa(t,1))}var ol=Xa(function(t,e){return function(n){return Ta(n,t,e)}}),il=Xa(function(t,e){return function(n){return Ta(t,n,e)}});function rl(t,e,n){var a=Ss(e),o=ba(e,a);null!=n||$r(e)&&(o.length||!a.length)||(n=e,e=t,t=this,o=ba(e,Ss(e)));var i=!($r(n)&&"chain"in n&&!n.chain),r=Jr(t);return xe(o,function(n){var a=e[n];t[n]=a,r&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=To(this.__actions__)).push({func:a,args:arguments,thisArg:t}),n.__chain__=e,n}return a.apply(t,Se([this.value()],arguments))})}),t}function sl(){}var ll=Uo(Te),cl=Uo(Ee),dl=Uo(Oe);function ul(t){return wi(t)?Ge(ki(t)):function(t){return function(e){return Aa(e,t)}}(t)}var hl=Zo(),gl=Zo(!0);function ml(){return[]}function pl(){return!1}var yl,_l=Ho(function(t,e){return t+e},0),fl=Fo("ceil"),vl=Ho(function(t,e){return t/e},1),wl=Fo("floor"),bl=Ho(function(t,e){return t*e},1),Al=Fo("round"),xl=Ho(function(t,e){return t-e},0);return Rn.after=function(t,n){if("function"!=typeof n)throw new Ct(e);return t=gs(t),function(){if(--t<1)return n.apply(this,arguments)}},Rn.ary=Lr,Rn.assign=fs,Rn.assignIn=vs,Rn.assignInWith=ws,Rn.assignWith=bs,Rn.at=As,Rn.before=Nr,Rn.bind=Cr,Rn.bindAll=qs,Rn.bindKey=Tr,Rn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ur(t)?t:[t]},Rn.chain=ur,Rn.chunk=function(e,n,a){n=(a?vi(e,n,a):n===t)?1:_n(gs(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];for(var i=0,r=0,s=wt(me(o/n));i<o;)s[r++]=no(e,i,i+=n);return s},Rn.compact=function(t){for(var e=-1,n=null==t?0:t.length,a=0,o=[];++e<n;){var i=t[e];i&&(o[a++]=i)}return o},Rn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=wt(t-1),n=arguments[0],a=t;a--;)e[a-1]=arguments[a];return Se(Ur(n)?To(n):[n],ya(e,1))},Rn.cond=function(t){var n=null==t?0:t.length,a=li();return t=n?Te(t,function(t){if("function"!=typeof t[1])throw new Ct(e);return[a(t[0]),t[1]]}):[],Xa(function(e){for(var a=-1;++a<n;){var o=t[a];if(be(o[0],this,e))return be(o[1],this,e)}})},Rn.conforms=function(t){return function(t){var e=Ss(t);return function(n){return la(n,t,e)}}(sa(t,1))},Rn.constant=$s,Rn.countBy=mr,Rn.create=function(t,e){var n=jn(t);return null==e?n:aa(n,e)},Rn.curry=function e(n,a,o){var i=Ko(n,8,t,t,t,t,t,a=o?t:a);return i.placeholder=e.placeholder,i},Rn.curryRight=function e(n,a,o){var i=Ko(n,16,t,t,t,t,t,a=o?t:a);return i.placeholder=e.placeholder,i},Rn.debounce=Sr,Rn.defaults=xs,Rn.defaultsDeep=Ps,Rn.defer=Mr,Rn.delay=Ir,Rn.difference=Ri,Rn.differenceBy=ji,Rn.differenceWith=Gi,Rn.drop=function(e,n,a){var o=null==e?0:e.length;return o?no(e,(n=a||n===t?1:gs(n))<0?0:n,o):[]},Rn.dropRight=function(e,n,a){var o=null==e?0:e.length;return o?no(e,0,(n=o-(n=a||n===t?1:gs(n)))<0?0:n):[]},Rn.dropRightWhile=function(t,e){return t&&t.length?go(t,li(e,3),!0,!0):[]},Rn.dropWhile=function(t,e){return t&&t.length?go(t,li(e,3),!0):[]},Rn.fill=function(e,n,a,o){var i=null==e?0:e.length;return i?(a&&"number"!=typeof a&&vi(e,n,a)&&(a=0,o=i),function(e,n,a,o){var i=e.length;for((a=gs(a))<0&&(a=-a>i?0:i+a),(o=o===t||o>i?i:gs(o))<0&&(o+=i),o=a>o?0:ms(o);a<o;)e[a++]=n;return e}(e,n,a,o)):[]},Rn.filter=function(t,e){return(Ur(t)?Le:pa)(t,li(e,3))},Rn.flatMap=function(t,e){return ya(Ar(t,e),1)},Rn.flatMapDeep=function(t,e){return ya(Ar(t,e),s)},Rn.flatMapDepth=function(e,n,a){return a=a===t?1:gs(a),ya(Ar(e,n),a)},Rn.flatten=Wi,Rn.flattenDeep=function(t){return null!=t&&t.length?ya(t,s):[]},Rn.flattenDepth=function(e,n){return null!=e&&e.length?ya(e,n=n===t?1:gs(n)):[]},Rn.flip=function(t){return Ko(t,512)},Rn.flow=tl,Rn.flowRight=el,Rn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,a={};++e<n;){var o=t[e];a[o[0]]=o[1]}return a},Rn.functions=function(t){return null==t?[]:ba(t,Ss(t))},Rn.functionsIn=function(t){return null==t?[]:ba(t,Ms(t))},Rn.groupBy=vr,Rn.initial=function(t){return null!=t&&t.length?no(t,0,-1):[]},Rn.intersection=Qi,Rn.intersectionBy=Yi,Rn.intersectionWith=Fi,Rn.invert=Ns,Rn.invertBy=Cs,Rn.invokeMap=wr,Rn.iteratee=al,Rn.keyBy=br,Rn.keys=Ss,Rn.keysIn=Ms,Rn.map=Ar,Rn.mapKeys=function(t,e){var n={};return e=li(e,3),va(t,function(t,a,o){oa(n,e(t,a,o),t)}),n},Rn.mapValues=function(t,e){var n={};return e=li(e,3),va(t,function(t,a,o){oa(n,a,e(t,a,o))}),n},Rn.matches=function(t){return Ra(sa(t,1))},Rn.matchesProperty=function(t,e){return ja(t,sa(e,1))},Rn.memoize=Or,Rn.merge=Is,Rn.mergeWith=Os,Rn.method=ol,Rn.methodOf=il,Rn.mixin=rl,Rn.negate=Br,Rn.nthArg=function(t){return t=gs(t),Xa(function(e){return Ha(e,t)})},Rn.omit=Bs,Rn.omitBy=function(t,e){return ks(t,Br(li(e)))},Rn.once=function(t){return Nr(2,t)},Rn.orderBy=function(e,n,a,o){return null==e?[]:(Ur(n)||(n=null==n?[]:[n]),Ur(a=o?t:a)||(a=null==a?[]:[a]),Ua(e,n,a))},Rn.over=ll,Rn.overArgs=Dr,Rn.overEvery=cl,Rn.overSome=dl,Rn.partial=kr,Rn.partialRight=Vr,Rn.partition=xr,Rn.pick=Ds,Rn.pickBy=ks,Rn.property=ul,Rn.propertyOf=function(e){return function(n){return null==e?t:Aa(e,n)}},Rn.pull=Ji,Rn.pullAll=Ki,Rn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Za(t,e,li(n,2)):t},Rn.pullAllWith=function(e,n,a){return e&&e.length&&n&&n.length?Za(e,n,t,a):e},Rn.pullAt=qi,Rn.range=hl,Rn.rangeRight=gl,Rn.rearg=zr,Rn.reject=function(t,e){return(Ur(t)?Le:pa)(t,Br(li(e,3)))},Rn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var a=-1,o=[],i=t.length;for(e=li(e,3);++a<i;){var r=t[a];e(r,a,t)&&(n.push(r),o.push(a))}return Qa(t,o),n},Rn.rest=function(n,a){if("function"!=typeof n)throw new Ct(e);return Xa(n,a=a===t?a:gs(a))},Rn.reverse=$i,Rn.sampleSize=function(e,n,a){return n=(a?vi(e,n,a):n===t)?1:gs(n),(Ur(e)?Kn:Ka)(e,n)},Rn.set=function(t,e,n){return null==t?t:qa(t,e,n)},Rn.setWith=function(e,n,a,o){return o="function"==typeof o?o:t,null==e?e:qa(e,n,a,o)},Rn.shuffle=function(t){return(Ur(t)?qn:eo)(t)},Rn.slice=function(e,n,a){var o=null==e?0:e.length;return o?(a&&"number"!=typeof a&&vi(e,n,a)?(n=0,a=o):(n=null==n?0:gs(n),a=a===t?o:gs(a)),no(e,n,a)):[]},Rn.sortBy=Pr,Rn.sortedUniq=function(t){return t&&t.length?ro(t):[]},Rn.sortedUniqBy=function(t,e){return t&&t.length?ro(t,li(e,2)):[]},Rn.split=function(e,n,a){return a&&"number"!=typeof a&&vi(e,n,a)&&(n=a=t),(a=a===t?d:a>>>0)?(e=_s(e))&&("string"==typeof n||null!=n&&!os(n))&&!(n=lo(n))&&en(e)?bo(cn(e),0,a):e.split(n,a):[]},Rn.spread=function(t,n){if("function"!=typeof t)throw new Ct(e);return n=null==n?0:_n(gs(n),0),Xa(function(e){var a=e[n],o=bo(e,0,n);return a&&Se(o,a),be(t,this,o)})},Rn.tail=function(t){var e=null==t?0:t.length;return e?no(t,1,e):[]},Rn.take=function(e,n,a){return e&&e.length?no(e,0,(n=a||n===t?1:gs(n))<0?0:n):[]},Rn.takeRight=function(e,n,a){var o=null==e?0:e.length;return o?no(e,(n=o-(n=a||n===t?1:gs(n)))<0?0:n,o):[]},Rn.takeRightWhile=function(t,e){return t&&t.length?go(t,li(e,3),!1,!0):[]},Rn.takeWhile=function(t,e){return t&&t.length?go(t,li(e,3)):[]},Rn.tap=function(t,e){return e(t),t},Rn.throttle=function(t,n,a){var o=!0,i=!0;if("function"!=typeof t)throw new Ct(e);return $r(a)&&(o="leading"in a?!!a.leading:o,i="trailing"in a?!!a.trailing:i),Sr(t,n,{leading:o,maxWait:n,trailing:i})},Rn.thru=hr,Rn.toArray=us,Rn.toPairs=Vs,Rn.toPairsIn=zs,Rn.toPath=function(t){return Ur(t)?Te(t,ki):ss(t)?[t]:To(Di(_s(t)))},Rn.toPlainObject=ys,Rn.transform=function(t,e,n){var a=Ur(t),o=a||Yr(t)||ls(t);if(e=li(e,4),null==n){var i=t&&t.constructor;n=o?a?new i:[]:$r(t)&&Jr(i)?jn(Zt(t)):{}}return(o?xe:va)(t,function(t,a,o){return e(n,t,a,o)}),n},Rn.unary=function(t){return Lr(t,1)},Rn.union=tr,Rn.unionBy=er,Rn.unionWith=nr,Rn.uniq=function(t){return t&&t.length?co(t):[]},Rn.uniqBy=function(t,e){return t&&t.length?co(t,li(e,2)):[]},Rn.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?co(e,t,n):[]},Rn.unset=function(t,e){return null==t||uo(t,e)},Rn.unzip=ar,Rn.unzipWith=or,Rn.update=function(t,e,n){return null==t?t:ho(t,e,fo(n))},Rn.updateWith=function(e,n,a,o){return o="function"==typeof o?o:t,null==e?e:ho(e,n,fo(a),o)},Rn.values=Rs,Rn.valuesIn=function(t){return null==t?[]:Fe(t,Ms(t))},Rn.without=ir,Rn.words=Js,Rn.wrap=function(t,e){return kr(fo(e),t)},Rn.xor=rr,Rn.xorBy=sr,Rn.xorWith=lr,Rn.zip=cr,Rn.zipObject=function(t,e){return yo(t||[],e||[],ta)},Rn.zipObjectDeep=function(t,e){return yo(t||[],e||[],qa)},Rn.zipWith=dr,Rn.entries=Vs,Rn.entriesIn=zs,Rn.extend=vs,Rn.extendWith=ws,rl(Rn,Rn),Rn.add=_l,Rn.attempt=Ks,Rn.camelCase=js,Rn.capitalize=Gs,Rn.ceil=fl,Rn.clamp=function(e,n,a){return a===t&&(a=n,n=t),a!==t&&(a=(a=ps(a))==a?a:0),n!==t&&(n=(n=ps(n))==n?n:0),ra(ps(e),n,a)},Rn.clone=function(t){return sa(t,4)},Rn.cloneDeep=function(t){return sa(t,5)},Rn.cloneDeepWith=function(e,n){return sa(e,5,n="function"==typeof n?n:t)},Rn.cloneWith=function(e,n){return sa(e,4,n="function"==typeof n?n:t)},Rn.conformsTo=function(t,e){return null==e||la(t,e,Ss(e))},Rn.deburr=Hs,Rn.defaultTo=function(t,e){return null==t||t!=t?e:t},Rn.divide=vl,Rn.endsWith=function(e,n,a){e=_s(e),n=lo(n);var o=e.length,i=a=a===t?o:ra(gs(a),0,o);return(a-=n.length)>=0&&e.slice(a,i)==n},Rn.eq=Rr,Rn.escape=function(t){return(t=_s(t))&&Z.test(t)?t.replace(U,$e):t},Rn.escapeRegExp=function(t){return(t=_s(t))&&$.test(t)?t.replace(q,"\\$&"):t},Rn.every=function(e,n,a){var o=Ur(e)?Ee:ga;return a&&vi(e,n,a)&&(n=t),o(e,li(n,3))},Rn.find=pr,Rn.findIndex=Hi,Rn.findKey=function(t,e){return De(t,li(e,3),va)},Rn.findLast=yr,Rn.findLastIndex=Ui,Rn.findLastKey=function(t,e){return De(t,li(e,3),wa)},Rn.floor=wl,Rn.forEach=_r,Rn.forEachRight=fr,Rn.forIn=function(t,e){return null==t?t:_a(t,li(e,3),Ms)},Rn.forInRight=function(t,e){return null==t?t:fa(t,li(e,3),Ms)},Rn.forOwn=function(t,e){return t&&va(t,li(e,3))},Rn.forOwnRight=function(t,e){return t&&wa(t,li(e,3))},Rn.get=Es,Rn.gt=jr,Rn.gte=Gr,Rn.has=function(t,e){return null!=t&&pi(t,e,La)},Rn.hasIn=Ls,Rn.head=Zi,Rn.identity=nl,Rn.includes=function(t,e,n,a){t=Zr(t)?t:Rs(t),n=n&&!a?gs(n):0;var o=t.length;return n<0&&(n=_n(o+n,0)),rs(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&Ve(t,e,n)>-1},Rn.indexOf=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var o=null==n?0:gs(n);return o<0&&(o=_n(a+o,0)),Ve(t,e,o)},Rn.inRange=function(e,n,a){return n=hs(n),a===t?(a=n,n=0):a=hs(a),function(t,e,n){return t>=fn(e,n)&&t<_n(e,n)}(e=ps(e),n,a)},Rn.invoke=Ts,Rn.isArguments=Hr,Rn.isArray=Ur,Rn.isArrayBuffer=Wr,Rn.isArrayLike=Zr,Rn.isArrayLikeObject=Qr,Rn.isBoolean=function(t){return!0===t||!1===t||ts(t)&&Pa(t)==m},Rn.isBuffer=Yr,Rn.isDate=Fr,Rn.isElement=function(t){return ts(t)&&1===t.nodeType&&!as(t)},Rn.isEmpty=function(t){if(null==t)return!0;if(Zr(t)&&(Ur(t)||"string"==typeof t||"function"==typeof t.splice||Yr(t)||ls(t)||Hr(t)))return!t.length;var e=mi(t);if(e==v||e==P)return!t.size;if(xi(t))return!Da(t).length;for(var n in t)if(Bt.call(t,n))return!1;return!0},Rn.isEqual=function(t,e){return Ma(t,e)},Rn.isEqualWith=function(e,n,a){var o=(a="function"==typeof a?a:t)?a(e,n):t;return o===t?Ma(e,n,t,a):!!o},Rn.isError=Xr,Rn.isFinite=function(t){return"number"==typeof t&&mn(t)},Rn.isFunction=Jr,Rn.isInteger=Kr,Rn.isLength=qr,Rn.isMap=es,Rn.isMatch=function(t,e){return t===e||Ia(t,e,di(e))},Rn.isMatchWith=function(e,n,a){return a="function"==typeof a?a:t,Ia(e,n,di(n),a)},Rn.isNaN=function(t){return ns(t)&&t!=+t},Rn.isNative=function(t){if(Ai(t))throw new At("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Oa(t)},Rn.isNil=function(t){return null==t},Rn.isNull=function(t){return null===t},Rn.isNumber=ns,Rn.isObject=$r,Rn.isObjectLike=ts,Rn.isPlainObject=as,Rn.isRegExp=os,Rn.isSafeInteger=function(t){return Kr(t)&&t>=-9007199254740991&&t<=l},Rn.isSet=is,Rn.isString=rs,Rn.isSymbol=ss,Rn.isTypedArray=ls,Rn.isUndefined=function(e){return e===t},Rn.isWeakMap=function(t){return ts(t)&&mi(t)==N},Rn.isWeakSet=function(t){return ts(t)&&"[object WeakSet]"==Pa(t)},Rn.join=function(t,e){return null==t?"":pn.call(t,e)},Rn.kebabCase=Us,Rn.last=Xi,Rn.lastIndexOf=function(e,n,a){var o=null==e?0:e.length;if(!o)return-1;var i=o;return a!==t&&(i=(i=gs(a))<0?_n(o+i,0):fn(i,o-1)),n==n?function(t,e,n){for(var a=n+1;a--;)if(t[a]===e)return a;return a}(e,n,i):ke(e,Re,i,!0)},Rn.lowerCase=Ws,Rn.lowerFirst=Zs,Rn.lt=cs,Rn.lte=ds,Rn.max=function(e){return e&&e.length?ma(e,nl,Ea):t},Rn.maxBy=function(e,n){return e&&e.length?ma(e,li(n,2),Ea):t},Rn.mean=function(t){return je(t,nl)},Rn.meanBy=function(t,e){return je(t,li(e,2))},Rn.min=function(e){return e&&e.length?ma(e,nl,Va):t},Rn.minBy=function(e,n){return e&&e.length?ma(e,li(n,2),Va):t},Rn.stubArray=ml,Rn.stubFalse=pl,Rn.stubObject=function(){return{}},Rn.stubString=function(){return""},Rn.stubTrue=function(){return!0},Rn.multiply=bl,Rn.nth=function(e,n){return e&&e.length?Ha(e,gs(n)):t},Rn.noConflict=function(){return ce._===this&&(ce._=Rt),this},Rn.noop=sl,Rn.now=Er,Rn.pad=function(t,e,n){t=_s(t);var a=(e=gs(e))?ln(t):0;if(!e||a>=e)return t;var o=(e-a)/2;return Wo(Be(o),n)+t+Wo(me(o),n)},Rn.padEnd=function(t,e,n){t=_s(t);var a=(e=gs(e))?ln(t):0;return e&&a<e?t+Wo(e-a,n):t},Rn.padStart=function(t,e,n){t=_s(t);var a=(e=gs(e))?ln(t):0;return e&&a<e?Wo(e-a,n)+t:t},Rn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(_s(t).replace(tt,""),e||0)},Rn.random=function(e,n,a){if(a&&"boolean"!=typeof a&&vi(e,n,a)&&(n=a=t),a===t&&("boolean"==typeof n?(a=n,n=t):"boolean"==typeof e&&(a=e,e=t)),e===t&&n===t?(e=0,n=1):(e=hs(e),n===t?(n=e,e=0):n=hs(n)),e>n){var o=e;e=n,n=o}if(a||e%1||n%1){var i=bn();return fn(e+i*(n-e+ie("1e-"+((i+"").length-1))),n)}return Ya(e,n)},Rn.reduce=function(t,e,n){var a=Ur(t)?Me:Ue,o=arguments.length<3;return a(t,li(e,4),n,o,ua)},Rn.reduceRight=function(t,e,n){var a=Ur(t)?Ie:Ue,o=arguments.length<3;return a(t,li(e,4),n,o,ha)},Rn.repeat=function(e,n,a){return n=(a?vi(e,n,a):n===t)?1:gs(n),Fa(_s(e),n)},Rn.replace=function(){var t=arguments,e=_s(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Rn.result=function(e,n,a){var o=-1,i=(n=vo(n,e)).length;for(i||(i=1,e=t);++o<i;){var r=null==e?t:e[ki(n[o])];r===t&&(o=i,r=a),e=Jr(r)?r.call(e):r}return e},Rn.round=Al,Rn.runInContext=et,Rn.sample=function(t){return(Ur(t)?Jn:Ja)(t)},Rn.size=function(t){if(null==t)return 0;if(Zr(t))return rs(t)?ln(t):t.length;var e=mi(t);return e==v||e==P?t.size:Da(t).length},Rn.snakeCase=Qs,Rn.some=function(e,n,a){var o=Ur(e)?Oe:ao;return a&&vi(e,n,a)&&(n=t),o(e,li(n,3))},Rn.sortedIndex=function(t,e){return oo(t,e)},Rn.sortedIndexBy=function(t,e,n){return io(t,e,li(n,2))},Rn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var a=oo(t,e);if(a<n&&Rr(t[a],e))return a}return-1},Rn.sortedLastIndex=function(t,e){return oo(t,e,!0)},Rn.sortedLastIndexBy=function(t,e,n){return io(t,e,li(n,2),!0)},Rn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=oo(t,e,!0)-1;if(Rr(t[n],e))return n}return-1},Rn.startCase=Ys,Rn.startsWith=function(t,e,n){return t=_s(t),n=null==n?0:ra(gs(n),0,t.length),e=lo(e),t.slice(n,n+e.length)==e},Rn.subtract=xl,Rn.sum=function(t){return t&&t.length?We(t,nl):0},Rn.sumBy=function(t,e){return t&&t.length?We(t,li(e,2)):0},Rn.template=function(e,n,a){var o=Rn.templateSettings;a&&vi(e,n,a)&&(n=t),e=_s(e),n=ws({},n,o,qo);var i,r,s=ws({},n.imports,o.imports,qo),l=Ss(s),c=Fe(s,l),d=0,u=n.interpolate||yt,h="__p += '",g=Lt((n.escape||yt).source+"|"+u.source+"|"+(u===F?lt:yt).source+"|"+(n.evaluate||yt).source+"|$","g"),m="//# sourceURL="+(Bt.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ee+"]")+"\n";e.replace(g,function(t,n,a,o,s,l){return a||(a=o),h+=e.slice(d,l).replace(_t,tn),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(r=!0,h+="';\n"+s+";\n__p += '"),a&&(h+="' +\n((__t = ("+a+")) == null ? '' : __t) +\n'"),d=l+t.length,t}),h+="';\n";var p=Bt.call(n,"variable")&&n.variable;if(p){if(rt.test(p))throw new At("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(r?h.replace(R,""):h).replace(j,"$1").replace(G,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var y=Ks(function(){return xt(l,m+"return "+h).apply(t,c)});if(y.source=h,Xr(y))throw y;return y},Rn.times=function(t,e){if((t=gs(t))<1||t>l)return[];var n=d,a=fn(t,d);e=li(e),t-=d;for(var o=Ze(a,e);++n<t;)e(n);return o},Rn.toFinite=hs,Rn.toInteger=gs,Rn.toLength=ms,Rn.toLower=function(t){return _s(t).toLowerCase()},Rn.toNumber=ps,Rn.toSafeInteger=function(t){return t?ra(gs(t),-9007199254740991,l):0===t?t:0},Rn.toString=_s,Rn.toUpper=function(t){return _s(t).toUpperCase()},Rn.trim=function(e,n,a){if((e=_s(e))&&(a||n===t))return Qe(e);if(!e||!(n=lo(n)))return e;var o=cn(e),i=cn(n);return bo(o,Je(o,i),Ke(o,i)+1).join("")},Rn.trimEnd=function(e,n,a){if((e=_s(e))&&(a||n===t))return e.slice(0,dn(e)+1);if(!e||!(n=lo(n)))return e;var o=cn(e);return bo(o,0,Ke(o,cn(n))+1).join("")},Rn.trimStart=function(e,n,a){if((e=_s(e))&&(a||n===t))return e.replace(tt,"");if(!e||!(n=lo(n)))return e;var o=cn(e);return bo(o,Je(o,cn(n))).join("")},Rn.truncate=function(e,n){var a=30,o="...";if($r(n)){var i="separator"in n?n.separator:i;a="length"in n?gs(n.length):a,o="omission"in n?lo(n.omission):o}var r=(e=_s(e)).length;if(en(e)){var s=cn(e);r=s.length}if(a>=r)return e;var l=a-ln(o);if(l<1)return o;var c=s?bo(s,0,l).join(""):e.slice(0,l);if(i===t)return c+o;if(s&&(l+=c.length-l),os(i)){if(e.slice(l).search(i)){var d,u=c;for(i.global||(i=Lt(i.source,_s(ct.exec(i))+"g")),i.lastIndex=0;d=i.exec(u);)var h=d.index;c=c.slice(0,h===t?l:h)}}else if(e.indexOf(lo(i),l)!=l){var g=c.lastIndexOf(i);g>-1&&(c=c.slice(0,g))}return c+o},Rn.unescape=function(t){return(t=_s(t))&&W.test(t)?t.replace(H,un):t},Rn.uniqueId=function(t){var e=++Dt;return _s(t)+e},Rn.upperCase=Fs,Rn.upperFirst=Xs,Rn.each=_r,Rn.eachRight=fr,Rn.first=Zi,rl(Rn,(yl={},va(Rn,function(t,e){Bt.call(Rn.prototype,e)||(yl[e]=t)}),yl),{chain:!1}),Rn.VERSION="4.17.23",xe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Rn[t].placeholder=Rn}),xe(["drop","take"],function(e,n){Un.prototype[e]=function(a){a=a===t?1:_n(gs(a),0);var o=this.__filtered__&&!n?new Un(this):this.clone();return o.__filtered__?o.__takeCount__=fn(a,o.__takeCount__):o.__views__.push({size:fn(a,d),type:e+(o.__dir__<0?"Right":"")}),o},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),xe(["filter","map","takeWhile"],function(t,e){var n=e+1,a=1==n||3==n;Un.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:li(t,3),type:n}),e.__filtered__=e.__filtered__||a,e}}),xe(["head","last"],function(t,e){var n="take"+(e?"Right":"");Un.prototype[t]=function(){return this[n](1).value()[0]}}),xe(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Un.prototype[t]=function(){return this.__filtered__?new Un(this):this[n](1)}}),Un.prototype.compact=function(){return this.filter(nl)},Un.prototype.find=function(t){return this.filter(t).head()},Un.prototype.findLast=function(t){return this.reverse().find(t)},Un.prototype.invokeMap=Xa(function(t,e){return"function"==typeof t?new Un(this):this.map(function(n){return Ta(n,t,e)})}),Un.prototype.reject=function(t){return this.filter(Br(li(t)))},Un.prototype.slice=function(e,n){e=gs(e);var a=this;return a.__filtered__&&(e>0||n<0)?new Un(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),n!==t&&(a=(n=gs(n))<0?a.dropRight(-n):a.take(n-e)),a)},Un.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Un.prototype.toArray=function(){return this.take(d)},va(Un.prototype,function(e,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=Rn[o?"take"+("last"==n?"Right":""):n],r=o||/^find/.test(n);i&&(Rn.prototype[n]=function(){var n=this.__wrapped__,s=o?[1]:arguments,l=n instanceof Un,c=s[0],d=l||Ur(n),u=function(t){var e=i.apply(Rn,Se([t],s));return o&&h?e[0]:e};d&&a&&"function"==typeof c&&1!=c.length&&(l=d=!1);var h=this.__chain__,g=!!this.__actions__.length,m=r&&!h,p=l&&!g;if(!r&&d){n=p?n:new Un(this);var y=e.apply(n,s);return y.__actions__.push({func:hr,args:[u],thisArg:t}),new Hn(y,h)}return m&&p?e.apply(this,s):(y=this.thru(u),m?o?y.value()[0]:y.value():y)})}),xe(["pop","push","shift","sort","splice","unshift"],function(t){var e=Tt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",a=/^(?:pop|shift)$/.test(t);Rn.prototype[t]=function(){var t=arguments;if(a&&!this.__chain__){var o=this.value();return e.apply(Ur(o)?o:[],t)}return this[n](function(n){return e.apply(Ur(n)?n:[],t)})}}),va(Un.prototype,function(t,e){var n=Rn[e];if(n){var a=n.name+"";Bt.call(Sn,a)||(Sn[a]=[]),Sn[a].push({name:e,func:n})}}),Sn[jo(t,2).name]=[{name:"wrapper",func:t}],Un.prototype.clone=function(){var t=new Un(this.__wrapped__);return t.__actions__=To(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=To(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=To(this.__views__),t},Un.prototype.reverse=function(){if(this.__filtered__){var t=new Un(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Un.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ur(t),a=e<0,o=n?t.length:0,i=function(t,e,n){for(var a=-1,o=n.length;++a<o;){var i=n[a],r=i.size;switch(i.type){case"drop":t+=r;break;case"dropRight":e-=r;break;case"take":e=fn(e,t+r);break;case"takeRight":t=_n(t,e-r)}}return{start:t,end:e}}(0,o,this.__views__),r=i.start,s=i.end,l=s-r,c=a?s:r-1,d=this.__iteratees__,u=d.length,h=0,g=fn(l,this.__takeCount__);if(!n||!a&&o==l&&g==l)return mo(t,this.__actions__);var m=[];t:for(;l--&&h<g;){for(var p=-1,y=t[c+=e];++p<u;){var _=d[p],f=_.iteratee,v=_.type,w=f(y);if(2==v)y=w;else if(!w){if(1==v)continue t;break t}}m[h++]=y}return m},Rn.prototype.at=gr,Rn.prototype.chain=function(){return ur(this)},Rn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Rn.prototype.next=function(){this.__values__===t&&(this.__values__=us(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},Rn.prototype.plant=function(e){for(var n,a=this;a instanceof Gn;){var o=zi(a);o.__index__=0,o.__values__=t,n?i.__wrapped__=o:n=o;var i=o;a=a.__wrapped__}return i.__wrapped__=e,n},Rn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var n=e;return this.__actions__.length&&(n=new Un(this)),(n=n.reverse()).__actions__.push({func:hr,args:[$i],thisArg:t}),new Hn(n,this.__chain__)}return this.thru($i)},Rn.prototype.toJSON=Rn.prototype.valueOf=Rn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Rn.prototype.first=Rn.prototype.head,oe&&(Rn.prototype[oe]=function(){return this}),Rn}();ue?((ue.exports=hn)._=hn,de._=hn):ce._=hn}.call(wi.exports)),wi.exports);let Ci=Li=class extends dt{constructor(){super(...arguments),this._configVersion=0,this._lastCachedVersion=-1,this._computeHelperCallback=t=>{if(!t||"object"!=typeof t)return;const e=t.name;if(e){if(Li.PATTERN_LOAD_NAME.test(e))return"Label for additional load.";if(Li.PATTERN_LOAD_ICON.test(e))return"Additional load icon (Can be set via template sensor).";if(Li.PATTERN_LOAD_SWITCH.test(e))return"Switch entity to control this additional load (optional).";if(Li.PATTERN_LOAD_THRESHOLD.test(e))return"Set the threshold that will activate the Max Colour.";if(Li.PATTERN_AUX_LOAD_NAME.test(e))return"Label for auxiliary load.";if(Li.PATTERN_AUX_LOAD_ICON.test(e))return"Icon will be used for this auxiliary load.";if(Li.PATTERN_PV_NAME.test(e))return"Custom label for a PV input.";if("mppts"===e)return"Number of MPPT inputs available on your inverter.";if("three_phase"===e)return"Enable if your system/card should display in three-phase mode.";if(Li.PATTERN_SHOW_SECTION.test(e))return"Show or hide this section in the card.";if(Li.PATTERN_SHOW_DAILY.test(e))return"Display daily energy on the card.";if("auto_scale"===e)return"Automatically scale values based on recent ranges.";if(Li.PATTERN_ANY_NAME.test(e))return"Custom label shown in the UI.";if(Li.PATTERN_DYNAMIC_ICON.test(e))return"The icon will change to represent power source.";if(Li.PATTERN_ANY_SWITCH.test(e))return"Optional switch entity to control this element.";if(Li.PATTERN_MAX_THRESHOLD.test(e))return"Maximum threshold used for progress/flow scaling.";if(Li.PATTERN_DYNAMIC_COLOUR.test(e))return"Change colour dynamically based on power level.";if(Li.PATTERN_ANY_COLOUR.test(e))return"Primary colour for this element.";if(Li.PATTERN_OFF_COLOUR.test(e))return"Colour used when the element is off/idle.";if(Li.PATTERN_MAX_POWER.test(e))return"Optional cap used for scaling and progress calculations.";if("max_line_width"===e||"min_line_width"===e){return Number(this._config?.min_line_width??1)>Number(this._config?.max_line_width??1)?"Warning: min_line_width is greater than max_line_width.":"max_line_width"===e?"Maximum dynamic line width (1-8).":"Minimum dynamic line width (1-8)."}return Li.HELP_TEXT[e]}},this._computeLabelCallback=t=>{if("string"==typeof t?.label&&t.label.trim())return t.label;if("string"==typeof t?.title&&t.title.trim())return t.title;const e="string"==typeof t?.name?t.name:"";if(!e)return"";const n=this._t("config.".concat(e),this._prettyLabel(e)),a=this._config;switch(e){case"show_solar":return this._withSuffix(n,Boolean(a.show_solar));case"show_battery":return this._withSuffix(n,Boolean(a.show_battery));case"show_grid":return this._withSuffix(n,Boolean(a.show_grid));case"dynamic_line_width":{if(!Boolean(a.dynamic_line_width))return"".concat(n," (").concat(this._t("config.inline.disabled","disabled"),")");const t=a.max_line_width,e=a.min_line_width;return"number"==typeof t&&"number"==typeof e?"".concat(n," (min ").concat(e," – max ").concat(t,")"):"".concat(n," (").concat(this._t("config.inline.enabled","enabled"),")")}case"three_phase":{const t=Boolean(a?.inverter&&a.inverter.three_phase)?"3P":"1P";return"".concat(n," (").concat(t,")")}default:return n}}}static _toFiniteNum(t){if("number"==typeof t&&Number.isFinite(t))return t;if("string"==typeof t&&""!==t.trim()){const e=Number(t);return Number.isFinite(e)?e:void 0}}static _clamp255(t){return Math.max(0,Math.min(255,Math.round(t)))}static get styles(){return r(xi||(xi=Ot(["\n\t\t\t:host {\n\t\t\t\tdisplay: block;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t\tha-form {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t/* No global grid column override; Entities section is scoped via schema */\n\t\t"])))}_prettyLabel(t){const e=Li._labelCache.get(t);if(e)return e;const n=t.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase());return Li._labelCache.set(t,n),n}_t(t,e){try{const e=Ln(t);if("string"==typeof e){const n=e.toLowerCase();if(e&&e!==t&&"unknown"!==n&&"undefined"!==n)return e}}catch{}return e}_normalizeColor(t){if(null==t)return;if("object"==typeof t){let e,n,a;if(Array.isArray(t)&&t.length>=3)[e,n,a]=t;else{const o=t;e=o.r,n=o.g,a=o.b}const o=Li._toFiniteNum(e),i=Li._toFiniteNum(n),r=Li._toFiniteNum(a);if(void 0===o||void 0===i||void 0===r)return;const s=t=>Li._clamp255(t).toString(16).padStart(2,"0");return"#".concat(s(o)).concat(s(i)).concat(s(r))}if("string"!=typeof t)return;const e=t.trim(),n=e.toLowerCase();let a=Li.COLOR_NAME_MAP[n]??e;const o=/^#([0-9a-f]{3})$/i.exec(a);if(o){const[t,e,n]=o[1].split("");a="#".concat(t).concat(t).concat(e).concat(e).concat(n).concat(n)}return/^#([0-9a-f]{6})$/i.test(a)?a:void 0}_toRgb(t){if(null!=t){if(Array.isArray(t)&&t.length>=3){const[e,n,a]=t,o=Li._toFiniteNum(e),i=Li._toFiniteNum(n),r=Li._toFiniteNum(a);if(null==o||null==i||null==r)return;return[Li._clamp255(o),Li._clamp255(i),Li._clamp255(r)]}if("object"==typeof t){const e=t,n=Li._toFiniteNum(e.r),a=Li._toFiniteNum(e.g),o=Li._toFiniteNum(e.b);if(null!=n&&null!=a&&null!=o)return[Li._clamp255(n),Li._clamp255(a),Li._clamp255(o)]}if("string"==typeof t){const e=t.trim(),n=/^rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/.exec(e);if(n)return[Li._clamp255(Number(n[1])),Li._clamp255(Number(n[2])),Li._clamp255(Number(n[3]))];const a=this._normalizeColor(e);if(!a)return;return[parseInt(a.slice(1,3),16),parseInt(a.slice(3,5),16),parseInt(a.slice(5,7),16)]}}}_toCssColor(t){if(null==t)return;if("string"==typeof t&&t.trim().startsWith("var("))return t.trim();const e=this._normalizeColor(t);return e||("string"==typeof t?t:void 0)}static _getStr(t,e){if(!t||"object"!=typeof t)return;const n=t[e];return"string"==typeof n?n:void 0}_normalizeColorsInObject(t){if(Array.isArray(t))return t;if(!t||"object"!=typeof t)return t;const e=t;for(const[t,n]of Object.entries(e))"string"==typeof t&&Li.PATTERN_COLOUR_SUFFIX.test(t)&&!Li.PATTERN_DYNAMIC_COLOUR_SUFFIX.test(t)?e[t]=this._normalizeColor(n)??void 0:n&&"object"==typeof n&&(e[t]=this._normalizeColorsInObject(n));return e}_convertSectionColours(t,e){if(!t)return;const n={...t};for(const a of e)n[a]=this._toRgb(t[a])??void 0;return n}_sanitizedConfig(){if(this._cachedSanitizedConfig&&this._lastCachedVersion===this._configVersion)return this._cachedSanitizedConfig;const t=this._config,e={...this._config};return e.title_colour=this._toRgb(t.title_colour)??void 0,e.inverter=this._convertSectionColours(t.inverter,["colour"]),e.solar=this._convertSectionColours(t.solar,["colour"]),e.battery=this._convertSectionColours(t.battery,["colour","charge_colour"]),e.battery2=this._convertSectionColours(t.battery2,["colour","charge_colour"]),e.load=this._convertSectionColours(t.load,["colour","off_colour","max_colour","aux_colour","aux_off_colour"]),e.grid=this._convertSectionColours(t.grid,["colour","no_grid_colour","export_colour","grid_off_colour"]),this._cachedSanitizedConfig=e,this._lastCachedVersion=this._configVersion,this._cachedSanitizedConfig}setConfig(t){const e=JSON.parse(JSON.stringify(t));this._normalizeColorsInObject(e),this._config={...Gt,...this._config,...e},this._configVersion++}render(){if(!this._config||!this.hass)return W(Pi||(Pi=Ot([""])));const t=[{name:"large_font",selector:{boolean:{}}},{name:"wide",selector:{boolean:{}}},{name:"card_height",selector:{text:{}}},{name:"card_width",selector:{text:{}}},{name:"show_solar",selector:{boolean:{}}},{name:"show_battery",selector:{boolean:{}}},{name:"show_grid",selector:{boolean:{}}},{name:"center_no_grid",selector:{boolean:{}}},{name:"decimal_places",selector:{number:{min:0,max:3,step:1,mode:"box"}}},{name:"decimal_places_energy",selector:{number:{min:0,max:3,step:1,mode:"box"}}},{name:"dynamic_line_width",selector:{boolean:{}}}];return this._config.dynamic_line_width&&t.push({name:"max_line_width",selector:{number:{min:1,max:8,step:1,mode:"box"}}},{name:"min_line_width",selector:{number:{min:1,max:8,step:1,mode:"box"}}}),W(Ei||(Ei=Ot(["\n\t\t\t<ha-form\n\t\t\t\t.hass=","\n\t\t\t\t.data=","\n\t\t\t\t.computeLabel=","\n\t\t\t\t.computeHelper=","\n\t\t\t\t.schema=","\n\t\t\t\t@value-changed=","\n\t\t\t></ha-form>\n\t\t"])),this.hass,this._sanitizedConfig(),this._computeLabelCallback.bind(this),this._computeHelperCallback.bind(this),[{type:"expandable",title:this._title("title"),schema:[{type:"grid",schema:[{name:"title",selector:{text:{}}},{name:"title_colour",selector:{color_rgb:{}}},{name:"title_size",selector:{text:{}}}]}]},{name:"cardstyle",selector:{select:{options:Object.values(Rt).map(t=>({label:Ni.capitalize(t),value:t}))}}},{type:"expandable",title:this._title("general"),schema:[{type:"grid",schema:t},{type:"expandable",title:this._title("sensor"),schema:[{type:"grid",schema:[{name:"card_height",selector:{entity:{}}},{name:"card_width",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("inverter"),schema:[{name:"inverter",type:"grid",schema:[{name:"three_phase",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"model",selector:{select:{options:Object.values(zt).map(t=>({label:Ni.capitalize(t),value:t}))}}},{name:"modern",selector:{boolean:{}}},{name:"autarky",selector:{select:{options:Object.values(jt).map(t=>({label:Ni.capitalize(t),value:t}))}}},{name:"colour",selector:{color_rgb:{}}},{name:"navigate",selector:{text:{}}},{name:"label_autarky",selector:{text:{}}},{name:"label_ratio",selector:{text:{}}}]}]},...this._config.show_solar?[{type:"expandable",title:this._title("solar"),schema:[{name:"solar",type:"grid",schema:[{name:"mppts",selector:{number:{min:1,max:6}}},{name:"show_daily",selector:{boolean:{}}},{name:"pv1_name",selector:{text:{}}},{name:"pv2_name",selector:{text:{}}},{name:"pv3_name",selector:{text:{}}},{name:"pv4_name",selector:{text:{}}},{name:"pv5_name",selector:{text:{}}},{name:"pv6_name",selector:{text:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"display_mode",selector:{number:{mode:"box",min:1,max:3}}},{name:"colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"pv1_max_power",selector:{number:{}}},{name:"pv2_max_power",selector:{number:{}}},{name:"pv3_max_power",selector:{number:{}}},{name:"pv4_max_power",selector:{number:{}}},{name:"pv5_max_power",selector:{number:{}}},{name:"pv6_max_power",selector:{number:{}}},{name:"efficiency",selector:{number:{mode:"box",min:0,max:3}}},{name:"off_threshold",selector:{number:{}}},{name:"navigate",selector:{text:{}}},{name:"custom_label",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"solar",type:"grid",schema:[{name:"max_power",selector:{entity:{}}},{name:"pv1_max_power",selector:{entity:{}}},{name:"pv2_max_power",selector:{entity:{}}},{name:"pv3_max_power",selector:{entity:{}}},{name:"pv4_max_power",selector:{entity:{}}},{name:"pv5_max_power",selector:{entity:{}}},{name:"pv6_max_power",selector:{entity:{}}}]}]}]}]:[],...this._config.show_battery?[{type:"expandable",title:this._title("battery"),schema:[{name:"battery",type:"grid",schema:[{name:"count",selector:{number:{mode:"box",min:1,max:2}}},{name:"show_daily",selector:{boolean:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"path_threshold",selector:{number:{}}},{name:"label_daily_chrg",selector:{text:{}}},{name:"label_daily_dischrg",selector:{text:{}}}]},{type:"expandable",title:this._title("bat1"),schema:[{name:"battery",type:"grid",schema:[{name:"energy",selector:{number:{min:0}}},{name:"shutdown_soc",selector:{number:{mode:"box",min:0,max:100}}},{name:"shutdown_soc_offgrid",selector:{number:{mode:"box",min:0,max:100}}},{name:"soc_end_of_charge",selector:{number:{mode:"box",min:80,max:100}}},{name:"soc_decimal_places",selector:{number:{min:0,max:3,step:1,mode:"box"}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_power",selector:{boolean:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"charge_colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"linear_gradient",selector:{boolean:{}}},{name:"animate",selector:{boolean:{}}},{name:"hide_soc",selector:{boolean:{}}},{name:"show_remaining_energy",selector:{boolean:{}}},{name:"remaining_energy_to_shutdown",selector:{boolean:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"battery",type:"grid",schema:[{name:"energy",selector:{entity:{}}},{name:"shutdown_soc",selector:{entity:{}}},{name:"shutdown_soc_offgrid",selector:{entity:{}}},{name:"soc_end_of_charge",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},...2===Number(this._config.battery?.count??1)?[{type:"expandable",title:this._title("bat2"),schema:[{name:"battery2",type:"grid",schema:[{name:"energy",selector:{number:{min:0}}},{name:"shutdown_soc",selector:{number:{mode:"box",min:0,max:100}}},{name:"shutdown_soc_offgrid",selector:{number:{mode:"box",min:0,max:100}}},{name:"soc_end_of_charge",selector:{number:{mode:"box",min:80,max:100}}},{name:"soc_decimal_places",selector:{number:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_power",selector:{boolean:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"charge_colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"linear_gradient",selector:{boolean:{}}},{name:"animate",selector:{boolean:{}}},{name:"hide_soc",selector:{boolean:{}}},{name:"show_remaining_energy",selector:{boolean:{}}},{name:"remaining_energy_to_shutdown",selector:{boolean:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"battery2",type:"grid",schema:[{name:"energy",selector:{entity:{}}},{name:"shutdown_soc",selector:{entity:{}}},{name:"shutdown_soc_offgrid",selector:{entity:{}}},{name:"soc_end_of_charge",selector:{entity:{}}}]}]}]}]:[]]}]:[],{type:"expandable",title:this._title("load"),schema:[{name:"load",type:"grid",schema:[{name:"show_daily",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"off_colour",selector:{color_rgb:{}}},{name:"max_colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"dynamic_icon",selector:{boolean:{}}},{name:"invert_load",selector:{boolean:{}}},{name:"essential_name",selector:{text:{}}},{name:"additional_loads",selector:{number:{mode:"box",min:0,max:6}}},...(this._config.load?.additional_loads??0)>=1?[{name:"load1_name",selector:{text:{}}},{name:"load1_icon",selector:{icon:{}}},{name:"load1_switch",selector:{entity:{}}},{name:"load1_max_threshold",selector:{number:{}}}]:[],...(this._config.load?.additional_loads??0)>=2?[{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load2_switch",selector:{entity:{}}},{name:"load2_max_threshold",selector:{number:{}}}]:[],...(this._config.load?.additional_loads??0)>=3?[{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"load3_switch",selector:{entity:{}}},{name:"load3_max_threshold",selector:{number:{}}}]:[],...(this._config.load?.additional_loads??0)>=4?[{name:"load4_name",selector:{text:{}}},{name:"load4_icon",selector:{icon:{}}},{name:"load4_switch",selector:{entity:{}}},{name:"load4_max_threshold",selector:{number:{}}}]:[],...(this._config.load?.additional_loads??0)>=5?[{name:"load5_name",selector:{text:{}}},{name:"load5_icon",selector:{icon:{}}},{name:"load5_switch",selector:{entity:{}}},{name:"load5_max_threshold",selector:{number:{}}}]:[],...(this._config.load?.additional_loads??0)>=6?[{name:"load6_name",selector:{text:{}}},{name:"load6_icon",selector:{icon:{}}},{name:"load6_switch",selector:{entity:{}}},{name:"load6_max_threshold",selector:{number:{}}}]:[],{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"off_threshold",selector:{number:{}}},{name:"path_threshold",selector:{number:{}}},{name:"navigate",selector:{text:{}}},{name:"label_daily_load",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}},{name:"show_aux",selector:{boolean:{}}}]},...this._config.load?.show_aux?[{type:"expandable",title:this._title("aux"),schema:[{name:"load",type:"grid",schema:[{name:"aux_name",selector:{text:{}}},{name:"aux_daily_name",selector:{text:{}}},{name:"aux_type",selector:{icon:{}}},{name:"invert_aux",selector:{boolean:{}}},{name:"show_absolute_aux",selector:{boolean:{}}},{name:"aux_dynamic_colour",selector:{boolean:{}}},{name:"aux_colour",selector:{color_rgb:{}}},{name:"aux_off_colour",selector:{color_rgb:{}}},{name:"aux_loads",selector:{number:{mode:"box",min:0,max:2}}},...(this._config.load?.aux_loads??0)>=1?[{name:"aux_load1_name",selector:{text:{}}},{name:"aux_load1_icon",selector:{icon:{}}}]:[],...(this._config.load?.aux_loads??0)>=2?[{name:"aux_load2_name",selector:{text:{}}},{name:"aux_load2_icon",selector:{icon:{}}}]:[],{name:"show_daily_aux",selector:{boolean:{}}}]}]}]:[],{type:"expandable",title:this._title("sensor"),schema:[{name:"load",type:"grid",schema:[...(this._config.load?.additional_loads??0)>=1?[{name:"load1_icon",selector:{entity:{}}}]:[],...(this._config.load?.additional_loads??0)>=2?[{name:"load2_icon",selector:{entity:{}}}]:[],...(this._config.load?.additional_loads??0)>=3?[{name:"load3_icon",selector:{entity:{}}}]:[],...(this._config.load?.additional_loads??0)>=4?[{name:"load4_icon",selector:{entity:{}}}]:[],...(this._config.load?.aux_loads??0)>=1?[{name:"aux_load1_icon",selector:{entity:{}}}]:[],...(this._config.load?.aux_loads??0)>=2?[{name:"aux_load2_icon",selector:{entity:{}}}]:[],{name:"max_power",selector:{entity:{}}}]}]}]},...this._config.show_grid?[{type:"expandable",title:this._title("grid"),schema:[{name:"grid",type:"grid",schema:[{name:"show_daily_buy",selector:{boolean:{}}},{name:"show_daily_sell",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_grid",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"no_grid_colour",selector:{color_rgb:{}}},{name:"export_colour",selector:{color_rgb:{}}},{name:"grid_off_colour",selector:{color_rgb:{}}},{name:"grid_name",selector:{text:{}}},{name:"label_daily_grid_buy",selector:{text:{}}},{name:"label_daily_grid_sell",selector:{text:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"energy_cost_decimals",selector:{number:{mode:"box",min:0,max:3}}},{name:"show_nonessential",selector:{boolean:{}}},{name:"additional_loads",selector:{number:{mode:"box",min:0,max:3}}},{name:"nonessential_name",selector:{text:{}}},{name:"nonessential_icon",selector:{icon:{}}},{name:"load1_name",selector:{text:{}}},{name:"load1_icon",selector:{icon:{}}},{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"off_threshold",selector:{number:{}}},{name:"import_icon",selector:{icon:{}}},{name:"export_icon",selector:{icon:{}}},{name:"disconnected_icon",selector:{icon:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"grid",type:"grid",schema:[{name:"load1_icon",selector:{entity:{}}},{name:"load2_icon",selector:{entity:{}}},{name:"load3_icon",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}},{name:"import_icon",selector:{entity:{}}},{name:"export_icon",selector:{entity:{}}},{name:"disconnected_icon",selector:{entity:{}}}]}]}]}]:[],{type:"expandable",title:this._title("entities"),schema:[{type:"expandable",title:this._title("sol"),schema:[{name:"entities",type:"grid",schema:[{name:"day_pv_energy_108",selector:{entity:{device_class:Jt.ENERGY}}},{name:"pv1_power_186",selector:{entity:{device_class:Jt.POWER}}},{name:"pv2_power_187",selector:{entity:{device_class:Jt.POWER}}},{name:"pv3_power_188",selector:{entity:{device_class:Jt.POWER}}},{name:"pv4_power_189",selector:{entity:{device_class:Jt.POWER}}},{name:"pv5_power",selector:{entity:{device_class:Jt.POWER}}},{name:"pv6_power",selector:{entity:{device_class:Jt.POWER}}},{name:"pv1_voltage_109",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"pv1_current_110",selector:{entity:{device_class:Jt.CURRENT}}},{name:"pv2_voltage_111",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"pv2_current_112",selector:{entity:{device_class:Jt.CURRENT}}},{name:"pv3_voltage_113",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"pv3_current_114",selector:{entity:{device_class:Jt.CURRENT}}},{name:"pv4_voltage_115",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"pv4_current_116",selector:{entity:{device_class:Jt.CURRENT}}},{name:"pv5_voltage",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"pv5_current",selector:{entity:{device_class:Jt.CURRENT}}},{name:"pv6_voltage",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"pv6_current",selector:{entity:{device_class:Jt.CURRENT}}},{name:"pv_total",selector:{entity:{device_class:Jt.POWER}}},{name:"solar_sell_247",selector:{entity:{}}},{name:"total_pv_generation",selector:{entity:{device_class:Jt.ENERGY}}},{name:"remaining_solar",selector:{entity:{device_class:Jt.ENERGY}}},{name:"environment_temp",selector:{entity:{device_class:Jt.TEMPERATURE}}}]}]},{type:"expandable",title:this._title("bat"),schema:[{name:"entities",type:"grid",schema:[{name:"day_battery_charge_70",selector:{entity:{device_class:Jt.ENERGY}}},{name:"day_battery_discharge_71",selector:{entity:{device_class:Jt.ENERGY}}}]},{type:"expandable",title:this._title("bat1"),schema:[{name:"entities",type:"grid",schema:[{name:"battery_power_190",selector:{entity:{device_class:Jt.POWER}}},{name:"battery_current_191",selector:{entity:{device_class:Jt.CURRENT}}},{name:"battery_temp_182",selector:{entity:{device_class:Jt.TEMPERATURE}}},{name:"battery_voltage_183",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"battery_soc_184",selector:{entity:{device_class:Jt.BATTERY}}},{name:"battery_rated_capacity",selector:{entity:{}}},{name:"battery_soh",selector:{entity:{}}},{name:"battery_current_direction",selector:{entity:{}}},{name:"battery_status",selector:{entity:{}}}]}]},...2===Number(this._config.battery?.count??1)?[{type:"expandable",title:this._title("bat2"),schema:[{name:"entities",type:"grid",schema:[{name:"battery2_power_190",selector:{entity:{device_class:Jt.POWER}}},{name:"battery2_current_191",selector:{entity:{device_class:Jt.CURRENT}}},{name:"battery2_temp_182",selector:{entity:{device_class:Jt.TEMPERATURE}}},{name:"battery2_voltage_183",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"battery2_soc_184",selector:{entity:{device_class:Jt.BATTERY}}},{name:"battery2_rated_capacity",selector:{entity:{}}},{name:"battery2_soh",selector:{entity:{}}},{name:"battery2_current_direction",selector:{entity:{}}},{name:"battery2_status",selector:{entity:{}}}]}]}]:[]]},{type:"expandable",title:this._title("inv"),schema:[{name:"entities",type:"grid",schema:[{name:"inverter_status_59",selector:{entity:{}}},{name:"use_timer_248",selector:{entity:{}}},{name:"priority_load_243",selector:{entity:{}}},{name:"inverter_voltage_154",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"inverter_voltage_L2",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"inverter_voltage_L3",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"load_frequency_192",selector:{entity:{device_class:Jt.FREQUENCY}}},{name:"inverter_current_164",selector:{entity:{device_class:Jt.CURRENT}}},{name:"inverter_current_L2",selector:{entity:{device_class:Jt.CURRENT}}},{name:"inverter_current_L3",selector:{entity:{device_class:Jt.CURRENT}}},{name:"inverter_power_175",selector:{entity:{device_class:Jt.POWER}}},{name:"grid_power_169",selector:{entity:{device_class:Jt.POWER}}},{name:"dc_transformer_temp_90",selector:{entity:{device_class:Jt.TEMPERATURE}}},{name:"radiator_temp_91",selector:{entity:{device_class:Jt.TEMPERATURE}}},{name:"prog1_time",selector:{entity:{}}},{name:"prog1_capacity",selector:{entity:{}}},{name:"prog1_charge",selector:{entity:{}}},{name:"prog2_time",selector:{entity:{}}},{name:"prog2_capacity",selector:{entity:{}}},{name:"prog2_charge",selector:{entity:{}}},{name:"prog3_time",selector:{entity:{}}},{name:"prog3_capacity",selector:{entity:{}}},{name:"prog3_charge",selector:{entity:{}}},{name:"prog4_time",selector:{entity:{}}},{name:"prog4_capacity",selector:{entity:{}}},{name:"prog4_charge",selector:{entity:{}}},{name:"prog5_time",selector:{entity:{}}},{name:"prog5_capacity",selector:{entity:{}}},{name:"prog5_charge",selector:{entity:{}}},{name:"prog6_time",selector:{entity:{}}},{name:"prog6_capacity",selector:{entity:{}}},{name:"prog6_charge",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("ld"),schema:[{name:"entities",type:"grid",schema:[{name:"day_load_energy_84",selector:{entity:{device_class:Jt.ENERGY}}},{name:"day_aux_energy",selector:{entity:{device_class:Jt.ENERGY}}},{name:"essential_power",selector:{entity:{device_class:Jt.POWER}}},{name:"essential_load1",selector:{entity:{device_class:Jt.POWER}}},{name:"essential_load2",selector:{entity:{device_class:Jt.POWER}}},{name:"essential_load3",selector:{entity:{device_class:Jt.POWER}}},{name:"essential_load4",selector:{entity:{device_class:Jt.POWER}}},{name:"essential_load5",selector:{entity:{device_class:Jt.POWER}}},{name:"essential_load6",selector:{entity:{device_class:Jt.POWER}}},{name:"essential_load1_extra",selector:{entity:{}}},{name:"essential_load2_extra",selector:{entity:{}}},{name:"essential_load3_extra",selector:{entity:{}}},{name:"essential_load4_extra",selector:{entity:{}}},{name:"essential_load5_extra",selector:{entity:{}}},{name:"essential_load6_extra",selector:{entity:{}}},{name:"load_power_L1",selector:{entity:{device_class:Jt.POWER}}},{name:"load_power_L2",selector:{entity:{device_class:Jt.POWER}}},{name:"load_power_L3",selector:{entity:{device_class:Jt.POWER}}},{name:"aux_power_166",selector:{entity:{device_class:Jt.POWER}}},{name:"aux_load1",selector:{entity:{device_class:Jt.POWER}}},{name:"aux_load2",selector:{entity:{device_class:Jt.POWER}}},{name:"aux_load1_extra",selector:{entity:{}}},{name:"aux_load2_extra",selector:{entity:{}}},{name:"aux_connected_status",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("gri"),schema:[{name:"entities",type:"grid",schema:[{name:"day_grid_import_76",selector:{entity:{device_class:Jt.ENERGY}}},{name:"day_grid_export_77",selector:{entity:{device_class:Jt.ENERGY}}},{name:"grid_ct_power_172",selector:{entity:{device_class:Jt.POWER}}},{name:"grid_ct_power_L2",selector:{entity:{device_class:Jt.POWER}}},{name:"grid_ct_power_L3",selector:{entity:{device_class:Jt.POWER}}},{name:"grid_ct_power_total",selector:{entity:{device_class:Jt.POWER}}},{name:"grid_voltage",selector:{entity:{device_class:Jt.VOLTAGE}}},{name:"nonessential_power",selector:{entity:{device_class:Jt.POWER}}},{name:"non_essential_load1",selector:{entity:{device_class:Jt.POWER}}},{name:"non_essential_load2",selector:{entity:{device_class:Jt.POWER}}},{name:"non_essential_load3",selector:{entity:{device_class:Jt.POWER}}},{name:"non_essential_load1_extra",selector:{entity:{}}},{name:"non_essential_load2_extra",selector:{entity:{}}},{name:"non_essential_load3_extra",selector:{entity:{}}},{name:"grid_connected_status_194",selector:{entity:{}}},{name:"energy_cost_buy",selector:{entity:{}}},{name:"energy_cost_sell",selector:{entity:{}}},{name:"prepaid_units",selector:{entity:{}}},{name:"max_sell_power",selector:{entity:{device_class:Jt.POWER}}}]}]}]}],this._valueChanged.bind(this))}_emitConfig(t){this._config=t,this._configVersion++,this._cachedSanitizedConfig=void 0,this._lastCachedVersion=-1,Dn(this,"config-changed",{config:t})}_withSuffix(t,e){const n=e?"config.inline.shown":"config.inline.hidden",a=e?"shown":"hidden";return"".concat(t," (").concat(this._t(n,a),")")}_title(t){return this._t("config.cat_title.".concat(t),t)}_valueChanged(t){const e=t.detail.value,n=JSON.parse(JSON.stringify(e));if(this._normalizeColorsInObject(n),n&&"object"==typeof n&&n.dynamic_line_width){const t=(t,e,n)=>{const a=Li._toFiniteNum(t);if(void 0!==a)return Math.max(e,Math.min(n,Math.round(a)))},e=t(n.max_line_width,1,8),a=t(n.min_line_width,1,8);void 0!==e&&(n.max_line_width=e),void 0!==a&&(n.min_line_width=a);const o=n.max_line_width,i=n.min_line_width;"number"==typeof i&&"number"==typeof o&&i>o&&(n.min_line_width=o)}this._emitConfig(n)}};Ci._labelCache=new Map,Ci.COLOR_NAME_MAP={grey:"#9e9e9e",gray:"#9e9e9e",pink:"#ffc0cb",orange:"#ffa500",red:"#ff0000",green:"#008000",blue:"#0000ff",yellow:"#ffff00",purple:"#800080",black:"#000000",white:"#ffffff"},Ci.PATTERN_LOAD_NAME=/^load\d+_name$/,Ci.PATTERN_LOAD_ICON=/^load\d+_icon$/,Ci.PATTERN_LOAD_SWITCH=/^load\d+_switch$/,Ci.PATTERN_LOAD_THRESHOLD=/^load\d+_max_threshold$/,Ci.PATTERN_AUX_LOAD_NAME=/^aux_load\d+_name$/,Ci.PATTERN_AUX_LOAD_ICON=/^aux_load\d+_icon$/,Ci.PATTERN_PV_NAME=/^pv[1-6]_name$/,Ci.PATTERN_SHOW_SECTION=/^show_(inverter|battery|battery2|solar|load|grid)$/,Ci.PATTERN_SHOW_DAILY=/^show_daily(_.*)?$/,Ci.PATTERN_ANY_NAME=/^.*_name$/,Ci.PATTERN_DYNAMIC_ICON=/dynamic_icon$/,Ci.PATTERN_ANY_SWITCH=/^.*_switch$/,Ci.PATTERN_MAX_THRESHOLD=/^.*_max_threshold$/,Ci.PATTERN_DYNAMIC_COLOUR=/dynamic_colour$/,Ci.PATTERN_ANY_COLOUR=/^.*_colour$/,Ci.PATTERN_OFF_COLOUR=/^.*_off_colour$/,Ci.PATTERN_MAX_POWER=/^.*_max_power$/,Ci.PATTERN_COLOUR_SUFFIX=/colour$/i,Ci.PATTERN_DYNAMIC_COLOUR_SUFFIX=/dynamic_colour$/i,Ci.HELP_TEXT={large_font:"Use a larger font for card entities.",wide:"Use a wide layout for the card.",additional_loads:"Number of additional loads to configure (0–6).",colour:"Primary colour for this element.",efficiency:"Show the effeciency of the mppts strings based on their max power.",display_mode:"Chose how to display solar information next to the sun icon.",custom_label:"Custom label shown in the UI.",label_daily_grid_buy:"Label for daily grid buy.",label_daily_grid_sell:"Label for daily grid sell.",count:"Number of batteries to display.",energy:"Total available energy of the battery in Wh.",shutdown_soc:"State of charge below which the battery is considered off.",shutdown_soc_offgrid:"State of charge below which the battery is considered off when off-grid.",soc_end_of_charge:"State of charge at which the battery is considered fully charged.",invert_power:"Invert the direction of power flow animation.",hide_soc:"Hide additional current program capacity (SOC) or shutdown SOC.",show_absolute:"Show absolute values for power.",show_remaining_energy:"Show remaining energy of the battery.",remaining_energy_to_shutdown:"Show remaining energy of the battery until it shuts down.",invert_flow:"Invert the direction of power flow.",linear_gradient:"Display battery SOC as a linear gradient.",invert_load:"Set to true if your sensor provides a negative number when the load is drawing power",modern:"Change inverter icon.",invert_grid:"Enable if your sensor provides a negative number for grid import and positive number for grid export.",aux_loads:"Number of auxiliary loads to configure (0–2).",show_nonessential:"Show non-essential loads.",show_aux:"Show the Aux subsection (separate auxiliary load configuration).",label_daily_load:"Alternate label for the daily load value displayed under Load.",label_daily_chrg:"Alternate label for the daily charge value displayed under Battery.",label_daily_dischrg:"Alternate label for the daily discharge value displayed under Battery.",label_autarky:"Alternate label for the autarky value displayed under Inverter.",label_ratio:"Alternat label for the ratio value displayed under Inverter.",navigate:"Optional navigation path to open when the icon is clicked.",import_icon:"Icon shown for the import flow. Can be set using a template sensor.",export_icon:"Icon shown for the export flow. Can be set using a template sensor.",disconnected_icon:"Icon shown when the grid is disconnected. Can be set using a template sensor.",aux_name:"Aux group title shown in the UI.",aux_daily_name:"Label used for daily Aux value.",aux_type:"Icon shown for the Aux group.",invert_aux:"Invert the direction of Aux flow arrows.",show_absolute_aux:"Show Aux values as absolute (no sign) for clarity.",aux_dynamic_colour:"Aux elements on the card will be greyed out if aux power is 0.",aux_colour:"Primary colour for Aux flow.",aux_off_colour:"Colour used when Aux path is off/idle.",show_daily_aux:"Display daily Aux energy beneath the Aux section.",decimal_places:"Number of decimal places for power values (0-3).",decimal_places_energy:"Number of decimal places for energy values (0-3).",soc_decimal_places:"Decimal places for State of Charge display (0-3).",dynamic_line_width:"Animate line widths based on power level. Disable for a flatter look.",animation_speed:"Adjusts the speed of flow animations. Higher = faster.",off_threshold:"Below this power value the path is considered off/idle.",path_threshold:"The colour of the path will change to the source colour if the percentage supply by a single source equals or exceeds this value.",max_power:"Optional cap used for scaling and progress calculations.",title_size:"CSS font-size for title, e.g. '1.2em' or '18px'.",card_height:"Card height: text value (e.g. 360) or an entity providing a numeric height.",card_width:"Card width: text value (e.g. 640) or an entity providing a numeric width.",center_no_grid:"When Grid is hidden, shift and narrow the view to center Solar/Battery/Loads."},t([Mt()],Ci.prototype,"hass",void 0),t([Mt()],Ci.prototype,"_config",void 0),t([Mt()],Ci.prototype,"lovelace",void 0),Ci=Li=t([Ct(Xt)],Ci);var Ti=Object.freeze({__proto__:null,get SunSynkCardEditor(){return Ci}});export{fi as SunsynkPowerFlowCard};
//# sourceMappingURL=sunsynk-power-flow-card.js.map
