diff --git a/feature/sass-imports/.htaccess b/feature/sass-imports/.htaccess new file mode 100644 index 00000000..680e1a5e --- /dev/null +++ b/feature/sass-imports/.htaccess @@ -0,0 +1,16 @@ +RewriteEngine on +RewriteBase / + +# do not do anything for already existing files +RewriteCond %{REQUEST_FILENAME} -f [OR] +RewriteCond %{REQUEST_FILENAME} -l [OR] +RewriteCond %{REQUEST_FILENAME} -d +RewriteRule (.*) - [L] + +# if request is no valid file NOR directory +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +# if static asset do not do anything +RewriteRule (.*)(css|js|html|png|jpe?g|gif|bmp|ico|json|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) - [NC,L,R=404] +# everything else should be redirected to /index.html so it can be routed by it +RewriteRule (.*) /index.html [L] diff --git a/feature/sass-imports/assets/index-Ctx-SQAu.js b/feature/sass-imports/assets/index-Ctx-SQAu.js new file mode 100644 index 00000000..398e54f8 --- /dev/null +++ b/feature/sass-imports/assets/index-Ctx-SQAu.js @@ -0,0 +1,817 @@ +var Uq=Object.defineProperty;var zq=(e,t,r)=>t in e?Uq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Dc=(e,t,r)=>zq(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var tg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P1={exports:{}},vh={},E1={exports:{}},Ct={};/** + * @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 S3;function Vq(){if(S3)return Ct;S3=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=p&&z[p]||z["@@iterator"],typeof z=="function"?z:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,_={};function w(z,ne,X){this.props=z,this.context=ne,this.refs=_,this.updater=X||b}w.prototype.isReactComponent={},w.prototype.setState=function(z,ne){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,ne,"setState")},w.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function S(){}S.prototype=w.prototype;function P(z,ne,X){this.props=z,this.context=ne,this.refs=_,this.updater=X||b}var C=P.prototype=new S;C.constructor=P,x(C,w.prototype),C.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function F(z,ne,X){var se,ce={},de=null,be=null;if(ne!=null)for(se in ne.ref!==void 0&&(be=ne.ref),ne.key!==void 0&&(de=""+ne.key),ne)A.call(ne,se)&&!N.hasOwnProperty(se)&&(ce[se]=ne[se]);var M=arguments.length-2;if(M===1)ce.children=X;else if(1>>1,ne=ae[z];if(0>>1;zi(ce,G))dei(be,ce)?(ae[z]=be,ae[de]=G,z=de):(ae[z]=ce,ae[se]=G,z=se);else if(dei(be,G))ae[z]=be,ae[de]=G,z=de;else break e}}return K}function i(ae,K){var G=ae.sortIndex-K.sortIndex;return G!==0?G:ae.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],h=1,p=null,v=3,b=!1,x=!1,_=!1,w=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(ae){for(var K=r(l);K!==null;){if(K.callback===null)n(l);else if(K.startTime<=ae)n(l),K.sortIndex=K.expirationTime,t(c,K);else break;K=r(l)}}function T(ae){if(_=!1,C(ae),!x)if(r(c)!==null)x=!0,oe(A);else{var K=r(l);K!==null&&le(T,K.startTime-ae)}}function A(ae,K){x=!1,_&&(_=!1,S(F),F=-1),b=!0;var G=v;try{for(C(K),p=r(c);p!==null&&(!(p.expirationTime>K)||ae&&!W());){var z=p.callback;if(typeof z=="function"){p.callback=null,v=p.priorityLevel;var ne=z(p.expirationTime<=K);K=e.unstable_now(),typeof ne=="function"?p.callback=ne:p===r(c)&&n(c),C(K)}else n(c);p=r(c)}if(p!==null)var X=!0;else{var se=r(l);se!==null&&le(T,se.startTime-K),X=!1}return X}finally{p=null,v=G,b=!1}}var j=!1,N=null,F=-1,V=5,B=-1;function W(){return!(e.unstable_now()-Bae||125z?(ae.sortIndex=G,t(l,ae),r(c)===null&&ae===r(l)&&(_?(S(F),F=-1):_=!0,le(T,G-z))):(ae.sortIndex=ne,t(c,ae),x||b||(x=!0,oe(A))),ae},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(ae){var K=v;return function(){var G=v;v=K;try{return ae.apply(this,arguments)}finally{v=G}}}}(j1)),j1}var T3;function Gq(){return T3||(T3=1,T1.exports=Hq()),T1.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 j3;function Kq(){if(j3)return Wn;j3=1;var e=z0(),t=Gq();function r(u){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+u,y=1;y"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,l=/^[: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]*$/,h={},p={};function v(u){return c.call(p,u)?!0:c.call(h,u)?!1:l.test(u)?p[u]=!0:(h[u]=!0,!1)}function b(u,d,y,E){if(y!==null&&y.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return E?!1:y!==null?!y.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function x(u,d,y,E){if(d===null||typeof d>"u"||b(u,d,y,E))return!0;if(E)return!1;if(y!==null)switch(y.type){case 3:return!d;case 4:return d===!1;case 5:return isNaN(d);case 6:return isNaN(d)||1>d}return!1}function _(u,d,y,E,R,D,ee){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=E,this.attributeNamespace=R,this.mustUseProperty=y,this.propertyName=u,this.type=d,this.sanitizeURL=D,this.removeEmptyString=ee}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){w[u]=new _(u,0,!1,u,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var d=u[0];w[d]=new _(d,1,!1,u[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(u){w[u]=new _(u,2,!1,u.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){w[u]=new _(u,2,!1,u,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(u){w[u]=new _(u,3,!1,u.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(u){w[u]=new _(u,3,!0,u,null,!1,!1)}),["capture","download"].forEach(function(u){w[u]=new _(u,4,!1,u,null,!1,!1)}),["cols","rows","size","span"].forEach(function(u){w[u]=new _(u,6,!1,u,null,!1,!1)}),["rowSpan","start"].forEach(function(u){w[u]=new _(u,5,!1,u.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function P(u){return u[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(u){var d=u.replace(S,P);w[d]=new _(d,1,!1,u,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var d=u.replace(S,P);w[d]=new _(d,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(u){var d=u.replace(S,P);w[d]=new _(d,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(u){w[u]=new _(u,1,!1,u.toLowerCase(),null,!1,!1)}),w.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(u){w[u]=new _(u,1,!1,u.toLowerCase(),null,!0,!0)});function C(u,d,y,E){var R=w.hasOwnProperty(d)?w[d]:null;(R!==null?R.type!==0:E||!(2fe||R[ee]!==D[fe]){var me=` +`+R[ee].replace(" at new "," at ");return u.displayName&&me.includes("")&&(me=me.replace("",u.displayName)),me}while(1<=ee&&0<=fe);break}}}finally{X=!1,Error.prepareStackTrace=y}return(u=u?u.displayName||u.name:"")?ne(u):""}function ce(u){switch(u.tag){case 5:return ne(u.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return u=se(u.type,!1),u;case 11:return u=se(u.type.render,!1),u;case 1:return u=se(u.type,!0),u;default:return""}}function de(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case N:return"Fragment";case j:return"Portal";case V:return"Profiler";case F:return"StrictMode";case J:return"Suspense";case Q:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case W:return(u.displayName||"Context")+".Consumer";case B:return(u._context.displayName||"Context")+".Provider";case q:var d=u.render;return u=u.displayName,u||(u=d.displayName||d.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case re:return d=u.displayName||null,d!==null?d:de(u.type)||"Memo";case oe:d=u._payload,u=u._init;try{return de(u(d))}catch{}}return null}function be(u){var d=u.type;switch(u.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=d.render,u=u.displayName||u.name||"",d.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(d);case 8:return d===F?"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 d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function M(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function $(u){var d=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function Y(u){var d=$(u)?"checked":"value",y=Object.getOwnPropertyDescriptor(u.constructor.prototype,d),E=""+u[d];if(!u.hasOwnProperty(d)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var R=y.get,D=y.set;return Object.defineProperty(u,d,{configurable:!0,get:function(){return R.call(this)},set:function(ee){E=""+ee,D.call(this,ee)}}),Object.defineProperty(u,d,{enumerable:y.enumerable}),{getValue:function(){return E},setValue:function(ee){E=""+ee},stopTracking:function(){u._valueTracker=null,delete u[d]}}}}function ue(u){u._valueTracker||(u._valueTracker=Y(u))}function ie(u){if(!u)return!1;var d=u._valueTracker;if(!d)return!0;var y=d.getValue(),E="";return u&&(E=$(u)?u.checked?"true":"false":u.value),u=E,u!==y?(d.setValue(u),!0):!1}function he(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}function Oe(u,d){var y=d.checked;return G({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??u._wrapperState.initialChecked})}function Fe(u,d){var y=d.defaultValue==null?"":d.defaultValue,E=d.checked!=null?d.checked:d.defaultChecked;y=M(d.value!=null?d.value:y),u._wrapperState={initialChecked:E,initialValue:y,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function ge(u,d){d=d.checked,d!=null&&C(u,"checked",d,!1)}function Ce(u,d){ge(u,d);var y=M(d.value),E=d.type;if(y!=null)E==="number"?(y===0&&u.value===""||u.value!=y)&&(u.value=""+y):u.value!==""+y&&(u.value=""+y);else if(E==="submit"||E==="reset"){u.removeAttribute("value");return}d.hasOwnProperty("value")?Me(u,d.type,y):d.hasOwnProperty("defaultValue")&&Me(u,d.type,M(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(u.defaultChecked=!!d.defaultChecked)}function je(u,d,y){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var E=d.type;if(!(E!=="submit"&&E!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+u._wrapperState.initialValue,y||d===u.value||(u.value=d),u.defaultValue=d}y=u.name,y!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,y!==""&&(u.name=y)}function Me(u,d,y){(d!=="number"||he(u.ownerDocument)!==u)&&(y==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+y&&(u.defaultValue=""+y))}var Ge=Array.isArray;function Be(u,d,y,E){if(u=u.options,d){d={};for(var R=0;R"+d.valueOf().toString()+"",d=Ye.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;d.firstChild;)u.appendChild(d.firstChild)}});function bt(u,d){if(d){var y=u.firstChild;if(y&&y===u.lastChild&&y.nodeType===3){y.nodeValue=d;return}}u.textContent=d}var St={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},xt=["Webkit","ms","Moz","O"];Object.keys(St).forEach(function(u){xt.forEach(function(d){d=d+u.charAt(0).toUpperCase()+u.substring(1),St[d]=St[u]})});function Jt(u,d,y){return d==null||typeof d=="boolean"||d===""?"":y||typeof d!="number"||d===0||St.hasOwnProperty(u)&&St[u]?(""+d).trim():d+"px"}function Gt(u,d){u=u.style;for(var y in d)if(d.hasOwnProperty(y)){var E=y.indexOf("--")===0,R=Jt(y,d[y],E);y==="float"&&(y="cssFloat"),E?u.setProperty(y,R):u[y]=R}}var jr=G({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 Lr(u,d){if(d){if(jr[u]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(r(137,u));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(r(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(r(61))}if(d.style!=null&&typeof d.style!="object")throw Error(r(62))}}function Ln(u,d){if(u.indexOf("-")===-1)return typeof d.is=="string";switch(u){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 Pr=null;function ho(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var In=null,Ji=null,ea=null;function jl(u){if(u=Po(u)){if(typeof In!="function")throw Error(r(280));var d=u.stateNode;d&&(d=wc(d),In(u.stateNode,u.type,d))}}function cs(u){Ji?ea?ea.push(u):ea=[u]:Ji=u}function Ra(){if(Ji){var u=Ji,d=ea;if(ea=Ji=null,jl(u),d)for(u=0;u>>=0,u===0?32:31-(er(u)/ec|0)|0}var ta=64,hs=4194304;function yt(u){switch(u&-u){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 u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function Kt(u,d){var y=u.pendingLanes;if(y===0)return 0;var E=0,R=u.suspendedLanes,D=u.pingedLanes,ee=y&268435455;if(ee!==0){var fe=ee&~R;fe!==0?E=yt(fe):(D&=ee,D!==0&&(E=yt(D)))}else ee=y&~R,ee!==0?E=yt(ee):D!==0&&(E=yt(D));if(E===0)return 0;if(d!==0&&d!==E&&!(d&R)&&(R=E&-E,D=d&-d,R>=D||R===16&&(D&4194240)!==0))return d;if(E&4&&(E|=y&16),d=u.entangledLanes,d!==0)for(u=u.entanglements,d&=E;0y;y++)d.push(u);return d}function ti(u,d,y){u.pendingLanes|=d,d!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,d=31-wt(d),u[d]=y}function xr(u,d){var y=u.pendingLanes&~d;u.pendingLanes=d,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=d,u.mutableReadLanes&=d,u.entangledLanes&=d,d=u.entanglements;var E=u.eventTimes;for(u=u.expirationTimes;0=Fl),xo=" ",av=!1;function _s(u,d){switch(u){case"keyup":return ai.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var aa=!1;function v_(u,d){switch(u){case"compositionend":return Wd(d);case"keypress":return d.which!==32?null:(av=!0,xo);case"textInput":return u=d.data,u===xo&&av?null:u;default:return null}}function Da(u,d){if(aa)return u==="compositionend"||!Ia&&_s(u,d)?(u=Ld(),La=_n=Ma=null,aa=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1=d)return{node:y,offset:d-u};u=E}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=lv(y)}}function uv(u,d){return u&&d?u===d?!0:u&&u.nodeType===3?!1:d&&d.nodeType===3?uv(u,d.parentNode):"contains"in u?u.contains(d):u.compareDocumentPosition?!!(u.compareDocumentPosition(d)&16):!1:!1}function Gd(){for(var u=window,d=he();d instanceof u.HTMLIFrameElement;){try{var y=typeof d.contentWindow.location.href=="string"}catch{y=!1}if(y)u=d.contentWindow;else break;d=he(u.document)}return d}function Kd(u){var d=u&&u.nodeName&&u.nodeName.toLowerCase();return d&&(d==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||d==="textarea"||u.contentEditable==="true")}function ji(u){var d=Gd(),y=u.focusedElem,E=u.selectionRange;if(d!==y&&y&&y.ownerDocument&&uv(y.ownerDocument.documentElement,y)){if(E!==null&&Kd(y)){if(d=E.start,u=E.end,u===void 0&&(u=d),"selectionStart"in y)y.selectionStart=d,y.selectionEnd=Math.min(u,y.value.length);else if(u=(d=y.ownerDocument||document)&&d.defaultView||window,u.getSelection){u=u.getSelection();var R=y.textContent.length,D=Math.min(E.start,R);E=E.end===void 0?D:Math.min(E.end,R),!u.extend&&D>E&&(R=E,E=D,D=R),R=Hd(y,D);var ee=Hd(y,E);R&&ee&&(u.rangeCount!==1||u.anchorNode!==R.node||u.anchorOffset!==R.offset||u.focusNode!==ee.node||u.focusOffset!==ee.offset)&&(d=d.createRange(),d.setStart(R.node,R.offset),u.removeAllRanges(),D>E?(u.addRange(d),u.extend(ee.node,ee.offset)):(d.setEnd(ee.node,ee.offset),u.addRange(d)))}}for(d=[],u=y;u=u.parentNode;)u.nodeType===1&&d.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y=document.documentMode,Ss=null,Os=null,zl=null,_c=!1;function cv(u,d,y){var E=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;_c||Ss==null||Ss!==he(E)||(E=Ss,"selectionStart"in E&&Kd(E)?E={start:E.selectionStart,end:E.selectionEnd}:(E=(E.ownerDocument&&E.ownerDocument.defaultView||window).getSelection(),E={anchorNode:E.anchorNode,anchorOffset:E.anchorOffset,focusNode:E.focusNode,focusOffset:E.focusOffset}),zl&&$a(zl,E)||(zl=E,E=O(Os,"onSelect"),0Sc||(u.current=w_[Sc],w_[Sc]=null,Sc--)}function Yt(u,d){Sc++,w_[Sc]=u.current,u.current=d}var Ns={},fn=Rs(Ns),Fn=Rs(!1),ql=Ns;function Oc(u,d){var y=u.type.contextTypes;if(!y)return Ns;var E=u.stateNode;if(E&&E.__reactInternalMemoizedUnmaskedChildContext===d)return E.__reactInternalMemoizedMaskedChildContext;var R={},D;for(D in y)R[D]=d[D];return E&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=d,u.__reactInternalMemoizedMaskedChildContext=R),R}function Bn(u){return u=u.childContextTypes,u!=null}function gv(){tr(Fn),tr(fn)}function qA(u,d,y){if(fn.current!==Ns)throw Error(r(168));Yt(fn,d),Yt(Fn,y)}function HA(u,d,y){var E=u.stateNode;if(d=d.childContextTypes,typeof E.getChildContext!="function")return y;E=E.getChildContext();for(var R in E)if(!(R in d))throw Error(r(108,be(u)||"Unknown",R));return G({},y,E)}function yv(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||Ns,ql=fn.current,Yt(fn,u),Yt(Fn,Fn.current),!0}function GA(u,d,y){var E=u.stateNode;if(!E)throw Error(r(169));y?(u=HA(u,d,ql),E.__reactInternalMemoizedMergedChildContext=u,tr(Fn),tr(fn),Yt(fn,u)):tr(Fn),Yt(Fn,y)}var Co=null,bv=!1,S_=!1;function KA(u){Co===null?Co=[u]:Co.push(u)}function oq(u){bv=!0,KA(u)}function Ms(){if(!S_&&Co!==null){S_=!0;var u=0,d=Rt;try{var y=Co;for(Rt=1;u>=ee,R-=ee,To=1<<32-wt(d)+R|y<gt?(Gr=ct,ct=null):Gr=ct.sibling;var Lt=Le(xe,ct,Se[gt],We);if(Lt===null){ct===null&&(ct=Gr);break}u&&ct&&Lt.alternate===null&&d(xe,ct),ve=D(Lt,ve,gt),ut===null?ot=Lt:ut.sibling=Lt,ut=Lt,ct=Gr}if(gt===Se.length)return y(xe,ct),or&&Gl(xe,gt),ot;if(ct===null){for(;gtgt?(Gr=ct,ct=null):Gr=ct.sibling;var Vs=Le(xe,ct,Lt.value,We);if(Vs===null){ct===null&&(ct=Gr);break}u&&ct&&Vs.alternate===null&&d(xe,ct),ve=D(Vs,ve,gt),ut===null?ot=Vs:ut.sibling=Vs,ut=Vs,ct=Gr}if(Lt.done)return y(xe,ct),or&&Gl(xe,gt),ot;if(ct===null){for(;!Lt.done;gt++,Lt=Se.next())Lt=$e(xe,Lt.value,We),Lt!==null&&(ve=D(Lt,ve,gt),ut===null?ot=Lt:ut.sibling=Lt,ut=Lt);return or&&Gl(xe,gt),ot}for(ct=E(xe,ct);!Lt.done;gt++,Lt=Se.next())Lt=Je(ct,xe,gt,Lt.value,We),Lt!==null&&(u&&Lt.alternate!==null&&ct.delete(Lt.key===null?gt:Lt.key),ve=D(Lt,ve,gt),ut===null?ot=Lt:ut.sibling=Lt,ut=Lt);return u&&ct.forEach(function(Bq){return d(xe,Bq)}),or&&Gl(xe,gt),ot}function Er(xe,ve,Se,We){if(typeof Se=="object"&&Se!==null&&Se.type===N&&Se.key===null&&(Se=Se.props.children),typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case A:e:{for(var ot=Se.key,ut=ve;ut!==null;){if(ut.key===ot){if(ot=Se.type,ot===N){if(ut.tag===7){y(xe,ut.sibling),ve=R(ut,Se.props.children),ve.return=xe,xe=ve;break e}}else if(ut.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===oe&&ek(ot)===ut.type){y(xe,ut.sibling),ve=R(ut,Se.props),ve.ref=rh(xe,ut,Se),ve.return=xe,xe=ve;break e}y(xe,ut);break}else d(xe,ut);ut=ut.sibling}Se.type===N?(ve=tu(Se.props.children,xe.mode,We,Se.key),ve.return=xe,xe=ve):(We=Gv(Se.type,Se.key,Se.props,null,xe.mode,We),We.ref=rh(xe,ve,Se),We.return=xe,xe=We)}return ee(xe);case j:e:{for(ut=Se.key;ve!==null;){if(ve.key===ut)if(ve.tag===4&&ve.stateNode.containerInfo===Se.containerInfo&&ve.stateNode.implementation===Se.implementation){y(xe,ve.sibling),ve=R(ve,Se.children||[]),ve.return=xe,xe=ve;break e}else{y(xe,ve);break}else d(xe,ve);ve=ve.sibling}ve=_1(Se,xe.mode,We),ve.return=xe,xe=ve}return ee(xe);case oe:return ut=Se._init,Er(xe,ve,ut(Se._payload),We)}if(Ge(Se))return rt(xe,ve,Se,We);if(K(Se))return nt(xe,ve,Se,We);Sv(xe,Se)}return typeof Se=="string"&&Se!==""||typeof Se=="number"?(Se=""+Se,ve!==null&&ve.tag===6?(y(xe,ve.sibling),ve=R(ve,Se),ve.return=xe,xe=ve):(y(xe,ve),ve=b1(Se,xe.mode,We),ve.return=xe,xe=ve),ee(xe)):y(xe,ve)}return Er}var Tc=tk(!0),rk=tk(!1),Ov=Rs(null),Pv=null,jc=null,j_=null;function A_(){j_=jc=Pv=null}function k_(u){var d=Ov.current;tr(Ov),u._currentValue=d}function R_(u,d,y){for(;u!==null;){var E=u.alternate;if((u.childLanes&d)!==d?(u.childLanes|=d,E!==null&&(E.childLanes|=d)):E!==null&&(E.childLanes&d)!==d&&(E.childLanes|=d),u===y)break;u=u.return}}function Ac(u,d){Pv=u,j_=jc=null,u=u.dependencies,u!==null&&u.firstContext!==null&&(u.lanes&d&&(Un=!0),u.firstContext=null)}function Mi(u){var d=u._currentValue;if(j_!==u)if(u={context:u,memoizedValue:d,next:null},jc===null){if(Pv===null)throw Error(r(308));jc=u,Pv.dependencies={lanes:0,firstContext:u}}else jc=jc.next=u;return d}var Kl=null;function N_(u){Kl===null?Kl=[u]:Kl.push(u)}function nk(u,d,y,E){var R=d.interleaved;return R===null?(y.next=y,N_(d)):(y.next=R.next,R.next=y),d.interleaved=y,Ao(u,E)}function Ao(u,d){u.lanes|=d;var y=u.alternate;for(y!==null&&(y.lanes|=d),y=u,u=u.return;u!==null;)u.childLanes|=d,y=u.alternate,y!==null&&(y.childLanes|=d),y=u,u=u.return;return y.tag===3?y.stateNode:null}var Ls=!1;function M_(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ik(u,d){u=u.updateQueue,d.updateQueue===u&&(d.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function ko(u,d){return{eventTime:u,lane:d,tag:0,payload:null,callback:null,next:null}}function Is(u,d,y){var E=u.updateQueue;if(E===null)return null;if(E=E.shared,Mt&2){var R=E.pending;return R===null?d.next=d:(d.next=R.next,R.next=d),E.pending=d,Ao(u,y)}return R=E.interleaved,R===null?(d.next=d,N_(E)):(d.next=R.next,R.next=d),E.interleaved=d,Ao(u,y)}function Ev(u,d,y){if(d=d.updateQueue,d!==null&&(d=d.shared,(y&4194240)!==0)){var E=d.lanes;E&=u.pendingLanes,y|=E,d.lanes=y,ra(u,y)}}function ak(u,d){var y=u.updateQueue,E=u.alternate;if(E!==null&&(E=E.updateQueue,y===E)){var R=null,D=null;if(y=y.firstBaseUpdate,y!==null){do{var ee={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};D===null?R=D=ee:D=D.next=ee,y=y.next}while(y!==null);D===null?R=D=d:D=D.next=d}else R=D=d;y={baseState:E.baseState,firstBaseUpdate:R,lastBaseUpdate:D,shared:E.shared,effects:E.effects},u.updateQueue=y;return}u=y.lastBaseUpdate,u===null?y.firstBaseUpdate=d:u.next=d,y.lastBaseUpdate=d}function Cv(u,d,y,E){var R=u.updateQueue;Ls=!1;var D=R.firstBaseUpdate,ee=R.lastBaseUpdate,fe=R.shared.pending;if(fe!==null){R.shared.pending=null;var me=fe,Ee=me.next;me.next=null,ee===null?D=Ee:ee.next=Ee,ee=me;var Ie=u.alternate;Ie!==null&&(Ie=Ie.updateQueue,fe=Ie.lastBaseUpdate,fe!==ee&&(fe===null?Ie.firstBaseUpdate=Ee:fe.next=Ee,Ie.lastBaseUpdate=me))}if(D!==null){var $e=R.baseState;ee=0,Ie=Ee=me=null,fe=D;do{var Le=fe.lane,Je=fe.eventTime;if((E&Le)===Le){Ie!==null&&(Ie=Ie.next={eventTime:Je,lane:0,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null});e:{var rt=u,nt=fe;switch(Le=d,Je=y,nt.tag){case 1:if(rt=nt.payload,typeof rt=="function"){$e=rt.call(Je,$e,Le);break e}$e=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=nt.payload,Le=typeof rt=="function"?rt.call(Je,$e,Le):rt,Le==null)break e;$e=G({},$e,Le);break e;case 2:Ls=!0}}fe.callback!==null&&fe.lane!==0&&(u.flags|=64,Le=R.effects,Le===null?R.effects=[fe]:Le.push(fe))}else Je={eventTime:Je,lane:Le,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null},Ie===null?(Ee=Ie=Je,me=$e):Ie=Ie.next=Je,ee|=Le;if(fe=fe.next,fe===null){if(fe=R.shared.pending,fe===null)break;Le=fe,fe=Le.next,Le.next=null,R.lastBaseUpdate=Le,R.shared.pending=null}}while(!0);if(Ie===null&&(me=$e),R.baseState=me,R.firstBaseUpdate=Ee,R.lastBaseUpdate=Ie,d=R.shared.interleaved,d!==null){R=d;do ee|=R.lane,R=R.next;while(R!==d)}else D===null&&(R.shared.lanes=0);Xl|=ee,u.lanes=ee,u.memoizedState=$e}}function ok(u,d,y){if(u=d.effects,d.effects=null,u!==null)for(d=0;dy?y:4,u(!0);var E=F_.transition;F_.transition={};try{u(!1),d()}finally{Rt=y,F_.transition=E}}function Pk(){return Li().memoizedState}function cq(u,d,y){var E=Bs(u);if(y={lane:E,action:y,hasEagerState:!1,eagerState:null,next:null},Ek(u))Ck(d,y);else if(y=nk(u,d,y,E),y!==null){var R=On();fa(y,u,E,R),Tk(y,d,E)}}function fq(u,d,y){var E=Bs(u),R={lane:E,action:y,hasEagerState:!1,eagerState:null,next:null};if(Ek(u))Ck(d,R);else{var D=u.alternate;if(u.lanes===0&&(D===null||D.lanes===0)&&(D=d.lastRenderedReducer,D!==null))try{var ee=d.lastRenderedState,fe=D(ee,y);if(R.hasEagerState=!0,R.eagerState=fe,oi(fe,ee)){var me=d.interleaved;me===null?(R.next=R,N_(d)):(R.next=me.next,me.next=R),d.interleaved=R;return}}catch{}finally{}y=nk(u,d,R,E),y!==null&&(R=On(),fa(y,u,E,R),Tk(y,d,E))}}function Ek(u){var d=u.alternate;return u===br||d!==null&&d===br}function Ck(u,d){oh=Av=!0;var y=u.pending;y===null?d.next=d:(d.next=y.next,y.next=d),u.pending=d}function Tk(u,d,y){if(y&4194240){var E=d.lanes;E&=u.pendingLanes,y|=E,d.lanes=y,ra(u,y)}}var Nv={readContext:Mi,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useInsertionEffect:dn,useLayoutEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useMutableSource:dn,useSyncExternalStore:dn,useId:dn,unstable_isNewReconciler:!1},dq={readContext:Mi,useCallback:function(u,d){return Va().memoizedState=[u,d===void 0?null:d],u},useContext:Mi,useEffect:gk,useImperativeHandle:function(u,d,y){return y=y!=null?y.concat([u]):null,kv(4194308,4,_k.bind(null,d,u),y)},useLayoutEffect:function(u,d){return kv(4194308,4,u,d)},useInsertionEffect:function(u,d){return kv(4,2,u,d)},useMemo:function(u,d){var y=Va();return d=d===void 0?null:d,u=u(),y.memoizedState=[u,d],u},useReducer:function(u,d,y){var E=Va();return d=y!==void 0?y(d):d,E.memoizedState=E.baseState=d,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:d},E.queue=u,u=u.dispatch=cq.bind(null,br,u),[E.memoizedState,u]},useRef:function(u){var d=Va();return u={current:u},d.memoizedState=u},useState:mk,useDebugValue:H_,useDeferredValue:function(u){return Va().memoizedState=u},useTransition:function(){var u=mk(!1),d=u[0];return u=uq.bind(null,u[1]),Va().memoizedState=u,[d,u]},useMutableSource:function(){},useSyncExternalStore:function(u,d,y){var E=br,R=Va();if(or){if(y===void 0)throw Error(r(407));y=y()}else{if(y=d(),Hr===null)throw Error(r(349));Zl&30||ck(E,d,y)}R.memoizedState=y;var D={value:y,getSnapshot:d};return R.queue=D,gk(dk.bind(null,E,D,u),[u]),E.flags|=2048,uh(9,fk.bind(null,E,D,y,d),void 0,null),y},useId:function(){var u=Va(),d=Hr.identifierPrefix;if(or){var y=jo,E=To;y=(E&~(1<<32-wt(E)-1)).toString(32)+y,d=":"+d+"R"+y,y=sh++,0<\/script>",u=u.removeChild(u.firstChild)):typeof E.is=="string"?u=ee.createElement(y,{is:E.is}):(u=ee.createElement(y),y==="select"&&(ee=u,E.multiple?ee.multiple=!0:E.size&&(ee.size=E.size))):u=ee.createElementNS(u,y),u[ki]=d,u[As]=E,Kk(u,d,!1,!1),d.stateNode=u;e:{switch(ee=Ln(y,E),y){case"dialog":Ut("cancel",u),Ut("close",u),R=E;break;case"iframe":case"object":case"embed":Ut("load",u),R=E;break;case"video":case"audio":for(R=0;RLc&&(d.flags|=128,E=!0,ch(D,!1),d.lanes=4194304)}else{if(!E)if(u=Tv(ee),u!==null){if(d.flags|=128,E=!0,y=u.updateQueue,y!==null&&(d.updateQueue=y,d.flags|=4),ch(D,!0),D.tail===null&&D.tailMode==="hidden"&&!ee.alternate&&!or)return hn(d),null}else 2*vr()-D.renderingStartTime>Lc&&y!==1073741824&&(d.flags|=128,E=!0,ch(D,!1),d.lanes=4194304);D.isBackwards?(ee.sibling=d.child,d.child=ee):(y=D.last,y!==null?y.sibling=ee:d.child=ee,D.last=ee)}return D.tail!==null?(d=D.tail,D.rendering=d,D.tail=d.sibling,D.renderingStartTime=vr(),d.sibling=null,y=yr.current,Yt(yr,E?y&1|2:y&1),d):(hn(d),null);case 22:case 23:return v1(),E=d.memoizedState!==null,u!==null&&u.memoizedState!==null!==E&&(d.flags|=8192),E&&d.mode&1?ci&1073741824&&(hn(d),d.subtreeFlags&6&&(d.flags|=8192)):hn(d),null;case 24:return null;case 25:return null}throw Error(r(156,d.tag))}function _q(u,d){switch(P_(d),d.tag){case 1:return Bn(d.type)&&gv(),u=d.flags,u&65536?(d.flags=u&-65537|128,d):null;case 3:return kc(),tr(Fn),tr(fn),$_(),u=d.flags,u&65536&&!(u&128)?(d.flags=u&-65537|128,d):null;case 5:return I_(d),null;case 13:if(tr(yr),u=d.memoizedState,u!==null&&u.dehydrated!==null){if(d.alternate===null)throw Error(r(340));Cc()}return u=d.flags,u&65536?(d.flags=u&-65537|128,d):null;case 19:return tr(yr),null;case 4:return kc(),null;case 10:return k_(d.type._context),null;case 22:case 23:return v1(),null;case 24:return null;default:return null}}var Dv=!1,pn=!1,xq=typeof WeakSet=="function"?WeakSet:Set,et=null;function Nc(u,d){var y=u.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(E){wr(u,d,E)}else y.current=null}function i1(u,d,y){try{y()}catch(E){wr(u,d,E)}}var Xk=!1;function wq(u,d){if(Xe=Dl,u=Gd(),Kd(u)){if("selectionStart"in u)var y={start:u.selectionStart,end:u.selectionEnd};else e:{y=(y=u.ownerDocument)&&y.defaultView||window;var E=y.getSelection&&y.getSelection();if(E&&E.rangeCount!==0){y=E.anchorNode;var R=E.anchorOffset,D=E.focusNode;E=E.focusOffset;try{y.nodeType,D.nodeType}catch{y=null;break e}var ee=0,fe=-1,me=-1,Ee=0,Ie=0,$e=u,Le=null;t:for(;;){for(var Je;$e!==y||R!==0&&$e.nodeType!==3||(fe=ee+R),$e!==D||E!==0&&$e.nodeType!==3||(me=ee+E),$e.nodeType===3&&(ee+=$e.nodeValue.length),(Je=$e.firstChild)!==null;)Le=$e,$e=Je;for(;;){if($e===u)break t;if(Le===y&&++Ee===R&&(fe=ee),Le===D&&++Ie===E&&(me=ee),(Je=$e.nextSibling)!==null)break;$e=Le,Le=$e.parentNode}$e=Je}y=fe===-1||me===-1?null:{start:fe,end:me}}else y=null}y=y||{start:0,end:0}}else y=null;for(lt={focusedElem:u,selectionRange:y},Dl=!1,et=d;et!==null;)if(d=et,u=d.child,(d.subtreeFlags&1028)!==0&&u!==null)u.return=d,et=u;else for(;et!==null;){d=et;try{var rt=d.alternate;if(d.flags&1024)switch(d.tag){case 0:case 11:case 15:break;case 1:if(rt!==null){var nt=rt.memoizedProps,Er=rt.memoizedState,xe=d.stateNode,ve=xe.getSnapshotBeforeUpdate(d.elementType===d.type?nt:la(d.type,nt),Er);xe.__reactInternalSnapshotBeforeUpdate=ve}break;case 3:var Se=d.stateNode.containerInfo;Se.nodeType===1?Se.textContent="":Se.nodeType===9&&Se.documentElement&&Se.removeChild(Se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(We){wr(d,d.return,We)}if(u=d.sibling,u!==null){u.return=d.return,et=u;break}et=d.return}return rt=Xk,Xk=!1,rt}function fh(u,d,y){var E=d.updateQueue;if(E=E!==null?E.lastEffect:null,E!==null){var R=E=E.next;do{if((R.tag&u)===u){var D=R.destroy;R.destroy=void 0,D!==void 0&&i1(d,y,D)}R=R.next}while(R!==E)}}function $v(u,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var y=d=d.next;do{if((y.tag&u)===u){var E=y.create;y.destroy=E()}y=y.next}while(y!==d)}}function a1(u){var d=u.ref;if(d!==null){var y=u.stateNode;switch(u.tag){case 5:u=y;break;default:u=y}typeof d=="function"?d(u):d.current=u}}function Qk(u){var d=u.alternate;d!==null&&(u.alternate=null,Qk(d)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(d=u.stateNode,d!==null&&(delete d[ki],delete d[As],delete d[ks],delete d[__],delete d[x_])),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function Jk(u){return u.tag===5||u.tag===3||u.tag===4}function e3(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||Jk(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function o1(u,d,y){var E=u.tag;if(E===5||E===6)u=u.stateNode,d?y.nodeType===8?y.parentNode.insertBefore(u,d):y.insertBefore(u,d):(y.nodeType===8?(d=y.parentNode,d.insertBefore(u,y)):(d=y,d.appendChild(u)),y=y._reactRootContainer,y!=null||d.onclick!==null||(d.onclick=Re));else if(E!==4&&(u=u.child,u!==null))for(o1(u,d,y),u=u.sibling;u!==null;)o1(u,d,y),u=u.sibling}function s1(u,d,y){var E=u.tag;if(E===5||E===6)u=u.stateNode,d?y.insertBefore(u,d):y.appendChild(u);else if(E!==4&&(u=u.child,u!==null))for(s1(u,d,y),u=u.sibling;u!==null;)s1(u,d,y),u=u.sibling}var tn=null,ua=!1;function Ds(u,d,y){for(y=y.child;y!==null;)t3(u,d,y),y=y.sibling}function t3(u,d,y){if(ei&&typeof ei.onCommitFiberUnmount=="function")try{ei.onCommitFiberUnmount(kl,y)}catch{}switch(y.tag){case 5:pn||Nc(y,d);case 6:var E=tn,R=ua;tn=null,Ds(u,d,y),tn=E,ua=R,tn!==null&&(ua?(u=tn,y=y.stateNode,u.nodeType===8?u.parentNode.removeChild(y):u.removeChild(y)):tn.removeChild(y.stateNode));break;case 18:tn!==null&&(ua?(u=tn,y=y.stateNode,u.nodeType===8?th(u.parentNode,y):u.nodeType===1&&th(u,y),ni(u)):th(tn,y.stateNode));break;case 4:E=tn,R=ua,tn=y.stateNode.containerInfo,ua=!0,Ds(u,d,y),tn=E,ua=R;break;case 0:case 11:case 14:case 15:if(!pn&&(E=y.updateQueue,E!==null&&(E=E.lastEffect,E!==null))){R=E=E.next;do{var D=R,ee=D.destroy;D=D.tag,ee!==void 0&&(D&2||D&4)&&i1(y,d,ee),R=R.next}while(R!==E)}Ds(u,d,y);break;case 1:if(!pn&&(Nc(y,d),E=y.stateNode,typeof E.componentWillUnmount=="function"))try{E.props=y.memoizedProps,E.state=y.memoizedState,E.componentWillUnmount()}catch(fe){wr(y,d,fe)}Ds(u,d,y);break;case 21:Ds(u,d,y);break;case 22:y.mode&1?(pn=(E=pn)||y.memoizedState!==null,Ds(u,d,y),pn=E):Ds(u,d,y);break;default:Ds(u,d,y)}}function r3(u){var d=u.updateQueue;if(d!==null){u.updateQueue=null;var y=u.stateNode;y===null&&(y=u.stateNode=new xq),d.forEach(function(E){var R=kq.bind(null,u,E);y.has(E)||(y.add(E),E.then(R,R))})}}function ca(u,d){var y=d.deletions;if(y!==null)for(var E=0;ER&&(R=ee),E&=~D}if(E=R,E=vr()-E,E=(120>E?120:480>E?480:1080>E?1080:1920>E?1920:3e3>E?3e3:4320>E?4320:1960*Oq(E/1960))-E,10u?16:u,Fs===null)var E=!1;else{if(u=Fs,Fs=null,Vv=0,Mt&6)throw Error(r(331));var R=Mt;for(Mt|=4,et=u.current;et!==null;){var D=et,ee=D.child;if(et.flags&16){var fe=D.deletions;if(fe!==null){for(var me=0;mevr()-c1?Jl(u,0):u1|=y),Vn(u,d)}function m3(u,d){d===0&&(u.mode&1?(d=hs,hs<<=1,!(hs&130023424)&&(hs=4194304)):d=1);var y=On();u=Ao(u,d),u!==null&&(ti(u,d,y),Vn(u,y))}function Aq(u){var d=u.memoizedState,y=0;d!==null&&(y=d.retryLane),m3(u,y)}function kq(u,d){var y=0;switch(u.tag){case 13:var E=u.stateNode,R=u.memoizedState;R!==null&&(y=R.retryLane);break;case 19:E=u.stateNode;break;default:throw Error(r(314))}E!==null&&E.delete(d),m3(u,y)}var v3;v3=function(u,d,y){if(u!==null)if(u.memoizedProps!==d.pendingProps||Fn.current)Un=!0;else{if(!(u.lanes&y)&&!(d.flags&128))return Un=!1,yq(u,d,y);Un=!!(u.flags&131072)}else Un=!1,or&&d.flags&1048576&&YA(d,xv,d.index);switch(d.lanes=0,d.tag){case 2:var E=d.type;Iv(u,d),u=d.pendingProps;var R=Oc(d,fn.current);Ac(d,y),R=U_(null,d,E,u,R,y);var D=z_();return d.flags|=1,typeof R=="object"&&R!==null&&typeof R.render=="function"&&R.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,Bn(E)?(D=!0,yv(d)):D=!1,d.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,M_(d),R.updater=Mv,d.stateNode=R,R._reactInternals=d,K_(d,E,u,y),d=Q_(null,d,E,!0,D,y)):(d.tag=0,or&&D&&O_(d),Sn(null,d,R,y),d=d.child),d;case 16:E=d.elementType;e:{switch(Iv(u,d),u=d.pendingProps,R=E._init,E=R(E._payload),d.type=E,R=d.tag=Nq(E),u=la(E,u),R){case 0:d=X_(null,d,E,u,y);break e;case 1:d=zk(null,d,E,u,y);break e;case 11:d=Dk(null,d,E,u,y);break e;case 14:d=$k(null,d,E,la(E.type,u),y);break e}throw Error(r(306,E,""))}return d;case 0:return E=d.type,R=d.pendingProps,R=d.elementType===E?R:la(E,R),X_(u,d,E,R,y);case 1:return E=d.type,R=d.pendingProps,R=d.elementType===E?R:la(E,R),zk(u,d,E,R,y);case 3:e:{if(Vk(d),u===null)throw Error(r(387));E=d.pendingProps,D=d.memoizedState,R=D.element,ik(u,d),Cv(d,E,null,y);var ee=d.memoizedState;if(E=ee.element,D.isDehydrated)if(D={element:E,isDehydrated:!1,cache:ee.cache,pendingSuspenseBoundaries:ee.pendingSuspenseBoundaries,transitions:ee.transitions},d.updateQueue.baseState=D,d.memoizedState=D,d.flags&256){R=Rc(Error(r(423)),d),d=Wk(u,d,E,y,R);break e}else if(E!==R){R=Rc(Error(r(424)),d),d=Wk(u,d,E,y,R);break e}else for(ui=Ua(d.stateNode.containerInfo.firstChild),li=d,or=!0,sa=null,y=rk(d,null,E,y),d.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(Cc(),E===R){d=Ro(u,d,y);break e}Sn(u,d,E,y)}d=d.child}return d;case 5:return sk(d),u===null&&C_(d),E=d.type,R=d.pendingProps,D=u!==null?u.memoizedProps:null,ee=R.children,Ot(E,R)?ee=null:D!==null&&Ot(E,D)&&(d.flags|=32),Uk(u,d),Sn(u,d,ee,y),d.child;case 6:return u===null&&C_(d),null;case 13:return qk(u,d,y);case 4:return L_(d,d.stateNode.containerInfo),E=d.pendingProps,u===null?d.child=Tc(d,null,E,y):Sn(u,d,E,y),d.child;case 11:return E=d.type,R=d.pendingProps,R=d.elementType===E?R:la(E,R),Dk(u,d,E,R,y);case 7:return Sn(u,d,d.pendingProps,y),d.child;case 8:return Sn(u,d,d.pendingProps.children,y),d.child;case 12:return Sn(u,d,d.pendingProps.children,y),d.child;case 10:e:{if(E=d.type._context,R=d.pendingProps,D=d.memoizedProps,ee=R.value,Yt(Ov,E._currentValue),E._currentValue=ee,D!==null)if(oi(D.value,ee)){if(D.children===R.children&&!Fn.current){d=Ro(u,d,y);break e}}else for(D=d.child,D!==null&&(D.return=d);D!==null;){var fe=D.dependencies;if(fe!==null){ee=D.child;for(var me=fe.firstContext;me!==null;){if(me.context===E){if(D.tag===1){me=ko(-1,y&-y),me.tag=2;var Ee=D.updateQueue;if(Ee!==null){Ee=Ee.shared;var Ie=Ee.pending;Ie===null?me.next=me:(me.next=Ie.next,Ie.next=me),Ee.pending=me}}D.lanes|=y,me=D.alternate,me!==null&&(me.lanes|=y),R_(D.return,y,d),fe.lanes|=y;break}me=me.next}}else if(D.tag===10)ee=D.type===d.type?null:D.child;else if(D.tag===18){if(ee=D.return,ee===null)throw Error(r(341));ee.lanes|=y,fe=ee.alternate,fe!==null&&(fe.lanes|=y),R_(ee,y,d),ee=D.sibling}else ee=D.child;if(ee!==null)ee.return=D;else for(ee=D;ee!==null;){if(ee===d){ee=null;break}if(D=ee.sibling,D!==null){D.return=ee.return,ee=D;break}ee=ee.return}D=ee}Sn(u,d,R.children,y),d=d.child}return d;case 9:return R=d.type,E=d.pendingProps.children,Ac(d,y),R=Mi(R),E=E(R),d.flags|=1,Sn(u,d,E,y),d.child;case 14:return E=d.type,R=la(E,d.pendingProps),R=la(E.type,R),$k(u,d,E,R,y);case 15:return Fk(u,d,d.type,d.pendingProps,y);case 17:return E=d.type,R=d.pendingProps,R=d.elementType===E?R:la(E,R),Iv(u,d),d.tag=1,Bn(E)?(u=!0,yv(d)):u=!1,Ac(d,y),Ak(d,E,R),K_(d,E,R,y),Q_(null,d,E,!0,u,y);case 19:return Gk(u,d,y);case 22:return Bk(u,d,y)}throw Error(r(156,d.tag))};function g3(u,d){return Hm(u,d)}function Rq(u,d,y,E){this.tag=u,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=E,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Di(u,d,y,E){return new Rq(u,d,y,E)}function y1(u){return u=u.prototype,!(!u||!u.isReactComponent)}function Nq(u){if(typeof u=="function")return y1(u)?1:0;if(u!=null){if(u=u.$$typeof,u===q)return 11;if(u===re)return 14}return 2}function zs(u,d){var y=u.alternate;return y===null?(y=Di(u.tag,d,u.key,u.mode),y.elementType=u.elementType,y.type=u.type,y.stateNode=u.stateNode,y.alternate=u,u.alternate=y):(y.pendingProps=d,y.type=u.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=u.flags&14680064,y.childLanes=u.childLanes,y.lanes=u.lanes,y.child=u.child,y.memoizedProps=u.memoizedProps,y.memoizedState=u.memoizedState,y.updateQueue=u.updateQueue,d=u.dependencies,y.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},y.sibling=u.sibling,y.index=u.index,y.ref=u.ref,y}function Gv(u,d,y,E,R,D){var ee=2;if(E=u,typeof u=="function")y1(u)&&(ee=1);else if(typeof u=="string")ee=5;else e:switch(u){case N:return tu(y.children,R,D,d);case F:ee=8,R|=8;break;case V:return u=Di(12,y,d,R|2),u.elementType=V,u.lanes=D,u;case J:return u=Di(13,y,d,R),u.elementType=J,u.lanes=D,u;case Q:return u=Di(19,y,d,R),u.elementType=Q,u.lanes=D,u;case le:return Kv(y,R,D,d);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case B:ee=10;break e;case W:ee=9;break e;case q:ee=11;break e;case re:ee=14;break e;case oe:ee=16,E=null;break e}throw Error(r(130,u==null?u:typeof u,""))}return d=Di(ee,y,d,R),d.elementType=u,d.type=E,d.lanes=D,d}function tu(u,d,y,E){return u=Di(7,u,E,d),u.lanes=y,u}function Kv(u,d,y,E){return u=Di(22,u,E,d),u.elementType=le,u.lanes=y,u.stateNode={isHidden:!1},u}function b1(u,d,y){return u=Di(6,u,null,d),u.lanes=y,u}function _1(u,d,y){return d=Di(4,u.children!==null?u.children:[],u.key,d),d.lanes=y,d.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},d}function Mq(u,d,y,E,R){this.tag=d,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ps(0),this.expirationTimes=ps(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ps(0),this.identifierPrefix=E,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function x1(u,d,y,E,R,D,ee,fe,me){return u=new Mq(u,d,y,fe,me),d===1?(d=1,D===!0&&(d|=8)):d=0,D=Di(3,null,null,d),u.current=D,D.stateNode=u,D.memoizedState={element:E,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},M_(D),u}function Lq(u,d,y){var E=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),C1.exports=Kq(),C1.exports}var k3;function Yq(){if(k3)return rg;k3=1;var e=K8();return rg.createRoot=e.createRoot,rg.hydrateRoot=e.hydrateRoot,rg}var Zq=Yq(),I=z0();const Z=Nt(I);var A1={exports:{}},k1={};/** + * @license React + * use-sync-external-store-with-selector.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var R3;function Xq(){if(R3)return k1;R3=1;var e=z0();function t(c,l){return c===l&&(c!==0||1/c===1/l)||c!==c&&l!==l}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,s=e.useDebugValue;return k1.useSyncExternalStoreWithSelector=function(c,l,h,p,v){var b=i(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=o(function(){function w(A){if(!S){if(S=!0,P=A,A=p(A),v!==void 0&&x.hasValue){var j=x.value;if(v(j,A))return C=j}return C=A}if(j=C,r(P,A))return j;var N=p(A);return v!==void 0&&v(j,N)?(P=A,j):(P=A,C=N)}var S=!1,P,C,T=h===void 0?null:h;return[function(){return w(l())},T===null?void 0:function(){return w(T())}]},[l,h,p,v]);var _=n(c,b[0],b[1]);return a(function(){x.hasValue=!0,x.value=_},[_]),s(_),_},k1}var N3;function Qq(){return N3||(N3=1,A1.exports=Xq()),A1.exports}Qq();var Jq=I.version.startsWith("19"),eH=Symbol.for(Jq?"react.transitional.element":"react.element"),tH=Symbol.for("react.portal"),rH=Symbol.for("react.fragment"),nH=Symbol.for("react.strict_mode"),iH=Symbol.for("react.profiler"),aH=Symbol.for("react.consumer"),oH=Symbol.for("react.context"),Y8=Symbol.for("react.forward_ref"),sH=Symbol.for("react.suspense"),lH=Symbol.for("react.suspense_list"),QC=Symbol.for("react.memo"),uH=Symbol.for("react.lazy"),cH=Y8,fH=QC;function dH(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case eH:switch(e=e.type,e){case rH:case iH:case nH:case sH:case lH:return e;default:switch(e=e&&e.$$typeof,e){case oH:case Y8:case uH:case QC:return e;case aH:return e;default:return t}}case tH:return t}}}function hH(e){return dH(e)===QC}function pH(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,c,l,h,p,v;function b(P,C){return c=P,l=C,h=e(c,l),p=t(n,l),v=r(h,p,l),s=!0,v}function x(){return h=e(c,l),t.dependsOnOwnProps&&(p=t(n,l)),v=r(h,p,l),v}function _(){return e.dependsOnOwnProps&&(h=e(c,l)),t.dependsOnOwnProps&&(p=t(n,l)),v=r(h,p,l),v}function w(){const P=e(c,l),C=!o(P,h);return h=P,C&&(v=r(h,p,l)),v}function S(P,C){const T=!a(C,l),A=!i(P,c,C,l);return c=P,l=C,T&&A?x():T?_():A?w():v}return function(C,T){return s?S(C,T):b(C,T)}}function mH(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const a=t(e,i),o=r(e,i),s=n(e,i);return pH(a,o,s,e,i)}function vH(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...a)=>t(i(...a)))}return r}function _O(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function M3(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Z8(e,t){return function(n,{displayName:i}){const a=function(s,c){return a.dependsOnOwnProps?a.mapToProps(s,c):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,c){a.mapToProps=e,a.dependsOnOwnProps=M3(e);let l=a(s,c);return typeof l=="function"&&(a.mapToProps=l,a.dependsOnOwnProps=M3(l),l=a(s,c)),l},a}}function JC(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function gH(e){return e&&typeof e=="object"?_O(t=>vH(e,t)):e?typeof e=="function"?Z8(e):JC(e,"mapDispatchToProps"):_O(t=>({dispatch:t}))}function yH(e){return e?typeof e=="function"?Z8(e):JC(e,"mapStateToProps"):_O(()=>({}))}function bH(e,t,r){return{...r,...e,...t}}function _H(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(c,l,h){const p=e(c,l,h);return a?i(p,o)||(o=p):(a=!0,o=p),o}}}function xH(e){return e?typeof e=="function"?_H(e):JC(e,"mergeProps"):()=>bH}function wH(e){e()}function SH(){let e=null,t=null;return{clear(){e=null,t=null},notify(){wH(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var L3={notify(){},get:()=>[]};function X8(e,t){let r,n=L3,i=0,a=!1;function o(_){h();const w=n.subscribe(_);let S=!1;return()=>{S||(S=!0,w(),p())}}function s(){n.notify()}function c(){x.onStateChange&&x.onStateChange()}function l(){return a}function h(){i++,r||(r=t?t.addNestedSub(c):e.subscribe(c),n=SH())}function p(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=L3)}function v(){a||(a=!0,h())}function b(){a&&(a=!1,p())}const x={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>n};return x}var OH=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PH=OH(),EH=()=>typeof navigator<"u"&&navigator.product==="ReactNative",CH=EH(),TH=()=>PH||CH?I.useLayoutEffect:I.useEffect,Gg=TH();function I3(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function R1(e,t){if(I3(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;ie(...t),r)}function BH(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function UH(e,t,r,n,i,a,o,s,c,l,h){if(!e)return()=>{};let p=!1,v=null;const b=()=>{if(p||!s.current)return;const _=t.getState();let w,S;try{w=n(_,i.current)}catch(P){S=P,v=P}S||(v=null),w===a.current?o.current||l():(a.current=w,c.current=w,o.current=!0,h())};return r.onStateChange=b,r.trySubscribe(),b(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,v)throw v}}function zH(e,t){return e===t}function VH(e,t,r,{pure:n,areStatesEqual:i=zH,areOwnPropsEqual:a=R1,areStatePropsEqual:o=R1,areMergedPropsEqual:s=R1,forwardRef:c=!1,context:l=J8}={}){const h=l,p=yH(e),v=gH(t),b=xH(r),x=!!e;return w=>{const S=w.displayName||w.name||"Component",P=`Connect(${S})`,C={shouldHandleStateChanges:x,displayName:P,wrappedComponentName:S,WrappedComponent:w,initMapStateToProps:p,initMapDispatchToProps:v,initMergeProps:b,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function T(N){const[F,V,B]=I.useMemo(()=>{const{reactReduxForwardedRef:ie,...he}=N;return[N.context,ie,he]},[N]),W=I.useMemo(()=>{let ie=h;return F!=null&&F.Consumer,ie},[F,h]),q=I.useContext(W),J=!!N.store&&!!N.store.getState&&!!N.store.dispatch,Q=!!q&&!!q.store,re=J?N.store:q.store,oe=Q?q.getServerState:re.getState,le=I.useMemo(()=>mH(re.dispatch,C),[re]),[ae,K]=I.useMemo(()=>{if(!x)return $H;const ie=X8(re,J?void 0:q.subscription),he=ie.notifyNestedSubs.bind(ie);return[ie,he]},[re,J,q]),G=I.useMemo(()=>J?q:{...q,subscription:ae},[J,q,ae]),z=I.useRef(void 0),ne=I.useRef(B),X=I.useRef(void 0),se=I.useRef(!1),ce=I.useRef(!1),de=I.useRef(void 0);Gg(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const be=I.useMemo(()=>()=>X.current&&B===ne.current?X.current:le(re.getState(),B),[re,B]),M=I.useMemo(()=>he=>ae?UH(x,re,ae,le,ne,z,se,ce,X,K,he):()=>{},[ae]);FH(BH,[ne,z,se,B,X,K]);let $;try{$=I.useSyncExternalStore(M,be,oe?()=>le(oe(),B):be)}catch(ie){throw de.current&&(ie.message+=` +The error may be correlated with this previous error: +${de.current.stack} + +`),ie}Gg(()=>{de.current=void 0,X.current=void 0,z.current=$});const Y=I.useMemo(()=>I.createElement(w,{...$,ref:V}),[V,w,$]);return I.useMemo(()=>x?I.createElement(W.Provider,{value:G},Y):Y,[W,Y,G])}const j=I.memo(T);if(j.WrappedComponent=w,j.displayName=T.displayName=P,c){const F=I.forwardRef(function(B,W){return I.createElement(j,{...B,reactReduxForwardedRef:W})});return F.displayName=P,F.WrappedComponent=w,xO(F,w)}return xO(j,w)}}var e$=VH;function WH(e){const{children:t,context:r,serverState:n,store:i}=e,a=I.useMemo(()=>{const c=X8(i);return{store:i,subscription:c,getServerState:n?()=>n:void 0}},[i,n]),o=I.useMemo(()=>i.getState(),[i]);Gg(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),o!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,o]);const s=r||J8;return I.createElement(s.Provider,{value:a},t)}var t$=WH,gh={},B3;function qH(){if(B3)return gh;B3=1,Object.defineProperty(gh,"__esModule",{value:!0}),gh.parse=o,gh.serialize=l;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function o(v,b){const x=new a,_=v.length;if(_<2)return x;const w=(b==null?void 0:b.decode)||h;let S=0;do{const P=v.indexOf("=",S);if(P===-1)break;const C=v.indexOf(";",S),T=C===-1?_:C;if(P>T){S=v.lastIndexOf(";",P-1)+1;continue}const A=s(v,S,P),j=c(v,P,A),N=v.slice(A,j);if(x[N]===void 0){let F=s(v,P+1,T),V=c(v,T,F);const B=w(v.slice(F,V));x[N]=B}S=T+1}while(S<_);return x}function s(v,b,x){do{const _=v.charCodeAt(b);if(_!==32&&_!==9)return b}while(++bx;){const _=v.charCodeAt(--b);if(_!==32&&_!==9)return b+1}return x}function l(v,b,x){const _=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const w=_(b);if(!t.test(w))throw new TypeError(`argument val is invalid: ${b}`);let S=v+"="+w;if(!x)return S;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);S+="; Max-Age="+x.maxAge}if(x.domain){if(!r.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);S+="; Domain="+x.domain}if(x.path){if(!n.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);S+="; Path="+x.path}if(x.expires){if(!p(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);S+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(S+="; HttpOnly"),x.secure&&(S+="; Secure"),x.partitioned&&(S+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"none":S+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return S}function h(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function p(v){return i.call(v)==="[object Date]"}return gh}qH();/** + * react-router v7.1.5 + * + * 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 U3="popstate";function HH(e={}){function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return wO("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:dp(i)}return KH(t,r,null,e)}function lr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GH(){return Math.random().toString(36).substring(2,10)}function z3(e,t){return{usr:e.state,key:e.key,idx:t}}function wO(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ad(t):t,state:r,key:t&&t.key||n||GH()}}function dp({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ad(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function KH(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s="POP",c=null,l=h();l==null&&(l=0,o.replaceState({...o.state,idx:l},""));function h(){return(o.state||{idx:null}).idx}function p(){s="POP";let w=h(),S=w==null?null:w-l;l=w,c&&c({action:s,location:_.location,delta:S})}function v(w,S){s="PUSH";let P=wO(_.location,w,S);l=h()+1;let C=z3(P,l),T=_.createHref(P);try{o.pushState(C,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}a&&c&&c({action:s,location:_.location,delta:1})}function b(w,S){s="REPLACE";let P=wO(_.location,w,S);l=h();let C=z3(P,l),T=_.createHref(P);o.replaceState(C,"",T),a&&c&&c({action:s,location:_.location,delta:0})}function x(w){let S=i.location.origin!=="null"?i.location.origin:i.location.href,P=typeof w=="string"?w:dp(w);return P=P.replace(/ $/,"%20"),lr(S,`No window.location.(origin|href) available to create URL for href: ${P}`),new URL(P,S)}let _={get action(){return s},get location(){return e(i,o)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(U3,p),c=w,()=>{i.removeEventListener(U3,p),c=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let S=x(w);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:v,replace:b,go(w){return o.go(w)}};return _}function r$(e,t,r="/"){return YH(e,t,r,!1)}function YH(e,t,r,n){let i=typeof t=="string"?ad(t):t,a=ul(i.pathname||"/",r);if(a==null)return null;let o=n$(e);ZH(o);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};c.relativePath.startsWith("/")&&(lr(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length));let l=Bo([n,c.relativePath]),h=r.concat(c);a.children&&a.children.length>0&&(lr(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),n$(a.children,t,h,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:nG(l,a.index),routesMeta:h})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let c of i$(a.path))i(a,o,c)}),t}function i$(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=i$(n.join("/")),s=[];return s.push(...o.map(c=>c===""?a:[a,c].join("/"))),i&&s.push(...o),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function ZH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:iG(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var XH=/^:[\w-]+$/,QH=3,JH=2,eG=1,tG=10,rG=-2,V3=e=>e==="*";function nG(e,t){let r=e.split("/"),n=r.length;return r.some(V3)&&(n+=rG),t&&(n+=JH),r.filter(i=>!V3(i)).reduce((i,a)=>i+(XH.test(a)?QH:a===""?eG:tG),n)}function iG(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function aG(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s{if(h==="*"){let x=s[v]||"";o=a.slice(0,a.length-x.length).replace(/(.)\/+$/,"$1")}const b=s[v];return p&&!b?l[h]=void 0:l[h]=(b||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:o,pattern:e}}function oG(e,t=!1,r=!0){xa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function sG(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ul(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function lG(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?ad(e):e;return{pathname:r?r.startsWith("/")?r:uG(r,t):t,search:dG(n),hash:hG(i)}}function uG(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function L1(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function cG(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function eT(e){let t=cG(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function tT(e,t,r,n=!1){let i;typeof e=="string"?i=ad(e):(i={...e},lr(!i.pathname||!i.pathname.includes("?"),L1("?","pathname","search",i)),lr(!i.pathname||!i.pathname.includes("#"),L1("#","pathname","hash",i)),lr(!i.search||!i.search.includes("#"),L1("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let p=t.length-1;if(!n&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}s=p>=0?t[p]:"/"}let c=lG(i,s),l=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||h)&&(c.pathname+="/"),c}var Bo=e=>e.join("/").replace(/\/\/+/g,"/"),fG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var a$=["POST","PUT","PATCH","DELETE"];new Set(a$);var mG=["GET",...a$];new Set(mG);var od=I.createContext(null);od.displayName="DataRouter";var V0=I.createContext(null);V0.displayName="DataRouterState";var o$=I.createContext({isTransitioning:!1});o$.displayName="ViewTransition";var vG=I.createContext(new Map);vG.displayName="Fetchers";var gG=I.createContext(null);gG.displayName="Await";var Oa=I.createContext(null);Oa.displayName="Navigation";var fm=I.createContext(null);fm.displayName="Location";var Pa=I.createContext({outlet:null,matches:[],isDataRoute:!1});Pa.displayName="Route";var rT=I.createContext(null);rT.displayName="RouteError";function yG(e,{relative:t}={}){lr(Vu(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=I.useContext(Oa),{hash:i,pathname:a,search:o}=dm(e,{relative:t}),s=a;return r!=="/"&&(s=a==="/"?r:Bo([r,a])),n.createHref({pathname:s,search:o,hash:i})}function Vu(){return I.useContext(fm)!=null}function bn(){return lr(Vu(),"useLocation() may be used only in the context of a component."),I.useContext(fm).location}var s$="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function l$(e){I.useContext(Oa).static||I.useLayoutEffect(e)}function lo(){let{isDataRoute:e}=I.useContext(Pa);return e?kG():bG()}function bG(){lr(Vu(),"useNavigate() may be used only in the context of a component.");let e=I.useContext(od),{basename:t,navigator:r}=I.useContext(Oa),{matches:n}=I.useContext(Pa),{pathname:i}=bn(),a=JSON.stringify(eT(n)),o=I.useRef(!1);return l$(()=>{o.current=!0}),I.useCallback((c,l={})=>{if(xa(o.current,s$),!o.current)return;if(typeof c=="number"){r.go(c);return}let h=tT(c,JSON.parse(a),i,l.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Bo([t,h.pathname])),(l.replace?r.replace:r.push)(h,l.state,l)},[t,r,a,i,e])}I.createContext(null);function sd(){let{matches:e}=I.useContext(Pa),t=e[e.length-1];return t?t.params:{}}function dm(e,{relative:t}={}){let{matches:r}=I.useContext(Pa),{pathname:n}=bn(),i=JSON.stringify(eT(r));return I.useMemo(()=>tT(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function _G(e,t){return u$(e,t)}function u$(e,t,r,n){var P;lr(Vu(),"useRoutes() may be used only in the context of a component.");let{navigator:i,static:a}=I.useContext(Oa),{matches:o}=I.useContext(Pa),s=o[o.length-1],c=s?s.params:{},l=s?s.pathname:"/",h=s?s.pathnameBase:"/",p=s&&s.route;{let C=p&&p.path||"";c$(l,!p||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${l}" (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 v=bn(),b;if(t){let C=typeof t=="string"?ad(t):t;lr(h==="/"||((P=C.pathname)==null?void 0:P.startsWith(h)),`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 "${h}" but pathname "${C.pathname}" was given in the \`location\` prop.`),b=C}else b=v;let x=b.pathname||"/",_=x;if(h!=="/"){let C=h.replace(/^\//,"").split("/");_="/"+x.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=!a&&r&&r.matches&&r.matches.length>0?r.matches:r$(e,{pathname:_});xa(p||w!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),xa(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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 S=PG(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Bo([h,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?h:Bo([h,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,r,n);return t&&S?I.createElement(fm.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},S):S}function xG(){let e=AG(),t=pG(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=I.createElement(I.Fragment,null,I.createElement("p",null,"💿 Hey developer 👋"),I.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I.createElement("code",{style:a},"ErrorBoundary")," or"," ",I.createElement("code",{style:a},"errorElement")," prop on your route.")),I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),r?I.createElement("pre",{style:i},r):null,o)}var wG=I.createElement(xG,null),SG=class extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?I.createElement(Pa.Provider,{value:this.props.routeContext},I.createElement(rT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function OG({routeContext:e,match:t,children:r}){let n=I.useContext(od);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(Pa.Provider,{value:e},r)}function PG(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r==null?void 0:r.errors;if(a!=null){let c=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id])!==void 0);lr(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let o=!1,s=-1;if(r)for(let c=0;c=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((c,l,h)=>{let p,v=!1,b=null,x=null;r&&(p=a&&l.route.id?a[l.route.id]:void 0,b=l.route.errorElement||wG,o&&(s<0&&h===0?(c$("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,x=null):s===h&&(v=!0,x=l.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,h+1)),w=()=>{let S;return p?S=b:v?S=x:l.route.Component?S=I.createElement(l.route.Component,null):l.route.element?S=l.route.element:S=c,I.createElement(OG,{match:l,routeContext:{outlet:c,matches:_,isDataRoute:r!=null},children:S})};return r&&(l.route.ErrorBoundary||l.route.errorElement||h===0)?I.createElement(SG,{location:r.location,revalidation:r.revalidation,component:b,error:p,children:w(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):w()},null)}function nT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function EG(e){let t=I.useContext(od);return lr(t,nT(e)),t}function CG(e){let t=I.useContext(V0);return lr(t,nT(e)),t}function TG(e){let t=I.useContext(Pa);return lr(t,nT(e)),t}function iT(e){let t=TG(e),r=t.matches[t.matches.length-1];return lr(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function jG(){return iT("useRouteId")}function AG(){var n;let e=I.useContext(rT),t=CG("useRouteError"),r=iT("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function kG(){let{router:e}=EG("useNavigate"),t=iT("useNavigate"),r=I.useRef(!1);return l$(()=>{r.current=!0}),I.useCallback(async(i,a={})=>{xa(r.current,s$),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var W3={};function c$(e,t,r){!t&&!W3[e]&&(W3[e]=!0,xa(!1,r))}I.memo(RG);function RG({routes:e,future:t,state:r}){return u$(e,void 0,r,t)}function aT({to:e,replace:t,state:r,relative:n}){lr(Vu()," may be used only in the context of a component.");let{static:i}=I.useContext(Oa);xa(!i," 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:a}=I.useContext(Pa),{pathname:o}=bn(),s=lo(),c=tT(e,eT(a),o,n==="path"),l=JSON.stringify(c);return I.useEffect(()=>{s(JSON.parse(l),{replace:t,state:r,relative:n})},[s,l,n,t,r]),null}function Pt(e){lr(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function NG({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1}){lr(!Vu(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),s=I.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof r=="string"&&(r=ad(r));let{pathname:c="/",search:l="",hash:h="",state:p=null,key:v="default"}=r,b=I.useMemo(()=>{let x=ul(c,o);return x==null?null:{location:{pathname:x,search:l,hash:h,state:p,key:v},navigationType:n}},[o,c,l,h,p,v,n]);return xa(b!=null,` is not able to match the URL "${c}${l}${h}" because it does not start with the basename, so the won't render anything.`),b==null?null:I.createElement(Oa.Provider,{value:s},I.createElement(fm.Provider,{children:t,value:b}))}function W0({children:e,location:t}){return _G(SO(e),t)}function SO(e,t=[]){let r=[];return I.Children.forEach(e,(n,i)=>{if(!I.isValidElement(n))return;let a=[...t,i];if(n.type===I.Fragment){r.push.apply(r,SO(n.props.children,a));return}lr(n.type===Pt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),lr(!n.props.index||!n.props.children,"An index route cannot have child routes.");let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=SO(n.props.children,a)),r.push(o)}),r}var Ng="get",Mg="application/x-www-form-urlencoded";function q0(e){return e!=null&&typeof e.tagName=="string"}function MG(e){return q0(e)&&e.tagName.toLowerCase()==="button"}function LG(e){return q0(e)&&e.tagName.toLowerCase()==="form"}function IG(e){return q0(e)&&e.tagName.toLowerCase()==="input"}function DG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $G(e,t){return e.button===0&&(!t||t==="_self")&&!DG(e)}var ng=null;function FG(){if(ng===null)try{new FormData(document.createElement("form"),0),ng=!1}catch{ng=!0}return ng}var BG=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function I1(e){return e!=null&&!BG.has(e)?(xa(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Mg}"`),null):e}function UG(e,t){let r,n,i,a,o;if(LG(e)){let s=e.getAttribute("action");n=s?ul(s,t):null,r=e.getAttribute("method")||Ng,i=I1(e.getAttribute("enctype"))||Mg,a=new FormData(e)}else if(MG(e)||IG(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a