(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))l(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();function Kh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _a={exports:{}},Ei={},ya={exports:{}},we={};/** * @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 df;function Jh(){if(df)return we;df=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),y=Symbol.iterator;function x(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,b={};function L(N,B,ye){this.props=N,this.context=B,this.refs=b,this.updater=ye||T}L.prototype.isReactComponent={},L.prototype.setState=function(N,B){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,B,"setState")},L.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function C(){}C.prototype=L.prototype;function w(N,B,ye){this.props=N,this.context=B,this.refs=b,this.updater=ye||T}var E=w.prototype=new C;E.constructor=w,S(E,L.prototype),E.isPureReactComponent=!0;var $=Array.isArray,z=Object.prototype.hasOwnProperty,Y={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function W(N,B,ye){var xe,Ce={},Ee=null,Pe=null;if(B!=null)for(xe in B.ref!==void 0&&(Pe=B.ref),B.key!==void 0&&(Ee=""+B.key),B)z.call(B,xe)&&!Q.hasOwnProperty(xe)&&(Ce[xe]=B[xe]);var be=arguments.length-2;if(be===1)Ce.children=ye;else if(1>>1,B=q[N];if(0>>1;Na(Ce,J))Eea(Pe,Ce)?(q[N]=Pe,q[Ee]=J,N=Ee):(q[N]=Ce,q[xe]=J,N=xe);else if(Eea(Pe,J))q[N]=Pe,q[Ee]=J,N=Ee;else break e}}return te}function a(q,te){var J=q.sortIndex-te.sortIndex;return J!==0?J:q.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();n.unstable_now=function(){return d.now()-f}}var m=[],g=[],_=1,y=null,x=3,T=!1,S=!1,b=!1,L=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(q){for(var te=i(g);te!==null;){if(te.callback===null)l(g);else if(te.startTime<=q)l(g),te.sortIndex=te.expirationTime,r(m,te);else break;te=i(g)}}function $(q){if(b=!1,E(q),!S)if(i(m)!==null)S=!0,oe(z);else{var te=i(g);te!==null&&pe($,te.startTime-q)}}function z(q,te){S=!1,b&&(b=!1,C(W),W=-1),T=!0;var J=x;try{for(E(te),y=i(m);y!==null&&(!(y.expirationTime>te)||q&&!X());){var N=y.callback;if(typeof N=="function"){y.callback=null,x=y.priorityLevel;var B=N(y.expirationTime<=te);te=n.unstable_now(),typeof B=="function"?y.callback=B:y===i(m)&&l(m),E(te)}else l(m);y=i(m)}if(y!==null)var ye=!0;else{var xe=i(g);xe!==null&&pe($,xe.startTime-te),ye=!1}return ye}finally{y=null,x=J,T=!1}}var Y=!1,Q=null,W=-1,V=5,A=-1;function X(){return!(n.unstable_now()-Aq||125N?(q.sortIndex=J,r(g,q),i(m)===null&&q===i(g)&&(b?(C(W),W=-1):b=!0,pe($,J-N))):(q.sortIndex=B,r(m,q),S||T||(S=!0,oe(z))),q},n.unstable_shouldYield=X,n.unstable_wrapCallback=function(q){var te=x;return function(){var J=x;x=te;try{return q.apply(this,arguments)}finally{x=J}}}}(Sa)),Sa}var gf;function r1(){return gf||(gf=1,xa.exports=n1()),xa.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 vf;function i1(){if(vf)return ht;vf=1;var n=Fa(),r=r1();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,_={},y={};function x(e){return m.call(y,e)?!0:m.call(_,e)?!1:g.test(e)?y[e]=!0:(_[e]=!0,!1)}function T(e,t,s,o){if(s!==null&&s.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function S(e,t,s,o){if(t===null||typeof t>"u"||T(e,t,s,o))return!0;if(o)return!1;if(s!==null)switch(s.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 b(e,t,s,o,c,p,v){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=c,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=p,this.removeEmptyString=v}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){L[e]=new b(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];L[t]=new b(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){L[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){L[e]=new b(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){L[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){L[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){L[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){L[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){L[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function w(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(C,w);L[t]=new b(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(C,w);L[t]=new b(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(C,w);L[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){L[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),L.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){L[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});function E(e,t,s,o){var c=L.hasOwnProperty(t)?L[t]:null;(c!==null?c.type!==0:o||!(2j||c[v]!==p[j]){var P=` `+c[v].replace(" at new "," at ");return e.displayName&&P.includes("")&&(P=P.replace("",e.displayName)),P}while(1<=v&&0<=j);break}}}finally{ye=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?B(e):""}function Ce(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=xe(e.type,!1),e;case 11:return e=xe(e.type.render,!1),e;case 1:return e=xe(e.type,!0),e;default:return""}}function Ee(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 Q:return"Fragment";case Y:return"Portal";case V:return"Profiler";case W:return"StrictMode";case K:return"Suspense";case se:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ge:return t=e.displayName||null,t!==null?t:Ee(e.type)||"Memo";case oe:t=e._payload,e=e._init;try{return Ee(e(t))}catch{}}return null}function Pe(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 Ee(t);case 8:return t===W?"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 be(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gt(e){var t=Oe(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,p=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(v){o=""+v,p.call(this,v)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(v){o=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hi(e){e._valueTracker||(e._valueTracker=gt(e))}function gu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),o="";return e&&(o=Oe(e)?e.checked?"true":"false":e.value),e=o,e!==s?(t.setValue(e),!0):!1}function Bi(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 El(e,t){var s=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function vu(e,t){var s=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;s=be(t.value!=null?t.value:s),e._wrapperState={initialChecked:o,initialValue:s,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _u(e,t){t=t.checked,t!=null&&E(e,"checked",t,!1)}function kl(e,t){_u(e,t);var s=be(t.value),o=t.type;if(s!=null)o==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bl(e,t.type,s):t.hasOwnProperty("defaultValue")&&bl(e,t.type,be(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yu(e,t,s){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,s||t===e.value||(e.value=t),e.defaultValue=t}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function bl(e,t,s){(t!=="number"||Bi(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var Ar=Array.isArray;function rr(e,t,s,o){if(e=e.options,t){t={};for(var c=0;c"+t.valueOf().toString()+"",t=Fi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vr(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var Hr={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},nm=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(e){nm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hr[t]=Hr[e]})});function ku(e,t,s){return t==null||typeof t=="boolean"||t===""?"":s||typeof t!="number"||t===0||Hr.hasOwnProperty(e)&&Hr[e]?(""+t).trim():t+"px"}function bu(e,t){e=e.style;for(var s in t)if(t.hasOwnProperty(s)){var o=s.indexOf("--")===0,c=ku(s,t[s],o);s==="float"&&(s="cssFloat"),o?e.setProperty(s,c):e[s]=c}}var rm=J({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 Pl(e,t){if(t){if(rm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Ml(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 Ll=null;function $l(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nl=null,ir=null,sr=null;function Tu(e){if(e=ui(e)){if(typeof Nl!="function")throw Error(i(280));var t=e.stateNode;t&&(t=fs(t),Nl(e.stateNode,e.type,t))}}function ju(e){ir?sr?sr.push(e):sr=[e]:ir=e}function Pu(){if(ir){var e=ir,t=sr;if(sr=ir=null,Tu(e),t)for(e=0;e>>=0,e===0?32:31-(mm(e)/hm|0)|0}var Yi=64,Qi=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 Xi(e,t){var s=e.pendingLanes;if(s===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes,v=s&268435455;if(v!==0){var j=v&~c;j!==0?o=Ur(j):(p&=v,p!==0&&(o=Ur(p)))}else v=s&~c,v!==0?o=Ur(v):p!==0&&(o=Ur(p));if(o===0)return 0;if(t!==0&&t!==o&&(t&c)===0&&(c=o&-o,p=t&-t,c>=p||c===16&&(p&4194240)!==0))return t;if((o&4)!==0&&(o|=s&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0s;s++)t.push(e);return t}function Gr(e,t,s){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pt(t),e[t]=s}function ym(e,t){var s=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 o=e.eventTimes;for(e=e.expirationTimes;0=ei),rc=" ",ic=!1;function sc(e,t){switch(e){case"keyup":return qm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ar=!1;function Qm(e,t){switch(e){case"compositionend":return lc(t);case"keypress":return t.which!==32?null:(ic=!0,rc);case"textInput":return e=t.data,e===rc&&ic?null:e;default:return null}}function Xm(e,t){if(ar)return e==="compositionend"||!Zl&&sc(e,t)?(e=Zu(),ts=Ul=hn=null,ar=!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:s,offset:t-e};e=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=pc(s)}}function hc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gc(){for(var e=window,t=Bi();t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=Bi(e.document)}return t}function eo(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 sh(e){var t=gc(),s=e.focusedElem,o=e.selectionRange;if(t!==s&&s&&s.ownerDocument&&hc(s.ownerDocument.documentElement,s)){if(o!==null&&eo(s)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in s)s.selectionStart=t,s.selectionEnd=Math.min(e,s.value.length);else if(e=(t=s.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=s.textContent.length,p=Math.min(o.start,c);o=o.end===void 0?p:Math.min(o.end,c),!e.extend&&p>o&&(c=o,o=p,p=c),c=mc(s,p);var v=mc(s,o);c&&v&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==v.node||e.focusOffset!==v.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),p>o?(e.addRange(t),e.extend(v.node,v.offset)):(t.setEnd(v.node,v.offset),e.addRange(t)))}}for(t=[],e=s;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,ur=null,to=null,ii=null,no=!1;function vc(e,t,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;no||ur==null||ur!==Bi(o)||(o=ur,"selectionStart"in o&&eo(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ii&&ri(ii,o)||(ii=o,o=us(to,"onSelect"),0mr||(e.current=ho[mr],ho[mr]=null,mr--)}function Me(e,t){mr++,ho[mr]=e.current,e.current=t}var yn={},nt=_n(yn),ct=_n(!1),Rn=yn;function hr(e,t){var s=e.type.contextTypes;if(!s)return yn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var c={},p;for(p in s)c[p]=t[p];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function dt(e){return e=e.childContextTypes,e!=null}function ps(){$e(ct),$e(nt)}function $c(e,t,s){if(nt.current!==yn)throw Error(i(168));Me(nt,t),Me(ct,s)}function Nc(e,t,s){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return s;o=o.getChildContext();for(var c in o)if(!(c in t))throw Error(i(108,Pe(e)||"Unknown",c));return J({},s,o)}function ms(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yn,Rn=nt.current,Me(nt,e),Me(ct,ct.current),!0}function Oc(e,t,s){var o=e.stateNode;if(!o)throw Error(i(169));s?(e=Nc(e,t,Rn),o.__reactInternalMemoizedMergedChildContext=e,$e(ct),$e(nt),Me(nt,e)):$e(ct),Me(ct,s)}var Kt=null,hs=!1,go=!1;function Ic(e){Kt===null?Kt=[e]:Kt.push(e)}function vh(e){hs=!0,Ic(e)}function wn(){if(!go&&Kt!==null){go=!0;var e=0,t=Te;try{var s=Kt;for(Te=1;e>=v,c-=v,Jt=1<<32-Pt(t)+c|s<me?(Qe=de,de=null):Qe=de.sibling;var ke=F(I,de,R[me],Z);if(ke===null){de===null&&(de=Qe);break}e&&de&&ke.alternate===null&&t(I,de),M=p(ke,M,me),ce===null?ae=ke:ce.sibling=ke,ce=ke,de=Qe}if(me===R.length)return s(I,de),Ie&&Dn(I,me),ae;if(de===null){for(;meme?(Qe=de,de=null):Qe=de.sibling;var Pn=F(I,de,ke.value,Z);if(Pn===null){de===null&&(de=Qe);break}e&&de&&Pn.alternate===null&&t(I,de),M=p(Pn,M,me),ce===null?ae=Pn:ce.sibling=Pn,ce=Pn,de=Qe}if(ke.done)return s(I,de),Ie&&Dn(I,me),ae;if(de===null){for(;!ke.done;me++,ke=R.next())ke=G(I,ke.value,Z),ke!==null&&(M=p(ke,M,me),ce===null?ae=ke:ce.sibling=ke,ce=ke);return Ie&&Dn(I,me),ae}for(de=o(I,de);!ke.done;me++,ke=R.next())ke=ne(de,I,me,ke.value,Z),ke!==null&&(e&&ke.alternate!==null&&de.delete(ke.key===null?me:ke.key),M=p(ke,M,me),ce===null?ae=ke:ce.sibling=ke,ce=ke);return e&&de.forEach(function(Zh){return t(I,Zh)}),Ie&&Dn(I,me),ae}function Fe(I,M,R,Z){if(typeof R=="object"&&R!==null&&R.type===Q&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case z:e:{for(var ae=R.key,ce=M;ce!==null;){if(ce.key===ae){if(ae=R.type,ae===Q){if(ce.tag===7){s(I,ce.sibling),M=c(ce,R.props.children),M.return=I,I=M;break e}}else if(ce.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===oe&&Hc(ae)===ce.type){s(I,ce.sibling),M=c(ce,R.props),M.ref=ci(I,ce,R),M.return=I,I=M;break e}s(I,ce);break}else t(I,ce);ce=ce.sibling}R.type===Q?(M=Gn(R.props.children,I.mode,Z,R.key),M.return=I,I=M):(Z=Fs(R.type,R.key,R.props,null,I.mode,Z),Z.ref=ci(I,M,R),Z.return=I,I=Z)}return v(I);case Y:e:{for(ce=R.key;M!==null;){if(M.key===ce)if(M.tag===4&&M.stateNode.containerInfo===R.containerInfo&&M.stateNode.implementation===R.implementation){s(I,M.sibling),M=c(M,R.children||[]),M.return=I,I=M;break e}else{s(I,M);break}else t(I,M);M=M.sibling}M=pa(R,I.mode,Z),M.return=I,I=M}return v(I);case oe:return ce=R._init,Fe(I,M,ce(R._payload),Z)}if(Ar(R))return ie(I,M,R,Z);if(te(R))return le(I,M,R,Z);ys(I,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,M!==null&&M.tag===6?(s(I,M.sibling),M=c(M,R),M.return=I,I=M):(s(I,M),M=fa(R,I.mode,Z),M.return=I,I=M),v(I)):s(I,M)}return Fe}var yr=Bc(!0),Fc=Bc(!1),ws=_n(null),xs=null,wr=null,So=null;function Co(){So=wr=xs=null}function Eo(e){var t=ws.current;$e(ws),e._currentValue=t}function ko(e,t,s){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===s)break;e=e.return}}function xr(e,t){xs=e,So=wr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ft=!0),e.firstContext=null)}function kt(e){var t=e._currentValue;if(So!==e)if(e={context:e,memoizedValue:t,next:null},wr===null){if(xs===null)throw Error(i(308));wr=e,xs.dependencies={lanes:0,firstContext:e}}else wr=wr.next=e;return t}var An=null;function bo(e){An===null?An=[e]:An.push(e)}function Wc(e,t,s,o){var c=t.interleaved;return c===null?(s.next=s,bo(t)):(s.next=c.next,c.next=s),t.interleaved=s,tn(e,o)}function tn(e,t){e.lanes|=t;var s=e.alternate;for(s!==null&&(s.lanes|=t),s=e,e=e.return;e!==null;)e.childLanes|=t,s=e.alternate,s!==null&&(s.childLanes|=t),s=e,e=e.return;return s.tag===3?s.stateNode:null}var xn=!1;function To(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function nn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(e,t,s){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Se&2)!==0){var c=o.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),o.pending=t,tn(e,s)}return c=o.interleaved,c===null?(t.next=t,bo(o)):(t.next=c.next,c.next=t),o.interleaved=t,tn(e,s)}function Ss(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,s|=o,t.lanes=s,Vl(e,s)}}function Gc(e,t){var s=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,s===o)){var c=null,p=null;if(s=s.firstBaseUpdate,s!==null){do{var v={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};p===null?c=p=v:p=p.next=v,s=s.next}while(s!==null);p===null?c=p=t:p=p.next=t}else c=p=t;s={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:p,shared:o.shared,effects:o.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}function Cs(e,t,s,o){var c=e.updateQueue;xn=!1;var p=c.firstBaseUpdate,v=c.lastBaseUpdate,j=c.shared.pending;if(j!==null){c.shared.pending=null;var P=j,D=P.next;P.next=null,v===null?p=D:v.next=D,v=P;var U=e.alternate;U!==null&&(U=U.updateQueue,j=U.lastBaseUpdate,j!==v&&(j===null?U.firstBaseUpdate=D:j.next=D,U.lastBaseUpdate=P))}if(p!==null){var G=c.baseState;v=0,U=D=P=null,j=p;do{var F=j.lane,ne=j.eventTime;if((o&F)===F){U!==null&&(U=U.next={eventTime:ne,lane:0,tag:j.tag,payload:j.payload,callback:j.callback,next:null});e:{var ie=e,le=j;switch(F=t,ne=s,le.tag){case 1:if(ie=le.payload,typeof ie=="function"){G=ie.call(ne,G,F);break e}G=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=le.payload,F=typeof ie=="function"?ie.call(ne,G,F):ie,F==null)break e;G=J({},G,F);break e;case 2:xn=!0}}j.callback!==null&&j.lane!==0&&(e.flags|=64,F=c.effects,F===null?c.effects=[j]:F.push(j))}else ne={eventTime:ne,lane:F,tag:j.tag,payload:j.payload,callback:j.callback,next:null},U===null?(D=U=ne,P=G):U=U.next=ne,v|=F;if(j=j.next,j===null){if(j=c.shared.pending,j===null)break;F=j,j=F.next,F.next=null,c.lastBaseUpdate=F,c.shared.pending=null}}while(!0);if(U===null&&(P=G),c.baseState=P,c.firstBaseUpdate=D,c.lastBaseUpdate=U,t=c.shared.interleaved,t!==null){c=t;do v|=c.lane,c=c.next;while(c!==t)}else p===null&&(c.shared.lanes=0);Bn|=v,e.lanes=v,e.memoizedState=G}}function qc(e,t,s){if(e=t.effects,t.effects=null,e!==null)for(t=0;ts?s:4,e(!0);var o=$o.transition;$o.transition={};try{e(!1),t()}finally{Te=s,$o.transition=o}}function fd(){return bt().memoizedState}function xh(e,t,s){var o=bn(e);if(s={lane:o,action:s,hasEagerState:!1,eagerState:null,next:null},pd(e))md(t,s);else if(s=Wc(e,t,s,o),s!==null){var c=at();It(s,e,o,c),hd(s,t,o)}}function Sh(e,t,s){var o=bn(e),c={lane:o,action:s,hasEagerState:!1,eagerState:null,next:null};if(pd(e))md(t,c);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=t.lastRenderedReducer,p!==null))try{var v=t.lastRenderedState,j=p(v,s);if(c.hasEagerState=!0,c.eagerState=j,Mt(j,v)){var P=t.interleaved;P===null?(c.next=c,bo(t)):(c.next=P.next,P.next=c),t.interleaved=c;return}}catch{}finally{}s=Wc(e,t,c,o),s!==null&&(c=at(),It(s,e,o,c),hd(s,t,o))}}function pd(e){var t=e.alternate;return e===ze||t!==null&&t===ze}function md(e,t){mi=bs=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function hd(e,t,s){if((s&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,s|=o,t.lanes=s,Vl(e,s)}}var Ps={readContext:kt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},Ch={readContext:kt,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:id,useImperativeHandle:function(e,t,s){return s=s!=null?s.concat([e]):null,Ts(4194308,4,od.bind(null,t,e),s)},useLayoutEffect:function(e,t){return Ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ts(4,2,e,t)},useMemo:function(e,t){var s=Ht();return t=t===void 0?null:t,e=e(),s.memoizedState=[e,t],e},useReducer:function(e,t,s){var o=Ht();return t=s!==void 0?s(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=xh.bind(null,ze,e),[o.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:nd,useDebugValue:Ao,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=nd(!1),t=e[0];return e=wh.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,s){var o=ze,c=Ht();if(Ie){if(s===void 0)throw Error(i(407));s=s()}else{if(s=t(),Ye===null)throw Error(i(349));(Hn&30)!==0||Zc(o,t,s)}c.memoizedState=s;var p={value:s,getSnapshot:t};return c.queue=p,id(Jc.bind(null,o,p,e),[e]),o.flags|=2048,vi(9,Kc.bind(null,o,p,s,t),void 0,null),s},useId:function(){var e=Ht(),t=Ye.identifierPrefix;if(Ie){var s=en,o=Jt;s=(o&~(1<<32-Pt(o)-1)).toString(32)+s,t=":"+t+"R"+s,s=hi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=v.createElement(s,{is:o.is}):(e=v.createElement(s),s==="select"&&(v=e,o.multiple?v.multiple=!0:o.size&&(v.size=o.size))):e=v.createElementNS(e,s),e[At]=t,e[ai]=o,Id(e,t,!1,!1),t.stateNode=e;e:{switch(v=Ml(s,o),s){case"dialog":Le("cancel",e),Le("close",e),c=o;break;case"iframe":case"object":case"embed":Le("load",e),c=o;break;case"video":case"audio":for(c=0;cbr&&(t.flags|=128,o=!0,_i(p,!1),t.lanes=4194304)}else{if(!o)if(e=Es(v),e!==null){if(t.flags|=128,o=!0,s=e.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),_i(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!Ie)return it(t),null}else 2*Be()-p.renderingStartTime>br&&s!==1073741824&&(t.flags|=128,o=!0,_i(p,!1),t.lanes=4194304);p.isBackwards?(v.sibling=t.child,t.child=v):(s=p.last,s!==null?s.sibling=v:t.child=v,p.last=v)}return p.tail!==null?(t=p.tail,p.rendering=t,p.tail=t.sibling,p.renderingStartTime=Be(),t.sibling=null,s=Re.current,Me(Re,o?s&1|2:s&1),t):(it(t),null);case 22:case 23:return ua(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(wt&1073741824)!==0&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Lh(e,t){switch(_o(t),t.tag){case 1:return dt(t.type)&&ps(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sr(),$e(ct),$e(nt),Lo(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Po(t),null;case 13:if($e(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));_r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $e(Re),null;case 4:return Sr(),null;case 10:return Eo(t.type._context),null;case 22:case 23:return ua(),null;case 24:return null;default:return null}}var Ns=!1,st=!1,$h=typeof WeakSet=="function"?WeakSet:Set,re=null;function Er(e,t){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(o){Ve(e,t,o)}else s.current=null}function Zo(e,t,s){try{s()}catch(o){Ve(e,t,o)}}var Dd=!1;function Nh(e,t){if(ao=Ji,e=gc(),eo(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var c=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{s.nodeType,p.nodeType}catch{s=null;break e}var v=0,j=-1,P=-1,D=0,U=0,G=e,F=null;t:for(;;){for(var ne;G!==s||c!==0&&G.nodeType!==3||(j=v+c),G!==p||o!==0&&G.nodeType!==3||(P=v+o),G.nodeType===3&&(v+=G.nodeValue.length),(ne=G.firstChild)!==null;)F=G,G=ne;for(;;){if(G===e)break t;if(F===s&&++D===c&&(j=v),F===p&&++U===o&&(P=v),(ne=G.nextSibling)!==null)break;G=F,F=G.parentNode}G=ne}s=j===-1||P===-1?null:{start:j,end:P}}else s=null}s=s||{start:0,end:0}}else s=null;for(uo={focusedElem:e,selectionRange:s},Ji=!1,re=t;re!==null;)if(t=re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,re=e;else for(;re!==null;){t=re;try{var ie=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var le=ie.memoizedProps,Fe=ie.memoizedState,I=t.stateNode,M=I.getSnapshotBeforeUpdate(t.elementType===t.type?le:$t(t.type,le),Fe);I.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var R=t.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Z){Ve(t,t.return,Z)}if(e=t.sibling,e!==null){e.return=t.return,re=e;break}re=t.return}return ie=Dd,Dd=!1,ie}function yi(e,t,s){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var c=o=o.next;do{if((c.tag&e)===e){var p=c.destroy;c.destroy=void 0,p!==void 0&&Zo(t,s,p)}c=c.next}while(c!==o)}}function Os(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var s=t=t.next;do{if((s.tag&e)===e){var o=s.create;s.destroy=o()}s=s.next}while(s!==t)}}function Ko(e){var t=e.ref;if(t!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof t=="function"?t(e):t.current=e}}function Ad(e){var t=e.alternate;t!==null&&(e.alternate=null,Ad(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[ai],delete t[mo],delete t[hh],delete t[gh])),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 Vd(e){return e.tag===5||e.tag===3||e.tag===4}function Hd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vd(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 Jo(e,t,s){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?s.nodeType===8?s.parentNode.insertBefore(e,t):s.insertBefore(e,t):(s.nodeType===8?(t=s.parentNode,t.insertBefore(e,s)):(t=s,t.appendChild(e)),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=ds));else if(o!==4&&(e=e.child,e!==null))for(Jo(e,t,s),e=e.sibling;e!==null;)Jo(e,t,s),e=e.sibling}function ea(e,t,s){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(ea(e,t,s),e=e.sibling;e!==null;)ea(e,t,s),e=e.sibling}var Je=null,Nt=!1;function Cn(e,t,s){for(s=s.child;s!==null;)Bd(e,t,s),s=s.sibling}function Bd(e,t,s){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(qi,s)}catch{}switch(s.tag){case 5:st||Er(s,t);case 6:var o=Je,c=Nt;Je=null,Cn(e,t,s),Je=o,Nt=c,Je!==null&&(Nt?(e=Je,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):Je.removeChild(s.stateNode));break;case 18:Je!==null&&(Nt?(e=Je,s=s.stateNode,e.nodeType===8?po(e.parentNode,s):e.nodeType===1&&po(e,s),Zr(e)):po(Je,s.stateNode));break;case 4:o=Je,c=Nt,Je=s.stateNode.containerInfo,Nt=!0,Cn(e,t,s),Je=o,Nt=c;break;case 0:case 11:case 14:case 15:if(!st&&(o=s.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){c=o=o.next;do{var p=c,v=p.destroy;p=p.tag,v!==void 0&&((p&2)!==0||(p&4)!==0)&&Zo(s,t,v),c=c.next}while(c!==o)}Cn(e,t,s);break;case 1:if(!st&&(Er(s,t),o=s.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=s.memoizedProps,o.state=s.memoizedState,o.componentWillUnmount()}catch(j){Ve(s,t,j)}Cn(e,t,s);break;case 21:Cn(e,t,s);break;case 22:s.mode&1?(st=(o=st)||s.memoizedState!==null,Cn(e,t,s),st=o):Cn(e,t,s);break;default:Cn(e,t,s)}}function Fd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new $h),t.forEach(function(o){var c=Bh.bind(null,e,o);s.has(o)||(s.add(o),o.then(c,c))})}}function Ot(e,t){var s=t.deletions;if(s!==null)for(var o=0;oc&&(c=v),o&=~p}if(o=c,o=Be()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Ih(o/1960))-o,10e?16:e,kn===null)var o=!1;else{if(e=kn,kn=null,As=0,(Se&6)!==0)throw Error(i(331));var c=Se;for(Se|=4,re=e.current;re!==null;){var p=re,v=p.child;if((re.flags&16)!==0){var j=p.deletions;if(j!==null){for(var P=0;PBe()-ra?Wn(e,0):na|=s),mt(e,t)}function nf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Qi,Qi<<=1,(Qi&130023424)===0&&(Qi=4194304)));var s=at();e=tn(e,t),e!==null&&(Gr(e,t,s),mt(e,s))}function Hh(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),nf(e,s)}function Bh(e,t){var s=0;switch(e.tag){case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(i(314))}o!==null&&o.delete(t),nf(e,s)}var rf;rf=function(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)ft=!0;else{if((e.lanes&s)===0&&(t.flags&128)===0)return ft=!1,Ph(e,t,s);ft=(e.flags&131072)!==0}else ft=!1,Ie&&(t.flags&1048576)!==0&&Rc(t,vs,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;$s(e,t),e=t.pendingProps;var c=hr(t,nt.current);xr(t,s),c=Oo(null,t,o,e,c,s);var p=Io();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(o)?(p=!0,ms(t)):p=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,To(t),c.updater=Ms,t.stateNode=c,c._reactInternals=t,Ho(t,o,e,s),t=Uo(null,t,o,!0,p,s)):(t.tag=0,Ie&&p&&vo(t),ot(null,t,c,s),t=t.child),t;case 16:o=t.elementType;e:{switch($s(e,t),e=t.pendingProps,c=o._init,o=c(o._payload),t.type=o,c=t.tag=Wh(o),e=$t(o,e),c){case 0:t=Wo(null,t,o,e,s);break e;case 1:t=Pd(null,t,o,e,s);break e;case 11:t=Ed(null,t,o,e,s);break e;case 14:t=kd(null,t,o,$t(o.type,e),s);break e}throw Error(i(306,o,""))}return t;case 0:return o=t.type,c=t.pendingProps,c=t.elementType===o?c:$t(o,c),Wo(e,t,o,c,s);case 1:return o=t.type,c=t.pendingProps,c=t.elementType===o?c:$t(o,c),Pd(e,t,o,c,s);case 3:e:{if(Md(t),e===null)throw Error(i(387));o=t.pendingProps,p=t.memoizedState,c=p.element,Uc(e,t),Cs(t,o,null,s);var v=t.memoizedState;if(o=v.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},t.updateQueue.baseState=p,t.memoizedState=p,t.flags&256){c=Cr(Error(i(423)),t),t=Ld(e,t,o,s,c);break e}else if(o!==c){c=Cr(Error(i(424)),t),t=Ld(e,t,o,s,c);break e}else for(yt=vn(t.stateNode.containerInfo.firstChild),_t=t,Ie=!0,Lt=null,s=Fc(t,null,o,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(_r(),o===c){t=rn(e,t,s);break e}ot(e,t,o,s)}t=t.child}return t;case 5:return Yc(t),e===null&&wo(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,v=c.children,co(o,c)?v=null:p!==null&&co(o,p)&&(t.flags|=32),jd(e,t),ot(e,t,v,s),t.child;case 6:return e===null&&wo(t),null;case 13:return $d(e,t,s);case 4:return jo(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=yr(t,null,o,s):ot(e,t,o,s),t.child;case 11:return o=t.type,c=t.pendingProps,c=t.elementType===o?c:$t(o,c),Ed(e,t,o,c,s);case 7:return ot(e,t,t.pendingProps,s),t.child;case 8:return ot(e,t,t.pendingProps.children,s),t.child;case 12:return ot(e,t,t.pendingProps.children,s),t.child;case 10:e:{if(o=t.type._context,c=t.pendingProps,p=t.memoizedProps,v=c.value,Me(ws,o._currentValue),o._currentValue=v,p!==null)if(Mt(p.value,v)){if(p.children===c.children&&!ct.current){t=rn(e,t,s);break e}}else for(p=t.child,p!==null&&(p.return=t);p!==null;){var j=p.dependencies;if(j!==null){v=p.child;for(var P=j.firstContext;P!==null;){if(P.context===o){if(p.tag===1){P=nn(-1,s&-s),P.tag=2;var D=p.updateQueue;if(D!==null){D=D.shared;var U=D.pending;U===null?P.next=P:(P.next=U.next,U.next=P),D.pending=P}}p.lanes|=s,P=p.alternate,P!==null&&(P.lanes|=s),ko(p.return,s,t),j.lanes|=s;break}P=P.next}}else if(p.tag===10)v=p.type===t.type?null:p.child;else if(p.tag===18){if(v=p.return,v===null)throw Error(i(341));v.lanes|=s,j=v.alternate,j!==null&&(j.lanes|=s),ko(v,s,t),v=p.sibling}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===t){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}ot(e,t,c.children,s),t=t.child}return t;case 9:return c=t.type,o=t.pendingProps.children,xr(t,s),c=kt(c),o=o(c),t.flags|=1,ot(e,t,o,s),t.child;case 14:return o=t.type,c=$t(o,t.pendingProps),c=$t(o.type,c),kd(e,t,o,c,s);case 15:return bd(e,t,t.type,t.pendingProps,s);case 17:return o=t.type,c=t.pendingProps,c=t.elementType===o?c:$t(o,c),$s(e,t),t.tag=1,dt(o)?(e=!0,ms(t)):e=!1,xr(t,s),vd(t,o,c),Ho(t,o,c,s),Uo(null,t,o,!0,e,s);case 19:return Od(e,t,s);case 22:return Td(e,t,s)}throw Error(i(156,t.tag))};function sf(e,t){return zu(e,t)}function Fh(e,t,s,o){this.tag=e,this.key=s,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jt(e,t,s,o){return new Fh(e,t,s,o)}function da(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wh(e){if(typeof e=="function")return da(e)?1:0;if(e!=null){if(e=e.$$typeof,e===H)return 11;if(e===ge)return 14}return 2}function jn(e,t){var s=e.alternate;return s===null?(s=jt(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function Fs(e,t,s,o,c,p){var v=2;if(o=e,typeof e=="function")da(e)&&(v=1);else if(typeof e=="string")v=5;else e:switch(e){case Q:return Gn(s.children,c,p,t);case W:v=8,c|=8;break;case V:return e=jt(12,s,t,c|2),e.elementType=V,e.lanes=p,e;case K:return e=jt(13,s,t,c),e.elementType=K,e.lanes=p,e;case se:return e=jt(19,s,t,c),e.elementType=se,e.lanes=p,e;case pe:return Ws(s,c,p,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:v=10;break e;case X:v=9;break e;case H:v=11;break e;case ge:v=14;break e;case oe:v=16,o=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=jt(v,s,t,c),t.elementType=e,t.type=o,t.lanes=p,t}function Gn(e,t,s,o){return e=jt(7,e,o,t),e.lanes=s,e}function Ws(e,t,s,o){return e=jt(22,e,o,t),e.elementType=pe,e.lanes=s,e.stateNode={isHidden:!1},e}function fa(e,t,s){return e=jt(6,e,null,t),e.lanes=s,e}function pa(e,t,s){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uh(e,t,s,o,c){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=Al(0),this.expirationTimes=Al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Al(0),this.identifierPrefix=o,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function ma(e,t,s,o,c,p,v,j,P){return e=new Uh(e,t,s,j,P),t===1?(t=1,p===!0&&(t|=8)):t=0,p=jt(3,null,null,t),e.current=p,p.stateNode=e,p.memoizedState={element:o,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},To(p),e}function Gh(e,t,s){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),wa.exports=i1(),wa.exports}var yf;function l1(){if(yf)return Zs;yf=1;var n=s1();return Zs.createRoot=n.createRoot,Zs.hydrateRoot=n.hydrateRoot,Zs}var o1=l1(),k=Fa();const he=Kh(k);/** * react-router v7.7.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 */var wf="popstate";function a1(n={}){function r(a,u){let{pathname:d="/",search:f="",hash:m=""}=Kn(a.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),za("",{pathname:d,search:f,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function i(a,u){let d=a.document.querySelector("base"),f="";if(d&&d.getAttribute("href")){let m=a.location.href,g=m.indexOf("#");f=g===-1?m:m.slice(0,g)}return f+"#"+(typeof u=="string"?u:Ri(u))}function l(a,u){zt(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(u)})`)}return c1(r,i,l,n)}function Ae(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function zt(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function u1(){return Math.random().toString(36).substring(2,10)}function xf(n,r){return{usr:n.state,key:n.key,idx:r}}function za(n,r,i=null,l){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Kn(r):r,state:i,key:r&&r.key||l||u1()}}function Ri({pathname:n="/",search:r="",hash:i=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function Kn(n){let r={};if(n){let i=n.indexOf("#");i>=0&&(r.hash=n.substring(i),n=n.substring(0,i));let l=n.indexOf("?");l>=0&&(r.search=n.substring(l),n=n.substring(0,l)),n&&(r.pathname=n)}return r}function c1(n,r,i,l={}){let{window:a=document.defaultView,v5Compat:u=!1}=l,d=a.history,f="POP",m=null,g=_();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function _(){return(d.state||{idx:null}).idx}function y(){f="POP";let L=_(),C=L==null?null:L-g;g=L,m&&m({action:f,location:b.location,delta:C})}function x(L,C){f="PUSH";let w=za(b.location,L,C);i&&i(w,L),g=_()+1;let E=xf(w,g),$=b.createHref(w);try{d.pushState(E,"",$)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;a.location.assign($)}u&&m&&m({action:f,location:b.location,delta:1})}function T(L,C){f="REPLACE";let w=za(b.location,L,C);i&&i(w,L),g=_();let E=xf(w,g),$=b.createHref(w);d.replaceState(E,"",$),u&&m&&m({action:f,location:b.location,delta:0})}function S(L){return d1(L)}let b={get action(){return f},get location(){return n(a,d)},listen(L){if(m)throw new Error("A history only accepts one active listener");return a.addEventListener(wf,y),m=L,()=>{a.removeEventListener(wf,y),m=null}},createHref(L){return r(a,L)},createURL:S,encodeLocation(L){let C=S(L);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:x,replace:T,go(L){return d.go(L)}};return b}function d1(n,r=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Ae(i,"No window.location.(origin|href) available to create URL");let l=typeof n=="string"?n:Ri(n);return l=l.replace(/ $/,"%20"),!r&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function Gf(n,r,i="/"){return f1(n,r,i,!1)}function f1(n,r,i,l){let a=typeof r=="string"?Kn(r):r,u=cn(a.pathname||"/",i);if(u==null)return null;let d=qf(n);p1(d);let f=null;for(let m=0;f==null&&m{let m={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};m.relativePath.startsWith("/")&&(Ae(m.relativePath.startsWith(l),`Absolute route path "${m.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(l.length));let g=un([l,m.relativePath]),_=i.concat(m);u.children&&u.children.length>0&&(Ae(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),qf(u.children,r,_,g)),!(u.path==null&&!u.index)&&r.push({path:g,score:w1(g,u.index),routesMeta:_})};return n.forEach((u,d)=>{if(u.path===""||!u.path?.includes("?"))a(u,d);else for(let f of Yf(u.path))a(u,d,f)}),r}function Yf(n){let r=n.split("/");if(r.length===0)return[];let[i,...l]=r,a=i.endsWith("?"),u=i.replace(/\?$/,"");if(l.length===0)return a?[u,""]:[u];let d=Yf(l.join("/")),f=[];return f.push(...d.map(m=>m===""?u:[u,m].join("/"))),a&&f.push(...d),f.map(m=>n.startsWith("/")&&m===""?"/":m)}function p1(n){n.sort((r,i)=>r.score!==i.score?i.score-r.score:x1(r.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var m1=/^:[\w-]+$/,h1=3,g1=2,v1=1,_1=10,y1=-2,Sf=n=>n==="*";function w1(n,r){let i=n.split("/"),l=i.length;return i.some(Sf)&&(l+=y1),r&&(l+=g1),i.filter(a=>!Sf(a)).reduce((a,u)=>a+(m1.test(u)?h1:u===""?v1:_1),l)}function x1(n,r){return n.length===r.length&&n.slice(0,-1).every((l,a)=>l===r[a])?n[n.length-1]-r[r.length-1]:0}function S1(n,r,i=!1){let{routesMeta:l}=n,a={},u="/",d=[];for(let f=0;f{if(_==="*"){let S=f[x]||"";d=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const T=f[x];return y&&!T?g[_]=void 0:g[_]=(T||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:d,pattern:n}}function C1(n,r=!1,i=!0){zt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let l=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,m)=>(l.push({paramName:f,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(l.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,r?void 0:"i"),l]}function E1(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return zt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function cn(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,l=n.charAt(i);return l&&l!=="/"?null:n.slice(i)||"/"}function k1(n,r="/"){let{pathname:i,search:l="",hash:a=""}=typeof n=="string"?Kn(n):n;return{pathname:i?i.startsWith("/")?i:b1(i,r):r,search:P1(l),hash:M1(a)}}function b1(n,r){let i=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?i.length>1&&i.pop():a!=="."&&i.push(a)}),i.length>1?i.join("/"):"/"}function Ca(n,r,i,l){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function T1(n){return n.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function Qf(n){let r=T1(n);return r.map((i,l)=>l===r.length-1?i.pathname:i.pathnameBase)}function Xf(n,r,i,l=!1){let a;typeof n=="string"?a=Kn(n):(a={...n},Ae(!a.pathname||!a.pathname.includes("?"),Ca("?","pathname","search",a)),Ae(!a.pathname||!a.pathname.includes("#"),Ca("#","pathname","hash",a)),Ae(!a.search||!a.search.includes("#"),Ca("#","search","hash",a)));let u=n===""||a.pathname==="",d=u?"/":a.pathname,f;if(d==null)f=i;else{let y=r.length-1;if(!l&&d.startsWith("..")){let x=d.split("/");for(;x[0]==="..";)x.shift(),y-=1;a.pathname=x.join("/")}f=y>=0?r[y]:"/"}let m=k1(a,f),g=d&&d!=="/"&&d.endsWith("/"),_=(u||d===".")&&i.endsWith("/");return!m.pathname.endsWith("/")&&(g||_)&&(m.pathname+="/"),m}var un=n=>n.join("/").replace(/\/\/+/g,"/"),j1=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),P1=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,M1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function L1(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Zf=["POST","PUT","PATCH","DELETE"];new Set(Zf);var $1=["GET",...Zf];new Set($1);var zr=k.createContext(null);zr.displayName="DataRouter";var yl=k.createContext(null);yl.displayName="DataRouterState";k.createContext(!1);var Kf=k.createContext({isTransitioning:!1});Kf.displayName="ViewTransition";var N1=k.createContext(new Map);N1.displayName="Fetchers";var O1=k.createContext(null);O1.displayName="Await";var Qt=k.createContext(null);Qt.displayName="Navigation";var Di=k.createContext(null);Di.displayName="Location";var Xt=k.createContext({outlet:null,matches:[],isDataRoute:!1});Xt.displayName="Route";var Wa=k.createContext(null);Wa.displayName="RouteError";function I1(n,{relative:r}={}){Ae(Ai(),"useHref() may be used only in the context of a component.");let{basename:i,navigator:l}=k.useContext(Qt),{hash:a,pathname:u,search:d}=Vi(n,{relative:r}),f=u;return i!=="/"&&(f=u==="/"?i:un([i,u])),l.createHref({pathname:f,search:d,hash:a})}function Ai(){return k.useContext(Di)!=null}function Jn(){return Ae(Ai(),"useLocation() may be used only in the context of a component."),k.useContext(Di).location}var Jf="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ep(n){k.useContext(Qt).static||k.useLayoutEffect(n)}function Ua(){let{isDataRoute:n}=k.useContext(Xt);return n?Y1():R1()}function R1(){Ae(Ai(),"useNavigate() may be used only in the context of a component.");let n=k.useContext(zr),{basename:r,navigator:i}=k.useContext(Qt),{matches:l}=k.useContext(Xt),{pathname:a}=Jn(),u=JSON.stringify(Qf(l)),d=k.useRef(!1);return ep(()=>{d.current=!0}),k.useCallback((m,g={})=>{if(zt(d.current,Jf),!d.current)return;if(typeof m=="number"){i.go(m);return}let _=Xf(m,JSON.parse(u),a,g.relative==="path");n==null&&r!=="/"&&(_.pathname=_.pathname==="/"?r:un([r,_.pathname])),(g.replace?i.replace:i.push)(_,g.state,g)},[r,i,u,a,n])}k.createContext(null);function Ga(){let{matches:n}=k.useContext(Xt),r=n[n.length-1];return r?r.params:{}}function Vi(n,{relative:r}={}){let{matches:i}=k.useContext(Xt),{pathname:l}=Jn(),a=JSON.stringify(Qf(i));return k.useMemo(()=>Xf(n,JSON.parse(a),l,r==="path"),[n,a,l,r])}function z1(n,r){return tp(n,r)}function tp(n,r,i,l){Ae(Ai(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=k.useContext(Qt),{matches:u}=k.useContext(Xt),d=u[u.length-1],f=d?d.params:{},m=d?d.pathname:"/",g=d?d.pathnameBase:"/",_=d&&d.route;{let C=_&&_.path||"";np(m,!_||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${m}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let y=Jn(),x;if(r){let C=typeof r=="string"?Kn(r):r;Ae(g==="/"||C.pathname?.startsWith(g),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${C.pathname}" was given in the \`location\` prop.`),x=C}else x=y;let T=x.pathname||"/",S=T;if(g!=="/"){let C=g.replace(/^\//,"").split("/");S="/"+T.replace(/^\//,"").split("/").slice(C.length).join("/")}let b=Gf(n,{pathname:S});zt(_||b!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),zt(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let L=B1(b&&b.map(C=>Object.assign({},C,{params:Object.assign({},f,C.params),pathname:un([g,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?g:un([g,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),u,i,l);return r&&L?k.createElement(Di.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},L):L}function D1(){let n=q1(),r=L1(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,l="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:l},u={padding:"2px 4px",backgroundColor:l},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:u},"ErrorBoundary")," or"," ",k.createElement("code",{style:u},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},r),i?k.createElement("pre",{style:a},i):null,d)}var A1=k.createElement(D1,null),V1=class extends k.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){console.error("React Router caught the following error during render",n,r)}render(){return this.state.error!==void 0?k.createElement(Xt.Provider,{value:this.props.routeContext},k.createElement(Wa.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function H1({routeContext:n,match:r,children:i}){let l=k.useContext(zr);return l&&l.static&&l.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=r.route.id),k.createElement(Xt.Provider,{value:n},i)}function B1(n,r=[],i=null,l=null){if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let a=n,u=i?.errors;if(u!=null){let m=a.findIndex(g=>g.route.id&&u?.[g.route.id]!==void 0);Ae(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let d=!1,f=-1;if(i)for(let m=0;m=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((m,g,_)=>{let y,x=!1,T=null,S=null;i&&(y=u&&g.route.id?u[g.route.id]:void 0,T=g.route.errorElement||A1,d&&(f<0&&_===0?(np("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,S=null):f===_&&(x=!0,S=g.route.hydrateFallbackElement||null)));let b=r.concat(a.slice(0,_+1)),L=()=>{let C;return y?C=T:x?C=S:g.route.Component?C=k.createElement(g.route.Component,null):g.route.element?C=g.route.element:C=m,k.createElement(H1,{match:g,routeContext:{outlet:m,matches:b,isDataRoute:i!=null},children:C})};return i&&(g.route.ErrorBoundary||g.route.errorElement||_===0)?k.createElement(V1,{location:i.location,revalidation:i.revalidation,component:T,error:y,children:L(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):L()},null)}function qa(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function F1(n){let r=k.useContext(zr);return Ae(r,qa(n)),r}function W1(n){let r=k.useContext(yl);return Ae(r,qa(n)),r}function U1(n){let r=k.useContext(Xt);return Ae(r,qa(n)),r}function Ya(n){let r=U1(n),i=r.matches[r.matches.length-1];return Ae(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function G1(){return Ya("useRouteId")}function q1(){let n=k.useContext(Wa),r=W1("useRouteError"),i=Ya("useRouteError");return n!==void 0?n:r.errors?.[i]}function Y1(){let{router:n}=F1("useNavigate"),r=Ya("useNavigate"),i=k.useRef(!1);return ep(()=>{i.current=!0}),k.useCallback(async(a,u={})=>{zt(i.current,Jf),i.current&&(typeof a=="number"?n.navigate(a):await n.navigate(a,{fromRouteId:r,...u}))},[n,r])}var Cf={};function np(n,r,i){!r&&!Cf[n]&&(Cf[n]=!0,zt(!1,i))}k.memo(Q1);function Q1({routes:n,future:r,state:i}){return tp(n,void 0,i,r)}function Da(n){Ae(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function X1({basename:n="/",children:r=null,location:i,navigationType:l="POP",navigator:a,static:u=!1}){Ae(!Ai(),"You cannot render a inside another . You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),f=k.useMemo(()=>({basename:d,navigator:a,static:u,future:{}}),[d,a,u]);typeof i=="string"&&(i=Kn(i));let{pathname:m="/",search:g="",hash:_="",state:y=null,key:x="default"}=i,T=k.useMemo(()=>{let S=cn(m,d);return S==null?null:{location:{pathname:S,search:g,hash:_,state:y,key:x},navigationType:l}},[d,m,g,_,y,x,l]);return zt(T!=null,` is not able to match the URL "${m}${g}${_}" because it does not start with the basename, so the won't render anything.`),T==null?null:k.createElement(Qt.Provider,{value:f},k.createElement(Di.Provider,{children:r,value:T}))}function Z1({children:n,location:r}){return z1(Aa(n),r)}function Aa(n,r=[]){let i=[];return k.Children.forEach(n,(l,a)=>{if(!k.isValidElement(l))return;let u=[...r,a];if(l.type===k.Fragment){i.push.apply(i,Aa(l.props.children,u));return}Ae(l.type===Da,`[${typeof l.type=="string"?l.type:l.type.name}] is not a component. All component children of must be a or `),Ae(!l.props.index||!l.props.children,"An index route cannot have child routes.");let d={id:l.props.id||u.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(d.children=Aa(l.props.children,u)),i.push(d)}),i}var ll="get",ol="application/x-www-form-urlencoded";function wl(n){return n!=null&&typeof n.tagName=="string"}function K1(n){return wl(n)&&n.tagName.toLowerCase()==="button"}function J1(n){return wl(n)&&n.tagName.toLowerCase()==="form"}function eg(n){return wl(n)&&n.tagName.toLowerCase()==="input"}function tg(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function ng(n,r){return n.button===0&&(!r||r==="_self")&&!tg(n)}var Ks=null;function rg(){if(Ks===null)try{new FormData(document.createElement("form"),0),Ks=!1}catch{Ks=!0}return Ks}var ig=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ea(n){return n!=null&&!ig.has(n)?(zt(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${ol}"`),null):n}function sg(n,r){let i,l,a,u,d;if(J1(n)){let f=n.getAttribute("action");l=f?cn(f,r):null,i=n.getAttribute("method")||ll,a=Ea(n.getAttribute("enctype"))||ol,u=new FormData(n)}else if(K1(n)||eg(n)&&(n.type==="submit"||n.type==="image")){let f=n.form;if(f==null)throw new Error('Cannot submit a