diff --git a/web_viewer/fe_src/src/App.tsx b/web_viewer/fe_src/src/App.tsx index 61a444c..e4feb0f 100644 --- a/web_viewer/fe_src/src/App.tsx +++ b/web_viewer/fe_src/src/App.tsx @@ -96,21 +96,27 @@ function App() { useEffect(() => { if (!inverterData?.deviceTime) return; - const deviceTimeOnly = inverterData?.deviceTime?.split(" ")[1] - document.title = `[${deviceTimeOnly}] ${ - import.meta.env.VITE_APP_TITLE - }`; + const deviceTimeOnly = inverterData?.deviceTime?.split(" ")[1]; + document.title = `[${deviceTimeOnly}] ${import.meta.env.VITE_APP_TITLE}`; }, [inverterData?.deviceTime]); + if (inverterData) { + return ( + <> + + + + ); + } + return ( - <> - {inverterData ? ( - <> - - - - ) :
Server is offline. Reload page when you make sure that server is online
} - +
+ Server is offline. Reload page when you make sure that server is online +
); } diff --git a/web_viewer/fe_src/src/Intefaces.ts b/web_viewer/fe_src/src/Intefaces.ts index c4d4079..cc6e5d4 100644 --- a/web_viewer/fe_src/src/Intefaces.ts +++ b/web_viewer/fe_src/src/Intefaces.ts @@ -45,3 +45,8 @@ export interface IInverterData { v_bus_2: number; deviceTime: string; } + +export interface ICProps { + inverterData: IInverterData; + isSocketConnected: boolean; +} \ No newline at end of file diff --git a/web_viewer/fe_src/src/components/Battery.tsx b/web_viewer/fe_src/src/components/Battery.tsx new file mode 100644 index 0000000..24378e7 --- /dev/null +++ b/web_viewer/fe_src/src/components/Battery.tsx @@ -0,0 +1,74 @@ +import { ICProps } from "../Intefaces"; +import GeneralValue from "./GeneralValue"; + +function Battery({ inverterData, isSocketConnected }: ICProps) { + return ( +
+
+
+ + + +
+
+ + + + +
+
+ {Array.from({ length: 2 }).map((_, index) => ( +
0 + ? "right" + : inverterData.p_charge > 0 + ? "left" + : "none" + : "none" + }`} + >
+ ))} +
+
+
+ ); +} + +export default Battery; diff --git a/web_viewer/fe_src/src/components/Consumption.tsx b/web_viewer/fe_src/src/components/Consumption.tsx new file mode 100644 index 0000000..b1b4a0d --- /dev/null +++ b/web_viewer/fe_src/src/components/Consumption.tsx @@ -0,0 +1,45 @@ +import { ICProps } from "../Intefaces"; +import GeneralValue from "./GeneralValue"; + +export default function Consumption({ + inverterData, + isSocketConnected, +}: ICProps) { + const pConsumption = + inverterData.p_inv + inverterData.p_to_user - inverterData.p_rec; + return ( +
+
+
+
+ {Array.from({ length: 2 }).map((_, index) => ( +
0 + ? "down" + : "none" + : "none" + }`} + >
+ ))} +
+ + +
+
+ +
Consumption Power
+
+
+
+ ); +} diff --git a/web_viewer/fe_src/src/components/EPS.tsx b/web_viewer/fe_src/src/components/EPS.tsx new file mode 100644 index 0000000..aa99d60 --- /dev/null +++ b/web_viewer/fe_src/src/components/EPS.tsx @@ -0,0 +1,40 @@ +import { ICProps } from "../Intefaces"; +import GeneralValue from "./GeneralValue"; + +export default function EPS({ inverterData, isSocketConnected }: ICProps) { + return ( +
+
+
+
0 + ? "down" + : "none" + : "none" + }`} + >
+ + {inverterData.p_eps === 0 ? ( + Standby + ) : ( + + )} +
+
+ {inverterData.p_eps === 0 ? ( + Standby + ) : ( + + )} +
Backup Power(EPS)
+
+
+
+ ); +} diff --git a/web_viewer/fe_src/src/components/Grid.tsx b/web_viewer/fe_src/src/components/Grid.tsx new file mode 100644 index 0000000..a13d16b --- /dev/null +++ b/web_viewer/fe_src/src/components/Grid.tsx @@ -0,0 +1,75 @@ +import { ICProps } from "../Intefaces"; +import GeneralValue from "./GeneralValue"; + +export default function Grid({ inverterData, isSocketConnected }: ICProps) { + return ( +
+
+ {Array.from({ length: 2 }).map((_, index) => ( +
0 + ? "right" + : inverterData.p_to_user > 0 + ? "left" + : "none" + : "none" + }`} + >
+ ))} +
+
+ + + + +
+
+ + + +
+
+ ); +} diff --git a/web_viewer/fe_src/src/components/Inverter.tsx b/web_viewer/fe_src/src/components/Inverter.tsx new file mode 100644 index 0000000..ba06e10 --- /dev/null +++ b/web_viewer/fe_src/src/components/Inverter.tsx @@ -0,0 +1,30 @@ +import { ICProps } from "../Intefaces"; + +function Inverter({ inverterData, isSocketConnected }: ICProps) { + return ( +
+
+ +
+ {Array.from({ length: 4 }).map((_, index) => ( +
0 + ? "right" + : inverterData.p_rec > 0 + ? "left" + : "none" + : "none" + }`} + >
+ ))} +
+
+
+ ); +} + +export default Inverter; + diff --git a/web_viewer/fe_src/src/components/PV.tsx b/web_viewer/fe_src/src/components/PV.tsx new file mode 100644 index 0000000..fce15dc --- /dev/null +++ b/web_viewer/fe_src/src/components/PV.tsx @@ -0,0 +1,43 @@ +import { ICProps } from "../Intefaces"; +import GeneralValue from "./GeneralValue"; +import PVPowerValue from "./PVPowerValue"; + +function PV({ inverterData, isSocketConnected }: ICProps) { + return ( +
+
+
+ + +
+
+
+
+ + + +
+
+ ); +} + +export default PV; diff --git a/web_viewer/fe_src/src/components/SystemInformation.css b/web_viewer/fe_src/src/components/SystemInformation.css index 813f139..69c64af 100644 --- a/web_viewer/fe_src/src/components/SystemInformation.css +++ b/web_viewer/fe_src/src/components/SystemInformation.css @@ -159,6 +159,10 @@ visibility: hidden; } +.show-small { + display: none; +} + @media screen and (max-width: 1200px) { .inverter .arrows .x-arrow:nth-child(4) { display: none; @@ -196,10 +200,6 @@ } } -.show-small { - display: none; -} - @media screen and (max-width: 900px) { .power { font-size: 16px; @@ -285,6 +285,10 @@ .grid { left: -24px; } + + .system-title-text { + font-size: 16px; + } } @media screen and (max-width: 768px) { diff --git a/web_viewer/fe_src/src/components/SystemInformation.tsx b/web_viewer/fe_src/src/components/SystemInformation.tsx index bd5144f..3306103 100644 --- a/web_viewer/fe_src/src/components/SystemInformation.tsx +++ b/web_viewer/fe_src/src/components/SystemInformation.tsx @@ -1,7 +1,11 @@ import { IInverterData } from "../Intefaces"; -import GeneralValue from "./GeneralValue"; -import PVPowerValue from "./PVPowerValue"; import "./SystemInformation.css"; +import PV from "./PV"; +import Battery from "./Battery"; +import Inverter from "./Inverter"; +import Grid from "./Grid"; +import Consumption from "./Consumption"; +import EPS from "./EPS"; interface Props { inverterData: IInverterData; isSocketConnected: boolean; @@ -12,8 +16,6 @@ function SystemInformation({ isSocketConnected, onReconnect, }: Props) { - const pConsumption = - inverterData.p_inv + inverterData.p_to_user - inverterData.p_rec; return (
@@ -54,269 +56,36 @@ function SystemInformation({
-
-
-
- - -
-
-
-
- - - -
-
+
-
-
-
- - - -
-
- - - - -
-
- {Array.from({ length: 2 }).map((_, index) => ( -
0 - ? "right" - : inverterData.p_charge > 0 - ? "left" - : "none" - : "none" - }`} - >
- ))} -
-
-
-
-
- -
- {Array.from({ length: 4 }).map((_, index) => ( -
0 - ? "right" - : inverterData.p_rec > 0 - ? "left" - : "none" - : "none" - }`} - >
- ))} -
-
-
-
-
- {Array.from({ length: 2 }).map((_, index) => ( -
0 - ? "right" - : inverterData.p_to_user > 0 - ? "left" - : "none" - : "none" - }`} - >
- ))} -
-
- - - - -
-
- - - -
-
+ + +
-
-
-
-
0 - ? "down" - : "none" - : "none" - }`} - >
- - {inverterData.p_eps === 0 ? ( - Standby - ) : ( - - )} -
-
- {inverterData.p_eps === 0 ? ( - Standby - ) : ( - - )} -
Backup Power(EPS)
-
-
-
-
-
-
-
- {Array.from({ length: 2 }).map((_, index) => ( -
0 - ? "down" - : "none" - : "none" - }`} - >
- ))} -
- - -
-
- -
Consumption Power
-
-
-
+ +
diff --git a/web_viewer/public/assets/index-5hk3k_kX.css b/web_viewer/public/assets/index-5hk3k_kX.css deleted file mode 100644 index 6b3ce30..0000000 --- a/web_viewer/public/assets/index-5hk3k_kX.css +++ /dev/null @@ -1 +0,0 @@ -:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}.code{max-width:100%;height:300px;overflow:auto;white-space:pre-line;text-align:left}.connected{color:#01a907}.disconected{color:#dc2f26}.card{background-color:#5c5c5c;padding:1rem}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#f2f7f8}a:hover{color:#747bff}.card{background-color:#fff}}#root{max-width:calc(100% - 1rem);margin:0 auto;padding:.5rem;overflow-x:hidden}.row{display:flex;flex-direction:row}.align-center{align-items:center}.justify-center{justify-content:center}.justify-space-between{justify-content:space-between}.align-end{align-items:flex-end}.justify-flex-end{justify-content:flex-end}.flex-1{flex:1}.flex-2{flex:2}.col{display:flex;flex-direction:column}.description{color:#d7d7d7}.text-right{text-align:right}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.general-value{min-width:100px;white-space:nowrap;font-size:18px}@media screen and (max-width: 900px){.general-value{font-size:16px;min-width:0}}@media screen and (max-width: 768px){.general-value{font-size:14px;min-width:0}}.system-information{max-width:100%}.system-title{margin-bottom:20px}.system-title-text{font-size:20px;display:inline-block;margin-right:20px;font-weight:700}.system-graph{position:relative}.pv{display:flex;align-items:flex-start}.y-arrow{background-image:url(/assets/_arrow_down.gif);height:100px;width:20px;background-repeat:no-repeat;background-size:contain;background-position:center center}.y-arrow.none{background-image:none}.y-arrow+.y-arrow{margin-top:-27px}.power{margin-top:20px;margin-left:20px;font-size:18px}.power-item{white-space:nowrap}.power-value{text-align:right;padding-left:10px}.system-status{position:absolute;right:0;top:10px}.system-status-display{display:flex;flex-direction:row;padding:7px;background-color:#7b7b7b;border-radius:7px;align-items:center}.system-status-icon{width:20px;height:20px;border-radius:50%;background-color:#ee3939;margin-right:5px}.system-status-icon.normal{background-color:#08b308}.system-status-icon.offline{background-color:#b6b6b6}.system-status-reconnect{margin-left:10px}.battery-row{display:flex;flex-direction:row;align-items:center;margin-top:5px;margin-bottom:5px}.grid{position:relative;left:-13px}.consumption{position:relative;left:-40px;top:-45px}.eps{position:relative;top:13px}.battery-texts,.grid-texts{line-height:30px}.x-arrow{background-image:url(/assets/_arrow_right.gif);height:20px;width:85px;background-repeat:no-repeat;background-size:contain;background-position:center center}.x-arrow.left{background-image:url(/assets/_arrow_left.gif)}.x-arrow.none{background:none}.x-arrow+.x-arrow{margin-left:-13px}.eps-texts{margin-top:125px}.eps-status{font-size:18px}.consumption-texts{margin-top:185px}.consumption-icon img{margin-top:-15px}.hidden{visibility:hidden}@media screen and (max-width: 1200px){.inverter .arrows .x-arrow:nth-child(4){display:none}.consumption{left:-63px}.system-graph{width:1030px}}@media screen and (max-width: 1090px){.inverter .arrows .x-arrow:nth-child(3){display:none}.battery .arrows .x-arrow:nth-child(2){display:none}.grid .arrows .x-arrow:nth-child(2){display:none}.system-graph{width:845px;margin:auto}.consumption{left:-54px}}.show-small{display:none}@media screen and (max-width: 900px){.power{font-size:16px;margin-left:10px}.pv img,.battery img,.inverter img,.grid img,.eps img,.consumption img{width:88px;height:auto}.eps-texts{margin-top:120px}.eps-texts .description,.consumption-texts .description{font-size:14px}.eps-status{font-size:16px}.consumption-texts{margin-top:180px}.x-arrow{width:70px}.y-arrow{height:70px}.inverter .arrows .x-arrow:nth-child(2){display:none}.system-graph{width:500px}.consumption{left:-55px;top:-60px}.battery-type,.grid-texts,.battery-texts,.pv-texts,.consumption-texts,.eps-texts{display:none}.show-small{display:unset}.inverter{height:160px;display:flex;align-items:center}.eps{position:relative;top:-30px}.grid{left:-24px}}@media screen and (max-width: 768px){.pv img,.battery img,.inverter img,.grid img,.eps img,.consumption img{width:60px;height:auto}.power{margin-top:46px}.system-graph>.row:first-child .flex-1:nth-child(3){display:none}.x-arrow{width:54px;height:15px}.y-arrow{height:54px;width:15px}.system-status-display{font-size:14px;padding:3px;border-radius:3px}.system-status-icon{width:15px;height:15px}.system-graph{width:360px}.consumption{left:-36px;top:-40px}.battery>.row>.col,.pv>.col,.eps>.row>.col,.grid>.col{width:55px}.grid .arrows .x-arrow{margin-left:7px}.inverter{height:123px}.system-information{padding:5px}.grid{left:-23px}.eps-status{font-size:14px}}@media (prefers-color-scheme: light){.system-status-display{background-color:#eee}}.summary{margin-bottom:10px;margin-left:-10px;margin-right:-10px;flex-wrap:wrap;max-width:calc(100% + 20px)}.summary-item{background-color:#5c5c5c;margin:10px}.summary-item-content{padding:10px}.summary-item-content .col{align-items:flex-end}.summary-item-title{padding:5px 10px;color:#fff;white-space:nowrap}.yield .summary-item-title{background-color:#63bfe6}.battery .summary-item-title{background-color:#f087a0}.feed .summary-item-title{background-color:#f09c6b}.comsumption .summary-item-title{background-color:#57c696}@media (prefers-color-scheme: light){.summary-item{background-color:#fff}}@media screen and (max-width: 768px){.summary{margin-bottom:5px;margin-left:-5px;margin-right:-5px;max-width:calc(100% + 10px)}.summary-item{height:130px;margin:5px;flex-basis:150px}.summary-item-content img{width:40px;height:40px}} diff --git a/web_viewer/public/assets/index-BHVuaFc-.css b/web_viewer/public/assets/index-BHVuaFc-.css new file mode 100644 index 0000000..dbbedcd --- /dev/null +++ b/web_viewer/public/assets/index-BHVuaFc-.css @@ -0,0 +1 @@ +:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}.code{max-width:100%;height:300px;overflow:auto;white-space:pre-line;text-align:left}.connected{color:#01a907}.disconected{color:#dc2f26}.card{background-color:#5c5c5c;padding:1rem}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#f2f7f8}a:hover{color:#747bff}.card{background-color:#fff}}#root{max-width:calc(100% - 1rem);margin:0 auto;padding:.5rem;overflow-x:hidden}.row{display:flex;flex-direction:row}.align-center{align-items:center}.justify-center{justify-content:center}.justify-space-between{justify-content:space-between}.align-end{align-items:flex-end}.justify-flex-end{justify-content:flex-end}.flex-1{flex:1}.flex-2{flex:2}.col{display:flex;flex-direction:column}.description{color:#d7d7d7}.text-right{text-align:right}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.system-information{max-width:100%}.system-title{margin-bottom:20px}.system-title-text{font-size:20px;display:inline-block;margin-right:20px;font-weight:700}.system-graph{position:relative}.pv{display:flex;align-items:flex-start}.y-arrow{background-image:url(/assets/_arrow_down.gif);height:100px;width:20px;background-repeat:no-repeat;background-size:contain;background-position:center center}.y-arrow.none{background-image:none}.y-arrow+.y-arrow{margin-top:-27px}.power{margin-top:20px;margin-left:20px;font-size:18px}.power-item{white-space:nowrap}.power-value{text-align:right;padding-left:10px}.system-status{position:absolute;right:0;top:10px}.system-status-display{display:flex;flex-direction:row;padding:7px;background-color:#7b7b7b;border-radius:7px;align-items:center}.system-status-icon{width:20px;height:20px;border-radius:50%;background-color:#ee3939;margin-right:5px}.system-status-icon.normal{background-color:#08b308}.system-status-icon.offline{background-color:#b6b6b6}.system-status-reconnect{margin-left:10px}.battery-row{display:flex;flex-direction:row;align-items:center;margin-top:5px;margin-bottom:5px}.grid{position:relative;left:-13px}.consumption{position:relative;left:-40px;top:-45px}.eps{position:relative;top:13px}.battery-texts,.grid-texts{line-height:30px}.x-arrow{background-image:url(/assets/_arrow_right.gif);height:20px;width:85px;background-repeat:no-repeat;background-size:contain;background-position:center center}.x-arrow.left{background-image:url(/assets/_arrow_left.gif)}.x-arrow.none{background:none}.x-arrow+.x-arrow{margin-left:-13px}.eps-texts{margin-top:125px}.eps-status{font-size:18px}.consumption-texts{margin-top:185px}.consumption-icon img{margin-top:-15px}.hidden{visibility:hidden}.show-small{display:none}@media screen and (max-width: 1200px){.inverter .arrows .x-arrow:nth-child(4){display:none}.consumption{left:-63px}.system-graph{width:1030px}}@media screen and (max-width: 1090px){.inverter .arrows .x-arrow:nth-child(3){display:none}.battery .arrows .x-arrow:nth-child(2){display:none}.grid .arrows .x-arrow:nth-child(2){display:none}.system-graph{width:845px;margin:auto}.consumption{left:-54px}}@media screen and (max-width: 900px){.power{font-size:16px;margin-left:10px}.pv img,.battery img,.inverter img,.grid img,.eps img,.consumption img{width:88px;height:auto}.eps-texts{margin-top:120px}.eps-texts .description,.consumption-texts .description{font-size:14px}.eps-status{font-size:16px}.consumption-texts{margin-top:180px}.x-arrow{width:70px}.y-arrow{height:70px}.inverter .arrows .x-arrow:nth-child(2){display:none}.system-graph{width:500px}.consumption{left:-55px;top:-60px}.battery-type,.grid-texts,.battery-texts,.pv-texts,.consumption-texts,.eps-texts{display:none}.show-small{display:unset}.inverter{height:160px;display:flex;align-items:center}.eps{position:relative;top:-30px}.grid{left:-24px}.system-title-text{font-size:16px}}@media screen and (max-width: 768px){.pv img,.battery img,.inverter img,.grid img,.eps img,.consumption img{width:60px;height:auto}.power{margin-top:46px}.system-graph>.row:first-child .flex-1:nth-child(3){display:none}.x-arrow{width:54px;height:15px}.y-arrow{height:54px;width:15px}.system-status-display{font-size:14px;padding:3px;border-radius:3px}.system-status-icon{width:15px;height:15px}.system-graph{width:360px}.consumption{left:-36px;top:-40px}.battery>.row>.col,.pv>.col,.eps>.row>.col,.grid>.col{width:55px}.grid .arrows .x-arrow{margin-left:7px}.inverter{height:123px}.system-information{padding:5px}.grid{left:-23px}.eps-status{font-size:14px}}@media (prefers-color-scheme: light){.system-status-display{background-color:#eee}}.general-value{min-width:100px;white-space:nowrap;font-size:18px}@media screen and (max-width: 900px){.general-value{font-size:16px;min-width:0}}@media screen and (max-width: 768px){.general-value{font-size:14px;min-width:0}}.summary{margin-bottom:10px;margin-left:-10px;margin-right:-10px;flex-wrap:wrap;max-width:calc(100% + 20px)}.summary-item{background-color:#5c5c5c;margin:10px}.summary-item-content{padding:10px}.summary-item-content .col{align-items:flex-end}.summary-item-title{padding:5px 10px;color:#fff;white-space:nowrap}.yield .summary-item-title{background-color:#63bfe6}.battery .summary-item-title{background-color:#f087a0}.feed .summary-item-title{background-color:#f09c6b}.comsumption .summary-item-title{background-color:#57c696}@media (prefers-color-scheme: light){.summary-item{background-color:#fff}}@media screen and (max-width: 768px){.summary{margin-bottom:5px;margin-left:-5px;margin-right:-5px;max-width:calc(100% + 10px)}.summary-item{height:130px;margin:5px;flex-basis:150px}.summary-item-content img{width:40px;height:40px}} diff --git a/web_viewer/public/assets/index-BLylZ3up.js b/web_viewer/public/assets/index-_IVR_YYv.js similarity index 82% rename from web_viewer/public/assets/index-BLylZ3up.js rename to web_viewer/public/assets/index-_IVR_YYv.js index 6c1c77e..fc795d5 100644 --- a/web_viewer/public/assets/index-BLylZ3up.js +++ b/web_viewer/public/assets/index-_IVR_YYv.js @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Gt=Symbol.for("react.element"),ic=Symbol.for("react.portal"),oc=Symbol.for("react.fragment"),uc=Symbol.for("react.strict_mode"),sc=Symbol.for("react.profiler"),ac=Symbol.for("react.provider"),cc=Symbol.for("react.context"),fc=Symbol.for("react.forward_ref"),dc=Symbol.for("react.suspense"),pc=Symbol.for("react.memo"),mc=Symbol.for("react.lazy"),Io=Symbol.iterator;function hc(e){return e===null||typeof e!="object"?null:(e=Io&&e[Io]||e["@@iterator"],typeof e=="function"?e:null)}var Yu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xu=Object.assign,Gu={};function ot(e,n,t){this.props=e,this.context=n,this.refs=Gu,this.updater=t||Yu}ot.prototype.isReactComponent={};ot.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ot.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zu(){}Zu.prototype=ot.prototype;function Di(e,n,t){this.props=e,this.context=n,this.refs=Gu,this.updater=t||Yu}var Vi=Di.prototype=new Zu;Vi.constructor=Di;Xu(Vi,ot.prototype);Vi.isPureReactComponent=!0;var Fo=Array.isArray,Ju=Object.prototype.hasOwnProperty,Ai={current:null},qu={key:!0,ref:!0,__self:!0,__source:!0};function bu(e,n,t){var r,l={},i=null,o=null;if(n!=null)for(r in n.ref!==void 0&&(o=n.ref),n.key!==void 0&&(i=""+n.key),n)Ju.call(n,r)&&!qu.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1>>1,Z=E[H];if(0>>1;Hl(wl,z))wnl(nr,wl)?(E[H]=nr,E[wn]=z,H=wn):(E[H]=wl,E[gn]=z,H=gn);else if(wnl(nr,z))E[H]=nr,E[wn]=z,H=wn;else break e}}return P}function l(E,P){var z=E.sortIndex-P.sortIndex;return z!==0?z:E.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],c=[],h=1,v=null,m=3,w=!1,S=!1,k=!1,U=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(E){for(var P=t(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=E)r(c),P.sortIndex=P.expirationTime,n(s,P);else break;P=t(c)}}function y(E){if(k=!1,d(E),!S)if(t(s)!==null)S=!0,yl(_);else{var P=t(c);P!==null&&gl(y,P.startTime-E)}}function _(E,P){S=!1,k&&(k=!1,f(j),j=-1),w=!0;var z=m;try{for(d(P),v=t(s);v!==null&&(!(v.expirationTime>P)||E&&!Pe());){var H=v.callback;if(typeof H=="function"){v.callback=null,m=v.priorityLevel;var Z=H(v.expirationTime<=P);P=e.unstable_now(),typeof Z=="function"?v.callback=Z:v===t(s)&&r(s),d(P)}else r(s);v=t(s)}if(v!==null)var er=!0;else{var gn=t(c);gn!==null&&gl(y,gn.startTime-P),er=!1}return er}finally{v=null,m=z,w=!1}}var N=!1,C=null,j=-1,B=5,L=-1;function Pe(){return!(e.unstable_now()-LE||125H?(E.sortIndex=z,n(c,E),t(s)===null&&E===t(c)&&(k?(f(j),j=-1):k=!0,gl(y,z-H))):(E.sortIndex=Z,n(s,E),S||w||(S=!0,yl(_))),E},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(E){var P=m;return function(){var z=m;m=P;try{return E.apply(this,arguments)}finally{m=z}}}})(ls);rs.exports=ls;var Cc=rs.exports;/** + */(function(e){function n(E,P){var z=E.length;E.push(P);e:for(;0>>1,Z=E[H];if(0>>1;Hl(wl,z))wnl(nr,wl)?(E[H]=nr,E[wn]=z,H=wn):(E[H]=wl,E[gn]=z,H=gn);else if(wnl(nr,z))E[H]=nr,E[wn]=z,H=wn;else break e}}return P}function l(E,P){var z=E.sortIndex-P.sortIndex;return z!==0?z:E.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],c=[],h=1,v=null,m=3,w=!1,S=!1,k=!1,U=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(E){for(var P=t(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=E)r(c),P.sortIndex=P.expirationTime,n(s,P);else break;P=t(c)}}function y(E){if(k=!1,d(E),!S)if(t(s)!==null)S=!0,yl(_);else{var P=t(c);P!==null&&gl(y,P.startTime-E)}}function _(E,P){S=!1,k&&(k=!1,f(j),j=-1),w=!0;var z=m;try{for(d(P),v=t(s);v!==null&&(!(v.expirationTime>P)||E&&!Pe());){var H=v.callback;if(typeof H=="function"){v.callback=null,m=v.priorityLevel;var Z=H(v.expirationTime<=P);P=e.unstable_now(),typeof Z=="function"?v.callback=Z:v===t(s)&&r(s),d(P)}else r(s);v=t(s)}if(v!==null)var er=!0;else{var gn=t(c);gn!==null&&gl(y,gn.startTime-P),er=!1}return er}finally{v=null,m=z,w=!1}}var N=!1,C=null,j=-1,B=5,L=-1;function Pe(){return!(e.unstable_now()-LE||125H?(E.sortIndex=z,n(c,E),t(s)===null&&E===t(c)&&(k?(f(j),j=-1):k=!0,gl(y,z-H))):(E.sortIndex=Z,n(s,E),S||w||(S=!0,yl(_))),E},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(E){var P=m;return function(){var z=m;m=P;try{return E.apply(this,arguments)}finally{m=z}}}})(ls);rs.exports=ls;var Cc=rs.exports;/** * @license React * react-dom.production.min.js * @@ -30,11 +30,11 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jc=oe,we=Cc;function g(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yl=Object.prototype.hasOwnProperty,Pc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$o={},Do={};function zc(e){return Yl.call(Do,e)?!0:Yl.call($o,e)?!1:Pc.test(e)?Do[e]=!0:($o[e]=!0,!1)}function Tc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Lc(e,n,t,r){if(n===null||typeof n>"u"||Tc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ce(e,n,t,r,l,i,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=o}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ne[n]=new ce(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ne[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bi=/[\-:]([a-z])/g;function Hi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Bi,Hi);ne[n]=new ce(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Bi,Hi);ne[n]=new ce(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Bi,Hi);ne[n]=new ce(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qi(e,n,t,r){var l=ne.hasOwnProperty(n)?ne[n]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yl=Object.prototype.hasOwnProperty,Pc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$o={},Vo={};function zc(e){return Yl.call(Vo,e)?!0:Yl.call($o,e)?!1:Pc.test(e)?Vo[e]=!0:($o[e]=!0,!1)}function Tc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Lc(e,n,t,r){if(n===null||typeof n>"u"||Tc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ce(e,n,t,r,l,i,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=o}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ne[n]=new ce(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ne[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bi=/[\-:]([a-z])/g;function Hi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Bi,Hi);ne[n]=new ce(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Bi,Hi);ne[n]=new ce(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Bi,Hi);ne[n]=new ce(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qi(e,n,t,r){var l=ne.hasOwnProperty(n)?ne[n]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` -`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{xl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?wt(e):""}function Rc(e){switch(e.tag){case 5:return wt(e.type);case 16:return wt("Lazy");case 13:return wt("Suspense");case 19:return wt("SuspenseList");case 0:case 2:case 15:return e=_l(e.type,!1),e;case 11:return e=_l(e.type.render,!1),e;case 1:return e=_l(e.type,!0),e;default:return""}}function Jl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case In:return"Portal";case Xl:return"Profiler";case Ki:return"StrictMode";case Gl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case us:return(e.displayName||"Context")+".Consumer";case os:return(e._context.displayName||"Context")+".Provider";case Yi:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xi:return n=e.displayName||null,n!==null?n:Jl(e.type)||"Memo";case qe:n=e._payload,e=e._init;try{return Jl(e(n))}catch{}}return null}function Oc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Jl(n);case 8:return n===Ki?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function as(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Mc(e){var n=as(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function lr(e){e._valueTracker||(e._valueTracker=Mc(e))}function cs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=as(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Lr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ql(e,n){var t=n.checked;return A({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Ao(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=pn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function fs(e,n){n=n.checked,n!=null&&Qi(e,"checked",n,!1)}function bl(e,n){fs(e,n);var t=pn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?ei(e,n.type,t):n.hasOwnProperty("defaultValue")&&ei(e,n.type,pn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Wo(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function ei(e,n,t){(n!=="number"||Lr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var St=Array.isArray;function Yn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ot(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var _t={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ic=["Webkit","ms","Moz","O"];Object.keys(_t).forEach(function(e){Ic.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),_t[n]=_t[e]})});function hs(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||_t.hasOwnProperty(e)&&_t[e]?(""+n).trim():n+"px"}function vs(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=hs(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Fc=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ri(e,n){if(n){if(Fc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(g(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(g(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(g(61))}if(n.style!=null&&typeof n.style!="object")throw Error(g(62))}}function li(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ii=null;function Gi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oi=null,Xn=null,Gn=null;function Qo(e){if(e=qt(e)){if(typeof oi!="function")throw Error(g(280));var n=e.stateNode;n&&(n=ol(n),oi(e.stateNode,e.type,n))}}function ys(e){Xn?Gn?Gn.push(e):Gn=[e]:Xn=e}function gs(){if(Xn){var e=Xn,n=Gn;if(Gn=Xn=null,Qo(e),n)for(e=0;e>>=0,e===0?32:31-(Yc(e)/Xc|0)|0}var or=64,ur=4194304;function kt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ir(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=t&268435455;if(o!==0){var u=o&~l;u!==0?r=kt(u):(i&=o,i!==0&&(r=kt(i)))}else o=t&~l,o!==0?r=kt(o):i!==0&&(r=kt(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Zt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Oe(n),e[n]=t}function qc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Nt),eu=" ",nu=!1;function $s(e,n){switch(e){case"keyup":return jf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ds(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function zf(e,n){switch(e){case"compositionend":return Ds(n);case"keypress":return n.which!==32?null:(nu=!0,eu);case"textInput":return e=n.data,e===eu&&nu?null:e;default:return null}}function Tf(e,n){if(Un)return e==="compositionend"||!ro&&$s(e,n)?(e=Fs(),xr=eo=tn=null,Un=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=iu(t)}}function Bs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Bs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Hs(){for(var e=window,n=Lr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Lr(e.document)}return n}function lo(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Df(e){var n=Hs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Bs(t.ownerDocument.documentElement,t)){if(r!==null&&lo(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=ou(t,i);var o=ou(t,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,$n=null,di=null,jt=null,pi=!1;function uu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;pi||$n==null||$n!==Lr(r)||(r=$n,"selectionStart"in r&&lo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jt&&Dt(jt,r)||(jt=r,r=$r(di,"onSelect"),0An||(e.current=wi[An],wi[An]=null,An--)}function M(e,n){An++,wi[An]=e.current,e.current=n}var mn={},ie=vn(mn),pe=vn(!1),jn=mn;function et(e,n){var t=e.type.contextTypes;if(!t)return mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function Vr(){F(pe),F(ie)}function mu(e,n,t){if(ie.current!==mn)throw Error(g(168));M(ie,n),M(pe,t)}function bs(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(g(108,Oc(e)||"Unknown",l));return A({},t,r)}function Ar(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,jn=ie.current,M(ie,e),M(pe,pe.current),!0}function hu(e,n,t){var r=e.stateNode;if(!r)throw Error(g(169));t?(e=bs(e,n,jn),r.__reactInternalMemoizedMergedChildContext=e,F(pe),F(ie),M(ie,e)):F(pe),M(pe,t)}var We=null,ul=!1,Ul=!1;function ea(e){We===null?We=[e]:We.push(e)}function Jf(e){ul=!0,ea(e)}function yn(){if(!Ul&&We!==null){Ul=!0;var e=0,n=O;try{var t=We;for(O=1;e>=o,l-=o,Be=1<<32-Oe(n)+l|t<j?(B=C,C=null):B=C.sibling;var L=m(f,C,d[j],y);if(L===null){C===null&&(C=B);break}e&&C&&L.alternate===null&&n(f,C),a=i(L,a,j),N===null?_=L:N.sibling=L,N=L,C=B}if(j===d.length)return t(f,C),$&&Sn(f,j),_;if(C===null){for(;jj?(B=C,C=null):B=C.sibling;var Pe=m(f,C,L.value,y);if(Pe===null){C===null&&(C=B);break}e&&C&&Pe.alternate===null&&n(f,C),a=i(Pe,a,j),N===null?_=Pe:N.sibling=Pe,N=Pe,C=B}if(L.done)return t(f,C),$&&Sn(f,j),_;if(C===null){for(;!L.done;j++,L=d.next())L=v(f,L.value,y),L!==null&&(a=i(L,a,j),N===null?_=L:N.sibling=L,N=L);return $&&Sn(f,j),_}for(C=r(f,C);!L.done;j++,L=d.next())L=w(C,f,j,L.value,y),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?j:L.key),a=i(L,a,j),N===null?_=L:N.sibling=L,N=L);return e&&C.forEach(function(at){return n(f,at)}),$&&Sn(f,j),_}function U(f,a,d,y){if(typeof d=="object"&&d!==null&&d.type===Fn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case rr:e:{for(var _=d.key,N=a;N!==null;){if(N.key===_){if(_=d.type,_===Fn){if(N.tag===7){t(f,N.sibling),a=l(N,d.props.children),a.return=f,f=a;break e}}else if(N.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===qe&&gu(_)===N.type){t(f,N.sibling),a=l(N,d.props),a.ref=vt(f,N,d),a.return=f,f=a;break e}t(f,N);break}else n(f,N);N=N.sibling}d.type===Fn?(a=Cn(d.props.children,f.mode,y,d.key),a.return=f,f=a):(y=Tr(d.type,d.key,d.props,null,f.mode,y),y.ref=vt(f,a,d),y.return=f,f=y)}return o(f);case In:e:{for(N=d.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=Ql(d,f.mode,y),a.return=f,f=a}return o(f);case qe:return N=d._init,U(f,a,N(d._payload),y)}if(St(d))return S(f,a,d,y);if(ft(d))return k(f,a,d,y);mr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=Hl(d,f.mode,y),a.return=f,f=a),o(f)):t(f,a)}return U}var tt=la(!0),ia=la(!1),Hr=vn(null),Qr=null,Hn=null,so=null;function ao(){so=Hn=Qr=null}function co(e){var n=Hr.current;F(Hr),e._currentValue=n}function xi(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Jn(e,n){Qr=e,so=Hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(de=!0),e.firstContext=null)}function Ce(e){var n=e._currentValue;if(so!==e)if(e={context:e,memoizedValue:n,next:null},Hn===null){if(Qr===null)throw Error(g(308));Hn=e,Qr.dependencies={lanes:0,firstContext:e}}else Hn=Hn.next=e;return n}var _n=null;function fo(e){_n===null?_n=[e]:_n.push(e)}function oa(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,fo(n)):(t.next=l.next,l.next=t),n.interleaved=t,Xe(e,r)}function Xe(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var be=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ua(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qe(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function an(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,R&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Xe(e,t)}return l=r.interleaved,l===null?(n.next=n,fo(r)):(n.next=l.next,l.next=n),r.interleaved=n,Xe(e,t)}function Er(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Ji(e,t)}}function wu(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};i===null?l=i=o:i=i.next=o,t=t.next}while(t!==null);i===null?l=i=n:i=i.next=n}else l=i=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Kr(e,n,t,r){var l=e.updateQueue;be=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,o===null?i=c:o.next=c,o=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==o&&(u===null?h.firstBaseUpdate=c:u.next=c,h.lastBaseUpdate=s))}if(i!==null){var v=l.baseState;o=0,h=c=s=null,u=i;do{var m=u.lane,w=u.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var S=e,k=u;switch(m=n,w=t,k.tag){case 1:if(S=k.payload,typeof S=="function"){v=S.call(w,v,m);break e}v=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=k.payload,m=typeof S=="function"?S.call(w,v,m):S,m==null)break e;v=A({},v,m);break e;case 2:be=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else w={eventTime:w,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(c=h=w,s=v):h=h.next=w,o|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(s=v),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=h,n=l.shared.interleaved,n!==null){l=n;do o|=l.lane,l=l.next;while(l!==n)}else i===null&&(l.shared.lanes=0);Tn|=o,e.lanes=o,e.memoizedState=v}}function Su(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=Dl.transition;Dl.transition={};try{e(!1),n()}finally{O=t,Dl.transition=r}}function Ea(){return je().memoizedState}function nd(e,n,t){var r=fn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Na(e))Ca(n,t);else if(t=oa(e,n,t,r),t!==null){var l=se();Me(t,e,r,l),ja(t,n,r)}}function td(e,n,t){var r=fn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Na(e))Ca(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var o=n.lastRenderedState,u=i(o,t);if(l.hasEagerState=!0,l.eagerState=u,Ie(u,o)){var s=n.interleaved;s===null?(l.next=l,fo(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=oa(e,n,l,r),t!==null&&(l=se(),Me(t,e,r,l),ja(t,n,r))}}function Na(e){var n=e.alternate;return e===V||n!==null&&n===V}function Ca(e,n){Pt=Xr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function ja(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Ji(e,t)}}var Gr={readContext:Ce,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},rd={readContext:Ce,useCallback:function(e,n){return Ue().memoizedState=[e,n===void 0?null:n],e},useContext:Ce,useEffect:xu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Cr(4194308,4,wa.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Cr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Cr(4,2,e,n)},useMemo:function(e,n){var t=Ue();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Ue();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=nd.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var n=Ue();return e={current:e},n.memoizedState=e},useState:ku,useDebugValue:ko,useDeferredValue:function(e){return Ue().memoizedState=e},useTransition:function(){var e=ku(!1),n=e[0];return e=ed.bind(null,e[1]),Ue().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=V,l=Ue();if($){if(t===void 0)throw Error(g(407));t=t()}else{if(t=n(),q===null)throw Error(g(349));zn&30||fa(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,xu(pa.bind(null,r,i,e),[e]),r.flags|=2048,Yt(9,da.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=Ue(),n=q.identifierPrefix;if($){var t=He,r=Be;t=(r&~(1<<32-Oe(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Qt++,0")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{xl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?wt(e):""}function Rc(e){switch(e.tag){case 5:return wt(e.type);case 16:return wt("Lazy");case 13:return wt("Suspense");case 19:return wt("SuspenseList");case 0:case 2:case 15:return e=_l(e.type,!1),e;case 11:return e=_l(e.type.render,!1),e;case 1:return e=_l(e.type,!0),e;default:return""}}function Jl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case Mn:return"Portal";case Xl:return"Profiler";case Ki:return"StrictMode";case Gl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case us:return(e.displayName||"Context")+".Consumer";case os:return(e._context.displayName||"Context")+".Provider";case Yi:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xi:return n=e.displayName||null,n!==null?n:Jl(e.type)||"Memo";case qe:n=e._payload,e=e._init;try{return Jl(e(n))}catch{}}return null}function Oc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Jl(n);case 8:return n===Ki?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function as(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ic(e){var n=as(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function lr(e){e._valueTracker||(e._valueTracker=Ic(e))}function cs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=as(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Lr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ql(e,n){var t=n.checked;return A({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Ao(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=pn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function fs(e,n){n=n.checked,n!=null&&Qi(e,"checked",n,!1)}function bl(e,n){fs(e,n);var t=pn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?ei(e,n.type,t):n.hasOwnProperty("defaultValue")&&ei(e,n.type,pn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Wo(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function ei(e,n,t){(n!=="number"||Lr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var St=Array.isArray;function Yn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ot(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var _t={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mc=["Webkit","ms","Moz","O"];Object.keys(_t).forEach(function(e){Mc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),_t[n]=_t[e]})});function hs(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||_t.hasOwnProperty(e)&&_t[e]?(""+n).trim():n+"px"}function vs(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=hs(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Fc=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ri(e,n){if(n){if(Fc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(g(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(g(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(g(61))}if(n.style!=null&&typeof n.style!="object")throw Error(g(62))}}function li(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ii=null;function Gi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oi=null,Xn=null,Gn=null;function Qo(e){if(e=qt(e)){if(typeof oi!="function")throw Error(g(280));var n=e.stateNode;n&&(n=ol(n),oi(e.stateNode,e.type,n))}}function ys(e){Xn?Gn?Gn.push(e):Gn=[e]:Xn=e}function gs(){if(Xn){var e=Xn,n=Gn;if(Gn=Xn=null,Qo(e),n)for(e=0;e>>=0,e===0?32:31-(Yc(e)/Xc|0)|0}var or=64,ur=4194304;function kt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=t&268435455;if(o!==0){var u=o&~l;u!==0?r=kt(u):(i&=o,i!==0&&(r=kt(i)))}else o=t&~l,o!==0?r=kt(o):i!==0&&(r=kt(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Zt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Oe(n),e[n]=t}function qc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Nt),eu=" ",nu=!1;function $s(e,n){switch(e){case"keyup":return jf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function zf(e,n){switch(e){case"compositionend":return Vs(n);case"keypress":return n.which!==32?null:(nu=!0,eu);case"textInput":return e=n.data,e===eu&&nu?null:e;default:return null}}function Tf(e,n){if(Un)return e==="compositionend"||!ro&&$s(e,n)?(e=Fs(),xr=eo=tn=null,Un=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=iu(t)}}function Bs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Bs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Hs(){for(var e=window,n=Lr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Lr(e.document)}return n}function lo(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Vf(e){var n=Hs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Bs(t.ownerDocument.documentElement,t)){if(r!==null&&lo(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=ou(t,i);var o=ou(t,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,$n=null,di=null,jt=null,pi=!1;function uu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;pi||$n==null||$n!==Lr(r)||(r=$n,"selectionStart"in r&&lo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jt&&Vt(jt,r)||(jt=r,r=$r(di,"onSelect"),0An||(e.current=wi[An],wi[An]=null,An--)}function I(e,n){An++,wi[An]=e.current,e.current=n}var mn={},ie=vn(mn),pe=vn(!1),jn=mn;function et(e,n){var t=e.type.contextTypes;if(!t)return mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function Dr(){F(pe),F(ie)}function mu(e,n,t){if(ie.current!==mn)throw Error(g(168));I(ie,n),I(pe,t)}function bs(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(g(108,Oc(e)||"Unknown",l));return A({},t,r)}function Ar(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,jn=ie.current,I(ie,e),I(pe,pe.current),!0}function hu(e,n,t){var r=e.stateNode;if(!r)throw Error(g(169));t?(e=bs(e,n,jn),r.__reactInternalMemoizedMergedChildContext=e,F(pe),F(ie),I(ie,e)):F(pe),I(pe,t)}var We=null,ul=!1,Ul=!1;function ea(e){We===null?We=[e]:We.push(e)}function Jf(e){ul=!0,ea(e)}function yn(){if(!Ul&&We!==null){Ul=!0;var e=0,n=O;try{var t=We;for(O=1;e>=o,l-=o,Be=1<<32-Oe(n)+l|t<j?(B=C,C=null):B=C.sibling;var L=m(f,C,d[j],y);if(L===null){C===null&&(C=B);break}e&&C&&L.alternate===null&&n(f,C),a=i(L,a,j),N===null?_=L:N.sibling=L,N=L,C=B}if(j===d.length)return t(f,C),$&&Sn(f,j),_;if(C===null){for(;jj?(B=C,C=null):B=C.sibling;var Pe=m(f,C,L.value,y);if(Pe===null){C===null&&(C=B);break}e&&C&&Pe.alternate===null&&n(f,C),a=i(Pe,a,j),N===null?_=Pe:N.sibling=Pe,N=Pe,C=B}if(L.done)return t(f,C),$&&Sn(f,j),_;if(C===null){for(;!L.done;j++,L=d.next())L=v(f,L.value,y),L!==null&&(a=i(L,a,j),N===null?_=L:N.sibling=L,N=L);return $&&Sn(f,j),_}for(C=r(f,C);!L.done;j++,L=d.next())L=w(C,f,j,L.value,y),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?j:L.key),a=i(L,a,j),N===null?_=L:N.sibling=L,N=L);return e&&C.forEach(function(at){return n(f,at)}),$&&Sn(f,j),_}function U(f,a,d,y){if(typeof d=="object"&&d!==null&&d.type===Fn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case rr:e:{for(var _=d.key,N=a;N!==null;){if(N.key===_){if(_=d.type,_===Fn){if(N.tag===7){t(f,N.sibling),a=l(N,d.props.children),a.return=f,f=a;break e}}else if(N.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===qe&&gu(_)===N.type){t(f,N.sibling),a=l(N,d.props),a.ref=vt(f,N,d),a.return=f,f=a;break e}t(f,N);break}else n(f,N);N=N.sibling}d.type===Fn?(a=Cn(d.props.children,f.mode,y,d.key),a.return=f,f=a):(y=Tr(d.type,d.key,d.props,null,f.mode,y),y.ref=vt(f,a,d),y.return=f,f=y)}return o(f);case Mn:e:{for(N=d.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=Ql(d,f.mode,y),a.return=f,f=a}return o(f);case qe:return N=d._init,U(f,a,N(d._payload),y)}if(St(d))return S(f,a,d,y);if(ft(d))return k(f,a,d,y);mr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=Hl(d,f.mode,y),a.return=f,f=a),o(f)):t(f,a)}return U}var tt=la(!0),ia=la(!1),Hr=vn(null),Qr=null,Hn=null,so=null;function ao(){so=Hn=Qr=null}function co(e){var n=Hr.current;F(Hr),e._currentValue=n}function xi(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Jn(e,n){Qr=e,so=Hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(de=!0),e.firstContext=null)}function Ce(e){var n=e._currentValue;if(so!==e)if(e={context:e,memoizedValue:n,next:null},Hn===null){if(Qr===null)throw Error(g(308));Hn=e,Qr.dependencies={lanes:0,firstContext:e}}else Hn=Hn.next=e;return n}var _n=null;function fo(e){_n===null?_n=[e]:_n.push(e)}function oa(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,fo(n)):(t.next=l.next,l.next=t),n.interleaved=t,Xe(e,r)}function Xe(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var be=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ua(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qe(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function an(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,R&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Xe(e,t)}return l=r.interleaved,l===null?(n.next=n,fo(r)):(n.next=l.next,l.next=n),r.interleaved=n,Xe(e,t)}function Er(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Ji(e,t)}}function wu(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};i===null?l=i=o:i=i.next=o,t=t.next}while(t!==null);i===null?l=i=n:i=i.next=n}else l=i=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Kr(e,n,t,r){var l=e.updateQueue;be=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,o===null?i=c:o.next=c,o=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==o&&(u===null?h.firstBaseUpdate=c:u.next=c,h.lastBaseUpdate=s))}if(i!==null){var v=l.baseState;o=0,h=c=s=null,u=i;do{var m=u.lane,w=u.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var S=e,k=u;switch(m=n,w=t,k.tag){case 1:if(S=k.payload,typeof S=="function"){v=S.call(w,v,m);break e}v=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=k.payload,m=typeof S=="function"?S.call(w,v,m):S,m==null)break e;v=A({},v,m);break e;case 2:be=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else w={eventTime:w,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(c=h=w,s=v):h=h.next=w,o|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(s=v),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=h,n=l.shared.interleaved,n!==null){l=n;do o|=l.lane,l=l.next;while(l!==n)}else i===null&&(l.shared.lanes=0);Tn|=o,e.lanes=o,e.memoizedState=v}}function Su(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=Vl.transition;Vl.transition={};try{e(!1),n()}finally{O=t,Vl.transition=r}}function Ea(){return je().memoizedState}function nd(e,n,t){var r=fn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Na(e))Ca(n,t);else if(t=oa(e,n,t,r),t!==null){var l=se();Ie(t,e,r,l),ja(t,n,r)}}function td(e,n,t){var r=fn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Na(e))Ca(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var o=n.lastRenderedState,u=i(o,t);if(l.hasEagerState=!0,l.eagerState=u,Me(u,o)){var s=n.interleaved;s===null?(l.next=l,fo(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=oa(e,n,l,r),t!==null&&(l=se(),Ie(t,e,r,l),ja(t,n,r))}}function Na(e){var n=e.alternate;return e===D||n!==null&&n===D}function Ca(e,n){Pt=Xr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function ja(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Ji(e,t)}}var Gr={readContext:Ce,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},rd={readContext:Ce,useCallback:function(e,n){return Ue().memoizedState=[e,n===void 0?null:n],e},useContext:Ce,useEffect:xu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Cr(4194308,4,wa.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Cr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Cr(4,2,e,n)},useMemo:function(e,n){var t=Ue();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Ue();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=nd.bind(null,D,e),[r.memoizedState,e]},useRef:function(e){var n=Ue();return e={current:e},n.memoizedState=e},useState:ku,useDebugValue:ko,useDeferredValue:function(e){return Ue().memoizedState=e},useTransition:function(){var e=ku(!1),n=e[0];return e=ed.bind(null,e[1]),Ue().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=D,l=Ue();if($){if(t===void 0)throw Error(g(407));t=t()}else{if(t=n(),q===null)throw Error(g(349));zn&30||fa(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,xu(pa.bind(null,r,i,e),[e]),r.flags|=2048,Yt(9,da.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=Ue(),n=q.identifierPrefix;if($){var t=He,r=Be;t=(r&~(1<<32-Oe(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Qt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[$e]=n,e[Wt]=r,Ua(e,n,!1,!1),n.stateNode=e;e:{switch(o=li(t,r),t){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;lit&&(n.flags|=128,r=!0,yt(i,!1),n.lanes=4194304)}else{if(!r)if(e=Yr(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),yt(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!$)return re(n),null}else 2*K()-i.renderingStartTime>it&&t!==1073741824&&(n.flags|=128,r=!0,yt(i,!1),n.lanes=4194304);i.isBackwards?(o.sibling=n.child,n.child=o):(t=i.last,t!==null?t.sibling=o:n.child=o,i.last=o)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=K(),n.sibling=null,t=D.current,M(D,r?t&1|2:t&1),n):(re(n),null);case 22:case 23:return jo(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ve&1073741824&&(re(n),n.subtreeFlags&6&&(n.flags|=8192)):re(n),null;case 24:return null;case 25:return null}throw Error(g(156,n.tag))}function fd(e,n){switch(oo(n),n.tag){case 1:return me(n.type)&&Vr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return rt(),F(pe),F(ie),vo(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return ho(n),null;case 13:if(F(D),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(g(340));nt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return F(D),null;case 4:return rt(),null;case 10:return co(n.type._context),null;case 22:case 23:return jo(),null;case 24:return null;default:return null}}var vr=!1,le=!1,dd=typeof WeakSet=="function"?WeakSet:Set,x=null;function Qn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){W(e,n,r)}else t.current=null}function Li(e,n,t){try{t()}catch(r){W(e,n,r)}}var Ou=!1;function pd(e,n){if(mi=Fr,e=Hs(),lo(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,u=-1,s=-1,c=0,h=0,v=e,m=null;n:for(;;){for(var w;v!==t||l!==0&&v.nodeType!==3||(u=o+l),v!==i||r!==0&&v.nodeType!==3||(s=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(w=v.firstChild)!==null;)m=v,v=w;for(;;){if(v===e)break n;if(m===t&&++c===l&&(u=o),m===i&&++h===r&&(s=o),(w=v.nextSibling)!==null)break;v=m,m=v.parentNode}v=w}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(hi={focusedElem:e,selectionRange:t},Fr=!1,x=n;x!==null;)if(n=x,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,x=e;else for(;x!==null;){n=x;try{var S=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var k=S.memoizedProps,U=S.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?k:Te(n.type,k),U);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(g(163))}}catch(y){W(n,n.return,y)}if(e=n.sibling,e!==null){e.return=n.return,x=e;break}x=n.return}return S=Ou,Ou=!1,S}function zt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Li(n,t,i)}l=l.next}while(l!==r)}}function cl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Ri(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Va(e){var n=e.alternate;n!==null&&(e.alternate=null,Va(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[$e],delete n[Wt],delete n[gi],delete n[Gf],delete n[Zf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Aa(e){return e.tag===5||e.tag===3||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Aa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Dr));else if(r!==4&&(e=e.child,e!==null))for(Oi(e,n,t),e=e.sibling;e!==null;)Oi(e,n,t),e=e.sibling}function Mi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mi(e,n,t),e=e.sibling;e!==null;)Mi(e,n,t),e=e.sibling}var b=null,Le=!1;function Je(e,n,t){for(t=t.child;t!==null;)Wa(e,n,t),t=t.sibling}function Wa(e,n,t){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(tl,t)}catch{}switch(t.tag){case 5:le||Qn(t,n);case 6:var r=b,l=Le;b=null,Je(e,n,t),b=r,Le=l,b!==null&&(Le?(e=b,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):b.removeChild(t.stateNode));break;case 18:b!==null&&(Le?(e=b,t=t.stateNode,e.nodeType===8?Fl(e.parentNode,t):e.nodeType===1&&Fl(e,t),Ut(e)):Fl(b,t.stateNode));break;case 4:r=b,l=Le,b=t.stateNode.containerInfo,Le=!0,Je(e,n,t),b=r,Le=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Li(t,n,o),l=l.next}while(l!==r)}Je(e,n,t);break;case 1:if(!le&&(Qn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){W(t,n,u)}Je(e,n,t);break;case 21:Je(e,n,t);break;case 22:t.mode&1?(le=(r=le)||t.memoizedState!==null,Je(e,n,t),le=r):Je(e,n,t);break;default:Je(e,n,t)}}function Iu(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new dd),n.forEach(function(r){var l=xd.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ze(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hd(r/1960))-r,10e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,qr=0,R&6)throw Error(g(331));var l=R;for(R|=4,x=e.current;x!==null;){var i=x,o=i.child;if(x.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sK()-No?Nn(e,0):Eo|=t),he(e,n)}function Za(e,n){n===0&&(e.mode&1?(n=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):n=1);var t=se();e=Xe(e,n),e!==null&&(Zt(e,n,t),he(e,t))}function kd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Za(e,t)}function xd(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(g(314))}r!==null&&r.delete(n),Za(e,t)}var Ja;Ja=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||pe.current)de=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return de=!1,ad(e,n,t);de=!!(e.flags&131072)}else de=!1,$&&n.flags&1048576&&na(n,Br,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;jr(e,n),e=n.pendingProps;var l=et(n,ie.current);Jn(n,t),l=go(null,n,r,e,l,t);var i=wo();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,me(r)?(i=!0,Ar(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,po(n),l.updater=al,n.stateNode=l,l._reactInternals=n,Ei(n,r,e,t),n=ji(null,n,r,!0,i,t)):(n.tag=0,$&&i&&io(n),ue(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(jr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Ed(r),e=Te(r,e),l){case 0:n=Ci(null,n,r,e,t);break e;case 1:n=Tu(null,n,r,e,t);break e;case 11:n=Pu(null,n,r,e,t);break e;case 14:n=zu(null,n,r,Te(r.type,e),t);break e}throw Error(g(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),Ci(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),Tu(e,n,r,l,t);case 3:e:{if(Ma(n),e===null)throw Error(g(387));r=n.pendingProps,i=n.memoizedState,l=i.element,ua(e,n),Kr(n,r,null,t);var o=n.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=lt(Error(g(423)),n),n=Lu(e,n,r,t,l);break e}else if(r!==l){l=lt(Error(g(424)),n),n=Lu(e,n,r,t,l);break e}else for(ye=sn(n.stateNode.containerInfo.firstChild),ge=n,$=!0,Re=null,t=ia(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(nt(),r===l){n=Ge(e,n,t);break e}ue(e,n,r,t)}n=n.child}return n;case 5:return sa(n),e===null&&ki(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,vi(r,l)?o=null:i!==null&&vi(r,i)&&(n.flags|=32),Oa(e,n),ue(e,n,o,t),n.child;case 6:return e===null&&ki(n),null;case 13:return Ia(e,n,t);case 4:return mo(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=tt(n,null,r,t):ue(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),Pu(e,n,r,l,t);case 7:return ue(e,n,n.pendingProps,t),n.child;case 8:return ue(e,n,n.pendingProps.children,t),n.child;case 12:return ue(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,o=l.value,M(Hr,r._currentValue),r._currentValue=o,i!==null)if(Ie(i.value,o)){if(i.children===l.children&&!pe.current){n=Ge(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Qe(-1,t&-t),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),xi(i.return,t,n),u.lanes|=t;break}s=s.next}}else if(i.tag===10)o=i.type===n.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(g(341));o.lanes|=t,u=o.alternate,u!==null&&(u.lanes|=t),xi(o,t,n),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===n){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ue(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Jn(n,t),l=Ce(l),r=r(l),n.flags|=1,ue(e,n,r,t),n.child;case 14:return r=n.type,l=Te(r,n.pendingProps),l=Te(r.type,l),zu(e,n,r,l,t);case 15:return La(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),jr(e,n),n.tag=1,me(r)?(e=!0,Ar(n)):e=!1,Jn(n,t),Pa(n,r,l),Ei(n,r,l,t),ji(null,n,r,!0,e,t);case 19:return Fa(e,n,t);case 22:return Ra(e,n,t)}throw Error(g(156,n.tag))};function qa(e,n){return Ns(e,n)}function _d(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,n,t,r){return new _d(e,n,t,r)}function zo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ed(e){if(typeof e=="function")return zo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yi)return 11;if(e===Xi)return 14}return 2}function dn(e,n){var t=e.alternate;return t===null?(t=Ee(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Tr(e,n,t,r,l,i){var o=2;if(r=e,typeof e=="function")zo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Fn:return Cn(t.children,l,i,n);case Ki:o=8,l|=8;break;case Xl:return e=Ee(12,t,n,l|2),e.elementType=Xl,e.lanes=i,e;case Gl:return e=Ee(13,t,n,l),e.elementType=Gl,e.lanes=i,e;case Zl:return e=Ee(19,t,n,l),e.elementType=Zl,e.lanes=i,e;case ss:return dl(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case os:o=10;break e;case us:o=9;break e;case Yi:o=11;break e;case Xi:o=14;break e;case qe:o=16,r=null;break e}throw Error(g(130,e==null?e:typeof e,""))}return n=Ee(o,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function Cn(e,n,t,r){return e=Ee(7,e,r,n),e.lanes=t,e}function dl(e,n,t,r){return e=Ee(22,e,r,n),e.elementType=ss,e.lanes=t,e.stateNode={isHidden:!1},e}function Hl(e,n,t){return e=Ee(6,e,null,n),e.lanes=t,e}function Ql(e,n,t){return n=Ee(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Nd(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nl(0),this.expirationTimes=Nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function To(e,n,t,r,l,i,o,u,s){return e=new Nd(e,n,t,u,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=Ee(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},po(i),e}function Cd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tc)}catch(e){console.error(e)}}tc(),ts.exports=Se;var Ld=ts.exports,rc,Bu=Ld;rc=Bu.createRoot,Bu.hydrateRoot;function Q({value:e,unit:n,className:t}){return p.jsxs("div",{className:`${t||""} general-value`,children:[p.jsx("strong",{children:e}),n]})}function Kl({label:e,pValue:n,vValue:t}){return p.jsxs("div",{className:"power-item row",children:[p.jsx("div",{className:"power-title flex-1",children:e}),p.jsxs("div",{className:"power-value flex-1",children:[p.jsx("strong",{children:n})," W"]}),t!==void 0?p.jsxs("div",{className:"power-value flex-1",children:[p.jsx("strong",{children:t})," V"]}):p.jsx("span",{className:"power-value flex-1"})]})}function Rd({inverterData:e,isSocketConnected:n,onReconnect:t}){const r=e.p_inv+e.p_to_user-e.p_rec;return p.jsxs("div",{className:"card system-information",children:[p.jsxs("div",{className:"system-title",children:[p.jsx("span",{className:"system-title-text",children:"System Information"}),p.jsx("span",{children:e.deviceTime})]}),p.jsxs("div",{className:"system-graph",children:[p.jsxs("div",{className:"system-status row",children:[p.jsxs("div",{className:"system-status-display",title:e.status_text,children:[p.jsx("div",{className:`system-status-icon ${n?e.status!==0?"normal":"fault":"offline"}`}),p.jsx("div",{children:n?e.status!==0?"Normal":"Fault":"Offline"})]}),p.jsx("button",{className:"system-status-reconnect",onClick:t,title:"Reconnect to socket server",disabled:n,children:"Reconnect"})]}),p.jsxs("div",{className:"row",children:[p.jsx("div",{className:"flex-1"}),p.jsxs("div",{className:"pv flex-1",children:[p.jsxs("div",{className:"icon col align-center",children:[p.jsxs("div",{className:"col align-center",children:[p.jsx(Q,{className:"show-small",value:n?e.p_pv:0,unit:" W"}),p.jsx("img",{src:"/assets/icon_solor_yielding.png"})]}),p.jsx("div",{className:`y-arrow ${e.p_pv==0||!n?"none":""}`})]}),p.jsxs("div",{className:"pv-texts power flex-1",children:[p.jsx(Kl,{label:"PV1",pValue:n?e.p_pv_1:0,vValue:n?e.v_pv_1:0}),p.jsx(Kl,{label:"PV2",pValue:n?e.p_pv_2:0,vValue:n?e.v_pv_2:0}),p.jsx(Kl,{label:"Total PV",pValue:n?e.p_pv:0})]})]}),p.jsx("div",{className:"flex-1"})]}),p.jsxs("div",{className:"row",children:[p.jsx("div",{className:"battery flex-1",children:p.jsxs("div",{className:"row align-center",children:[p.jsxs("div",{className:"battery-texts",children:[p.jsx(Q,{value:n?e.p_discharge||e.p_charge:0,unit:" W"}),p.jsx(Q,{value:n?e.soc:0,unit:"%"}),p.jsx(Q,{value:n?e.v_bat:0,unit:" Vdc"})]}),p.jsxs("div",{className:"col align-center",children:[p.jsx(Q,{className:"show-small",value:n?e.p_discharge||e.p_charge:0,unit:" W"}),p.jsx("img",{className:"battery-icon",src:`/assets/icon_battery_${n?Math.round(e.soc/2/10):0}_green.png`}),p.jsx(Q,{className:"show-small",value:n?e.soc:0,unit:"%"}),p.jsx(Q,{className:"show-small",value:n?e.v_bat:0,unit:" Vdc"})]}),p.jsx("div",{className:"arrows row",children:Array.from({length:2}).map((l,i)=>p.jsx("div",{className:`x-arrow ${n?e.p_discharge>0?"right":e.p_charge>0?"left":"none":"none"}`},"batter-arrow-"+i))})]})}),p.jsx("div",{className:"inverter flex-1",children:p.jsxs("div",{className:"row align-center",children:[p.jsx("img",{src:"/assets/inverter_off_grid_20231003.png"}),p.jsx("div",{className:"flex-1 arrows row justify-flex-end",children:Array.from({length:4}).map((l,i)=>p.jsx("div",{className:`x-arrow ${n?e.p_inv>0?"right":e.p_rec>0?"left":"none":"none"}`},"inverter-arrow-"+i))})]})}),p.jsxs("div",{className:"grid flex-1 row align-center justify-flex-end",children:[p.jsx("div",{className:"row arrows",children:Array.from({length:2}).map((l,i)=>p.jsx("div",{className:`x-arrow ${n?e.p_to_grid>0?"right":e.p_to_user>0?"left":"none":"none"}`},"grid-arrow-"+i))}),p.jsxs("div",{className:"col align-center",children:[p.jsx(Q,{className:"show-small",value:n?e.p_to_user||e.p_to_grid:0,unit:" W"}),p.jsx("img",{src:"/assets/icon_grid.png"}),p.jsx(Q,{className:"show-small",value:n?(e.vacr||e.vacs||e.vact)/10:0,unit:" Vac"}),p.jsx(Q,{className:"show-small",value:n?e.fac/100:0,unit:" Hz"})]}),p.jsxs("div",{className:"grid-texts",children:[p.jsx(Q,{value:n?e.p_to_user||e.p_to_grid:0,unit:" W"}),p.jsx(Q,{value:n?(e.vacr||e.vacs||e.vact)/10:0,unit:" Vac"}),p.jsx(Q,{value:n?e.fac/100:0,unit:" Hz"})]})]})]}),p.jsxs("div",{className:"row",children:[p.jsx("div",{className:"flex-1"}),p.jsx("div",{className:"eps flex-1",children:p.jsxs("div",{className:"row",children:[p.jsxs("div",{className:"col align-center",children:[p.jsx("div",{className:`y-arrow ${n&&e.p_eps>0?"down":"none"}`}),p.jsx("img",{src:"/assets/icon_eps.png"}),e.p_eps===0?p.jsx("strong",{className:"show-small eps-status",children:"Standby"}):p.jsx(Q,{className:"show-small",value:n?e.p_eps:0,unit:" W"})]}),p.jsxs("div",{className:"eps-texts",children:[e.p_eps===0?p.jsx("strong",{className:"eps-status",children:"Standby"}):p.jsx(Q,{value:e.p_eps,unit:" W"}),p.jsx("div",{className:"description",children:"Backup Power(EPS)"})]})]})}),p.jsx("div",{className:"consumption flex-1",children:p.jsxs("div",{className:"row",children:[p.jsxs("div",{className:"col align-center consumption-icon",children:[p.jsx("div",{className:"arrows col",children:Array.from({length:2}).map((l,i)=>p.jsx("div",{className:`y-arrow ${n&&r>0?"down":"none"}`},"comsumption-arrow-"+i))}),p.jsx("img",{src:"/assets/icon_consumption.png"}),p.jsx(Q,{className:"show-small",value:n?r:0,unit:" W"})]}),p.jsxs("div",{className:"consumption-texts",children:[p.jsx(Q,{value:n?r:0,unit:" W"}),p.jsx("div",{className:"description",children:"Consumption Power"})]})]})})]})]})]})}function Od({invertData:e}){const[n,t]=oe.useState(!1),[r,l]=oe.useState(!1);return p.jsxs("div",{className:"summary row",children:[p.jsxs("div",{className:"yield summary-item flex-1",children:[p.jsx("div",{className:"summary-item-title",children:"Solar Yield"}),p.jsx("div",{className:"summary-item-content",children:p.jsxs("div",{className:"row justify-space-between",children:[p.jsx("img",{src:"/assets/icon_consumption.png"}),p.jsxs("div",{className:"yield-texts text-right",children:[p.jsx(Q,{value:e.e_pv_day,unit:" kWh"}),p.jsx("div",{className:"description",children:"Yield today"})]})]})})]}),p.jsxs("div",{className:"battery summary-item flex-1",onClick:()=>t(!n),children:[p.jsx("div",{className:"summary-item-title",children:n?"Battery Charged":"Battery Discharge"}),p.jsx("div",{className:"summary-item-content",children:p.jsxs("div",{className:"row justify-space-between",children:[p.jsx("img",{src:"/assets/icon_battery_discharging.png"}),p.jsxs("div",{className:"text-right",children:[p.jsx(Q,{value:n?e.e_chg_day:e.e_dischg_day,unit:" kWh"}),p.jsx("div",{className:"description",children:n?"Charged today":"Discharged today"})]})]})})]}),p.jsxs("div",{className:"feed summary-item flex-1",onClick:()=>l(!r),children:[p.jsx("div",{className:"summary-item-title ",children:r?"Feed-in Energy":"Import"}),p.jsx("div",{className:"summary-item-content",children:p.jsxs("div",{className:"row justify-space-between",children:[p.jsx("img",{src:r?"/assets/icon_feed_in_energy.png":"/assets/icon_import.png"}),p.jsx("div",{className:"feed-texts text-right",children:p.jsxs("div",{className:"col",children:[p.jsx(Q,{value:r?e.e_to_grid_day:e.e_to_user_day,unit:" kWh"}),p.jsx("div",{className:"description",children:r?"Today Export":"Today Import"})]})})]})})]}),p.jsxs("div",{className:"comsumption summary-item flex-1",children:[p.jsx("div",{className:"summary-item-title ",children:"Comsumption"}),p.jsx("div",{className:"summary-item-content",children:p.jsxs("div",{className:"row justify-space-between",children:[p.jsx("img",{src:"/assets/icon_consumption.png"}),p.jsxs("div",{className:"feed-texts text-right",children:[p.jsx(Q,{value:(e.e_inv_day+e.e_to_user_day+e.e_eps_day-e.e_rec_day).toFixed(1),unit:" kWh"}),p.jsx("div",{className:"description",children:"Today Comsumption"})]})]})})]})]})}const Hu=3;function Md(){const[e,n]=oe.useState(),t=oe.useRef(),r=oe.useRef(!1),l=oe.useRef(0),[i,o]=oe.useState(!0),u=oe.useCallback(()=>{if(t.current&&(t.current.CONNECTING||!t.current.CLOSED))return;console.log("[Socket] Connecting to socket server...");const h=new WebSocket("/ws");t.current=h,h.addEventListener("open",()=>{l.current=0,console.log("[Socket] Connected to server"),o(!0)}),h.addEventListener("message",v=>{const m=JSON.parse(v.data);n(m)}),h.addEventListener("close",()=>{var v;if(document.title="[Offline] LuxPower realtime web viewer",o(!1),!(r.current||(v=t.current)!=null&&v.CONNECTING)){if(l.current>=Hu){console.warn("[Socket] stop reconnect by reached MAX_RECONNECT_COUNT");return}l.current++,console.log("[Socket] connection closed. Reconnecting (%s)...",l.current),u()}}),h.addEventListener("error",v=>{console.error("[Socket] socket error",v)})},[n,o]),s=oe.useCallback(()=>{var h;r.current=!0,(h=t.current)==null||h.close()},[]),c=oe.useCallback(()=>{fetch("/state").then(h=>h.json()).then(h=>{n(h)}).catch(h=>{console.error("API get state error",h)})},[n]);return oe.useEffect(()=>(c(),r.current=!1,u(),window.addEventListener("beforeunload",s),document.addEventListener("visibilitychange",()=>{!document.hidden&&l.current>=Hu&&(l.current=0,console.warn("[Socket] reconnect when window active again"),c(),u())}),s),[u,s,c]),oe.useEffect(()=>{var v;if(!(e!=null&&e.deviceTime))return;const h=(v=e==null?void 0:e.deviceTime)==null?void 0:v.split(" ")[1];document.title=`[${h}] LuxPower realtime web viewer`},[e==null?void 0:e.deviceTime]),p.jsx(p.Fragment,{children:e?p.jsxs(p.Fragment,{children:[p.jsx(Od,{invertData:e}),p.jsx(Rd,{inverterData:e,isSocketConnected:i,onReconnect:u})]}):p.jsx("div",{className:"card server-offline",children:"Server is offline. Reload page when you make sure that server is online"})})}rc(document.getElementById("root")).render(p.jsx(oe.StrictMode,{children:p.jsx(Md,{})})); +`+i.stack}return{value:e,source:n,stack:l,digest:null}}function Wl(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function Ni(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var od=typeof WeakMap=="function"?WeakMap:Map;function za(e,n,t){t=Qe(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Jr||(Jr=!0,Mi=r),Ni(e,n)},t}function Ta(e,n,t){t=Qe(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Ni(e,n)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){Ni(e,n),typeof r!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var o=n.stack;this.componentDidCatch(n.value,{componentStack:o!==null?o:""})}),t}function Nu(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new od;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Sd.bind(null,e,n,t),n.then(e,e))}function Cu(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function ju(e,n,t,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=Qe(-1,1),n.tag=2,an(t,n,1))),t.lanes|=1),e)}var ud=Ze.ReactCurrentOwner,de=!1;function ue(e,n,t,r){n.child=e===null?ia(n,null,t,r):tt(n,e.child,t,r)}function Pu(e,n,t,r,l){t=t.render;var i=n.ref;return Jn(n,l),r=go(e,n,t,r,i,l),t=wo(),e!==null&&!de?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ge(e,n,l)):($&&t&&io(n),n.flags|=1,ue(e,n,r,l),n.child)}function zu(e,n,t,r,l){if(e===null){var i=t.type;return typeof i=="function"&&!zo(i)&&i.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=i,La(e,n,i,r,l)):(e=Tr(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(t=t.compare,t=t!==null?t:Vt,t(o,r)&&e.ref===n.ref)return Ge(e,n,l)}return n.flags|=1,e=dn(i,r),e.ref=n.ref,e.return=n,n.child=e}function La(e,n,t,r,l){if(e!==null){var i=e.memoizedProps;if(Vt(i,r)&&e.ref===n.ref)if(de=!1,n.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(de=!0);else return n.lanes=e.lanes,Ge(e,n,l)}return Ci(e,n,t,r,l)}function Ra(e,n,t){var r=n.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},I(Kn,ve),ve|=t;else{if(!(t&1073741824))return e=i!==null?i.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,I(Kn,ve),ve|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:t,I(Kn,ve),ve|=r}else i!==null?(r=i.baseLanes|t,n.memoizedState=null):r=t,I(Kn,ve),ve|=r;return ue(e,n,l,t),n.child}function Oa(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function Ci(e,n,t,r,l){var i=me(t)?jn:ie.current;return i=et(n,i),Jn(n,l),t=go(e,n,t,r,i,l),r=wo(),e!==null&&!de?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ge(e,n,l)):($&&r&&io(n),n.flags|=1,ue(e,n,t,l),n.child)}function Tu(e,n,t,r,l){if(me(t)){var i=!0;Ar(n)}else i=!1;if(Jn(n,l),n.stateNode===null)jr(e,n),Pa(n,t,r),Ei(n,t,r,l),r=!0;else if(e===null){var o=n.stateNode,u=n.memoizedProps;o.props=u;var s=o.context,c=t.contextType;typeof c=="object"&&c!==null?c=Ce(c):(c=me(t)?jn:ie.current,c=et(n,c));var h=t.getDerivedStateFromProps,v=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";v||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||s!==c)&&Eu(n,o,r,c),be=!1;var m=n.memoizedState;o.state=m,Kr(n,r,o,l),s=n.memoizedState,u!==r||m!==s||pe.current||be?(typeof h=="function"&&(_i(n,t,h,r),s=n.memoizedState),(u=be||_u(n,t,u,r,m,s,c))?(v||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(n.flags|=4194308)):(typeof o.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),o.props=r,o.state=s,o.context=c,r=u):(typeof o.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{o=n.stateNode,ua(e,n),u=n.memoizedProps,c=n.type===n.elementType?u:Te(n.type,u),o.props=c,v=n.pendingProps,m=o.context,s=t.contextType,typeof s=="object"&&s!==null?s=Ce(s):(s=me(t)?jn:ie.current,s=et(n,s));var w=t.getDerivedStateFromProps;(h=typeof w=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==v||m!==s)&&Eu(n,o,r,s),be=!1,m=n.memoizedState,o.state=m,Kr(n,r,o,l);var S=n.memoizedState;u!==v||m!==S||pe.current||be?(typeof w=="function"&&(_i(n,t,w,r),S=n.memoizedState),(c=be||_u(n,t,c,r,m,S,s)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,S,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,S,s)),typeof o.componentDidUpdate=="function"&&(n.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(n.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=S),o.props=r,o.state=S,o.context=s,r=c):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(n.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(n.flags|=1024),r=!1)}return ji(e,n,t,r,i,l)}function ji(e,n,t,r,l,i){Oa(e,n);var o=(n.flags&128)!==0;if(!r&&!o)return l&&hu(n,t,!1),Ge(e,n,i);r=n.stateNode,ud.current=n;var u=o&&typeof t.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&o?(n.child=tt(n,e.child,null,i),n.child=tt(n,null,u,i)):ue(e,n,u,i),n.memoizedState=r.state,l&&hu(n,t,!0),n.child}function Ia(e){var n=e.stateNode;n.pendingContext?mu(e,n.pendingContext,n.pendingContext!==n.context):n.context&&mu(e,n.context,!1),mo(e,n.containerInfo)}function Lu(e,n,t,r,l){return nt(),uo(l),n.flags|=256,ue(e,n,t,r),n.child}var Pi={dehydrated:null,treeContext:null,retryLane:0};function zi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ma(e,n,t){var r=n.pendingProps,l=V.current,i=!1,o=(n.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(i=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),I(V,l&1),e===null)return ki(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(o=r.children,e=r.fallback,i?(r=n.mode,i=n.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=dl(o,r,0,null),e=Cn(e,r,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=zi(t),n.memoizedState=Pi,e):xo(n,o));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return sd(e,n,o,r,u,l,t);if(i){i=r.fallback,o=n.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&n.child!==l?(r=n.child,r.childLanes=0,r.pendingProps=s,n.deletions=null):(r=dn(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?i=dn(u,i):(i=Cn(i,o,t,null),i.flags|=2),i.return=n,r.return=n,r.sibling=i,n.child=r,r=i,i=n.child,o=e.child.memoizedState,o=o===null?zi(t):{baseLanes:o.baseLanes|t,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~t,n.memoizedState=Pi,r}return i=e.child,e=i.sibling,r=dn(i,{mode:"visible",children:r.children}),!(n.mode&1)&&(r.lanes=t),r.return=n,r.sibling=null,e!==null&&(t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function xo(e,n){return n=dl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function hr(e,n,t,r){return r!==null&&uo(r),tt(n,e.child,null,t),e=xo(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function sd(e,n,t,r,l,i,o){if(t)return n.flags&256?(n.flags&=-257,r=Wl(Error(g(422))),hr(e,n,o,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(i=r.fallback,l=n.mode,r=dl({mode:"visible",children:r.children},l,0,null),i=Cn(i,l,o,null),i.flags|=2,r.return=n,i.return=n,r.sibling=i,n.child=r,n.mode&1&&tt(n,e.child,null,o),n.child.memoizedState=zi(o),n.memoizedState=Pi,i);if(!(n.mode&1))return hr(e,n,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(g(419)),r=Wl(i,r,void 0),hr(e,n,o,r)}if(u=(o&e.childLanes)!==0,de||u){if(r=q,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Xe(e,l),Ie(r,e,l,-1))}return Po(),r=Wl(Error(g(421))),hr(e,n,o,r)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=kd.bind(null,e),l._reactRetry=n,null):(e=i.treeContext,ye=sn(l.nextSibling),ge=n,$=!0,Re=null,e!==null&&(xe[_e++]=Be,xe[_e++]=He,xe[_e++]=Pn,Be=e.id,He=e.overflow,Pn=n),n=xo(n,r.children),n.flags|=4096,n)}function Ru(e,n,t){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),xi(e.return,n,t)}function Bl(e,n,t,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(i.isBackwards=n,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=t,i.tailMode=l)}function Fa(e,n,t){var r=n.pendingProps,l=r.revealOrder,i=r.tail;if(ue(e,n,r.children,t),r=V.current,r&2)r=r&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ru(e,t,n);else if(e.tag===19)Ru(e,t,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(I(V,r),!(n.mode&1))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;t!==null;)e=t.alternate,e!==null&&Yr(e)===null&&(l=t),t=t.sibling;t=l,t===null?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),Bl(n,!1,l,t,i);break;case"backwards":for(t=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&Yr(e)===null){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}Bl(n,!0,t,null,i);break;case"together":Bl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function jr(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Ge(e,n,t){if(e!==null&&(n.dependencies=e.dependencies),Tn|=n.lanes,!(t&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(g(153));if(n.child!==null){for(e=n.child,t=dn(e,e.pendingProps),n.child=t,t.return=n;e.sibling!==null;)e=e.sibling,t=t.sibling=dn(e,e.pendingProps),t.return=n;t.sibling=null}return n.child}function ad(e,n,t){switch(n.tag){case 3:Ia(n),nt();break;case 5:sa(n);break;case 1:me(n.type)&&Ar(n);break;case 4:mo(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;I(Hr,r._currentValue),r._currentValue=l;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(I(V,V.current&1),n.flags|=128,null):t&n.child.childLanes?Ma(e,n,t):(I(V,V.current&1),e=Ge(e,n,t),e!==null?e.sibling:null);I(V,V.current&1);break;case 19:if(r=(t&n.childLanes)!==0,e.flags&128){if(r)return Fa(e,n,t);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),I(V,V.current),r)break;return null;case 22:case 23:return n.lanes=0,Ra(e,n,t)}return Ge(e,n,t)}var Ua,Ti,$a,Va;Ua=function(e,n){for(var t=n.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};Ti=function(){};$a=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,En(De.current);var i=null;switch(t){case"input":l=ql(e,l),r=ql(e,r),i=[];break;case"select":l=A({},l,{value:void 0}),r=A({},r,{value:void 0}),i=[];break;case"textarea":l=ni(e,l),r=ni(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Vr)}ri(t,r);var o;t=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var u=l[c];for(o in u)u.hasOwnProperty(o)&&(t||(t={}),t[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Rt.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(u=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(s!=null||u!=null))if(c==="style")if(u){for(o in u)!u.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(t||(t={}),t[o]="");for(o in s)s.hasOwnProperty(o)&&u[o]!==s[o]&&(t||(t={}),t[o]=s[o])}else t||(i||(i=[]),i.push(c,t)),t=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Rt.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&M("scroll",e),i||u===s||(i=[])):(i=i||[]).push(c,s))}t&&(i=i||[]).push("style",t);var c=i;(n.updateQueue=c)&&(n.flags|=4)}};Va=function(e,n,t,r){t!==r&&(n.flags|=4)};function yt(e,n){if(!$)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;n!==null;)n.alternate!==null&&(t=n),n=n.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function re(e){var n=e.alternate!==null&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function cd(e,n,t){var r=n.pendingProps;switch(oo(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return re(n),null;case 1:return me(n.type)&&Dr(),re(n),null;case 3:return r=n.stateNode,rt(),F(pe),F(ie),vo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pr(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Re!==null&&($i(Re),Re=null))),Ti(e,n),re(n),null;case 5:ho(n);var l=En(Ht.current);if(t=n.type,e!==null&&n.stateNode!=null)$a(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(g(166));return re(n),null}if(e=En(De.current),pr(n)){r=n.stateNode,t=n.type;var i=n.memoizedProps;switch(r[$e]=n,r[Wt]=i,e=(n.mode&1)!==0,t){case"dialog":M("cancel",r),M("close",r);break;case"iframe":case"object":case"embed":M("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[$e]=n,e[Wt]=r,Ua(e,n,!1,!1),n.stateNode=e;e:{switch(o=li(t,r),t){case"dialog":M("cancel",e),M("close",e),l=r;break;case"iframe":case"object":case"embed":M("load",e),l=r;break;case"video":case"audio":for(l=0;lit&&(n.flags|=128,r=!0,yt(i,!1),n.lanes=4194304)}else{if(!r)if(e=Yr(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),yt(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!$)return re(n),null}else 2*Q()-i.renderingStartTime>it&&t!==1073741824&&(n.flags|=128,r=!0,yt(i,!1),n.lanes=4194304);i.isBackwards?(o.sibling=n.child,n.child=o):(t=i.last,t!==null?t.sibling=o:n.child=o,i.last=o)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=Q(),n.sibling=null,t=V.current,I(V,r?t&1|2:t&1),n):(re(n),null);case 22:case 23:return jo(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ve&1073741824&&(re(n),n.subtreeFlags&6&&(n.flags|=8192)):re(n),null;case 24:return null;case 25:return null}throw Error(g(156,n.tag))}function fd(e,n){switch(oo(n),n.tag){case 1:return me(n.type)&&Dr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return rt(),F(pe),F(ie),vo(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return ho(n),null;case 13:if(F(V),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(g(340));nt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return F(V),null;case 4:return rt(),null;case 10:return co(n.type._context),null;case 22:case 23:return jo(),null;case 24:return null;default:return null}}var vr=!1,le=!1,dd=typeof WeakSet=="function"?WeakSet:Set,x=null;function Qn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){W(e,n,r)}else t.current=null}function Li(e,n,t){try{t()}catch(r){W(e,n,r)}}var Ou=!1;function pd(e,n){if(mi=Fr,e=Hs(),lo(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,u=-1,s=-1,c=0,h=0,v=e,m=null;n:for(;;){for(var w;v!==t||l!==0&&v.nodeType!==3||(u=o+l),v!==i||r!==0&&v.nodeType!==3||(s=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(w=v.firstChild)!==null;)m=v,v=w;for(;;){if(v===e)break n;if(m===t&&++c===l&&(u=o),m===i&&++h===r&&(s=o),(w=v.nextSibling)!==null)break;v=m,m=v.parentNode}v=w}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(hi={focusedElem:e,selectionRange:t},Fr=!1,x=n;x!==null;)if(n=x,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,x=e;else for(;x!==null;){n=x;try{var S=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var k=S.memoizedProps,U=S.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?k:Te(n.type,k),U);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(g(163))}}catch(y){W(n,n.return,y)}if(e=n.sibling,e!==null){e.return=n.return,x=e;break}x=n.return}return S=Ou,Ou=!1,S}function zt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Li(n,t,i)}l=l.next}while(l!==r)}}function cl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Ri(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Da(e){var n=e.alternate;n!==null&&(e.alternate=null,Da(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[$e],delete n[Wt],delete n[gi],delete n[Gf],delete n[Zf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Aa(e){return e.tag===5||e.tag===3||e.tag===4}function Iu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Aa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Vr));else if(r!==4&&(e=e.child,e!==null))for(Oi(e,n,t),e=e.sibling;e!==null;)Oi(e,n,t),e=e.sibling}function Ii(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ii(e,n,t),e=e.sibling;e!==null;)Ii(e,n,t),e=e.sibling}var b=null,Le=!1;function Je(e,n,t){for(t=t.child;t!==null;)Wa(e,n,t),t=t.sibling}function Wa(e,n,t){if(Ve&&typeof Ve.onCommitFiberUnmount=="function")try{Ve.onCommitFiberUnmount(tl,t)}catch{}switch(t.tag){case 5:le||Qn(t,n);case 6:var r=b,l=Le;b=null,Je(e,n,t),b=r,Le=l,b!==null&&(Le?(e=b,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):b.removeChild(t.stateNode));break;case 18:b!==null&&(Le?(e=b,t=t.stateNode,e.nodeType===8?Fl(e.parentNode,t):e.nodeType===1&&Fl(e,t),Ut(e)):Fl(b,t.stateNode));break;case 4:r=b,l=Le,b=t.stateNode.containerInfo,Le=!0,Je(e,n,t),b=r,Le=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Li(t,n,o),l=l.next}while(l!==r)}Je(e,n,t);break;case 1:if(!le&&(Qn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){W(t,n,u)}Je(e,n,t);break;case 21:Je(e,n,t);break;case 22:t.mode&1?(le=(r=le)||t.memoizedState!==null,Je(e,n,t),le=r):Je(e,n,t);break;default:Je(e,n,t)}}function Mu(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new dd),n.forEach(function(r){var l=xd.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ze(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hd(r/1960))-r,10e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,qr=0,R&6)throw Error(g(331));var l=R;for(R|=4,x=e.current;x!==null;){var i=x,o=i.child;if(x.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sQ()-No?Nn(e,0):Eo|=t),he(e,n)}function Za(e,n){n===0&&(e.mode&1?(n=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):n=1);var t=se();e=Xe(e,n),e!==null&&(Zt(e,n,t),he(e,t))}function kd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Za(e,t)}function xd(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(g(314))}r!==null&&r.delete(n),Za(e,t)}var Ja;Ja=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||pe.current)de=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return de=!1,ad(e,n,t);de=!!(e.flags&131072)}else de=!1,$&&n.flags&1048576&&na(n,Br,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;jr(e,n),e=n.pendingProps;var l=et(n,ie.current);Jn(n,t),l=go(null,n,r,e,l,t);var i=wo();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,me(r)?(i=!0,Ar(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,po(n),l.updater=al,n.stateNode=l,l._reactInternals=n,Ei(n,r,e,t),n=ji(null,n,r,!0,i,t)):(n.tag=0,$&&i&&io(n),ue(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(jr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Ed(r),e=Te(r,e),l){case 0:n=Ci(null,n,r,e,t);break e;case 1:n=Tu(null,n,r,e,t);break e;case 11:n=Pu(null,n,r,e,t);break e;case 14:n=zu(null,n,r,Te(r.type,e),t);break e}throw Error(g(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),Ci(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),Tu(e,n,r,l,t);case 3:e:{if(Ia(n),e===null)throw Error(g(387));r=n.pendingProps,i=n.memoizedState,l=i.element,ua(e,n),Kr(n,r,null,t);var o=n.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=lt(Error(g(423)),n),n=Lu(e,n,r,t,l);break e}else if(r!==l){l=lt(Error(g(424)),n),n=Lu(e,n,r,t,l);break e}else for(ye=sn(n.stateNode.containerInfo.firstChild),ge=n,$=!0,Re=null,t=ia(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(nt(),r===l){n=Ge(e,n,t);break e}ue(e,n,r,t)}n=n.child}return n;case 5:return sa(n),e===null&&ki(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,vi(r,l)?o=null:i!==null&&vi(r,i)&&(n.flags|=32),Oa(e,n),ue(e,n,o,t),n.child;case 6:return e===null&&ki(n),null;case 13:return Ma(e,n,t);case 4:return mo(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=tt(n,null,r,t):ue(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),Pu(e,n,r,l,t);case 7:return ue(e,n,n.pendingProps,t),n.child;case 8:return ue(e,n,n.pendingProps.children,t),n.child;case 12:return ue(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,o=l.value,I(Hr,r._currentValue),r._currentValue=o,i!==null)if(Me(i.value,o)){if(i.children===l.children&&!pe.current){n=Ge(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Qe(-1,t&-t),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),xi(i.return,t,n),u.lanes|=t;break}s=s.next}}else if(i.tag===10)o=i.type===n.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(g(341));o.lanes|=t,u=o.alternate,u!==null&&(u.lanes|=t),xi(o,t,n),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===n){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ue(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Jn(n,t),l=Ce(l),r=r(l),n.flags|=1,ue(e,n,r,t),n.child;case 14:return r=n.type,l=Te(r,n.pendingProps),l=Te(r.type,l),zu(e,n,r,l,t);case 15:return La(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),jr(e,n),n.tag=1,me(r)?(e=!0,Ar(n)):e=!1,Jn(n,t),Pa(n,r,l),Ei(n,r,l,t),ji(null,n,r,!0,e,t);case 19:return Fa(e,n,t);case 22:return Ra(e,n,t)}throw Error(g(156,n.tag))};function qa(e,n){return Ns(e,n)}function _d(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,n,t,r){return new _d(e,n,t,r)}function zo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ed(e){if(typeof e=="function")return zo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yi)return 11;if(e===Xi)return 14}return 2}function dn(e,n){var t=e.alternate;return t===null?(t=Ee(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Tr(e,n,t,r,l,i){var o=2;if(r=e,typeof e=="function")zo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Fn:return Cn(t.children,l,i,n);case Ki:o=8,l|=8;break;case Xl:return e=Ee(12,t,n,l|2),e.elementType=Xl,e.lanes=i,e;case Gl:return e=Ee(13,t,n,l),e.elementType=Gl,e.lanes=i,e;case Zl:return e=Ee(19,t,n,l),e.elementType=Zl,e.lanes=i,e;case ss:return dl(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case os:o=10;break e;case us:o=9;break e;case Yi:o=11;break e;case Xi:o=14;break e;case qe:o=16,r=null;break e}throw Error(g(130,e==null?e:typeof e,""))}return n=Ee(o,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function Cn(e,n,t,r){return e=Ee(7,e,r,n),e.lanes=t,e}function dl(e,n,t,r){return e=Ee(22,e,r,n),e.elementType=ss,e.lanes=t,e.stateNode={isHidden:!1},e}function Hl(e,n,t){return e=Ee(6,e,null,n),e.lanes=t,e}function Ql(e,n,t){return n=Ee(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Nd(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nl(0),this.expirationTimes=Nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function To(e,n,t,r,l,i,o,u,s){return e=new Nd(e,n,t,u,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=Ee(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},po(i),e}function Cd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tc)}catch(e){console.error(e)}}tc(),ts.exports=Se;var Ld=ts.exports,rc,Bu=Ld;rc=Bu.createRoot,Bu.hydrateRoot;function K({value:e,unit:n,className:t}){return p.jsxs("div",{className:`${t||""} general-value`,children:[p.jsx("strong",{children:e}),n]})}function Kl({label:e,pValue:n,vValue:t}){return p.jsxs("div",{className:"power-item row",children:[p.jsx("div",{className:"power-title flex-1",children:e}),p.jsxs("div",{className:"power-value flex-1",children:[p.jsx("strong",{children:n})," W"]}),t!==void 0?p.jsxs("div",{className:"power-value flex-1",children:[p.jsx("strong",{children:t})," V"]}):p.jsx("span",{className:"power-value flex-1"})]})}function Rd({inverterData:e,isSocketConnected:n}){return p.jsxs("div",{className:"pv flex-1",children:[p.jsxs("div",{className:"icon col align-center",children:[p.jsxs("div",{className:"col align-center",children:[p.jsx(K,{className:"show-small",value:n?e.p_pv:0,unit:" W"}),p.jsx("img",{src:"/assets/icon_solor_yielding.png"})]}),p.jsx("div",{className:`y-arrow ${e.p_pv==0||!n?"none":""}`})]}),p.jsxs("div",{className:"pv-texts power flex-1",children:[p.jsx(Kl,{label:"PV1",pValue:n?e.p_pv_1:0,vValue:n?e.v_pv_1:0}),p.jsx(Kl,{label:"PV2",pValue:n?e.p_pv_2:0,vValue:n?e.v_pv_2:0}),p.jsx(Kl,{label:"Total PV",pValue:n?e.p_pv:0})]})]})}function Od({inverterData:e,isSocketConnected:n}){return p.jsx("div",{className:"battery flex-1",children:p.jsxs("div",{className:"row align-center",children:[p.jsxs("div",{className:"battery-texts",children:[p.jsx(K,{value:n?e.p_discharge||e.p_charge:0,unit:" W"}),p.jsx(K,{value:n?e.soc:0,unit:"%"}),p.jsx(K,{value:n?e.v_bat:0,unit:" Vdc"})]}),p.jsxs("div",{className:"col align-center",children:[p.jsx(K,{className:"show-small",value:n?e.p_discharge||e.p_charge:0,unit:" W"}),p.jsx("img",{className:"battery-icon",src:`/assets/icon_battery_${n?Math.round(e.soc/2/10):0}_green.png`}),p.jsx(K,{className:"show-small",value:n?e.soc:0,unit:"%"}),p.jsx(K,{className:"show-small",value:n?e.v_bat:0,unit:" Vdc"})]}),p.jsx("div",{className:"arrows row",children:Array.from({length:2}).map((t,r)=>p.jsx("div",{className:`x-arrow ${n?e.p_discharge>0?"right":e.p_charge>0?"left":"none":"none"}`},"batter-arrow-"+r))})]})})}function Id({inverterData:e,isSocketConnected:n}){return p.jsx("div",{className:"inverter flex-1",children:p.jsxs("div",{className:"row align-center",children:[p.jsx("img",{src:"/assets/inverter_off_grid_20231003.png"}),p.jsx("div",{className:"flex-1 arrows row justify-flex-end",children:Array.from({length:4}).map((t,r)=>p.jsx("div",{className:`x-arrow ${n?e.p_inv>0?"right":e.p_rec>0?"left":"none":"none"}`},"inverter-arrow-"+r))})]})})}function Md({inverterData:e,isSocketConnected:n}){return p.jsxs("div",{className:"grid flex-1 row align-center justify-flex-end",children:[p.jsx("div",{className:"row arrows",children:Array.from({length:2}).map((t,r)=>p.jsx("div",{className:`x-arrow ${n?e.p_to_grid>0?"right":e.p_to_user>0?"left":"none":"none"}`},"grid-arrow-"+r))}),p.jsxs("div",{className:"col align-center",children:[p.jsx(K,{className:"show-small",value:n?e.p_to_user||e.p_to_grid:0,unit:" W"}),p.jsx("img",{src:"/assets/icon_grid.png"}),p.jsx(K,{className:"show-small",value:n?(e.vacr||e.vacs||e.vact)/10:0,unit:" Vac"}),p.jsx(K,{className:"show-small",value:n?e.fac/100:0,unit:" Hz"})]}),p.jsxs("div",{className:"grid-texts",children:[p.jsx(K,{value:n?e.p_to_user||e.p_to_grid:0,unit:" W"}),p.jsx(K,{value:n?(e.vacr||e.vacs||e.vact)/10:0,unit:" Vac"}),p.jsx(K,{value:n?e.fac/100:0,unit:" Hz"})]})]})}function Fd({inverterData:e,isSocketConnected:n}){const t=e.p_inv+e.p_to_user-e.p_rec;return p.jsx("div",{className:"consumption flex-1",children:p.jsxs("div",{className:"row",children:[p.jsxs("div",{className:"col align-center consumption-icon",children:[p.jsx("div",{className:"arrows col",children:Array.from({length:2}).map((r,l)=>p.jsx("div",{className:`y-arrow ${n&&t>0?"down":"none"}`},"comsumption-arrow-"+l))}),p.jsx("img",{src:"/assets/icon_consumption.png"}),p.jsx(K,{className:"show-small",value:n?t:0,unit:" W"})]}),p.jsxs("div",{className:"consumption-texts",children:[p.jsx(K,{value:n?t:0,unit:" W"}),p.jsx("div",{className:"description",children:"Consumption Power"})]})]})})}function Ud({inverterData:e,isSocketConnected:n}){return p.jsx("div",{className:"eps flex-1",children:p.jsxs("div",{className:"row",children:[p.jsxs("div",{className:"col align-center",children:[p.jsx("div",{className:`y-arrow ${n&&e.p_eps>0?"down":"none"}`}),p.jsx("img",{src:"/assets/icon_eps.png"}),e.p_eps===0?p.jsx("strong",{className:"show-small eps-status",children:"Standby"}):p.jsx(K,{className:"show-small",value:n?e.p_eps:0,unit:" W"})]}),p.jsxs("div",{className:"eps-texts",children:[e.p_eps===0?p.jsx("strong",{className:"eps-status",children:"Standby"}):p.jsx(K,{value:e.p_eps,unit:" W"}),p.jsx("div",{className:"description",children:"Backup Power(EPS)"})]})]})})}function $d({inverterData:e,isSocketConnected:n,onReconnect:t}){return p.jsxs("div",{className:"card system-information",children:[p.jsxs("div",{className:"system-title",children:[p.jsx("span",{className:"system-title-text",children:"System Information"}),p.jsx("span",{children:e.deviceTime})]}),p.jsxs("div",{className:"system-graph",children:[p.jsxs("div",{className:"system-status row",children:[p.jsxs("div",{className:"system-status-display",title:e.status_text,children:[p.jsx("div",{className:`system-status-icon ${n?e.status!==0?"normal":"fault":"offline"}`}),p.jsx("div",{children:n?e.status!==0?"Normal":"Fault":"Offline"})]}),p.jsx("button",{className:"system-status-reconnect",onClick:t,title:"Reconnect to socket server",disabled:n,children:"Reconnect"})]}),p.jsxs("div",{className:"row",children:[p.jsx("div",{className:"flex-1"}),p.jsx(Rd,{inverterData:e,isSocketConnected:n}),p.jsx("div",{className:"flex-1"})]}),p.jsxs("div",{className:"row",children:[p.jsx(Od,{inverterData:e,isSocketConnected:n}),p.jsx(Id,{inverterData:e,isSocketConnected:n}),p.jsx(Md,{inverterData:e,isSocketConnected:n})]}),p.jsxs("div",{className:"row",children:[p.jsx("div",{className:"flex-1"}),p.jsx(Ud,{inverterData:e,isSocketConnected:n}),p.jsx(Fd,{inverterData:e,isSocketConnected:n})]})]})]})}function Vd({invertData:e}){const[n,t]=oe.useState(!1),[r,l]=oe.useState(!1);return p.jsxs("div",{className:"summary row",children:[p.jsxs("div",{className:"yield summary-item flex-1",children:[p.jsx("div",{className:"summary-item-title",children:"Solar Yield"}),p.jsx("div",{className:"summary-item-content",children:p.jsxs("div",{className:"row justify-space-between",children:[p.jsx("img",{src:"/assets/icon_consumption.png"}),p.jsxs("div",{className:"yield-texts text-right",children:[p.jsx(K,{value:e.e_pv_day,unit:" kWh"}),p.jsx("div",{className:"description",children:"Yield today"})]})]})})]}),p.jsxs("div",{className:"battery summary-item flex-1",onClick:()=>t(!n),children:[p.jsx("div",{className:"summary-item-title",children:n?"Battery Charged":"Battery Discharge"}),p.jsx("div",{className:"summary-item-content",children:p.jsxs("div",{className:"row justify-space-between",children:[p.jsx("img",{src:"/assets/icon_battery_discharging.png"}),p.jsxs("div",{className:"text-right",children:[p.jsx(K,{value:n?e.e_chg_day:e.e_dischg_day,unit:" kWh"}),p.jsx("div",{className:"description",children:n?"Charged today":"Discharged today"})]})]})})]}),p.jsxs("div",{className:"feed summary-item flex-1",onClick:()=>l(!r),children:[p.jsx("div",{className:"summary-item-title ",children:r?"Feed-in Energy":"Import"}),p.jsx("div",{className:"summary-item-content",children:p.jsxs("div",{className:"row justify-space-between",children:[p.jsx("img",{src:r?"/assets/icon_feed_in_energy.png":"/assets/icon_import.png"}),p.jsx("div",{className:"feed-texts text-right",children:p.jsxs("div",{className:"col",children:[p.jsx(K,{value:r?e.e_to_grid_day:e.e_to_user_day,unit:" kWh"}),p.jsx("div",{className:"description",children:r?"Today Export":"Today Import"})]})})]})})]}),p.jsxs("div",{className:"comsumption summary-item flex-1",children:[p.jsx("div",{className:"summary-item-title ",children:"Comsumption"}),p.jsx("div",{className:"summary-item-content",children:p.jsxs("div",{className:"row justify-space-between",children:[p.jsx("img",{src:"/assets/icon_consumption.png"}),p.jsxs("div",{className:"feed-texts text-right",children:[p.jsx(K,{value:(e.e_inv_day+e.e_to_user_day+e.e_eps_day-e.e_rec_day).toFixed(1),unit:" kWh"}),p.jsx("div",{className:"description",children:"Today Comsumption"})]})]})})]})]})}const Hu=3;function Dd(){const[e,n]=oe.useState(),t=oe.useRef(),r=oe.useRef(!1),l=oe.useRef(0),[i,o]=oe.useState(!0),u=oe.useCallback(()=>{if(t.current&&(t.current.CONNECTING||!t.current.CLOSED))return;console.log("[Socket] Connecting to socket server...");const h=new WebSocket("/ws");t.current=h,h.addEventListener("open",()=>{l.current=0,console.log("[Socket] Connected to server"),o(!0)}),h.addEventListener("message",v=>{const m=JSON.parse(v.data);n(m)}),h.addEventListener("close",()=>{var v;if(document.title="[Offline] LuxPower realtime web viewer",o(!1),!(r.current||(v=t.current)!=null&&v.CONNECTING)){if(l.current>=Hu){console.warn("[Socket] stop reconnect by reached MAX_RECONNECT_COUNT");return}l.current++,console.log("[Socket] connection closed. Reconnecting (%s)...",l.current),u()}}),h.addEventListener("error",v=>{console.error("[Socket] socket error",v)})},[n,o]),s=oe.useCallback(()=>{var h;r.current=!0,(h=t.current)==null||h.close()},[]),c=oe.useCallback(()=>{fetch("/state").then(h=>h.json()).then(h=>{n(h)}).catch(h=>{console.error("API get state error",h)})},[n]);return oe.useEffect(()=>(c(),r.current=!1,u(),window.addEventListener("beforeunload",s),document.addEventListener("visibilitychange",()=>{!document.hidden&&l.current>=Hu&&(l.current=0,console.warn("[Socket] reconnect when window active again"),c(),u())}),s),[u,s,c]),oe.useEffect(()=>{var v;if(!(e!=null&&e.deviceTime))return;const h=(v=e==null?void 0:e.deviceTime)==null?void 0:v.split(" ")[1];document.title=`[${h}] LuxPower realtime web viewer`},[e==null?void 0:e.deviceTime]),e?p.jsxs(p.Fragment,{children:[p.jsx(Vd,{invertData:e}),p.jsx($d,{inverterData:e,isSocketConnected:i,onReconnect:u})]}):p.jsx("div",{className:"card server-offline",children:"Server is offline. Reload page when you make sure that server is online"})}rc(document.getElementById("root")).render(p.jsx(oe.StrictMode,{children:p.jsx(Dd,{})})); diff --git a/web_viewer/public/index.html b/web_viewer/public/index.html index 10204e8..e937ca5 100644 --- a/web_viewer/public/index.html +++ b/web_viewer/public/index.html @@ -5,8 +5,8 @@ LuxPower realtime web viewer - - + +