vendor: 11,769 bytes, line 1
1function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var he={exports:{}},v={};var Le;function st(){if(Le)return v;Le=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),o=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),y=Symbol.iterator;function C(i){return i===null||typeof i!="object"?null:(i=y&&i[y]||i["@@iterator"],typeof i=="function"?i:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function w(i,p,S){this.props=i,this.context=p,this.refs=m,this.updater=S||E}w.prototype.isReactComponent={},w.prototype.setState=function(i,p){if(typeof i!="object"&&typeof i!="function"&&i!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,i,p,"setState")},w.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function _(){}_.prototype=w.prototype;function x(i,p,S){this.props=i,this.context=p,this.refs=m,this.updater=S||E}var $=x.prototype=new _;$.constructor=x,g($,w.prototype),$.isPureReactComponent=!0;var k=Array.isArray;function I(){}var P={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function Y(i,p,S){var R=S.ref;return{$$typeof:e,type:i,key:p,ref:R!==void 0?R:null,props:S}}function X(i,p){return Y(i.type,p,i.props)}function Q(i){return typeof i=="object"&&i!==null&&i.$$typeof===e}function de(i){var p={"=":"=0",":":"=2"};return"$"+i.replace(/[=:]/g,function(S){return p[S]})}var Z=/\/+/g;function q(i,p){return typeof i=="object"&&i!==null&&i.key!=null?de(""+i.key):p.toString(36)}function H(i){switch(i.status){case"fulfilled":return i.value;case"rejected":throw i.reason;default:switch(typeof i.status=="string"?i.then(I,I):(i.status="pending",i.then(function(p){i.status==="pending"&&(i.status="fulfilled",i.value=p)},function(p){i.status==="pending"&&(i.status="rejected",i.reason=p)})),i.status){case"fulfilled":return i.value;case"rejected":throw i.reason}}throw i}function K(i,p,S,R,b){var T=typeof i;(T==="undefined"||T==="boolean")&&(i=null);var L=!1;if(i===null)L=!0;else switch(T){case"bigint":case"string":case"number":L=!0;break;case"object":switch(i.$$typeof){case e:case t:L=!0;break;case d:return L=i._init,K(L(i._payload),p,S,R,b)}}if(L)return b=b(i),L=R===""?"."+q(i,0):R,k(b)?(S="",L!=null&&(S=L.replace(Z,"$&/")+"/"),K(b,p,S,"",function(ut){return ut})):b!=null&&(Q(b)&&(b=X(b,S+(b.key==null||i&&i.key===b.key?"":(""+b.key).replace(Z,"$&/")+"/")+L)),p.push(b)),1;L=0;var F=R===""?".":R+":";if(k(i))for(var N=0;N<i.length;N++)R=i[N],T=F+q(R,N),L+=K(R,p,S,T,b);else if(N=C(i),typeof N=="function")for(i=N.call(i),N=0;!(R=i.next()).done;)R=R.value,T=F+q(R,N++),L+=K(R,p,S,T,b);else if(T==="object"){if(typeof i.then=="function")return K(H(i),p,S,R,b);throw p=String(i),Error("Objects are not valid as a React child (found: "+(p==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":p)+"). If you meant to render a collection of children, use an array instead.")}return L}function ae(i,p,S){if(i==null)return i;var R=[],b=0;return K(i,R,"","",function(T){return p.call(S,T,b++)}),R}function ot(i){if(i._status===-1){var p=i._result;p=p(),p.then(function(S){(i._status===0||i._status===-1)&&(i._status=1,i._result=S)},function(S){(i._status===0||i._status===-1)&&(i._status=2,i._result=S)}),i._status===-1&&(i._status=0,i._result=p)}if(i._status===1)return i._result.default;throw i._result}var Te=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},it={map:ae,forEach:function(i,p,S){ae(i,function(){p.apply(this,arguments)},S)},count:function(i){var p=0;return ae(i,function(){p++}),p},toArray:function(i){return ae(i,function(p){return p})||[]},only:function(i){if(!Q(i))throw Error("React.Children.only expected to receive a single React element child.");return i}};return v.Activity=h,v.Children=it,v.Component=w,v.Fragment=r,v.Profiler=a,v.PureComponent=x,v.StrictMode=n,v.Suspense=l,v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,v.__COMPILER_RUNTIME={__proto__:null,c:function(i){return P.H.useMemoCache(i)}},v.cache=function(i){return function(){return i.apply(null,arguments)}},v.cacheSignal=function(){return null},v.cloneElement=function(i,p,S){if(i==null)throw Error("The argument must be a React element, but you passed "+i+".");var R=g({},i.props),b=i.key;if(p!=null)for(T in p.key!==void 0&&(b=""+p.key),p)!W.call(p,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&p.ref===void 0||(R[T]=p[T]);var T=arguments.length-2;if(T===1)R.children=S;else if(1<T){for(var L=Array(T),F=0;F<T;F++)L[F]=arguments[F+2];R.children=L}return Y(i.type,b,R)},v.createContext=function(i){return i={$$typeof:s,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null},i.Provider=i,i.Consumer={$$typeof:u,_context:i},i},v.createElement=function(i,p,S){var R,b={},T=null;if(p!=null)for(R in p.key!==void 0&&(T=""+p.key),p)W.call(p,R)&&R!=="key"&&R!=="__self"&&R!=="__source"&&(b[R]=p[R]);var L=arguments.length-2;if(L===1)b.children=S;else if(1<L){for(var F=Array(L),N=0;N<L;N++)F[N]=arguments[N+2];b.children=F}if(i&&i.defaultProps)for(R in L=i.defaultProps,L)b[R]===void 0&&(b[R]=L[R]);return Y(i,T,b)},v.createRef=function(){return{current:null}},v.forwardRef=function(i){return{$$typeof:f,render:i}},v.isValidElement=Q,v.lazy=function(i){return{$$typeof:d,_payload:{_status:-1,_result:i},_init:ot}},v.memo=function(i,p){return{$$typeof:o,type:i,compare:p===void 0?null:p}},v.startTransition=function(i){var p=P.T,S={};P.T=S;try{var R=i(),b=P.S;b!==null&&b(S,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(I,Te)}catch(T){Te(T)}finally{p!==null&&S.types!==null&&(p.types=S.types),P.T=p}},v.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},v.use=function(i){return P.H.use(i)},v.useActionState=function(i,p,S){return P.H.useActionState(i,p,S)},v.useCallback=function(i,p){return P.H.useCallback(i,p)},v.useContext=function(i){return P.H.useContext(i)},v.useDebugValue=function(){},v.useDeferredValue=function(i,p){return P.H.useDeferredValue(i,p)},v.useEffect=function(i,p){return P.H.useEffect(i,p)},v.useEffectEvent=function(i){return P.H.useEffectEvent(i)},v.useId=function(){return P.H.useId()},v.useImperativeHandle=function(i,p,S){return P.H.useImperativeHandle(i,p,S)},v.useInsertionEffect=function(i,p){return P.H.useInsertionEffect(i,p)},v.useLayoutEffect=function(i,p){return P.H.useLayoutEffect(i,p)},v.useMemo=function(i,p){return P.H.useMemo(i,p)},v.useOptimistic=function(i,p){return P.H.useOptimistic(i,p)},v.useReducer=function(i,p,S){return P.H.useReducer(i,p,S)},v.useRef=function(i){return P.H.useRef(i)},v.useState=function(i){return P.H.useState(i)},v.useSyncExternalStore=function(i,p,S){return P.H.useSyncExternalStore(i,p,S)},v.useTransition=function(){return P.H.useTransition()},v.version="19.2.4",v}var Oe;function Fe(){return Oe||(Oe=1,he.exports=st()),he.exports}var c=Fe();const Br=lt(c);var pe={exports:{}},A={};var ke;function ct(){if(ke)return A;ke=1;var e=Fe();function t(l){var o="https://react.dev/errors/"+l;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)o+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function u(l,o,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:l,containerInfo:o,implementation:d}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(l,o){if(l==="font")return"";if(typeof o=="string")return o==="use-credentials"?o:""}return A.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,A.createPortal=function(l,o){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)throw Error(t(299));return u(l,o,null,d)},A.flushSync=function(l){var o=s.T,d=n.p;try{if(s.T=null,n.p=2,l)return l()}finally{s.T=o,n.p=d,n.d.f()}},A.preconnect=function(l,o){typeof l=="string"&&(o?(o=o.crossOrigin,o=typeof o=="string"?o==="use-credentials"?o:"":void 0):o=null,n.d.C(l,o))},A.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},A.preinit=function(l,o){if(typeof l=="string"&&o&&typeof o.as=="string"){var d=o.as,h=f(d,o.crossOrigin),y=typeof o.integrity=="string"?o.integrity:void 0,C=typeof o.fetchPriority=="string"?o.fetchPriority:void 0;d==="style"?n.d.S(l,typeof o.precedence=="string"?o.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:C}):d==="script"&&n.d.X(l,{crossOrigin:h,integrity:y,fetchPriority:C,nonce:typeof o.nonce=="string"?o.nonce:void 0})}},A.preinitModule=function(l,o){if(typeof l=="string")if(typeof o=="object"&&o!==null){if(o.as==null||o.as==="script"){var d=f(o.as,o.crossOrigin);n.d.M(l,{crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0})}}else o==null&&n.d.M(l)},A.preload=function(l,o){if(typeof l=="string"&&typeof o=="object"&&o!==null&&typeof o.as=="string"){var d=o.as,h=f(d,o.crossOrigin);n.d.L(l,d,{crossOrigin:h,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0,type:typeof o.type=="string"?o.type:void 0,fetchPriority:typeof o.fetchPriority=="string"?o.fetchPriority:void 0,referrerPolicy:typeof o.referrerPolicy=="string"?o.referrerPolicy:void 0,imageSrcSet:typeof o.imageSrcSet=="string"?o.imageSrcSet:void 0,imageSizes:typeof o.imageSizes=="string"?o.imageSizes:void 0,media:typeof o.media=="string"?o.media:void 0})}},A.preloadModule=function(l,o){if(typeof l=="string")if(o){var d=f(o.as,o.crossOrigin);n.d.m(l,{as:typeof o.as=="string"&&o.as!=="script"?o.as:void 0,crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0})}else n.d.m(l)},A.requestFormReset=function(l){n.d.r(l)},A.unstable_batchedUpdates=function(l,o){return l(o)},A.useFormState=function(l,o,d){return s.H.useFormState(l,o,d)},A.useFormStatus=function(){return s.H.useHostTransitionStatus()},A.version="19.2.4",A}var $e;function jr(){if($e)return pe.exports;$e=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),pe.exports=ct(),pe.exports}var Ae="popstate";function Ne(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function ft(e={}){function t(n,a){let u=a.state?.masked,{pathname:s,search:f,hash:l}=u||n.location;return ve("",{pathname:s,search:f,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default",u?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}
1function r(n,a){return typeof a=="string"?a:te(a)}return ht(t,r,null,e)}function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function M(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function dt(){return Math.random().toString(36).substring(2,10)}function De(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ve(e,t,r=null,n,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?G(t):t,state:r,key:t&&t.key||n||dt(),unstable_mask:a}}function te({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 G(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 ht(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:u=!1}=n,s=a.history,f="POP",l=null,o=d();o==null&&(o=0,s.replaceState({...s.state,idx:o},""));function d(){return(s.state||{idx:null}).idx}function h(){f="POP";let m=d(),w=m==null?null:m-o;o=m,l&&l({action:f,location:g.location,delta:w})}function y(m,w){f="PUSH";let _=Ne(m)?m:ve(g.location,m,w);o=d()+1;let x=De(_,o),$=g.createHref(_.unstable_mask||_);try{s.pushState(x,"",$)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;a.location.assign($)}u&&l&&l({action:f,location:g.location,delta:1})}function C(m,w){f="REPLACE";let _=Ne(m)?m:ve(g.location,m,w);o=d();let x=De(_,o),$=g.createHref(_.unstable_mask||_);s.replaceState(x,"",$),u&&l&&l({action:f,location:g.location,delta:0})}function E(m){return pt(m)}let g={get action(){return f},get location(){return e(a,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Ae,h),l=m,()=>{a.removeEventListener(Ae,h),l=null}},createHref(m){return t(a,m)},createURL:E,encodeLocation(m){let w=E(m);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:y,replace:C,go(m){return s.go(m)}};return g}function pt(e,t=!1){let r="http://localhost";
1typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),O(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:te(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function Be(e,t,r="/"){return mt(e,t,r,!1)}function mt(e,t,r,n){let a=typeof t=="string"?G(t):t,u=z(a.pathname||"/",r);if(u==null)return null;let s=je(e);yt(s);let f=null;for(let l=0;f==null&&l<s.length;++l){let o=bt(u);f=xt(s[l],o,n)}return f}function je(e,t=[],r=[],n="",a=!1){let u=(s,f,l=a,o)=>{let d={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:f,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(n)&&l)return;O(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length)}let h=B([n,d.relativePath]),y=r.concat(d);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),je(s.children,t,y,h,l)),!(s.path==null&&!s.index)&&t.push({path:h,score:Ct(h,s.index),routesMeta:y})};return e.forEach((s,f)=>{if(s.path===""||!s.path?.includes("?"))u(s,f);else for(let l of We(s.path))u(s,f,!0,l)}),t}function We(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),u=r.replace(/\?$/,"");if(n.length===0)return a?[u,""]:[u];let s=We(n.join("/")),f=[];return f.push(...s.map(l=>l===""?u:[u,l].join("/"))),a&&f.push(...s),f.map(l=>e.startsWith("/")&&l===""?"/":l)}function yt(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:_t(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var gt=/^:[\w-]+$/,vt=3,Rt=2,Et=1,wt=10,St=-2,Ie=e=>e==="*";function Ct(e,t){let r=e.split("/"),n=r.length;return r.some(Ie)&&(n+=St),t&&(n+=Rt),r.filter(a=>!Ie(a)).reduce((a,u)=>a+(gt.test(u)?vt:u===""?Et:wt),n)}function _t(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function xt(e,t,r=!1){let{routesMeta:n}=e,a={},u="/",s=[];for(let f=0;f<n.length;++f){let l=n[f],o=f===n.length-1,d=u==="/"?t:t.slice(u.length)||"/",h=le({path:l.relativePath,caseSensitive:l.caseSensitive,end:o},d),y=l.route;if(!h&&o&&r&&!n[n.length-1].route.index&&(h=le({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
1Object.assign(a,h.params),s.push({params:a,pathname:B([u,h.pathname]),pathnameBase:kt(B([u,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(u=B([u,h.pathnameBase]))}return s}function le(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Pt(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let u=a[0],s=u.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:n.reduce((o,{paramName:d,isOptional:h},y)=>{if(d==="*"){let E=f[y]||"";s=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const C=f[y];return h&&!C?o[d]=void 0:o[d]=(C||"").replace(/%2F/g,"/"),o},{}),pathname:u,pathnameBase:s,pattern:e}}function Pt(e,t=!1,r=!0){M(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,f,l,o,d)=>{if(n.push({paramName:f,isOptional:l!=null}),l){let h=d.charAt(o+s.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function bt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return M(!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 z(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)||"/"}var Tt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Lt(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?G(e):e,u;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?u=Me(r.substring(1),"/"):u=Me(r,t)):u=t,{pathname:u,search:$t(n),hash:At(a)}}function Me(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function me(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 <Link to="..."> and the router will parse it for you.`}function Ot(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function we(e){let t=Ot(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function se(e,t,r,n=!1){let a;typeof e=="string"?a=G(e):(a={...e},O(!a.pathname||!a.pathname.includes("?"),me("?","pathname","search",a)),O(!a.pathname||!a.pathname.includes("#"),me("#","pathname","hash",a)),O(!a.search||!a.search.includes("#"),me("#","search","hash",a)));let u=e===""||a.pathname==="",s=u?"/":a.pathname,f;if(s==null)f=r;else{let h=t.length-1;if(!n&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),h-=1;a.pathname=y.join("/")}f=h>=0?t[h]:"/"}let l=Lt(a,f),o=s&&s!=="/"&&s.endsWith("/"),d=(u||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(o||d)&&(l.pathname+="/"),l}var B=e=>e.join("/").replace(/\/\/+/g,"/"),kt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$t=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,At=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Nt=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Dt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function It(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ye=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ze(e,t){let r=e;if(typeof r!="string"||!Tt.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,a=!1;if(Ye)try{let u=new URL(window.location.href),s=r.startsWith("//")?new URL(u.protocol+r):new URL(r),f=z(s.pathname,t);s.origin===u.origin&&f!=null?r=f+s.search+s.hash:a=!0}catch{M(!1,`<Link to="${r}">
1 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:a,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var qe=["POST","PUT","PATCH","DELETE"];new Set(qe);var Mt=["GET",...qe];new Set(Mt);var V=c.createContext(null);V.displayName="DataRouter";var ce=c.createContext(null);ce.displayName="DataRouterState";var Ut=c.createContext(!1),Ke=c.createContext({isTransitioning:!1});Ke.displayName="ViewTransition";var Ht=c.createContext(new Map);Ht.displayName="Fetchers";var Ft=c.createContext(null);Ft.displayName="Await";var D=c.createContext(null);D.displayName="Navigation";var re=c.createContext(null);re.displayName="Location";var U=c.createContext({outlet:null,matches:[],isDataRoute:!1});U.displayName="Route";var Se=c.createContext(null);Se.displayName="RouteError";var Ge="REACT_ROUTER_ERROR",Bt="REDIRECT",jt="ROUTE_ERROR_RESPONSE";function Wt(e){if(e.startsWith(`${Ge}:${Bt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Yt(e){if(e.startsWith(`${Ge}:${jt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Nt(t.status,t.statusText,t.data)}catch{}}function zt(e,{relative:t}={}){O(J(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=c.useContext(D),{hash:a,pathname:u,search:s}=ne(e,{relative:t}),f=u;return r!=="/"&&(f=u==="/"?r:B([r,u])),n.createHref({pathname:f,search:s,hash:a})}function J(){return c.useContext(re)!=null}function j(){return O(J(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(re).location}var Ve="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Je(e){c.useContext(D).static||c.useLayoutEffect(e)}function Ce(){let{isDataRoute:e}=c.useContext(U);return e?ar():qt()}function qt(){O(J(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(V),{basename:t,navigator:r}=c.useContext(D),{matches:n}=c.useContext(U),{pathname:a}=j(),u=JSON.stringify(we(n)),s=c.useRef(!1);return Je(()=>{s.current=!0}),c.useCallback((l,o={})=>{if(M(s.current,Ve),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=se(l,JSON.parse(u),a,o.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:B([t,d.pathname])),(o.replace?r.replace:r.push)(d,o.state,o)},[t,r,u,a,e])}c.createContext(null);function Wr(){let{matches:e}=c.useContext(U),t=e[e.length-1];return t?t.params:{}}function ne(e,{relative:t}={}){let{matches:r}=c.useContext(U),{pathname:n}=j(),a=JSON.stringify(we(r));return c.useMemo(()=>se(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function Kt(e,t){return Xe(e,t)}function Xe(e,t,r){O(J(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=c.useContext(D),{matches:a}=c.useContext(U),u=a[a.length-1],s=u?u.params:{},f=u?u.pathname:"/",l=u?u.pathnameBase:"/",o=u&&u.route;{let m=o&&o.path||"";Ze(f,!o||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${m}">) 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. 2 3Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let d=j(),h;if(t){let m=typeof t=="string"?G(t):t;O(l==="/"||m.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` 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 "${l}" but pathname "${m.pathname}" was given in the \`location\` prop.`),h=m}else h=d;let y=h.pathname||"/",C=y;if(l!=="/"){let m=l.replace(/^\//,"").split("/");C="/"+y.replace(/^\//,"").split("/").slice(m.length).join("/")}let E=Be(e,{pathname:C});M(o||E!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),M(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=Qt(E&&E.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:B([l,n.encodeLocation?n.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:B([l,n.encodeLocation?n.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),a,r);return t&&g?c.createElement(re.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...h},navigationType:"POP"}},g):g}function Gt(){let e=nr(),t=Dt(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)",a={padding:"0.5rem",backgroundColor:n},u={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=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:u},"ErrorBoundary")," or"," ",c.createElement("code",{style:u},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application
3Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),r?c.createElement("pre",{style:a},r):null,s)}var Vt=c.createElement(Gt,null),Qe=class extends c.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){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=Yt(e.digest);r&&(e=r)}let t=e!==void 0?c.createElement(U.Provider,{value:this.props.routeContext},c.createElement(Se.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?c.createElement(Jt,{error:e},t):t}};Qe.contextType=Ut;var ye=new WeakMap;function Jt({children:e,error:t}){let{basename:r}=c.useContext(D);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=Wt(t.digest);if(n){let a=ye.get(t);if(a)throw a;let u=ze(n.location,r);if(Ye&&!ye.get(t))if(u.isExternal||n.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:n.replace}));throw ye.set(t,s),s}return c.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function Xt({routeContext:e,match:t,children:r}){let n=c.useContext(V);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(U.Provider,{value:e},r)}function Qt(e,t=[],r){let n=r?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,u=n?.errors;if(u!=null){let d=a.findIndex(h=>h.route.id&&u?.[h.route.id]!==void 0);O(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,f=-1;if(r&&n){s=n.renderFallback;for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){let{loaderData:y,errors:C}=n,E=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!C||C[h.route.id]===void 0);if(h.route.lazy||E){r.isStatic&&(s=!0),f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}}let l=r?.onError,o=n&&l?(d,h)=>{l(d,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:It(n.matches),errorInfo:h})}:void 0;return a.reduceRight((d,h,y)=>{let C,E=!1,g=null,m=null;n&&(C=u&&h.route.id?u[h.route.id]:void 0,g=h.route.errorElement||Vt,s&&(f<0&&y===0?(Ze("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,m=null):f===y&&(E=!0,m=h.route.hydrateFallbackElement||null)));let w=t.concat(a.slice(0,y+1)),_=()=>{let x;return C?x=g:E?x=m:h.route.Component?x=c.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=d,c.createElement(Xt,{match:h,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:x})};return n&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?c.createElement(Qe,{location:n.location,revalidation:n.revalidation,component:g,error:C,children:_(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:o}):_()},null)}function _e(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zt(e){let t=c.useContext(V);return O(t,_e(e)),t}function er(e){let t=c.useContext(ce);return O(t,_e(e)),t}function tr(e){let t=c.useContext(U);return O(t,_e(e)),t}function xe(e){let t=tr(e),r=t.matches[t.matches.length-1];return O(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function rr(){return xe("useRouteId")}function nr(){let e=c.useContext(Se),t=er("useRouteError"),r=xe("useRouteError");return e!==void 0?e:t.errors?.[r]}function ar(){let{router:e}=Zt("useNavigate"),t=xe("useNavigate"),r=c.useRef(!1);return Je(()=>{r.current=!0}),c.useCallback(async(a,u={})=>{M(r.current,Ve),r.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...u}))},[e,t])}var Ue={};function Ze(e,t,r){!t&&!Ue[e]&&(Ue[e]=!0,M(!1,r))}c.memo(or);function or({routes:e,future:t,state:r,isStatic:n,onError:a}){return Xe(e,void 0,{state:r,isStatic:n,onError:a})}function Yr({to:e,replace:t,state:r,relative:n}){O(J(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=c.useContext(D);M(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=c.useContext(U),{pathname:s}=j(),f=Ce(),l=se(e,we(u),s,n==="path"),o=JSON.stringify(l);return c.useEffect(()=>{f(JSON.parse(o),{replace:t,state:r,relative:n})},[f,o,n,t,r]),null}function ir(e){O(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ur({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:u=!1,unstable_useTransitions:s}){O(!J(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:f,navigator:a,static:u,unstable_useTransitions:s,future:{}}),[f,a,u,s]);typeof r=="string"&&(r=G(r));let{pathname:o="/",search:d="",hash:h="",state:y=null,key:C="default",unstable_mask:E}=r,g=c.useMemo(()=>{let m=z(o,f);return m==null?null:{location:{pathname:m,search:d,hash:h,state:y,key:C,unstable_mask:E},navigationType:n}},[f,o,d,h,y,C,n,E]);
3return M(g!=null,`<Router basename="${f}"> is not able to match the URL "${o}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:c.createElement(D.Provider,{value:l},c.createElement(re.Provider,{children:t,value:g}))}function zr({children:e,location:t}){return Kt(Re(e),t)}function Re(e,t=[]){let r=[];return c.Children.forEach(e,(n,a)=>{if(!c.isValidElement(n))return;let u=[...t,a];if(n.type===c.Fragment){r.push.apply(r,Re(n.props.children,u));return}O(n.type===ir,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||u.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,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&&(s.children=Re(n.props.children,u)),r.push(s)}),r}var ie="get",ue="application/x-www-form-urlencoded";function fe(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function lr(e){return fe(e)&&e.tagName.toLowerCase()==="button"}function sr(e){return fe(e)&&e.tagName.toLowerCase()==="form"}function cr(e){return fe(e)&&e.tagName.toLowerCase()==="input"}function fr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dr(e,t){return e.button===0&&(!t||t==="_self")&&!fr(e)}function Ee(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function hr(e,t){let r=Ee(e);return t&&t.forEach((n,a)=>{r.has(a)||t.getAll(a).forEach(u=>{r.append(a,u)})}),r}var oe=null;function pr(){if(oe===null)try{new FormData(document.createElement("form"),0),oe=!1}catch{oe=!0}return oe}var mr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ge(e){return e!=null&&!mr.has(e)?(M(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ue}"`),null):e}function yr(e,t){let r,n,a,u,s;if(sr(e)){let f=e.getAttribute("action");n=f?z(f,t):null,r=e.getAttribute("method")||ie,a=ge(e.getAttribute("enctype"))||ue,u=new FormData(e)}else if(lr(e)||cr(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||f.getAttribute("action");if(n=l?z(l,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||ie,a=ge(e.getAttribute("formenctype"))||ge(f.getAttribute("enctype"))||ue,u=new FormData(f,e),!pr()){let{name:o,type:d,value:h}=e;if(d==="image"){let y=o?`${o}.`:"";u.append(`${y}x`,"0"),u.append(`${y}y`,"0")}else o&&u.append(o,h)}}else{if(fe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ie,n=null,a=ue,s=e}return u&&a==="text/plain"&&(s=u,u=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:u,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gr(e,t,r,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${n}`:a.pathname=`${a.pathname}.${n}`:a.pathname==="/"?a.pathname=`_root.${n}`:t&&z(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${n}`,a}async function vr(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.
3isSpaMode,window.location.reload(),new Promise(()=>{})}}function Rr(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Er(e,t,r){let n=await Promise.all(e.map(async a=>{let u=t.routes[a.route.id];if(u){let s=await vr(u,r);return s.links?s.links():[]}return[]}));return _r(n.flat(1).filter(Rr).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function He(e,t,r,n,a,u){let s=(l,o)=>r[o]?l.route.id!==r[o].route.id:!0,f=(l,o)=>r[o].pathname!==l.pathname||r[o].route.path?.endsWith("*")&&r[o].params["*"]!==l.params["*"];return u==="assets"?t.filter((l,o)=>s(l,o)||f(l,o)):u==="data"?t.filter((l,o)=>{let d=n.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,o)||f(l,o))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function wr(e,t,{includeHydrateFallback:r}={}){return Sr(e.map(n=>{let a=t.routes[n.route.id];if(!a)return[];let u=[a.module];return a.clientActionModule&&(u=u.concat(a.clientActionModule)),a.clientLoaderModule&&(u=u.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(u=u.concat(a.hydrateFallbackModule)),a.imports&&(u=u.concat(a.imports)),u}).flat(1))}function Sr(e){return[...new Set(e)]}function Cr(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function _r(e,t){let r=new Set;return new Set(t),e.reduce((n,a)=>{let u=JSON.stringify(Cr(a));return r.has(u)||(r.add(u),n.push({key:u,link:a})),n},[])}function et(){let e=c.useContext(V);return Pe(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function xr(){let e=c.useContext(ce);return Pe(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var be=c.createContext(void 0);be.displayName="FrameworkContext";function tt(){let e=c.useContext(be);return Pe(e,"You must render this element inside a <HydratedRouter> element"),e}function Pr(e,t){let r=c.useContext(be),[n,a]=c.useState(!1),[u,s]=c.useState(!1),{onFocus:f,onBlur:l,onMouseEnter:o,onMouseLeave:d,onTouchStart:h}=t,y=c.useRef(null);c.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let g=w=>{w.forEach(_=>{s(_.isIntersecting)})},m=new IntersectionObserver(g,{threshold:.5});return y.current&&m.observe(y.current),()=>{m.disconnect()}}},[e]),c.useEffect(()=>{if(n){let g=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(g)}}},[n]);let C=()=>{a(!0)},E=()=>{a(!1),s(!1)};return r?e!=="intent"?[u,y,{}]:[u,y,{onFocus:ee(f,C),onBlur:ee(l,E),onMouseEnter:ee(o,C),onMouseLeave:ee(d,E),onTouchStart:ee(h,C)}]:[!1,y,{}]}function ee(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function br({page:e,...t}){let{router:r}=et(),n=c.useMemo(()=>Be(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?c.createElement(Lr,{page:e,matches:n,...t}):null}function Tr(e){let{manifest:t,routeModules:r}=tt(),[n,a]=c.useState([]);return c.useEffect(()=>{let u=!1;return Er(e,t,r).then(s=>{u||a(s)}),()=>{u=!0}},[e,t,r]),n}function Lr({page:e,matches:t,...r}){let n=j(),{future:a,manifest:u,routeModules:s}=tt(),{basename:f}=et(),{loaderData:l,matches:o}=xr(),d=c.useMemo(()=>He(e,t,o,u,n,"data"),[e,t,o,u,n]),h=c.useMemo(()=>He(e,t,o,u,n,"assets"),[e,t,o,u,n]),y=c.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let g=new Set,m=!1;if(t.forEach(_=>{let x=u.routes[_.route.id];!x||!x.hasLoader||(!d.some($=>$.route.id===_.route.id)&&_.route.id in l&&s[_.route.id]?.shouldRevalidate||x.hasClientLoader?m=!0:g.add(_.route.id))}),g.size===0)return[];let w=gr(e,f,a.unstable_trailingSlashAwareDataRequests,"data");return m&&g.size>0&&w.searchParams.set("_routes",t.filter(_=>g.has(_.route.id)).map(_=>_.route.id).join(",")),[w.pathname+w.search]},[f,a.unstable_trailingSlashAwareDataRequests,l,n,u,d,t,e,s]),C=c.useMemo(()=>wr(h,u),[h,u]),E=Tr(h);return c.createElement(c.Fragment,null,y.map(g=>c.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),C.map(g=>c.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),E.map(({key:g,link:m})=>c.createElement("link",{key:g,nonce:r.nonce,...m,crossOrigin:m.crossOrigin??r.crossOrigin})))}function Or(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var kr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kr&&(window.__reactRouterVersion="7.13.1")}catch{}
3function qr({basename:e,children:t,unstable_useTransitions:r,window:n}){let a=c.useRef();a.current==null&&(a.current=ft({window:n,v5Compat:!0}));let u=a.current,[s,f]=c.useState({action:u.action,location:u.location}),l=c.useCallback(o=>{r===!1?f(o):c.startTransition(()=>f(o))},[r]);return c.useLayoutEffect(()=>u.listen(l),[u,l]),c.createElement(ur,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:u,unstable_useTransitions:r})}var rt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nt=c.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:a,reloadDocument:u,replace:s,unstable_mask:f,state:l,target:o,to:d,preventScrollReset:h,viewTransition:y,unstable_defaultShouldRevalidate:C,...E},g){let{basename:m,navigator:w,unstable_useTransitions:_}=c.useContext(D),x=typeof d=="string"&&rt.test(d),$=ze(d,m);d=$.to;let k=zt(d,{relative:a}),I=j(),P=null;if(f){let H=se(f,[],I.unstable_mask?I.unstable_mask.pathname:"/",!0);m!=="/"&&(H.pathname=H.pathname==="/"?m:B([m,H.pathname])),P=w.createHref(H)}let[W,Y,X]=Pr(n,E),Q=Dr(d,{replace:s,unstable_mask:f,state:l,target:o,preventScrollReset:h,relative:a,viewTransition:y,unstable_defaultShouldRevalidate:C,unstable_useTransitions:_});function de(H){t&&t(H),H.defaultPrevented||Q(H)}let Z=!($.isExternal||u),q=c.createElement("a",{...E,...X,href:(Z?P:void 0)||$.absoluteURL||k,onClick:Z?de:t,ref:Or(g,Y),target:o,"data-discover":!x&&r==="render"?"true":void 0});return W&&!x?c.createElement(c.Fragment,null,q,c.createElement(br,{page:k})):q});nt.displayName="Link";var $r=c.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:a=!1,style:u,to:s,viewTransition:f,children:l,...o},d){let h=ne(s,{relative:o.relative}),y=j(),C=c.useContext(ce),{navigator:E,basename:g}=c.useContext(D),m=C!=null&&Fr(h)&&f===!0,w=E.encodeLocation?E.encodeLocation(h).pathname:h.pathname,_=y.pathname,x=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(_=_.toLowerCase(),x=x?x.toLowerCase():null,w=w.toLowerCase()),x&&g&&(x=z(x,g)||x);const $=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let k=_===w||!a&&_.startsWith(w)&&_.charAt($)==="/",I=x!=null&&(x===w||!a&&x.startsWith(w)&&x.charAt(w.length)==="/"),P={isActive:k,isPending:I,isTransitioning:m},W=k?t:void 0,Y;typeof n=="function"?Y=n(P):Y=[n,k?"active":null,I?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let X=typeof u=="function"?u(P):u;return c.createElement(nt,{...o,"aria-current":W,className:Y,ref:d,style:X,to:s,viewTransition:f},typeof l=="function"?l(P):l)});$r.displayName="NavLink";var Ar=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:u,method:s=ie,action:f,onSubmit:l,relative:o,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:y,...C},E)=>{let{unstable_useTransitions:g}=c.useContext(D),m=Ur(),w=Hr(f,{relative:o}),_=s.toLowerCase()==="get"?"get":"post",x=typeof f=="string"&&rt.test(f),$=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let I=k.nativeEvent.submitter,P=I?.getAttribute("formmethod")||s,W=()=>m(I||k.currentTarget,{fetcherKey:t,method:P,navigate:r,replace:a,state:u,relative:o,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:y});g&&r!==!1?c.startTransition(()=>W()):W()};return c.createElement("form",{ref:E,method:_,action:w,onSubmit:n?l:$,...C,"data-discover":!x&&e==="render"?"true":void 0})});Ar.displayName="Form";function Nr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function at(e){let t=c.useContext(V);return O(t,Nr(e)),t}function Dr(e,{target:t,replace:r,unstable_mask:n,state:a,preventScrollReset:u,relative:s,viewTransition:f,unstable_defaultShouldRevalidate:l,unstable_useTransitions:o}={}){let d=Ce(),h=j(),y=ne(e,{relative:s});return c.useCallback(C=>{if(dr(C,t)){C.preventDefault();let E=r!==void 0?r:te(h)===te(y),g=()=>d(e,{replace:E,unstable_mask:n,state:a,preventScrollReset:u,relative:s,viewTransition:f,unstable_defaultShouldRevalidate:l});o?c.startTransition(()=>g()):g()}},[h,d,y,r,n,a,t,e,u,s,f,l,o])}function Kr(e){M(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=c.useRef(Ee(e)),r=c.useRef(!1),n=j(),a=c.useMemo(()=>hr(n.search,r.current?null:t.current),[n.search]),u=Ce(),s=c.useCallback((f,l)=>{const o=Ee(typeof f=="function"?f(new URLSearchParams(a)):f);r.current=!0,u("?"+o,l)},[u,a]);return[a,s]}var Ir=0,Mr=()=>`__${String(++Ir)}__`;function Ur(){let{router:e}=at("useSubmit"),{basename:t}=c.useContext(D),r=rr(),n=e.fetch,a=e.navigate;return c.useCallback(async(u,s={})=>{let{action:f,method:l,encType:o,formData:d,body:h}=yr(u,t);if(s.navigate===!1){let y=s.fetcherKey||Mr();await n(y,r,s.action||f,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||o,flushSync:s.flushSync})}else await a(s.action||f,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||o,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,t,r])}function Hr(e,{relative:t}={}){let{basename:r}=c.useContext(D),n=c.useContext(U);O(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),u={...ne(e||".",{relative:t})},s=j();if(e==null){u.search=s.search;let f=new URLSearchParams(u.search),l=f.getAll("index");if(l.some(d=>d==="")){f.delete("index"),l.filter(h=>
3h).forEach(h=>f.append("index",h));let d=f.toString();u.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:B([r,u.pathname])),te(u)}function Fr(e,{relative:t}={}){let r=c.useContext(Ke);O(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=at("useViewTransitionState"),a=ne(e,{relative:t});if(!r.isTransitioning)return!1;let u=z(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=z(r.nextLocation.pathname,n)||r.nextLocation.pathname;return le(a.pathname,s)!=null||le(a.pathname,u)!=null}export{qr as B,nt as L,Yr as N,zr as R,Fe as a,jr as b,ir as c,Kr as d,Br as e,Wr as f,lt as g,c as r,j as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.