function xd(i,s){for(var a=0;ah[d]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var bp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sc(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Hi={exports:{}},q={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Zs;function Cd(){if(Zs)return q;Zs=1;var i=Symbol.for("react.element"),s=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),E=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),F=Symbol.iterator;function _(m){return m===null||typeof m!="object"?null:(m=F&&m[F]||m["@@iterator"],typeof m=="function"?m:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,I={};function D(m,R,Z){this.props=m,this.context=R,this.refs=I,this.updater=Z||U}D.prototype.isReactComponent={},D.prototype.setState=function(m,R){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,R,"setState")},D.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function O(){}O.prototype=D.prototype;function A(m,R,Z){this.props=m,this.context=R,this.refs=I,this.updater=Z||U}var J=A.prototype=new O;J.constructor=A,z(J,D.prototype),J.isPureReactComponent=!0;var ee=Array.isArray,ue=Object.prototype.hasOwnProperty,ge={current:null},me={key:!0,ref:!0,__self:!0,__source:!0};function Ce(m,R,Z){var b,ne={},re=null,ae=null;if(R!=null)for(b in R.ref!==void 0&&(ae=R.ref),R.key!==void 0&&(re=""+R.key),R)ue.call(R,b)&&!me.hasOwnProperty(b)&&(ne[b]=R[b]);var oe=arguments.length-2;if(oe===1)ne.children=Z;else if(1>>1,R=$[m];if(0>>1;md(ne,H))red(ae,ne)?($[m]=ae,$[re]=H,m=re):($[m]=ne,$[b]=H,m=b);else if(red(ae,H))$[m]=ae,$[re]=H,m=re;else break e}}return X}function d($,X){var H=$.sortIndex-X.sortIndex;return H!==0?H:$.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var y=performance;i.unstable_now=function(){return y.now()}}else{var E=Date,x=E.now();i.unstable_now=function(){return E.now()-x}}var k=[],S=[],M=1,F=null,_=3,U=!1,z=!1,I=!1,D=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function J($){for(var X=a(S);X!==null;){if(X.callback===null)h(S);else if(X.startTime<=$)h(S),X.sortIndex=X.expirationTime,s(k,X);else break;X=a(S)}}function ee($){if(I=!1,J($),!z)if(a(k)!==null)z=!0,Ae(ue);else{var X=a(S);X!==null&&Se(ee,X.startTime-$)}}function ue($,X){z=!1,I&&(I=!1,O(Ce),Ce=-1),U=!0;var H=_;try{for(J(X),F=a(k);F!==null&&(!(F.expirationTime>X)||$&&!mt());){var m=F.callback;if(typeof m=="function"){F.callback=null,_=F.priorityLevel;var R=m(F.expirationTime<=X);X=i.unstable_now(),typeof R=="function"?F.callback=R:F===a(k)&&h(k),J(X)}else h(k);F=a(k)}if(F!==null)var Z=!0;else{var b=a(S);b!==null&&Se(ee,b.startTime-X),Z=!1}return Z}finally{F=null,_=H,U=!1}}var ge=!1,me=null,Ce=-1,we=5,Ne=-1;function mt(){return!(i.unstable_now()-Ne$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<$?Math.floor(1e3/$):5},i.unstable_getCurrentPriorityLevel=function(){return _},i.unstable_getFirstCallbackNode=function(){return a(k)},i.unstable_next=function($){switch(_){case 1:case 2:case 3:var X=3;break;default:X=_}var H=_;_=X;try{return $()}finally{_=H}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function($,X){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var H=_;_=$;try{return X()}finally{_=H}},i.unstable_scheduleCallback=function($,X,H){var m=i.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0m?($.sortIndex=H,s(S,$),a(k)===null&&$===a(S)&&(I?(O(Ce),Ce=-1):I=!0,Se(ee,H-m))):($.sortIndex=R,s(k,$),z||U||(z=!0,Ae(ue))),$},i.unstable_shouldYield=mt,i.unstable_wrapCallback=function($){var X=_;return function(){var H=_;_=X;try{return $.apply(this,arguments)}finally{_=H}}}}(Qi)),Qi}var ec;function Rd(){return ec||(ec=1,Wi.exports=_d()),Wi.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 tc;function Nd(){if(tc)return Ke;tc=1;var i=cc(),s=Rd();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),k=Object.prototype.hasOwnProperty,S=/^[: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]*$/,M={},F={};function _(e){return k.call(F,e)?!0:k.call(M,e)?!1:S.test(e)?F[e]=!0:(M[e]=!0,!1)}function U(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function z(e,t,n,r){if(t===null||typeof t>"u"||U(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function I(e,t,n,r,l,o,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=u}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){D[e]=new I(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];D[t]=new I(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){D[e]=new I(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){D[e]=new I(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){D[e]=new I(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){D[e]=new I(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){D[e]=new I(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){D[e]=new I(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){D[e]=new I(e,5,!1,e.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function A(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,A);D[t]=new I(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,A);D[t]=new I(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,A);D[t]=new I(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){D[e]=new I(e,1,!1,e.toLowerCase(),null,!1,!1)}),D.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){D[e]=new I(e,1,!1,e.toLowerCase(),null,!0,!0)});function J(e,t,n,r){var l=D.hasOwnProperty(t)?D[t]:null;(l!==null?l.type!==0:r||!(2c||l[u]!==o[c]){var f=` `+l[u].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),f}while(1<=u&&0<=c);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function ne(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=b(e.type,!1),e;case 11:return e=b(e.type.render,!1),e;case 1:return e=b(e.type,!0),e;default:return""}}function re(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 me:return"Fragment";case ge:return"Portal";case we:return"Profiler";case Ce:return"StrictMode";case Ye:return"Suspense";case ot:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mt:return(e.displayName||"Context")+".Consumer";case Ne:return(e._context.displayName||"Context")+".Provider";case vt:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yt:return t=e.displayName||null,t!==null?t:re(e.type)||"Memo";case Ae:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}function ae(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 re(t);case 8:return t===Ce?"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 oe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function de(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xe(e){var t=de(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,o.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dr(e){e._valueTracker||(e._valueTracker=Xe(e))}function ru(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=de(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Or(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 Xl(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function lu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=oe(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ou(e,t){t=t.checked,t!=null&&J(e,"checked",t,!1)}function Gl(e,t){ou(e,t);var n=oe(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jl(e,t.type,oe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function iu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Jl(e,t,n){(t!=="number"||Or(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hn=Array.isArray;function hn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wn={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},_c=["Webkit","ms","Moz","O"];Object.keys(Wn).forEach(function(e){_c.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wn[t]=Wn[e]})});function du(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wn.hasOwnProperty(e)&&Wn[e]?(""+t).trim():t+"px"}function pu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=du(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Rc=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bl(e,t){if(t){if(Rc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function eo(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 to=null;function no(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ro=null,mn=null,vn=null;function hu(e){if(e=dr(e)){if(typeof ro!="function")throw Error(a(280));var t=e.stateNode;t&&(t=rl(t),ro(e.stateNode,e.type,t))}}function mu(e){mn?vn?vn.push(e):vn=[e]:mn=e}function vu(){if(mn){var e=mn,t=vn;if(vn=mn=null,hu(e),t)for(e=0;e>>=0,e===0?32:31-(jc(e)/Uc|0)|0}var Ur=64,Ar=4194304;function Xn(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 Br(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,u=n&268435455;if(u!==0){var c=u&~l;c!==0?r=Xn(c):(o&=u,o!==0&&(r=Xn(o)))}else u=n&~l,u!==0?r=Xn(u):o!==0&&(r=Xn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Gn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function Vc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=rr),Wu=" ",Qu=!1;function Ku(e,t){switch(e){case"keyup":return gf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function Sf(e,t){switch(e){case"compositionend":return Yu(t);case"keypress":return t.which!==32?null:(Qu=!0,Wu);case"textInput":return e=t.data,e===Wu&&Qu?null:e;default:return null}}function kf(e,t){if(wn)return e==="compositionend"||!Eo&&Ku(e,t)?(e=ju(),Kr=vo=$t=null,wn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ea(n)}}function na(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?na(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ra(){for(var e=window,t=Or();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Or(e.document)}return t}function Po(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 Tf(e){var t=ra(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&na(n.ownerDocument.documentElement,n)){if(r!==null&&Po(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ta(n,o);var u=ta(n,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Sn=null,_o=null,ur=null,Ro=!1;function la(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ro||Sn==null||Sn!==Or(r)||(r=Sn,"selectionStart"in r&&Po(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ur&&ir(ur,r)||(ur=r,r=el(_o,"onSelect"),0Pn||(e.current=Uo[Pn],Uo[Pn]=null,Pn--)}function se(e,t){Pn++,Uo[Pn]=e.current,e.current=t}var Bt={},Ie=At(Bt),Be=At(!1),nn=Bt;function _n(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function He(e){return e=e.childContextTypes,e!=null}function ll(){fe(Be),fe(Ie)}function wa(e,t,n){if(Ie.current!==Bt)throw Error(a(168));se(Ie,t),se(Be,n)}function Sa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(a(108,ae(e)||"Unknown",l));return H({},n,r)}function ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,nn=Ie.current,se(Ie,e),se(Be,Be.current),!0}function ka(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Sa(e,t,nn),r.__reactInternalMemoizedMergedChildContext=e,fe(Be),fe(Ie),se(Ie,e)):fe(Be),se(Be,n)}var Pt=null,il=!1,Ao=!1;function Ea(e){Pt===null?Pt=[e]:Pt.push(e)}function Hf(e){il=!0,Ea(e)}function Ht(){if(!Ao&&Pt!==null){Ao=!0;var e=0,t=ie;try{var n=Pt;for(ie=1;e>=u,l-=u,_t=1<<32-it(t)+l|n<G?(ze=Y,Y=null):ze=Y.sibling;var le=P(v,Y,g[G],T);if(le===null){Y===null&&(Y=ze);break}e&&Y&&le.alternate===null&&t(v,Y),p=o(le,p,G),K===null?Q=le:K.sibling=le,K=le,Y=ze}if(G===g.length)return n(v,Y),pe&&ln(v,G),Q;if(Y===null){for(;GG?(ze=Y,Y=null):ze=Y.sibling;var Zt=P(v,Y,le.value,T);if(Zt===null){Y===null&&(Y=ze);break}e&&Y&&Zt.alternate===null&&t(v,Y),p=o(Zt,p,G),K===null?Q=Zt:K.sibling=Zt,K=Zt,Y=ze}if(le.done)return n(v,Y),pe&&ln(v,G),Q;if(Y===null){for(;!le.done;G++,le=g.next())le=L(v,le.value,T),le!==null&&(p=o(le,p,G),K===null?Q=le:K.sibling=le,K=le);return pe&&ln(v,G),Q}for(Y=r(v,Y);!le.done;G++,le=g.next())le=j(Y,v,G,le.value,T),le!==null&&(e&&le.alternate!==null&&Y.delete(le.key===null?G:le.key),p=o(le,p,G),K===null?Q=le:K.sibling=le,K=le);return e&&Y.forEach(function(Ed){return t(v,Ed)}),pe&&ln(v,G),Q}function xe(v,p,g,T){if(typeof g=="object"&&g!==null&&g.type===me&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case ue:e:{for(var Q=g.key,K=p;K!==null;){if(K.key===Q){if(Q=g.type,Q===me){if(K.tag===7){n(v,K.sibling),p=l(K,g.props.children),p.return=v,v=p;break e}}else if(K.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Ae&&Na(Q)===K.type){n(v,K.sibling),p=l(K,g.props),p.ref=pr(v,K,g),p.return=v,v=p;break e}n(v,K);break}else t(v,K);K=K.sibling}g.type===me?(p=pn(g.props.children,v.mode,T,g.key),p.return=v,v=p):(T=Il(g.type,g.key,g.props,null,v.mode,T),T.ref=pr(v,p,g),T.return=v,v=T)}return u(v);case ge:e:{for(K=g.key;p!==null;){if(p.key===K)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(v,p.sibling),p=l(p,g.children||[]),p.return=v,v=p;break e}else{n(v,p);break}else t(v,p);p=p.sibling}p=$i(g,v.mode,T),p.return=v,v=p}return u(v);case Ae:return K=g._init,xe(v,p,K(g._payload),T)}if(Hn(g))return V(v,p,g,T);if(X(g))return W(v,p,g,T);cl(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(v,p.sibling),p=l(p,g),p.return=v,v=p):(n(v,p),p=Fi(g,v.mode,T),p.return=v,v=p),u(v)):n(v,p)}return xe}var Tn=La(!0),Ta=La(!1),fl=At(null),dl=null,zn=null,Ko=null;function Yo(){Ko=zn=dl=null}function Xo(e){var t=fl.current;fe(fl),e._currentValue=t}function Go(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Dn(e,t){dl=e,Ko=zn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function tt(e){var t=e._currentValue;if(Ko!==e)if(e={context:e,memoizedValue:t,next:null},zn===null){if(dl===null)throw Error(a(308));zn=e,dl.dependencies={lanes:0,firstContext:e}}else zn=zn.next=e;return t}var on=null;function Jo(e){on===null?on=[e]:on.push(e)}function za(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Jo(t)):(n.next=l.next,l.next=n),t.interleaved=n,Nt(e,r)}function Nt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Vt=!1;function Zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Da(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 Lt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Nt(e,n)}return l=r.interleaved,l===null?(t.next=t,Jo(r)):(t.next=l.next,l.next=t),r.interleaved=t,Nt(e,n)}function pl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,co(e,n)}}function Oa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=u:o=o.next=u,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hl(e,t,n,r){var l=e.updateQueue;Vt=!1;var o=l.firstBaseUpdate,u=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var f=c,w=f.next;f.next=null,u===null?o=w:u.next=w,u=f;var N=e.alternate;N!==null&&(N=N.updateQueue,c=N.lastBaseUpdate,c!==u&&(c===null?N.firstBaseUpdate=w:c.next=w,N.lastBaseUpdate=f))}if(o!==null){var L=l.baseState;u=0,N=w=f=null,c=o;do{var P=c.lane,j=c.eventTime;if((r&P)===P){N!==null&&(N=N.next={eventTime:j,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var V=e,W=c;switch(P=t,j=n,W.tag){case 1:if(V=W.payload,typeof V=="function"){L=V.call(j,L,P);break e}L=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=W.payload,P=typeof V=="function"?V.call(j,L,P):V,P==null)break e;L=H({},L,P);break e;case 2:Vt=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,P=l.effects,P===null?l.effects=[c]:P.push(c))}else j={eventTime:j,lane:P,tag:c.tag,payload:c.payload,callback:c.callback,next:null},N===null?(w=N=j,f=L):N=N.next=j,u|=P;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;P=c,c=P.next,P.next=null,l.lastBaseUpdate=P,l.shared.pending=null}}while(!0);if(N===null&&(f=L),l.baseState=f,l.firstBaseUpdate=w,l.lastBaseUpdate=N,t=l.shared.interleaved,t!==null){l=t;do u|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);sn|=u,e.lanes=u,e.memoizedState=L}}function Ia(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ni.transition;ni.transition={};try{e(!1),t()}finally{ie=n,ni.transition=r}}function ba(){return nt().memoizedState}function Kf(e,t,n){var r=Xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},es(e))ts(t,n);else if(n=za(e,t,n,r),n!==null){var l=Ue();dt(n,e,r,l),ns(n,t,r)}}function Yf(e,t,n){var r=Xt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(es(e))ts(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var u=t.lastRenderedState,c=o(u,n);if(l.hasEagerState=!0,l.eagerState=c,ut(c,u)){var f=t.interleaved;f===null?(l.next=l,Jo(t)):(l.next=f.next,f.next=l),t.interleaved=l;return}}catch{}finally{}n=za(e,t,l,r),n!==null&&(l=Ue(),dt(n,e,r,l),ns(n,t,r))}}function es(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function ts(e,t){yr=yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ns(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,co(e,n)}}var Sl={readContext:tt,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},Xf={readContext:tt,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:Qa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gl(4194308,4,Xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gl(4194308,4,e,t)},useInsertionEffect:function(e,t){return gl(4,2,e,t)},useMemo:function(e,t){var n=kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Kf.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:Va,useDebugValue:si,useDeferredValue:function(e){return kt().memoizedState=e},useTransition:function(){var e=Va(!1),t=e[0];return e=Qf.bind(null,e[1]),kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,l=kt();if(pe){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Te===null)throw Error(a(349));an&30||ja(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Qa(Aa.bind(null,r,o,e),[e]),r.flags|=2048,Sr(9,Ua.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=kt(),t=Te.identifierPrefix;if(pe){var n=Rt,r=_t;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[wt]=t,e[fr]=r,Es(e,t,!1,!1),t.stateNode=e;e:{switch(u=eo(n,r),n){case"dialog":ce("cancel",e),ce("close",e),l=r;break;case"iframe":case"object":case"embed":ce("load",e),l=r;break;case"video":case"audio":for(l=0;l$n&&(t.flags|=128,r=!0,kr(o,!1),t.lanes=4194304)}else{if(!r)if(e=ml(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!pe)return Fe(t),null}else 2*Ee()-o.renderingStartTime>$n&&n!==1073741824&&(t.flags|=128,r=!0,kr(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(n=o.last,n!==null?n.sibling=u:t.child=u,o.last=u)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ee(),t.sibling=null,n=ve.current,se(ve,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Oi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function nd(e,t){switch(Ho(t),t.tag){case 1:return He(t.type)&&ll(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(),fe(Be),fe(Ie),ti(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bo(t),null;case 13:if(fe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ve),null;case 4:return On(),null;case 10:return Xo(t.type._context),null;case 22:case 23:return Oi(),null;case 24:return null;default:return null}}var Cl=!1,$e=!1,rd=typeof WeakSet=="function"?WeakSet:Set,B=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function ki(e,t,n){try{n()}catch(r){ke(e,t,r)}}var Ps=!1;function ld(e,t){if(Oo=Wr,e=ra(),Po(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,c=-1,f=-1,w=0,N=0,L=e,P=null;t:for(;;){for(var j;L!==n||l!==0&&L.nodeType!==3||(c=u+l),L!==o||r!==0&&L.nodeType!==3||(f=u+r),L.nodeType===3&&(u+=L.nodeValue.length),(j=L.firstChild)!==null;)P=L,L=j;for(;;){if(L===e)break t;if(P===n&&++w===l&&(c=u),P===o&&++N===r&&(f=u),(j=L.nextSibling)!==null)break;L=P,P=L.parentNode}L=j}n=c===-1||f===-1?null:{start:c,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(Io={focusedElem:e,selectionRange:n},Wr=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var V=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(V!==null){var W=V.memoizedProps,xe=V.memoizedState,v=t.stateNode,p=v.getSnapshotBeforeUpdate(t.elementType===t.type?W:st(t.type,W),xe);v.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(T){ke(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return V=Ps,Ps=!1,V}function Er(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&ki(t,n,o)}l=l.next}while(l!==r)}}function Pl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ei(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _s(e){var t=e.alternate;t!==null&&(e.alternate=null,_s(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[fr],delete t[jo],delete t[Af],delete t[Bf])),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 Rs(e){return e.tag===5||e.tag===3||e.tag===4}function Ns(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rs(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 xi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nl));else if(r!==4&&(e=e.child,e!==null))for(xi(e,t,n),e=e.sibling;e!==null;)xi(e,t,n),e=e.sibling}function Ci(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ci(e,t,n),e=e.sibling;e!==null;)Ci(e,t,n),e=e.sibling}var De=null,ct=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Ls(e,t,n),n=n.sibling}function Ls(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(jr,n)}catch{}switch(n.tag){case 5:$e||Mn(n,t);case 6:var r=De,l=ct;De=null,Qt(e,t,n),De=r,ct=l,De!==null&&(ct?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&(ct?(e=De,n=n.stateNode,e.nodeType===8?$o(e.parentNode,n):e.nodeType===1&&$o(e,n),er(e)):$o(De,n.stateNode));break;case 4:r=De,l=ct,De=n.stateNode.containerInfo,ct=!0,Qt(e,t,n),De=r,ct=l;break;case 0:case 11:case 14:case 15:if(!$e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,u=o.destroy;o=o.tag,u!==void 0&&(o&2||o&4)&&ki(n,t,u),l=l.next}while(l!==r)}Qt(e,t,n);break;case 1:if(!$e&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){ke(n,t,c)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?($e=(r=$e)||n.memoizedState!==null,Qt(e,t,n),$e=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function Ts(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rd),t.forEach(function(r){var l=pd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=u),r&=~o}if(r=l,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*id(r/1960))-r,10e?16:e,Yt===null)var r=!1;else{if(e=Yt,Yt=null,Tl=0,te&6)throw Error(a(331));var l=te;for(te|=4,B=e.current;B!==null;){var o=B,u=o.child;if(B.flags&16){var c=o.deletions;if(c!==null){for(var f=0;fEe()-Ri?fn(e,0):_i|=n),Qe(e,t)}function Vs(e,t){t===0&&(e.mode&1?(t=Ar,Ar<<=1,!(Ar&130023424)&&(Ar=4194304)):t=1);var n=Ue();e=Nt(e,t),e!==null&&(Gn(e,t,n),Qe(e,n))}function dd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vs(e,n)}function pd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),Vs(e,n)}var Ws;Ws=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,ed(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,pe&&t.flags&1048576&&xa(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xl(e,t),e=t.pendingProps;var l=_n(t,Ie.current);Dn(t,n),l=li(null,t,r,e,l,n);var o=oi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,He(r)?(o=!0,ol(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Zo(t),l.updater=kl,t.stateNode=l,l._reactInternals=t,fi(t,r,e,n),t=mi(null,t,r,!0,o,n)):(t.tag=0,pe&&o&&Bo(t),je(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=md(r),e=st(r,e),l){case 0:t=hi(null,t,r,e,n);break e;case 1:t=vs(null,t,r,e,n);break e;case 11:t=fs(null,t,r,e,n);break e;case 14:t=ds(null,t,r,st(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),hi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),vs(e,t,r,l,n);case 3:e:{if(ys(t),e===null)throw Error(a(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Da(e,t),hl(t,r,null,n);var u=t.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=In(Error(a(423)),t),t=gs(e,t,r,n,l);break e}else if(r!==l){l=In(Error(a(424)),t),t=gs(e,t,r,n,l);break e}else for(Ze=Ut(t.stateNode.containerInfo.firstChild),Je=t,pe=!0,at=null,n=Ta(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ln(),r===l){t=Tt(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return Ma(t),e===null&&Wo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,u=l.children,Mo(r,l)?u=null:o!==null&&Mo(r,o)&&(t.flags|=32),ms(e,t),je(e,t,u,n),t.child;case 6:return e===null&&Wo(t),null;case 13:return ws(e,t,n);case 4:return qo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Tn(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),fs(e,t,r,l,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,u=l.value,se(fl,r._currentValue),r._currentValue=u,o!==null)if(ut(o.value,u)){if(o.children===l.children&&!Be.current){t=Tt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){u=o.child;for(var f=c.firstContext;f!==null;){if(f.context===r){if(o.tag===1){f=Lt(-1,n&-n),f.tag=2;var w=o.updateQueue;if(w!==null){w=w.shared;var N=w.pending;N===null?f.next=f:(f.next=N.next,N.next=f),w.pending=f}}o.lanes|=n,f=o.alternate,f!==null&&(f.lanes|=n),Go(o.return,n,t),c.lanes|=n;break}f=f.next}}else if(o.tag===10)u=o.type===t.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(a(341));u.lanes|=n,c=u.alternate,c!==null&&(c.lanes|=n),Go(u,n,t),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===t){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}je(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Dn(t,n),l=tt(l),r=r(l),t.flags|=1,je(e,t,r,n),t.child;case 14:return r=t.type,l=st(r,t.pendingProps),l=st(r.type,l),ds(e,t,r,l,n);case 15:return ps(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),xl(e,t),t.tag=1,He(r)?(e=!0,ol(t)):e=!1,Dn(t,n),ls(t,r,l),fi(t,r,l,n),mi(null,t,r,!0,e,n);case 19:return ks(e,t,n);case 22:return hs(e,t,n)}throw Error(a(156,t.tag))};function Qs(e,t){return Cu(e,t)}function hd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lt(e,t,n,r){return new hd(e,t,n,r)}function Mi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function md(e){if(typeof e=="function")return Mi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vt)return 11;if(e===yt)return 14}return 2}function Jt(e,t){var n=e.alternate;return n===null?(n=lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Il(e,t,n,r,l,o){var u=2;if(r=e,typeof e=="function")Mi(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case me:return pn(n.children,l,o,t);case Ce:u=8,l|=8;break;case we:return e=lt(12,n,t,l|2),e.elementType=we,e.lanes=o,e;case Ye:return e=lt(13,n,t,l),e.elementType=Ye,e.lanes=o,e;case ot:return e=lt(19,n,t,l),e.elementType=ot,e.lanes=o,e;case Se:return Ml(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ne:u=10;break e;case mt:u=9;break e;case vt:u=11;break e;case yt:u=14;break e;case Ae:u=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=lt(u,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function pn(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function Ml(e,t,n,r){return e=lt(22,e,r,t),e.elementType=Se,e.lanes=n,e.stateNode={isHidden:!1},e}function Fi(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function $i(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=so(0),this.expirationTimes=so(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=so(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ji(e,t,n,r,l,o,u,c,f){return e=new vd(e,t,n,c,f),t===1?(t=1,o===!0&&(t|=8)):t=0,o=lt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zo(o),e}function yd(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),Vi.exports=Nd(),Vi.exports}var Rr={},rc;function Td(){if(rc)return Rr;rc=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.parse=E,Rr.serialize=S;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,s=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,h=/^[\u0020-\u003A\u003D-\u007E]*$/,d=Object.prototype.toString,y=(()=>{const _=function(){};return _.prototype=Object.create(null),_})();function E(_,U){const z=new y,I=_.length;if(I<2)return z;const D=(U==null?void 0:U.decode)||M;let O=0;do{const A=_.indexOf("=",O);if(A===-1)break;const J=_.indexOf(";",O),ee=J===-1?I:J;if(A>ee){O=_.lastIndexOf(";",A-1)+1;continue}const ue=x(_,O,A),ge=k(_,A,ue),me=_.slice(ue,ge);if(z[me]===void 0){let Ce=x(_,A+1,ee),we=k(_,ee,Ce);const Ne=D(_.slice(Ce,we));z[me]=Ne}O=ee+1}while(Oz;){const I=_.charCodeAt(--U);if(I!==32&&I!==9)return U+1}return z}function S(_,U,z){const I=(z==null?void 0:z.encode)||encodeURIComponent;if(!i.test(_))throw new TypeError(`argument name is invalid: ${_}`);const D=I(U);if(!s.test(D))throw new TypeError(`argument val is invalid: ${U}`);let O=_+"="+D;if(!z)return O;if(z.maxAge!==void 0){if(!Number.isInteger(z.maxAge))throw new TypeError(`option maxAge is invalid: ${z.maxAge}`);O+="; Max-Age="+z.maxAge}if(z.domain){if(!a.test(z.domain))throw new TypeError(`option domain is invalid: ${z.domain}`);O+="; Domain="+z.domain}if(z.path){if(!h.test(z.path))throw new TypeError(`option path is invalid: ${z.path}`);O+="; Path="+z.path}if(z.expires){if(!F(z.expires)||!Number.isFinite(z.expires.valueOf()))throw new TypeError(`option expires is invalid: ${z.expires}`);O+="; Expires="+z.expires.toUTCString()}if(z.httpOnly&&(O+="; HttpOnly"),z.secure&&(O+="; Secure"),z.partitioned&&(O+="; Partitioned"),z.priority)switch(typeof z.priority=="string"?z.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${z.priority}`)}if(z.sameSite)switch(typeof z.sameSite=="string"?z.sameSite.toLowerCase():z.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${z.sameSite}`)}return O}function M(_){if(_.indexOf("%")===-1)return _;try{return decodeURIComponent(_)}catch{return _}}function F(_){return d.call(_)==="[object Date]"}return Rr}Td();/** * react-router v7.0.2 * * 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 lc="popstate";function zd(i={}){function s(h,d){let{pathname:y,search:E,hash:x}=h.location;return Xi("",{pathname:y,search:E,hash:x},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function a(h,d){return typeof d=="string"?d:Lr(d)}return Od(s,a,null,i)}function he(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function pt(i,s){if(!i){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Dd(){return Math.random().toString(36).substring(2,10)}function oc(i,s){return{usr:i.state,key:i.key,idx:s}}function Xi(i,s,a=null,h){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof s=="string"?Un(s):s,state:a,key:s&&s.key||h||Dd()}}function Lr({pathname:i="/",search:s="",hash:a=""}){return s&&s!=="?"&&(i+=s.charAt(0)==="?"?s:"?"+s),a&&a!=="#"&&(i+=a.charAt(0)==="#"?a:"#"+a),i}function Un(i){let s={};if(i){let a=i.indexOf("#");a>=0&&(s.hash=i.substring(a),i=i.substring(0,a));let h=i.indexOf("?");h>=0&&(s.search=i.substring(h),i=i.substring(0,h)),i&&(s.pathname=i)}return s}function Od(i,s,a,h={}){let{window:d=document.defaultView,v5Compat:y=!1}=h,E=d.history,x="POP",k=null,S=M();S==null&&(S=0,E.replaceState({...E.state,idx:S},""));function M(){return(E.state||{idx:null}).idx}function F(){x="POP";let D=M(),O=D==null?null:D-S;S=D,k&&k({action:x,location:I.location,delta:O})}function _(D,O){x="PUSH";let A=Xi(I.location,D,O);S=M()+1;let J=oc(A,S),ee=I.createHref(A);try{E.pushState(J,"",ee)}catch(ue){if(ue instanceof DOMException&&ue.name==="DataCloneError")throw ue;d.location.assign(ee)}y&&k&&k({action:x,location:I.location,delta:1})}function U(D,O){x="REPLACE";let A=Xi(I.location,D,O);S=M();let J=oc(A,S),ee=I.createHref(A);E.replaceState(J,"",ee),y&&k&&k({action:x,location:I.location,delta:0})}function z(D){let O=d.location.origin!=="null"?d.location.origin:d.location.href,A=typeof D=="string"?D:Lr(D);return A=A.replace(/ $/,"%20"),he(O,`No window.location.(origin|href) available to create URL for href: ${A}`),new URL(A,O)}let I={get action(){return x},get location(){return i(d,E)},listen(D){if(k)throw new Error("A history only accepts one active listener");return d.addEventListener(lc,F),k=D,()=>{d.removeEventListener(lc,F),k=null}},createHref(D){return s(d,D)},createURL:z,encodeLocation(D){let O=z(D);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:_,replace:U,go(D){return E.go(D)}};return I}function fc(i,s,a="/"){return Id(i,s,a,!1)}function Id(i,s,a,h){let d=typeof s=="string"?Un(s):s,y=qt(d.pathname||"/",a);if(y==null)return null;let E=dc(i);Md(E);let x=null;for(let k=0;x==null&&k{let k={relativePath:x===void 0?y.path||"":x,caseSensitive:y.caseSensitive===!0,childrenIndex:E,route:y};k.relativePath.startsWith("/")&&(he(k.relativePath.startsWith(h),`Absolute route path "${k.relativePath}" nested under path "${h}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),k.relativePath=k.relativePath.slice(h.length));let S=Dt([h,k.relativePath]),M=a.concat(k);y.children&&y.children.length>0&&(he(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),dc(y.children,s,M,S)),!(y.path==null&&!y.index)&&s.push({path:S,score:Hd(S,y.index),routesMeta:M})};return i.forEach((y,E)=>{var x;if(y.path===""||!((x=y.path)!=null&&x.includes("?")))d(y,E);else for(let k of pc(y.path))d(y,E,k)}),s}function pc(i){let s=i.split("/");if(s.length===0)return[];let[a,...h]=s,d=a.endsWith("?"),y=a.replace(/\?$/,"");if(h.length===0)return d?[y,""]:[y];let E=pc(h.join("/")),x=[];return x.push(...E.map(k=>k===""?y:[y,k].join("/"))),d&&x.push(...E),x.map(k=>i.startsWith("/")&&k===""?"/":k)}function Md(i){i.sort((s,a)=>s.score!==a.score?a.score-s.score:Vd(s.routesMeta.map(h=>h.childrenIndex),a.routesMeta.map(h=>h.childrenIndex)))}var Fd=/^:[\w-]+$/,$d=3,jd=2,Ud=1,Ad=10,Bd=-2,ic=i=>i==="*";function Hd(i,s){let a=i.split("/"),h=a.length;return a.some(ic)&&(h+=Bd),s&&(h+=jd),a.filter(d=>!ic(d)).reduce((d,y)=>d+(Fd.test(y)?$d:y===""?Ud:Ad),h)}function Vd(i,s){return i.length===s.length&&i.slice(0,-1).every((h,d)=>h===s[d])?i[i.length-1]-s[s.length-1]:0}function Wd(i,s,a=!1){let{routesMeta:h}=i,d={},y="/",E=[];for(let x=0;x{if(M==="*"){let z=x[_]||"";E=y.slice(0,y.length-z.length).replace(/(.)\/+$/,"$1")}const U=x[_];return F&&!U?S[M]=void 0:S[M]=(U||"").replace(/%2F/g,"/"),S},{}),pathname:y,pathnameBase:E,pattern:i}}function Qd(i,s=!1,a=!0){pt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let h=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(E,x,k)=>(h.push({paramName:x,isOptional:k!=null}),k?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(h.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,s?void 0:"i"),h]}function Kd(i){try{return i.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return pt(!1,`The URL path "${i}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),i}}function qt(i,s){if(s==="/")return i;if(!i.toLowerCase().startsWith(s.toLowerCase()))return null;let a=s.endsWith("/")?s.length-1:s.length,h=i.charAt(a);return h&&h!=="/"?null:i.slice(a)||"/"}function Yd(i,s="/"){let{pathname:a,search:h="",hash:d=""}=typeof i=="string"?Un(i):i;return{pathname:a?a.startsWith("/")?a:Xd(a,s):s,search:Zd(h),hash:qd(d)}}function Xd(i,s){let a=s.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?a.length>1&&a.pop():d!=="."&&a.push(d)}),a.length>1?a.join("/"):"/"}function Ki(i,s,a,h){return`Cannot include a '${i}' character in a manually specified \`to.${s}\` field [${JSON.stringify(h)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Gd(i){return i.filter((s,a)=>a===0||s.route.path&&s.route.path.length>0)}function Ji(i){let s=Gd(i);return s.map((a,h)=>h===s.length-1?a.pathname:a.pathnameBase)}function Zi(i,s,a,h=!1){let d;typeof i=="string"?d=Un(i):(d={...i},he(!d.pathname||!d.pathname.includes("?"),Ki("?","pathname","search",d)),he(!d.pathname||!d.pathname.includes("#"),Ki("#","pathname","hash",d)),he(!d.search||!d.search.includes("#"),Ki("#","search","hash",d)));let y=i===""||d.pathname==="",E=y?"/":d.pathname,x;if(E==null)x=a;else{let F=s.length-1;if(!h&&E.startsWith("..")){let _=E.split("/");for(;_[0]==="..";)_.shift(),F-=1;d.pathname=_.join("/")}x=F>=0?s[F]:"/"}let k=Yd(d,x),S=E&&E!=="/"&&E.endsWith("/"),M=(y||E===".")&&a.endsWith("/");return!k.pathname.endsWith("/")&&(S||M)&&(k.pathname+="/"),k}var Dt=i=>i.join("/").replace(/\/\/+/g,"/"),Jd=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Zd=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,qd=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function bd(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var hc=["POST","PUT","PATCH","DELETE"];new Set(hc);var ep=["GET",...hc];new Set(ep);var An=C.createContext(null);An.displayName="DataRouter";var Kl=C.createContext(null);Kl.displayName="DataRouterState";var mc=C.createContext({isTransitioning:!1});mc.displayName="ViewTransition";var tp=C.createContext(new Map);tp.displayName="Fetchers";var np=C.createContext(null);np.displayName="Await";var ht=C.createContext(null);ht.displayName="Navigation";var Tr=C.createContext(null);Tr.displayName="Location";var xt=C.createContext({outlet:null,matches:[],isDataRoute:!1});xt.displayName="Route";var qi=C.createContext(null);qi.displayName="RouteError";function rp(i,{relative:s}={}){he(Bn(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:h}=C.useContext(ht),{hash:d,pathname:y,search:E}=zr(i,{relative:s}),x=y;return a!=="/"&&(x=y==="/"?a:Dt([a,y])),h.createHref({pathname:x,search:E,hash:d})}function Bn(){return C.useContext(Tr)!=null}function bt(){return he(Bn(),"useLocation() may be used only in the context of a component."),C.useContext(Tr).location}var vc="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yc(i){C.useContext(ht).static||C.useLayoutEffect(i)}function gc(){let{isDataRoute:i}=C.useContext(xt);return i?vp():lp()}function lp(){he(Bn(),"useNavigate() may be used only in the context of a component.");let i=C.useContext(An),{basename:s,navigator:a}=C.useContext(ht),{matches:h}=C.useContext(xt),{pathname:d}=bt(),y=JSON.stringify(Ji(h)),E=C.useRef(!1);return yc(()=>{E.current=!0}),C.useCallback((k,S={})=>{if(pt(E.current,vc),!E.current)return;if(typeof k=="number"){a.go(k);return}let M=Zi(k,JSON.parse(y),d,S.relative==="path");i==null&&s!=="/"&&(M.pathname=M.pathname==="/"?s:Dt([s,M.pathname])),(S.replace?a.replace:a.push)(M,S.state,S)},[s,a,y,d,i])}C.createContext(null);function zr(i,{relative:s}={}){let{matches:a}=C.useContext(xt),{pathname:h}=bt(),d=JSON.stringify(Ji(a));return C.useMemo(()=>Zi(i,JSON.parse(d),h,s==="path"),[i,d,h,s])}function op(i,s){return wc(i,s)}function wc(i,s,a,h){var O;he(Bn(),"useRoutes() may be used only in the context of a component.");let{navigator:d}=C.useContext(ht),{matches:y}=C.useContext(xt),E=y[y.length-1],x=E?E.params:{},k=E?E.pathname:"/",S=E?E.pathnameBase:"/",M=E&&E.route;{let A=M&&M.path||"";Sc(k,!M||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${k}" (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 F=bt(),_;if(s){let A=typeof s=="string"?Un(s):s;he(S==="/"||((O=A.pathname)==null?void 0:O.startsWith(S)),`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 "${S}" but pathname "${A.pathname}" was given in the \`location\` prop.`),_=A}else _=F;let U=_.pathname||"/",z=U;if(S!=="/"){let A=S.replace(/^\//,"").split("/");z="/"+U.replace(/^\//,"").split("/").slice(A.length).join("/")}let I=fc(i,{pathname:z});pt(M||I!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),pt(I==null||I[I.length-1].route.element!==void 0||I[I.length-1].route.Component!==void 0||I[I.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.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 D=cp(I&&I.map(A=>Object.assign({},A,{params:Object.assign({},x,A.params),pathname:Dt([S,d.encodeLocation?d.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?S:Dt([S,d.encodeLocation?d.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),y,a,h);return s&&D?C.createElement(Tr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},D):D}function ip(){let i=mp(),s=bd(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),a=i instanceof Error?i.stack:null,h="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:h},y={padding:"2px 4px",backgroundColor:h},E=null;return console.error("Error handled by React Router default ErrorBoundary:",i),E=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:y},"ErrorBoundary")," or"," ",C.createElement("code",{style:y},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},s),a?C.createElement("pre",{style:d},a):null,E)}var up=C.createElement(ip,null),ap=class extends C.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,s){return s.location!==i.location||s.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:s.error,location:s.location,revalidation:i.revalidation||s.revalidation}}componentDidCatch(i,s){console.error("React Router caught the following error during render",i,s)}render(){return this.state.error!==void 0?C.createElement(xt.Provider,{value:this.props.routeContext},C.createElement(qi.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function sp({routeContext:i,match:s,children:a}){let h=C.useContext(An);return h&&h.static&&h.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(h.staticContext._deepestRenderedBoundaryId=s.route.id),C.createElement(xt.Provider,{value:i},a)}function cp(i,s=[],a=null,h=null){if(i==null){if(!a)return null;if(a.errors)i=a.matches;else if(s.length===0&&!a.initialized&&a.matches.length>0)i=a.matches;else return null}let d=i,y=a==null?void 0:a.errors;if(y!=null){let k=d.findIndex(S=>S.route.id&&(y==null?void 0:y[S.route.id])!==void 0);he(k>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),d=d.slice(0,Math.min(d.length,k+1))}let E=!1,x=-1;if(a)for(let k=0;k=0?d=d.slice(0,x+1):d=[d[0]];break}}}return d.reduceRight((k,S,M)=>{let F,_=!1,U=null,z=null;a&&(F=y&&S.route.id?y[S.route.id]:void 0,U=S.route.errorElement||up,E&&(x<0&&M===0?(Sc("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,z=null):x===M&&(_=!0,z=S.route.hydrateFallbackElement||null)));let I=s.concat(d.slice(0,M+1)),D=()=>{let O;return F?O=U:_?O=z:S.route.Component?O=C.createElement(S.route.Component,null):S.route.element?O=S.route.element:O=k,C.createElement(sp,{match:S,routeContext:{outlet:k,matches:I,isDataRoute:a!=null},children:O})};return a&&(S.route.ErrorBoundary||S.route.errorElement||M===0)?C.createElement(ap,{location:a.location,revalidation:a.revalidation,component:U,error:F,children:D(),routeContext:{outlet:null,matches:I,isDataRoute:!0}}):D()},null)}function bi(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fp(i){let s=C.useContext(An);return he(s,bi(i)),s}function dp(i){let s=C.useContext(Kl);return he(s,bi(i)),s}function pp(i){let s=C.useContext(xt);return he(s,bi(i)),s}function eu(i){let s=pp(i),a=s.matches[s.matches.length-1];return he(a.route.id,`${i} can only be used on routes that contain a unique "id"`),a.route.id}function hp(){return eu("useRouteId")}function mp(){var h;let i=C.useContext(qi),s=dp("useRouteError"),a=eu("useRouteError");return i!==void 0?i:(h=s.errors)==null?void 0:h[a]}function vp(){let{router:i}=fp("useNavigate"),s=eu("useNavigate"),a=C.useRef(!1);return yc(()=>{a.current=!0}),C.useCallback(async(d,y={})=>{pt(a.current,vc),a.current&&(typeof d=="number"?i.navigate(d):await i.navigate(d,{fromRouteId:s,...y}))},[i,s])}var uc={};function Sc(i,s,a){!s&&!uc[i]&&(uc[i]=!0,pt(!1,a))}C.memo(yp);function yp({routes:i,future:s,state:a}){return wc(i,void 0,a,s)}function th({to:i,replace:s,state:a,relative:h}){he(Bn()," may be used only in the context of a component.");let{static:d}=C.useContext(ht);pt(!d," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:y}=C.useContext(xt),{pathname:E}=bt(),x=gc(),k=Zi(i,Ji(y),E,h==="path"),S=JSON.stringify(k);return C.useEffect(()=>{x(JSON.parse(S),{replace:s,state:a,relative:h})},[x,S,h,s,a]),null}function gp(i){he(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function wp({basename:i="/",children:s=null,location:a,navigationType:h="POP",navigator:d,static:y=!1}){he(!Bn(),"You cannot render a inside another . You should never have more than one in your app.");let E=i.replace(/^\/*/,"/"),x=C.useMemo(()=>({basename:E,navigator:d,static:y,future:{}}),[E,d,y]);typeof a=="string"&&(a=Un(a));let{pathname:k="/",search:S="",hash:M="",state:F=null,key:_="default"}=a,U=C.useMemo(()=>{let z=qt(k,E);return z==null?null:{location:{pathname:z,search:S,hash:M,state:F,key:_},navigationType:h}},[E,k,S,M,F,_,h]);return pt(U!=null,` is not able to match the URL "${k}${S}${M}" because it does not start with the basename, so the won't render anything.`),U==null?null:C.createElement(ht.Provider,{value:x},C.createElement(Tr.Provider,{children:s,value:U}))}function nh({children:i,location:s}){return op(Gi(i),s)}function Gi(i,s=[]){let a=[];return C.Children.forEach(i,(h,d)=>{if(!C.isValidElement(h))return;let y=[...s,d];if(h.type===C.Fragment){a.push.apply(a,Gi(h.props.children,y));return}he(h.type===gp,`[${typeof h.type=="string"?h.type:h.type.name}] is not a component. All component children of must be a or `),he(!h.props.index||!h.props.children,"An index route cannot have child routes.");let E={id:h.props.id||y.join("-"),caseSensitive:h.props.caseSensitive,element:h.props.element,Component:h.props.Component,index:h.props.index,path:h.props.path,loader:h.props.loader,action:h.props.action,hydrateFallbackElement:h.props.hydrateFallbackElement,HydrateFallback:h.props.HydrateFallback,errorElement:h.props.errorElement,ErrorBoundary:h.props.ErrorBoundary,hasErrorBoundary:h.props.hasErrorBoundary===!0||h.props.ErrorBoundary!=null||h.props.errorElement!=null,shouldRevalidate:h.props.shouldRevalidate,handle:h.props.handle,lazy:h.props.lazy};h.props.children&&(E.children=Gi(h.props.children,y)),a.push(E)}),a}var Vl="get",Wl="application/x-www-form-urlencoded";function Yl(i){return i!=null&&typeof i.tagName=="string"}function Sp(i){return Yl(i)&&i.tagName.toLowerCase()==="button"}function kp(i){return Yl(i)&&i.tagName.toLowerCase()==="form"}function Ep(i){return Yl(i)&&i.tagName.toLowerCase()==="input"}function xp(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Cp(i,s){return i.button===0&&(!s||s==="_self")&&!xp(i)}var Hl=null;function Pp(){if(Hl===null)try{new FormData(document.createElement("form"),0),Hl=!1}catch{Hl=!0}return Hl}var _p=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yi(i){return i!=null&&!_p.has(i)?(pt(!1,`"${i}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Wl}"`),null):i}function Rp(i,s){let a,h,d,y,E;if(kp(i)){let x=i.getAttribute("action");h=x?qt(x,s):null,a=i.getAttribute("method")||Vl,d=Yi(i.getAttribute("enctype"))||Wl,y=new FormData(i)}else if(Sp(i)||Ep(i)&&(i.type==="submit"||i.type==="image")){let x=i.form;if(x==null)throw new Error('Cannot submit a