(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function o(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(l){if(l.ep)return;l.ep=!0;const c=o(l);fetch(l.href,c)}})();function _r(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _l={exports:{}},Pi={},Il={exports:{}},ae={};var dh;function r0(){if(dh)return ae;dh=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function x(R){return R===null||typeof R!="object"?null:(R=v&&R[v]||R["@@iterator"],typeof R=="function"?R:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,A={};function C(R,V,oe){this.props=R,this.context=V,this.refs=A,this.updater=oe||T}C.prototype.isReactComponent={},C.prototype.setState=function(R,V){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,V,"setState")},C.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function O(){}O.prototype=C.prototype;function j(R,V,oe){this.props=R,this.context=V,this.refs=A,this.updater=oe||T}var I=j.prototype=new O;I.constructor=j,M(I,C.prototype),I.isPureReactComponent=!0;var W=Array.isArray,b=Object.prototype.hasOwnProperty,ee={current:null},ie={key:!0,ref:!0,__self:!0,__source:!0};function Q(R,V,oe){var le,ce={},fe=null,ye=null;if(V!=null)for(le in V.ref!==void 0&&(ye=V.ref),V.key!==void 0&&(fe=""+V.key),V)b.call(V,le)&&!ie.hasOwnProperty(le)&&(ce[le]=V[le]);var pe=arguments.length-2;if(pe===1)ce.children=oe;else if(1>>1,V=U[R];if(0>>1;Rl(ce,$))fel(ye,ce)?(U[R]=ye,U[fe]=$,R=fe):(U[R]=ce,U[le]=$,R=le);else if(fel(ye,$))U[R]=ye,U[fe]=$,R=fe;else break e}}return q}function l(U,q){var $=U.sortIndex-q.sortIndex;return $!==0?$:U.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var p=[],m=[],g=1,v=null,x=3,T=!1,M=!1,A=!1,C=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(U){for(var q=o(m);q!==null;){if(q.callback===null)s(m);else if(q.startTime<=U)s(m),q.sortIndex=q.expirationTime,r(p,q);else break;q=o(m)}}function W(U){if(A=!1,I(U),!M)if(o(p)!==null)M=!0,nt(b);else{var q=o(m);q!==null&&se(W,q.startTime-U)}}function b(U,q){M=!1,A&&(A=!1,O(Q),Q=-1),T=!0;var $=x;try{for(I(q),v=o(p);v!==null&&(!(v.expirationTime>q)||U&&!Ye());){var R=v.callback;if(typeof R=="function"){v.callback=null,x=v.priorityLevel;var V=R(v.expirationTime<=q);q=n.unstable_now(),typeof V=="function"?v.callback=V:v===o(p)&&s(p),I(q)}else s(p);v=o(p)}if(v!==null)var oe=!0;else{var le=o(m);le!==null&&se(W,le.startTime-q),oe=!1}return oe}finally{v=null,x=$,T=!1}}var ee=!1,ie=null,Q=-1,he=5,ge=-1;function Ye(){return!(n.unstable_now()-geU||125R?(U.sortIndex=$,r(m,U),o(p)===null&&U===o(m)&&(A?(O(Q),Q=-1):A=!0,se(W,$-R))):(U.sortIndex=V,r(p,U),M||T||(M=!0,nt(b))),U},n.unstable_shouldYield=Ye,n.unstable_wrapCallback=function(U){var q=x;return function(){var $=x;x=q;try{return U.apply(this,arguments)}finally{x=$}}}})(Bl)),Bl}var yh;function a0(){return yh||(yh=1,Fl.exports=s0()),Fl.exports}var vh;function l0(){if(vh)return ft;vh=1;var n=Ds(),r=a0();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,g={},v={};function x(e){return p.call(v,e)?!0:p.call(g,e)?!1:m.test(e)?v[e]=!0:(g[e]=!0,!1)}function T(e,t,i,a){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function M(e,t,i,a){if(t===null||typeof t>"u"||T(e,t,i,a))return!0;if(a)return!1;if(i!==null)switch(i.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 A(e,t,i,a,u,d,y){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=u,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=y}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new A(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new A(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new A(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new A(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){C[e]=new A(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new A(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new A(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new A(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new A(e,5,!1,e.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function j(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(O,j);C[t]=new A(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(O,j);C[t]=new A(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(O,j);C[t]=new A(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new A(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new A(e,1,!1,e.toLowerCase(),null,!0,!0)});function I(e,t,i,a){var u=C.hasOwnProperty(t)?C[t]:null;(u!==null?u.type!==0:a||!(2w||u[y]!==d[w]){var S=` `+u[y].replace(" at new "," at ");return e.displayName&&S.includes("")&&(S=S.replace("",e.displayName)),S}while(1<=y&&0<=w);break}}}finally{oe=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?V(e):""}function ce(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return""}}function fe(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 ie:return"Fragment";case ee:return"Portal";case he:return"Profiler";case Q:return"StrictMode";case ze:return"Suspense";case $e:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ye:return(e.displayName||"Context")+".Consumer";case ge:return(e._context.displayName||"Context")+".Provider";case tt:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case nt:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function ye(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 fe(t);case 8:return t===Q?"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 pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ht(e){var t=Te(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(y){a=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eo(e){e._valueTracker||(e._valueTracker=ht(e))}function yc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),a="";return e&&(a=Te(e)?e.checked?"true":"false":e.value),e=a,e!==i?(t.setValue(e),!0):!1}function to(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 bs(e,t){var i=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function vc(e,t){var i=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;i=pe(t.value!=null?t.value:i),e._wrapperState={initialChecked:a,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xc(e,t){t=t.checked,t!=null&&I(e,"checked",t,!1)}function Hs(e,t){xc(e,t);var i=pe(t.value),a=t.type;if(i!=null)a==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$s(e,t.type,i):t.hasOwnProperty("defaultValue")&&$s(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wc(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function $s(e,t,i){(t!=="number"||to(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var zr=Array.isArray;function Jn(e,t,i,a){if(e=e.options,t){t={};for(var u=0;u"+t.valueOf().toString()+"",t=no.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ur(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var br={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},ay=["Webkit","ms","Moz","O"];Object.keys(br).forEach(function(e){ay.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),br[t]=br[e]})});function kc(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||br.hasOwnProperty(e)&&br[e]?(""+t).trim():t+"px"}function Rc(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var a=i.indexOf("--")===0,u=kc(i,t[i],a);i==="float"&&(i="cssFloat"),a?e.setProperty(i,u):e[i]=u}}var ly=$({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 Gs(e,t){if(t){if(ly[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Ys(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 Xs=null;function Qs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qs=null,er=null,tr=null;function Ac(e){if(e=ci(e)){if(typeof qs!="function")throw Error(o(280));var t=e.stateNode;t&&(t=ko(t),qs(e.stateNode,e.type,t))}}function Lc(e){er?tr?tr.push(e):tr=[e]:er=e}function Nc(){if(er){var e=er,t=tr;if(tr=er=null,Ac(e),t)for(e=0;e>>=0,e===0?32:31-(xy(e)/wy|0)|0}var ao=64,lo=4194304;function Kr(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 uo(e,t){var i=e.pendingLanes;if(i===0)return 0;var a=0,u=e.suspendedLanes,d=e.pingedLanes,y=i&268435455;if(y!==0){var w=y&~u;w!==0?a=Kr(w):(d&=y,d!==0&&(a=Kr(d)))}else y=i&~u,y!==0?a=Kr(y):d!==0&&(a=Kr(d));if(a===0)return 0;if(t!==0&&t!==a&&(t&u)===0&&(u=a&-a,d=t&-t,u>=d||u===16&&(d&4194240)!==0))return t;if((a&4)!==0&&(a|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0i;i++)t.push(e);return t}function Gr(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=i}function Cy(e,t){var i=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 a=e.eventTimes;for(e=e.expirationTimes;0=ti),of=" ",sf=!1;function af(e,t){switch(e){case"keyup":return Zy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ir=!1;function ev(e,t){switch(e){case"compositionend":return lf(t);case"keypress":return t.which!==32?null:(sf=!0,of);case"textInput":return e=t.data,e===of&&sf?null:e;default:return null}}function tv(e,t){if(ir)return e==="compositionend"||!ma&&af(e,t)?(e=Zc(),mo=ua=pn=null,ir=!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:i,offset:t-e};e=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=mf(i)}}function yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vf(){for(var e=window,t=to();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=to(e.document)}return t}function va(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 cv(e){var t=vf(),i=e.focusedElem,a=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&yf(i.ownerDocument.documentElement,i)){if(a!==null&&va(i)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=i.textContent.length,d=Math.min(a.start,u);a=a.end===void 0?d:Math.min(a.end,u),!e.extend&&d>a&&(u=a,a=d,d=u),u=gf(i,d);var y=gf(i,a);u&&y&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==y.node||e.focusOffset!==y.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),d>a?(e.addRange(t),e.extend(y.node,y.offset)):(t.setEnd(y.node,y.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,or=null,xa=null,oi=null,wa=!1;function xf(e,t,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;wa||or==null||or!==to(a)||(a=or,"selectionStart"in a&&va(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),oi&&ii(oi,a)||(oi=a,a=Eo(xa,"onSelect"),0cr||(e.current=Da[cr],Da[cr]=null,cr--)}function ve(e,t){cr++,Da[cr]=e.current,e.current=t}var vn={},Xe=yn(vn),st=yn(!1),_n=vn;function fr(e,t){var i=e.type.contextTypes;if(!i)return vn;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var u={},d;for(d in i)u[d]=t[d];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function at(e){return e=e.childContextTypes,e!=null}function Ro(){we(st),we(Xe)}function jf(e,t,i){if(Xe.current!==vn)throw Error(o(168));ve(Xe,t),ve(st,i)}function _f(e,t,i){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var u in a)if(!(u in t))throw Error(o(108,ye(e)||"Unknown",u));return $({},i,a)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vn,_n=Xe.current,ve(Xe,e),ve(st,st.current),!0}function If(e,t,i){var a=e.stateNode;if(!a)throw Error(o(169));i?(e=_f(e,t,_n),a.__reactInternalMemoizedMergedChildContext=e,we(st),we(Xe),ve(Xe,e)):we(st),ve(st,i)}var Qt=null,Lo=!1,Oa=!1;function Vf(e){Qt===null?Qt=[e]:Qt.push(e)}function Tv(e){Lo=!0,Vf(e)}function xn(){if(!Oa&&Qt!==null){Oa=!0;var e=0,t=me;try{var i=Qt;for(me=1;e>=y,u-=y,qt=1<<32-Nt(t)+u|i<ne?(He=J,J=null):He=J.sibling;var de=_(L,J,N[ne],z);if(de===null){J===null&&(J=He);break}e&&J&&de.alternate===null&&t(L,J),E=d(de,E,ne),Z===null?X=de:Z.sibling=de,Z=de,J=He}if(ne===N.length)return i(L,J),Ee&&Vn(L,ne),X;if(J===null){for(;nene?(He=J,J=null):He=J.sibling;var An=_(L,J,de.value,z);if(An===null){J===null&&(J=He);break}e&&J&&An.alternate===null&&t(L,J),E=d(An,E,ne),Z===null?X=An:Z.sibling=An,Z=An,J=He}if(de.done)return i(L,J),Ee&&Vn(L,ne),X;if(J===null){for(;!de.done;ne++,de=N.next())de=B(L,de.value,z),de!==null&&(E=d(de,E,ne),Z===null?X=de:Z.sibling=de,Z=de);return Ee&&Vn(L,ne),X}for(J=a(L,J);!de.done;ne++,de=N.next())de=H(J,L,ne,de.value,z),de!==null&&(e&&de.alternate!==null&&J.delete(de.key===null?ne:de.key),E=d(de,E,ne),Z===null?X=de:Z.sibling=de,Z=de);return e&&J.forEach(function(n0){return t(L,n0)}),Ee&&Vn(L,ne),X}function Oe(L,E,N,z){if(typeof N=="object"&&N!==null&&N.type===ie&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case b:e:{for(var X=N.key,Z=E;Z!==null;){if(Z.key===X){if(X=N.type,X===ie){if(Z.tag===7){i(L,Z.sibling),E=u(Z,N.props.children),E.return=L,L=E;break e}}else if(Z.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===nt&&Hf(X)===Z.type){i(L,Z.sibling),E=u(Z,N.props),E.ref=fi(L,Z,N),E.return=L,L=E;break e}i(L,Z);break}else t(L,Z);Z=Z.sibling}N.type===ie?(E=Wn(N.props.children,L.mode,z,N.key),E.return=L,L=E):(z=rs(N.type,N.key,N.props,null,L.mode,z),z.ref=fi(L,E,N),z.return=L,L=z)}return y(L);case ee:e:{for(Z=N.key;E!==null;){if(E.key===Z)if(E.tag===4&&E.stateNode.containerInfo===N.containerInfo&&E.stateNode.implementation===N.implementation){i(L,E.sibling),E=u(E,N.children||[]),E.return=L,L=E;break e}else{i(L,E);break}else t(L,E);E=E.sibling}E=Nl(N,L.mode,z),E.return=L,L=E}return y(L);case nt:return Z=N._init,Oe(L,E,Z(N._payload),z)}if(zr(N))return G(L,E,N,z);if(q(N))return Y(L,E,N,z);Oo(L,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,E!==null&&E.tag===6?(i(L,E.sibling),E=u(E,N),E.return=L,L=E):(i(L,E),E=Ll(N,L.mode,z),E.return=L,L=E),y(L)):i(L,E)}return Oe}var mr=$f(!0),Wf=$f(!1),jo=yn(null),_o=null,gr=null,Ba=null;function za(){Ba=gr=_o=null}function Ua(e){var t=jo.current;we(jo),e._currentValue=t}function ba(e,t,i){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===i)break;e=e.return}}function yr(e,t){_o=e,Ba=gr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(lt=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(Ba!==e)if(e={context:e,memoizedValue:t,next:null},gr===null){if(_o===null)throw Error(o(308));gr=e,_o.dependencies={lanes:0,firstContext:e}}else gr=gr.next=e;return t}var Fn=null;function Ha(e){Fn===null?Fn=[e]:Fn.push(e)}function Kf(e,t,i,a){var u=t.interleaved;return u===null?(i.next=i,Ha(t)):(i.next=u.next,u.next=i),t.interleaved=i,Jt(e,a)}function Jt(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var wn=!1;function $a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gf(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 en(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(e,t,i){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ue&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,Jt(e,i)}return u=a.interleaved,u===null?(t.next=t,Ha(a)):(t.next=u.next,u.next=t),a.interleaved=t,Jt(e,i)}function Io(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,i|=a,t.lanes=i,ia(e,i)}}function Yf(e,t){var i=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var y={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};d===null?u=d=y:d=d.next=y,i=i.next}while(i!==null);d===null?u=d=t:d=d.next=t}else u=d=t;i={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:a.shared,effects:a.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function Vo(e,t,i,a){var u=e.updateQueue;wn=!1;var d=u.firstBaseUpdate,y=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var S=w,D=S.next;S.next=null,y===null?d=D:y.next=D,y=S;var F=e.alternate;F!==null&&(F=F.updateQueue,w=F.lastBaseUpdate,w!==y&&(w===null?F.firstBaseUpdate=D:w.next=D,F.lastBaseUpdate=S))}if(d!==null){var B=u.baseState;y=0,F=D=S=null,w=d;do{var _=w.lane,H=w.eventTime;if((a&_)===_){F!==null&&(F=F.next={eventTime:H,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var G=e,Y=w;switch(_=t,H=i,Y.tag){case 1:if(G=Y.payload,typeof G=="function"){B=G.call(H,B,_);break e}B=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=Y.payload,_=typeof G=="function"?G.call(H,B,_):G,_==null)break e;B=$({},B,_);break e;case 2:wn=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,_=u.effects,_===null?u.effects=[w]:_.push(w))}else H={eventTime:H,lane:_,tag:w.tag,payload:w.payload,callback:w.callback,next:null},F===null?(D=F=H,S=B):F=F.next=H,y|=_;if(w=w.next,w===null){if(w=u.shared.pending,w===null)break;_=w,w=_.next,_.next=null,u.lastBaseUpdate=_,u.shared.pending=null}}while(!0);if(F===null&&(S=B),u.baseState=S,u.firstBaseUpdate=D,u.lastBaseUpdate=F,t=u.shared.interleaved,t!==null){u=t;do y|=u.lane,u=u.next;while(u!==t)}else d===null&&(u.shared.lanes=0);Un|=y,e.lanes=y,e.memoizedState=B}}function Xf(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;ti?i:4,e(!0);var a=Xa.transition;Xa.transition={};try{e(!1),t()}finally{me=i,Xa.transition=a}}function pd(){return Ct().memoizedState}function kv(e,t,i){var a=Pn(e);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},md(e))gd(t,i);else if(i=Kf(e,t,i,a),i!==null){var u=it();It(i,e,a,u),yd(i,t,a)}}function Rv(e,t,i){var a=Pn(e),u={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(md(e))gd(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,w=d(y,i);if(u.hasEagerState=!0,u.eagerState=w,Mt(w,y)){var S=t.interleaved;S===null?(u.next=u,Ha(t)):(u.next=S.next,S.next=u),t.interleaved=u;return}}catch{}i=Kf(e,t,u,a),i!==null&&(u=it(),It(i,e,a,u),yd(i,t,a))}}function md(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function gd(e,t){mi=zo=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function yd(e,t,i){if((i&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,i|=a,t.lanes=i,ia(e,i)}}var Ho={readContext:Et,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},Av={readContext:Et,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:sd,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,Uo(4194308,4,ud.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uo(4,2,e,t)},useMemo:function(e,t){var i=Ht();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var a=Ht();return t=i!==void 0?i(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=kv.bind(null,Re,e),[a.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:id,useDebugValue:nl,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=id(!1),t=e[0];return e=Pv.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var a=Re,u=Ht();if(Ee){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),be===null)throw Error(o(349));(zn&30)!==0||Jf(a,t,i)}u.memoizedState=i;var d={value:i,getSnapshot:t};return u.queue=d,sd(td.bind(null,a,d,e),[e]),a.flags|=2048,vi(9,ed.bind(null,a,d,i,t),void 0,null),i},useId:function(){var e=Ht(),t=be.identifierPrefix;if(Ee){var i=Zt,a=qt;i=(a&~(1<<32-Nt(a)-1)).toString(32)+i,t=":"+t+"R"+i,i=gi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=y.createElement(i,{is:a.is}):(e=y.createElement(i),i==="select"&&(y=e,a.multiple?y.multiple=!0:a.size&&(y.size=a.size))):e=y.createElementNS(e,i),e[Ut]=t,e[ui]=a,Vd(e,t,!1,!1),t.stateNode=e;e:{switch(y=Ys(i,a),i){case"dialog":xe("cancel",e),xe("close",e),u=a;break;case"iframe":case"object":case"embed":xe("load",e),u=a;break;case"video":case"audio":for(u=0;uTr&&(t.flags|=128,a=!0,xi(d,!1),t.lanes=4194304)}else{if(!a)if(e=Fo(y),e!==null){if(t.flags|=128,a=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),xi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!Ee)return qe(t),null}else 2*De()-d.renderingStartTime>Tr&&i!==1073741824&&(t.flags|=128,a=!0,xi(d,!1),t.lanes=4194304);d.isBackwards?(y.sibling=t.child,t.child=y):(i=d.last,i!==null?i.sibling=y:t.child=y,d.last=y)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=De(),t.sibling=null,i=ke.current,ve(ke,a?i&1|2:i&1),t):(qe(t),null);case 22:case 23:return kl(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(yt&1073741824)!==0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Iv(e,t){switch(_a(t),t.tag){case 1:return at(t.type)&&Ro(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vr(),we(st),we(Xe),Ya(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ka(t),null;case 13:if(we(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(ke),null;case 4:return vr(),null;case 10:return Ua(t.type._context),null;case 22:case 23:return kl(),null;case 24:return null;default:return null}}var Go=!1,Ze=!1,Vv=typeof WeakSet=="function"?WeakSet:Set,K=null;function wr(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){Ne(e,t,a)}else i.current=null}function pl(e,t,i){try{i()}catch(a){Ne(e,t,a)}}var zd=!1;function Fv(e,t){if(ka=ho,e=vf(),va(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var u=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var y=0,w=-1,S=-1,D=0,F=0,B=e,_=null;t:for(;;){for(var H;B!==i||u!==0&&B.nodeType!==3||(w=y+u),B!==d||a!==0&&B.nodeType!==3||(S=y+a),B.nodeType===3&&(y+=B.nodeValue.length),(H=B.firstChild)!==null;)_=B,B=H;for(;;){if(B===e)break t;if(_===i&&++D===u&&(w=y),_===d&&++F===a&&(S=y),(H=B.nextSibling)!==null)break;B=_,_=B.parentNode}B=H}i=w===-1||S===-1?null:{start:w,end:S}}else i=null}i=i||{start:0,end:0}}else i=null;for(Ra={focusedElem:e,selectionRange:i},ho=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var G=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(G!==null){var Y=G.memoizedProps,Oe=G.memoizedState,L=t.stateNode,E=L.getSnapshotBeforeUpdate(t.elementType===t.type?Y:Ot(t.type,Y),Oe);L.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var N=t.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(z){Ne(t,t.return,z)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return G=zd,zd=!1,G}function wi(e,t,i){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var u=a=a.next;do{if((u.tag&e)===e){var d=u.destroy;u.destroy=void 0,d!==void 0&&pl(t,i,d)}u=u.next}while(u!==a)}}function Yo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var a=i.create;i.destroy=a()}i=i.next}while(i!==t)}}function ml(e){var t=e.ref;if(t!==null){var i=e.stateNode;e.tag,e=i,typeof t=="function"?t(e):t.current=e}}function Ud(e){var t=e.alternate;t!==null&&(e.alternate=null,Ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ut],delete t[ui],delete t[Ma],delete t[wv],delete t[Sv])),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 bd(e){return e.tag===5||e.tag===3||e.tag===4}function Hd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bd(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 gl(e,t,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Po));else if(a!==4&&(e=e.child,e!==null))for(gl(e,t,i),e=e.sibling;e!==null;)gl(e,t,i),e=e.sibling}function yl(e,t,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(yl(e,t,i),e=e.sibling;e!==null;)yl(e,t,i),e=e.sibling}var We=null,jt=!1;function Tn(e,t,i){for(i=i.child;i!==null;)$d(e,t,i),i=i.sibling}function $d(e,t,i){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(so,i)}catch{}switch(i.tag){case 5:Ze||wr(i,t);case 6:var a=We,u=jt;We=null,Tn(e,t,i),We=a,jt=u,We!==null&&(jt?(e=We,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):We.removeChild(i.stateNode));break;case 18:We!==null&&(jt?(e=We,i=i.stateNode,e.nodeType===8?Na(e.parentNode,i):e.nodeType===1&&Na(e,i),Zr(e)):Na(We,i.stateNode));break;case 4:a=We,u=jt,We=i.stateNode.containerInfo,jt=!0,Tn(e,t,i),We=a,jt=u;break;case 0:case 11:case 14:case 15:if(!Ze&&(a=i.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){u=a=a.next;do{var d=u,y=d.destroy;d=d.tag,y!==void 0&&((d&2)!==0||(d&4)!==0)&&pl(i,t,y),u=u.next}while(u!==a)}Tn(e,t,i);break;case 1:if(!Ze&&(wr(i,t),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(w){Ne(i,t,w)}Tn(e,t,i);break;case 21:Tn(e,t,i);break;case 22:i.mode&1?(Ze=(a=Ze)||i.memoizedState!==null,Tn(e,t,i),Ze=a):Tn(e,t,i);break;default:Tn(e,t,i)}}function Wd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Vv),t.forEach(function(a){var u=Gv.bind(null,e,a);i.has(a)||(i.add(a),a.then(u,u))})}}function _t(e,t){var i=t.deletions;if(i!==null)for(var a=0;au&&(u=y),a&=~d}if(a=u,a=De()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*zv(a/1960))-a,10e?16:e,Cn===null)var a=!1;else{if(e=Cn,Cn=null,Jo=0,(ue&6)!==0)throw Error(o(331));var u=ue;for(ue|=4,K=e.current;K!==null;){var d=K,y=d.child;if((K.flags&16)!==0){var w=d.deletions;if(w!==null){for(var S=0;SDe()-wl?Hn(e,0):xl|=i),ct(e,t)}function ih(e,t){t===0&&((e.mode&1)===0?t=1:(t=lo,lo<<=1,(lo&130023424)===0&&(lo=4194304)));var i=it();e=Jt(e,t),e!==null&&(Gr(e,t,i),ct(e,i))}function Kv(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),ih(e,i)}function Gv(e,t){var i=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(o(314))}a!==null&&a.delete(t),ih(e,i)}var oh;oh=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)lt=!0;else{if((e.lanes&i)===0&&(t.flags&128)===0)return lt=!1,jv(e,t,i);lt=(e.flags&131072)!==0}else lt=!1,Ee&&(t.flags&1048576)!==0&&Ff(t,Mo,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Ko(e,t),e=t.pendingProps;var u=fr(t,Xe.current);yr(t,i),u=qa(null,t,a,e,u,i);var d=Za();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(a)?(d=!0,Ao(t)):d=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,$a(t),u.updater=$o,t.stateNode=u,u._reactInternals=t,il(t,a,e,i),t=ll(null,t,a,!0,d,i)):(t.tag=0,Ee&&d&&ja(t),rt(null,t,u,i),t=t.child),t;case 16:a=t.elementType;e:{switch(Ko(e,t),e=t.pendingProps,u=a._init,a=u(a._payload),t.type=a,u=t.tag=Xv(a),e=Ot(a,e),u){case 0:t=al(null,t,a,e,i);break e;case 1:t=Md(null,t,a,e,i);break e;case 11:t=kd(null,t,a,e,i);break e;case 14:t=Rd(null,t,a,Ot(a.type,e),i);break e}throw Error(o(306,a,""))}return t;case 0:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Ot(a,u),al(e,t,a,u,i);case 1:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Ot(a,u),Md(e,t,a,u,i);case 3:e:{if(Dd(t),e===null)throw Error(o(387));a=t.pendingProps,d=t.memoizedState,u=d.element,Gf(e,t),Vo(t,a,null,i);var y=t.memoizedState;if(a=y.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){u=xr(Error(o(423)),t),t=Od(e,t,a,i,u);break e}else if(a!==u){u=xr(Error(o(424)),t),t=Od(e,t,a,i,u);break e}else for(gt=gn(t.stateNode.containerInfo.firstChild),mt=t,Ee=!0,Dt=null,i=Wf(t,null,a,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(pr(),a===u){t=tn(e,t,i);break e}rt(e,t,a,i)}t=t.child}return t;case 5:return Qf(t),e===null&&Va(t),a=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,y=u.children,Aa(a,u)?y=null:d!==null&&Aa(a,d)&&(t.flags|=32),Nd(e,t),rt(e,t,y,i),t.child;case 6:return e===null&&Va(t),null;case 13:return jd(e,t,i);case 4:return Wa(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=mr(t,null,a,i):rt(e,t,a,i),t.child;case 11:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Ot(a,u),kd(e,t,a,u,i);case 7:return rt(e,t,t.pendingProps,i),t.child;case 8:return rt(e,t,t.pendingProps.children,i),t.child;case 12:return rt(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(a=t.type._context,u=t.pendingProps,d=t.memoizedProps,y=u.value,ve(jo,a._currentValue),a._currentValue=y,d!==null)if(Mt(d.value,y)){if(d.children===u.children&&!st.current){t=tn(e,t,i);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var w=d.dependencies;if(w!==null){y=d.child;for(var S=w.firstContext;S!==null;){if(S.context===a){if(d.tag===1){S=en(-1,i&-i),S.tag=2;var D=d.updateQueue;if(D!==null){D=D.shared;var F=D.pending;F===null?S.next=S:(S.next=F.next,F.next=S),D.pending=S}}d.lanes|=i,S=d.alternate,S!==null&&(S.lanes|=i),ba(d.return,i,t),w.lanes|=i;break}S=S.next}}else if(d.tag===10)y=d.type===t.type?null:d.child;else if(d.tag===18){if(y=d.return,y===null)throw Error(o(341));y.lanes|=i,w=y.alternate,w!==null&&(w.lanes|=i),ba(y,i,t),y=d.sibling}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===t){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}rt(e,t,u.children,i),t=t.child}return t;case 9:return u=t.type,a=t.pendingProps.children,yr(t,i),u=Et(u),a=a(u),t.flags|=1,rt(e,t,a,i),t.child;case 14:return a=t.type,u=Ot(a,t.pendingProps),u=Ot(a.type,u),Rd(e,t,a,u,i);case 15:return Ad(e,t,t.type,t.pendingProps,i);case 17:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Ot(a,u),Ko(e,t),t.tag=1,at(a)?(e=!0,Ao(t)):e=!1,yr(t,i),xd(t,a,u),il(t,a,u,i),ll(null,t,a,!0,e,i);case 19:return Id(e,t,i);case 22:return Ld(e,t,i)}throw Error(o(156,t.tag))};function sh(e,t){return Fc(e,t)}function Yv(e,t,i,a){this.tag=e,this.key=i,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,i,a){return new Yv(e,t,i,a)}function Al(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xv(e){if(typeof e=="function")return Al(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tt)return 11;if(e===_e)return 14}return 2}function Rn(e,t){var i=e.alternate;return i===null?(i=kt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function rs(e,t,i,a,u,d){var y=2;if(a=e,typeof e=="function")Al(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case ie:return Wn(i.children,u,d,t);case Q:y=8,u|=8;break;case he:return e=kt(12,i,t,u|2),e.elementType=he,e.lanes=d,e;case ze:return e=kt(13,i,t,u),e.elementType=ze,e.lanes=d,e;case $e:return e=kt(19,i,t,u),e.elementType=$e,e.lanes=d,e;case se:return is(i,u,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ge:y=10;break e;case Ye:y=9;break e;case tt:y=11;break e;case _e:y=14;break e;case nt:y=16,a=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=kt(y,i,t,u),t.elementType=e,t.type=a,t.lanes=d,t}function Wn(e,t,i,a){return e=kt(7,e,a,t),e.lanes=i,e}function is(e,t,i,a){return e=kt(22,e,a,t),e.elementType=se,e.lanes=i,e.stateNode={isHidden:!1},e}function Ll(e,t,i){return e=kt(6,e,null,t),e.lanes=i,e}function Nl(e,t,i){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qv(e,t,i,a,u){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=ra(0),this.expirationTimes=ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ra(0),this.identifierPrefix=a,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function Ml(e,t,i,a,u,d,y,w,S){return e=new Qv(e,t,i,w,S),t===1?(t=1,d===!0&&(t|=8)):t=0,d=kt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},$a(d),e}function qv(e,t,i){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Vl.exports=l0(),Vl.exports}var wh;function c0(){if(wh)return fs;wh=1;var n=u0();return fs.createRoot=n.createRoot,fs.hydrateRoot=n.hydrateRoot,fs}var f0=c0();const d0=_r(f0);var Mu=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,em=/^[\\/]{2}/;function h0(n,r){return r+n.replace(/\\/g,"/")}var Sh="popstate";function Th(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function p0(n={}){function r(s,l){let c=l.state?.masked,{pathname:f,search:h,hash:p}=c||s.location;return uu("",{pathname:f,search:h,hash:p},l.state&&l.state.usr||null,l.state&&l.state.key||"default",c?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function o(s,l){return typeof l=="string"?l:Fi(l)}return g0(r,o,null,n)}function Le(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Gt(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function m0(){return Math.random().toString(36).substring(2,10)}function Eh(n,r){return{usr:n.state,key:n.key,idx:r,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function uu(n,r,o=null,s,l){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Ir(r):r,state:o,key:r&&r.key||s||m0(),mask:l}}function Fi({pathname:n="/",search:r="",hash:o=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Ir(n){let r={};if(n){let o=n.indexOf("#");o>=0&&(r.hash=n.substring(o),n=n.substring(0,o));let s=n.indexOf("?");s>=0&&(r.search=n.substring(s),n=n.substring(0,s)),n&&(r.pathname=n)}return r}function g0(n,r,o,s={}){let{window:l=document.defaultView,v5Compat:c=!1}=s,f=l.history,h="POP",p=null,m=g();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function g(){return(f.state||{idx:null}).idx}function v(){h="POP";let C=g(),O=C==null?null:C-m;m=C,p&&p({action:h,location:A.location,delta:O})}function x(C,O){h="PUSH";let j=Th(C)?C:uu(A.location,C,O);m=g()+1;let I=Eh(j,m),W=A.createHref(j.mask||j);try{f.pushState(I,"",W)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;l.location.assign(W)}c&&p&&p({action:h,location:A.location,delta:1})}function T(C,O){h="REPLACE";let j=Th(C)?C:uu(A.location,C,O);m=g();let I=Eh(j,m),W=A.createHref(j.mask||j);f.replaceState(I,"",W),c&&p&&p({action:h,location:A.location,delta:0})}function M(C){return y0(l,C)}let A={get action(){return h},get location(){return n(l,f)},listen(C){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(Sh,v),p=C,()=>{l.removeEventListener(Sh,v),p=null}},createHref(C){return r(l,C)},createURL:M,encodeLocation(C){let O=M(C);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:x,replace:T,go(C){return f.go(C)}};return A}function y0(n,r,o=!1){let s="http://localhost";n&&(s=n.location.origin!=="null"?n.location.origin:n.location.href),Le(s,"No window.location.(origin|href) available to create URL");let l=typeof r=="string"?r:Fi(r);return l=l.replace(/ $/,"%20"),!o&&em.test(l)&&(l=s+l),new URL(l,s)}function tm(n,r,o="/"){return v0(n,r,o,!1)}function v0(n,r,o,s,l){let c=typeof r=="string"?Ir(r):r,f=an(c.pathname||"/",o);if(f==null)return null;let h=x0(n),p=null,m=N0(f);for(let g=0;p==null&&g{let g={relativePath:m===void 0?f.path||"":m,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(s)&&p)return;Le(g.relativePath.startsWith(s),`Absolute route path "${g.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(s.length)}let v=Bt([s,g.relativePath]),x=o.concat(g);f.children&&f.children.length>0&&(Le(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),nm(f.children,r,x,v,p)),!(f.path==null&&!f.index)&&r.push({path:v,score:R0(v,f.index),routesMeta:x.map((T,M)=>{let[A,C]=om(T.relativePath,T.caseSensitive,M===x.length-1);return{...T,matcher:A,compiledParams:C}})})};return n.forEach((f,h)=>{if(f.path===""||!f.path?.includes("?"))c(f,h);else for(let p of rm(f.path))c(f,h,!0,p)}),r}function rm(n){let r=n.split("/");if(r.length===0)return[];let[o,...s]=r,l=o.endsWith("?"),c=o.replace(/\?$/,"");if(s.length===0)return l?[c,""]:[c];let f=rm(s.join("/")),h=[];return h.push(...f.map(p=>p===""?c:[c,p].join("/"))),l&&h.push(...f),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function w0(n){n.sort((r,o)=>r.score!==o.score?o.score-r.score:A0(r.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var S0=/^:[\w-]+$/,T0=3,E0=2,C0=1,P0=10,k0=-2,Ch=n=>n==="*";function R0(n,r){let o=n.split("/"),s=o.length;return o.some(Ch)&&(s+=k0),r&&(s+=E0),o.filter(l=>!Ch(l)).reduce((l,c)=>l+(S0.test(c)?T0:c===""?C0:P0),s)}function A0(n,r){return n.length===r.length&&n.slice(0,-1).every((s,l)=>s===r[l])?n[n.length-1]-r[r.length-1]:0}function L0(n,r,o=!1){let{routesMeta:s}=n,l={},c="/",f=[];for(let h=0;h{if(g==="*"){let M=h[x]||"";f=c.slice(0,c.length-M.length).replace(/(.)\/+$/,"$1")}const T=h[x];return v&&!T?m[g]=void 0:m[g]=(T||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:f,pattern:n}}function om(n,r=!1,o=!0){Gt(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 s=[],l="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,p,m,g)=>{if(s.push({paramName:h,isOptional:p!=null}),p){let v=g.charAt(m+f.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),l+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?l+="\\/*$":n!==""&&n!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,r?void 0:"i"),s]}function N0(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Gt(!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 an(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,s=n.charAt(o);return s&&s!=="/"?null:n.slice(o)||"/"}function M0(n,r="/"){let{pathname:o,search:s="",hash:l=""}=typeof n=="string"?Ir(n):n,c;return o?(o=am(o),o.startsWith("/")?c=Ph(o.substring(1),"/"):c=Ph(o,r)):c=r,{pathname:c,search:j0(s),hash:_0(l)}}function Ph(n,r){let o=Ts(r).split("/");return n.split("/").forEach(l=>{l===".."?o.length>1&&o.pop():l!=="."&&o.push(l)}),o.length>1?o.join("/"):"/"}function zl(n,r,o,s){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function D0(n){return n.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function sm(n){let r=D0(n);return r.map((o,s)=>s===r.length-1?o.pathname:o.pathnameBase)}function Du(n,r,o,s=!1){let l;typeof n=="string"?l=Ir(n):(l={...n},Le(!l.pathname||!l.pathname.includes("?"),zl("?","pathname","search",l)),Le(!l.pathname||!l.pathname.includes("#"),zl("#","pathname","hash",l)),Le(!l.search||!l.search.includes("#"),zl("#","search","hash",l)));let c=n===""||l.pathname==="",f=c?"/":l.pathname,h;if(f==null)h=o;else{let v=r.length-1;if(!s&&f.startsWith("..")){let x=f.split("/");for(;x[0]==="..";)x.shift(),v-=1;l.pathname=x.join("/")}h=v>=0?r[v]:"/"}let p=M0(l,h),m=f&&f!=="/"&&f.endsWith("/"),g=(c||f===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}var am=n=>n.replace(/[\\/]{2,}/g,"/"),Bt=n=>am(n.join("/")),Ts=n=>n.replace(/\/+$/,""),O0=n=>Ts(n).replace(/^\/*/,"/"),j0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,_0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,I0=class{constructor(n,r,o,s=!1){this.status=n,this.statusText=r||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function V0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function F0(n){let r=n.map(o=>o.route.path).filter(Boolean);return Bt(r)||"/"}var lm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function um(n,r){let o=n;if(typeof o!="string"||!Mu.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let s=o,l=!1;if(lm)try{let c=new URL(window.location.href),f=em.test(o)?new URL(h0(o,c.protocol)):new URL(o),h=an(f.pathname,r);f.origin===c.origin&&h!=null?o=h+f.search+f.hash:l=!0}catch{Gt(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:l,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var cm=["POST","PUT","PATCH","DELETE"];new Set(cm);var B0=["GET",...cm];new Set(B0);var z0=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function U0(n){try{return z0.includes(new URL(n).protocol)}catch{return!1}}var Vr=k.createContext(null);Vr.displayName="DataRouter";var Os=k.createContext(null);Os.displayName="DataRouterState";var fm=k.createContext(!1);function b0(){return k.useContext(fm)}var dm=k.createContext({isTransitioning:!1});dm.displayName="ViewTransition";var H0=k.createContext(new Map);H0.displayName="Fetchers";var $0=k.createContext(null);$0.displayName="Await";var Lt=k.createContext(null);Lt.displayName="Navigation";var Gi=k.createContext(null);Gi.displayName="Location";var un=k.createContext({outlet:null,matches:[],isDataRoute:!1});un.displayName="Route";var Ou=k.createContext(null);Ou.displayName="RouteError";var hm="REACT_ROUTER_ERROR",W0="REDIRECT",K0="ROUTE_ERROR_RESPONSE";function G0(n){if(n.startsWith(`${hm}:${W0}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function Y0(n){if(n.startsWith(`${hm}:${K0}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new I0(r.status,r.statusText,r.data)}catch{}}function X0(n,{relative:r}={}){Le(Yi(),"useHref() may be used only in the context of a component.");let{basename:o,navigator:s}=k.useContext(Lt),{hash:l,pathname:c,search:f}=Xi(n,{relative:r}),h=c;return o!=="/"&&(h=c==="/"?o:Bt([o,c])),s.createHref({pathname:h,search:f,hash:l})}function Yi(){return k.useContext(Gi)!=null}function Yt(){return Le(Yi(),"useLocation() may be used only in the context of a component."),k.useContext(Gi).location}var pm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function mm(n){k.useContext(Lt).static||k.useLayoutEffect(n)}function Q0(){let{isDataRoute:n}=k.useContext(un);return n?u1():q0()}function q0(){Le(Yi(),"useNavigate() may be used only in the context of a component.");let n=k.useContext(Vr),{basename:r,navigator:o}=k.useContext(Lt),{matches:s}=k.useContext(un),{pathname:l}=Yt(),c=JSON.stringify(sm(s)),f=k.useRef(!1);return mm(()=>{f.current=!0}),k.useCallback((p,m={})=>{if(Gt(f.current,pm),!f.current)return;if(typeof p=="number"){o.go(p);return}let g=Du(p,JSON.parse(c),l,m.relative==="path");n==null&&r!=="/"&&(g.pathname=g.pathname==="/"?r:Bt([r,g.pathname])),(m.replace?o.replace:o.push)(g,m.state,m)},[r,o,c,l,n])}k.createContext(null);function Xi(n,{relative:r}={}){let{matches:o}=k.useContext(un),{pathname:s}=Yt(),l=JSON.stringify(sm(o));return k.useMemo(()=>Du(n,JSON.parse(l),s,r==="path"),[n,l,s,r])}function Z0(n,r){return gm(n,r)}function gm(n,r,o){Le(Yi(),"useRoutes() may be used only in the context of a component.");let{navigator:s}=k.useContext(Lt),{matches:l}=k.useContext(un),c=l[l.length-1],f=c?c.params:{},h=c?c.pathname:"/",p=c?c.pathnameBase:"/",m=c&&c.route;{let C=m&&m.path||"";vm(h,!m||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${h}" (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 g=Yt(),v;if(r){let C=typeof r=="string"?Ir(r):r;Le(p==="/"||C.pathname?.startsWith(p),`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 "${p}" but pathname "${C.pathname}" was given in the \`location\` prop.`),v=C}else v=g;let x=v.pathname||"/",T=x;if(p!=="/"){let C=p.replace(/^\//,"").split("/");T="/"+x.replace(/^\//,"").split("/").slice(C.length).join("/")}let M=o&&o.state.matches.length?o.state.matches.map(C=>Object.assign(C,{route:o.manifest[C.route.id]||C.route})):tm(n,{pathname:T});Gt(m||M!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Gt(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 A=r1(M&&M.map(C=>Object.assign({},C,{params:Object.assign({},f,C.params),pathname:Bt([p,s.encodeLocation?s.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?p:Bt([p,s.encodeLocation?s.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),l,o);return r&&A?k.createElement(Gi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...v},navigationType:"POP"}},A):A}function J0(){let n=l1(),r=V0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=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:c},"ErrorBoundary")," or"," ",k.createElement("code",{style:c},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},r),o?k.createElement("pre",{style:l},o):null,f)}var e1=k.createElement(J0,null),ym=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){this.props.onError?this.props.onError(n,r):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=Y0(n.digest);o&&(n=o)}let r=n!==void 0?k.createElement(un.Provider,{value:this.props.routeContext},k.createElement(Ou.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?k.createElement(t1,{error:n},r):r}};ym.contextType=fm;var Ul=new WeakMap;function t1({children:n,error:r}){let{basename:o}=k.useContext(Lt);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=G0(r.digest);if(s){let l=Ul.get(r);if(l)throw l;let c=um(s.location,o),f=c.absoluteURL||c.to;if(U0(f))throw new Error("Invalid redirect location");if(lm&&!Ul.get(r))if(c.isExternal||s.reloadDocument)window.location.href=f;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:s.replace}));throw Ul.set(r,h),h}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f}`})}}return n}function n1({routeContext:n,match:r,children:o}){let s=k.useContext(Vr);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),k.createElement(un.Provider,{value:n},o)}function r1(n,r=[],o){let s=o?.state;if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(r.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let l=n,c=s?.errors;if(c!=null){let g=l.findIndex(v=>v.route.id&&c?.[v.route.id]!==void 0);Le(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,g+1))}let f=!1,h=-1;if(o&&s){f=s.renderFallback;for(let g=0;g=0?l=l.slice(0,h+1):l=[l[0]];break}}}}let p=o?.onError,m=s&&p?(g,v)=>{p(g,{location:s.location,params:s.matches?.[0]?.params??{},pattern:F0(s.matches),errorInfo:v})}:void 0;return l.reduceRight((g,v,x)=>{let T,M=!1,A=null,C=null;s&&(T=c&&v.route.id?c[v.route.id]:void 0,A=v.route.errorElement||e1,f&&(h<0&&x===0?(vm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,C=null):h===x&&(M=!0,C=v.route.hydrateFallbackElement||null)));let O=r.concat(l.slice(0,x+1)),j=()=>{let I;return T?I=A:M?I=C:v.route.Component?I=k.createElement(v.route.Component,null):v.route.element?I=v.route.element:I=g,k.createElement(n1,{match:v,routeContext:{outlet:g,matches:O,isDataRoute:s!=null},children:I})};return s&&(v.route.ErrorBoundary||v.route.errorElement||x===0)?k.createElement(ym,{location:s.location,revalidation:s.revalidation,component:A,error:T,children:j(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:m}):j()},null)}function ju(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function i1(n){let r=k.useContext(Vr);return Le(r,ju(n)),r}function o1(n){let r=k.useContext(Os);return Le(r,ju(n)),r}function s1(n){let r=k.useContext(un);return Le(r,ju(n)),r}function _u(n){let r=s1(n),o=r.matches[r.matches.length-1];return Le(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function a1(){return _u("useRouteId")}function l1(){let n=k.useContext(Ou),r=o1("useRouteError"),o=_u("useRouteError");return n!==void 0?n:r.errors?.[o]}function u1(){let{router:n}=i1("useNavigate"),r=_u("useNavigate"),o=k.useRef(!1);return mm(()=>{o.current=!0}),k.useCallback(async(l,c={})=>{Gt(o.current,pm),o.current&&(typeof l=="number"?await n.navigate(l):await n.navigate(l,{fromRouteId:r,...c}))},[n,r])}var kh={};function vm(n,r,o){!r&&!kh[n]&&(kh[n]=!0,Gt(!1,o))}k.memo(c1);function c1({routes:n,manifest:r,future:o,state:s,isStatic:l,onError:c}){return gm(n,void 0,{manifest:r,state:s,isStatic:l,onError:c})}function cu(n){Le(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function f1({basename:n="/",children:r=null,location:o,navigationType:s="POP",navigator:l,static:c=!1,useTransitions:f}){Le(!Yi(),"You cannot render a inside another . You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),p=k.useMemo(()=>({basename:h,navigator:l,static:c,useTransitions:f,future:{}}),[h,l,c,f]);typeof o=="string"&&(o=Ir(o));let{pathname:m="/",search:g="",hash:v="",state:x=null,key:T="default",mask:M}=o,A=k.useMemo(()=>{let C=an(m,h);return C==null?null:{location:{pathname:C,search:g,hash:v,state:x,key:T,mask:M},navigationType:s}},[h,m,g,v,x,T,s,M]);return Gt(A!=null,` is not able to match the URL "${m}${g}${v}" because it does not start with the basename, so the won't render anything.`),A==null?null:k.createElement(Lt.Provider,{value:p},k.createElement(Gi.Provider,{children:r,value:A}))}function d1({children:n,location:r}){return Z0(fu(n),r)}function fu(n,r=[]){let o=[];return k.Children.forEach(n,(s,l)=>{if(!k.isValidElement(s))return;let c=[...r,l];if(s.type===k.Fragment){o.push.apply(o,fu(s.props.children,c));return}Le(s.type===cu,`[${typeof s.type=="string"?s.type:s.type.name}] is not a component. All component children of must be a or `),Le(!s.props.index||!s.props.children,"An index route cannot have child routes.");let f={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(f.children=fu(s.props.children,c)),o.push(f)}),o}var gs="get",ys="application/x-www-form-urlencoded";function js(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function h1(n){return js(n)&&n.tagName.toLowerCase()==="button"}function p1(n){return js(n)&&n.tagName.toLowerCase()==="form"}function m1(n){return js(n)&&n.tagName.toLowerCase()==="input"}function g1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function y1(n,r){return n.button===0&&(!r||r==="_self")&&!g1(n)}var ds=null;function v1(){if(ds===null)try{new FormData(document.createElement("form"),0),ds=!1}catch{ds=!0}return ds}var x1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bl(n){return n!=null&&!x1.has(n)?(Gt(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${ys}"`),null):n}function w1(n,r){let o,s,l,c,f;if(p1(n)){let h=n.getAttribute("action");s=h?an(h,r):null,o=n.getAttribute("method")||gs,l=bl(n.getAttribute("enctype"))||ys,c=new FormData(n)}else if(h1(n)||m1(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a