diff --git a/assets/index-F2ild_uY.js b/assets/index-F2ild_uY.js deleted file mode 100644 index f95034d..0000000 --- a/assets/index-F2ild_uY.js +++ /dev/null @@ -1,68 +0,0 @@ -var Ep=Object.defineProperty;var kp=(e,t,n)=>t in e?Ep(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Er=(e,t,n)=>(kp(e,typeof t!="symbol"?t+"":t,n),n);function _c(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 Cc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pc={exports:{}},To={},Rc={exports:{}},Q={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var vl=Symbol.for("react.element"),_p=Symbol.for("react.portal"),Cp=Symbol.for("react.fragment"),Pp=Symbol.for("react.strict_mode"),Rp=Symbol.for("react.profiler"),Np=Symbol.for("react.provider"),Lp=Symbol.for("react.context"),Tp=Symbol.for("react.forward_ref"),jp=Symbol.for("react.suspense"),Dp=Symbol.for("react.memo"),Mp=Symbol.for("react.lazy"),Ku=Symbol.iterator;function zp(e){return e===null||typeof e!="object"?null:(e=Ku&&e[Ku]||e["@@iterator"],typeof e=="function"?e:null)}var Nc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lc=Object.assign,Tc={};function mr(e,t,n){this.props=e,this.context=t,this.refs=Tc,this.updater=n||Nc}mr.prototype.isReactComponent={};mr.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")};mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jc(){}jc.prototype=mr.prototype;function za(e,t,n){this.props=e,this.context=t,this.refs=Tc,this.updater=n||Nc}var Ia=za.prototype=new jc;Ia.constructor=za;Lc(Ia,mr.prototype);Ia.isPureReactComponent=!0;var Yu=Array.isArray,Dc=Object.prototype.hasOwnProperty,Fa={current:null},Mc={key:!0,ref:!0,__self:!0,__source:!0};function zc(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)Dc.call(t,r)&&!Mc.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1>>1,ee=D[G];if(0>>1;Gl(ot,$))Mel(Ot,ot)?(D[G]=Ot,D[Me]=$,G=Me):(D[G]=ot,D[_e]=$,G=_e);else if(Mel(Ot,$))D[G]=Ot,D[Me]=$,G=Me;else break e}}return H}function l(D,H){var $=D.sortIndex-H.sortIndex;return $!==0?$:D.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],s=[],c=1,p=null,m=3,S=!1,x=!1,g=!1,P=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(D){for(var H=n(s);H!==null;){if(H.callback===null)r(s);else if(H.startTime<=D)r(s),H.sortIndex=H.expirationTime,t(u,H);else break;H=n(s)}}function E(D){if(g=!1,h(D),!x)if(n(u)!==null)x=!0,Ft(L);else{var H=n(s);H!==null&&re(E,H.startTime-D)}}function L(D,H){x=!1,g&&(g=!1,f(T),T=-1),S=!0;var $=m;try{for(h(H),p=n(u);p!==null&&(!(p.expirationTime>H)||D&&!X());){var G=p.callback;if(typeof G=="function"){p.callback=null,m=p.priorityLevel;var ee=G(p.expirationTime<=H);H=e.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(u)&&r(u),h(H)}else r(u);p=n(u)}if(p!==null)var ht=!0;else{var _e=n(s);_e!==null&&re(E,_e.startTime-H),ht=!1}return ht}finally{p=null,m=$,S=!1}}var v=!1,R=null,T=-1,z=5,O=-1;function X(){return!(e.unstable_now()-OD||125G?(D.sortIndex=$,t(s,D),n(u)===null&&D===n(s)&&(g?(f(T),T=-1):g=!0,re(E,$-G))):(D.sortIndex=ee,t(u,D),x||S||(x=!0,Ft(L))),D},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(D){var H=m;return function(){var $=m;m=H;try{return D.apply(this,arguments)}finally{m=$}}}})(Uc);Oc.exports=Uc;var Yp=Oc.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Hc=C,Ye=Yp;function N(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"),zi=Object.prototype.hasOwnProperty,Xp=/^[: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]*$/,Gu={},Ju={};function Gp(e){return zi.call(Ju,e)?!0:zi.call(Gu,e)?!1:Xp.test(e)?Ju[e]=!0:(Gu[e]=!0,!1)}function Jp(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 Zp(e,t,n,r){if(t===null||typeof t>"u"||Jp(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 Oe(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 Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new Oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new Oe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new Oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new Oe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ne[e]=new Oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new Oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new Oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new Oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new Oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ua=/[\-:]([a-z])/g;function Ha(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(Ua,Ha);Ne[t]=new Oe(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(Ua,Ha);Ne[t]=new Oe(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(Ua,Ha);Ne[t]=new Oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new Oe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new Oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new Oe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Aa(e,t,n,r){var l=Ne.hasOwnProperty(t)?Ne[t]:null;(l!==null?l.type!==0:r||!(2a||l[i]!==o[a]){var u=` -`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{ni=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fr(e):""}function qp(e){switch(e.tag){case 5:return Fr(e.type);case 16:return Fr("Lazy");case 13:return Fr("Suspense");case 19:return Fr("SuspenseList");case 0:case 2:case 15:return e=ri(e.type,!1),e;case 11:return e=ri(e.type.render,!1),e;case 1:return e=ri(e.type,!0),e;default:return""}}function Ui(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 Bn:return"Fragment";case $n:return"Portal";case Ii:return"Profiler";case $a:return"StrictMode";case Fi:return"Suspense";case Oi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bc:return(e.displayName||"Context")+".Consumer";case $c:return(e._context.displayName||"Context")+".Provider";case Ba:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Va:return t=e.displayName||null,t!==null?t:Ui(e.type)||"Memo";case Wt:t=e._payload,e=e._init;try{return Ui(e(t))}catch{}}return null}function bp(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 Ui(t);case 8:return t===$a?"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 an(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eh(e){var t=Wc(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 Tl(e){e._valueTracker||(e._valueTracker=eh(e))}function Qc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ro(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 Hi(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=an(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 Kc(e,t){t=t.checked,t!=null&&Aa(e,"checked",t,!1)}function Ai(e,t){Kc(e,t);var n=an(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")?$i(e,t.type,n):t.hasOwnProperty("defaultValue")&&$i(e,t.type,an(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bu(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 $i(e,t,n){(t!=="number"||ro(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Or=Array.isArray;function tr(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=jl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $r={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},th=["Webkit","ms","Moz","O"];Object.keys($r).forEach(function(e){th.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$r[t]=$r[e]})});function Jc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$r.hasOwnProperty(e)&&$r[e]?(""+t).trim():t+"px"}function Zc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Jc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var nh=ue({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 Wi(e,t){if(t){if(nh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Qi(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 Ki=null;function Wa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yi=null,nr=null,rr=null;function ns(e){if(e=wl(e)){if(typeof Yi!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Io(t),Yi(e.stateNode,e.type,t))}}function qc(e){nr?rr?rr.push(e):rr=[e]:nr=e}function bc(){if(nr){var e=nr,t=rr;if(rr=nr=null,ns(e),t)for(e=0;e>>=0,e===0?32:31-(ph(e)/hh|0)|0}var Dl=64,Ml=4194304;function Ur(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 ao(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 a=i&~l;a!==0?r=Ur(a):(o&=i,o!==0&&(r=Ur(o)))}else i=n&~l,i!==0?r=Ur(i):o!==0&&(r=Ur(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 yl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dt(t),e[t]=n}function gh(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=Vr),ds=" ",fs=!1;function wd(e,t){switch(e){case"keyup":return Kh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function Xh(e,t){switch(e){case"compositionend":return xd(t);case"keypress":return t.which!==32?null:(fs=!0,ds);case"textInput":return e=t.data,e===ds&&fs?null:e;default:return null}}function Gh(e,t){if(Vn)return e==="compositionend"||!qa&&wd(e,t)?(e=yd(),Xl=Ga=Xt=null,Vn=!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=vs(n)}}function _d(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_d(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cd(){for(var e=window,t=ro();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ro(e.document)}return t}function ba(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 lm(e){var t=Cd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_d(n.ownerDocument.documentElement,n)){if(r!==null&&ba(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=ys(n,o);var i=ys(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,Wn=null,bi=null,Qr=null,ea=!1;function gs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ea||Wn==null||Wn!==ro(r)||(r=Wn,"selectionStart"in r&&ba(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}),Qr&&ll(Qr,r)||(Qr=r,r=co(bi,"onSelect"),0Yn||(e.current=ia[Yn],ia[Yn]=null,Yn--)}function b(e,t){Yn++,ia[Yn]=e.current,e.current=t}var un={},De=fn(un),Ae=fn(!1),Rn=un;function ur(e,t){var n=e.type.contextTypes;if(!n)return un;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 $e(e){return e=e.childContextTypes,e!=null}function po(){ne(Ae),ne(De)}function Cs(e,t,n){if(De.current!==un)throw Error(N(168));b(De,t),b(Ae,n)}function zd(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(N(108,bp(e)||"Unknown",l));return ue({},n,r)}function ho(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||un,Rn=De.current,b(De,e),b(Ae,Ae.current),!0}function Ps(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=zd(e,t,Rn),r.__reactInternalMemoizedMergedChildContext=e,ne(Ae),ne(De),b(De,e)):ne(Ae),b(Ae,n)}var _t=null,Fo=!1,yi=!1;function Id(e){_t===null?_t=[e]:_t.push(e)}function vm(e){Fo=!0,Id(e)}function pn(){if(!yi&&_t!==null){yi=!0;var e=0,t=J;try{var n=_t;for(J=1;e>=i,l-=i,Ct=1<<32-dt(t)+l|n<T?(z=R,R=null):z=R.sibling;var O=m(f,R,h[T],E);if(O===null){R===null&&(R=z);break}e&&R&&O.alternate===null&&t(f,R),d=o(O,d,T),v===null?L=O:v.sibling=O,v=O,R=z}if(T===h.length)return n(f,R),oe&&gn(f,T),L;if(R===null){for(;TT?(z=R,R=null):z=R.sibling;var X=m(f,R,O.value,E);if(X===null){R===null&&(R=z);break}e&&R&&X.alternate===null&&t(f,R),d=o(X,d,T),v===null?L=X:v.sibling=X,v=X,R=z}if(O.done)return n(f,R),oe&&gn(f,T),L;if(R===null){for(;!O.done;T++,O=h.next())O=p(f,O.value,E),O!==null&&(d=o(O,d,T),v===null?L=O:v.sibling=O,v=O);return oe&&gn(f,T),L}for(R=r(f,R);!O.done;T++,O=h.next())O=S(R,f,T,O.value,E),O!==null&&(e&&O.alternate!==null&&R.delete(O.key===null?T:O.key),d=o(O,d,T),v===null?L=O:v.sibling=O,v=O);return e&&R.forEach(function(ve){return t(f,ve)}),oe&&gn(f,T),L}function P(f,d,h,E){if(typeof h=="object"&&h!==null&&h.type===Bn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Ll:e:{for(var L=h.key,v=d;v!==null;){if(v.key===L){if(L=h.type,L===Bn){if(v.tag===7){n(f,v.sibling),d=l(v,h.props.children),d.return=f,f=d;break e}}else if(v.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Wt&&Ms(L)===v.type){n(f,v.sibling),d=l(v,h.props),d.ref=Nr(f,v,h),d.return=f,f=d;break e}n(f,v);break}else t(f,v);v=v.sibling}h.type===Bn?(d=Pn(h.props.children,f.mode,E,h.key),d.return=f,f=d):(E=no(h.type,h.key,h.props,null,f.mode,E),E.ref=Nr(f,d,h),E.return=f,f=E)}return i(f);case $n:e:{for(v=h.key;d!==null;){if(d.key===v)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(f,d.sibling),d=l(d,h.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=Ci(h,f.mode,E),d.return=f,f=d}return i(f);case Wt:return v=h._init,P(f,d,v(h._payload),E)}if(Or(h))return x(f,d,h,E);if(kr(h))return g(f,d,h,E);Al(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,h),d.return=f,f=d):(n(f,d),d=_i(h,f.mode,E),d.return=f,f=d),i(f)):n(f,d)}return P}var cr=Vd(!0),Wd=Vd(!1),xl={},St=fn(xl),ul=fn(xl),sl=fn(xl);function En(e){if(e===xl)throw Error(N(174));return e}function uu(e,t){switch(b(sl,t),b(ul,e),b(St,xl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vi(t,e)}ne(St),b(St,t)}function dr(){ne(St),ne(ul),ne(sl)}function Qd(e){En(sl.current);var t=En(St.current),n=Vi(t,e.type);t!==n&&(b(ul,e),b(St,n))}function su(e){ul.current===e&&(ne(St),ne(ul))}var ie=fn(0);function xo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gi=[];function cu(){for(var e=0;en?n:4,e(!0);var r=wi.transition;wi.transition={};try{e(!1),t()}finally{J=n,wi.transition=r}}function uf(){return lt().memoizedState}function xm(e,t,n){var r=nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sf(e))cf(t,n);else if(n=Hd(e,t,n,r),n!==null){var l=Ie();ft(n,e,r,l),df(n,t,r)}}function Sm(e,t,n){var r=nn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sf(e))cf(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,a=o(i,n);if(l.hasEagerState=!0,l.eagerState=a,pt(a,i)){var u=t.interleaved;u===null?(l.next=l,iu(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Hd(e,t,l,r),n!==null&&(l=Ie(),ft(n,e,r,l),df(n,t,r))}}function sf(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function cf(e,t){Kr=So=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function df(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ka(e,n)}}var Eo={readContext:rt,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},Em={readContext:rt,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Is,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ql(4194308,4,nf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ql(4194308,4,e,t)},useInsertionEffect:function(e,t){return ql(4,2,e,t)},useMemo:function(e,t){var n=gt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gt();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=xm.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:zs,useDebugValue:mu,useDeferredValue:function(e){return gt().memoizedState=e},useTransition:function(){var e=zs(!1),t=e[0];return e=wm.bind(null,e[1]),gt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,l=gt();if(oe){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),ke===null)throw Error(N(349));Ln&30||Xd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Is(Jd.bind(null,r,o,e),[e]),r.flags|=2048,fl(9,Gd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=gt(),t=ke.identifierPrefix;if(oe){var n=Pt,r=Ct;n=(r&~(1<<32-dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=cl++,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[wt]=t,e[al]=r,xf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Qi(n,r),n){case"dialog":te("cancel",e),te("close",e),l=r;break;case"iframe":case"object":case"embed":te("load",e),l=r;break;case"video":case"audio":for(l=0;lpr&&(t.flags|=128,r=!0,Lr(o,!1),t.lanes=4194304)}else{if(!r)if(e=xo(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Lr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!oe)return Te(t),null}else 2*pe()-o.renderingStartTime>pr&&n!==1073741824&&(t.flags|=128,r=!0,Lr(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=pe(),t.sibling=null,n=ie.current,b(ie,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return Su(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function Tm(e,t){switch(tu(t),t.tag){case 1:return $e(t.type)&&po(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dr(),ne(Ae),ne(De),cu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return su(t),null;case 13:if(ne(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(ie),null;case 4:return dr(),null;case 10:return ou(t.type._context),null;case 22:case 23:return Su(),null;case 24:return null;default:return null}}var Bl=!1,je=!1,jm=typeof WeakSet=="function"?WeakSet:Set,M=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ce(e,t,r)}else n.current=null}function ga(e,t,n){try{n()}catch(r){ce(e,t,r)}}var Ws=!1;function Dm(e,t){if(ta=uo,e=Cd(),ba(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,a=-1,u=-1,s=0,c=0,p=e,m=null;t:for(;;){for(var S;p!==n||l!==0&&p.nodeType!==3||(a=i+l),p!==o||r!==0&&p.nodeType!==3||(u=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(S=p.firstChild)!==null;)m=p,p=S;for(;;){if(p===e)break t;if(m===n&&++s===l&&(a=i),m===o&&++c===r&&(u=i),(S=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=S}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(na={focusedElem:e,selectionRange:n},uo=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,P=x.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:at(t.type,g),P);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(E){ce(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return x=Ws,Ws=!1,x}function Yr(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&&ga(t,n,o)}l=l.next}while(l!==r)}}function Ho(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 wa(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 kf(e){var t=e.alternate;t!==null&&(e.alternate=null,kf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[al],delete t[oa],delete t[hm],delete t[mm])),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 _f(e){return e.tag===5||e.tag===3||e.tag===4}function Qs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_f(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 xa(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=fo));else if(r!==4&&(e=e.child,e!==null))for(xa(e,t,n),e=e.sibling;e!==null;)xa(e,t,n),e=e.sibling}function Sa(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(Sa(e,t,n),e=e.sibling;e!==null;)Sa(e,t,n),e=e.sibling}var Pe=null,ut=!1;function $t(e,t,n){for(n=n.child;n!==null;)Cf(e,t,n),n=n.sibling}function Cf(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(jo,n)}catch{}switch(n.tag){case 5:je||Zn(n,t);case 6:var r=Pe,l=ut;Pe=null,$t(e,t,n),Pe=r,ut=l,Pe!==null&&(ut?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(ut?(e=Pe,n=n.stateNode,e.nodeType===8?vi(e.parentNode,n):e.nodeType===1&&vi(e,n),nl(e)):vi(Pe,n.stateNode));break;case 4:r=Pe,l=ut,Pe=n.stateNode.containerInfo,ut=!0,$t(e,t,n),Pe=r,ut=l;break;case 0:case 11:case 14:case 15:if(!je&&(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)&&ga(n,t,i),l=l.next}while(l!==r)}$t(e,t,n);break;case 1:if(!je&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ce(n,t,a)}$t(e,t,n);break;case 21:$t(e,t,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,$t(e,t,n),je=r):$t(e,t,n);break;default:$t(e,t,n)}}function Ks(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jm),t.forEach(function(r){var l=$m.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function it(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zm(r/1960))-r,10e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,Co=0,Y&6)throw Error(N(331));var l=Y;for(Y|=4,M=e.current;M!==null;){var o=M,i=o.child;if(M.flags&16){var a=o.deletions;if(a!==null){for(var u=0;upe()-wu?Cn(e,0):gu|=n),Be(e,t)}function Mf(e,t){t===0&&(e.mode&1?(t=Ml,Ml<<=1,!(Ml&130023424)&&(Ml=4194304)):t=1);var n=Ie();e=Dt(e,t),e!==null&&(yl(e,t,n),Be(e,n))}function Am(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mf(e,n)}function $m(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(N(314))}r!==null&&r.delete(t),Mf(e,n)}var zf;zf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,Nm(e,t,n);He=!!(e.flags&131072)}else He=!1,oe&&t.flags&1048576&&Fd(t,vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bl(e,t),e=t.pendingProps;var l=ur(t,De.current);or(t,n),l=fu(null,t,r,e,l,n);var o=pu();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,$e(r)?(o=!0,ho(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,au(t),l.updater=Oo,t.stateNode=l,l._reactInternals=t,da(t,r,e,n),t=ha(null,t,r,!0,o,n)):(t.tag=0,oe&&o&&eu(t),ze(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Vm(r),e=at(r,e),l){case 0:t=pa(null,t,r,e,n);break e;case 1:t=$s(null,t,r,e,n);break e;case 11:t=Hs(null,t,r,e,n);break e;case 14:t=As(null,t,r,at(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:at(r,l),pa(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:at(r,l),$s(e,t,r,l,n);case 3:e:{if(yf(t),e===null)throw Error(N(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Ad(e,t),wo(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=fr(Error(N(423)),t),t=Bs(e,t,r,n,l);break e}else if(r!==l){l=fr(Error(N(424)),t),t=Bs(e,t,r,n,l);break e}else for(Qe=bt(t.stateNode.containerInfo.firstChild),Ke=t,oe=!0,ct=null,n=Wd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sr(),r===l){t=Mt(e,t,n);break e}ze(e,t,r,n)}t=t.child}return t;case 5:return Qd(t),e===null&&ua(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ra(r,l)?i=null:o!==null&&ra(r,o)&&(t.flags|=32),vf(e,t),ze(e,t,i,n),t.child;case 6:return e===null&&ua(t),null;case 13:return gf(e,t,n);case 4:return uu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cr(t,null,r,n):ze(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:at(r,l),Hs(e,t,r,l,n);case 7:return ze(e,t,t.pendingProps,n),t.child;case 8:return ze(e,t,t.pendingProps.children,n),t.child;case 12:return ze(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,b(yo,r._currentValue),r._currentValue=i,o!==null)if(pt(o.value,i)){if(o.children===l.children&&!Ae.current){t=Mt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Nt(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),sa(o.return,n,t),a.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(N(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),sa(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}ze(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,or(t,n),l=rt(l),r=r(l),t.flags|=1,ze(e,t,r,n),t.child;case 14:return r=t.type,l=at(r,t.pendingProps),l=at(r.type,l),As(e,t,r,l,n);case 15:return hf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:at(r,l),bl(e,t),t.tag=1,$e(r)?(e=!0,ho(t)):e=!1,or(t,n),Bd(t,r,l),da(t,r,l,n),ha(null,t,r,!0,e,n);case 19:return wf(e,t,n);case 22:return mf(e,t,n)}throw Error(N(156,t.tag))};function If(e,t){return id(e,t)}function Bm(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 tt(e,t,n,r){return new Bm(e,t,n,r)}function ku(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vm(e){if(typeof e=="function")return ku(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ba)return 11;if(e===Va)return 14}return 2}function rn(e,t){var n=e.alternate;return n===null?(n=tt(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 no(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")ku(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Bn:return Pn(n.children,l,o,t);case $a:i=8,l|=8;break;case Ii:return e=tt(12,n,t,l|2),e.elementType=Ii,e.lanes=o,e;case Fi:return e=tt(13,n,t,l),e.elementType=Fi,e.lanes=o,e;case Oi:return e=tt(19,n,t,l),e.elementType=Oi,e.lanes=o,e;case Vc:return $o(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $c:i=10;break e;case Bc:i=9;break e;case Ba:i=11;break e;case Va:i=14;break e;case Wt:i=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=tt(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Pn(e,t,n,r){return e=tt(7,e,r,t),e.lanes=n,e}function $o(e,t,n,r){return e=tt(22,e,r,t),e.elementType=Vc,e.lanes=n,e.stateNode={isHidden:!1},e}function _i(e,t,n){return e=tt(6,e,null,t),e.lanes=n,e}function Ci(e,t,n){return t=tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wm(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=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function _u(e,t,n,r,l,o,i,a,u){return e=new Wm(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=tt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},au(o),e}function Qm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hf)}catch(e){console.error(e)}}Hf(),Fc.exports=Xe;var Nu=Fc.exports;const Af=Cc(Nu),Jm=_c({__proto__:null,default:Af},[Nu]);var ec=Nu;Mi.createRoot=ec.createRoot,Mi.hydrateRoot=ec.hydrateRoot;const Lu=C.createContext({isActive:!1,displayModal:()=>{},removeModal:()=>{}}),Zm=({children:e})=>{const[t,n]=C.useState(!1),o={isActive:t,displayModal:()=>{n(!0)},removeModal:()=>{n(!1)}};return _.jsx(Lu.Provider,{value:o,children:e})};/** - * @remix-run/router v1.14.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Dn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bm(){return Math.random().toString(36).substr(2,8)}function nc(e,t){return{usr:e.state,key:e.key,idx:t}}function hl(e,t,n,r){return n===void 0&&(n=null),de({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?It(t):t,{state:n,key:t&&t.key||r||bm()})}function Mn(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 It(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 ev(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,a=fe.Pop,u=null,s=c();s==null&&(s=0,i.replaceState(de({},i.state,{idx:s}),""));function c(){return(i.state||{idx:null}).idx}function p(){a=fe.Pop;let P=c(),f=P==null?null:P-s;s=P,u&&u({action:a,location:g.location,delta:f})}function m(P,f){a=fe.Push;let d=hl(g.location,P,f);n&&n(d,P),s=c()+1;let h=nc(d,s),E=g.createHref(d);try{i.pushState(h,"",E)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(E)}o&&u&&u({action:a,location:g.location,delta:1})}function S(P,f){a=fe.Replace;let d=hl(g.location,P,f);n&&n(d,P),s=c();let h=nc(d,s),E=g.createHref(d);i.replaceState(h,"",E),o&&u&&u({action:a,location:g.location,delta:0})}function x(P){let f=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof P=="string"?P:Mn(P);return V(f,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,f)}let g={get action(){return a},get location(){return e(l,i)},listen(P){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(tc,p),u=P,()=>{l.removeEventListener(tc,p),u=null}},createHref(P){return t(l,P)},createURL:x,encodeLocation(P){let f=x(P);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:S,go(P){return i.go(P)}};return g}var se;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(se||(se={}));const tv=new Set(["lazy","caseSensitive","path","id","index","children"]);function nv(e){return e.index===!0}function Pa(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,o)=>{let i=[...n,o],a=typeof l.id=="string"?l.id:i.join("-");if(V(l.index!==!0||!l.children,"Cannot specify children on an index route"),V(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),nv(l)){let u=de({},l,t(l),{id:a});return r[a]=u,u}else{let u=de({},l,t(l),{id:a,children:void 0});return r[a]=u,l.children&&(u.children=Pa(l.children,t,i,r)),u}})}function bn(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?It(t):t,l=sn(r.pathname||"/",n);if(l==null)return null;let o=$f(e);lv(o);let i=null;for(let a=0;i==null&&a{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(V(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 s=Lt([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(V(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),$f(o.children,t,c,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:dv(s,o.index),routesMeta:c})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,i);else for(let u of Bf(o.path))l(o,i,u)}),t}function Bf(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=Bf(r.join("/")),a=[];return a.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function lv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ov=/^:\w+$/,iv=3,av=2,uv=1,sv=10,cv=-2,rc=e=>e==="*";function dv(e,t){let n=e.split("/"),r=n.length;return n.some(rc)&&(r+=cv),t&&(r+=av),n.filter(l=>!rc(l)).reduce((l,o)=>l+(ov.test(o)?iv:o===""?uv:sv),r)}function fv(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 pv(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{let{paramName:m,isOptional:S}=c;if(m==="*"){let g=a[p]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const x=a[p];return S&&!x?s[m]=void 0:s[m]=vv(x||"",m),s},{}),pathname:o,pathnameBase:i,pattern:e}}function hv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Dn(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,a,u)=>(r.push({paramName:a,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 mv(e){try{return decodeURI(e)}catch(t){return Dn(!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 vv(e,t){try{return decodeURIComponent(e)}catch(n){return Dn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function sn(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 yv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?It(e):e;return{pathname:n?n.startsWith("/")?n:gv(n,t):t,search:xv(r),hash:Sv(l)}}function gv(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 Pi(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 Vf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Tu(e,t){let n=Vf(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ju(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=It(e):(l=de({},e),V(!l.pathname||!l.pathname.includes("?"),Pi("?","pathname","search",l)),V(!l.pathname||!l.pathname.includes("#"),Pi("#","pathname","hash",l)),V(!l.search||!l.search.includes("#"),Pi("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,a;if(i==null)a=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;l.pathname=m.join("/")}a=p>=0?t[p]:"/"}let u=yv(l,a),s=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const Lt=e=>e.join("/").replace(/\/\/+/g,"/"),wv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Sv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Du{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Wf(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Qf=["post","put","patch","delete"],Ev=new Set(Qf),kv=["get",...Qf],_v=new Set(kv),Cv=new Set([301,302,303,307,308]),Pv=new Set([307,308]),Ri={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rv={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Kf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nv=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Yf="remix-router-transitions";function Lv(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;V(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let y=e.detectErrorBoundary;l=w=>({hasErrorBoundary:y(w)})}else l=Nv;let o={},i=Pa(e.routes,l,void 0,o),a,u=e.basename||"/",s=de({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,p=new Set,m=null,S=null,x=null,g=e.hydrationData!=null,P=bn(i,e.history.location,u),f=null;if(P==null){let y=qe(404,{pathname:e.history.location.pathname}),{matches:w,route:k}=dc(i);P=w,f={[k.id]:y}}let d,h=P.some(y=>y.route.lazy),E=P.some(y=>y.route.loader);if(h)d=!1;else if(!E)d=!0;else if(s.v7_partialHydration){let y=e.hydrationData?e.hydrationData.loaderData:null,w=e.hydrationData?e.hydrationData.errors:null;d=P.every(k=>k.route.loader&&k.route.loader.hydrate!==!0&&(y&&y[k.route.id]!==void 0||w&&w[k.route.id]!==void 0))}else d=e.hydrationData!=null;let L,v={historyAction:e.history.action,location:e.history.location,matches:P,initialized:d,navigation:Ri,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||f,fetchers:new Map,blockers:new Map},R=fe.Pop,T=!1,z,O=!1,X=new Map,ve=null,he=!1,Je=!1,Fn=[],Ft=[],re=new Map,D=0,H=-1,$=new Map,G=new Set,ee=new Map,ht=new Map,_e=new Set,ot=new Map,Me=new Map,Ot=!1;function ap(){if(c=e.history.listen(y=>{let{action:w,location:k,delta:j}=y;if(Ot){Ot=!1;return}Dn(Me.size===0||j!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=Vu({currentLocation:v.location,nextLocation:k,historyAction:w});if(I&&j!=null){Ot=!0,e.history.go(j*-1),Cl(I,{state:"blocked",location:k,proceed(){Cl(I,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),e.history.go(j)},reset(){let W=new Map(v.blockers);W.set(I,jr),Ve({blockers:W})}});return}return vn(w,k)}),n){Av(t,X);let y=()=>$v(t,X);t.addEventListener("pagehide",y),ve=()=>t.removeEventListener("pagehide",y)}return v.initialized||vn(fe.Pop,v.location,{initialHydration:!0}),L}function up(){c&&c(),ve&&ve(),p.clear(),z&&z.abort(),v.fetchers.forEach((y,w)=>_l(w)),v.blockers.forEach((y,w)=>Bu(w))}function sp(y){return p.add(y),()=>p.delete(y)}function Ve(y,w){w===void 0&&(w={}),v=de({},v,y);let k=[],j=[];s.v7_fetcherPersist&&v.fetchers.forEach((I,W)=>{I.state==="idle"&&(_e.has(W)?j.push(W):k.push(W))}),[...p].forEach(I=>I(v,{deletedFetchers:j,unstable_viewTransitionOpts:w.viewTransitionOpts,unstable_flushSync:w.flushSync===!0})),s.v7_fetcherPersist&&(k.forEach(I=>v.fetchers.delete(I)),j.forEach(I=>_l(I)))}function wr(y,w,k){var j,I;let{flushSync:W}=k===void 0?{}:k,A=v.actionData!=null&&v.navigation.formMethod!=null&&st(v.navigation.formMethod)&&v.navigation.state==="loading"&&((j=y.state)==null?void 0:j._isRedirect)!==!0,U;w.actionData?Object.keys(w.actionData).length>0?U=w.actionData:U=null:A?U=v.actionData:U=null;let F=w.loaderData?cc(v.loaderData,w.loaderData,w.matches||[],w.errors):v.loaderData,K=v.blockers;K.size>0&&(K=new Map(K),K.forEach((q,Ce)=>K.set(Ce,jr)));let we=T===!0||v.navigation.formMethod!=null&&st(v.navigation.formMethod)&&((I=y.state)==null?void 0:I._isRedirect)!==!0;a&&(i=a,a=void 0),he||R===fe.Pop||(R===fe.Push?e.history.push(y,y.state):R===fe.Replace&&e.history.replace(y,y.state));let B;if(R===fe.Pop){let q=X.get(v.location.pathname);q&&q.has(y.pathname)?B={currentLocation:v.location,nextLocation:y}:X.has(y.pathname)&&(B={currentLocation:y,nextLocation:v.location})}else if(O){let q=X.get(v.location.pathname);q?q.add(y.pathname):(q=new Set([y.pathname]),X.set(v.location.pathname,q)),B={currentLocation:v.location,nextLocation:y}}Ve(de({},w,{actionData:U,loaderData:F,historyAction:R,location:y,initialized:!0,navigation:Ri,revalidation:"idle",restoreScrollPosition:Qu(y,w.matches||v.matches),preventScrollReset:we,blockers:K}),{viewTransitionOpts:B,flushSync:W===!0}),R=fe.Pop,T=!1,O=!1,he=!1,Je=!1,Fn=[],Ft=[]}async function Fu(y,w){if(typeof y=="number"){e.history.go(y);return}let k=Na(v.location,v.matches,u,s.v7_prependBasename,y,s.v7_relativeSplatPath,w==null?void 0:w.fromRouteId,w==null?void 0:w.relative),{path:j,submission:I,error:W}=lc(s.v7_normalizeFormMethod,!1,k,w),A=v.location,U=hl(v.location,j,w&&w.state);U=de({},U,e.history.encodeLocation(U));let F=w&&w.replace!=null?w.replace:void 0,K=fe.Push;F===!0?K=fe.Replace:F===!1||I!=null&&st(I.formMethod)&&I.formAction===v.location.pathname+v.location.search&&(K=fe.Replace);let we=w&&"preventScrollReset"in w?w.preventScrollReset===!0:void 0,B=(w&&w.unstable_flushSync)===!0,q=Vu({currentLocation:A,nextLocation:U,historyAction:K});if(q){Cl(q,{state:"blocked",location:U,proceed(){Cl(q,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),Fu(y,w)},reset(){let Ce=new Map(v.blockers);Ce.set(q,jr),Ve({blockers:Ce})}});return}return await vn(K,U,{submission:I,pendingError:W,preventScrollReset:we,replace:w&&w.replace,enableViewTransition:w&&w.unstable_viewTransition,flushSync:B})}function cp(){if(Xo(),Ve({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){vn(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}vn(R||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function vn(y,w,k){z&&z.abort(),z=null,R=y,he=(k&&k.startUninterruptedRevalidation)===!0,wp(v.location,v.matches),T=(k&&k.preventScrollReset)===!0,O=(k&&k.enableViewTransition)===!0;let j=a||i,I=k&&k.overrideNavigation,W=bn(j,w,u),A=(k&&k.flushSync)===!0;if(!W){let Ce=qe(404,{pathname:w.pathname}),{matches:Ze,route:xe}=dc(j);Go(),wr(w,{matches:Ze,loaderData:{},errors:{[xe.id]:Ce}},{flushSync:A});return}if(v.initialized&&!Je&&zv(v.location,w)&&!(k&&k.submission&&st(k.submission.formMethod))){wr(w,{matches:W},{flushSync:A});return}z=new AbortController;let U=Mr(e.history,w,z.signal,k&&k.submission),F,K;if(k&&k.pendingError)K={[Jr(W).route.id]:k.pendingError};else if(k&&k.submission&&st(k.submission.formMethod)){let Ce=await dp(U,w,k.submission,W,{replace:k.replace,flushSync:A});if(Ce.shortCircuited)return;F=Ce.pendingActionData,K=Ce.pendingActionError,I=Ni(w,k.submission),A=!1,U=new Request(U.url,{signal:U.signal})}let{shortCircuited:we,loaderData:B,errors:q}=await fp(U,w,W,I,k&&k.submission,k&&k.fetcherSubmission,k&&k.replace,k&&k.initialHydration===!0,A,F,K);we||(z=null,wr(w,de({matches:W},F?{actionData:F}:{},{loaderData:B,errors:q})))}async function dp(y,w,k,j,I){I===void 0&&(I={}),Xo();let W=Uv(w,k);Ve({navigation:W},{flushSync:I.flushSync===!0});let A,U=Ta(j,w);if(!U.route.action&&!U.route.lazy)A={type:se.error,error:qe(405,{method:y.method,pathname:w.pathname,routeId:U.route.id})};else if(A=await Dr("action",y,U,j,o,l,u,s.v7_relativeSplatPath),y.signal.aborted)return{shortCircuited:!0};if(_n(A)){let F;return I&&I.replace!=null?F=I.replace:F=A.location===v.location.pathname+v.location.search,await xr(v,A,{submission:k,replace:F}),{shortCircuited:!0}}if(er(A)){let F=Jr(j,U.route.id);return(I&&I.replace)!==!0&&(R=fe.Push),{pendingActionData:{},pendingActionError:{[F.route.id]:A.error}}}if(kn(A))throw qe(400,{type:"defer-action"});return{pendingActionData:{[U.route.id]:A.data}}}async function fp(y,w,k,j,I,W,A,U,F,K,we){let B=j||Ni(w,I),q=I||W||hc(B),Ce=a||i,[Ze,xe]=oc(e.history,v,k,q,w,s.v7_partialHydration&&U===!0,Je,Fn,Ft,_e,ee,G,Ce,u,K,we);if(Go(Z=>!(k&&k.some(le=>le.route.id===Z))||Ze&&Ze.some(le=>le.route.id===Z)),H=++D,Ze.length===0&&xe.length===0){let Z=Au();return wr(w,de({matches:k,loaderData:{},errors:we||null},K?{actionData:K}:{},Z?{fetchers:new Map(v.fetchers)}:{}),{flushSync:F}),{shortCircuited:!0}}if(!he&&(!s.v7_partialHydration||!U)){xe.forEach(le=>{let mt=v.fetchers.get(le.key),Rl=zr(void 0,mt?mt.data:void 0);v.fetchers.set(le.key,Rl)});let Z=K||v.actionData;Ve(de({navigation:B},Z?Object.keys(Z).length===0?{actionData:null}:{actionData:Z}:{},xe.length>0?{fetchers:new Map(v.fetchers)}:{}),{flushSync:F})}xe.forEach(Z=>{re.has(Z.key)&&Ht(Z.key),Z.controller&&re.set(Z.key,Z.controller)});let On=()=>xe.forEach(Z=>Ht(Z.key));z&&z.signal.addEventListener("abort",On);let{results:Jo,loaderResults:Un,fetcherResults:At}=await Ou(v.matches,k,Ze,xe,y);if(y.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",On),xe.forEach(Z=>re.delete(Z.key));let yn=fc(Jo);if(yn){if(yn.idx>=Ze.length){let Z=xe[yn.idx-Ze.length].key;G.add(Z)}return await xr(v,yn.result,{replace:A}),{shortCircuited:!0}}let{loaderData:Zo,errors:qo}=sc(v,k,Ze,Un,we,xe,At,ot);ot.forEach((Z,le)=>{Z.subscribe(mt=>{(mt||Z.done)&&ot.delete(le)})});let bo=Au(),Hn=$u(H),Pl=bo||Hn||xe.length>0;return de({loaderData:Zo,errors:qo},Pl?{fetchers:new Map(v.fetchers)}:{})}function pp(y,w,k,j){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");re.has(y)&&Ht(y);let I=(j&&j.unstable_flushSync)===!0,W=a||i,A=Na(v.location,v.matches,u,s.v7_prependBasename,k,s.v7_relativeSplatPath,w,j==null?void 0:j.relative),U=bn(W,A,u);if(!U){Sr(y,w,qe(404,{pathname:A}),{flushSync:I});return}let{path:F,submission:K,error:we}=lc(s.v7_normalizeFormMethod,!0,A,j);if(we){Sr(y,w,we,{flushSync:I});return}let B=Ta(U,F);if(T=(j&&j.preventScrollReset)===!0,K&&st(K.formMethod)){hp(y,w,F,B,U,I,K);return}ee.set(y,{routeId:w,path:F}),mp(y,w,F,B,U,I,K)}async function hp(y,w,k,j,I,W,A){if(Xo(),ee.delete(y),!j.route.action&&!j.route.lazy){let le=qe(405,{method:A.formMethod,pathname:k,routeId:w});Sr(y,w,le,{flushSync:W});return}let U=v.fetchers.get(y);Ut(y,Hv(A,U),{flushSync:W});let F=new AbortController,K=Mr(e.history,k,F.signal,A);re.set(y,F);let we=D,B=await Dr("action",K,j,I,o,l,u,s.v7_relativeSplatPath);if(K.signal.aborted){re.get(y)===F&&re.delete(y);return}if(s.v7_fetcherPersist&&_e.has(y)){if(_n(B)||er(B)){Ut(y,Vt(void 0));return}}else{if(_n(B))if(re.delete(y),H>we){Ut(y,Vt(void 0));return}else return G.add(y),Ut(y,zr(A)),xr(v,B,{fetcherSubmission:A});if(er(B)){Sr(y,w,B.error);return}}if(kn(B))throw qe(400,{type:"defer-action"});let q=v.navigation.location||v.location,Ce=Mr(e.history,q,F.signal),Ze=a||i,xe=v.navigation.state!=="idle"?bn(Ze,v.navigation.location,u):v.matches;V(xe,"Didn't find any matches after fetcher action");let On=++D;$.set(y,On);let Jo=zr(A,B.data);v.fetchers.set(y,Jo);let[Un,At]=oc(e.history,v,xe,A,q,!1,Je,Fn,Ft,_e,ee,G,Ze,u,{[j.route.id]:B.data},void 0);At.filter(le=>le.key!==y).forEach(le=>{let mt=le.key,Rl=v.fetchers.get(mt),Sp=zr(void 0,Rl?Rl.data:void 0);v.fetchers.set(mt,Sp),re.has(mt)&&Ht(mt),le.controller&&re.set(mt,le.controller)}),Ve({fetchers:new Map(v.fetchers)});let yn=()=>At.forEach(le=>Ht(le.key));F.signal.addEventListener("abort",yn);let{results:Zo,loaderResults:qo,fetcherResults:bo}=await Ou(v.matches,xe,Un,At,Ce);if(F.signal.aborted)return;F.signal.removeEventListener("abort",yn),$.delete(y),re.delete(y),At.forEach(le=>re.delete(le.key));let Hn=fc(Zo);if(Hn){if(Hn.idx>=Un.length){let le=At[Hn.idx-Un.length].key;G.add(le)}return xr(v,Hn.result)}let{loaderData:Pl,errors:Z}=sc(v,v.matches,Un,qo,void 0,At,bo,ot);if(v.fetchers.has(y)){let le=Vt(B.data);v.fetchers.set(y,le)}$u(On),v.navigation.state==="loading"&&On>H?(V(R,"Expected pending action"),z&&z.abort(),wr(v.navigation.location,{matches:xe,loaderData:Pl,errors:Z,fetchers:new Map(v.fetchers)})):(Ve({errors:Z,loaderData:cc(v.loaderData,Pl,xe,Z),fetchers:new Map(v.fetchers)}),Je=!1)}async function mp(y,w,k,j,I,W,A){let U=v.fetchers.get(y);Ut(y,zr(A,U?U.data:void 0),{flushSync:W});let F=new AbortController,K=Mr(e.history,k,F.signal);re.set(y,F);let we=D,B=await Dr("loader",K,j,I,o,l,u,s.v7_relativeSplatPath);if(kn(B)&&(B=await Jf(B,K.signal,!0)||B),re.get(y)===F&&re.delete(y),!K.signal.aborted){if(_e.has(y)){Ut(y,Vt(void 0));return}if(_n(B))if(H>we){Ut(y,Vt(void 0));return}else{G.add(y),await xr(v,B);return}if(er(B)){Sr(y,w,B.error);return}V(!kn(B),"Unhandled fetcher deferred data"),Ut(y,Vt(B.data))}}async function xr(y,w,k){let{submission:j,fetcherSubmission:I,replace:W}=k===void 0?{}:k;w.revalidate&&(Je=!0);let A=hl(y.location,w.location,{_isRedirect:!0});if(V(A,"Expected a location on the redirect navigation"),n){let q=!1;if(w.reloadDocument)q=!0;else if(Kf.test(w.location)){const Ce=e.history.createURL(w.location);q=Ce.origin!==t.location.origin||sn(Ce.pathname,u)==null}if(q){W?t.location.replace(w.location):t.location.assign(w.location);return}}z=null;let U=W===!0?fe.Replace:fe.Push,{formMethod:F,formAction:K,formEncType:we}=y.navigation;!j&&!I&&F&&K&&we&&(j=hc(y.navigation));let B=j||I;if(Pv.has(w.status)&&B&&st(B.formMethod))await vn(U,A,{submission:de({},B,{formAction:w.location}),preventScrollReset:T});else{let q=Ni(A,j);await vn(U,A,{overrideNavigation:q,fetcherSubmission:I,preventScrollReset:T})}}async function Ou(y,w,k,j,I){let W=await Promise.all([...k.map(F=>Dr("loader",I,F,w,o,l,u,s.v7_relativeSplatPath)),...j.map(F=>F.matches&&F.match&&F.controller?Dr("loader",Mr(e.history,F.path,F.controller.signal),F.match,F.matches,o,l,u,s.v7_relativeSplatPath):{type:se.error,error:qe(404,{pathname:F.path})})]),A=W.slice(0,k.length),U=W.slice(k.length);return await Promise.all([pc(y,k,A,A.map(()=>I.signal),!1,v.loaderData),pc(y,j.map(F=>F.match),U,j.map(F=>F.controller?F.controller.signal:null),!0)]),{results:W,loaderResults:A,fetcherResults:U}}function Xo(){Je=!0,Fn.push(...Go()),ee.forEach((y,w)=>{re.has(w)&&(Ft.push(w),Ht(w))})}function Ut(y,w,k){k===void 0&&(k={}),v.fetchers.set(y,w),Ve({fetchers:new Map(v.fetchers)},{flushSync:(k&&k.flushSync)===!0})}function Sr(y,w,k,j){j===void 0&&(j={});let I=Jr(v.matches,w);_l(y),Ve({errors:{[I.route.id]:k},fetchers:new Map(v.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function Uu(y){return s.v7_fetcherPersist&&(ht.set(y,(ht.get(y)||0)+1),_e.has(y)&&_e.delete(y)),v.fetchers.get(y)||Rv}function _l(y){let w=v.fetchers.get(y);re.has(y)&&!(w&&w.state==="loading"&&$.has(y))&&Ht(y),ee.delete(y),$.delete(y),G.delete(y),_e.delete(y),v.fetchers.delete(y)}function vp(y){if(s.v7_fetcherPersist){let w=(ht.get(y)||0)-1;w<=0?(ht.delete(y),_e.add(y)):ht.set(y,w)}else _l(y);Ve({fetchers:new Map(v.fetchers)})}function Ht(y){let w=re.get(y);V(w,"Expected fetch controller: "+y),w.abort(),re.delete(y)}function Hu(y){for(let w of y){let k=Uu(w),j=Vt(k.data);v.fetchers.set(w,j)}}function Au(){let y=[],w=!1;for(let k of G){let j=v.fetchers.get(k);V(j,"Expected fetcher: "+k),j.state==="loading"&&(G.delete(k),y.push(k),w=!0)}return Hu(y),w}function $u(y){let w=[];for(let[k,j]of $)if(j0}function yp(y,w){let k=v.blockers.get(y)||jr;return Me.get(y)!==w&&Me.set(y,w),k}function Bu(y){v.blockers.delete(y),Me.delete(y)}function Cl(y,w){let k=v.blockers.get(y)||jr;V(k.state==="unblocked"&&w.state==="blocked"||k.state==="blocked"&&w.state==="blocked"||k.state==="blocked"&&w.state==="proceeding"||k.state==="blocked"&&w.state==="unblocked"||k.state==="proceeding"&&w.state==="unblocked","Invalid blocker state transition: "+k.state+" -> "+w.state);let j=new Map(v.blockers);j.set(y,w),Ve({blockers:j})}function Vu(y){let{currentLocation:w,nextLocation:k,historyAction:j}=y;if(Me.size===0)return;Me.size>1&&Dn(!1,"A router only supports one blocker at a time");let I=Array.from(Me.entries()),[W,A]=I[I.length-1],U=v.blockers.get(W);if(!(U&&U.state==="proceeding")&&A({currentLocation:w,nextLocation:k,historyAction:j}))return W}function Go(y){let w=[];return ot.forEach((k,j)=>{(!y||y(j))&&(k.cancel(),w.push(j),ot.delete(j))}),w}function gp(y,w,k){if(m=y,x=w,S=k||null,!g&&v.navigation===Ri){g=!0;let j=Qu(v.location,v.matches);j!=null&&Ve({restoreScrollPosition:j})}return()=>{m=null,x=null,S=null}}function Wu(y,w){return S&&S(y,w.map(j=>rv(j,v.loaderData)))||y.key}function wp(y,w){if(m&&x){let k=Wu(y,w);m[k]=x()}}function Qu(y,w){if(m){let k=Wu(y,w),j=m[k];if(typeof j=="number")return j}return null}function xp(y){o={},a=Pa(y,l,void 0,o)}return L={get basename(){return u},get future(){return s},get state(){return v},get routes(){return i},get window(){return t},initialize:ap,subscribe:sp,enableScrollRestoration:gp,navigate:Fu,fetch:pp,revalidate:cp,createHref:y=>e.history.createHref(y),encodeLocation:y=>e.history.encodeLocation(y),getFetcher:Uu,deleteFetcher:vp,dispose:up,getBlocker:yp,deleteBlocker:Bu,_internalFetchControllers:re,_internalActiveDeferreds:ot,_internalSetRoutes:xp},L}function Tv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Na(e,t,n,r,l,o,i,a){let u,s;if(i){u=[];for(let p of t)if(u.push(p),p.route.id===i){s=p;break}}else u=t,s=t[t.length-1];let c=ju(l||".",Tu(u,o),sn(e.pathname,n)||e.pathname,a==="path");return l==null&&(c.search=e.search,c.hash=e.hash),(l==null||l===""||l===".")&&s&&s.route.index&&!Mu(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Lt([n,c.pathname])),Mn(c)}function lc(e,t,n,r){if(!r||!Tv(r))return{path:n};if(r.formMethod&&!Ov(r.formMethod))return{path:n,error:qe(405,{method:r.formMethod})};let l=()=>({path:n,error:qe(400,{type:"invalid-body"})}),o=r.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),a=Gf(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!st(i))return l();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((S,x)=>{let[g,P]=x;return""+S+g+"="+P+` -`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!st(i))return l();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return l()}}}V(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=La(r.formData),s=r.formData;else if(r.body instanceof FormData)u=La(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=uc(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=uc(u)}catch{return l()}let c={formMethod:i,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(st(c.formMethod))return{path:n,submission:c};let p=It(n);return t&&p.search&&Mu(p.search)&&u.append("index",""),p.search="?"+u,{path:Mn(p),submission:c}}function jv(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function oc(e,t,n,r,l,o,i,a,u,s,c,p,m,S,x,g){let P=g?Object.values(g)[0]:x?Object.values(x)[0]:void 0,f=e.createURL(t.location),d=e.createURL(l),h=g?Object.keys(g)[0]:void 0,L=jv(n,h).filter((R,T)=>{let{route:z}=R;if(z.lazy)return!0;if(z.loader==null)return!1;if(o)return z.loader.hydrate?!0:t.loaderData[z.id]===void 0&&(!t.errors||t.errors[z.id]===void 0);if(Dv(t.loaderData,t.matches[T],R)||a.some(ve=>ve===R.route.id))return!0;let O=t.matches[T],X=R;return ic(R,de({currentUrl:f,currentParams:O.params,nextUrl:d,nextParams:X.params},r,{actionResult:P,defaultShouldRevalidate:i||f.pathname+f.search===d.pathname+d.search||f.search!==d.search||Xf(O,X)}))}),v=[];return c.forEach((R,T)=>{if(o||!n.some(he=>he.route.id===R.routeId)||s.has(T))return;let z=bn(m,R.path,S);if(!z){v.push({key:T,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(T),X=Ta(z,R.path),ve=!1;p.has(T)?ve=!1:u.includes(T)?ve=!0:O&&O.state!=="idle"&&O.data===void 0?ve=i:ve=ic(X,de({currentUrl:f,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:n[n.length-1].params},r,{actionResult:P,defaultShouldRevalidate:i})),ve&&v.push({key:T,routeId:R.routeId,path:R.path,matches:z,match:X,controller:new AbortController})}),[L,v]}function Dv(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function Xf(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ic(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function ac(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];V(l,"No route found in manifest");let o={};for(let i in r){let u=l[i]!==void 0&&i!=="hasErrorBoundary";Dn(!u,'Route "'+l.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!tv.has(i)&&(o[i]=r[i])}Object.assign(l,o),Object.assign(l,de({},t(l),{lazy:void 0}))}async function Dr(e,t,n,r,l,o,i,a,u){u===void 0&&(u={});let s,c,p,m=g=>{let P,f=new Promise((d,h)=>P=h);return p=()=>P(),t.signal.addEventListener("abort",p),Promise.race([g({request:t,params:n.params,context:u.requestContext}),f])};try{let g=n.route[e];if(n.route.lazy)if(g){let P,f=await Promise.all([m(g).catch(d=>{P=d}),ac(n.route,o,l)]);if(P)throw P;c=f[0]}else if(await ac(n.route,o,l),g=n.route[e],g)c=await m(g);else if(e==="action"){let P=new URL(t.url),f=P.pathname+P.search;throw qe(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:se.data,data:void 0};else if(g)c=await m(g);else{let P=new URL(t.url),f=P.pathname+P.search;throw qe(404,{pathname:f})}V(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(g){s=se.error,c=g}finally{p&&t.signal.removeEventListener("abort",p)}if(Fv(c)){let g=c.status;if(Cv.has(g)){let f=c.headers.get("Location");if(V(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Kf.test(f))f=Na(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,f,a);else if(!u.isStaticRequest){let d=new URL(t.url),h=f.startsWith("//")?new URL(d.protocol+f):new URL(f),E=sn(h.pathname,i)!=null;h.origin===d.origin&&E&&(f=h.pathname+h.search+h.hash)}if(u.isStaticRequest)throw c.headers.set("Location",f),c;return{type:se.redirect,status:g,location:f,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:s===se.error?se.error:se.data,response:c};let P;try{let f=c.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?P=await c.json():P=await c.text()}catch(f){return{type:se.error,error:f}}return s===se.error?{type:s,error:new Du(g,c.statusText,P),headers:c.headers}:{type:se.data,data:P,statusCode:c.status,headers:c.headers}}if(s===se.error)return{type:s,error:c};if(Iv(c)){var S,x;return{type:se.deferred,deferredData:c,statusCode:(S=c.init)==null?void 0:S.status,headers:((x=c.init)==null?void 0:x.headers)&&new Headers(c.init.headers)}}return{type:se.data,data:c}}function Mr(e,t,n,r){let l=e.createURL(Gf(t)).toString(),o={signal:n};if(r&&st(r.formMethod)){let{formMethod:i,formEncType:a}=r;o.method=i.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=La(r.formData):o.body=r.formData}return new Request(l,o)}function La(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function uc(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Mv(e,t,n,r,l){let o={},i=null,a,u=!1,s={};return n.forEach((c,p)=>{let m=t[p].route.id;if(V(!_n(c),"Cannot handle redirect results in processLoaderData"),er(c)){let S=Jr(e,m),x=c.error;r&&(x=Object.values(r)[0],r=void 0),i=i||{},i[S.route.id]==null&&(i[S.route.id]=x),o[m]=void 0,u||(u=!0,a=Wf(c.error)?c.error.status:500),c.headers&&(s[m]=c.headers)}else kn(c)?(l.set(m,c.deferredData),o[m]=c.deferredData.data):o[m]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[m]=c.headers)}),r&&(i=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:s}}function sc(e,t,n,r,l,o,i,a){let{loaderData:u,errors:s}=Mv(t,n,r,l,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function dc(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function qe(e,t){let{pathname:n,routeId:r,method:l,type:o}=t===void 0?{}:t,i="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(i="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(i="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",a='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new Du(e||500,i,new Error(a),!0)}function fc(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(_n(n))return{result:n,idx:t}}}function Gf(e){let t=typeof e=="string"?It(e):e;return Mn(de({},t,{hash:""}))}function zv(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function kn(e){return e.type===se.deferred}function er(e){return e.type===se.error}function _n(e){return(e&&e.type)===se.redirect}function Iv(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Fv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ov(e){return _v.has(e.toLowerCase())}function st(e){return Ev.has(e.toLowerCase())}async function pc(e,t,n,r,l,o){for(let i=0;ip.route.id===u.route.id),c=s!=null&&!Xf(s,u)&&(o&&o[u.route.id])!==void 0;if(kn(a)&&(l||c)){let p=r[i];V(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await Jf(a,p,l).then(m=>{m&&(n[i]=m||n[i])})}}}async function Jf(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:se.data,data:e.deferredData.unwrappedData}}catch(l){return{type:se.error,error:l}}return{type:se.data,data:e.deferredData.data}}}function Mu(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ta(e,t){let n=typeof t=="string"?It(t).search:t.search;if(e[e.length-1].route.index&&Mu(n||""))return e[e.length-1];let r=Vf(e);return r[r.length-1]}function hc(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:o,json:i}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Ni(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Uv(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function zr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Hv(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Vt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Av(e,t){try{let n=e.sessionStorage.getItem(Yf);if(n){let r=JSON.parse(n);for(let[l,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(l,new Set(o||[]))}}catch{}}function $v(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Yf,JSON.stringify(n))}catch(r){Dn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.21.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),C.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let p=ju(s,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Lt([t,p.pathname])),(c.replace?r.replace:r.push)(p,c.state,c)},[t,r,i,o,e])}const Qv=C.createContext(null);function Kv(e){let t=C.useContext(mn).outlet;return t&&C.createElement(Qv.Provider,{value:e},t)}function Yo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(hn),{matches:l}=C.useContext(mn),{pathname:o}=kl(),i=JSON.stringify(Tu(l,r.v7_relativeSplatPath));return C.useMemo(()=>ju(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Yv(e,t,n,r){El()||V(!1);let{navigator:l}=C.useContext(hn),{matches:o}=C.useContext(mn),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let s=kl(),c;if(t){var p;let P=typeof t=="string"?It(t):t;u==="/"||(p=P.pathname)!=null&&p.startsWith(u)||V(!1),c=P}else c=s;let m=c.pathname||"/",S=u==="/"?m:m.slice(u.length)||"/",x=bn(e,{pathname:S}),g=qv(x&&x.map(P=>Object.assign({},P,{params:Object.assign({},a,P.params),pathname:Lt([u,l.encodeLocation?l.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?u:Lt([u,l.encodeLocation?l.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),o,n,r);return t&&g?C.createElement(Ko.Provider,{value:{location:ml({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:fe.Pop}},g):g}function Xv(){let e=n0(),t=Wf(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)"},o=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:l},n):null,o)}const Gv=C.createElement(Xv,null);class Jv extends C.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?C.createElement(mn.Provider,{value:this.props.routeContext},C.createElement(Zf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zv(e){let{routeContext:t,match:n,children:r}=e,l=C.useContext(Sl);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(mn.Provider,{value:t},r)}function qv(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,a=(l=n)==null?void 0:l.errors;if(a!=null){let c=i.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id]));c>=0||V(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((c,p,m)=>{let S,x=!1,g=null,P=null;n&&(S=a&&p.route.id?a[p.route.id]:void 0,g=p.route.errorElement||Gv,u&&(s<0&&m===0?(l0("route-fallback",!1),x=!0,P=null):s===m&&(x=!0,P=p.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,m+1)),d=()=>{let h;return S?h=g:x?h=P:p.route.Component?h=C.createElement(p.route.Component,null):p.route.element?h=p.route.element:h=c,C.createElement(Zv,{match:p,routeContext:{outlet:c,matches:f,isDataRoute:n!=null},children:h})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?C.createElement(Jv,{location:n.location,revalidation:n.revalidation,component:g,error:S,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):d()},null)}var bf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bf||{}),No=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}(No||{});function bv(e){let t=C.useContext(Sl);return t||V(!1),t}function e0(e){let t=C.useContext(zu);return t||V(!1),t}function t0(e){let t=C.useContext(mn);return t||V(!1),t}function ep(e){let t=t0(),n=t.matches[t.matches.length-1];return n.route.id||V(!1),n.route.id}function n0(){var e;let t=C.useContext(Zf),n=e0(No.UseRouteError),r=ep(No.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function r0(){let{router:e}=bv(bf.UseNavigateStable),t=ep(No.UseNavigateStable),n=C.useRef(!1);return qf(()=>{n.current=!0}),C.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,ml({fromRouteId:t},o)))},[e,t])}const mc={};function l0(e,t,n){!t&&!mc[e]&&(mc[e]=!0)}function o0(e){return Kv(e.context)}function i0(e){let{basename:t="/",children:n=null,location:r,navigationType:l=fe.Pop,navigator:o,static:i=!1,future:a}=e;El()&&V(!1);let u=t.replace(/^\/*/,"/"),s=C.useMemo(()=>({basename:u,navigator:o,static:i,future:ml({v7_relativeSplatPath:!1},a)}),[u,a,o,i]);typeof r=="string"&&(r=It(r));let{pathname:c="/",search:p="",hash:m="",state:S=null,key:x="default"}=r,g=C.useMemo(()=>{let P=sn(c,u);return P==null?null:{location:{pathname:P,search:p,hash:m,state:S,key:x},navigationType:l}},[u,c,p,m,S,x,l]);return g==null?null:C.createElement(hn.Provider,{value:s},C.createElement(Ko.Provider,{children:n,value:g}))}new Promise(()=>{});function a0(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:C.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.21.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function u0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s0(e,t){return e.button===0&&(!t||t==="_self")&&!u0(e)}const c0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],d0=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function f0(e,t){return Lv({basename:t==null?void 0:t.basename,future:hr({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:qm({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||p0(),routes:e,mapRouteProperties:a0,window:t==null?void 0:t.window}).initialize()}function p0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=hr({},t,{errors:h0(t.errors)})),t}function h0(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,l]of t)if(l&&l.__type==="RouteErrorResponse")n[r]=new Du(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let o=window[l.__subType];if(typeof o=="function")try{let i=new o(l.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let o=new Error(l.message);o.stack="",n[r]=o}}else n[r]=l;return n}const np=C.createContext({isTransitioning:!1}),m0=C.createContext(new Map),v0="startTransition",vc=Ap[v0],y0="flushSync",yc=Jm[y0];function g0(e){vc?vc(e):e()}function Ir(e){yc?yc(e):e()}class w0{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function x0(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=C.useState(n.state),[i,a]=C.useState(),[u,s]=C.useState({isTransitioning:!1}),[c,p]=C.useState(),[m,S]=C.useState(),[x,g]=C.useState(),P=C.useRef(new Map),{v7_startTransition:f}=r||{},d=C.useCallback(R=>{f?g0(R):R()},[f]),h=C.useCallback((R,T)=>{let{deletedFetchers:z,unstable_flushSync:O,unstable_viewTransitionOpts:X}=T;z.forEach(he=>P.current.delete(he)),R.fetchers.forEach((he,Je)=>{he.data!==void 0&&P.current.set(Je,he.data)});let ve=n.window==null||typeof n.window.document.startViewTransition!="function";if(!X||ve){O?Ir(()=>o(R)):d(()=>o(R));return}if(O){Ir(()=>{m&&(c&&c.resolve(),m.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:X.currentLocation,nextLocation:X.nextLocation})});let he=n.window.document.startViewTransition(()=>{Ir(()=>o(R))});he.finished.finally(()=>{Ir(()=>{p(void 0),S(void 0),a(void 0),s({isTransitioning:!1})})}),Ir(()=>S(he));return}m?(c&&c.resolve(),m.skipTransition(),g({state:R,currentLocation:X.currentLocation,nextLocation:X.nextLocation})):(a(R),s({isTransitioning:!0,flushSync:!1,currentLocation:X.currentLocation,nextLocation:X.nextLocation}))},[n.window,m,c,P,d]);C.useLayoutEffect(()=>n.subscribe(h),[n,h]),C.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new w0)},[u]),C.useEffect(()=>{if(c&&i&&n.window){let R=i,T=c.promise,z=n.window.document.startViewTransition(async()=>{d(()=>o(R)),await T});z.finished.finally(()=>{p(void 0),S(void 0),a(void 0),s({isTransitioning:!1})}),S(z)}},[d,i,c,n.window]),C.useEffect(()=>{c&&i&&l.location.key===i.location.key&&c.resolve()},[c,m,l.location,i]),C.useEffect(()=>{!u.isTransitioning&&x&&(a(x.state),s({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),g(void 0))},[u.isTransitioning,x]),C.useEffect(()=>{},[]);let E=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,T,z)=>n.navigate(R,{state:T,preventScrollReset:z==null?void 0:z.preventScrollReset}),replace:(R,T,z)=>n.navigate(R,{replace:!0,state:T,preventScrollReset:z==null?void 0:z.preventScrollReset})}),[n]),L=n.basename||"/",v=C.useMemo(()=>({router:n,navigator:E,static:!1,basename:L}),[n,E,L]);return C.createElement(C.Fragment,null,C.createElement(Sl.Provider,{value:v},C.createElement(zu.Provider,{value:l},C.createElement(m0.Provider,{value:P.current},C.createElement(np.Provider,{value:u},C.createElement(i0,{basename:L,location:l.location,navigationType:l.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},l.initialized||n.future.v7_partialHydration?C.createElement(S0,{routes:n.routes,future:n.future,state:l}):t))))),null)}function S0(e){let{routes:t,future:n,state:r}=e;return Yv(t,void 0,r,n)}const E0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",k0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ja=C.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:p}=t,m=tp(t,c0),{basename:S}=C.useContext(hn),x,g=!1;if(typeof s=="string"&&k0.test(s)&&(x=s,E0))try{let h=new URL(window.location.href),E=s.startsWith("//")?new URL(h.protocol+s):new URL(s),L=sn(E.pathname,S);E.origin===h.origin&&L!=null?s=L+E.search+E.hash:g=!0}catch{}let P=Bv(s,{relative:l}),f=C0(s,{replace:i,state:a,target:u,preventScrollReset:c,relative:l,unstable_viewTransition:p});function d(h){r&&r(h),h.defaultPrevented||f(h)}return C.createElement("a",hr({},m,{href:x||P,onClick:g||o?r:d,ref:n,target:u}))}),Li=C.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:o="",end:i=!1,style:a,to:u,unstable_viewTransition:s,children:c}=t,p=tp(t,d0),m=Yo(u,{relative:p.relative}),S=kl(),x=C.useContext(zu),{navigator:g}=C.useContext(hn),P=x!=null&&P0(m)&&s===!0,f=g.encodeLocation?g.encodeLocation(m).pathname:m.pathname,d=S.pathname,h=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;l||(d=d.toLowerCase(),h=h?h.toLowerCase():null,f=f.toLowerCase());const E=f!=="/"&&f.endsWith("/")?f.length-1:f.length;let L=d===f||!i&&d.startsWith(f)&&d.charAt(E)==="/",v=h!=null&&(h===f||!i&&h.startsWith(f)&&h.charAt(f.length)==="/"),R={isActive:L,isPending:v,isTransitioning:P},T=L?r:void 0,z;typeof o=="function"?z=o(R):z=[o,L?"active":null,v?"pending":null,P?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(R):a;return C.createElement(ja,hr({},p,{"aria-current":T,className:z,ref:n,style:O,to:u,unstable_viewTransition:s}),typeof c=="function"?c(R):c)});var Da;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Da||(Da={}));var gc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gc||(gc={}));function _0(e){let t=C.useContext(Sl);return t||V(!1),t}function C0(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:a}=t===void 0?{}:t,u=Vv(),s=kl(),c=Yo(e,{relative:i});return C.useCallback(p=>{if(s0(p,n)){p.preventDefault();let m=r!==void 0?r:Mn(s)===Mn(c);u(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:a})}},[s,u,c,r,l,n,e,o,i,a])}function P0(e,t){t===void 0&&(t={});let n=C.useContext(np);n==null&&V(!1);let{basename:r}=_0(Da.useViewTransitionState),l=Yo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=sn(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=sn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ra(l.pathname,i)!=null||Ra(l.pathname,o)!=null}const Rt="/expenses-react-app/",R0="_container_1wy3b_1",N0={container:R0},rp=({children:e})=>_.jsx("div",{className:N0.container,children:e}),L0="_menu_1czut_1",yt={menu:L0,"menu-link":"_menu-link_1czut_6","link-active":"_link-active_1czut_12"},T0=()=>_.jsxs("ul",{className:yt.menu,children:[_.jsx("li",{children:_.jsx(Li,{to:Rt,className:({isActive:e})=>e?`${yt["menu-link"]} ${yt["link-active"]}`:yt["menu-link"],end:!0,children:"Home"})}),_.jsx("li",{children:_.jsx(Li,{to:`${Rt}login`,className:({isActive:e})=>e?`${yt["menu-link"]} ${yt["link-active"]}`:yt["menu-link"],children:"Log In"})}),_.jsx("li",{children:_.jsx(Li,{to:`${Rt}register`,className:({isActive:e})=>e?`${yt["menu-link"]} ${yt["link-active"]}`:yt["menu-link"],children:"Sign Up"})})]}),j0="_header_l212f_1",wc={header:j0,"header-body":"_header-body_l212f_5"},D0="/expenses-react-app/assets/logo-HTwwoxjU.png",M0="_brand_1cqmy_1",Ti={brand:M0,"brand-logo":"_brand-logo_1cqmy_6","brand-name":"_brand-name_1cqmy_10"},z0=()=>_.jsxs("div",{className:Ti.brand,children:[_.jsx("img",{className:Ti["brand-logo"],src:D0,alt:"Expenses React App Logo"}),_.jsx("span",{className:Ti["brand-name"],children:"Expense Tracker"})]}),I0=()=>_.jsx("header",{className:wc.header,children:_.jsx(rp,{children:_.jsxs("div",{className:wc["header-body"],children:[_.jsx(z0,{}),_.jsx("nav",{children:_.jsx(T0,{})})]})})}),F0=()=>_.jsxs(_.Fragment,{children:[_.jsx(I0,{}),_.jsx("main",{style:{padding:"3rem 0"},children:_.jsx(rp,{children:_.jsx(o0,{})})})]}),Iu=()=>{const[e,t]=C.useState(!1),[n,r]=C.useState(null),l=C.useCallback(async(o,i)=>{t(!0),r(null);try{const a=await fetch(o.url,{method:o.method?o.method:"GET",headers:o.headers?o.headers:{},body:o.body?JSON.stringify(o.body):null});if(!a.ok)throw new Error("Request failed!");const u=await a.json();i(u)}catch(a){r(a.message||"Oops... Something went wrong!")}t(!1)},[]);return{isLoading:e,error:n,sendRequest:l}};class lp{constructor(t,n,r,l){Er(this,"id");Er(this,"title");Er(this,"amount");Er(this,"date");this.id=t,this.title=n,this.amount=r,this.date=l}}const O0="_card_14j3b_1",xc={card:O0},gr=({className:e,tagName:t,children:n})=>{const r=t||"div";return _.jsx(r,{className:e?`${xc.card} ${e}`:xc.card,children:n})},U0="_expenses_1q8us_1",Ee={expenses:U0,"expenses-item":"_expenses-item_1q8us_7","expenses-item-date":"_expenses-item-date_1q8us_15","expenses-item-month":"_expenses-item-month_1q8us_27","expenses-item-year":"_expenses-item-year_1q8us_36","expenses-item-day":"_expenses-item-day_1q8us_45","expenses-item-description":"_expenses-item-description_1q8us_53","expenses-item-title":"_expenses-item-title_1q8us_67","expenses-item-price":"_expenses-item-price_1q8us_81","expenses-item-delete-btn":"_expenses-item-delete-btn_1q8us_95","expenses-filter":"_expenses-filter_1q8us_117","expenses-filter-control":"_expenses-filter-control_1q8us_121","expenses-filter-label":"_expenses-filter-label_1q8us_127","expenses-filter-select":"_expenses-filter-select_1q8us_130","expenses-list":"_expenses-list_1q8us_136","expenses-list-fallback":"_expenses-list-fallback_1q8us_139"},H0=({selected:e,onSelectedItem:t})=>{const n=r=>{t(r.target.value)};return _.jsx("div",{className:Ee["expenses-filter"],children:_.jsxs("div",{className:Ee["expenses-filter-control"],children:[_.jsx("label",{className:Ee["expenses-filter-label"],children:"Filter by year"}),_.jsxs("select",{className:Ee["expenses-filter-select"],value:e,onChange:n,children:[_.jsx("option",{value:"none",children:"All"}),_.jsx("option",{value:"2023",children:"2023"}),_.jsx("option",{value:"2022",children:"2022"}),_.jsx("option",{value:"2021",children:"2021"}),_.jsx("option",{value:"2020",children:"2020"}),_.jsx("option",{value:"2019",children:"2019"})]})]})})},A0="_btn_awfba_1",Sc={btn:A0},cn=({id:e,className:t,type:n,disabled:r,onClick:l,children:o})=>_.jsx("button",{id:e,className:t?`${Sc.btn} ${t}`:Sc.btn,type:n||"button",onClick:l,disabled:r,children:o}),$0="_modal_uzx82_1",Et={modal:$0,"modal-active":"_modal-active_uzx82_16","modal-content":"_modal-content_uzx82_21","modal-title":"_modal-title_uzx82_28","modal-text":"_modal-text_uzx82_34","modal-actions":"_modal-actions_uzx82_37","modal-delete-btn":"_modal-delete-btn_uzx82_42"},B0=({title:e,text:t,onConfirm:n})=>{const r=C.useContext(Lu),l=o=>{(o.target.classList.contains(Et.modal)||o.target.id==="cancel-btn")&&r.removeModal()};return _.jsx("div",{className:r.isActive?`${Et.modal} ${Et["modal-active"]}`:Et.modal,onClick:l,children:_.jsxs(gr,{className:Et["modal-content"],children:[_.jsx("h2",{className:Et["modal-title"],children:e}),_.jsx("p",{className:Et["modal-text"],children:t}),_.jsxs("div",{className:Et["modal-actions"],children:[_.jsx(cn,{id:"cancel-btn",type:"button",onClick:l,children:"Close"}),_.jsx(cn,{id:"action-btn",className:Et["modal-delete-btn"],type:"button",onClick:n,children:"Delete"})]})]})})},V0=({date:e})=>{const t=e.toLocaleString("en-US",{month:"long"}),n=e.toLocaleString("en-US",{day:"2-digit"}),r=e.getFullYear();return _.jsxs("div",{className:Ee["expenses-item-date"],children:[_.jsx("span",{className:Ee["expenses-item-month"],children:t}),_.jsx("span",{className:Ee["expenses-item-year"],children:r}),_.jsx("span",{className:Ee["expenses-item-day"],children:n})]})},W0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='white'%20class='bi%20bi-trash3'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M6.5%201h3a.5.5%200%200%201%20.5.5v1H6v-1a.5.5%200%200%201%20.5-.5ZM11%202.5v-1A1.5%201.5%200%200%200%209.5%200h-3A1.5%201.5%200%200%200%205%201.5v1H2.506a.58.58%200%200%200-.01%200H1.5a.5.5%200%200%200%200%201h.538l.853%2010.66A2%202%200%200%200%204.885%2016h6.23a2%202%200%200%200%201.994-1.84l.853-10.66h.538a.5.5%200%200%200%200-1h-.995a.59.59%200%200%200-.01%200H11Zm1.958%201-.846%2010.58a1%201%200%200%201-.997.92h-6.23a1%201%200%200%201-.997-.92L3.042%203.5h9.916Zm-7.487%201a.5.5%200%200%201%20.528.47l.5%208.5a.5.5%200%200%201-.998.06L5%205.03a.5.5%200%200%201%20.47-.53Zm5.058%200a.5.5%200%200%201%20.47.53l-.5%208.5a.5.5%200%201%201-.998-.06l.5-8.5a.5.5%200%200%201%20.528-.47ZM8%204.5a.5.5%200%200%201%20.5.5v8.5a.5.5%200%200%201-1%200V5a.5.5%200%200%201%20.5-.5Z'/%3e%3c/svg%3e",Q0=({id:e,title:t,amount:n,date:r,onDelete:l})=>{const o=()=>{e&&l(e,t)};return _.jsxs(gr,{className:Ee["expenses-item"],tagName:"li",children:[_.jsx(V0,{date:r}),_.jsxs("div",{className:Ee["expenses-item-description"],children:[_.jsx("h2",{className:Ee["expenses-item-title"],children:t}),_.jsxs("span",{className:Ee["expenses-item-price"],children:["$",n]})]}),_.jsx(cn,{className:Ee["expenses-item-delete-btn"],type:"button",onClick:o,children:_.jsx("img",{src:W0,alt:"Delete"})})]})},K0=({items:e,onDeleteItem:t,isLoading:n,error:r})=>{const l=C.useContext(Lu),[o,i]=C.useState({expenseId:"",expenseTitle:""}),{sendRequest:a}=Iu(),u=(g,P)=>{l.displayModal(),i({expenseId:g,expenseTitle:P})},s=`Are you sure you want to delete expense "${o.expenseTitle}"?`,c="Delete expense",p=g=>{l.removeModal(),t(g)},m=async()=>{a({url:`https://react-expenses-30273-default-rtdb.europe-west1.firebasedatabase.app/expenses/${o.expenseId}.json`,method:"DELETE",headers:{"Content-Type":"application/json"}},p.bind(null,o.expenseId))};let S=_.jsx("h2",{className:Ee["expenses-list-fallback"],children:"Found no expenses."});e.length>0&&(S=_.jsx("ul",{className:Ee["expenses-list"],children:e.map(g=>_.jsx(Q0,{id:g.id,title:g.title,amount:g.amount,date:g.date,onDelete:u},g.id))}));let x=S;return n&&(x=_.jsx("h2",{className:Ee["expenses-list-fallback"],children:"Loading expenses..."})),r&&(x=_.jsx("h2",{className:Ee["expenses-list-fallback"],children:r})),_.jsxs(_.Fragment,{children:[Af.createPortal(_.jsx(B0,{title:c,text:s,onConfirm:m}),document.getElementById("modal-root")),x]})},Y0="_chart_d7lcp_1",Ar={chart:Y0,"chart-bar":"_chart-bar_d7lcp_22","chart-bar-inner":"_chart-bar-inner_d7lcp_34","chart-bar-fill":"_chart-bar-fill_d7lcp_45","chart-bar-label":"_chart-bar-label_d7lcp_50"},X0=({total:e,value:t,label:n})=>{let r="0%";return e>0&&(r=Math.round(t/e*100)+"%"),_.jsxs("div",{className:Ar["chart-bar"],children:[_.jsx("div",{className:Ar["chart-bar-inner"],children:_.jsx("div",{className:Ar["chart-bar-fill"],style:{height:r}})}),_.jsx("div",{className:Ar["chart-bar-label"],children:n})]})},G0=({dataPoints:e})=>{const n=e.map(r=>r.value).reduce((r,l)=>r+l,0);return _.jsx(gr,{className:Ar.chart,children:e.map(r=>_.jsx(X0,{value:r.value,total:n,label:r.label},r.label))})},Ec=[{label:"Jan",value:0},{label:"Feb",value:0},{label:"Mar",value:0},{label:"Apr",value:0},{label:"May",value:0},{label:"Jun",value:0},{label:"Jul",value:0},{label:"Aug",value:0},{label:"Sep",value:0},{label:"Oct",value:0},{label:"Nov",value:0},{label:"Dec",value:0}],J0=({expenses:e})=>{for(const t of e){const n=t.date.getMonth();Ec[n].value+=t.amount}return _.jsx(G0,{dataPoints:Ec})},Z0=({data:e,onDeleteItem:t,isLoading:n,error:r})=>{const[l,o]=C.useState("none"),i=u=>{o(u)};let a;return l!=="none"?a=e.filter(u=>u.date.getFullYear().toString()===l):a=e,_.jsxs(gr,{className:Ee.expenses,children:[_.jsx(H0,{selected:l,onSelectedItem:i}),_.jsx(J0,{expenses:a}),_.jsx(K0,{isLoading:n,error:r,items:a,onDeleteItem:t})]})},op={value:"",isValid:null},q0=(e,t)=>{switch(t.type){case"USER_INPUT":return{value:t.value,isValid:t.validate(t.value)};case"INPUT_BLUR":return{value:e.value,isValid:t.validate(e.value)};case"CLEAR_INPUT":return op;default:return{value:"",isValid:!1}}},ln=e=>{const[t,n]=C.useReducer(q0,op),r=i=>{n({type:"USER_INPUT",value:i.target.value,validate:e})},l=()=>{n({type:"INPUT_BLUR",validate:e})},o=()=>{n({type:"CLEAR_INPUT"})};return{value:t.value,isValid:t.isValid,inputChangeHandler:r,inputBlurHandler:l,inputClearHandler:o}},Ma={"new-expense":"_new-expense_9ikq6_1","new-expense-controls":"_new-expense-controls_9ikq6_8","new-expense-actions":"_new-expense-actions_9ikq6_41"},Bt={"form-control-label":"_form-control-label_1guvi_1","form-control-input":"_form-control-input_1guvi_13","input-error":"_input-error_1guvi_22"},on=({label:e,id:t,className:n,type:r,min:l,max:o,step:i,value:a,hasError:u,onChange:s,onBlur:c})=>{let p;return u?p=n?`${Bt["form-control-input"]} ${n} ${Bt["input-error"]}`:`${Bt["form-control-input"]} ${Bt["input-error"]}`:p=n?`${Bt["form-control-input"]} ${n}`:Bt["form-control-input"],_.jsxs("div",{className:Bt["form-control"],children:[_.jsx("label",{className:Bt["form-control-label"],htmlFor:t,children:e}),_.jsx("input",{id:t,className:p,type:r,min:l,max:o,step:i,value:a,onChange:s,onBlur:c})]})},ji=e=>e.trim().length!==0,b0=({onSaveExpenseData:e,onCancel:t,loading:n})=>{const{value:r,isValid:l,inputChangeHandler:o,inputBlurHandler:i,inputClearHandler:a}=ln(ji),{value:u,isValid:s,inputChangeHandler:c,inputBlurHandler:p,inputClearHandler:m}=ln(ji),{value:S,isValid:x,inputChangeHandler:g,inputBlurHandler:P,inputClearHandler:f}=ln(ji),[d,h]=C.useState(!1);C.useEffect(()=>{const v=setTimeout(()=>{h(l&&s&&x)},250);return()=>{clearTimeout(v)}},[l,s,x]);const E=()=>{a(),m(),f()},L=v=>{if(v.preventDefault(),d){const R={title:r,amount:+u,date:new Date(S)};e(R),E()}else l?s?P():p():i()};return _.jsxs("form",{onSubmit:L,children:[_.jsxs("div",{className:Ma["new-expense-controls"],children:[_.jsx(on,{label:"Title",id:"title",type:"text",value:r,hasError:l!==null&&!l,onChange:o,onBlur:i}),_.jsx(on,{label:"Amount",id:"amount",type:"number",min:"0.01",step:"0.01",value:u,hasError:s!==null&&!s,onChange:c,onBlur:p}),_.jsx(on,{label:"Date",id:"date",type:"date",min:"2019-01-01",max:"2023-12-31",value:S,hasError:x!==null&&!x,onChange:g,onBlur:P})]}),_.jsxs("div",{className:Ma["new-expense-actions"],children:[_.jsx(cn,{type:"button",onClick:t,children:"Close"}),_.jsx(cn,{type:"submit",children:n?"Sending...":"Add Expense"})]})]})},ey=({onAddExpense:e})=>{const[t,n]=C.useState(!1),{isLoading:r,sendRequest:l}=Iu(),o=(s,c)=>{const p=c.name,m=new lp(p,s.title,s.amount,s.date);e(m),n(!1)},i=async s=>{l({url:"https://react-expenses-30273-default-rtdb.europe-west1.firebasedatabase.app/expenses.json",method:"POST",headers:{"Content-Type":"application/json"},body:{title:s.title,amount:s.amount,date:s.date.toISOString().split("T")[0]}},o.bind(null,s))},a=()=>{n(!0)},u=()=>{n(!1)};return _.jsx(gr,{className:Ma["new-expense"],children:t?_.jsx(b0,{loading:r,onSaveExpenseData:i,onCancel:u}):_.jsx(cn,{type:"button",onClick:a,children:"Add New Expense"})})},ty=()=>{const[e,t]=C.useState([]),{isLoading:n,error:r,sendRequest:l}=Iu();C.useEffect(()=>{l({url:"https://react-expenses-30273-default-rtdb.europe-west1.firebasedatabase.app/expenses.json"},u=>{const s=[];for(const c in u)s.push(new lp(c,u[c].title,u[c].amount,new Date(u[c].date)));t(s)})},[l]);const o=a=>{t(u=>[a,...u])},i=a=>{t(u=>u.filter(s=>s.id!==a))};return _.jsxs(_.Fragment,{children:[_.jsx(ey,{onAddExpense:o}),_.jsx(Z0,{data:e,isLoading:n,error:r,onDeleteItem:i})]})},ny="_auth_1ndzc_1",Lo={auth:ny,"auth-form":"_auth-form_1ndzc_7","auth-form-btn":"_auth-form-btn_1ndzc_12"},ip=({children:e,formType:t,onSubmit:n})=>{let r;return t==="login"?r=_.jsxs("p",{children:["Don't have an account yet?"," ",_.jsx(ja,{to:`${Rt}register`,children:"Sign Up"})]}):r=_.jsxs("p",{children:["Already have an account? ",_.jsx(ja,{to:`${Rt}login`,children:"Sign In"})]}),_.jsxs(gr,{className:Lo.auth,children:[_.jsx("form",{className:Lo["auth-form"],onSubmit:n,children:e}),r]})},Di=e=>e.trim().length!==0,ry=()=>{const{value:e,isValid:t,inputChangeHandler:n,inputBlurHandler:r,inputClearHandler:l}=ln(Di),{value:o,isValid:i,inputChangeHandler:a,inputBlurHandler:u,inputClearHandler:s}=ln(Di),{value:c,isValid:p,inputChangeHandler:m,inputBlurHandler:S,inputClearHandler:x}=ln(Di),[g,P]=C.useState(!1);C.useEffect(()=>{const h=setTimeout(()=>{P(t&&i&&p)},250);return()=>{clearTimeout(h)}},[t,i,p]);const f=()=>{l(),s(),x()},d=h=>{h.preventDefault(),g?(console.log({email:e,username:o,password:c}),f()):t?i?S():u():r()};return _.jsxs(ip,{formType:"register",onSubmit:d,children:[_.jsx(on,{label:"Email",id:"email",type:"email",value:e,hasError:t!==null&&!t,onChange:n,onBlur:r}),_.jsx(on,{label:"Username",id:"username",type:"text",value:o,hasError:i!==null&&!i,onChange:a,onBlur:u}),_.jsx(on,{label:"Password",id:"password",type:"password",value:c,hasError:p!==null&&!p,onChange:m,onBlur:S}),_.jsx(cn,{className:Lo["auth-form-btn"],type:"submit",children:"Sign Up"})]})},ly=()=>_.jsx(ry,{}),kc=e=>e.trim().length!==0,oy=()=>{const{value:e,isValid:t,inputChangeHandler:n,inputBlurHandler:r,inputClearHandler:l}=ln(kc),{value:o,isValid:i,inputChangeHandler:a,inputBlurHandler:u,inputClearHandler:s}=ln(kc),[c,p]=C.useState(!1);C.useEffect(()=>{const x=setTimeout(()=>{p(t&&i)},250);return()=>{clearTimeout(x)}},[t,i]);const m=()=>{l(),s()},S=x=>{x.preventDefault(),c?(console.log({username:e,password:o}),m()):t?u():r()};return _.jsxs(ip,{formType:"login",onSubmit:S,children:[_.jsx(on,{label:"Username",id:"username",type:"text",value:e,hasError:t!==null&&!t,onChange:n,onBlur:r}),_.jsx(on,{label:"Password",id:"password",type:"password",value:o,hasError:i!==null&&!i,onChange:a,onBlur:u}),_.jsx(cn,{className:Lo["auth-form-btn"],type:"submit",children:"Sign In"})]})},iy=()=>_.jsx(oy,{}),ay=f0([{path:Rt,element:_.jsx(F0,{}),children:[{path:Rt,element:_.jsx(ty,{})},{path:`${Rt}register`,element:_.jsx(ly,{})},{path:`${Rt}login`,element:_.jsx(iy,{})}]}]),uy=()=>_.jsx(x0,{router:ay}),sy=Mi.createRoot(document.getElementById("page-root"));sy.render(_.jsx(Zm,{children:_.jsx(uy,{})})); diff --git a/assets/index-FN7xxOep.css b/assets/index-FN7xxOep.css deleted file mode 100644 index ee6a38b..0000000 --- a/assets/index-FN7xxOep.css +++ /dev/null @@ -1 +0,0 @@ -._container_1wy3b_1{padding-inline:5rem}@media (max-width: 992px){._container_1wy3b_1{padding-inline:3rem}}@media (max-width: 576px){._container_1wy3b_1{padding-inline:1.5rem}}._menu_1czut_1{display:flex;align-items:center;gap:2rem}._menu-link_1czut_6{color:#fff;text-decoration:none;font-size:1rem}._link-active_1czut_12{position:relative}._link-active_1czut_12:after{position:absolute;content:"";bottom:-6px;left:0;right:0;width:100%;height:2px;background-color:#fff}._header_l212f_1{padding:1rem 0;background-color:var(--clr-primary)}._header-body_l212f_5{display:flex;align-items:center;justify-content:space-between}._brand_1cqmy_1{display:flex;align-items:center;gap:.75rem}._brand-logo_1cqmy_6{width:60px;height:60px}._brand-name_1cqmy_10{display:block;font-weight:500;color:var(--clr-text)}._card_14j3b_1{border-radius:12px;box-shadow:0 2px 8px #00000040;overflow:hidden}._expenses_1q8us_1{padding:1.5rem;background-color:var(--clr-primary);margin:2rem auto 0;max-width:50rem}._expenses-item_1q8us_7{display:flex;justify-content:space-between;align-items:center;padding:.8rem;margin:1rem 0;background-color:var(--clr-secondary)}._expenses-item-date_1q8us_15{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;width:5.5rem;height:5.5rem;background-color:var(--clr-primary);color:var(--clr-text);border-radius:12px}._expenses-item-month_1q8us_27{font-size:.9rem;font-weight:600}@media (max-width: 768px){._expenses-item-month_1q8us_27{font-size:.7rem}}._expenses-item-year_1q8us_36{font-size:1.5rem;font-weight:700}@media (max-width: 768px){._expenses-item-year_1q8us_36{font-size:1.2rem}}._expenses-item-day_1q8us_45{font-size:.9rem}@media (max-width: 768px){._expenses-item-day_1q8us_45{font-size:.7rem}}._expenses-item-description_1q8us_53{display:flex;align-items:center;flex-direction:row;justify-content:flex-start;gap:.8rem;flex:1}@media (max-width: 768px){._expenses-item-description_1q8us_53{flex-flow:column-reverse;align-items:flex-end}}._expenses-item-title_1q8us_67{flex:1;margin:0 1rem;font-size:1.25rem;text-align:left;color:var(--clr-text)}@media (max-width: 768px){._expenses-item-title_1q8us_67{font-size:1rem;margin:0;text-align:right}}._expenses-item-price_1q8us_81{padding:.5rem 1.5rem;font-size:1.25rem;font-weight:600;color:var(--clr-text);background-color:#40005d;border-radius:12px}@media (max-width: 768px){._expenses-item-price_1q8us_81{font-size:1rem;padding:.5rem}}._expenses-item_1q8us_7>._expenses-item-delete-btn_1q8us_95{background-color:#1f1f1f;padding:.6rem;margin-left:.8rem;transition:all .3s ease}._expenses-item_1q8us_7>._expenses-item-delete-btn_1q8us_95 img{width:24px;height:24px}@media (max-width: 768px){._expenses-item_1q8us_7>._expenses-item-delete-btn_1q8us_95 img{width:18px;height:18px}}._expenses-item_1q8us_7>._expenses-item-delete-btn_1q8us_95:hover{box-shadow:0 2px 8px #00000040}._expenses-item_1q8us_7>._expenses-item-delete-btn_1q8us_95:focus{transform:scale(.95)}._expenses-filter_1q8us_117{color:var(--clr-text);padding:0 1rem}._expenses-filter-control_1q8us_121{display:flex;align-items:center;justify-content:space-between;margin:1.2rem 0}._expenses-filter-label_1q8us_127{font-weight:700}._expenses-filter-select_1q8us_130{font:inherit;padding:.5rem 1.5rem;font-weight:700;border-radius:6px}._expenses-list_1q8us_136{list-style:none}._expenses-list-fallback_1q8us_139{margin-top:2rem;color:var(--clr-text);font-size:1.2rem;font-weight:700;text-align:center}@media (max-width: 768px){._expenses-list-fallback_1q8us_139{font-size:1rem}}._btn_awfba_1{padding:1rem 2rem;width:fit-content;background-color:var(--clr-accent);color:var(--clr-light);border-radius:12px;transition:all .3s ease}@media (max-width: 768px){._btn_awfba_1{padding:.8rem 1.6rem}}._btn_awfba_1:hover,._btn_awfba_1:active{background-color:#510674}._btn_awfba_1:disabled{background-color:#510674cc}._modal_uzx82_1{opacity:0;visibility:hidden;position:fixed;z-index:-1;left:0;top:0;width:100%;height:100%;background:#0009;display:flex;align-items:center;justify-content:center;transition:all .3s ease}._modal-active_uzx82_16{z-index:5;opacity:1;visibility:visible}._modal-content_uzx82_21{padding:2rem;display:flex;flex-direction:column;background-color:var(--clr-light);color:var(--clr-dark)}._modal-title_uzx82_28{font-size:1.3rem;font-weight:600;text-align:center;margin-bottom:1.25rem}._modal-text_uzx82_34{margin-bottom:2rem}._modal-actions_uzx82_37{display:flex;justify-content:center;gap:1rem}._modal-delete-btn_uzx82_42{background-color:var(--clr-danger)}._modal-delete-btn_uzx82_42:hover{background-color:#ce0000}._chart_d7lcp_1{padding:1.2rem;background-color:#f8dfff;display:flex;flex-wrap:wrap;row-gap:1rem}._chart_d7lcp_1{gap:.3rem}._chart_d7lcp_1>*{flex:0 1 calc(100% / 12 - .3rem / 12 * (12 - 1))}@media (max-width: 640px){._chart_d7lcp_1{gap:.5rem}._chart_d7lcp_1>*{flex:0 1 calc(100% / 6 - .5rem / 6 * (6 - 1))}}._chart-bar_d7lcp_22{height:7.5rem;display:flex;flex-direction:column;align-items:center;gap:.25rem}@media (max-width: 640px){._chart-bar_d7lcp_22{height:6.5rem}}._chart-bar-inner_d7lcp_34{height:100%;width:1.35rem;border:1px solid var(--clr-secondary);border-radius:12px;background-color:#c3b4f3;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end}._chart-bar-fill_d7lcp_45{background-color:#4826b9;width:100%;transition:all 1s ease-in-out}._chart-bar-label_d7lcp_50{font-weight:600;font-size:.8rem;text-align:center;color:var(--clr-dark)}._new-expense_9ikq6_1{background-color:var(--clr-background);padding:1rem;margin:0 auto;max-width:50rem;text-align:center}._new-expense-controls_9ikq6_8{display:flex;flex-wrap:wrap;justify-content:center;gap:1.5rem;margin-bottom:1.5rem;text-align:left}._new-expense-controls_9ikq6_8{gap:1.5rem}._new-expense-controls_9ikq6_8>*{flex:0 1 calc(100% / 3 - 1.5rem / 3 * (3 - 1))}@media (max-width: 768px){._new-expense-controls_9ikq6_8{justify-content:stretch}._new-expense-controls_9ikq6_8{gap:1rem}._new-expense-controls_9ikq6_8>*{flex:0 1 calc(50% - .5rem)}}@media (max-width: 576px){._new-expense-controls_9ikq6_8{gap:1rem}._new-expense-controls_9ikq6_8>*{flex:0 1 calc(100% + -0rem)}}._new-expense-actions_9ikq6_41{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:1rem}@media (max-width: 768px){._new-expense-actions_9ikq6_41{justify-content:center}}._form-control-label_1guvi_1{font-weight:700;margin-bottom:.5rem;font-size:.9rem;display:block;color:var(--clr-dark)}@media (min-width: 580px){._form-control-label_1guvi_1{font-size:1rem}}._form-control-input_1guvi_13{font:inherit;padding:.5rem;border-radius:6px;border:none;height:2.5rem;width:100%}._input-error_1guvi_22{outline:2px solid var(--clr-danger)}._auth_1ndzc_1{max-width:25rem;margin:0 auto;padding:1.5rem;background-color:var(--clr-background)}._auth-form_1ndzc_7{display:flex;flex-direction:column;gap:1rem}._auth-form-btn_1ndzc_12{margin:.5rem auto 0}._auth_1ndzc_1 p{font-size:1.05rem;text-align:center;margin:1.5rem 0 .5rem;color:var(--clr-primary)}._auth_1ndzc_1 p a{margin-left:.25rem;color:var(--clr-accent)}:root{--clr-light: #fff;--clr-dark: #1f1f1f;--clr-text: #fff;--clr-primary: #1f1f1f;--clr-secondary: #3f3f3f;--clr-background: #a892ee;--clr-accent: #40005d;--clr-danger: #dc0311}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{font-family:Poppins,sans-serif;font-size:16px;line-height:1;font-weight:400;background-color:var(--clr-secondary);color:var(--clr-text)}img{display:block;max-width:100%}ol,ul{list-style:none}button{font:inherit;cursor:pointer;background-color:transparent;outline:none;border:none;color:inherit} diff --git a/assets/index-dpzYmLSE.js b/assets/index-dpzYmLSE.js new file mode 100644 index 0000000..f052f22 --- /dev/null +++ b/assets/index-dpzYmLSE.js @@ -0,0 +1,68 @@ +var dp=Object.defineProperty;var fp=(e,t,n)=>t in e?dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yr=(e,t,n)=>(fp(e,typeof t!="symbol"?t+"":t,n),n);function pc(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 i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mc={exports:{}},ki={},vc={exports:{}},Q={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dl=Symbol.for("react.element"),pp=Symbol.for("react.portal"),hp=Symbol.for("react.fragment"),mp=Symbol.for("react.strict_mode"),vp=Symbol.for("react.profiler"),gp=Symbol.for("react.provider"),yp=Symbol.for("react.context"),wp=Symbol.for("react.forward_ref"),xp=Symbol.for("react.suspense"),Sp=Symbol.for("react.memo"),Ep=Symbol.for("react.lazy"),Uu=Symbol.iterator;function kp(e){return e===null||typeof e!="object"?null:(e=Uu&&e[Uu]||e["@@iterator"],typeof e=="function"?e:null)}var gc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yc=Object.assign,wc={};function dr(e,t,n){this.props=e,this.context=t,this.refs=wc,this.updater=n||gc}dr.prototype.isReactComponent={};dr.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")};dr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xc(){}xc.prototype=dr.prototype;function _a(e,t,n){this.props=e,this.context=t,this.refs=wc,this.updater=n||gc}var Ra=_a.prototype=new xc;Ra.constructor=_a;yc(Ra,dr.prototype);Ra.isPureReactComponent=!0;var Hu=Array.isArray,Sc=Object.prototype.hasOwnProperty,Na={current:null},Ec={key:!0,ref:!0,__self:!0,__source:!0};function kc(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Sc.call(t,r)&&!Ec.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1>>1,ee=D[G];if(0>>1;Gl(lt,B))Del(zt,lt)?(D[G]=zt,D[De]=B,G=De):(D[G]=lt,D[ke]=B,G=ke);else if(Del(zt,B))D[G]=zt,D[De]=B,G=De;else break e}}return H}function l(D,H){var B=D.sortIndex-H.sortIndex;return B!==0?B:D.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],s=[],c=1,p=null,m=3,S=!1,x=!1,y=!1,_=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(D){for(var H=n(s);H!==null;){if(H.callback===null)r(s);else if(H.startTime<=D)r(s),H.sortIndex=H.expirationTime,t(u,H);else break;H=n(s)}}function E(D){if(y=!1,h(D),!x)if(n(u)!==null)x=!0,Mt(L);else{var H=n(s);H!==null&&re(E,H.startTime-D)}}function L(D,H){x=!1,y&&(y=!1,f(T),T=-1),S=!0;var B=m;try{for(h(H),p=n(u);p!==null&&(!(p.expirationTime>H)||D&&!X());){var G=p.callback;if(typeof G=="function"){p.callback=null,m=p.priorityLevel;var ee=G(p.expirationTime<=H);H=e.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(u)&&r(u),h(H)}else r(u);p=n(u)}if(p!==null)var pt=!0;else{var ke=n(s);ke!==null&&re(E,ke.startTime-H),pt=!1}return pt}finally{p=null,m=B,S=!1}}var v=!1,R=null,T=-1,z=5,O=-1;function X(){return!(e.unstable_now()-OD||125G?(D.sortIndex=B,t(s,D),n(u)===null&&D===n(s)&&(y?(f(T),T=-1):y=!0,re(E,B-G))):(D.sortIndex=ee,t(u,D),x||S||(x=!0,Mt(L))),D},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(D){var H=m;return function(){var B=m;m=H;try{return D.apply(this,arguments)}finally{m=B}}}})(Rc);_c.exports=Rc;var Fp=_c.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Nc=P,Ke=Fp;function N(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"),Ro=Object.prototype.hasOwnProperty,Op=/^[: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]*$/,Bu={},Vu={};function Up(e){return Ro.call(Vu,e)?!0:Ro.call(Bu,e)?!1:Op.test(e)?Vu[e]=!0:(Bu[e]=!0,!1)}function Hp(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 Ap(e,t,n,r){if(t===null||typeof t>"u"||Hp(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 Fe(e,t,n,r,l,i,o){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=i,this.removeEmptyString=o}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new Fe(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){Re[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ta=/[\-:]([a-z])/g;function ja(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(Ta,ja);Re[t]=new Fe(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(Ta,ja);Re[t]=new Fe(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(Ta,ja);Re[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Da(e,t,n,r){var l=Re.hasOwnProperty(t)?Re[t]:null;(l!==null?l.type!==0:r||!(2a||l[o]!==i[a]){var u=` +`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Gi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dr(e):""}function Bp(e){switch(e.tag){case 5:return Dr(e.type);case 16:return Dr("Lazy");case 13:return Dr("Suspense");case 19:return Dr("SuspenseList");case 0:case 2:case 15:return e=Ji(e.type,!1),e;case 11:return e=Ji(e.type.render,!1),e;case 1:return e=Ji(e.type,!0),e;default:return""}}function jo(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 Un:return"Fragment";case On:return"Portal";case No:return"Profiler";case Ma:return"StrictMode";case Lo:return"Suspense";case To:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jc:return(e.displayName||"Context")+".Consumer";case Tc:return(e._context.displayName||"Context")+".Provider";case za:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ia:return t=e.displayName||null,t!==null?t:jo(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return jo(e(t))}catch{}}return null}function Vp(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 jo(t);case 8:return t===Ma?"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 nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $p(e){var t=Mc(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pl(e){e._valueTracker||(e._valueTracker=$p(e))}function zc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ql(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 Do(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nn(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 Ic(e,t){t=t.checked,t!=null&&Da(e,"checked",t,!1)}function Mo(e,t){Ic(e,t);var n=nn(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")?zo(e,t.type,n):t.hasOwnProperty("defaultValue")&&zo(e,t.type,nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qu(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 zo(e,t,n){(t!=="number"||ql(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mr=Array.isArray;function Zn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=_l.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fr={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},Wp=["Webkit","ms","Moz","O"];Object.keys(Fr).forEach(function(e){Wp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fr[t]=Fr[e]})});function Hc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fr.hasOwnProperty(e)&&Fr[e]?(""+t).trim():t+"px"}function Ac(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Hc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Qp=ue({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 Oo(e,t){if(t){if(Qp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Uo(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 Ho=null;function Fa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ao=null,qn=null,bn=null;function Xu(e){if(e=hl(e)){if(typeof Ao!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Ni(t),Ao(e.stateNode,e.type,t))}}function Bc(e){qn?bn?bn.push(e):bn=[e]:qn=e}function Vc(){if(qn){var e=qn,t=bn;if(bn=qn=null,Xu(e),t)for(e=0;e>>=0,e===0?32:31-(nh(e)/rh|0)|0}var Rl=64,Nl=4194304;function zr(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 ni(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=zr(a):(i&=o,i!==0&&(r=zr(i)))}else o=n&~l,o!==0?r=zr(o):i!==0&&(r=zr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&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 fl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function ah(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=Ur),rs=" ",ls=!1;function ud(e,t){switch(e){case"keyup":return Ih.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function Oh(e,t){switch(e){case"compositionend":return sd(t);case"keypress":return t.which!==32?null:(ls=!0,rs);case"textInput":return e=t.data,e===rs&&ls?null:e;default:return null}}function Uh(e,t){if(Hn)return e==="compositionend"||!Wa&&ud(e,t)?(e=od(),$l=Ba=Wt=null,Hn=!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=us(n)}}function pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hd(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ql(e.document)}return t}function Qa(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 Yh(e){var t=hd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pd(n.ownerDocument.documentElement,n)){if(r!==null&&Qa(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,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=ss(n,i);var o=ss(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,An=null,Ko=null,Ar=null,Yo=!1;function cs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yo||An==null||An!==ql(r)||(r=An,"selectionStart"in r&&Qa(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}),Ar&&br(Ar,r)||(Ar=r,r=ii(Ko,"onSelect"),0$n||(e.current=bo[$n],bo[$n]=null,$n--)}function b(e,t){$n++,bo[$n]=e.current,e.current=t}var rn={},je=un(rn),He=un(!1),kn=rn;function lr(e,t){var n=e.type.contextTypes;if(!n)return rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ae(e){return e=e.childContextTypes,e!=null}function ai(){ne(He),ne(je)}function gs(e,t,n){if(je.current!==rn)throw Error(N(168));b(je,t),b(He,n)}function kd(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(N(108,Vp(e)||"Unknown",l));return ue({},n,r)}function ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,kn=je.current,b(je,e),b(He,He.current),!0}function ys(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=kd(e,t,kn),r.__reactInternalMemoizedMergedChildContext=e,ne(He),ne(je),b(je,e)):ne(He),b(He,n)}var St=null,Li=!1,co=!1;function Cd(e){St===null?St=[e]:St.push(e)}function im(e){Li=!0,Cd(e)}function sn(){if(!co&&St!==null){co=!0;var e=0,t=J;try{var n=St;for(J=1;e>=o,l-=o,Et=1<<32-ct(t)+l|n<T?(z=R,R=null):z=R.sibling;var O=m(f,R,h[T],E);if(O===null){R===null&&(R=z);break}e&&R&&O.alternate===null&&t(f,R),d=i(O,d,T),v===null?L=O:v.sibling=O,v=O,R=z}if(T===h.length)return n(f,R),ie&&hn(f,T),L;if(R===null){for(;TT?(z=R,R=null):z=R.sibling;var X=m(f,R,O.value,E);if(X===null){R===null&&(R=z);break}e&&R&&X.alternate===null&&t(f,R),d=i(X,d,T),v===null?L=X:v.sibling=X,v=X,R=z}if(O.done)return n(f,R),ie&&hn(f,T),L;if(R===null){for(;!O.done;T++,O=h.next())O=p(f,O.value,E),O!==null&&(d=i(O,d,T),v===null?L=O:v.sibling=O,v=O);return ie&&hn(f,T),L}for(R=r(f,R);!O.done;T++,O=h.next())O=S(R,f,T,O.value,E),O!==null&&(e&&O.alternate!==null&&R.delete(O.key===null?T:O.key),d=i(O,d,T),v===null?L=O:v.sibling=O,v=O);return e&&R.forEach(function(ve){return t(f,ve)}),ie&&hn(f,T),L}function _(f,d,h,E){if(typeof h=="object"&&h!==null&&h.type===Un&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Cl:e:{for(var L=h.key,v=d;v!==null;){if(v.key===L){if(L=h.type,L===Un){if(v.tag===7){n(f,v.sibling),d=l(v,h.props.children),d.return=f,f=d;break e}}else if(v.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===At&&Ps(L)===v.type){n(f,v.sibling),d=l(v,h.props),d.ref=Cr(f,v,h),d.return=f,f=d;break e}n(f,v);break}else t(f,v);v=v.sibling}h.type===Un?(d=En(h.props.children,f.mode,E,h.key),d.return=f,f=d):(E=Zl(h.type,h.key,h.props,null,f.mode,E),E.ref=Cr(f,d,h),E.return=f,f=E)}return o(f);case On:e:{for(v=h.key;d!==null;){if(d.key===v)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(f,d.sibling),d=l(d,h.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=wo(h,f.mode,E),d.return=f,f=d}return o(f);case At:return v=h._init,_(f,d,v(h._payload),E)}if(Mr(h))return x(f,d,h,E);if(wr(h))return y(f,d,h,E);Il(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,h),d.return=f,f=d):(n(f,d),d=yo(h,f.mode,E),d.return=f,f=d),o(f)):n(f,d)}return _}var or=Dd(!0),Md=Dd(!1),ml={},wt=un(ml),rl=un(ml),ll=un(ml);function yn(e){if(e===ml)throw Error(N(174));return e}function eu(e,t){switch(b(ll,t),b(rl,e),b(wt,ml),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fo(t,e)}ne(wt),b(wt,t)}function ar(){ne(wt),ne(rl),ne(ll)}function zd(e){yn(ll.current);var t=yn(wt.current),n=Fo(t,e.type);t!==n&&(b(rl,e),b(wt,n))}function tu(e){rl.current===e&&(ne(wt),ne(rl))}var oe=un(0);function hi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=[];function nu(){for(var e=0;en?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{J=n,po.transition=r}}function Jd(){return rt().memoizedState}function sm(e,t,n){var r=qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zd(e))qd(t,n);else if(n=Nd(e,t,n,r),n!==null){var l=ze();dt(n,e,r,l),bd(n,t,r)}}function cm(e,t,n){var r=qt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zd(e))qd(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,ft(a,o)){var u=t.interleaved;u===null?(l.next=l,qa(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Nd(e,t,l,r),n!==null&&(l=ze(),dt(n,e,r,l),bd(n,t,r))}}function Zd(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function qd(e,t){Br=mi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ua(e,n)}}var vi={readContext:nt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},dm={readContext:nt,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Rs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yl(4194308,4,Qd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yl(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vt();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=sm.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:_s,useDebugValue:au,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=_s(!1),t=e[0];return e=um.bind(null,e[1]),vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,l=vt();if(ie){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ee===null)throw Error(N(349));Pn&30||Od(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Rs(Hd.bind(null,r,i,e),[e]),r.flags|=2048,al(9,Ud.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=vt(),t=Ee.identifierPrefix;if(ie){var n=kt,r=Et;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=il++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[gt]=t,e[nl]=r,sf(e,t,!1,!1),t.stateNode=e;e:{switch(o=Uo(n,r),n){case"dialog":te("cancel",e),te("close",e),l=r;break;case"iframe":case"object":case"embed":te("load",e),l=r;break;case"video":case"audio":for(l=0;lsr&&(t.flags|=128,r=!0,Pr(i,!1),t.lanes=4194304)}else{if(!r)if(e=hi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ie)return Le(t),null}else 2*pe()-i.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,Pr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=oe.current,b(oe,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?$e&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function wm(e,t){switch(Ya(t),t.tag){case 1:return Ae(t.type)&&ai(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),ne(He),ne(je),nu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tu(t),null;case 13:if(ne(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(oe),null;case 4:return ar(),null;case 10:return Za(t.type._context),null;case 22:case 23:return pu(),null;case 24:return null;default:return null}}var Ol=!1,Te=!1,xm=typeof WeakSet=="function"?WeakSet:Set,M=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ce(e,t,r)}else n.current=null}function da(e,t,n){try{n()}catch(r){ce(e,t,r)}}var Fs=!1;function Sm(e,t){if(Xo=ri,e=hd(),Qa(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,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,s=0,c=0,p=e,m=null;t:for(;;){for(var S;p!==n||l!==0&&p.nodeType!==3||(a=o+l),p!==i||r!==0&&p.nodeType!==3||(u=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(S=p.firstChild)!==null;)m=p,p=S;for(;;){if(p===e)break t;if(m===n&&++s===l&&(a=o),m===i&&++c===r&&(u=o),(S=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=S}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Go={focusedElem:e,selectionRange:n},ri=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,_=x.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:ot(t.type,y),_);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(E){ce(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return x=Fs,Fs=!1,x}function Vr(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 i=l.destroy;l.destroy=void 0,i!==void 0&&da(t,n,i)}l=l.next}while(l!==r)}}function Di(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 fa(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 ff(e){var t=e.alternate;t!==null&&(e.alternate=null,ff(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gt],delete t[nl],delete t[qo],delete t[rm],delete t[lm])),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 pf(e){return e.tag===5||e.tag===3||e.tag===4}function Os(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pf(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 pa(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=oi));else if(r!==4&&(e=e.child,e!==null))for(pa(e,t,n),e=e.sibling;e!==null;)pa(e,t,n),e=e.sibling}function ha(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(ha(e,t,n),e=e.sibling;e!==null;)ha(e,t,n),e=e.sibling}var Pe=null,at=!1;function Ut(e,t,n){for(n=n.child;n!==null;)hf(e,t,n),n=n.sibling}function hf(e,t,n){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(Ci,n)}catch{}switch(n.tag){case 5:Te||Yn(n,t);case 6:var r=Pe,l=at;Pe=null,Ut(e,t,n),Pe=r,at=l,Pe!==null&&(at?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(at?(e=Pe,n=n.stateNode,e.nodeType===8?so(e.parentNode,n):e.nodeType===1&&so(e,n),Zr(e)):so(Pe,n.stateNode));break;case 4:r=Pe,l=at,Pe=n.stateNode.containerInfo,at=!0,Ut(e,t,n),Pe=r,at=l;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&da(n,t,o),l=l.next}while(l!==r)}Ut(e,t,n);break;case 1:if(!Te&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ce(n,t,a)}Ut(e,t,n);break;case 21:Ut(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,Ut(e,t,n),Te=r):Ut(e,t,n);break;default:Ut(e,t,n)}}function Us(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xm),t.forEach(function(r){var l=Tm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function it(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*km(r/1960))-r,10e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,wi=0,Y&6)throw Error(N(331));var l=Y;for(Y|=4,M=e.current;M!==null;){var i=M,o=i.child;if(M.flags&16){var a=i.deletions;if(a!==null){for(var u=0;upe()-du?Sn(e,0):cu|=n),Be(e,t)}function Ef(e,t){t===0&&(e.mode&1?(t=Nl,Nl<<=1,!(Nl&130023424)&&(Nl=4194304)):t=1);var n=ze();e=Lt(e,t),e!==null&&(fl(e,t,n),Be(e,n))}function Lm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ef(e,n)}function Tm(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(N(314))}r!==null&&r.delete(t),Ef(e,n)}var kf;kf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||He.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,gm(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,ie&&t.flags&1048576&&Pd(t,ci,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xl(e,t),e=t.pendingProps;var l=lr(t,je.current);tr(t,n),l=lu(null,t,r,e,l,n);var i=iu();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,Ae(r)?(i=!0,ui(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ba(t),l.updater=Ti,t.stateNode=l,l._reactInternals=t,la(t,r,e,n),t=aa(null,t,r,!0,i,n)):(t.tag=0,ie&&i&&Ka(t),Me(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Dm(r),e=ot(r,e),l){case 0:t=oa(null,t,r,e,n);break e;case 1:t=Ms(null,t,r,e,n);break e;case 11:t=js(null,t,r,e,n);break e;case 14:t=Ds(null,t,r,ot(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),oa(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),Ms(e,t,r,l,n);case 3:e:{if(of(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Ld(e,t),pi(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=ur(Error(N(423)),t),t=zs(e,t,r,n,l);break e}else if(r!==l){l=ur(Error(N(424)),t),t=zs(e,t,r,n,l);break e}else for(We=Gt(t.stateNode.containerInfo.firstChild),Qe=t,ie=!0,st=null,n=Md(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ir(),r===l){t=Tt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return zd(t),e===null&&ta(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Jo(r,l)?o=null:i!==null&&Jo(r,i)&&(t.flags|=32),lf(e,t),Me(e,t,o,n),t.child;case 6:return e===null&&ta(t),null;case 13:return af(e,t,n);case 4:return eu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=or(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),js(e,t,r,l,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,b(di,r._currentValue),r._currentValue=o,i!==null)if(ft(i.value,o)){if(i.children===l.children&&!He.current){t=Tt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Pt(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),na(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),na(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Me(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,tr(t,n),l=nt(l),r=r(l),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,l=ot(r,t.pendingProps),l=ot(r.type,l),Ds(e,t,r,l,n);case 15:return nf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),Xl(e,t),t.tag=1,Ae(r)?(e=!0,ui(t)):e=!1,tr(t,n),jd(t,r,l),la(t,r,l,n),aa(null,t,r,!0,e,n);case 19:return uf(e,t,n);case 22:return rf(e,t,n)}throw Error(N(156,t.tag))};function Cf(e,t){return Gc(e,t)}function jm(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 et(e,t,n,r){return new jm(e,t,n,r)}function mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dm(e){if(typeof e=="function")return mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===za)return 11;if(e===Ia)return 14}return 2}function bt(e,t){var n=e.alternate;return n===null?(n=et(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 Zl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")mu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Un:return En(n.children,l,i,t);case Ma:o=8,l|=8;break;case No:return e=et(12,n,t,l|2),e.elementType=No,e.lanes=i,e;case Lo:return e=et(13,n,t,l),e.elementType=Lo,e.lanes=i,e;case To:return e=et(19,n,t,l),e.elementType=To,e.lanes=i,e;case Dc:return zi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Tc:o=10;break e;case jc:o=9;break e;case za:o=11;break e;case Ia:o=14;break e;case At:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=et(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function En(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function zi(e,t,n,r){return e=et(22,e,r,t),e.elementType=Dc,e.lanes=n,e.stateNode={isHidden:!1},e}function yo(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function wo(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mm(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=qi(0),this.expirationTimes=qi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function vu(e,t,n,r,l,i,o,a,u){return e=new Mm(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ba(i),e}function zm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nf)}catch(e){console.error(e)}}Nf(),Pc.exports=Ye;var xu=Pc.exports;const Lf=hc(xu),Hm=pc({__proto__:null,default:Lf},[xu]);var Ks=xu;_o.createRoot=Ks.createRoot,_o.hydrateRoot=Ks.hydrateRoot;const Su=P.createContext({isActive:!1,displayModal:()=>{},removeModal:()=>{}}),Am=({children:e})=>{const[t,n]=P.useState(!1),i={isActive:t,displayModal:()=>{n(!0)},removeModal:()=>{n(!1)}};return C.jsx(Su.Provider,{value:i,children:e})};/** + * @remix-run/router v1.14.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Nn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vm(){return Math.random().toString(36).substr(2,8)}function Xs(e,t){return{usr:e.state,key:e.key,idx:t}}function sl(e,t,n,r){return n===void 0&&(n=null),de({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Dt(t):t,{state:n,key:t&&t.key||r||Vm()})}function Ln(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 Dt(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 $m(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,a=fe.Pop,u=null,s=c();s==null&&(s=0,o.replaceState(de({},o.state,{idx:s}),""));function c(){return(o.state||{idx:null}).idx}function p(){a=fe.Pop;let _=c(),f=_==null?null:_-s;s=_,u&&u({action:a,location:y.location,delta:f})}function m(_,f){a=fe.Push;let d=sl(y.location,_,f);n&&n(d,_),s=c()+1;let h=Xs(d,s),E=y.createHref(d);try{o.pushState(h,"",E)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(E)}i&&u&&u({action:a,location:y.location,delta:1})}function S(_,f){a=fe.Replace;let d=sl(y.location,_,f);n&&n(d,_),s=c();let h=Xs(d,s),E=y.createHref(d);o.replaceState(h,"",E),i&&u&&u({action:a,location:y.location,delta:0})}function x(_){let f=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof _=="string"?_:Ln(_);return $(f,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,f)}let y={get action(){return a},get location(){return e(l,o)},listen(_){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Ys,p),u=_,()=>{l.removeEventListener(Ys,p),u=null}},createHref(_){return t(l,_)},createURL:x,encodeLocation(_){let f=x(_);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:S,go(_){return o.go(_)}};return y}var se;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(se||(se={}));const Wm=new Set(["lazy","caseSensitive","path","id","index","children"]);function Qm(e){return e.index===!0}function wa(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,i)=>{let o=[...n,i],a=typeof l.id=="string"?l.id:o.join("-");if($(l.index!==!0||!l.children,"Cannot specify children on an index route"),$(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Qm(l)){let u=de({},l,t(l),{id:a});return r[a]=u,u}else{let u=de({},l,t(l),{id:a,children:void 0});return r[a]=u,l.children&&(u.children=wa(l.children,t,o,r)),u}})}function Gn(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Dt(t):t,l=ln(r.pathname||"/",n);if(l==null)return null;let i=Tf(e);Ym(i);let o=null;for(let a=0;o==null&&a{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&($(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 s=_t([r,u.relativePath]),c=n.concat(u);i.children&&i.children.length>0&&($(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Tf(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:ev(s,i.index),routesMeta:c})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))l(i,o);else for(let u of jf(i.path))l(i,o,u)}),t}function jf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=jf(r.join("/")),a=[];return a.push(...o.map(u=>u===""?i:[i,u].join("/"))),l&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Ym(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Xm=/^:\w+$/,Gm=3,Jm=2,Zm=1,qm=10,bm=-2,Gs=e=>e==="*";function ev(e,t){let n=e.split("/"),r=n.length;return n.some(Gs)&&(r+=bm),t&&(r+=Jm),n.filter(l=>!Gs(l)).reduce((l,i)=>l+(Xm.test(i)?Gm:i===""?Zm:qm),r)}function tv(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 nv(e,t){let{routesMeta:n}=e,r={},l="/",i=[];for(let o=0;o{let{paramName:m,isOptional:S}=c;if(m==="*"){let y=a[p]||"";o=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const x=a[p];return S&&!x?s[m]=void 0:s[m]=iv(x||"",m),s},{}),pathname:i,pathnameBase:o,pattern:e}}function rv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Nn(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,(o,a,u)=>(r.push({paramName:a,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 lv(e){try{return decodeURI(e)}catch(t){return Nn(!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 iv(e,t){try{return decodeURIComponent(e)}catch(n){return Nn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ln(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 ov(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Dt(e):e;return{pathname:n?n.startsWith("/")?n:av(n,t):t,search:sv(r),hash:cv(l)}}function av(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 xo(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 Df(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Eu(e,t){let n=Df(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ku(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Dt(e):(l=de({},e),$(!l.pathname||!l.pathname.includes("?"),xo("?","pathname","search",l)),$(!l.pathname||!l.pathname.includes("#"),xo("#","pathname","hash",l)),$(!l.search||!l.search.includes("#"),xo("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,a;if(o==null)a=n;else{let p=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),p-=1;l.pathname=m.join("/")}a=p>=0?t[p]:"/"}let u=ov(l,a),s=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const _t=e=>e.join("/").replace(/\/\/+/g,"/"),uv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Cu{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Mf(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zf=["post","put","patch","delete"],dv=new Set(zf),fv=["get",...zf],pv=new Set(fv),hv=new Set([301,302,303,307,308]),mv=new Set([307,308]),So={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vv={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},If=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gv=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ff="remix-router-transitions";function yv(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let g=e.detectErrorBoundary;l=w=>({hasErrorBoundary:g(w)})}else l=gv;let i={},o=wa(e.routes,l,void 0,i),a,u=e.basename||"/",s=de({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,p=new Set,m=null,S=null,x=null,y=e.hydrationData!=null,_=Gn(o,e.history.location,u),f=null;if(_==null){let g=Ze(404,{pathname:e.history.location.pathname}),{matches:w,route:k}=rc(o);_=w,f={[k.id]:g}}let d,h=_.some(g=>g.route.lazy),E=_.some(g=>g.route.loader);if(h)d=!1;else if(!E)d=!0;else if(s.v7_partialHydration){let g=e.hydrationData?e.hydrationData.loaderData:null,w=e.hydrationData?e.hydrationData.errors:null;d=_.every(k=>k.route.loader&&k.route.loader.hydrate!==!0&&(g&&g[k.route.id]!==void 0||w&&w[k.route.id]!==void 0))}else d=e.hydrationData!=null;let L,v={historyAction:e.history.action,location:e.history.location,matches:_,initialized:d,navigation:So,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||f,fetchers:new Map,blockers:new Map},R=fe.Pop,T=!1,z,O=!1,X=new Map,ve=null,he=!1,Ge=!1,Dn=[],Mt=[],re=new Map,D=0,H=-1,B=new Map,G=new Set,ee=new Map,pt=new Map,ke=new Set,lt=new Map,De=new Map,zt=!1;function Jf(){if(c=e.history.listen(g=>{let{action:w,location:k,delta:j}=g;if(zt){zt=!1;return}Nn(De.size===0||j!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=Iu({currentLocation:v.location,nextLocation:k,historyAction:w});if(I&&j!=null){zt=!0,e.history.go(j*-1),xl(I,{state:"blocked",location:k,proceed(){xl(I,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),e.history.go(j)},reset(){let W=new Map(v.blockers);W.set(I,Rr),Ve({blockers:W})}});return}return fn(w,k)}),n){Lv(t,X);let g=()=>Tv(t,X);t.addEventListener("pagehide",g),ve=()=>t.removeEventListener("pagehide",g)}return v.initialized||fn(fe.Pop,v.location,{initialHydration:!0}),L}function Zf(){c&&c(),ve&&ve(),p.clear(),z&&z.abort(),v.fetchers.forEach((g,w)=>wl(w)),v.blockers.forEach((g,w)=>zu(w))}function qf(g){return p.add(g),()=>p.delete(g)}function Ve(g,w){w===void 0&&(w={}),v=de({},v,g);let k=[],j=[];s.v7_fetcherPersist&&v.fetchers.forEach((I,W)=>{I.state==="idle"&&(ke.has(W)?j.push(W):k.push(W))}),[...p].forEach(I=>I(v,{deletedFetchers:j,unstable_viewTransitionOpts:w.viewTransitionOpts,unstable_flushSync:w.flushSync===!0})),s.v7_fetcherPersist&&(k.forEach(I=>v.fetchers.delete(I)),j.forEach(I=>wl(I)))}function mr(g,w,k){var j,I;let{flushSync:W}=k===void 0?{}:k,A=v.actionData!=null&&v.navigation.formMethod!=null&&ut(v.navigation.formMethod)&&v.navigation.state==="loading"&&((j=g.state)==null?void 0:j._isRedirect)!==!0,U;w.actionData?Object.keys(w.actionData).length>0?U=w.actionData:U=null:A?U=v.actionData:U=null;let F=w.loaderData?nc(v.loaderData,w.loaderData,w.matches||[],w.errors):v.loaderData,K=v.blockers;K.size>0&&(K=new Map(K),K.forEach((q,Ce)=>K.set(Ce,Rr)));let we=T===!0||v.navigation.formMethod!=null&&ut(v.navigation.formMethod)&&((I=g.state)==null?void 0:I._isRedirect)!==!0;a&&(o=a,a=void 0),he||R===fe.Pop||(R===fe.Push?e.history.push(g,g.state):R===fe.Replace&&e.history.replace(g,g.state));let V;if(R===fe.Pop){let q=X.get(v.location.pathname);q&&q.has(g.pathname)?V={currentLocation:v.location,nextLocation:g}:X.has(g.pathname)&&(V={currentLocation:g,nextLocation:v.location})}else if(O){let q=X.get(v.location.pathname);q?q.add(g.pathname):(q=new Set([g.pathname]),X.set(v.location.pathname,q)),V={currentLocation:v.location,nextLocation:g}}Ve(de({},w,{actionData:U,loaderData:F,historyAction:R,location:g,initialized:!0,navigation:So,revalidation:"idle",restoreScrollPosition:Ou(g,w.matches||v.matches),preventScrollReset:we,blockers:K}),{viewTransitionOpts:V,flushSync:W===!0}),R=fe.Pop,T=!1,O=!1,he=!1,Ge=!1,Dn=[],Mt=[]}async function Nu(g,w){if(typeof g=="number"){e.history.go(g);return}let k=Sa(v.location,v.matches,u,s.v7_prependBasename,g,s.v7_relativeSplatPath,w==null?void 0:w.fromRouteId,w==null?void 0:w.relative),{path:j,submission:I,error:W}=Js(s.v7_normalizeFormMethod,!1,k,w),A=v.location,U=sl(v.location,j,w&&w.state);U=de({},U,e.history.encodeLocation(U));let F=w&&w.replace!=null?w.replace:void 0,K=fe.Push;F===!0?K=fe.Replace:F===!1||I!=null&&ut(I.formMethod)&&I.formAction===v.location.pathname+v.location.search&&(K=fe.Replace);let we=w&&"preventScrollReset"in w?w.preventScrollReset===!0:void 0,V=(w&&w.unstable_flushSync)===!0,q=Iu({currentLocation:A,nextLocation:U,historyAction:K});if(q){xl(q,{state:"blocked",location:U,proceed(){xl(q,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),Nu(g,w)},reset(){let Ce=new Map(v.blockers);Ce.set(q,Rr),Ve({blockers:Ce})}});return}return await fn(K,U,{submission:I,pendingError:W,preventScrollReset:we,replace:w&&w.replace,enableViewTransition:w&&w.unstable_viewTransition,flushSync:V})}function bf(){if(Bi(),Ve({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){fn(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}fn(R||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function fn(g,w,k){z&&z.abort(),z=null,R=g,he=(k&&k.startUninterruptedRevalidation)===!0,up(v.location,v.matches),T=(k&&k.preventScrollReset)===!0,O=(k&&k.enableViewTransition)===!0;let j=a||o,I=k&&k.overrideNavigation,W=Gn(j,w,u),A=(k&&k.flushSync)===!0;if(!W){let Ce=Ze(404,{pathname:w.pathname}),{matches:Je,route:xe}=rc(j);Vi(),mr(w,{matches:Je,loaderData:{},errors:{[xe.id]:Ce}},{flushSync:A});return}if(v.initialized&&!Ge&&kv(v.location,w)&&!(k&&k.submission&&ut(k.submission.formMethod))){mr(w,{matches:W},{flushSync:A});return}z=new AbortController;let U=Lr(e.history,w,z.signal,k&&k.submission),F,K;if(k&&k.pendingError)K={[Qr(W).route.id]:k.pendingError};else if(k&&k.submission&&ut(k.submission.formMethod)){let Ce=await ep(U,w,k.submission,W,{replace:k.replace,flushSync:A});if(Ce.shortCircuited)return;F=Ce.pendingActionData,K=Ce.pendingActionError,I=Eo(w,k.submission),A=!1,U=new Request(U.url,{signal:U.signal})}let{shortCircuited:we,loaderData:V,errors:q}=await tp(U,w,W,I,k&&k.submission,k&&k.fetcherSubmission,k&&k.replace,k&&k.initialHydration===!0,A,F,K);we||(z=null,mr(w,de({matches:W},F?{actionData:F}:{},{loaderData:V,errors:q})))}async function ep(g,w,k,j,I){I===void 0&&(I={}),Bi();let W=Rv(w,k);Ve({navigation:W},{flushSync:I.flushSync===!0});let A,U=ka(j,w);if(!U.route.action&&!U.route.lazy)A={type:se.error,error:Ze(405,{method:g.method,pathname:w.pathname,routeId:U.route.id})};else if(A=await Nr("action",g,U,j,i,l,u,s.v7_relativeSplatPath),g.signal.aborted)return{shortCircuited:!0};if(xn(A)){let F;return I&&I.replace!=null?F=I.replace:F=A.location===v.location.pathname+v.location.search,await vr(v,A,{submission:k,replace:F}),{shortCircuited:!0}}if(Jn(A)){let F=Qr(j,U.route.id);return(I&&I.replace)!==!0&&(R=fe.Push),{pendingActionData:{},pendingActionError:{[F.route.id]:A.error}}}if(wn(A))throw Ze(400,{type:"defer-action"});return{pendingActionData:{[U.route.id]:A.data}}}async function tp(g,w,k,j,I,W,A,U,F,K,we){let V=j||Eo(w,I),q=I||W||oc(V),Ce=a||o,[Je,xe]=Zs(e.history,v,k,q,w,s.v7_partialHydration&&U===!0,Ge,Dn,Mt,ke,ee,G,Ce,u,K,we);if(Vi(Z=>!(k&&k.some(le=>le.route.id===Z))||Je&&Je.some(le=>le.route.id===Z)),H=++D,Je.length===0&&xe.length===0){let Z=Du();return mr(w,de({matches:k,loaderData:{},errors:we||null},K?{actionData:K}:{},Z?{fetchers:new Map(v.fetchers)}:{}),{flushSync:F}),{shortCircuited:!0}}if(!he&&(!s.v7_partialHydration||!U)){xe.forEach(le=>{let ht=v.fetchers.get(le.key),El=Tr(void 0,ht?ht.data:void 0);v.fetchers.set(le.key,El)});let Z=K||v.actionData;Ve(de({navigation:V},Z?Object.keys(Z).length===0?{actionData:null}:{actionData:Z}:{},xe.length>0?{fetchers:new Map(v.fetchers)}:{}),{flushSync:F})}xe.forEach(Z=>{re.has(Z.key)&&Ft(Z.key),Z.controller&&re.set(Z.key,Z.controller)});let Mn=()=>xe.forEach(Z=>Ft(Z.key));z&&z.signal.addEventListener("abort",Mn);let{results:$i,loaderResults:zn,fetcherResults:Ot}=await Lu(v.matches,k,Je,xe,g);if(g.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",Mn),xe.forEach(Z=>re.delete(Z.key));let pn=lc($i);if(pn){if(pn.idx>=Je.length){let Z=xe[pn.idx-Je.length].key;G.add(Z)}return await vr(v,pn.result,{replace:A}),{shortCircuited:!0}}let{loaderData:Wi,errors:Qi}=tc(v,k,Je,zn,we,xe,Ot,lt);lt.forEach((Z,le)=>{Z.subscribe(ht=>{(ht||Z.done)&<.delete(le)})});let Ki=Du(),In=Mu(H),Sl=Ki||In||xe.length>0;return de({loaderData:Wi,errors:Qi},Sl?{fetchers:new Map(v.fetchers)}:{})}function np(g,w,k,j){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");re.has(g)&&Ft(g);let I=(j&&j.unstable_flushSync)===!0,W=a||o,A=Sa(v.location,v.matches,u,s.v7_prependBasename,k,s.v7_relativeSplatPath,w,j==null?void 0:j.relative),U=Gn(W,A,u);if(!U){gr(g,w,Ze(404,{pathname:A}),{flushSync:I});return}let{path:F,submission:K,error:we}=Js(s.v7_normalizeFormMethod,!0,A,j);if(we){gr(g,w,we,{flushSync:I});return}let V=ka(U,F);if(T=(j&&j.preventScrollReset)===!0,K&&ut(K.formMethod)){rp(g,w,F,V,U,I,K);return}ee.set(g,{routeId:w,path:F}),lp(g,w,F,V,U,I,K)}async function rp(g,w,k,j,I,W,A){if(Bi(),ee.delete(g),!j.route.action&&!j.route.lazy){let le=Ze(405,{method:A.formMethod,pathname:k,routeId:w});gr(g,w,le,{flushSync:W});return}let U=v.fetchers.get(g);It(g,Nv(A,U),{flushSync:W});let F=new AbortController,K=Lr(e.history,k,F.signal,A);re.set(g,F);let we=D,V=await Nr("action",K,j,I,i,l,u,s.v7_relativeSplatPath);if(K.signal.aborted){re.get(g)===F&&re.delete(g);return}if(s.v7_fetcherPersist&&ke.has(g)){if(xn(V)||Jn(V)){It(g,Ht(void 0));return}}else{if(xn(V))if(re.delete(g),H>we){It(g,Ht(void 0));return}else return G.add(g),It(g,Tr(A)),vr(v,V,{fetcherSubmission:A});if(Jn(V)){gr(g,w,V.error);return}}if(wn(V))throw Ze(400,{type:"defer-action"});let q=v.navigation.location||v.location,Ce=Lr(e.history,q,F.signal),Je=a||o,xe=v.navigation.state!=="idle"?Gn(Je,v.navigation.location,u):v.matches;$(xe,"Didn't find any matches after fetcher action");let Mn=++D;B.set(g,Mn);let $i=Tr(A,V.data);v.fetchers.set(g,$i);let[zn,Ot]=Zs(e.history,v,xe,A,q,!1,Ge,Dn,Mt,ke,ee,G,Je,u,{[j.route.id]:V.data},void 0);Ot.filter(le=>le.key!==g).forEach(le=>{let ht=le.key,El=v.fetchers.get(ht),cp=Tr(void 0,El?El.data:void 0);v.fetchers.set(ht,cp),re.has(ht)&&Ft(ht),le.controller&&re.set(ht,le.controller)}),Ve({fetchers:new Map(v.fetchers)});let pn=()=>Ot.forEach(le=>Ft(le.key));F.signal.addEventListener("abort",pn);let{results:Wi,loaderResults:Qi,fetcherResults:Ki}=await Lu(v.matches,xe,zn,Ot,Ce);if(F.signal.aborted)return;F.signal.removeEventListener("abort",pn),B.delete(g),re.delete(g),Ot.forEach(le=>re.delete(le.key));let In=lc(Wi);if(In){if(In.idx>=zn.length){let le=Ot[In.idx-zn.length].key;G.add(le)}return vr(v,In.result)}let{loaderData:Sl,errors:Z}=tc(v,v.matches,zn,Qi,void 0,Ot,Ki,lt);if(v.fetchers.has(g)){let le=Ht(V.data);v.fetchers.set(g,le)}Mu(Mn),v.navigation.state==="loading"&&Mn>H?($(R,"Expected pending action"),z&&z.abort(),mr(v.navigation.location,{matches:xe,loaderData:Sl,errors:Z,fetchers:new Map(v.fetchers)})):(Ve({errors:Z,loaderData:nc(v.loaderData,Sl,xe,Z),fetchers:new Map(v.fetchers)}),Ge=!1)}async function lp(g,w,k,j,I,W,A){let U=v.fetchers.get(g);It(g,Tr(A,U?U.data:void 0),{flushSync:W});let F=new AbortController,K=Lr(e.history,k,F.signal);re.set(g,F);let we=D,V=await Nr("loader",K,j,I,i,l,u,s.v7_relativeSplatPath);if(wn(V)&&(V=await Hf(V,K.signal,!0)||V),re.get(g)===F&&re.delete(g),!K.signal.aborted){if(ke.has(g)){It(g,Ht(void 0));return}if(xn(V))if(H>we){It(g,Ht(void 0));return}else{G.add(g),await vr(v,V);return}if(Jn(V)){gr(g,w,V.error);return}$(!wn(V),"Unhandled fetcher deferred data"),It(g,Ht(V.data))}}async function vr(g,w,k){let{submission:j,fetcherSubmission:I,replace:W}=k===void 0?{}:k;w.revalidate&&(Ge=!0);let A=sl(g.location,w.location,{_isRedirect:!0});if($(A,"Expected a location on the redirect navigation"),n){let q=!1;if(w.reloadDocument)q=!0;else if(If.test(w.location)){const Ce=e.history.createURL(w.location);q=Ce.origin!==t.location.origin||ln(Ce.pathname,u)==null}if(q){W?t.location.replace(w.location):t.location.assign(w.location);return}}z=null;let U=W===!0?fe.Replace:fe.Push,{formMethod:F,formAction:K,formEncType:we}=g.navigation;!j&&!I&&F&&K&&we&&(j=oc(g.navigation));let V=j||I;if(mv.has(w.status)&&V&&ut(V.formMethod))await fn(U,A,{submission:de({},V,{formAction:w.location}),preventScrollReset:T});else{let q=Eo(A,j);await fn(U,A,{overrideNavigation:q,fetcherSubmission:I,preventScrollReset:T})}}async function Lu(g,w,k,j,I){let W=await Promise.all([...k.map(F=>Nr("loader",I,F,w,i,l,u,s.v7_relativeSplatPath)),...j.map(F=>F.matches&&F.match&&F.controller?Nr("loader",Lr(e.history,F.path,F.controller.signal),F.match,F.matches,i,l,u,s.v7_relativeSplatPath):{type:se.error,error:Ze(404,{pathname:F.path})})]),A=W.slice(0,k.length),U=W.slice(k.length);return await Promise.all([ic(g,k,A,A.map(()=>I.signal),!1,v.loaderData),ic(g,j.map(F=>F.match),U,j.map(F=>F.controller?F.controller.signal:null),!0)]),{results:W,loaderResults:A,fetcherResults:U}}function Bi(){Ge=!0,Dn.push(...Vi()),ee.forEach((g,w)=>{re.has(w)&&(Mt.push(w),Ft(w))})}function It(g,w,k){k===void 0&&(k={}),v.fetchers.set(g,w),Ve({fetchers:new Map(v.fetchers)},{flushSync:(k&&k.flushSync)===!0})}function gr(g,w,k,j){j===void 0&&(j={});let I=Qr(v.matches,w);wl(g),Ve({errors:{[I.route.id]:k},fetchers:new Map(v.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function Tu(g){return s.v7_fetcherPersist&&(pt.set(g,(pt.get(g)||0)+1),ke.has(g)&&ke.delete(g)),v.fetchers.get(g)||vv}function wl(g){let w=v.fetchers.get(g);re.has(g)&&!(w&&w.state==="loading"&&B.has(g))&&Ft(g),ee.delete(g),B.delete(g),G.delete(g),ke.delete(g),v.fetchers.delete(g)}function ip(g){if(s.v7_fetcherPersist){let w=(pt.get(g)||0)-1;w<=0?(pt.delete(g),ke.add(g)):pt.set(g,w)}else wl(g);Ve({fetchers:new Map(v.fetchers)})}function Ft(g){let w=re.get(g);$(w,"Expected fetch controller: "+g),w.abort(),re.delete(g)}function ju(g){for(let w of g){let k=Tu(w),j=Ht(k.data);v.fetchers.set(w,j)}}function Du(){let g=[],w=!1;for(let k of G){let j=v.fetchers.get(k);$(j,"Expected fetcher: "+k),j.state==="loading"&&(G.delete(k),g.push(k),w=!0)}return ju(g),w}function Mu(g){let w=[];for(let[k,j]of B)if(j0}function op(g,w){let k=v.blockers.get(g)||Rr;return De.get(g)!==w&&De.set(g,w),k}function zu(g){v.blockers.delete(g),De.delete(g)}function xl(g,w){let k=v.blockers.get(g)||Rr;$(k.state==="unblocked"&&w.state==="blocked"||k.state==="blocked"&&w.state==="blocked"||k.state==="blocked"&&w.state==="proceeding"||k.state==="blocked"&&w.state==="unblocked"||k.state==="proceeding"&&w.state==="unblocked","Invalid blocker state transition: "+k.state+" -> "+w.state);let j=new Map(v.blockers);j.set(g,w),Ve({blockers:j})}function Iu(g){let{currentLocation:w,nextLocation:k,historyAction:j}=g;if(De.size===0)return;De.size>1&&Nn(!1,"A router only supports one blocker at a time");let I=Array.from(De.entries()),[W,A]=I[I.length-1],U=v.blockers.get(W);if(!(U&&U.state==="proceeding")&&A({currentLocation:w,nextLocation:k,historyAction:j}))return W}function Vi(g){let w=[];return lt.forEach((k,j)=>{(!g||g(j))&&(k.cancel(),w.push(j),lt.delete(j))}),w}function ap(g,w,k){if(m=g,x=w,S=k||null,!y&&v.navigation===So){y=!0;let j=Ou(v.location,v.matches);j!=null&&Ve({restoreScrollPosition:j})}return()=>{m=null,x=null,S=null}}function Fu(g,w){return S&&S(g,w.map(j=>Km(j,v.loaderData)))||g.key}function up(g,w){if(m&&x){let k=Fu(g,w);m[k]=x()}}function Ou(g,w){if(m){let k=Fu(g,w),j=m[k];if(typeof j=="number")return j}return null}function sp(g){i={},a=wa(g,l,void 0,i)}return L={get basename(){return u},get future(){return s},get state(){return v},get routes(){return o},get window(){return t},initialize:Jf,subscribe:qf,enableScrollRestoration:ap,navigate:Nu,fetch:np,revalidate:bf,createHref:g=>e.history.createHref(g),encodeLocation:g=>e.history.encodeLocation(g),getFetcher:Tu,deleteFetcher:ip,dispose:Zf,getBlocker:op,deleteBlocker:zu,_internalFetchControllers:re,_internalActiveDeferreds:lt,_internalSetRoutes:sp},L}function wv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Sa(e,t,n,r,l,i,o,a){let u,s;if(o){u=[];for(let p of t)if(u.push(p),p.route.id===o){s=p;break}}else u=t,s=t[t.length-1];let c=ku(l||".",Eu(u,i),ln(e.pathname,n)||e.pathname,a==="path");return l==null&&(c.search=e.search,c.hash=e.hash),(l==null||l===""||l===".")&&s&&s.route.index&&!Pu(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:_t([n,c.pathname])),Ln(c)}function Js(e,t,n,r){if(!r||!wv(r))return{path:n};if(r.formMethod&&!_v(r.formMethod))return{path:n,error:Ze(405,{method:r.formMethod})};let l=()=>({path:n,error:Ze(400,{type:"invalid-body"})}),i=r.formMethod||"get",o=e?i.toUpperCase():i.toLowerCase(),a=Uf(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ut(o))return l();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((S,x)=>{let[y,_]=x;return""+S+y+"="+_+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!ut(o))return l();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return l()}}}$(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=Ea(r.formData),s=r.formData;else if(r.body instanceof FormData)u=Ea(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=ec(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=ec(u)}catch{return l()}let c={formMethod:o,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(ut(c.formMethod))return{path:n,submission:c};let p=Dt(n);return t&&p.search&&Pu(p.search)&&u.append("index",""),p.search="?"+u,{path:Ln(p),submission:c}}function xv(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Zs(e,t,n,r,l,i,o,a,u,s,c,p,m,S,x,y){let _=y?Object.values(y)[0]:x?Object.values(x)[0]:void 0,f=e.createURL(t.location),d=e.createURL(l),h=y?Object.keys(y)[0]:void 0,L=xv(n,h).filter((R,T)=>{let{route:z}=R;if(z.lazy)return!0;if(z.loader==null)return!1;if(i)return z.loader.hydrate?!0:t.loaderData[z.id]===void 0&&(!t.errors||t.errors[z.id]===void 0);if(Sv(t.loaderData,t.matches[T],R)||a.some(ve=>ve===R.route.id))return!0;let O=t.matches[T],X=R;return qs(R,de({currentUrl:f,currentParams:O.params,nextUrl:d,nextParams:X.params},r,{actionResult:_,defaultShouldRevalidate:o||f.pathname+f.search===d.pathname+d.search||f.search!==d.search||Of(O,X)}))}),v=[];return c.forEach((R,T)=>{if(i||!n.some(he=>he.route.id===R.routeId)||s.has(T))return;let z=Gn(m,R.path,S);if(!z){v.push({key:T,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(T),X=ka(z,R.path),ve=!1;p.has(T)?ve=!1:u.includes(T)?ve=!0:O&&O.state!=="idle"&&O.data===void 0?ve=o:ve=qs(X,de({currentUrl:f,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:n[n.length-1].params},r,{actionResult:_,defaultShouldRevalidate:o})),ve&&v.push({key:T,routeId:R.routeId,path:R.path,matches:z,match:X,controller:new AbortController})}),[L,v]}function Sv(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function Of(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function qs(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function bs(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];$(l,"No route found in manifest");let i={};for(let o in r){let u=l[o]!==void 0&&o!=="hasErrorBoundary";Nn(!u,'Route "'+l.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!Wm.has(o)&&(i[o]=r[o])}Object.assign(l,i),Object.assign(l,de({},t(l),{lazy:void 0}))}async function Nr(e,t,n,r,l,i,o,a,u){u===void 0&&(u={});let s,c,p,m=y=>{let _,f=new Promise((d,h)=>_=h);return p=()=>_(),t.signal.addEventListener("abort",p),Promise.race([y({request:t,params:n.params,context:u.requestContext}),f])};try{let y=n.route[e];if(n.route.lazy)if(y){let _,f=await Promise.all([m(y).catch(d=>{_=d}),bs(n.route,i,l)]);if(_)throw _;c=f[0]}else if(await bs(n.route,i,l),y=n.route[e],y)c=await m(y);else if(e==="action"){let _=new URL(t.url),f=_.pathname+_.search;throw Ze(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:se.data,data:void 0};else if(y)c=await m(y);else{let _=new URL(t.url),f=_.pathname+_.search;throw Ze(404,{pathname:f})}$(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){s=se.error,c=y}finally{p&&t.signal.removeEventListener("abort",p)}if(Pv(c)){let y=c.status;if(hv.has(y)){let f=c.headers.get("Location");if($(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!If.test(f))f=Sa(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,f,a);else if(!u.isStaticRequest){let d=new URL(t.url),h=f.startsWith("//")?new URL(d.protocol+f):new URL(f),E=ln(h.pathname,o)!=null;h.origin===d.origin&&E&&(f=h.pathname+h.search+h.hash)}if(u.isStaticRequest)throw c.headers.set("Location",f),c;return{type:se.redirect,status:y,location:f,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:s===se.error?se.error:se.data,response:c};let _;try{let f=c.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?_=await c.json():_=await c.text()}catch(f){return{type:se.error,error:f}}return s===se.error?{type:s,error:new Cu(y,c.statusText,_),headers:c.headers}:{type:se.data,data:_,statusCode:c.status,headers:c.headers}}if(s===se.error)return{type:s,error:c};if(Cv(c)){var S,x;return{type:se.deferred,deferredData:c,statusCode:(S=c.init)==null?void 0:S.status,headers:((x=c.init)==null?void 0:x.headers)&&new Headers(c.init.headers)}}return{type:se.data,data:c}}function Lr(e,t,n,r){let l=e.createURL(Uf(t)).toString(),i={signal:n};if(r&&ut(r.formMethod)){let{formMethod:o,formEncType:a}=r;i.method=o.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=Ea(r.formData):i.body=r.formData}return new Request(l,i)}function Ea(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function ec(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ev(e,t,n,r,l){let i={},o=null,a,u=!1,s={};return n.forEach((c,p)=>{let m=t[p].route.id;if($(!xn(c),"Cannot handle redirect results in processLoaderData"),Jn(c)){let S=Qr(e,m),x=c.error;r&&(x=Object.values(r)[0],r=void 0),o=o||{},o[S.route.id]==null&&(o[S.route.id]=x),i[m]=void 0,u||(u=!0,a=Mf(c.error)?c.error.status:500),c.headers&&(s[m]=c.headers)}else wn(c)?(l.set(m,c.deferredData),i[m]=c.deferredData.data):i[m]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[m]=c.headers)}),r&&(o=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:o,statusCode:a||200,loaderHeaders:s}}function tc(e,t,n,r,l,i,o,a){let{loaderData:u,errors:s}=Ev(t,n,r,l,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function rc(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ze(e,t){let{pathname:n,routeId:r,method:l,type:i}=t===void 0?{}:t,o="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(o="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(o="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",a='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new Cu(e||500,o,new Error(a),!0)}function lc(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(xn(n))return{result:n,idx:t}}}function Uf(e){let t=typeof e=="string"?Dt(e):e;return Ln(de({},t,{hash:""}))}function kv(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function wn(e){return e.type===se.deferred}function Jn(e){return e.type===se.error}function xn(e){return(e&&e.type)===se.redirect}function Cv(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Pv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function _v(e){return pv.has(e.toLowerCase())}function ut(e){return dv.has(e.toLowerCase())}async function ic(e,t,n,r,l,i){for(let o=0;op.route.id===u.route.id),c=s!=null&&!Of(s,u)&&(i&&i[u.route.id])!==void 0;if(wn(a)&&(l||c)){let p=r[o];$(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await Hf(a,p,l).then(m=>{m&&(n[o]=m||n[o])})}}}async function Hf(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:se.data,data:e.deferredData.unwrappedData}}catch(l){return{type:se.error,error:l}}return{type:se.data,data:e.deferredData.data}}}function Pu(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ka(e,t){let n=typeof t=="string"?Dt(t).search:t.search;if(e[e.length-1].route.index&&Pu(n||""))return e[e.length-1];let r=Df(e);return r[r.length-1]}function oc(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:i,json:o}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Eo(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Rv(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Tr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Nv(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ht(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Lv(e,t){try{let n=e.sessionStorage.getItem(Ff);if(n){let r=JSON.parse(n);for(let[l,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(l,new Set(i||[]))}}catch{}}function Tv(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Ff,JSON.stringify(n))}catch(r){Nn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.21.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),P.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let p=ku(s,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:_t([t,p.pathname])),(c.replace?r.replace:r.push)(p,c.state,c)},[t,r,o,i,e])}const zv=P.createContext(null);function Iv(e){let t=P.useContext(dn).outlet;return t&&P.createElement(zv.Provider,{value:e},t)}function Ai(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(cn),{matches:l}=P.useContext(dn),{pathname:i}=yl(),o=JSON.stringify(Eu(l,r.v7_relativeSplatPath));return P.useMemo(()=>ku(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Fv(e,t,n,r){gl()||$(!1);let{navigator:l}=P.useContext(cn),{matches:i}=P.useContext(dn),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let s=yl(),c;if(t){var p;let _=typeof t=="string"?Dt(t):t;u==="/"||(p=_.pathname)!=null&&p.startsWith(u)||$(!1),c=_}else c=s;let m=c.pathname||"/",S=u==="/"?m:m.slice(u.length)||"/",x=Gn(e,{pathname:S}),y=Bv(x&&x.map(_=>Object.assign({},_,{params:Object.assign({},a,_.params),pathname:_t([u,l.encodeLocation?l.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:_t([u,l.encodeLocation?l.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),i,n,r);return t&&y?P.createElement(Hi.Provider,{value:{location:cl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:fe.Pop}},y):y}function Ov(){let e=Qv(),t=Mf(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)"},i=null;return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:l},n):null,i)}const Uv=P.createElement(Ov,null);class Hv extends P.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?P.createElement(dn.Provider,{value:this.props.routeContext},P.createElement(Af.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Av(e){let{routeContext:t,match:n,children:r}=e,l=P.useContext(vl);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(dn.Provider,{value:t},r)}function Bv(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let c=o.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id]));c>=0||$(!1),o=o.slice(0,Math.min(o.length,c+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((c,p,m)=>{let S,x=!1,y=null,_=null;n&&(S=a&&p.route.id?a[p.route.id]:void 0,y=p.route.errorElement||Uv,u&&(s<0&&m===0?(Yv("route-fallback",!1),x=!0,_=null):s===m&&(x=!0,_=p.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,m+1)),d=()=>{let h;return S?h=y:x?h=_:p.route.Component?h=P.createElement(p.route.Component,null):p.route.element?h=p.route.element:h=c,P.createElement(Av,{match:p,routeContext:{outlet:c,matches:f,isDataRoute:n!=null},children:h})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?P.createElement(Hv,{location:n.location,revalidation:n.revalidation,component:y,error:S,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):d()},null)}var Vf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vf||{}),Ei=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}(Ei||{});function Vv(e){let t=P.useContext(vl);return t||$(!1),t}function $v(e){let t=P.useContext(_u);return t||$(!1),t}function Wv(e){let t=P.useContext(dn);return t||$(!1),t}function $f(e){let t=Wv(),n=t.matches[t.matches.length-1];return n.route.id||$(!1),n.route.id}function Qv(){var e;let t=P.useContext(Af),n=$v(Ei.UseRouteError),r=$f(Ei.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Kv(){let{router:e}=Vv(Vf.UseNavigateStable),t=$f(Ei.UseNavigateStable),n=P.useRef(!1);return Bf(()=>{n.current=!0}),P.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,cl({fromRouteId:t},i)))},[e,t])}const ac={};function Yv(e,t,n){!t&&!ac[e]&&(ac[e]=!0)}function Xv(e){return Iv(e.context)}function Gv(e){let{basename:t="/",children:n=null,location:r,navigationType:l=fe.Pop,navigator:i,static:o=!1,future:a}=e;gl()&&$(!1);let u=t.replace(/^\/*/,"/"),s=P.useMemo(()=>({basename:u,navigator:i,static:o,future:cl({v7_relativeSplatPath:!1},a)}),[u,a,i,o]);typeof r=="string"&&(r=Dt(r));let{pathname:c="/",search:p="",hash:m="",state:S=null,key:x="default"}=r,y=P.useMemo(()=>{let _=ln(c,u);return _==null?null:{location:{pathname:_,search:p,hash:m,state:S,key:x},navigationType:l}},[u,c,p,m,S,x,l]);return y==null?null:P.createElement(cn.Provider,{value:s},P.createElement(Hi.Provider,{children:n,value:y}))}new Promise(()=>{});function Jv(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:P.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:P.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.21.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function Zv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qv(e,t){return e.button===0&&(!t||t==="_self")&&!Zv(e)}const bv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],e0=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function t0(e,t){return yv({basename:t==null?void 0:t.basename,future:cr({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Bm({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||n0(),routes:e,mapRouteProperties:Jv,window:t==null?void 0:t.window}).initialize()}function n0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=cr({},t,{errors:r0(t.errors)})),t}function r0(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,l]of t)if(l&&l.__type==="RouteErrorResponse")n[r]=new Cu(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let i=window[l.__subType];if(typeof i=="function")try{let o=new i(l.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let i=new Error(l.message);i.stack="",n[r]=i}}else n[r]=l;return n}const Qf=P.createContext({isTransitioning:!1}),l0=P.createContext(new Map),i0="startTransition",uc=Lp[i0],o0="flushSync",sc=Hm[o0];function a0(e){uc?uc(e):e()}function jr(e){sc?sc(e):e()}class u0{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function s0(e){let{fallbackElement:t,router:n,future:r}=e,[l,i]=P.useState(n.state),[o,a]=P.useState(),[u,s]=P.useState({isTransitioning:!1}),[c,p]=P.useState(),[m,S]=P.useState(),[x,y]=P.useState(),_=P.useRef(new Map),{v7_startTransition:f}=r||{},d=P.useCallback(R=>{f?a0(R):R()},[f]),h=P.useCallback((R,T)=>{let{deletedFetchers:z,unstable_flushSync:O,unstable_viewTransitionOpts:X}=T;z.forEach(he=>_.current.delete(he)),R.fetchers.forEach((he,Ge)=>{he.data!==void 0&&_.current.set(Ge,he.data)});let ve=n.window==null||typeof n.window.document.startViewTransition!="function";if(!X||ve){O?jr(()=>i(R)):d(()=>i(R));return}if(O){jr(()=>{m&&(c&&c.resolve(),m.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:X.currentLocation,nextLocation:X.nextLocation})});let he=n.window.document.startViewTransition(()=>{jr(()=>i(R))});he.finished.finally(()=>{jr(()=>{p(void 0),S(void 0),a(void 0),s({isTransitioning:!1})})}),jr(()=>S(he));return}m?(c&&c.resolve(),m.skipTransition(),y({state:R,currentLocation:X.currentLocation,nextLocation:X.nextLocation})):(a(R),s({isTransitioning:!0,flushSync:!1,currentLocation:X.currentLocation,nextLocation:X.nextLocation}))},[n.window,m,c,_,d]);P.useLayoutEffect(()=>n.subscribe(h),[n,h]),P.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new u0)},[u]),P.useEffect(()=>{if(c&&o&&n.window){let R=o,T=c.promise,z=n.window.document.startViewTransition(async()=>{d(()=>i(R)),await T});z.finished.finally(()=>{p(void 0),S(void 0),a(void 0),s({isTransitioning:!1})}),S(z)}},[d,o,c,n.window]),P.useEffect(()=>{c&&o&&l.location.key===o.location.key&&c.resolve()},[c,m,l.location,o]),P.useEffect(()=>{!u.isTransitioning&&x&&(a(x.state),s({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),y(void 0))},[u.isTransitioning,x]),P.useEffect(()=>{},[]);let E=P.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,T,z)=>n.navigate(R,{state:T,preventScrollReset:z==null?void 0:z.preventScrollReset}),replace:(R,T,z)=>n.navigate(R,{replace:!0,state:T,preventScrollReset:z==null?void 0:z.preventScrollReset})}),[n]),L=n.basename||"/",v=P.useMemo(()=>({router:n,navigator:E,static:!1,basename:L}),[n,E,L]);return P.createElement(P.Fragment,null,P.createElement(vl.Provider,{value:v},P.createElement(_u.Provider,{value:l},P.createElement(l0.Provider,{value:_.current},P.createElement(Qf.Provider,{value:u},P.createElement(Gv,{basename:L,location:l.location,navigationType:l.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},l.initialized||n.future.v7_partialHydration?P.createElement(c0,{routes:n.routes,future:n.future,state:l}):t))))),null)}function c0(e){let{routes:t,future:n,state:r}=e;return Fv(t,void 0,r,n)}const d0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",f0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ca=P.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:p}=t,m=Wf(t,bv),{basename:S}=P.useContext(cn),x,y=!1;if(typeof s=="string"&&f0.test(s)&&(x=s,d0))try{let h=new URL(window.location.href),E=s.startsWith("//")?new URL(h.protocol+s):new URL(s),L=ln(E.pathname,S);E.origin===h.origin&&L!=null?s=L+E.search+E.hash:y=!0}catch{}let _=jv(s,{relative:l}),f=h0(s,{replace:o,state:a,target:u,preventScrollReset:c,relative:l,unstable_viewTransition:p});function d(h){r&&r(h),h.defaultPrevented||f(h)}return P.createElement("a",cr({},m,{href:x||_,onClick:y||i?r:d,ref:n,target:u}))}),ko=P.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:a,to:u,unstable_viewTransition:s,children:c}=t,p=Wf(t,e0),m=Ai(u,{relative:p.relative}),S=yl(),x=P.useContext(_u),{navigator:y}=P.useContext(cn),_=x!=null&&m0(m)&&s===!0,f=y.encodeLocation?y.encodeLocation(m).pathname:m.pathname,d=S.pathname,h=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;l||(d=d.toLowerCase(),h=h?h.toLowerCase():null,f=f.toLowerCase());const E=f!=="/"&&f.endsWith("/")?f.length-1:f.length;let L=d===f||!o&&d.startsWith(f)&&d.charAt(E)==="/",v=h!=null&&(h===f||!o&&h.startsWith(f)&&h.charAt(f.length)==="/"),R={isActive:L,isPending:v,isTransitioning:_},T=L?r:void 0,z;typeof i=="function"?z=i(R):z=[i,L?"active":null,v?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(R):a;return P.createElement(Ca,cr({},p,{"aria-current":T,className:z,ref:n,style:O,to:u,unstable_viewTransition:s}),typeof c=="function"?c(R):c)});var Pa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pa||(Pa={}));var cc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cc||(cc={}));function p0(e){let t=P.useContext(vl);return t||$(!1),t}function h0(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,unstable_viewTransition:a}=t===void 0?{}:t,u=Dv(),s=yl(),c=Ai(e,{relative:o});return P.useCallback(p=>{if(qv(p,n)){p.preventDefault();let m=r!==void 0?r:Ln(s)===Ln(c);u(e,{replace:m,state:l,preventScrollReset:i,relative:o,unstable_viewTransition:a})}},[s,u,c,r,l,n,e,i,o,a])}function m0(e,t){t===void 0&&(t={});let n=P.useContext(Qf);n==null&&$(!1);let{basename:r}=p0(Pa.useViewTransitionState),l=Ai(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ln(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=ln(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xa(l.pathname,o)!=null||xa(l.pathname,i)!=null}const Ct="/expenses-react-app/",Kf=({children:e})=>C.jsx("div",{className:"px-6 sm:px-12 lg:px-20",children:e}),v0=()=>C.jsxs("ul",{className:"flex items-center gap-8",children:[C.jsx("li",{children:C.jsx(ko,{to:Ct,className:({isActive:e})=>e?"relative after:absolute after:content-[''] after:left-0 after:right-0 after:-bottom-1.5 after:w-full after:h-0.5 after:bg-light no-underline text-light":"text-light no-underline",end:!0,children:"Home"})}),C.jsx("li",{children:C.jsx(ko,{to:`${Ct}login`,className:({isActive:e})=>e?"relative after:absolute after:content-[''] after:left-0 after:right-0 after:-bottom-1.5 after:w-full after:h-0.5 after:bg-light no-underline text-light":"text-light no-underline",children:"Log In"})}),C.jsx("li",{children:C.jsx(ko,{to:`${Ct}register`,className:({isActive:e})=>e?"relative after:absolute after:content-[''] after:left-0 after:right-0 after:-bottom-1.5 after:w-full after:h-0.5 after:bg-light no-underline text-light":"text-light no-underline",children:"Sign Up"})})]}),g0="/expenses-react-app/assets/logo-HTwwoxjU.png",y0=()=>C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("img",{className:"w-12 h-12",src:g0,alt:"Expenses React App Logo"}),C.jsx("span",{className:"block font-medium text-light",children:"Expense Tracker"})]}),w0=()=>C.jsx("header",{className:"py-4 bg-primary",children:C.jsx(Kf,{children:C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsx(y0,{}),C.jsx("nav",{children:C.jsx(v0,{})})]})})}),x0=()=>C.jsxs(C.Fragment,{children:[C.jsx(w0,{}),C.jsx("main",{style:{padding:"3rem 0"},children:C.jsx(Kf,{children:C.jsx(Xv,{})})})]}),Ru=()=>{const[e,t]=P.useState(!1),[n,r]=P.useState(null),l=P.useCallback(async(i,o)=>{t(!0),r(null);try{const a=await fetch(i.url,{method:i.method?i.method:"GET",headers:i.headers?i.headers:{},body:i.body?JSON.stringify(i.body):null});if(!a.ok)throw new Error("Request failed!");const u=await a.json();o(u)}catch(a){r(a.message||"Oops... Something went wrong!")}t(!1)},[]);return{isLoading:e,error:n,sendRequest:l}};class Yf{constructor(t,n,r,l){yr(this,"id");yr(this,"title");yr(this,"amount");yr(this,"date");this.id=t,this.title=n,this.amount=r,this.date=l}}const hr=({className:e,tagName:t,children:n})=>{const r=t||"div";return C.jsx(r,{className:e?`overflow-hidden rounded-md shadow-card ${e}`:"overflow-hidden rounded-md shadow-card",children:n})},S0=({selected:e,onSelectedItem:t})=>{const n=r=>{t(r.target.value)};return C.jsx("div",{className:"px-4 text-light",children:C.jsxs("div",{className:"my-5 flex items-center justify-between",children:[C.jsx("label",{className:"font-bold",children:"Filter by year"}),C.jsxs("select",{className:"py-2 px-6 font-bold rounded-md text-dark",value:e,onChange:n,children:[C.jsx("option",{value:"none",children:"All"}),C.jsx("option",{value:"2023",children:"2023"}),C.jsx("option",{value:"2022",children:"2022"}),C.jsx("option",{value:"2021",children:"2021"}),C.jsx("option",{value:"2020",children:"2020"}),C.jsx("option",{value:"2019",children:"2019"})]})]})})},on=({id:e,className:t,type:n,disabled:r,onClick:l,children:i})=>C.jsx("button",{id:e,className:t?`py-3.5 px-7 md:py-4 md:px-8 w-fit rounded-xl text-light bg-accent hover:bg-accent-light active:bg-accent-light disabled:bg-opacity-80 transition-all ${t}`:"py-3.5 px-7 md:py-4 md:px-8 w-fit rounded-xl text-light bg-accent hover:bg-accent-light active:bg-accent-light disabled:bg-opacity-80 transition-all",type:n||"button",onClick:l,disabled:r,children:i}),E0=({title:e,text:t,onConfirm:n})=>{const r=P.useContext(Su),l=i=>{(i.target.classList.contains("modal")||i.target.id==="cancel-btn")&&r.removeModal()};return C.jsx("div",{className:r.isActive?"modal fixed z-[5] top-0 left-0 w-full h-full flex items-center justify-center opacity-100 visible bg-dark bg-opacity-60 transition-all":"fixed -z-[1] top-0 left-0 w-full h-full flex items-center justify-center opacity-0 invisible bg-dark bg-opacity-60 transition-all",onClick:l,children:C.jsxs(hr,{className:"p-8 flex flex-col text-dark bg-light",children:[C.jsx("h2",{className:"mb-5 text-xl font-semibold text-center",children:e}),C.jsx("p",{className:"mb-8",children:t}),C.jsxs("div",{className:"flex justify-center gap-4",children:[C.jsx(on,{id:"cancel-btn",type:"button",onClick:l,children:"Close"}),C.jsx(on,{id:"action-btn",className:"bg-danger hover:bg-[#ce0000]",type:"button",onClick:n,children:"Delete"})]})]})})},k0=({date:e})=>{const t=e.toLocaleString("en-US",{month:"long"}),n=e.toLocaleString("en-US",{day:"2-digit"}),r=e.getFullYear();return C.jsxs("div",{className:"w-20 h-20 flex flex-col items-center justify-center rounded-xl text-light bg-primary",children:[C.jsx("span",{className:"text-xs md:text-sm font-semibold",children:t}),C.jsx("span",{className:"text-xl md:text-2xl font-bold",children:r}),C.jsx("span",{className:"text-xs md:text-sm",children:n})]})},C0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='white'%20class='bi%20bi-trash3'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M6.5%201h3a.5.5%200%200%201%20.5.5v1H6v-1a.5.5%200%200%201%20.5-.5ZM11%202.5v-1A1.5%201.5%200%200%200%209.5%200h-3A1.5%201.5%200%200%200%205%201.5v1H2.506a.58.58%200%200%200-.01%200H1.5a.5.5%200%200%200%200%201h.538l.853%2010.66A2%202%200%200%200%204.885%2016h6.23a2%202%200%200%200%201.994-1.84l.853-10.66h.538a.5.5%200%200%200%200-1h-.995a.59.59%200%200%200-.01%200H11Zm1.958%201-.846%2010.58a1%201%200%200%201-.997.92h-6.23a1%201%200%200%201-.997-.92L3.042%203.5h9.916Zm-7.487%201a.5.5%200%200%201%20.528.47l.5%208.5a.5.5%200%200%201-.998.06L5%205.03a.5.5%200%200%201%20.47-.53Zm5.058%200a.5.5%200%200%201%20.47.53l-.5%208.5a.5.5%200%201%201-.998-.06l.5-8.5a.5.5%200%200%201%20.528-.47ZM8%204.5a.5.5%200%200%201%20.5.5v8.5a.5.5%200%200%201-1%200V5a.5.5%200%200%201%20.5-.5Z'/%3e%3c/svg%3e",P0=({id:e,title:t,amount:n,date:r,onDelete:l})=>{const i=()=>{e&&l(e,t)};return C.jsxs(hr,{className:"p-3 my-4 flex items-center justify-between bg-secondary",tagName:"li",children:[C.jsx(k0,{date:r}),C.jsxs("div",{className:"flex-[1] flex flex-col-reverse items-end md:flex-row md:items-center justify-start gap-3",children:[C.jsx("h2",{className:"flex-[1] md:mx-4 md:text-xl text-right md:text-left text-light",children:t}),C.jsxs("span",{className:"p-2 md:py-2 md:px-6 md:text-xl rounded-xl text-light bg-accent",children:["$",n]})]}),C.jsx(on,{className:"!p-3 ml-3 bg-dark hover:shadow-card focus:scale-95 transition-all",type:"button",onClick:i,children:C.jsx("img",{className:"w-4 h-4 md:w-5 md:h-5",src:C0,alt:"Delete"})})]})},_0=({items:e,onDeleteItem:t,isLoading:n,error:r})=>{const l=P.useContext(Su),[i,o]=P.useState({expenseId:"",expenseTitle:""}),{sendRequest:a}=Ru(),u=(y,_)=>{l.displayModal(),o({expenseId:y,expenseTitle:_})},s=`Are you sure you want to delete expense "${i.expenseTitle}"?`,c="Delete expense",p=y=>{l.removeModal(),t(y)},m=async()=>{a({url:`https://react-expenses-30273-default-rtdb.europe-west1.firebasedatabase.app/expenses/${i.expenseId}.json`,method:"DELETE",headers:{"Content-Type":"application/json"}},p.bind(null,i.expenseId))};let S=C.jsx("h2",{className:"mt-8 md:text-xl font-bold text-center text-light",children:"Found no expenses."});e.length>0&&(S=C.jsx("ul",{className:"list-none",children:e.map(y=>C.jsx(P0,{id:y.id,title:y.title,amount:y.amount,date:y.date,onDelete:u},y.id))}));let x=S;return n&&(x=C.jsx("h2",{className:"mt-8 md:text-xl font-bold text-center text-light",children:"Loading expenses..."})),r&&(x=C.jsx("h2",{className:"mt-8 md:text-xl font-bold text-center text-light",children:r})),C.jsxs(C.Fragment,{children:[Lf.createPortal(C.jsx(E0,{title:c,text:s,onConfirm:m}),document.getElementById("modal-root")),x]})},R0=({total:e,value:t,label:n})=>{let r="0%";return e>0&&(r=Math.round(t/e*100)+"%"),C.jsxs("div",{className:"h-24 sm:h-28 flex flex-col items-center gap-1",children:[C.jsx("div",{className:"overflow-hidden h-full w-5 flex flex-col justify-end rounded-xl border border-secondary bg-[#c3b4f3]",children:C.jsx("div",{className:"w-full bg-[#4826b9] transition-all",style:{height:r}})}),C.jsx("div",{className:"text-sm font-semibold text-center text-dark",children:n})]})},N0="_chart_n7zub_1",L0={chart:N0},T0=({dataPoints:e})=>{const n=e.map(r=>r.value).reduce((r,l)=>r+l,0);return C.jsx(hr,{className:`p-5 flex flex-wrap gap-y-4 bg-[#f8dfff] ${L0.chart}`,children:e.map(r=>C.jsx(R0,{value:r.value,total:n,label:r.label},r.label))})},dc=[{label:"Jan",value:0},{label:"Feb",value:0},{label:"Mar",value:0},{label:"Apr",value:0},{label:"May",value:0},{label:"Jun",value:0},{label:"Jul",value:0},{label:"Aug",value:0},{label:"Sep",value:0},{label:"Oct",value:0},{label:"Nov",value:0},{label:"Dec",value:0}],j0=({expenses:e})=>{for(const t of e){const n=t.date.getMonth();dc[n].value+=t.amount}return C.jsx(T0,{dataPoints:dc})},D0=({data:e,onDeleteItem:t,isLoading:n,error:r})=>{const[l,i]=P.useState("none"),o=u=>{i(u)};let a;return l!=="none"?a=e.filter(u=>u.date.getFullYear().toString()===l):a=e,C.jsxs(hr,{className:"p-6 mt-8 mx-auto max-w-[50rem] bg-primary",children:[C.jsx(S0,{selected:l,onSelectedItem:o}),C.jsx(j0,{expenses:a}),C.jsx(_0,{isLoading:n,error:r,items:a,onDeleteItem:t})]})},Xf={value:"",isValid:null},M0=(e,t)=>{switch(t.type){case"USER_INPUT":return{value:t.value,isValid:t.validate(t.value)};case"INPUT_BLUR":return{value:e.value,isValid:t.validate(e.value)};case"CLEAR_INPUT":return Xf;default:return{value:"",isValid:!1}}},en=e=>{const[t,n]=P.useReducer(M0,Xf),r=o=>{n({type:"USER_INPUT",value:o.target.value,validate:e})},l=()=>{n({type:"INPUT_BLUR",validate:e})},i=()=>{n({type:"CLEAR_INPUT"})};return{value:t.value,isValid:t.isValid,inputChangeHandler:r,inputBlurHandler:l,inputClearHandler:i}},z0={"new-expense-controls":"_new-expense-controls_170ne_1"},tn=({label:e,id:t,className:n,type:r,min:l,max:i,step:o,value:a,hasError:u,onChange:s,onBlur:c})=>{let p;return u?p=n?`p-2 w-full h-10 text-dark rounded-md outline outline-2 outline-danger ${n}`:"p-2 w-full h-10 text-dark rounded-md outline outline-2 outline-danger":p=n?`p-2 w-full h-10 text-dark rounded-md ${n}`:"p-2 w-full h-10 text-dark rounded-md",C.jsxs("div",{children:[C.jsx("label",{className:"mb-2 block text-sm sm:text-base font-bold text-dark",htmlFor:t,children:e}),C.jsx("input",{id:t,className:p,type:r,min:l,max:i,step:o,value:a,onChange:s,onBlur:c})]})},Co=e=>e.trim().length!==0,I0=({onSaveExpenseData:e,onCancel:t,loading:n})=>{const{value:r,isValid:l,inputChangeHandler:i,inputBlurHandler:o,inputClearHandler:a}=en(Co),{value:u,isValid:s,inputChangeHandler:c,inputBlurHandler:p,inputClearHandler:m}=en(Co),{value:S,isValid:x,inputChangeHandler:y,inputBlurHandler:_,inputClearHandler:f}=en(Co),[d,h]=P.useState(!1);P.useEffect(()=>{const v=setTimeout(()=>{h(l&&s&&x)},250);return()=>{clearTimeout(v)}},[l,s,x]);const E=()=>{a(),m(),f()},L=v=>{if(v.preventDefault(),d){const R={title:r,amount:+u,date:new Date(S)};e(R),E()}else l?s?_():p():o()};return C.jsxs("form",{onSubmit:L,children:[C.jsxs("div",{className:`mb-6 flex flex-wrap justify-stretch md:justify-center gap-6 text-left ${z0["new-expense-controls"]}`,children:[C.jsx(tn,{label:"Title",id:"title",type:"text",value:r,hasError:l!==null&&!l,onChange:i,onBlur:o}),C.jsx(tn,{label:"Amount",id:"amount",type:"number",min:"0.01",step:"0.01",value:u,hasError:s!==null&&!s,onChange:c,onBlur:p}),C.jsx(tn,{label:"Date",id:"date",type:"date",min:"2019-01-01",max:"2023-12-31",value:S,hasError:x!==null&&!x,onChange:y,onBlur:_})]}),C.jsxs("div",{className:"flex flex-wrap justify-center md:justify-end gap-4",children:[C.jsx(on,{type:"button",onClick:t,children:"Close"}),C.jsx(on,{type:"submit",children:n?"Sending...":"Add Expense"})]})]})},F0=({onAddExpense:e})=>{const[t,n]=P.useState(!1),{isLoading:r,sendRequest:l}=Ru(),i=(s,c)=>{const p=c.name,m=new Yf(p,s.title,s.amount,s.date);e(m),n(!1)},o=async s=>{l({url:"https://react-expenses-30273-default-rtdb.europe-west1.firebasedatabase.app/expenses.json",method:"POST",headers:{"Content-Type":"application/json"},body:{title:s.title,amount:s.amount,date:s.date.toISOString().split("T")[0]}},i.bind(null,s))},a=()=>{n(!0)},u=()=>{n(!1)};return C.jsx(hr,{className:"p-4 mx-auto max-w-[50rem] text-center bg-background",children:t?C.jsx(I0,{loading:r,onSaveExpenseData:o,onCancel:u}):C.jsx(on,{type:"button",onClick:a,children:"Add New Expense"})})},O0=()=>{const[e,t]=P.useState([]),{isLoading:n,error:r,sendRequest:l}=Ru();P.useEffect(()=>{l({url:"https://react-expenses-30273-default-rtdb.europe-west1.firebasedatabase.app/expenses.json"},u=>{const s=[];for(const c in u)s.push(new Yf(c,u[c].title,u[c].amount,new Date(u[c].date)));t(s)})},[l]);const i=a=>{t(u=>[a,...u])},o=a=>{t(u=>u.filter(s=>s.id!==a))};return C.jsxs(C.Fragment,{children:[C.jsx(F0,{onAddExpense:i}),C.jsx(D0,{data:e,isLoading:n,error:r,onDeleteItem:o})]})},Gf=({children:e,formType:t,onSubmit:n})=>{let r;return t==="login"?r=C.jsxs("p",{className:"mt-5 mb-1 text-center text-primary",children:["Don't have an account yet?"," ",C.jsx(Ca,{className:"ml-1 text-accent",to:`${Ct}register`,children:"Sign Up"})]}):r=C.jsxs("p",{className:"mt-5 mb-1 text-center text-primary",children:["Already have an account?"," ",C.jsx(Ca,{className:"ml-1 text-accent",to:`${Ct}login`,children:"Sign In"})]}),C.jsxs(hr,{className:"p-6 mx-auto max-w-[25rem] bg-background",children:[C.jsx("form",{className:"flex flex-col gap-4",onSubmit:n,children:e}),r]})},Po=e=>e.trim().length!==0,U0=()=>{const{value:e,isValid:t,inputChangeHandler:n,inputBlurHandler:r,inputClearHandler:l}=en(Po),{value:i,isValid:o,inputChangeHandler:a,inputBlurHandler:u,inputClearHandler:s}=en(Po),{value:c,isValid:p,inputChangeHandler:m,inputBlurHandler:S,inputClearHandler:x}=en(Po),[y,_]=P.useState(!1);P.useEffect(()=>{const h=setTimeout(()=>{_(t&&o&&p)},250);return()=>{clearTimeout(h)}},[t,o,p]);const f=()=>{l(),s(),x()},d=h=>{h.preventDefault(),y?(console.log({email:e,username:i,password:c}),f()):t?o?S():u():r()};return C.jsxs(Gf,{formType:"register",onSubmit:d,children:[C.jsx(tn,{label:"Email",id:"email",type:"email",value:e,hasError:t!==null&&!t,onChange:n,onBlur:r}),C.jsx(tn,{label:"Username",id:"username",type:"text",value:i,hasError:o!==null&&!o,onChange:a,onBlur:u}),C.jsx(tn,{label:"Password",id:"password",type:"password",value:c,hasError:p!==null&&!p,onChange:m,onBlur:S}),C.jsx(on,{className:"mt-2 mx-auto",type:"submit",children:"Sign Up"})]})},H0=()=>C.jsx(U0,{}),fc=e=>e.trim().length!==0,A0=()=>{const{value:e,isValid:t,inputChangeHandler:n,inputBlurHandler:r,inputClearHandler:l}=en(fc),{value:i,isValid:o,inputChangeHandler:a,inputBlurHandler:u,inputClearHandler:s}=en(fc),[c,p]=P.useState(!1);P.useEffect(()=>{const x=setTimeout(()=>{p(t&&o)},250);return()=>{clearTimeout(x)}},[t,o]);const m=()=>{l(),s()},S=x=>{x.preventDefault(),c?(console.log({username:e,password:i}),m()):t?u():r()};return C.jsxs(Gf,{formType:"login",onSubmit:S,children:[C.jsx(tn,{label:"Username",id:"username",type:"text",value:e,hasError:t!==null&&!t,onChange:n,onBlur:r}),C.jsx(tn,{label:"Password",id:"password",type:"password",value:i,hasError:o!==null&&!o,onChange:a,onBlur:u}),C.jsx(on,{className:"mt-2 mx-auto",type:"submit",children:"Sign In"})]})},B0=()=>C.jsx(A0,{}),V0=t0([{path:Ct,element:C.jsx(x0,{}),children:[{path:Ct,element:C.jsx(O0,{})},{path:`${Ct}register`,element:C.jsx(H0,{})},{path:`${Ct}login`,element:C.jsx(B0,{})}]}]),$0=()=>C.jsx(s0,{router:V0}),W0=_o.createRoot(document.getElementById("page-root"));W0.render(C.jsx(Am,{children:C.jsx($0,{})})); diff --git a/assets/index-yptOW6Uo.css b/assets/index-yptOW6Uo.css new file mode 100644 index 0000000..c8f4cf6 --- /dev/null +++ b/assets/index-yptOW6Uo.css @@ -0,0 +1 @@ +._chart_n7zub_1{gap:.3rem}._chart_n7zub_1>*{flex:0 1 calc(100% / 12 - .3rem / 12 * (12 - 1))}@media (max-width: 576px){._chart_n7zub_1{gap:.5rem}._chart_n7zub_1>*{flex:0 1 calc(100% / 6 - .5rem / 6 * (6 - 1))}}._new-expense-controls_170ne_1{gap:1.5rem}._new-expense-controls_170ne_1>*{flex:0 1 calc(100% / 3 - 1.5rem / 3 * (3 - 1))}@media (max-width: 768px){._new-expense-controls_170ne_1{gap:1rem}._new-expense-controls_170ne_1>*{flex:0 1 calc(50% - .5rem)}}@media (max-width: 576px){._new-expense-controls_170ne_1{gap:1rem}._new-expense-controls_170ne_1>*{flex:0 1 calc(100% + -0rem)}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.top-0{top:0}.-z-\[1\]{z-index:-1}.z-\[5\]{z-index:5}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.h-10{height:2.5rem}.h-12{height:3rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-full{height:100%}.w-12{width:3rem}.w-20{width:5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[25rem\]{max-width:25rem}.max-w-\[50rem\]{max-width:50rem}.flex-\[1\]{flex:1}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-y-4{row-gap:1rem}.overflow-hidden{overflow:hidden}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-secondary{--tw-border-opacity: 1;border-color:rgb(63 63 63 / var(--tw-border-opacity))}.bg-\[\#4826b9\]{--tw-bg-opacity: 1;background-color:rgb(72 38 185 / var(--tw-bg-opacity))}.bg-\[\#c3b4f3\]{--tw-bg-opacity: 1;background-color:rgb(195 180 243 / var(--tw-bg-opacity))}.bg-\[\#f8dfff\]{--tw-bg-opacity: 1;background-color:rgb(248 223 255 / var(--tw-bg-opacity))}.bg-accent{--tw-bg-opacity: 1;background-color:rgb(64 0 93 / var(--tw-bg-opacity))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(168 146 238 / var(--tw-bg-opacity))}.bg-danger{--tw-bg-opacity: 1;background-color:rgb(220 3 17 / var(--tw-bg-opacity))}.bg-dark{--tw-bg-opacity: 1;background-color:rgb(31 31 31 / var(--tw-bg-opacity))}.bg-light{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(31 31 31 / var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity: 1;background-color:rgb(63 63 63 / var(--tw-bg-opacity))}.bg-opacity-60{--tw-bg-opacity: .6}.\!p-3{padding:.75rem!important}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-accent{--tw-text-opacity: 1;color:rgb(64 0 93 / var(--tw-text-opacity))}.text-dark{--tw-text-opacity: 1;color:rgb(31 31 31 / var(--tw-text-opacity))}.text-light{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:rgb(31 31 31 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-card{--tw-shadow: 0 2px 8px rgba(0, 0, 0, .25);--tw-shadow-colored: 0 2px 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-danger{outline-color:#dc0311}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body{font-family:Poppins,sans-serif;--tw-bg-opacity: 1;background-color:rgb(63 63 63 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-bottom-1:after{content:var(--tw-content);bottom:-.25rem}.after\:-bottom-1\.5:after{content:var(--tw-content);bottom:-.375rem}.after\:left-0:after{content:var(--tw-content);left:0}.after\:right-0:after{content:var(--tw-content);right:0}.after\:h-0:after{content:var(--tw-content);height:0px}.after\:h-0\.5:after{content:var(--tw-content);height:.125rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:bg-light:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.hover\:bg-\[\#ce0000\]:hover{--tw-bg-opacity: 1;background-color:rgb(206 0 0 / var(--tw-bg-opacity))}.hover\:bg-accent-light:hover{--tw-bg-opacity: 1;background-color:rgb(81 6 116 / var(--tw-bg-opacity))}.hover\:shadow-card:hover{--tw-shadow: 0 2px 8px rgba(0, 0, 0, .25);--tw-shadow-colored: 0 2px 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:scale-95:focus{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-accent-light:active{--tw-bg-opacity: 1;background-color:rgb(81 6 116 / var(--tw-bg-opacity))}.disabled\:bg-opacity-80:disabled{--tw-bg-opacity: .8}@media (min-width: 576px){.sm\:h-28{height:7rem}.sm\:px-12{padding-left:3rem;padding-right:3rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:mx-4{margin-left:1rem;margin-right:1rem}.md\:h-5{height:1.25rem}.md\:w-5{width:1.25rem}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-end{justify-content:flex-end}.md\:justify-center{justify-content:center}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:text-left{text-align:left}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 992px){.lg\:px-20{padding-left:5rem;padding-right:5rem}} diff --git a/index.html b/index.html index 3489908..0a7b6ce 100644 --- a/index.html +++ b/index.html @@ -12,8 +12,8 @@ rel="stylesheet" /> Expenses React App - - + +