From 916bda13b40deb82412ae01ab7786b3a8b7da11f Mon Sep 17 00:00:00 2001 From: shiv3 Date: Sun, 7 Jul 2024 12:35:13 +0000 Subject: [PATCH] deploy: 5f2906ea64caf35fd7bd7c397721f1f944b23b50 --- .../{index-C5B4wqIE.js => index-Bo-It2_I.js} | 44 +++++++++---------- index.html | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) rename assets/{index-C5B4wqIE.js => index-Bo-It2_I.js} (75%) diff --git a/assets/index-C5B4wqIE.js b/assets/index-Bo-It2_I.js similarity index 75% rename from assets/index-C5B4wqIE.js rename to assets/index-Bo-It2_I.js index 79793d7..32bb5b3 100644 --- a/assets/index-C5B4wqIE.js +++ b/assets/index-Bo-It2_I.js @@ -1,4 +1,4 @@ -var bc=Object.defineProperty;var ef=(e,t,n)=>t in e?bc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>ef(e,typeof t!="symbol"?t+"":t,n);function tf(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function nf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nu={exports:{}},yl={},Ru={exports:{}},j={};/** +var bc=Object.defineProperty;var ed=(e,t,n)=>t in e?bc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var j=(e,t,n)=>ed(e,typeof t!="symbol"?t+"":t,n);function td(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function nd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nu={exports:{}},yl={},Ru={exports:{}},z={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var bc=Object.defineProperty;var ef=(e,t,n)=>t in e?bc(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sr=Symbol.for("react.element"),rf=Symbol.for("react.portal"),lf=Symbol.for("react.fragment"),of=Symbol.for("react.strict_mode"),sf=Symbol.for("react.profiler"),uf=Symbol.for("react.provider"),af=Symbol.for("react.context"),cf=Symbol.for("react.forward_ref"),ff=Symbol.for("react.suspense"),df=Symbol.for("react.memo"),pf=Symbol.for("react.lazy"),as=Symbol.iterator;function hf(e){return e===null||typeof e!="object"?null:(e=as&&e[as]||e["@@iterator"],typeof e=="function"?e:null)}var Pu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Tu=Object.assign,Lu={};function gn(e,t,n){this.props=e,this.context=t,this.refs=Lu,this.updater=n||Pu}gn.prototype.isReactComponent={};gn.prototype.setState=function(e,t){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,t,"setState")};gn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Iu(){}Iu.prototype=gn.prototype;function di(e,t,n){this.props=e,this.context=t,this.refs=Lu,this.updater=n||Pu}var pi=di.prototype=new Iu;pi.constructor=di;Tu(pi,gn.prototype);pi.isPureReactComponent=!0;var cs=Array.isArray,ju=Object.prototype.hasOwnProperty,hi={current:null},zu={key:!0,ref:!0,__self:!0,__source:!0};function Ou(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)ju.call(t,r)&&!zu.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1t in e?bc(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var wf=k,Cf=Symbol.for("react.element"),kf=Symbol.for("react.fragment"),xf=Object.prototype.hasOwnProperty,_f=wf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ef={key:!0,ref:!0,__self:!0,__source:!0};function Uu(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)xf.call(t,r)&&!Ef.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Cf,type:e,key:o,ref:i,props:l,_owner:_f.current}}yl.Fragment=kf;yl.jsx=Uu;yl.jsxs=Uu;Nu.exports=yl;var v=Nu.exports,go={},Au={exports:{}},Ee={},Fu={exports:{}},$u={};/** + */var Sd=k,wd=Symbol.for("react.element"),Cd=Symbol.for("react.fragment"),kd=Object.prototype.hasOwnProperty,xd=Sd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_d={key:!0,ref:!0,__self:!0,__source:!0};function Uu(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)kd.call(t,r)&&!_d.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:wd,type:e,key:o,ref:i,props:l,_owner:xd.current}}yl.Fragment=Cd;yl.jsx=Uu;yl.jsxs=Uu;Nu.exports=yl;var m=Nu.exports,go={},Au={exports:{}},Ee={},Fu={exports:{}},$u={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var bc=Object.defineProperty;var ef=(e,t,n)=>t in e?bc(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(N,L){var I=N.length;N.push(L);e:for(;0>>1,ee=N[G];if(0>>1;Gl(Al,I))Etl(gr,Al)?(N[G]=gr,N[Et]=I,G=Et):(N[G]=Al,N[_t]=I,G=_t);else if(Etl(gr,I))N[G]=gr,N[Et]=I,G=Et;else break e}}return L}function l(N,L){var I=N.sortIndex-L.sortIndex;return I!==0?I:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],h=1,d=null,g=3,y=!1,S=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var L=n(a);L!==null;){if(L.callback===null)r(a);else if(L.startTime<=N)r(a),L.sortIndex=L.expirationTime,t(u,L);else break;L=n(a)}}function m(N){if(w=!1,p(N),!S)if(n(u)!==null)S=!0,Ml(_);else{var L=n(a);L!==null&&Ul(m,L.startTime-N)}}function _(N,L){S=!1,w&&(w=!1,f(T),T=-1),y=!0;var I=g;try{for(p(L),d=n(u);d!==null&&(!(d.expirationTime>L)||N&&!ze());){var G=d.callback;if(typeof G=="function"){d.callback=null,g=d.priorityLevel;var ee=G(d.expirationTime<=L);L=e.unstable_now(),typeof ee=="function"?d.callback=ee:d===n(u)&&r(u),p(L)}else r(u);d=n(u)}if(d!==null)var hr=!0;else{var _t=n(a);_t!==null&&Ul(m,_t.startTime-L),hr=!1}return hr}finally{d=null,g=I,y=!1}}var R=!1,P=null,T=-1,K=5,O=-1;function ze(){return!(e.unstable_now()-ON||125G?(N.sortIndex=I,t(a,N),n(u)===null&&N===n(a)&&(w?(f(T),T=-1):w=!0,Ul(m,I-G))):(N.sortIndex=ee,t(u,N),S||y||(S=!0,Ml(_))),N},e.unstable_shouldYield=ze,e.unstable_wrapCallback=function(N){var L=g;return function(){var I=g;g=L;try{return N.apply(this,arguments)}finally{g=I}}}})($u);Fu.exports=$u;var Nf=Fu.exports;/** + */(function(e){function t(N,L){var I=N.length;N.push(L);e:for(;0>>1,ee=N[G];if(0>>1;Gl(Al,I))Etl(gr,Al)?(N[G]=gr,N[Et]=I,G=Et):(N[G]=Al,N[_t]=I,G=_t);else if(Etl(gr,I))N[G]=gr,N[Et]=I,G=Et;else break e}}return L}function l(N,L){var I=N.sortIndex-L.sortIndex;return I!==0?I:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],h=1,d=null,g=3,S=!1,y=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var L=n(a);L!==null;){if(L.callback===null)r(a);else if(L.startTime<=N)r(a),L.sortIndex=L.expirationTime,t(u,L);else break;L=n(a)}}function v(N){if(w=!1,p(N),!y)if(n(u)!==null)y=!0,Ml(_);else{var L=n(a);L!==null&&Ul(v,L.startTime-N)}}function _(N,L){y=!1,w&&(w=!1,f(T),T=-1),S=!0;var I=g;try{for(p(L),d=n(u);d!==null&&(!(d.expirationTime>L)||N&&!ze());){var G=d.callback;if(typeof G=="function"){d.callback=null,g=d.priorityLevel;var ee=G(d.expirationTime<=L);L=e.unstable_now(),typeof ee=="function"?d.callback=ee:d===n(u)&&r(u),p(L)}else r(u);d=n(u)}if(d!==null)var hr=!0;else{var _t=n(a);_t!==null&&Ul(v,_t.startTime-L),hr=!1}return hr}finally{d=null,g=I,S=!1}}var R=!1,P=null,T=-1,K=5,O=-1;function ze(){return!(e.unstable_now()-ON||125G?(N.sortIndex=I,t(a,N),n(u)===null&&N===n(a)&&(w?(f(T),T=-1):w=!0,Ul(v,I-G))):(N.sortIndex=ee,t(u,N),y||S||(y=!0,Ml(_))),N},e.unstable_shouldYield=ze,e.unstable_wrapCallback=function(N){var L=g;return function(){var I=g;g=L;try{return N.apply(this,arguments)}finally{g=I}}}})($u);Fu.exports=$u;var Ed=Fu.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var bc=Object.defineProperty;var ef=(e,t,n)=>t in e?bc(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Rf=k,_e=Nf;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mo=Object.prototype.hasOwnProperty,Pf=/^[: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]*$/,ds={},ps={};function Tf(e){return mo.call(ps,e)?!0:mo.call(ds,e)?!1:Pf.test(e)?ps[e]=!0:(ds[e]=!0,!1)}function Lf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function If(e,t,n,r){if(t===null||typeof t>"u"||Lf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function he(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new he(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){ie[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var mi=/[\-:]([a-z])/g;function vi(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 t=e.replace(mi,vi);ie[t]=new he(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mi,vi);ie[t]=new he(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mi,vi);ie[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function yi(e,t,n,r){var l=ie.hasOwnProperty(t)?ie[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mo=Object.prototype.hasOwnProperty,Rd=/^[: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]*$/,fs={},ps={};function Pd(e){return mo.call(ps,e)?!0:mo.call(fs,e)?!1:Rd.test(e)?ps[e]=!0:(fs[e]=!0,!1)}function Td(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ld(e,t,n,r){if(t===null||typeof t>"u"||Td(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function he(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new he(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){ie[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var mi=/[\-:]([a-z])/g;function vi(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 t=e.replace(mi,vi);ie[t]=new he(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mi,vi);ie[t]=new he(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mi,vi);ie[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function yi(e,t,n,r){var l=ie.hasOwnProperty(t)?ie[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var u=` -`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Vl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tn(e):""}function jf(e){switch(e.tag){case 5:return Tn(e.type);case 16:return Tn("Lazy");case 13:return Tn("Suspense");case 19:return Tn("SuspenseList");case 0:case 2:case 15:return e=Bl(e.type,!1),e;case 11:return e=Bl(e.type.render,!1),e;case 1:return e=Bl(e.type,!0),e;default:return""}}function wo(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 Wt:return"Fragment";case Ht:return"Portal";case vo:return"Profiler";case Si:return"StrictMode";case yo:return"Suspense";case So:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hu:return(e.displayName||"Context")+".Consumer";case Bu:return(e._context.displayName||"Context")+".Provider";case wi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ci:return t=e.displayName||null,t!==null?t:wo(e.type)||"Memo";case rt:t=e._payload,e=e._init;try{return wo(e(t))}catch{}}return null}function zf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wo(t);case 8:return t===Si?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function St(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Of(e){var t=Qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=Of(e))}function Ku(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kr(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 Co(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=St(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gu(e,t){t=t.checked,t!=null&&yi(e,"checked",t,!1)}function ko(e,t){Gu(e,t);var n=St(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xo(e,t.type,n):t.hasOwnProperty("defaultValue")&&xo(e,t.type,St(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ms(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xo(e,t,n){(t!=="number"||Kr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ln=Array.isArray;function tn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Sr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={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},Df=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){Df.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function Zu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function qu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Zu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Mf=W({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 No(e,t){if(t){if(Mf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Ro(e,t){if(e.indexOf("-")===-1)return typeof t.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 Po=null;function ki(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var To=null,nn=null,rn=null;function Ss(e){if(e=cr(e)){if(typeof To!="function")throw Error(C(280));var t=e.stateNode;t&&(t=xl(t),To(e.stateNode,e.type,t))}}function bu(e){nn?rn?rn.push(e):rn=[e]:nn=e}function ea(){if(nn){var e=nn,t=rn;if(rn=nn=null,Ss(e),t)for(e=0;e>>=0,e===0?32:31-(Gf(e)/Yf|0)|0}var wr=64,Cr=4194304;function In(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 Jr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=In(s):(o&=i,o!==0&&(r=In(o)))}else i=n&~l,i!==0?r=In(i):o!==0&&(r=In(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ae(t),e[t]=n}function qf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Dn),Ps=" ",Ts=!1;function wa(e,t){switch(e){case"keyup":return Nd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ca(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qt=!1;function Pd(e,t){switch(e){case"compositionend":return Ca(t);case"keypress":return t.which!==32?null:(Ts=!0,Ps);case"textInput":return e=t.data,e===Ps&&Ts?null:e;default:return null}}function Td(e,t){if(Qt)return e==="compositionend"||!Li&&wa(e,t)?(e=ya(),Ur=Ri=st=null,Qt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zs(n)}}function Ea(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ea(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Na(){for(var e=window,t=Kr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kr(e.document)}return t}function Ii(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ad(e){var t=Na(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ea(n.ownerDocument.documentElement,n)){if(r!==null&&Ii(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Os(n,o);var i=Os(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Kt=null,Do=null,Un=null,Mo=!1;function Ds(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mo||Kt==null||Kt!==Kr(r)||(r=Kt,"selectionStart"in r&&Ii(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}),Un&&Xn(Un,r)||(Un=r,r=br(Do,"onSelect"),0Xt||(e.current=Bo[Xt],Bo[Xt]=null,Xt--)}function A(e,t){Xt++,Bo[Xt]=e.current,e.current=t}var wt={},ce=kt(wt),ve=kt(!1),zt=wt;function an(e,t){var n=e.type.contextTypes;if(!n)return wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ye(e){return e=e.childContextTypes,e!=null}function tl(){$(ve),$(ce)}function Bs(e,t,n){if(ce.current!==wt)throw Error(C(168));A(ce,t),A(ve,n)}function Da(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(C(108,zf(e)||"Unknown",l));return W({},n,r)}function nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wt,zt=ce.current,A(ce,e),A(ve,ve.current),!0}function Hs(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=Da(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,$(ve),$(ce),A(ce,e)):$(ve),A(ve,n)}var Ge=null,_l=!1,no=!1;function Ma(e){Ge===null?Ge=[e]:Ge.push(e)}function Jd(e){_l=!0,Ma(e)}function xt(){if(!no&&Ge!==null){no=!0;var e=0,t=U;try{var n=Ge;for(U=1;e>=i,l-=i,Ye=1<<32-Ae(t)+l|n<T?(K=P,P=null):K=P.sibling;var O=g(f,P,p[T],m);if(O===null){P===null&&(P=K);break}e&&P&&O.alternate===null&&t(f,P),c=o(O,c,T),R===null?_=O:R.sibling=O,R=O,P=K}if(T===p.length)return n(f,P),V&&Nt(f,T),_;if(P===null){for(;TT?(K=P,P=null):K=P.sibling;var ze=g(f,P,O.value,m);if(ze===null){P===null&&(P=K);break}e&&P&&ze.alternate===null&&t(f,P),c=o(ze,c,T),R===null?_=ze:R.sibling=ze,R=ze,P=K}if(O.done)return n(f,P),V&&Nt(f,T),_;if(P===null){for(;!O.done;T++,O=p.next())O=d(f,O.value,m),O!==null&&(c=o(O,c,T),R===null?_=O:R.sibling=O,R=O);return V&&Nt(f,T),_}for(P=r(f,P);!O.done;T++,O=p.next())O=y(P,f,T,O.value,m),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?T:O.key),c=o(O,c,T),R===null?_=O:R.sibling=O,R=O);return e&&P.forEach(function(Sn){return t(f,Sn)}),V&&Nt(f,T),_}function x(f,c,p,m){if(typeof p=="object"&&p!==null&&p.type===Wt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case vr:e:{for(var _=p.key,R=c;R!==null;){if(R.key===_){if(_=p.type,_===Wt){if(R.tag===7){n(f,R.sibling),c=l(R,p.props.children),c.return=f,f=c;break e}}else if(R.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===rt&&Ks(_)===R.type){n(f,R.sibling),c=l(R,p.props),c.ref=Nn(f,R,p),c.return=f,f=c;break e}n(f,R);break}else t(f,R);R=R.sibling}p.type===Wt?(c=jt(p.props.children,f.mode,m,p.key),c.return=f,f=c):(m=Qr(p.type,p.key,p.props,null,f.mode,m),m.ref=Nn(f,c,p),m.return=f,f=m)}return i(f);case Ht:e:{for(R=p.key;c!==null;){if(c.key===R)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=co(p,f.mode,m),c.return=f,f=c}return i(f);case rt:return R=p._init,x(f,c,R(p._payload),m)}if(Ln(p))return S(f,c,p,m);if(Cn(p))return w(f,c,p,m);Pr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=ao(p,f.mode,m),c.return=f,f=c),i(f)):n(f,c)}return x}var fn=$a(!0),Va=$a(!1),ol=kt(null),il=null,qt=null,Di=null;function Mi(){Di=qt=il=null}function Ui(e){var t=ol.current;$(ol),e._currentValue=t}function Qo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function on(e,t){il=e,Di=qt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function Ie(e){var t=e._currentValue;if(Di!==e)if(e={context:e,memoizedValue:t,next:null},qt===null){if(il===null)throw Error(C(308));qt=e,il.dependencies={lanes:0,firstContext:e}}else qt=qt.next=e;return t}var Tt=null;function Ai(e){Tt===null?Tt=[e]:Tt.push(e)}function Ba(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ai(t)):(n.next=l.next,l.next=n),t.interleaved=n,be(e,r)}function be(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var lt=!1;function Fi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Je(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,be(e,n)}return l=r.interleaved,l===null?(t.next=t,Ai(r)):(t.next=l.next,l.next=t),r.interleaved=t,be(e,n)}function Fr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_i(e,n)}}function Gs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sl(e,t,n,r){var l=e.updateQueue;lt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==i&&(s===null?h.firstBaseUpdate=a:s.next=a,h.lastBaseUpdate=u))}if(o!==null){var d=l.baseState;i=0,h=a=u=null,s=o;do{var g=s.lane,y=s.eventTime;if((r&g)===g){h!==null&&(h=h.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,w=s;switch(g=t,y=n,w.tag){case 1:if(S=w.payload,typeof S=="function"){d=S.call(y,d,g);break e}d=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=w.payload,g=typeof S=="function"?S.call(y,d,g):S,g==null)break e;d=W({},d,g);break e;case 2:lt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=l.effects,g===null?l.effects=[s]:g.push(s))}else y={eventTime:y,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(a=h=y,u=d):h=h.next=y,i|=g;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;g=s,s=g.next,g.next=null,l.lastBaseUpdate=g,l.shared.pending=null}}while(!0);if(h===null&&(u=d),l.baseState=u,l.firstBaseUpdate=a,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Mt|=i,e.lanes=i,e.memoizedState=d}}function Ys(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=lo.transition;lo.transition={};try{e(!1),t()}finally{U=n,lo.transition=r}}function ic(){return je().memoizedState}function ep(e,t,n){var r=mt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sc(e))uc(t,n);else if(n=Ba(e,t,n,r),n!==null){var l=de();Fe(n,e,r,l),ac(n,t,r)}}function tp(e,t,n){var r=mt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sc(e))uc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,$e(s,i)){var u=t.interleaved;u===null?(l.next=l,Ai(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Ba(e,t,l,r),n!==null&&(l=de(),Fe(n,e,r,l),ac(n,t,r))}}function sc(e){var t=e.alternate;return e===H||t!==null&&t===H}function uc(e,t){An=al=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ac(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_i(e,n)}}var cl={readContext:Ie,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},np={readContext:Ie,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Js,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vr(4194308,4,tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vr(4,2,e,t)},useMemo:function(e,t){var n=Be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Be();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ep.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Be();return e={current:e},t.memoizedState=e},useState:Xs,useDebugValue:Gi,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=Xs(!1),t=e[0];return e=bd.bind(null,e[1]),Be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=Be();if(V){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ne===null)throw Error(C(349));Dt&30||Ga(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Js(Xa.bind(null,r,o,e),[e]),r.flags|=2048,rr(9,Ya.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Be(),t=ne.identifierPrefix;if(V){var n=Xe,r=Ye;n=(r&~(1<<32-Ae(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=tr++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Vl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tn(e):""}function Id(e){switch(e.tag){case 5:return Tn(e.type);case 16:return Tn("Lazy");case 13:return Tn("Suspense");case 19:return Tn("SuspenseList");case 0:case 2:case 15:return e=Bl(e.type,!1),e;case 11:return e=Bl(e.type.render,!1),e;case 1:return e=Bl(e.type,!0),e;default:return""}}function wo(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 Ht:return"Fragment";case Wt:return"Portal";case vo:return"Profiler";case Si:return"StrictMode";case yo:return"Suspense";case So:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wu:return(e.displayName||"Context")+".Consumer";case Bu:return(e._context.displayName||"Context")+".Provider";case wi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ci:return t=e.displayName||null,t!==null?t:wo(e.type)||"Memo";case rt:t=e._payload,e=e._init;try{return wo(e(t))}catch{}}return null}function jd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wo(t);case 8:return t===Si?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function St(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zd(e){var t=Qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=zd(e))}function Ku(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kr(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 Co(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=St(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gu(e,t){t=t.checked,t!=null&&yi(e,"checked",t,!1)}function ko(e,t){Gu(e,t);var n=St(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xo(e,t.type,n):t.hasOwnProperty("defaultValue")&&xo(e,t.type,St(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ms(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xo(e,t,n){(t!=="number"||Kr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ln=Array.isArray;function tn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Sr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={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},Od=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){Od.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function Zu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function qu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Zu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Dd=H({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 No(e,t){if(t){if(Dd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Ro(e,t){if(e.indexOf("-")===-1)return typeof t.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 Po=null;function ki(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var To=null,nn=null,rn=null;function Ss(e){if(e=cr(e)){if(typeof To!="function")throw Error(C(280));var t=e.stateNode;t&&(t=xl(t),To(e.stateNode,e.type,t))}}function bu(e){nn?rn?rn.push(e):rn=[e]:nn=e}function ea(){if(nn){var e=nn,t=rn;if(rn=nn=null,Ss(e),t)for(e=0;e>>=0,e===0?32:31-(Kd(e)/Gd|0)|0}var wr=64,Cr=4194304;function In(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 Jr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=In(s):(o&=i,o!==0&&(r=In(o)))}else i=n&~l,i!==0?r=In(i):o!==0&&(r=In(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ae(t),e[t]=n}function Zd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Dn),Ps=" ",Ts=!1;function wa(e,t){switch(e){case"keyup":return Nf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ca(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qt=!1;function Pf(e,t){switch(e){case"compositionend":return Ca(t);case"keypress":return t.which!==32?null:(Ts=!0,Ps);case"textInput":return e=t.data,e===Ps&&Ts?null:e;default:return null}}function Tf(e,t){if(Qt)return e==="compositionend"||!Li&&wa(e,t)?(e=ya(),Ur=Ri=st=null,Qt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zs(n)}}function Ea(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ea(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Na(){for(var e=window,t=Kr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kr(e.document)}return t}function Ii(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Af(e){var t=Na(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ea(n.ownerDocument.documentElement,n)){if(r!==null&&Ii(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Os(n,o);var i=Os(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Kt=null,Do=null,Un=null,Mo=!1;function Ds(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mo||Kt==null||Kt!==Kr(r)||(r=Kt,"selectionStart"in r&&Ii(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}),Un&&Xn(Un,r)||(Un=r,r=br(Do,"onSelect"),0Xt||(e.current=Bo[Xt],Bo[Xt]=null,Xt--)}function A(e,t){Xt++,Bo[Xt]=e.current,e.current=t}var wt={},ce=kt(wt),ve=kt(!1),zt=wt;function an(e,t){var n=e.type.contextTypes;if(!n)return wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ye(e){return e=e.childContextTypes,e!=null}function tl(){$(ve),$(ce)}function Bs(e,t,n){if(ce.current!==wt)throw Error(C(168));A(ce,t),A(ve,n)}function Da(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(C(108,jd(e)||"Unknown",l));return H({},n,r)}function nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wt,zt=ce.current,A(ce,e),A(ve,ve.current),!0}function Ws(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=Da(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,$(ve),$(ce),A(ce,e)):$(ve),A(ve,n)}var Ge=null,_l=!1,no=!1;function Ma(e){Ge===null?Ge=[e]:Ge.push(e)}function Jf(e){_l=!0,Ma(e)}function xt(){if(!no&&Ge!==null){no=!0;var e=0,t=U;try{var n=Ge;for(U=1;e>=i,l-=i,Ye=1<<32-Ae(t)+l|n<T?(K=P,P=null):K=P.sibling;var O=g(f,P,p[T],v);if(O===null){P===null&&(P=K);break}e&&P&&O.alternate===null&&t(f,P),c=o(O,c,T),R===null?_=O:R.sibling=O,R=O,P=K}if(T===p.length)return n(f,P),V&&Nt(f,T),_;if(P===null){for(;TT?(K=P,P=null):K=P.sibling;var ze=g(f,P,O.value,v);if(ze===null){P===null&&(P=K);break}e&&P&&ze.alternate===null&&t(f,P),c=o(ze,c,T),R===null?_=ze:R.sibling=ze,R=ze,P=K}if(O.done)return n(f,P),V&&Nt(f,T),_;if(P===null){for(;!O.done;T++,O=p.next())O=d(f,O.value,v),O!==null&&(c=o(O,c,T),R===null?_=O:R.sibling=O,R=O);return V&&Nt(f,T),_}for(P=r(f,P);!O.done;T++,O=p.next())O=S(P,f,T,O.value,v),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?T:O.key),c=o(O,c,T),R===null?_=O:R.sibling=O,R=O);return e&&P.forEach(function(Sn){return t(f,Sn)}),V&&Nt(f,T),_}function x(f,c,p,v){if(typeof p=="object"&&p!==null&&p.type===Ht&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case vr:e:{for(var _=p.key,R=c;R!==null;){if(R.key===_){if(_=p.type,_===Ht){if(R.tag===7){n(f,R.sibling),c=l(R,p.props.children),c.return=f,f=c;break e}}else if(R.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===rt&&Ks(_)===R.type){n(f,R.sibling),c=l(R,p.props),c.ref=Nn(f,R,p),c.return=f,f=c;break e}n(f,R);break}else t(f,R);R=R.sibling}p.type===Ht?(c=jt(p.props.children,f.mode,v,p.key),c.return=f,f=c):(v=Qr(p.type,p.key,p.props,null,f.mode,v),v.ref=Nn(f,c,p),v.return=f,f=v)}return i(f);case Wt:e:{for(R=p.key;c!==null;){if(c.key===R)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=co(p,f.mode,v),c.return=f,f=c}return i(f);case rt:return R=p._init,x(f,c,R(p._payload),v)}if(Ln(p))return y(f,c,p,v);if(Cn(p))return w(f,c,p,v);Pr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=ao(p,f.mode,v),c.return=f,f=c),i(f)):n(f,c)}return x}var dn=$a(!0),Va=$a(!1),ol=kt(null),il=null,qt=null,Di=null;function Mi(){Di=qt=il=null}function Ui(e){var t=ol.current;$(ol),e._currentValue=t}function Qo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function on(e,t){il=e,Di=qt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function Ie(e){var t=e._currentValue;if(Di!==e)if(e={context:e,memoizedValue:t,next:null},qt===null){if(il===null)throw Error(C(308));qt=e,il.dependencies={lanes:0,firstContext:e}}else qt=qt.next=e;return t}var Tt=null;function Ai(e){Tt===null?Tt=[e]:Tt.push(e)}function Ba(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ai(t)):(n.next=l.next,l.next=n),t.interleaved=n,be(e,r)}function be(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var lt=!1;function Fi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Je(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,be(e,n)}return l=r.interleaved,l===null?(t.next=t,Ai(r)):(t.next=l.next,l.next=t),r.interleaved=t,be(e,n)}function Fr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_i(e,n)}}function Gs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sl(e,t,n,r){var l=e.updateQueue;lt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==i&&(s===null?h.firstBaseUpdate=a:s.next=a,h.lastBaseUpdate=u))}if(o!==null){var d=l.baseState;i=0,h=a=u=null,s=o;do{var g=s.lane,S=s.eventTime;if((r&g)===g){h!==null&&(h=h.next={eventTime:S,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,w=s;switch(g=t,S=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){d=y.call(S,d,g);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,g=typeof y=="function"?y.call(S,d,g):y,g==null)break e;d=H({},d,g);break e;case 2:lt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=l.effects,g===null?l.effects=[s]:g.push(s))}else S={eventTime:S,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(a=h=S,u=d):h=h.next=S,i|=g;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;g=s,s=g.next,g.next=null,l.lastBaseUpdate=g,l.shared.pending=null}}while(!0);if(h===null&&(u=d),l.baseState=u,l.firstBaseUpdate=a,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Mt|=i,e.lanes=i,e.memoizedState=d}}function Ys(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=lo.transition;lo.transition={};try{e(!1),t()}finally{U=n,lo.transition=r}}function ic(){return je().memoizedState}function ep(e,t,n){var r=mt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sc(e))uc(t,n);else if(n=Ba(e,t,n,r),n!==null){var l=fe();Fe(n,e,r,l),ac(n,t,r)}}function tp(e,t,n){var r=mt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sc(e))uc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,$e(s,i)){var u=t.interleaved;u===null?(l.next=l,Ai(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Ba(e,t,l,r),n!==null&&(l=fe(),Fe(n,e,r,l),ac(n,t,r))}}function sc(e){var t=e.alternate;return e===W||t!==null&&t===W}function uc(e,t){An=al=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ac(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_i(e,n)}}var cl={readContext:Ie,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},np={readContext:Ie,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Js,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vr(4194308,4,tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vr(4,2,e,t)},useMemo:function(e,t){var n=Be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Be();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ep.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Be();return e={current:e},t.memoizedState=e},useState:Xs,useDebugValue:Gi,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=Xs(!1),t=e[0];return e=bf.bind(null,e[1]),Be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,l=Be();if(V){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ne===null)throw Error(C(349));Dt&30||Ga(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Js(Xa.bind(null,r,o,e),[e]),r.flags|=2048,rr(9,Ya.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Be(),t=ne.identifierPrefix;if(V){var n=Xe,r=Ye;n=(r&~(1<<32-Ae(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=tr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[He]=t,e[qn]=r,Sc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ro(n,r),n){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;lhn&&(t.flags|=128,r=!0,Rn(o,!1),t.lanes=4194304)}else{if(!r)if(e=ul(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!V)return ue(t),null}else 2*X()-o.renderingStartTime>hn&&n!==1073741824&&(t.flags|=128,r=!0,Rn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=X(),t.sibling=null,n=B.current,A(B,r?n&1|2:n&1),t):(ue(t),null);case 22:case 23:return bi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ce&1073741824&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function cp(e,t){switch(zi(t),t.tag){case 1:return ye(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dn(),$(ve),$(ce),Bi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vi(t),null;case 13:if($(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(B),null;case 4:return dn(),null;case 10:return Ui(t.type._context),null;case 22:case 23:return bi(),null;case 24:return null;default:return null}}var Lr=!1,ae=!1,fp=typeof WeakSet=="function"?WeakSet:Set,E=null;function bt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function ei(e,t,n){try{n()}catch(r){Q(e,t,r)}}var su=!1;function dp(e,t){if(Uo=Zr,e=Na(),Ii(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,a=0,h=0,d=e,g=null;t:for(;;){for(var y;d!==n||l!==0&&d.nodeType!==3||(s=i+l),d!==o||r!==0&&d.nodeType!==3||(u=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)g=d,d=y;for(;;){if(d===e)break t;if(g===n&&++a===l&&(s=i),g===o&&++h===r&&(u=i),(y=d.nextSibling)!==null)break;d=g,g=d.parentNode}d=y}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ao={focusedElem:e,selectionRange:n},Zr=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var w=S.memoizedProps,x=S.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?w:De(t.type,w),x);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(m){Q(t,t.return,m)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return S=su,su=!1,S}function Fn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&ei(t,n,o)}l=l.next}while(l!==r)}}function Rl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ti(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kc(e){var t=e.alternate;t!==null&&(e.alternate=null,kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[He],delete t[qn],delete t[Vo],delete t[Yd],delete t[Xd])),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 xc(e){return e.tag===5||e.tag===3||e.tag===4}function uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xc(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 ni(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=el));else if(r!==4&&(e=e.child,e!==null))for(ni(e,t,n),e=e.sibling;e!==null;)ni(e,t,n),e=e.sibling}function ri(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ri(e,t,n),e=e.sibling;e!==null;)ri(e,t,n),e=e.sibling}var le=null,Me=!1;function nt(e,t,n){for(n=n.child;n!==null;)_c(e,t,n),n=n.sibling}function _c(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 5:ae||bt(n,t);case 6:var r=le,l=Me;le=null,nt(e,t,n),le=r,Me=l,le!==null&&(Me?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Me?(e=le,n=n.stateNode,e.nodeType===8?to(e.parentNode,n):e.nodeType===1&&to(e,n),Gn(e)):to(le,n.stateNode));break;case 4:r=le,l=Me,le=n.stateNode.containerInfo,Me=!0,nt(e,t,n),le=r,Me=l;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ei(n,t,i),l=l.next}while(l!==r)}nt(e,t,n);break;case 1:if(!ae&&(bt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Q(n,t,s)}nt(e,t,n);break;case 21:nt(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,nt(e,t,n),ae=r):nt(e,t,n);break;default:nt(e,t,n)}}function au(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fp),t.forEach(function(r){var l=Cp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Oe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hp(r/1960))-r,10e?16:e,ut===null)var r=!1;else{if(e=ut,ut=null,pl=0,M&6)throw Error(C(331));var l=M;for(M|=4,E=e.current;E!==null;){var o=E,i=o.child;if(E.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uX()-Zi?It(e,0):Ji|=n),Se(e,t)}function jc(e,t){t===0&&(e.mode&1?(t=Cr,Cr<<=1,!(Cr&130023424)&&(Cr=4194304)):t=1);var n=de();e=be(e,t),e!==null&&(ur(e,t,n),Se(e,n))}function wp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jc(e,n)}function Cp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),jc(e,n)}var zc;zc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,up(e,t,n);me=!!(e.flags&131072)}else me=!1,V&&t.flags&1048576&&Ua(t,ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Br(e,t),e=t.pendingProps;var l=an(t,ce.current);on(t,n),l=Wi(null,t,r,e,l,n);var o=Qi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ye(r)?(o=!0,nl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Fi(t),l.updater=Nl,t.stateNode=l,l._reactInternals=t,Go(t,r,e,n),t=Jo(null,t,r,!0,o,n)):(t.tag=0,V&&o&&ji(t),fe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Br(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=xp(r),e=De(r,e),l){case 0:t=Xo(null,t,r,e,n);break e;case 1:t=lu(null,t,r,e,n);break e;case 11:t=nu(null,t,r,e,n);break e;case 14:t=ru(null,t,r,De(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),Xo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),lu(e,t,r,l,n);case 3:e:{if(mc(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Ha(e,t),sl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=pn(Error(C(423)),t),t=ou(e,t,r,n,l);break e}else if(r!==l){l=pn(Error(C(424)),t),t=ou(e,t,r,n,l);break e}else for(ke=pt(t.stateNode.containerInfo.firstChild),xe=t,V=!0,Ue=null,n=Va(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cn(),r===l){t=et(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return Wa(t),e===null&&Wo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Fo(r,l)?i=null:o!==null&&Fo(r,o)&&(t.flags|=32),gc(e,t),fe(e,t,i,n),t.child;case 6:return e===null&&Wo(t),null;case 13:return vc(e,t,n);case 4:return $i(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fn(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),nu(e,t,r,l,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,A(ol,r._currentValue),r._currentValue=i,o!==null)if($e(o.value,i)){if(o.children===l.children&&!ve.current){t=et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Je(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?u.next=u:(u.next=h.next,h.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Qo(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(C(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Qo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}fe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,on(t,n),l=Ie(l),r=r(l),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,l=De(r,t.pendingProps),l=De(r.type,l),ru(e,t,r,l,n);case 15:return pc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),Br(e,t),t.tag=1,ye(r)?(e=!0,nl(t)):e=!1,on(t,n),cc(t,r,l),Go(t,r,l,n),Jo(null,t,r,!0,e,n);case 19:return yc(e,t,n);case 22:return hc(e,t,n)}throw Error(C(156,t.tag))};function Oc(e,t){return sa(e,t)}function kp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,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 Te(e,t,n,r){return new kp(e,t,n,r)}function ts(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xp(e){if(typeof e=="function")return ts(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wi)return 11;if(e===Ci)return 14}return 2}function vt(e,t){var n=e.alternate;return n===null?(n=Te(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")ts(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Wt:return jt(n.children,l,o,t);case Si:i=8,l|=8;break;case vo:return e=Te(12,n,t,l|2),e.elementType=vo,e.lanes=o,e;case yo:return e=Te(13,n,t,l),e.elementType=yo,e.lanes=o,e;case So:return e=Te(19,n,t,l),e.elementType=So,e.lanes=o,e;case Wu:return Tl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bu:i=10;break e;case Hu:i=9;break e;case wi:i=11;break e;case Ci:i=14;break e;case rt:i=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Te(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function jt(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function Tl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=Wu,e.lanes=n,e.stateNode={isHidden:!1},e}function ao(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function co(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _p(e,t,n,r,l){this.tag=t,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=Wl(0),this.expirationTimes=Wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ns(e,t,n,r,l,o,i,s,u){return e=new _p(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Te(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fi(o),e}function Ep(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ac)}catch(e){console.error(e)}}Ac(),Au.exports=Ee;var Lp=Au.exports,vu=Lp;go.createRoot=vu.createRoot,go.hydrateRoot=vu.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function so(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Yo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var op=typeof WeakMap=="function"?WeakMap:Map;function dc(e,t,n){n=Je(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fl||(fl=!0,li=r),Yo(e,t)},n}function fc(e,t,n){n=Je(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Yo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Yo(e,t),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function bs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new op;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Sp.bind(null,e,t,n),t.then(e,e))}function eu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function tu(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Je(-1,1),t.tag=2,ht(n,t,1))),n.lanes|=1),e)}var ip=tt.ReactCurrentOwner,me=!1;function de(e,t,n,r){t.child=e===null?Va(t,null,n,r):dn(t,e.child,n,r)}function nu(e,t,n,r,l){n=n.render;var o=t.ref;return on(t,l),r=Hi(e,t,n,r,o,l),n=Qi(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,et(e,t,l)):(V&&n&&ji(t),t.flags|=1,de(e,t,r,l),t.child)}function ru(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!ts(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,pc(e,t,o,r,l)):(e=Qr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Xn,n(i,r)&&e.ref===t.ref)return et(e,t,l)}return t.flags|=1,e=vt(o,r),e.ref=t.ref,e.return=t,t.child=e}function pc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Xn(o,r)&&e.ref===t.ref)if(me=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(me=!0);else return t.lanes=e.lanes,et(e,t,l)}return Xo(e,t,n,r,l)}function hc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},A(en,Ce),Ce|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,A(en,Ce),Ce|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,A(en,Ce),Ce|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,A(en,Ce),Ce|=r;return de(e,t,l,n),t.child}function gc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xo(e,t,n,r,l){var o=ye(n)?zt:ce.current;return o=an(t,o),on(t,l),n=Hi(e,t,n,r,o,l),r=Qi(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,et(e,t,l)):(V&&r&&ji(t),t.flags|=1,de(e,t,n,l),t.child)}function lu(e,t,n,r,l){if(ye(n)){var o=!0;nl(t)}else o=!1;if(on(t,l),t.stateNode===null)Br(e,t),cc(t,n,r),Go(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=Ie(a):(a=ye(n)?zt:ce.current,a=an(t,a));var h=n.getDerivedStateFromProps,d=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||u!==a)&&qs(t,i,r,a),lt=!1;var g=t.memoizedState;i.state=g,sl(t,r,i,l),u=t.memoizedState,s!==r||g!==u||ve.current||lt?(typeof h=="function"&&(Ko(t,n,h,r),u=t.memoizedState),(s=lt||Zs(t,n,s,r,g,u,a))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Wa(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:De(t.type,s),i.props=a,d=t.pendingProps,g=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ie(u):(u=ye(n)?zt:ce.current,u=an(t,u));var S=n.getDerivedStateFromProps;(h=typeof S=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||g!==u)&&qs(t,i,r,u),lt=!1,g=t.memoizedState,i.state=g,sl(t,r,i,l);var y=t.memoizedState;s!==d||g!==y||ve.current||lt?(typeof S=="function"&&(Ko(t,n,S,r),y=t.memoizedState),(a=lt||Zs(t,n,a,r,g,y,u)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=u,r=a):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return Jo(e,t,n,r,o,l)}function Jo(e,t,n,r,l,o){gc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Ws(t,n,!1),et(e,t,o);r=t.stateNode,ip.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=dn(t,e.child,null,o),t.child=dn(t,null,s,o)):de(e,t,s,o),t.memoizedState=r.state,l&&Ws(t,n,!0),t.child}function mc(e){var t=e.stateNode;t.pendingContext?Bs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bs(e,t.context,!1),$i(e,t.containerInfo)}function ou(e,t,n,r,l){return cn(),Oi(l),t.flags|=256,de(e,t,n,r),t.child}var Zo={dehydrated:null,treeContext:null,retryLane:0};function qo(e){return{baseLanes:e,cachePool:null,transitions:null}}function vc(e,t,n){var r=t.pendingProps,l=B.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),A(B,l&1),e===null)return Ho(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Tl(i,r,0,null),e=jt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=qo(n),t.memoizedState=Zo,e):Yi(t,i));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return sp(e,t,i,r,s,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=vt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?o=vt(s,o):(o=jt(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?qo(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Zo,r}return o=e.child,e=o.sibling,r=vt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Yi(e,t){return t=Tl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Tr(e,t,n,r){return r!==null&&Oi(r),dn(t,e.child,null,n),e=Yi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sp(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=so(Error(C(422))),Tr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Tl({mode:"visible",children:r.children},l,0,null),o=jt(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&dn(t,e.child,null,i),t.child.memoizedState=qo(i),t.memoizedState=Zo,o);if(!(t.mode&1))return Tr(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(C(419)),r=so(o,r,void 0),Tr(e,t,i,r)}if(s=(i&e.childLanes)!==0,me||s){if(r=ne,r!==null){switch(i&-i){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|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,be(e,l),Fe(r,e,l,-1))}return es(),r=so(Error(C(421))),Tr(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=wp.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ke=pt(l.nextSibling),xe=t,V=!0,Ue=null,e!==null&&(Re[Pe++]=Ye,Re[Pe++]=Xe,Re[Pe++]=Ot,Ye=e.id,Xe=e.overflow,Ot=t),t=Yi(t,r.children),t.flags|=4096,t)}function iu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qo(e.return,t,n)}function uo(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function yc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(de(e,t,r.children,n),r=B.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&iu(e,n,t);else if(e.tag===19)iu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(A(B,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&ul(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),uo(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ul(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}uo(t,!0,n,null,o);break;case"together":uo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Br(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Mt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=vt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function up(e,t,n){switch(t.tag){case 3:mc(t),cn();break;case 5:Ha(t);break;case 1:ye(t.type)&&nl(t);break;case 4:$i(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;A(ol,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(A(B,B.current&1),t.flags|=128,null):n&t.child.childLanes?vc(e,t,n):(A(B,B.current&1),e=et(e,t,n),e!==null?e.sibling:null);A(B,B.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),A(B,B.current),r)break;return null;case 22:case 23:return t.lanes=0,hc(e,t,n)}return et(e,t,n)}var Sc,bo,wc,Cc;Sc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};bo=function(){};wc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Lt(Qe.current);var o=null;switch(n){case"input":l=Co(e,l),r=Co(e,r),o=[];break;case"select":l=H({},l,{value:void 0}),r=H({},r,{value:void 0}),o=[];break;case"textarea":l=_o(e,l),r=_o(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=el)}No(n,r);var i;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var s=l[a];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Bn.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(s=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Bn.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&F("scroll",e),o||s===u||(o=[])):(o=o||[]).push(a,u))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Cc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Rn(e,t){if(!V)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=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;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ap(e,t,n){var r=t.pendingProps;switch(zi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ue(t),null;case 1:return ye(t.type)&&tl(),ue(t),null;case 3:return r=t.stateNode,fn(),$(ve),$(ce),Bi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Rr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ue!==null&&(si(Ue),Ue=null))),bo(e,t),ue(t),null;case 5:Vi(t);var l=Lt(er.current);if(n=t.type,e!==null&&t.stateNode!=null)wc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return ue(t),null}if(e=Lt(Qe.current),Rr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[We]=t,r[qn]=o,e=(t.mode&1)!==0,n){case"dialog":F("cancel",r),F("close",r);break;case"iframe":case"object":case"embed":F("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[We]=t,e[qn]=r,Sc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ro(n,r),n){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;lhn&&(t.flags|=128,r=!0,Rn(o,!1),t.lanes=4194304)}else{if(!r)if(e=ul(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!V)return ue(t),null}else 2*X()-o.renderingStartTime>hn&&n!==1073741824&&(t.flags|=128,r=!0,Rn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=X(),t.sibling=null,n=B.current,A(B,r?n&1|2:n&1),t):(ue(t),null);case 22:case 23:return bi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ce&1073741824&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function cp(e,t){switch(zi(t),t.tag){case 1:return ye(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(),$(ve),$(ce),Bi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vi(t),null;case 13:if($(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(B),null;case 4:return fn(),null;case 10:return Ui(t.type._context),null;case 22:case 23:return bi(),null;case 24:return null;default:return null}}var Lr=!1,ae=!1,dp=typeof WeakSet=="function"?WeakSet:Set,E=null;function bt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function ei(e,t,n){try{n()}catch(r){Q(e,t,r)}}var su=!1;function fp(e,t){if(Uo=Zr,e=Na(),Ii(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,a=0,h=0,d=e,g=null;t:for(;;){for(var S;d!==n||l!==0&&d.nodeType!==3||(s=i+l),d!==o||r!==0&&d.nodeType!==3||(u=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(S=d.firstChild)!==null;)g=d,d=S;for(;;){if(d===e)break t;if(g===n&&++a===l&&(s=i),g===o&&++h===r&&(u=i),(S=d.nextSibling)!==null)break;d=g,g=d.parentNode}d=S}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ao={focusedElem:e,selectionRange:n},Zr=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,x=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?w:De(t.type,w),x);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(v){Q(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return y=su,su=!1,y}function Fn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&ei(t,n,o)}l=l.next}while(l!==r)}}function Rl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ti(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kc(e){var t=e.alternate;t!==null&&(e.alternate=null,kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[qn],delete t[Vo],delete t[Yf],delete t[Xf])),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 xc(e){return e.tag===5||e.tag===3||e.tag===4}function uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xc(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 ni(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=el));else if(r!==4&&(e=e.child,e!==null))for(ni(e,t,n),e=e.sibling;e!==null;)ni(e,t,n),e=e.sibling}function ri(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ri(e,t,n),e=e.sibling;e!==null;)ri(e,t,n),e=e.sibling}var le=null,Me=!1;function nt(e,t,n){for(n=n.child;n!==null;)_c(e,t,n),n=n.sibling}function _c(e,t,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 5:ae||bt(n,t);case 6:var r=le,l=Me;le=null,nt(e,t,n),le=r,Me=l,le!==null&&(Me?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Me?(e=le,n=n.stateNode,e.nodeType===8?to(e.parentNode,n):e.nodeType===1&&to(e,n),Gn(e)):to(le,n.stateNode));break;case 4:r=le,l=Me,le=n.stateNode.containerInfo,Me=!0,nt(e,t,n),le=r,Me=l;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ei(n,t,i),l=l.next}while(l!==r)}nt(e,t,n);break;case 1:if(!ae&&(bt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Q(n,t,s)}nt(e,t,n);break;case 21:nt(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,nt(e,t,n),ae=r):nt(e,t,n);break;default:nt(e,t,n)}}function au(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dp),t.forEach(function(r){var l=Cp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Oe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hp(r/1960))-r,10e?16:e,ut===null)var r=!1;else{if(e=ut,ut=null,pl=0,M&6)throw Error(C(331));var l=M;for(M|=4,E=e.current;E!==null;){var o=E,i=o.child;if(E.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uX()-Zi?It(e,0):Ji|=n),Se(e,t)}function jc(e,t){t===0&&(e.mode&1?(t=Cr,Cr<<=1,!(Cr&130023424)&&(Cr=4194304)):t=1);var n=fe();e=be(e,t),e!==null&&(ur(e,t,n),Se(e,n))}function wp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jc(e,n)}function Cp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),jc(e,n)}var zc;zc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,up(e,t,n);me=!!(e.flags&131072)}else me=!1,V&&t.flags&1048576&&Ua(t,ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Br(e,t),e=t.pendingProps;var l=an(t,ce.current);on(t,n),l=Hi(null,t,r,e,l,n);var o=Qi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ye(r)?(o=!0,nl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Fi(t),l.updater=Nl,t.stateNode=l,l._reactInternals=t,Go(t,r,e,n),t=Jo(null,t,r,!0,o,n)):(t.tag=0,V&&o&&ji(t),de(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Br(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=xp(r),e=De(r,e),l){case 0:t=Xo(null,t,r,e,n);break e;case 1:t=lu(null,t,r,e,n);break e;case 11:t=nu(null,t,r,e,n);break e;case 14:t=ru(null,t,r,De(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),Xo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),lu(e,t,r,l,n);case 3:e:{if(mc(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Wa(e,t),sl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=pn(Error(C(423)),t),t=ou(e,t,r,n,l);break e}else if(r!==l){l=pn(Error(C(424)),t),t=ou(e,t,r,n,l);break e}else for(ke=pt(t.stateNode.containerInfo.firstChild),xe=t,V=!0,Ue=null,n=Va(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cn(),r===l){t=et(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return Ha(t),e===null&&Ho(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Fo(r,l)?i=null:o!==null&&Fo(r,o)&&(t.flags|=32),gc(e,t),de(e,t,i,n),t.child;case 6:return e===null&&Ho(t),null;case 13:return vc(e,t,n);case 4:return $i(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dn(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),nu(e,t,r,l,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,A(ol,r._currentValue),r._currentValue=i,o!==null)if($e(o.value,i)){if(o.children===l.children&&!ve.current){t=et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Je(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?u.next=u:(u.next=h.next,h.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Qo(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(C(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Qo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}de(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,on(t,n),l=Ie(l),r=r(l),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,l=De(r,t.pendingProps),l=De(r.type,l),ru(e,t,r,l,n);case 15:return pc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),Br(e,t),t.tag=1,ye(r)?(e=!0,nl(t)):e=!1,on(t,n),cc(t,r,l),Go(t,r,l,n),Jo(null,t,r,!0,e,n);case 19:return yc(e,t,n);case 22:return hc(e,t,n)}throw Error(C(156,t.tag))};function Oc(e,t){return sa(e,t)}function kp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,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 Te(e,t,n,r){return new kp(e,t,n,r)}function ts(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xp(e){if(typeof e=="function")return ts(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wi)return 11;if(e===Ci)return 14}return 2}function vt(e,t){var n=e.alternate;return n===null?(n=Te(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")ts(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ht:return jt(n.children,l,o,t);case Si:i=8,l|=8;break;case vo:return e=Te(12,n,t,l|2),e.elementType=vo,e.lanes=o,e;case yo:return e=Te(13,n,t,l),e.elementType=yo,e.lanes=o,e;case So:return e=Te(19,n,t,l),e.elementType=So,e.lanes=o,e;case Hu:return Tl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bu:i=10;break e;case Wu:i=9;break e;case wi:i=11;break e;case Ci:i=14;break e;case rt:i=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Te(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function jt(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function Tl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=Hu,e.lanes=n,e.stateNode={isHidden:!1},e}function ao(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function co(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _p(e,t,n,r,l){this.tag=t,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=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ns(e,t,n,r,l,o,i,s,u){return e=new _p(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Te(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fi(o),e}function Ep(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ac)}catch(e){console.error(e)}}Ac(),Au.exports=Ee;var Lp=Au.exports,vu=Lp;go.createRoot=vu.createRoot,go.hydrateRoot=vu.hydrateRoot;/** * @remix-run/router v1.17.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jp(){return Math.random().toString(36).substr(2,8)}function Su(e,t){return{usr:e.state,key:e.key,idx:t}}function ui(e,t,n,r){return n===void 0&&(n=null),or({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yn(t):t,{state:n,key:t&&t.key||r||jp()})}function ml(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function yn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function zp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,s=at.Pop,u=null,a=h();a==null&&(a=0,i.replaceState(or({},i.state,{idx:a}),""));function h(){return(i.state||{idx:null}).idx}function d(){s=at.Pop;let x=h(),f=x==null?null:x-a;a=x,u&&u({action:s,location:w.location,delta:f})}function g(x,f){s=at.Push;let c=ui(w.location,x,f);a=h()+1;let p=Su(c,a),m=w.createHref(c);try{i.pushState(p,"",m)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;l.location.assign(m)}o&&u&&u({action:s,location:w.location,delta:1})}function y(x,f){s=at.Replace;let c=ui(w.location,x,f);a=h();let p=Su(c,a),m=w.createHref(c);i.replaceState(p,"",m),o&&u&&u({action:s,location:w.location,delta:0})}function S(x){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof x=="string"?x:ml(x);return c=c.replace(/ $/,"%20"),Z(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let w={get action(){return s},get location(){return e(l,i)},listen(x){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(yu,d),u=x,()=>{l.removeEventListener(yu,d),u=null}},createHref(x){return t(l,x)},createURL:S,encodeLocation(x){let f=S(x);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:g,replace:y,go(x){return i.go(x)}};return w}var wu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(wu||(wu={}));function Op(e,t,n){return n===void 0&&(n="/"),Dp(e,t,n,!1)}function Dp(e,t,n,r){let l=typeof t=="string"?yn(t):t,o=is(l.pathname||"/",n);if(o==null)return null;let i=$c(e);Mp(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(Z(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=yt([r,u.relativePath]),h=n.concat(u);o.children&&o.children.length>0&&(Z(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),$c(o.children,t,h,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Hp(a,o.index),routesMeta:h})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,i);else for(let u of Vc(o.path))l(o,i,u)}),t}function Vc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Vc(r.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Mp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Wp(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Up=/^:[\w-]+$/,Ap=3,Fp=2,$p=1,Vp=10,Bp=-2,Cu=e=>e==="*";function Hp(e,t){let n=e.split("/"),r=n.length;return n.some(Cu)&&(r+=Bp),t&&(r+=Fp),n.filter(l=>!Cu(l)).reduce((l,o)=>l+(Up.test(o)?Ap:o===""?$p:Vp),r)}function Wp(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Qp(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let s=0;s{let{paramName:g,isOptional:y}=h;if(g==="*"){let w=s[d]||"";i=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const S=s[d];return y&&!S?a[g]=void 0:a[g]=(S||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function Kp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Gp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function is(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Yp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?yn(e):e;return{pathname:n?n.startsWith("/")?n:Xp(n,t):t,search:qp(r),hash:bp(l)}}function Xp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function fo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Jp(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Bc(e,t){let n=Jp(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Hc(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=yn(e):(l=or({},e),Z(!l.pathname||!l.pathname.includes("?"),fo("?","pathname","search",l)),Z(!l.pathname||!l.pathname.includes("#"),fo("#","pathname","hash",l)),Z(!l.search||!l.search.includes("#"),fo("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,s;if(i==null)s=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),d-=1;l.pathname=g.join("/")}s=d>=0?t[d]:"/"}let u=Yp(l,s),a=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||h)&&(u.pathname+="/"),u}const yt=e=>e.join("/").replace(/\/\/+/g,"/"),Zp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function eh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Wc=["post","put","patch","delete"];new Set(Wc);const th=["get",...Wc];new Set(th);/** + */function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jp(){return Math.random().toString(36).substr(2,8)}function Su(e,t){return{usr:e.state,key:e.key,idx:t}}function ui(e,t,n,r){return n===void 0&&(n=null),or({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yn(t):t,{state:n,key:t&&t.key||r||jp()})}function ml(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function yn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function zp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,s=at.Pop,u=null,a=h();a==null&&(a=0,i.replaceState(or({},i.state,{idx:a}),""));function h(){return(i.state||{idx:null}).idx}function d(){s=at.Pop;let x=h(),f=x==null?null:x-a;a=x,u&&u({action:s,location:w.location,delta:f})}function g(x,f){s=at.Push;let c=ui(w.location,x,f);a=h()+1;let p=Su(c,a),v=w.createHref(c);try{i.pushState(p,"",v)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;l.location.assign(v)}o&&u&&u({action:s,location:w.location,delta:1})}function S(x,f){s=at.Replace;let c=ui(w.location,x,f);a=h();let p=Su(c,a),v=w.createHref(c);i.replaceState(p,"",v),o&&u&&u({action:s,location:w.location,delta:0})}function y(x){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof x=="string"?x:ml(x);return c=c.replace(/ $/,"%20"),Z(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let w={get action(){return s},get location(){return e(l,i)},listen(x){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(yu,d),u=x,()=>{l.removeEventListener(yu,d),u=null}},createHref(x){return t(l,x)},createURL:y,encodeLocation(x){let f=y(x);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:g,replace:S,go(x){return i.go(x)}};return w}var wu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(wu||(wu={}));function Op(e,t,n){return n===void 0&&(n="/"),Dp(e,t,n,!1)}function Dp(e,t,n,r){let l=typeof t=="string"?yn(t):t,o=is(l.pathname||"/",n);if(o==null)return null;let i=$c(e);Mp(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(Z(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=yt([r,u.relativePath]),h=n.concat(u);o.children&&o.children.length>0&&(Z(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),$c(o.children,t,h,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Wp(a,o.index),routesMeta:h})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,i);else for(let u of Vc(o.path))l(o,i,u)}),t}function Vc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Vc(r.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Mp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Hp(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Up=/^:[\w-]+$/,Ap=3,Fp=2,$p=1,Vp=10,Bp=-2,Cu=e=>e==="*";function Wp(e,t){let n=e.split("/"),r=n.length;return n.some(Cu)&&(r+=Bp),t&&(r+=Fp),n.filter(l=>!Cu(l)).reduce((l,o)=>l+(Up.test(o)?Ap:o===""?$p:Vp),r)}function Hp(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Qp(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let s=0;s{let{paramName:g,isOptional:S}=h;if(g==="*"){let w=s[d]||"";i=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const y=s[d];return S&&!y?a[g]=void 0:a[g]=(y||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function Kp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Gp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function is(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Yp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?yn(e):e;return{pathname:n?n.startsWith("/")?n:Xp(n,t):t,search:qp(r),hash:bp(l)}}function Xp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function fo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Jp(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Bc(e,t){let n=Jp(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Wc(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=yn(e):(l=or({},e),Z(!l.pathname||!l.pathname.includes("?"),fo("?","pathname","search",l)),Z(!l.pathname||!l.pathname.includes("#"),fo("#","pathname","hash",l)),Z(!l.search||!l.search.includes("#"),fo("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,s;if(i==null)s=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),d-=1;l.pathname=g.join("/")}s=d>=0?t[d]:"/"}let u=Yp(l,s),a=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||h)&&(u.pathname+="/"),u}const yt=e=>e.join("/").replace(/\/\/+/g,"/"),Zp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function eh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Hc=["post","put","patch","delete"];new Set(Hc);const th=["get",...Hc];new Set(th);/** * React Router v6.24.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),k.useCallback(function(a,h){if(h===void 0&&(h={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let d=Hc(a,JSON.parse(i),o,h.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:yt([t,d.pathname])),(h.replace?r.replace:r.push)(d,h.state,h)},[t,r,i,o,e])}function Gc(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext($t),{matches:l}=k.useContext(Vt),{pathname:o}=pr(),i=JSON.stringify(Bc(l,r.v7_relativeSplatPath));return k.useMemo(()=>Hc(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function ih(e,t){return sh(e,t)}function sh(e,t,n,r){dr()||Z(!1);let{navigator:l}=k.useContext($t),{matches:o}=k.useContext(Vt),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let a=pr(),h;if(t){var d;let x=typeof t=="string"?yn(t):t;u==="/"||(d=x.pathname)!=null&&d.startsWith(u)||Z(!1),h=x}else h=a;let g=h.pathname||"/",y=g;if(u!=="/"){let x=u.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let S=Op(e,{pathname:y}),w=dh(S&&S.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:yt([u,l.encodeLocation?l.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:yt([u,l.encodeLocation?l.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&w?k.createElement(Ol.Provider,{value:{location:ir({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:at.Pop}},w):w}function uh(){let e=mh(),t=eh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:l},n):null,null)}const ah=k.createElement(uh,null);class ch extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?k.createElement(Vt.Provider,{value:this.props.routeContext},k.createElement(Qc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fh(e){let{routeContext:t,match:n,children:r}=e,l=k.useContext(ss);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Vt.Provider,{value:t},r)}function dh(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let h=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);h>=0||Z(!1),i=i.slice(0,Math.min(i.length,h+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((h,d,g)=>{let y,S=!1,w=null,x=null;n&&(y=s&&d.route.id?s[d.route.id]:void 0,w=d.route.errorElement||ah,u&&(a<0&&g===0?(S=!0,x=null):a===g&&(S=!0,x=d.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,g+1)),c=()=>{let p;return y?p=w:S?p=x:d.route.Component?p=k.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=h,k.createElement(fh,{match:d,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||g===0)?k.createElement(ch,{location:n.location,revalidation:n.revalidation,component:w,error:y,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var Yc=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Yc||{}),vl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(vl||{});function ph(e){let t=k.useContext(ss);return t||Z(!1),t}function hh(e){let t=k.useContext(nh);return t||Z(!1),t}function gh(e){let t=k.useContext(Vt);return t||Z(!1),t}function Xc(e){let t=gh(),n=t.matches[t.matches.length-1];return n.route.id||Z(!1),n.route.id}function mh(){var e;let t=k.useContext(Qc),n=hh(vl.UseRouteError),r=Xc(vl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vh(){let{router:e}=ph(Yc.UseNavigateStable),t=Xc(vl.UseNavigateStable),n=k.useRef(!1);return Kc(()=>{n.current=!0}),k.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,ir({fromRouteId:t},o)))},[e,t])}function ai(e){Z(!1)}function yh(e){let{basename:t="/",children:n=null,location:r,navigationType:l=at.Pop,navigator:o,static:i=!1,future:s}=e;dr()&&Z(!1);let u=t.replace(/^\/*/,"/"),a=k.useMemo(()=>({basename:u,navigator:o,static:i,future:ir({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof r=="string"&&(r=yn(r));let{pathname:h="/",search:d="",hash:g="",state:y=null,key:S="default"}=r,w=k.useMemo(()=>{let x=is(h,u);return x==null?null:{location:{pathname:x,search:d,hash:g,state:y,key:S},navigationType:l}},[u,h,d,g,y,S,l]);return w==null?null:k.createElement($t.Provider,{value:a},k.createElement(Ol.Provider,{children:n,value:w}))}function Sh(e){let{children:t,location:n}=e;return ih(ci(t),n)}new Promise(()=>{});function ci(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,l)=>{if(!k.isValidElement(r))return;let o=[...t,l];if(r.type===k.Fragment){n.push.apply(n,ci(r.props.children,o));return}r.type!==ai&&Z(!1),!r.props.index||!r.props.children||Z(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=ci(r.props.children,o)),n.push(i)}),n}/** + */function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),k.useCallback(function(a,h){if(h===void 0&&(h={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let d=Wc(a,JSON.parse(i),o,h.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:yt([t,d.pathname])),(h.replace?r.replace:r.push)(d,h.state,h)},[t,r,i,o,e])}function Gc(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext($t),{matches:l}=k.useContext(Vt),{pathname:o}=pr(),i=JSON.stringify(Bc(l,r.v7_relativeSplatPath));return k.useMemo(()=>Wc(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function ih(e,t){return sh(e,t)}function sh(e,t,n,r){fr()||Z(!1);let{navigator:l}=k.useContext($t),{matches:o}=k.useContext(Vt),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let a=pr(),h;if(t){var d;let x=typeof t=="string"?yn(t):t;u==="/"||(d=x.pathname)!=null&&d.startsWith(u)||Z(!1),h=x}else h=a;let g=h.pathname||"/",S=g;if(u!=="/"){let x=u.replace(/^\//,"").split("/");S="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=Op(e,{pathname:S}),w=fh(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:yt([u,l.encodeLocation?l.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:yt([u,l.encodeLocation?l.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&w?k.createElement(Ol.Provider,{value:{location:ir({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:at.Pop}},w):w}function uh(){let e=mh(),t=eh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:l},n):null,null)}const ah=k.createElement(uh,null);class ch extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?k.createElement(Vt.Provider,{value:this.props.routeContext},k.createElement(Qc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dh(e){let{routeContext:t,match:n,children:r}=e,l=k.useContext(ss);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Vt.Provider,{value:t},r)}function fh(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let h=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);h>=0||Z(!1),i=i.slice(0,Math.min(i.length,h+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((h,d,g)=>{let S,y=!1,w=null,x=null;n&&(S=s&&d.route.id?s[d.route.id]:void 0,w=d.route.errorElement||ah,u&&(a<0&&g===0?(y=!0,x=null):a===g&&(y=!0,x=d.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,g+1)),c=()=>{let p;return S?p=w:y?p=x:d.route.Component?p=k.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=h,k.createElement(dh,{match:d,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||g===0)?k.createElement(ch,{location:n.location,revalidation:n.revalidation,component:w,error:S,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var Yc=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Yc||{}),vl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(vl||{});function ph(e){let t=k.useContext(ss);return t||Z(!1),t}function hh(e){let t=k.useContext(nh);return t||Z(!1),t}function gh(e){let t=k.useContext(Vt);return t||Z(!1),t}function Xc(e){let t=gh(),n=t.matches[t.matches.length-1];return n.route.id||Z(!1),n.route.id}function mh(){var e;let t=k.useContext(Qc),n=hh(vl.UseRouteError),r=Xc(vl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vh(){let{router:e}=ph(Yc.UseNavigateStable),t=Xc(vl.UseNavigateStable),n=k.useRef(!1);return Kc(()=>{n.current=!0}),k.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,ir({fromRouteId:t},o)))},[e,t])}function ai(e){Z(!1)}function yh(e){let{basename:t="/",children:n=null,location:r,navigationType:l=at.Pop,navigator:o,static:i=!1,future:s}=e;fr()&&Z(!1);let u=t.replace(/^\/*/,"/"),a=k.useMemo(()=>({basename:u,navigator:o,static:i,future:ir({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof r=="string"&&(r=yn(r));let{pathname:h="/",search:d="",hash:g="",state:S=null,key:y="default"}=r,w=k.useMemo(()=>{let x=is(h,u);return x==null?null:{location:{pathname:x,search:d,hash:g,state:S,key:y},navigationType:l}},[u,h,d,g,S,y,l]);return w==null?null:k.createElement($t.Provider,{value:a},k.createElement(Ol.Provider,{children:n,value:w}))}function Sh(e){let{children:t,location:n}=e;return ih(ci(t),n)}new Promise(()=>{});function ci(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,l)=>{if(!k.isValidElement(r))return;let o=[...t,l];if(r.type===k.Fragment){n.push.apply(n,ci(r.props.children,o));return}r.type!==ai&&Z(!1),!r.props.index||!r.props.children||Z(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=ci(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.24.0 * * Copyright (c) Remix Software Inc. @@ -64,20 +64,20 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function Ch(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kh(e,t){return e.button===0&&(!t||t==="_self")&&!Ch(e)}const xh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],_h="6";try{window.__reactRouterVersion=_h}catch{}const Eh="startTransition",xu=Sf[Eh];function Nh(e){let{basename:t,children:n,future:r,window:l}=e,o=k.useRef();o.current==null&&(o.current=Ip({window:l,v5Compat:!0}));let i=o.current,[s,u]=k.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=k.useCallback(d=>{a&&xu?xu(()=>u(d)):u(d)},[u,a]);return k.useLayoutEffect(()=>i.listen(h),[i,h]),k.createElement(yh,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const Rh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ph=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,po=k.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:s,target:u,to:a,preventScrollReset:h,unstable_viewTransition:d}=t,g=wh(t,xh),{basename:y}=k.useContext($t),S,w=!1;if(typeof a=="string"&&Ph.test(a)&&(S=a,Rh))try{let p=new URL(window.location.href),m=a.startsWith("//")?new URL(p.protocol+a):new URL(a),_=is(m.pathname,y);m.origin===p.origin&&_!=null?a=_+m.search+m.hash:w=!0}catch{}let x=rh(a,{relative:l}),f=Th(a,{replace:i,state:s,target:u,preventScrollReset:h,relative:l,unstable_viewTransition:d});function c(p){r&&r(p),p.defaultPrevented||f(p)}return k.createElement("a",fi({},g,{href:S||x,onClick:w||o?r:c,ref:n,target:u}))});var _u;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_u||(_u={}));var Eu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Eu||(Eu={}));function Th(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=lh(),a=pr(),h=Gc(e,{relative:i});return k.useCallback(d=>{if(kh(d,n)){d.preventDefault();let g=r!==void 0?r:ml(a)===ml(h);u(e,{replace:g,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[a,u,h,r,l,n,e,o,i,s])}const Lh=()=>v.jsx("nav",{className:"bg-blue-600 text-white shadow-lg",children:v.jsx("div",{className:"container mx-auto px-4",children:v.jsxs("div",{className:"flex items-center justify-between h-16",children:[v.jsx(po,{className:"text-xl font-bold",to:"/",children:"OCPP ChargePoint Simulator"}),v.jsxs("ul",{className:"flex space-x-4",children:[v.jsx("li",{children:v.jsx(po,{className:"hover:text-blue-200",to:"/",children:"ChargePoint"})}),v.jsx("li",{children:v.jsx(po,{className:"hover:text-blue-200",to:"/settings",children:"Settings"})})]})]})})});var D=(e=>(e.Available="Available",e.Preparing="Preparing",e.Charging="Charging",e.SuspendedEV="SuspendedEV",e.SuspendedEVSE="SuspendedEVSE",e.Finishing="Finishing",e.Reserved="Reserved",e.Unavailable="Unavailable",e.Authorized="authorized",e.Faulted="faulted",e))(D||{});const Dl="Operative",Jc="Inoperative";var we=(e=>(e[e.CALL=2]="CALL",e[e.CALL_RESULT=3]="CALL_RESULT",e[e.CALL_ERROR=4]="CALL_ERROR",e))(we||{}),Y=(e=>(e.RemoteStartTransaction="RemoteStartTransaction",e.RemoteStopTransaction="RemoteStopTransaction",e.StartTransaction="StartTransaction",e.StopTransaction="StopTransaction",e.GetDiagnostics="GetDiagnostics",e.TriggerMessage="TriggerMessage",e.StatusNotification="StatusNotification",e.MeterValues="MeterValues",e.BootNotification="BootNotification",e.Heartbeat="Heartbeat",e))(Y||{});let Ih=class{constructor(t){z(this,"_id");z(this,"_status");z(this,"_availability");z(this,"_meterValue");z(this,"_transaction");z(this,"_transactionIDChangeCallbacks");z(this,"_statusChangeCallbacks");this._id=t,this._status=D.Available,this._availability=Dl,this._meterValue=0,this._transaction=null}get id(){return this._id}set id(t){this._id=t,this.triggerTransactionIDChangeCallback(t)}get status(){return this._status}set status(t){this._status=t,this.triggerStatusChangeCallback(t)}get availability(){return this._availability}set availability(t){this._availability=t}get meterValue(){return this._meterValue}set meterValue(t){this._meterValue=t}get transaction(){return this._transaction}set transaction(t){this._transaction=t}set transactionId(t){this._transaction&&(this._transaction.id=t,this.triggerTransactionIDChangeCallback(t))}setTransactionIDChangeCallbacks(t){this._transactionIDChangeCallbacks=t}setStatusChangeCallbacks(t){this._statusChangeCallbacks=t}triggerTransactionIDChangeCallback(t){this._transactionIDChangeCallbacks&&this._transactionIDChangeCallbacks(t)}triggerStatusChangeCallback(t){this._statusChangeCallbacks&&this._statusChangeCallbacks(t)}};class jh{constructor(t,n,r){z(this,"_ws",null);z(this,"_url");z(this,"_chargePointId");z(this,"_logger");z(this,"_messageHandler",null);z(this,"_pingInterval",null);z(this,"_reconnectAttempts",0);z(this,"_maxReconnectAttempts",5);z(this,"_reconnectDelay",5e3);this._url=t,this._chargePointId=n,this._logger=r}connect(t=null,n=null){this._ws=new WebSocket(`${this._url}${this._chargePointId}`,["ocpp1.6","ocpp1.5"]),this._ws.onopen=()=>{t&&t(),this.handleOpen.bind(this)},this._ws.onmessage=this.handleMessage.bind(this),this._ws.onerror=this.handleError.bind(this),this._ws.onclose=(r,l)=>{n&&n(r,l),this.handleClose.bind(this)}}disconnect(){this._ws&&(this._ws.close(),this._ws=null),this._pingInterval&&(clearInterval(this._pingInterval),this._pingInterval=null)}send(t,n,r,l){if(this._ws&&this._ws.readyState===WebSocket.OPEN){const o=JSON.stringify([t,n,r,l]);this._ws.send(o),this._logger.log(`Sent: ${o}`)}else this._logger.log("WebSocket is not connected")}setMessageHandler(t){this._messageHandler=t}handleOpen(){this._logger.log("WebSocket connected"),this._reconnectAttempts=0}handleMessage(t){this._logger.log(`Received: ${JSON.stringify(t)}`);try{const n=JSON.parse(t.data.toString()),r=n.length;if(!(!Array.isArray(n)||r!==3||r!==4)){this._logger.error("Invalid message format: "+n);return}if(this._messageHandler){if(r==3){const[l,o,i]=n;this._messageHandler(l,o,Y.CallResult,i)}if(r==4){const[l,o,i,s]=n;this._messageHandler(l,o,i,s)}}else this._logger.log("No message handler set")}catch(n){this._logger.log(`Error parsing message: ${n}`)}}handleError(t){this._logger.log(`WebSocket error type: ${t.type}`)}handleClose(t){this._logger.log(`WebSocket closed: ${t}`),this.stopPingInterval(),this.attemptReconnect()}stopPingInterval(){this._pingInterval&&(clearInterval(this._pingInterval),this._pingInterval=null)}attemptReconnect(){this._reconnectAttemptsthis.connect(),this._reconnectDelay)):this._logger.log("Max reconnect attempts reached. Please check your connection and try again.")}}var zr,zh=new Uint8Array(16);function Oh(){if(!zr&&(zr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!zr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zr(zh)}const Dh=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Mh(e){return typeof e=="string"&&Dh.test(e)}var re=[];for(var ho=0;ho<256;++ho)re.push((ho+256).toString(16).substr(1));function Uh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(re[e[t+0]]+re[e[t+1]]+re[e[t+2]]+re[e[t+3]]+"-"+re[e[t+4]]+re[e[t+5]]+"-"+re[e[t+6]]+re[e[t+7]]+"-"+re[e[t+8]]+re[e[t+9]]+"-"+re[e[t+10]]+re[e[t+11]]+re[e[t+12]]+re[e[t+13]]+re[e[t+14]]+re[e[t+15]]).toLowerCase();if(!Mh(n))throw TypeError("Stringified UUID is invalid");return n}function Ah(e,t,n){e=e||{};var r=e.random||(e.rng||Oh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Uh(r)}class Fh{constructor(){z(this,"_currentId","");z(this,"_requests",new Map)}add(t){this._currentId=t.id,this._requests.set(t.id,t)}current(){return this._requests.get(this._currentId)}get(t){return this._requests.get(t)}remove(t){this._requests.delete(t)}}class $h{constructor(t,n,r){z(this,"_chargePoint");z(this,"_webSocket");z(this,"_logger");z(this,"_requests",new Fh);this._chargePoint=t,this._webSocket=n,this._logger=r,this._webSocket.setMessageHandler(this.handleIncomingMessage.bind(this))}authorize(t){const n=this.generateMessageId(),r={idTag:t};this.sendRequest(we.CALL,Y.Authorize,n,r)}startTransaction(t,n){const r=this.generateMessageId(),l={connectorId:n,idTag:t.tagId,meterStart:t.meterStart,timestamp:t.startTime.toISOString()};this.sendRequest(we.CALL,Y.StartTransaction,r,l,n)}stopTransaction(t,n){var o;const r=this.generateMessageId(),l={transactionId:t.id,idTag:t.tagId,meterStop:t.meterStop,timestamp:(o=t.stopTime)==null?void 0:o.toISOString()};this.sendRequest(we.CALL,Y.StopTransaction,r,l,n)}sendBootNotification(){const t=this.generateMessageId(),n={chargePointVendor:"Vendor",chargePointModel:"Model",chargePointSerialNumber:"12345"};this.sendRequest(we.CALL,Y.BootNotification,t,n)}sendHeartbeat(){const t=this.generateMessageId(),n={};this.sendRequest(we.CALL,Y.Heartbeat,t,n)}sendMeterValue(t,n){const r=this.generateMessageId(),l={connectorId:t,meterValue:[{timestamp:new Date().toISOString(),sampledValue:[{value:n.toString()}]}]};this.sendRequest(we.CALL,Y.MeterValues,r,l)}sendStatusNotification(t,n){const r=this.generateMessageId(),l={connectorId:t,errorCode:"NoError",status:n};this.sendRequest(we.CALL,Y.StatusNotification,r,l)}sendRequest(t,n,r,l,o){this._requests.add({type:t,action:n,id:r,payload:l,connectorId:o}),this._webSocket.send(t,r,n,l)}handleIncomingMessage(t,n,r,l){switch(this._logger.log(`Handling incoming message: ${t}, ${n}, ${r}`),t){case we.CALL:this.handleCall(n,r,l);break;case we.CALL_RESULT:this.handleCallResult(n,l);break;case we.CALL_ERROR:this.handleCallError(n,l);break;default:this._logger.error(`Unknown message type: ${t}`)}}handleCall(t,n,r){let l;switch(n){case Y.RemoteStartTransaction:l=this.handleRemoteStartTransaction(r);break;case Y.RemoteStopTransaction:l=this.handleRemoteStopTransaction(r);break;case Y.Reset:l=this.handleReset(r);break;case Y.GetDiagnostics:l=this.handleGetDiagnostics(r);break;case Y.TriggerMessage:l=this.handleTriggerMessage(r);break;default:this._logger.error(`Unsupported action: ${n}`),this.sendCallError(t,"NotImplemented","This action is not supported");return}this.sendCallResult(t,l)}handleCallResult(t,n){if(!this._requests||!this._requests.get(t)){this._logger.log(`Received unexpected CallResult: ${t}`);return}const r=this._requests.get(t),l=r==null?void 0:r.action;switch(l){case Y.BootNotification:this.handleBootNotificationResponse(n);break;case Y.Authorize:this.handleAuthorizeResponse(n);break;case Y.StartTransaction:this.handleStartTransactionResponse((r==null?void 0:r.connectorId)||1,n);break;case Y.StopTransaction:this.handleStopTransactionResponse((r==null?void 0:r.connectorId)||1,n);break;case Y.Heartbeat:this.handleHeartbeatResponse(n);break;case Y.MeterValues:this.handleMeterValuesResponse(n);break;case Y.StatusNotification:this.handleStatusNotificationResponse(n);break;default:this._logger.log(`Unsupported action result: ${l}`)}this._requests.remove(t)}handleCallError(t,n){this._logger.log(`Received error for message ${t}: ${JSON.stringify(n)}`),this._requests.remove(t)}handleRemoteStartTransaction(t){const{idTag:n,connectorId:r}=t,l=this._chargePoint.getConnector(r||1);return l&&l.availability=="Operative"?(this._chargePoint.startTransaction(n,r||1),{status:"Accepted"}):{status:"Rejected"}}handleRemoteStopTransaction(t){var l;const{transactionId:n}=t,r=Array.from(this._chargePoint.connectors.values()).find(o=>o.transaction&&o.transaction.id===n);if(r){const o=((l=r.transaction)==null?void 0:l.tagId)||"";if(o==="")throw new Error("Tag ID not found");return this._chargePoint.stopTransaction(o),{status:"Accepted"}}else return{status:"Rejected"}}handleReset(t){return{status:"Accepted"}}handleGetDiagnostics(t){return{fileName:"diagnostics.zip"}}handleTriggerMessage(t){return{status:"Accepted"}}handleBootNotificationResponse(t){this._logger.log("Boot notification successful"),t.status==="Accepted"?(this._chargePoint.updateAllConnectorsStatus(D.Available),this._chargePoint.updateStatus(D.Available)):this._logger.error("Boot notification failed")}handleAuthorizeResponse(t){const{idTagInfo:n}=t;n.status==="Accepted"?this._logger.log("Authorization successful"):this._logger.log("Authorization failed")}handleStartTransactionResponse(t,n){const{transactionId:r,idTagInfo:l}=n;if(l.status==="Accepted"){const o=this._chargePoint.getConnector(t);o&&(o.transactionId=r)}else this._logger.log("Failed to start transaction")}handleStopTransactionResponse(t,n){const r=this._chargePoint.getConnector(t);r&&(r.transaction=null,r.transactionId=null)}handleHeartbeatResponse(t){this._logger.log(`Received heartbeat response: ${t.currentTime}`)}handleMeterValuesResponse(t){this._logger.log("Meter values sent successfully")}handleStatusNotificationResponse(t){this._logger.log("Status notification sent successfully")}sendCallResult(t,n){this._webSocket.send(we.CALL_RESULT,t,"",n)}sendCallError(t,n,r){const l={errorCode:n,errorDescription:r};this._webSocket.send(we.CALL_ERROR,t,"",l)}generateMessageId(){return Ah()}}var Zc=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Zc||{});let Vh=class{constructor(t=0){z(this,"level");z(this,"logList",[]);z(this,"loggingCallback",null);this.level=t}set loggingCallback(t){this.loggingCallback=t}setLevel(t){this.level=t}debug(t){this.log(t,0)}info(t){this.log(t,1)}warn(t){this.log(t,2)}error(t){this.log(t,3)}log(t,n=0){if(n>=this.level){const l=`[${new Date().toISOString()}] [${Zc[n]}] ${t}`;switch(n){case 0:console.debug(l);break;case 1:console.info(l);break;case 2:console.warn(l);break;case 3:console.error(l);break;default:console.log(l);break}this.logList.push(l),this.loggingCallback&&this.loggingCallback(l)}}getLogs(){return this.logList}clearLogs(){this.logList=[]}getLogString(){return this.logList.join(` -`)}saveLogsToFile(t){console.log(`Saving logs to ${t}`)}},Bh=class{constructor(t,n,r){z(this,"_id");z(this,"_connectors");z(this,"_webSocket");z(this,"_messageHandler");z(this,"_logger");z(this,"_status",D.Unavailable);z(this,"_error","");z(this,"_heartbeat",null);z(this,"_statusChangeCallback",null);z(this,"_availabilityChangeCallbacks",new Map);this._id=t,this._connectors=new Map;for(let l=1;l<=n;l++)this._connectors.set(l,new Ih(l));this._logger=new Vh,this._webSocket=new jh(r,this._id,this._logger),this._messageHandler=new $h(this,this._webSocket,this._logger)}get id(){return this._id}get connectors(){return new Map(this._connectors)}set statusChangeCallback(t){this._statusChangeCallback=t}set loggingCallback(t){this._logger.loggingCallback=t}setConnectorTransactionIDChangeCallback(t,n){var r;(r=this.connectors.get(t))==null||r.setTransactionIDChangeCallbacks(n)}setConnectorStatusChangeCallback(t,n){var r;(r=this.connectors.get(t))==null||r.setStatusChangeCallbacks(n)}setAvailabilityChangeCallback(t,n){this._availabilityChangeCallbacks.set(t,n)}connect(){this._webSocket.connect(()=>{this._messageHandler.sendBootNotification(),this.updateStatus(D.Available),this.updateAllConnectorsStatus(D.Available)},(t,n)=>{this.updateStatus(D.Unavailable),this.updateAllConnectorsStatus(D.Unavailable),this._logger.error(`WebSocket closed code: ${t.code} reason: ${t.reason}`)})}disconnect(){this._logger.info("Disconnecting from WebSocket"),this._webSocket.disconnect()}authorize(t){this._messageHandler.authorize(t)}updateStatus(t){this._status=t,this.triggerStatusChangeCallback(t)}startTransaction(t,n){const r=this.getConnector(n);if(r){const l={id:0,connectorId:n,tagId:t,startTime:new Date,stopTime:null,meterStart:0};r.transaction=l,this._messageHandler.startTransaction(l,n),this.updateConnectorStatus(n,D.Charging)}else this._logger.error(`Connector ${n} not found`)}stopTransaction(t,n){const r=this.getConnector(n);r?(r.transaction.stopTime=new Date,r.transaction.meterStop=r.meterValue,this._messageHandler.stopTransaction(r.transaction,r.id),this.updateConnectorStatus(r.id,D.Available)):this._logger.error(`Transaction for tag ${t} not found`)}sendHeartbeat(){this._messageHandler.sendHeartbeat()}startHeartbeat(t){this._logger.info("Setting heartbeat period to "+t+"s"),this._heartbeat&&clearInterval(this._heartbeat),this._heartbeat=setInterval(()=>this.sendHeartbeat(),t*1e3)}stopHeartbeat(){this._logger.info("Stopping heartbeat"),this._heartbeat&&clearInterval(this._heartbeat)}setMeterValue(t,n){const r=this.getConnector(t);r?r.meterValue=n:this._logger.error(`Connector ${t} not found`)}sendMeterValue(t){const n=this.getConnector(t);n?this._messageHandler.sendMeterValue(t,n.meterValue):this._logger.error(`Connector ${t} not found`)}getConnector(t){return this._connectors.get(t)}updateAllConnectorsStatus(t){this._connectors.forEach(n=>{n.status=t,this.connectors.forEach(r=>{r.status=t}),this._messageHandler.sendStatusNotification(n.id,t)})}updateConnectorStatus(t,n){const r=this.getConnector(t);r?(r.status=n,this._messageHandler.sendStatusNotification(t,n),this.triggerConnectorStatusChangeCallback(t,n)):this._logger.error(`Connector ${t} not found`)}updateConnectorAvailability(t,n){const r=this.getConnector(t);r?(r.availability=n,n===Jc?this.updateConnectorStatus(t,D.Unavailable):n===Dl&&this.updateConnectorStatus(t,D.Available),this.triggerAvailabilityChangeCallback(t,n)):this._logger.error(`Connector ${t} not found`)}setTransactionID(t,n){const r=this.getConnector(t);r?(r.setTransactionId(n),this.triggerConnectorTransactionIDChangeCallback(t,n)):this._logger.error(`Connector ${t} not found`)}triggerStatusChangeCallback(t,n){this._statusChangeCallback&&this._statusChangeCallback(t,n)}triggerConnectorTransactionIDChangeCallback(t,n){var l;const r=(l=this.connectors.get(t))==null?void 0:l.triggerTransactionIDChangeCallback;r&&r(n)}triggerConnectorStatusChangeCallback(t,n){var l;const r=(l=this.connectors.get(t))==null?void 0:l.triggerStatusChangeCallback;r&&r(n)}triggerAvailabilityChangeCallback(t,n){const r=this._availabilityChangeCallbacks.get(t);r&&r(n)}};const Hh=({id:e,cp:t})=>{const[n,r]=k.useState(0),[l,o]=k.useState(D.Unavailable),[i,s]=k.useState(Dl),[u,a]=k.useState(0),[h]=k.useState(localStorage.getItem("TAG")||"DEADBEEF");k.useEffect(()=>{t&&(t.setConnectorStatusChangeCallback(e,o),t.setConnectorTransactionIDChangeCallback(e,r),t.setAvailabilityChangeCallback(e,s))},[]);const d=()=>{t&&t.updateConnectorStatus(e,l)},g=()=>{t&&t.startTransaction(h,e)},y=()=>{if(t){const x=localStorage.getItem("TAG")||"DEADBEEF";t.stopTransaction(x,e)}},S=()=>{t&&(a(u+10),t.setMeterValue(e,u))},w=()=>{t&&(a(u),t.sendMeterValue(e))};return v.jsxs("div",{className:"bg-gray-200 p-4 rounded mb-4 border border-gray-400",children:[v.jsxs("label",{className:"text-lg font-semibold",children:["Connector ",e]}),v.jsxs("div",{className:"d-flex",children:[v.jsxs("div",{className:"form-group bg-gray-100 rounded p-4",children:[v.jsxs("div",{className:"mb-6",children:[v.jsx("label",{className:"text-gray-700 text-sm font-bold mb-2",children:"Connector Status: "}),v.jsx(Wh,{status:l})]}),l===D.Charging&&v.jsxs("div",{className:"mb-6",children:[v.jsx("label",{className:"text-gray-700 text-sm font-bold mb-2",children:"Transaction ID: "}),v.jsx("span",{children:n})]}),v.jsx("select",{id:`STATUS_CON${e}`,className:"bg-white border border-gray-400 rounded px-4 py-2",value:l,onChange:x=>o(x.target.value),style:{maxWidth:"16ch",marginRight:"1ch"},children:Object.keys(D).map(x=>x===D.Charging?null:v.jsx("option",{value:x,children:x},x))}),v.jsx("button",{onClick:d,className:`bg-purple-500 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded mb-2 w-full + */function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function Ch(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kh(e,t){return e.button===0&&(!t||t==="_self")&&!Ch(e)}const xh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],_h="6";try{window.__reactRouterVersion=_h}catch{}const Eh="startTransition",xu=yd[Eh];function Nh(e){let{basename:t,children:n,future:r,window:l}=e,o=k.useRef();o.current==null&&(o.current=Ip({window:l,v5Compat:!0}));let i=o.current,[s,u]=k.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=k.useCallback(d=>{a&&xu?xu(()=>u(d)):u(d)},[u,a]);return k.useLayoutEffect(()=>i.listen(h),[i,h]),k.createElement(yh,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const Rh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ph=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,po=k.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:s,target:u,to:a,preventScrollReset:h,unstable_viewTransition:d}=t,g=wh(t,xh),{basename:S}=k.useContext($t),y,w=!1;if(typeof a=="string"&&Ph.test(a)&&(y=a,Rh))try{let p=new URL(window.location.href),v=a.startsWith("//")?new URL(p.protocol+a):new URL(a),_=is(v.pathname,S);v.origin===p.origin&&_!=null?a=_+v.search+v.hash:w=!0}catch{}let x=rh(a,{relative:l}),f=Th(a,{replace:i,state:s,target:u,preventScrollReset:h,relative:l,unstable_viewTransition:d});function c(p){r&&r(p),p.defaultPrevented||f(p)}return k.createElement("a",di({},g,{href:y||x,onClick:w||o?r:c,ref:n,target:u}))});var _u;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_u||(_u={}));var Eu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Eu||(Eu={}));function Th(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=lh(),a=pr(),h=Gc(e,{relative:i});return k.useCallback(d=>{if(kh(d,n)){d.preventDefault();let g=r!==void 0?r:ml(a)===ml(h);u(e,{replace:g,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[a,u,h,r,l,n,e,o,i,s])}const Lh=()=>m.jsx("nav",{className:"bg-blue-600 text-white shadow-lg",children:m.jsx("div",{className:"container mx-auto px-4",children:m.jsxs("div",{className:"flex items-center justify-between h-16",children:[m.jsx(po,{className:"text-xl font-bold",to:"/",children:"OCPP ChargePoint Simulator"}),m.jsxs("ul",{className:"flex space-x-4",children:[m.jsx("li",{children:m.jsx(po,{className:"hover:text-blue-200",to:"/",children:"ChargePoint"})}),m.jsx("li",{children:m.jsx(po,{className:"hover:text-blue-200",to:"/settings",children:"Settings"})})]})]})})});var D=(e=>(e.Available="Available",e.Preparing="Preparing",e.Charging="Charging",e.SuspendedEV="SuspendedEV",e.SuspendedEVSE="SuspendedEVSE",e.Finishing="Finishing",e.Reserved="Reserved",e.Unavailable="Unavailable",e.Authorized="authorized",e.Faulted="faulted",e))(D||{});const Dl="Operative",Jc="Inoperative";var we=(e=>(e[e.CALL=2]="CALL",e[e.CALL_RESULT=3]="CALL_RESULT",e[e.CALL_ERROR=4]="CALL_ERROR",e))(we||{}),Y=(e=>(e.RemoteStartTransaction="RemoteStartTransaction",e.RemoteStopTransaction="RemoteStopTransaction",e.StartTransaction="StartTransaction",e.StopTransaction="StopTransaction",e.GetDiagnostics="GetDiagnostics",e.TriggerMessage="TriggerMessage",e.StatusNotification="StatusNotification",e.MeterValues="MeterValues",e.BootNotification="BootNotification",e.Heartbeat="Heartbeat",e))(Y||{});let Ih=class{constructor(t){j(this,"_id");j(this,"_status");j(this,"_availability");j(this,"_meterValue");j(this,"_transaction");j(this,"_transactionIDChangeCallbacks");j(this,"_statusChangeCallbacks");this._id=t,this._status=D.Available,this._availability=Dl,this._meterValue=0,this._transaction=null}get id(){return this._id}set id(t){this._id=t,this.triggerTransactionIDChangeCallback(t)}get status(){return this._status}set status(t){this._status=t,this.triggerStatusChangeCallback(t)}get availability(){return this._availability}set availability(t){this._availability=t}get meterValue(){return this._meterValue}set meterValue(t){this._meterValue=t}get transaction(){return this._transaction}set transaction(t){this._transaction=t}set transactionId(t){this._transaction&&(this._transaction.id=t,this.triggerTransactionIDChangeCallback(t))}setTransactionIDChangeCallbacks(t){this._transactionIDChangeCallbacks=t}setStatusChangeCallbacks(t){this._statusChangeCallbacks=t}triggerTransactionIDChangeCallback(t){this._transactionIDChangeCallbacks&&this._transactionIDChangeCallbacks(t)}triggerStatusChangeCallback(t){this._statusChangeCallbacks&&this._statusChangeCallbacks(t)}};class jh{constructor(t,n,r){j(this,"_ws",null);j(this,"_url");j(this,"_chargePointId");j(this,"_logger");j(this,"_messageHandler",null);j(this,"_pingInterval",null);j(this,"_reconnectAttempts",0);j(this,"_maxReconnectAttempts",5);j(this,"_reconnectDelay",5e3);this._url=t,this._chargePointId=n,this._logger=r}connect(t=null,n=null){this._ws=new WebSocket(`${this._url}${this._chargePointId}`,["ocpp1.6","ocpp1.5"]),this._ws.onopen=()=>{t&&t(),this.handleOpen.bind(this)},this._ws.onmessage=this.handleMessage.bind(this),this._ws.onerror=this.handleError.bind(this),this._ws.onclose=(r,l)=>{n&&n(r,l),this.handleClose.bind(this)}}disconnect(){this._ws&&(this._ws.close(),this._ws=null),this._pingInterval&&(clearInterval(this._pingInterval),this._pingInterval=null)}send(t,n,r,l){if(this._ws&&this._ws.readyState===WebSocket.OPEN){const o=JSON.stringify([t,n,r,l]);this._ws.send(o),this._logger.log(`Sent: ${o}`)}else this._logger.log("WebSocket is not connected")}setMessageHandler(t){this._messageHandler=t}handleOpen(){this._logger.log("WebSocket connected"),this._reconnectAttempts=0}handleMessage(t){this._logger.log(`Received: ${JSON.stringify(t)}`);try{const n=JSON.parse(t.data.toString()),r=n.length;if(!(!Array.isArray(n)||r!==3||r!==4)){this._logger.error("Invalid message format: "+n);return}if(this._messageHandler){if(r==3){const[l,o,i]=n;this._messageHandler(l,o,Y.CallResult,i)}if(r==4){const[l,o,i,s]=n;this._messageHandler(l,o,i,s)}}else this._logger.log("No message handler set")}catch(n){this._logger.log(`Error parsing message: ${n}`)}}handleError(t){this._logger.log(`WebSocket error type: ${t.type}`)}handleClose(t){this._logger.log(`WebSocket closed: ${t}`),this.stopPingInterval(),this.attemptReconnect()}stopPingInterval(){this._pingInterval&&(clearInterval(this._pingInterval),this._pingInterval=null)}attemptReconnect(){this._reconnectAttemptsthis.connect(),this._reconnectDelay)):this._logger.log("Max reconnect attempts reached. Please check your connection and try again.")}}var zr,zh=new Uint8Array(16);function Oh(){if(!zr&&(zr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!zr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zr(zh)}const Dh=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Mh(e){return typeof e=="string"&&Dh.test(e)}var re=[];for(var ho=0;ho<256;++ho)re.push((ho+256).toString(16).substr(1));function Uh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(re[e[t+0]]+re[e[t+1]]+re[e[t+2]]+re[e[t+3]]+"-"+re[e[t+4]]+re[e[t+5]]+"-"+re[e[t+6]]+re[e[t+7]]+"-"+re[e[t+8]]+re[e[t+9]]+"-"+re[e[t+10]]+re[e[t+11]]+re[e[t+12]]+re[e[t+13]]+re[e[t+14]]+re[e[t+15]]).toLowerCase();if(!Mh(n))throw TypeError("Stringified UUID is invalid");return n}function Ah(e,t,n){e=e||{};var r=e.random||(e.rng||Oh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Uh(r)}class Fh{constructor(){j(this,"_currentId","");j(this,"_requests",new Map)}add(t){this._currentId=t.id,this._requests.set(t.id,t)}current(){return this._requests.get(this._currentId)}get(t){return this._requests.get(t)}remove(t){this._requests.delete(t)}}class $h{constructor(t,n,r){j(this,"_chargePoint");j(this,"_webSocket");j(this,"_logger");j(this,"_requests",new Fh);this._chargePoint=t,this._webSocket=n,this._logger=r,this._webSocket.setMessageHandler(this.handleIncomingMessage.bind(this))}authorize(t){const n=this.generateMessageId(),r={idTag:t};this.sendRequest(we.CALL,Y.Authorize,n,r)}startTransaction(t,n){const r=this.generateMessageId(),l={connectorId:n,idTag:t.tagId,meterStart:t.meterStart,timestamp:t.startTime.toISOString()};this.sendRequest(we.CALL,Y.StartTransaction,r,l,n)}stopTransaction(t,n){var o;const r=this.generateMessageId(),l={transactionId:t.id,idTag:t.tagId,meterStop:t.meterStop,timestamp:(o=t.stopTime)==null?void 0:o.toISOString()};this.sendRequest(we.CALL,Y.StopTransaction,r,l,n)}sendBootNotification(){const t=this.generateMessageId(),n={chargePointVendor:"Vendor",chargePointModel:"Model",chargePointSerialNumber:"12345"};this.sendRequest(we.CALL,Y.BootNotification,t,n)}sendHeartbeat(){const t=this.generateMessageId(),n={};this.sendRequest(we.CALL,Y.Heartbeat,t,n)}sendMeterValue(t,n){const r=this.generateMessageId(),l={connectorId:t,meterValue:[{timestamp:new Date().toISOString(),sampledValue:[{value:n.toString()}]}]};this.sendRequest(we.CALL,Y.MeterValues,r,l)}sendStatusNotification(t,n){const r=this.generateMessageId(),l={connectorId:t,errorCode:"NoError",status:n};this.sendRequest(we.CALL,Y.StatusNotification,r,l)}sendRequest(t,n,r,l,o){this._requests.add({type:t,action:n,id:r,payload:l,connectorId:o}),this._webSocket.send(t,r,n,l)}handleIncomingMessage(t,n,r,l){switch(this._logger.log(`Handling incoming message: ${t}, ${n}, ${r}`),t){case we.CALL:this.handleCall(n,r,l);break;case we.CALL_RESULT:this.handleCallResult(n,l);break;case we.CALL_ERROR:this.handleCallError(n,l);break;default:this._logger.error(`Unknown message type: ${t}`)}}handleCall(t,n,r){let l;switch(n){case Y.RemoteStartTransaction:l=this.handleRemoteStartTransaction(r);break;case Y.RemoteStopTransaction:l=this.handleRemoteStopTransaction(r);break;case Y.Reset:l=this.handleReset(r);break;case Y.GetDiagnostics:l=this.handleGetDiagnostics(r);break;case Y.TriggerMessage:l=this.handleTriggerMessage(r);break;default:this._logger.error(`Unsupported action: ${n}`),this.sendCallError(t,"NotImplemented","This action is not supported");return}this.sendCallResult(t,l)}handleCallResult(t,n){if(!this._requests||!this._requests.get(t)){this._logger.log(`Received unexpected CallResult: ${t}`);return}const r=this._requests.get(t),l=r==null?void 0:r.action;switch(l){case Y.BootNotification:this.handleBootNotificationResponse(n);break;case Y.Authorize:this.handleAuthorizeResponse(n);break;case Y.StartTransaction:this.handleStartTransactionResponse((r==null?void 0:r.connectorId)||1,n);break;case Y.StopTransaction:this.handleStopTransactionResponse((r==null?void 0:r.connectorId)||1,n);break;case Y.Heartbeat:this.handleHeartbeatResponse(n);break;case Y.MeterValues:this.handleMeterValuesResponse(n);break;case Y.StatusNotification:this.handleStatusNotificationResponse(n);break;default:this._logger.log(`Unsupported action result: ${l}`)}this._requests.remove(t)}handleCallError(t,n){this._logger.log(`Received error for message ${t}: ${JSON.stringify(n)}`),this._requests.remove(t)}handleRemoteStartTransaction(t){const{idTag:n,connectorId:r}=t,l=this._chargePoint.getConnector(r||1);return l&&l.availability=="Operative"?(this._chargePoint.startTransaction(n,r||1),{status:"Accepted"}):{status:"Rejected"}}handleRemoteStopTransaction(t){var l;const{transactionId:n}=t,r=Array.from(this._chargePoint.connectors.values()).find(o=>o.transaction&&o.transaction.id===n);if(r){const o=((l=r.transaction)==null?void 0:l.tagId)||"";if(o==="")throw new Error("Tag ID not found");return this._chargePoint.stopTransaction(o),{status:"Accepted"}}else return{status:"Rejected"}}handleReset(t){return{status:"Accepted"}}handleGetDiagnostics(t){return{fileName:"diagnostics.zip"}}handleTriggerMessage(t){return{status:"Accepted"}}handleBootNotificationResponse(t){this._logger.log("Boot notification successful"),t.status==="Accepted"?(this._chargePoint.updateAllConnectorsStatus(D.Available),this._chargePoint.updateStatus(D.Available)):this._logger.error("Boot notification failed")}handleAuthorizeResponse(t){const{idTagInfo:n}=t;n.status==="Accepted"?this._logger.log("Authorization successful"):this._logger.log("Authorization failed")}handleStartTransactionResponse(t,n){const{transactionId:r,idTagInfo:l}=n;if(l.status==="Accepted"){const o=this._chargePoint.getConnector(t);o&&(o.transactionId=r)}else this._logger.log("Failed to start transaction")}handleStopTransactionResponse(t,n){const r=this._chargePoint.getConnector(t);r&&(r.transaction=null,r.transactionId=null)}handleHeartbeatResponse(t){this._logger.log(`Received heartbeat response: ${t.currentTime}`)}handleMeterValuesResponse(t){this._logger.log("Meter values sent successfully")}handleStatusNotificationResponse(t){this._logger.log("Status notification sent successfully")}sendCallResult(t,n){this._webSocket.send(we.CALL_RESULT,t,"",n)}sendCallError(t,n,r){const l={errorCode:n,errorDescription:r};this._webSocket.send(we.CALL_ERROR,t,"",l)}generateMessageId(){return Ah()}}var Zc=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Zc||{});let Vh=class{constructor(t=0){j(this,"level");j(this,"logList",[]);j(this,"loggingCallback",null);this.level=t}set loggingCallback(t){this.loggingCallback=t}setLevel(t){this.level=t}debug(t){this.log(t,0)}info(t){this.log(t,1)}warn(t){this.log(t,2)}error(t){this.log(t,3)}log(t,n=0){if(n>=this.level){const l=`[${new Date().toISOString()}] [${Zc[n]}] ${t}`;switch(n){case 0:console.debug(l);break;case 1:console.info(l);break;case 2:console.warn(l);break;case 3:console.error(l);break;default:console.log(l);break}this.logList.push(l),this.loggingCallback&&this.loggingCallback(l)}}getLogs(){return this.logList}clearLogs(){this.logList=[]}getLogString(){return this.logList.join(` +`)}saveLogsToFile(t){console.log(`Saving logs to ${t}`)}},Bh=class{constructor(t,n,r){j(this,"_id");j(this,"_connectors");j(this,"_webSocket");j(this,"_messageHandler");j(this,"_logger");j(this,"_status",D.Unavailable);j(this,"_error","");j(this,"_errorCallback",()=>{});j(this,"_heartbeat",null);j(this,"_statusChangeCallback",null);j(this,"_availabilityChangeCallbacks",new Map);this._id=t,this._connectors=new Map;for(let l=1;l<=n;l++)this._connectors.set(l,new Ih(l));this._logger=new Vh,this._webSocket=new jh(r,this._id,this._logger),this._messageHandler=new $h(this,this._webSocket,this._logger)}get id(){return this._id}set error(t){this._error=t,this._errorCallback(t)}set errorCallback(t){this._errorCallback=t}get connectors(){return new Map(this._connectors)}set statusChangeCallback(t){this._statusChangeCallback=t}set loggingCallback(t){this._logger.loggingCallback=t}setConnectorTransactionIDChangeCallback(t,n){var r;(r=this.connectors.get(t))==null||r.setTransactionIDChangeCallbacks(n)}setConnectorStatusChangeCallback(t,n){var r;(r=this.connectors.get(t))==null||r.setStatusChangeCallbacks(n)}setAvailabilityChangeCallback(t,n){this._availabilityChangeCallbacks.set(t,n)}connect(){this._webSocket.connect(()=>{this._messageHandler.sendBootNotification(),this.updateStatus(D.Available),this.updateAllConnectorsStatus(D.Available)},(t,n)=>{this.updateStatus(D.Unavailable),this.updateAllConnectorsStatus(D.Unavailable),this._logger.error(`WebSocket closed code: ${t.code} reason: ${t.reason}`),this.error=`WebSocket closed code: ${t.code} reason: ${t.reason}`})}disconnect(){this._logger.info("Disconnecting from WebSocket"),this._webSocket.disconnect()}authorize(t){this._messageHandler.authorize(t)}updateStatus(t){this._status=t,this.triggerStatusChangeCallback(t)}startTransaction(t,n){const r=this.getConnector(n);if(r){const l={id:0,connectorId:n,tagId:t,startTime:new Date,stopTime:null,meterStart:0};r.transaction=l,this._messageHandler.startTransaction(l,n),this.updateConnectorStatus(n,D.Charging)}else this._logger.error(`Connector ${n} not found`)}stopTransaction(t,n){const r=this.getConnector(n);r?(r.transaction.stopTime=new Date,r.transaction.meterStop=r.meterValue,this._messageHandler.stopTransaction(r.transaction,r.id),this.updateConnectorStatus(r.id,D.Available)):this._logger.error(`Transaction for tag ${t} not found`)}sendHeartbeat(){this._messageHandler.sendHeartbeat()}startHeartbeat(t){this._logger.info("Setting heartbeat period to "+t+"s"),this._heartbeat&&clearInterval(this._heartbeat),this._heartbeat=setInterval(()=>this.sendHeartbeat(),t*1e3)}stopHeartbeat(){this._logger.info("Stopping heartbeat"),this._heartbeat&&clearInterval(this._heartbeat)}setMeterValue(t,n){const r=this.getConnector(t);r?r.meterValue=n:this._logger.error(`Connector ${t} not found`)}sendMeterValue(t){const n=this.getConnector(t);n?this._messageHandler.sendMeterValue(t,n.meterValue):this._logger.error(`Connector ${t} not found`)}getConnector(t){return this._connectors.get(t)}updateAllConnectorsStatus(t){this._connectors.forEach(n=>{n.status=t,this.connectors.forEach(r=>{r.status=t}),this._messageHandler.sendStatusNotification(n.id,t)})}updateConnectorStatus(t,n){const r=this.getConnector(t);r?(r.status=n,this._messageHandler.sendStatusNotification(t,n),this.triggerConnectorStatusChangeCallback(t,n)):this._logger.error(`Connector ${t} not found`)}updateConnectorAvailability(t,n){const r=this.getConnector(t);r?(r.availability=n,n===Jc?this.updateConnectorStatus(t,D.Unavailable):n===Dl&&this.updateConnectorStatus(t,D.Available),this.triggerAvailabilityChangeCallback(t,n)):this._logger.error(`Connector ${t} not found`)}setTransactionID(t,n){const r=this.getConnector(t);r?(r.setTransactionId(n),this.triggerConnectorTransactionIDChangeCallback(t,n)):this._logger.error(`Connector ${t} not found`)}triggerStatusChangeCallback(t,n){this._statusChangeCallback&&this._statusChangeCallback(t,n)}triggerConnectorTransactionIDChangeCallback(t,n){var l;const r=(l=this.connectors.get(t))==null?void 0:l.triggerTransactionIDChangeCallback;r&&r(n)}triggerConnectorStatusChangeCallback(t,n){var l;const r=(l=this.connectors.get(t))==null?void 0:l.triggerStatusChangeCallback;r&&r(n)}triggerAvailabilityChangeCallback(t,n){const r=this._availabilityChangeCallbacks.get(t);r&&r(n)}};const Wh=({id:e,cp:t})=>{const[n,r]=k.useState(0),[l,o]=k.useState(D.Unavailable),[i,s]=k.useState(Dl),[u,a]=k.useState(0),[h]=k.useState(localStorage.getItem("TAG")||"DEADBEEF");k.useEffect(()=>{t&&(t.setConnectorStatusChangeCallback(e,o),t.setConnectorTransactionIDChangeCallback(e,r),t.setAvailabilityChangeCallback(e,s))},[]);const d=()=>{t&&t.updateConnectorStatus(e,l)},g=()=>{t&&t.startTransaction(h,e)},S=()=>{if(t){const x=localStorage.getItem("TAG")||"DEADBEEF";t.stopTransaction(x,e)}},y=()=>{t&&(a(u+10),t.setMeterValue(e,u))},w=()=>{t&&(a(u),t.sendMeterValue(e))};return m.jsxs("div",{className:"bg-gray-200 p-4 rounded mb-4 border border-gray-400",children:[m.jsxs("label",{className:"text-lg font-semibold",children:["Connector ",e]}),m.jsxs("div",{className:"d-flex",children:[m.jsxs("div",{className:"form-group bg-gray-100 rounded p-4",children:[m.jsxs("div",{className:"mb-6",children:[m.jsx("label",{className:"text-gray-700 text-sm font-bold mb-2",children:"Connector Status: "}),m.jsx(Hh,{status:l})]}),l===D.Charging&&m.jsxs("div",{className:"mb-6",children:[m.jsx("label",{className:"text-gray-700 text-sm font-bold mb-2",children:"Transaction ID: "}),m.jsx("span",{children:n})]}),m.jsx("select",{id:`STATUS_CON${e}`,className:"bg-white border border-gray-400 rounded px-4 py-2",value:l,onChange:x=>o(x.target.value),style:{maxWidth:"16ch",marginRight:"1ch"},children:Object.keys(D).map(x=>x===D.Charging?null:m.jsx("option",{value:x,children:x},x))}),m.jsx("button",{onClick:d,className:`bg-purple-500 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded mb-2 w-full disabled:opacity-50 - `,disabled:l===D.Unavailable,children:"Status Notification"}),v.jsx("div",{className:"d-flex border-b border-gray-400",children:v.jsxs("div",{className:"form-group",children:[v.jsx("label",{className:"text-gray-700 text-sm font-bold mb-2",htmlFor:`AVAILABILITY_CON${e}`,children:"Connector Availability:"}),v.jsx(Qh,{availability:i})]})})]}),v.jsx("button",{onClick:g,className:`bg-yellow-500 hover:bg-yellow-700 text-white font-bold py-2 px-4 rounded mb-2 w-full - disabled:opacity-50`,disabled:l!==D.Available,children:"Start Transaction"}),v.jsxs("div",{children:[v.jsxs("div",{className:"flex mb-2",children:[v.jsx("input",{type:"number",value:u,onChange:x=>a(Number(x.target.value)),className:"shadow appearance-none border rounded w-1/2 py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"}),v.jsx("button",{onClick:S,className:`bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded ml-2 - disabled:opacity-50`,children:"+"})]}),v.jsx("button",{onClick:w,className:`bg-indigo-500 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded w-full - disabled:opacity-50`,disabled:l!==D.Charging,children:"Send Meter Value"})]}),v.jsx("button",{onClick:y,className:`bg-orange-500 hover:bg-orange-700 text-white font-bold py-2 px-4 rounded mb-2 w-full - disabled:opacity-50`,disabled:l!==D.Charging,children:"Stop Transaction"})]})]})},Wh=({status:e})=>{const t=n=>{switch(n){case D.Unavailable:return"text-red-500";case D.Available:return"text-yellow-500";case D.Authorized:return"text-blue-500";case D.Charging:return"text-purple-500";case D.Faulted:return"text-red-500";default:return"text-black"}};return v.jsx("span",{className:t(e),children:e})},Qh=({availability:e})=>{const t=n=>{switch(n){case Dl:return"text-green-500";case Jc:return"text-red-500";default:return"text-black"}};return v.jsx("span",{className:t(e),children:e})},Kh=()=>{const[e,t]=k.useState([]);return k.useEffect(()=>{const n=console.log;return console.log=r=>{t(l=>[...l,r])},()=>{console.log=n}},[]),v.jsx("div",{className:"mt-2 border-0 border-blue-500 h-screen",children:v.jsx(Gh,{readOnly:!0,className:"w-full h-1/4 bg-gray-100 p-2",value:e.join(` -`)})})},Gh=e=>{const t=k.useRef(null);return k.useEffect(()=>{var n;(n=t.current)==null||n.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})},[e.value]),v.jsx("textarea",{className:"w-full h-auto",ref:t,...e})},Yh=()=>{const[e,t]=k.useState(D.Unavailable),[n,r]=k.useState(null),l=pr().search,o=new URLSearchParams(l);k.useEffect(()=>{const u=parseInt(o.get("connectors")||localStorage.getItem("CONNECTORS")||"2"),a=o.get("wsurl")||localStorage.getItem("WSURL")||"",h=o.get("cpid")||localStorage.getItem("CPID")||"CP-001",d=o.get("tag")||localStorage.getItem("TAG")||"DEADBEEF";localStorage.setItem("WSURL",a),localStorage.setItem("CONNECTORS",u.toString()),localStorage.setItem("CPID",h),localStorage.setItem("TAG",d);const g=new Bh(h,u,a);g.statusChangeCallback=i,g.loggingCallback=s,r(g)},[]);const i=(u,a)=>{t(u)},s=u=>{console.log(u)};return v.jsxs("div",{className:"bg-white shadow-md rounded px-2 pt-2 pb-1 h-screen",children:[v.jsx(qh,{}),v.jsxs("div",{className:"flex flex-col md:flex-row",children:[v.jsx(Zh,{cp:n,cpStatus:e}),v.jsxs("div",{className:"flex-1",children:[v.jsx(Jh,{cp:n,cpStatus:e}),v.jsx("div",{className:"flex flex-col md:flex-row mt-4",children:(n==null?void 0:n.connectors)&&Array.from(Array(n.connectors.size).keys()).map(u=>v.jsx(Hh,{id:u+1,cp:n},u+1))})]})]}),v.jsx(Kh,{})]})},Xh=({status:e})=>{const t=n=>{switch(n){case D.Unavailable:return"text-black";case D.Available:return"text-green-500";case D.Charging:return"text-blue-500";default:return"text-red-500"}};return v.jsxs("div",{className:"bg-gray-100 rounded p-4 mr-4 border border-gray-400",children:[v.jsx("label",{className:"block text-lg font-semibold",children:"CP Status"}),v.jsx("p",{className:"text-2xl font-bold text-center",children:v.jsx("span",{className:t(e),children:e})})]})},Jh=({cp:e,cpStatus:t})=>{const[n,r]=k.useState("");k.useEffect(()=>{r(localStorage.getItem("TAG")||"")},[]);const l=()=>{if(e){const o=localStorage.getItem("TAG")||"DEADBEEF";e.authorize(o)}};return v.jsxs("div",{className:"bg-gray-100 rounded p-4",children:[v.jsxs("div",{className:"mb-6",children:[v.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"TAG",children:" RFID Tag"}),v.jsx("input",{className:"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",id:"TAG",type:"text",value:n,onChange:o=>r(o.target.value),placeholder:"DEADBEEF",style:{maxWidth:"20ch"}}),v.jsx("p",{className:"text-gray-600 text-xs italic mt-1",children:"The ID of the simulated RFID tag"})]}),v.jsx("button",{onClick:l,className:`bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded w-full + `,disabled:l===D.Unavailable,children:"Status Notification"}),m.jsx("div",{className:"d-flex border-b border-gray-400",children:m.jsxs("div",{className:"form-group",children:[m.jsx("label",{className:"text-gray-700 text-sm font-bold mb-2",htmlFor:`AVAILABILITY_CON${e}`,children:"Connector Availability:"}),m.jsx(Qh,{availability:i})]})})]}),m.jsx("button",{onClick:g,className:`bg-yellow-500 hover:bg-yellow-700 text-white font-bold py-2 px-4 rounded mb-2 w-full + disabled:opacity-50`,disabled:l!==D.Available,children:"Start Transaction"}),m.jsxs("div",{children:[m.jsxs("div",{className:"flex mb-2",children:[m.jsx("input",{type:"number",value:u,onChange:x=>a(Number(x.target.value)),className:"shadow appearance-none border rounded w-1/2 py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"}),m.jsx("button",{onClick:y,className:`bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded ml-2 + disabled:opacity-50`,children:"+"})]}),m.jsx("button",{onClick:w,className:`bg-indigo-500 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded w-full + disabled:opacity-50`,disabled:l!==D.Charging,children:"Send Meter Value"})]}),m.jsx("button",{onClick:S,className:`bg-orange-500 hover:bg-orange-700 text-white font-bold py-2 px-4 rounded mb-2 w-full + disabled:opacity-50`,disabled:l!==D.Charging,children:"Stop Transaction"})]})]})},Hh=({status:e})=>{const t=n=>{switch(n){case D.Unavailable:return"text-red-500";case D.Available:return"text-yellow-500";case D.Authorized:return"text-blue-500";case D.Charging:return"text-purple-500";case D.Faulted:return"text-red-500";default:return"text-black"}};return m.jsx("span",{className:t(e),children:e})},Qh=({availability:e})=>{const t=n=>{switch(n){case Dl:return"text-green-500";case Jc:return"text-red-500";default:return"text-black"}};return m.jsx("span",{className:t(e),children:e})},Kh=()=>{const[e,t]=k.useState([]);return k.useEffect(()=>{const n=console.log;return console.log=r=>{t(l=>[...l,r])},()=>{console.log=n}},[]),m.jsx("div",{className:"mt-2 border-0 border-blue-500 h-screen",children:m.jsx(Gh,{readOnly:!0,className:"w-full h-1/4 bg-gray-100 p-2",value:e.join(` +`)})})},Gh=e=>{const t=k.useRef(null);return k.useEffect(()=>{var n;(n=t.current)==null||n.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})},[e.value]),m.jsx("textarea",{className:"w-full h-auto",ref:t,...e})},Yh=()=>{const[e,t]=k.useState(D.Unavailable),[n,r]=k.useState(null),[l,o]=k.useState(""),i=pr().search,s=new URLSearchParams(i);k.useEffect(()=>{const h=parseInt(s.get("connectors")||localStorage.getItem("CONNECTORS")||"2"),d=s.get("wsurl")||localStorage.getItem("WSURL")||"",g=s.get("cpid")||localStorage.getItem("CPID")||"CP-001",S=s.get("tag")||localStorage.getItem("TAG")||"DEADBEEF";localStorage.setItem("WSURL",d),localStorage.setItem("CONNECTORS",h.toString()),localStorage.setItem("CPID",g),localStorage.setItem("TAG",S);const y=new Bh(g,h,d);y.statusChangeCallback=u,y.loggingCallback=a,y.errorCallback=o,r(y)},[]);const u=(h,d)=>{t(h)},a=h=>{console.log(h)};return m.jsxs("div",{className:"bg-white shadow-md rounded px-2 pt-2 pb-1 h-screen",children:[m.jsx(qh,{}),m.jsxs("div",{className:"flex flex-col md:flex-row",children:[m.jsx(Zh,{cp:n,cpStatus:e,cpError:l}),m.jsxs("div",{className:"flex-1",children:[m.jsx(Jh,{cp:n,cpStatus:e}),m.jsx("div",{className:"flex flex-col md:flex-row mt-4",children:(n==null?void 0:n.connectors)&&Array.from(Array(n.connectors.size).keys()).map(h=>m.jsx(Wh,{id:h+1,cp:n},h+1))})]})]}),m.jsx(Kh,{})]})},Xh=({status:e})=>{const t=n=>{switch(n){case D.Unavailable:return"text-black";case D.Available:return"text-green-500";case D.Charging:return"text-blue-500";default:return"text-red-500"}};return m.jsxs("div",{className:"bg-gray-100 rounded p-4 mr-4 border border-gray-400",children:[m.jsx("label",{className:"block text-lg font-semibold",children:"CP Status"}),m.jsx("p",{className:"text-2xl font-bold text-center",children:m.jsx("span",{className:t(e),children:e})})]})},Jh=({cp:e,cpStatus:t})=>{const[n,r]=k.useState("");k.useEffect(()=>{r(localStorage.getItem("TAG")||"")},[]);const l=()=>{if(e){const o=localStorage.getItem("TAG")||"DEADBEEF";e.authorize(o)}};return m.jsxs("div",{className:"bg-gray-100 rounded p-4",children:[m.jsxs("div",{className:"mb-6",children:[m.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"TAG",children:" RFID Tag"}),m.jsx("input",{className:"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",id:"TAG",type:"text",value:n,onChange:o=>r(o.target.value),placeholder:"DEADBEEF",style:{maxWidth:"20ch"}}),m.jsx("p",{className:"text-gray-600 text-xs italic mt-1",children:"The ID of the simulated RFID tag"})]}),m.jsx("button",{onClick:l,className:`bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded w-full disabled:bg-green-300 - `,disabled:t!==D.Available,children:"Authorize"})]})},Zh=({cp:e,cpStatus:t})=>{const[n,r]=k.useState(!1),l=()=>{e&&e.connect()},o=()=>{e&&e.disconnect()},i=()=>{e&&e.sendHeartbeat()},s=u=>{r(u),e&&(u?e.startHeartbeat(10):e.stopHeartbeat())};return v.jsxs("div",{className:"bg-gray-100 rounded p-4 mr-4",children:[v.jsx("div",{className:"bg-gray-100 rounded p-4 mr-4",children:v.jsx(Xh,{status:t})}),v.jsx("button",{onClick:l,className:`bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded mb-2 w-full + `,disabled:t!==D.Available,children:"Authorize"})]})},Zh=({cp:e,cpStatus:t,cpError:n})=>{const[r,l]=k.useState(!1),o=()=>{e&&e.connect()},i=()=>{e&&e.disconnect()},s=()=>{e&&e.sendHeartbeat()},u=a=>{l(a),e&&(a?e.startHeartbeat(10):e.stopHeartbeat())};return m.jsxs("div",{className:"bg-gray-100 rounded p-4 mr-4",children:[m.jsx("div",{className:"bg-gray-100 rounded p-4 mr-4",children:m.jsx(Xh,{status:t})}),m.jsx("div",{children:n!==""&&m.jsx("div",{className:"bg-red-500 text-white p-2 rounded mb-2",children:n})}),m.jsx("button",{onClick:o,className:`bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded mb-2 w-full disabled:bg-blue-300 - `,disabled:t!==D.Unavailable,children:"Connect"}),v.jsx("button",{onClick:o,className:`bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded mb-2 w-full + `,disabled:t!==D.Unavailable,children:"Connect"}),m.jsx("button",{onClick:i,className:`bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded mb-2 w-full disabled:bg-red-300 - `,disabled:t===D.Unavailable,children:"Disconnect"}),v.jsxs("div",{className:"bg-gray-100 rounded p-4",children:[v.jsx("button",{onClick:i,className:`bg-purple-500 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded mb-2 w-full + `,disabled:t===D.Unavailable,children:"Disconnect"}),m.jsxs("div",{className:"bg-gray-100 rounded p-4",children:[m.jsx("button",{onClick:s,className:`bg-purple-500 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded mb-2 w-full disabled:bg-purple-300 - `,disabled:t===D.Unavailable,children:"Heartbeat"}),v.jsx("div",{className:"flex items-center",children:v.jsxs("button",{className:`bg-${n?"red":"green"}-500 hover:bg-${n?"red":"green"}-700 text-white font-bold py-2 px-4 rounded mb-2 w-full`,onClick:()=>s(!n),children:[n?"Disable":"Enable"," Heartbeat"]})})]})]})},qh=()=>{const[e]=k.useState(localStorage.getItem("WSURL")||""),[t]=k.useState(parseInt(localStorage.getItem("CONNECTORS")||"2")),[n]=k.useState(localStorage.getItem("CPID")||"CP-001"),[r]=k.useState(localStorage.getItem("OCPP")||"OCPP-1.6J");return v.jsxs("div",{className:"mb-1 bg-gray-100 rounded p-2",children:[v.jsx("p",{className:"text-lg font-semibold",children:"settings"}),v.jsxs("li",{children:["WSURL: ",e]}),v.jsxs("li",{children:["CONNECTORS: ",t]}),v.jsxs("li",{children:["CPID: ",n]}),v.jsxs("li",{children:["OCPP: ",r]})]})},bh=()=>{const[e,t]=k.useState(""),[n,r]=k.useState(2),[l,o]=k.useState(""),[i,s]=k.useState(""),[u,a]=k.useState("OCPP-1.6J");k.useEffect(()=>{t(localStorage.getItem("WSURL")||""),r(parseInt(localStorage.getItem("CONNECTORS")||"2")),o(localStorage.getItem("CPID")||""),s(localStorage.getItem("TAG")||"")},[]);const h=d=>{d.preventDefault(),localStorage.setItem("WSURL",e),localStorage.setItem("CONNECTORS",n.toString()),localStorage.setItem("CPID",l),localStorage.setItem("TAG",i),alert("Settings saved successfully!")};return v.jsxs("div",{className:"bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4",children:[v.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Settings"}),v.jsxs("form",{onSubmit:h,children:[v.jsxs("div",{className:"mb-4",children:[v.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"WSURL",children:"OCPP Server"}),v.jsx("input",{className:"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",id:"WSURL",type:"text",value:e,onChange:d=>t(d.target.value),placeholder:"ws://localhost:8080/steve/websocket/CentralSystemService/"}),v.jsx("p",{className:"text-gray-600 text-xs italic mt-1",children:"The base URL of the OCPP Server (without the ChargePoint ID)"})]}),v.jsxs("div",{className:"mb-4",children:[v.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"CONNECTORS",children:"Number of Connectors"}),v.jsx("input",{className:"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",id:"CONNECTORS",type:"number",value:n,onChange:d=>r(parseInt(d.target.value)),placeholder:"2",style:{maxWidth:"20ch"}})]}),v.jsxs("div",{className:"mb-4",children:[v.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"CPID",children:"ChargePoint ID"}),v.jsx("input",{className:"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",id:"CPID",type:"text",value:l,onChange:d=>o(d.target.value),placeholder:"CP001",style:{maxWidth:"20ch"}})]}),v.jsxs("div",{className:"mb-4",children:[v.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"OCPP",children:"OCPP Version"}),v.jsx("select",{className:"shadow border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",id:"OCPP",value:u,onChange:d=>a(d.target.value),style:{maxWidth:"20ch"},children:v.jsx("option",{value:"OCPP-1.6J",children:"OCPP-1.6J"})})]}),v.jsx("div",{className:"flex items-center justify-between",children:v.jsx("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline",type:"submit",children:"Save"})})]})]})},eg=()=>v.jsx(Nh,{basename:"/ocpp-cp-simulator",children:v.jsxs("div",{className:"min-h-screen bg-gray-100",children:[v.jsx(Lh,{}),v.jsx("div",{className:"container mx-auto my-auto p-4",children:v.jsxs(Sh,{children:[v.jsx(ai,{path:"/",element:v.jsx(Yh,{})}),v.jsx(ai,{path:"/settings",element:v.jsx(bh,{})})]})})]})});go.createRoot(document.getElementById("root")).render(v.jsx(Mu.StrictMode,{children:v.jsx(eg,{})})); + `,disabled:t===D.Unavailable,children:"Heartbeat"}),m.jsx("div",{className:"flex items-center",children:m.jsxs("button",{className:`bg-${r?"red":"green"}-500 hover:bg-${r?"red":"green"}-700 text-white font-bold py-2 px-4 rounded mb-2 w-full`,onClick:()=>u(!r),children:[r?"Disable":"Enable"," Heartbeat"]})})]})]})},qh=()=>{const[e]=k.useState(localStorage.getItem("WSURL")||""),[t]=k.useState(parseInt(localStorage.getItem("CONNECTORS")||"2")),[n]=k.useState(localStorage.getItem("CPID")||"CP-001"),[r]=k.useState(localStorage.getItem("OCPP")||"OCPP-1.6J");return m.jsxs("div",{className:"mb-1 bg-gray-100 rounded p-2",children:[m.jsx("p",{className:"text-lg font-semibold",children:"settings"}),m.jsxs("li",{children:["WSURL: ",e]}),m.jsxs("li",{children:["CONNECTORS: ",t]}),m.jsxs("li",{children:["CPID: ",n]}),m.jsxs("li",{children:["OCPP: ",r]})]})},bh=()=>{const[e,t]=k.useState(""),[n,r]=k.useState(2),[l,o]=k.useState(""),[i,s]=k.useState(""),[u,a]=k.useState("OCPP-1.6J");k.useEffect(()=>{t(localStorage.getItem("WSURL")||""),r(parseInt(localStorage.getItem("CONNECTORS")||"2")),o(localStorage.getItem("CPID")||""),s(localStorage.getItem("TAG")||"")},[]);const h=d=>{d.preventDefault(),localStorage.setItem("WSURL",e),localStorage.setItem("CONNECTORS",n.toString()),localStorage.setItem("CPID",l),localStorage.setItem("TAG",i),alert("Settings saved successfully!")};return m.jsxs("div",{className:"bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4",children:[m.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Settings"}),m.jsxs("form",{onSubmit:h,children:[m.jsxs("div",{className:"mb-4",children:[m.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"WSURL",children:"OCPP Server"}),m.jsx("input",{className:"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",id:"WSURL",type:"text",value:e,onChange:d=>t(d.target.value),placeholder:"ws://localhost:8080/steve/websocket/CentralSystemService/"}),m.jsx("p",{className:"text-gray-600 text-xs italic mt-1",children:"The base URL of the OCPP Server (without the ChargePoint ID)"})]}),m.jsxs("div",{className:"mb-4",children:[m.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"CONNECTORS",children:"Number of Connectors"}),m.jsx("input",{className:"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",id:"CONNECTORS",type:"number",value:n,onChange:d=>r(parseInt(d.target.value)),placeholder:"2",style:{maxWidth:"20ch"}})]}),m.jsxs("div",{className:"mb-4",children:[m.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"CPID",children:"ChargePoint ID"}),m.jsx("input",{className:"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",id:"CPID",type:"text",value:l,onChange:d=>o(d.target.value),placeholder:"CP001",style:{maxWidth:"20ch"}})]}),m.jsxs("div",{className:"mb-4",children:[m.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"OCPP",children:"OCPP Version"}),m.jsx("select",{className:"shadow border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",id:"OCPP",value:u,onChange:d=>a(d.target.value),style:{maxWidth:"20ch"},children:m.jsx("option",{value:"OCPP-1.6J",children:"OCPP-1.6J"})})]}),m.jsx("div",{className:"flex items-center justify-between",children:m.jsx("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline",type:"submit",children:"Save"})})]})]})},eg=()=>m.jsx(Nh,{basename:"/ocpp-cp-simulator",children:m.jsxs("div",{className:"min-h-screen bg-gray-100",children:[m.jsx(Lh,{}),m.jsx("div",{className:"container mx-auto my-auto p-4",children:m.jsxs(Sh,{children:[m.jsx(ai,{path:"/",element:m.jsx(Yh,{})}),m.jsx(ai,{path:"/settings",element:m.jsx(bh,{})})]})})]})});go.createRoot(document.getElementById("root")).render(m.jsx(Mu.StrictMode,{children:m.jsx(eg,{})})); diff --git a/index.html b/index.html index 2b73918..ee04cda 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ OCPP ChargePoint Simulator - +