From 78e3667ca17c766d364017ebbe6a9dc841eeb11c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Sat, 19 Apr 2025 07:15:28 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20preview-env=20from=20@=20shlin?= =?UTF-8?q?kio/shlink-web-client@52cde329d7b45b3a40d6aad216fdb2980f66942b?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-Cq2oZrvF.js => index-B162MVEw.js} | 114 +++++++++--------- ...{index-BxaLdi7o.css => index-C9Iks7N8.css} | 2 +- .../npm_and_yarn/react-549425c6c9/index.html | 4 +- .../react-549425c6c9/service-worker.js | 2 +- 4 files changed, 61 insertions(+), 61 deletions(-) rename dependabot/npm_and_yarn/react-549425c6c9/assets/{index-Cq2oZrvF.js => index-B162MVEw.js} (85%) rename dependabot/npm_and_yarn/react-549425c6c9/assets/{index-BxaLdi7o.css => index-C9Iks7N8.css} (99%) diff --git a/dependabot/npm_and_yarn/react-549425c6c9/assets/index-Cq2oZrvF.js b/dependabot/npm_and_yarn/react-549425c6c9/assets/index-B162MVEw.js similarity index 85% rename from dependabot/npm_and_yarn/react-549425c6c9/assets/index-Cq2oZrvF.js rename to dependabot/npm_and_yarn/react-549425c6c9/assets/index-B162MVEw.js index 06edecdd..e7eae821 100644 --- a/dependabot/npm_and_yarn/react-549425c6c9/assets/index-Cq2oZrvF.js +++ b/dependabot/npm_and_yarn/react-549425c6c9/assets/index-B162MVEw.js @@ -59,7 +59,7 @@ The error may be correlated with this previous error: ${de.current.stack} `),X}Vy(()=>{de.current=void 0,Z.current=void 0,k.current=q});const ee=U.useMemo(()=>U.createElement(S,{...q,ref:W}),[W,S,q]);return U.useMemo(()=>_?U.createElement(K.Provider,{value:M},ee):ee,[K,ee,M])}const R=U.memo(j);if(R.WrappedComponent=S,R.displayName=j.displayName=E,f){const V=U.forwardRef(function(G,K){return U.createElement(R,{...G,reactReduxForwardedRef:K})});return V.displayName=E,V.WrappedComponent=S,HE(V,S)}return HE(R,S)}}var D9=aZ;function oZ(e){const{children:t,context:n,serverState:r,store:i}=e,a=U.useMemo(()=>{const f=M9(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),o=U.useMemo(()=>i.getState(),[i]);Vy(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),o!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,o]);const l=n||L9;return U.createElement(l.Provider,{value:a},t)}var k9=oZ,up={},_N;function sZ(){if(_N)return up;_N=1,Object.defineProperty(up,"__esModule",{value:!0}),up.parse=o,up.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function o(y,x){const _=new a,w=y.length;if(w<2)return _;const S=(x==null?void 0:x.decode)||h;let O=0;do{const E=y.indexOf("=",O);if(E===-1)break;const T=y.indexOf(";",O),j=T===-1?w:T;if(E>j){O=y.lastIndexOf(";",E-1)+1;continue}const P=l(y,O,E),R=f(y,E,P),I=y.slice(P,R);if(_[I]===void 0){let V=l(y,E+1,j),W=f(y,j,V);const G=S(y.slice(V,W));_[I]=G}O=j+1}while(O_;){const w=y.charCodeAt(--x);if(w!==32&&w!==9)return x+1}return _}function u(y,x,_){const w=(_==null?void 0:_.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const S=w(x);if(!t.test(S))throw new TypeError(`argument val is invalid: ${x}`);let O=y+"="+S;if(!_)return O;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);O+="; Max-Age="+_.maxAge}if(_.domain){if(!n.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);O+="; Domain="+_.domain}if(_.path){if(!r.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);O+="; Path="+_.path}if(_.expires){if(!m(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);O+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(O+="; HttpOnly"),_.secure&&(O+="; Secure"),_.partitioned&&(O+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return O}function h(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function m(y){return i.call(y)==="[object Date]"}return up}sZ();/** - * react-router v7.5.0 + * react-router v7.5.1 * * Copyright (c) Remix Software Inc. * @@ -69,15 +69,15 @@ ${de.current.stack} * @license MIT */var xN="popstate";function lZ(e={}){function t(r,i){let{pathname:a,search:o,hash:l}=r.location;return WE("",{pathname:a,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:rm(i)}return cZ(t,n,null,e)}function En(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ta(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uZ(){return Math.random().toString(36).substring(2,10)}function wN(e,t){return{usr:e.state,key:e.key,idx:t}}function WE(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Bd(t):t,state:n,key:t&&t.key||r||uZ()}}function rm({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Bd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function cZ(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l="POP",f=null,u=h();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function h(){return(o.state||{idx:null}).idx}function m(){l="POP";let S=h(),O=S==null?null:S-u;u=S,f&&f({action:l,location:w.location,delta:O})}function y(S,O){l="PUSH";let E=WE(w.location,S,O);u=h()+1;let T=wN(E,u),j=w.createHref(E);try{o.pushState(T,"",j)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(j)}a&&f&&f({action:l,location:w.location,delta:1})}function x(S,O){l="REPLACE";let E=WE(w.location,S,O);u=h();let T=wN(E,u),j=w.createHref(E);o.replaceState(T,"",j),a&&f&&f({action:l,location:w.location,delta:0})}function _(S){let O=i.location.origin!=="null"?i.location.origin:i.location.href,E=typeof S=="string"?S:rm(S);return E=E.replace(/ $/,"%20"),En(O,`No window.location.(origin|href) available to create URL for href: ${E}`),new URL(E,O)}let w={get action(){return l},get location(){return e(i,o)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(xN,m),f=S,()=>{i.removeEventListener(xN,m),f=null}},createHref(S){return t(i,S)},createURL:_,encodeLocation(S){let O=_(S);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:y,replace:x,go(S){return o.go(S)}};return w}function I9(e,t,n="/"){return fZ(e,t,n,!1)}function fZ(e,t,n,r){let i=typeof t=="string"?Bd(t):t,a=as(i.pathname||"/",n);if(a==null)return null;let o=$9(e);dZ(o);let l=null;for(let f=0;l==null&&f{let f={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};f.relativePath.startsWith("/")&&(En(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let u=es([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(En(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),$9(a.children,t,h,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:bZ(u,a.index),routesMeta:h})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let f of B9(a.path))i(a,o,f)}),t}function B9(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=B9(r.join("/")),l=[];return l.push(...o.map(f=>f===""?a:[a,f].join("/"))),i&&l.push(...o),l.map(f=>e.startsWith("/")&&f===""?"/":f)}function dZ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_Z(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var hZ=/^:[\w-]+$/,pZ=3,mZ=2,vZ=1,gZ=10,yZ=-2,SN=e=>e==="*";function bZ(e,t){let n=e.split("/"),r=n.length;return n.some(SN)&&(r+=yZ),t&&(r+=mZ),n.filter(i=>!SN(i)).reduce((i,a)=>i+(hZ.test(a)?pZ:a===""?vZ:gZ),r)}function _Z(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function xZ(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l{if(h==="*"){let _=l[y]||"";o=a.slice(0,a.length-_.length).replace(/(.)\/+$/,"$1")}const x=l[y];return m&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function wZ(e,t=!1,n=!0){Ta(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,f)=>(r.push({paramName:l,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function SZ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ta(!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 as(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function OZ(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Bd(e):e;return{pathname:n?n.startsWith("/")?n:EZ(n,t):t,search:AZ(r),hash:jZ(i)}}function EZ(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function sw(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function CZ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xj(e){let t=CZ(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function wj(e,t,n,r=!1){let i;typeof e=="string"?i=Bd(e):(i={...e},En(!i.pathname||!i.pathname.includes("?"),sw("?","pathname","search",i)),En(!i.pathname||!i.pathname.includes("#"),sw("#","pathname","hash",i)),En(!i.search||!i.search.includes("#"),sw("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let m=t.length-1;if(!r&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),m-=1;i.pathname=y.join("/")}l=m>=0?t[m]:"/"}let f=OZ(i,l),u=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(u||h)&&(f.pathname+="/"),f}var es=e=>e.join("/").replace(/\/\/+/g,"/"),TZ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AZ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jZ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function PZ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var U9=["POST","PUT","PATCH","DELETE"];new Set(U9);var RZ=["GET",...U9];new Set(RZ);var Ud=U.createContext(null);Ud.displayName="DataRouter";var z0=U.createContext(null);z0.displayName="DataRouterState";var z9=U.createContext({isTransitioning:!1});z9.displayName="ViewTransition";var MZ=U.createContext(new Map);MZ.displayName="Fetchers";var NZ=U.createContext(null);NZ.displayName="Await";var ja=U.createContext(null);ja.displayName="Navigation";var nv=U.createContext(null);nv.displayName="Location";var Pa=U.createContext({outlet:null,matches:[],isDataRoute:!1});Pa.displayName="Route";var Sj=U.createContext(null);Sj.displayName="RouteError";function LZ(e,{relative:t}={}){En(_c(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=U.useContext(ja),{hash:i,pathname:a,search:o}=rv(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:es([n,a])),r.createHref({pathname:l,search:o,hash:i})}function _c(){return U.useContext(nv)!=null}function Lr(){return En(_c(),"useLocation() may be used only in the context of a component."),U.useContext(nv).location}var F9="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function q9(e){U.useContext(ja).static||U.useLayoutEffect(e)}function yo(){let{isDataRoute:e}=U.useContext(Pa);return e?GZ():DZ()}function DZ(){En(_c(),"useNavigate() may be used only in the context of a component.");let e=U.useContext(Ud),{basename:t,navigator:n}=U.useContext(ja),{matches:r}=U.useContext(Pa),{pathname:i}=Lr(),a=JSON.stringify(xj(r)),o=U.useRef(!1);return q9(()=>{o.current=!0}),U.useCallback((f,u={})=>{if(Ta(o.current,F9),!o.current)return;if(typeof f=="number"){n.go(f);return}let h=wj(f,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:es([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,a,i,e])}U.createContext(null);function zd(){let{matches:e}=U.useContext(Pa),t=e[e.length-1];return t?t.params:{}}function rv(e,{relative:t}={}){let{matches:n}=U.useContext(Pa),{pathname:r}=Lr(),i=JSON.stringify(xj(n));return U.useMemo(()=>wj(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function kZ(e,t){return V9(e,t)}function V9(e,t,n,r){var E;En(_c(),"useRoutes() may be used only in the context of a component.");let{navigator:i,static:a}=U.useContext(ja),{matches:o}=U.useContext(Pa),l=o[o.length-1],f=l?l.params:{},u=l?l.pathname:"/",h=l?l.pathnameBase:"/",m=l&&l.route;{let T=m&&m.path||"";H9(u,!m||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. -Please change the parent to .`)}let y=Lr(),x;if(t){let T=typeof t=="string"?Bd(t):t;En(h==="/"||((E=T.pathname)==null?void 0:E.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 "${T.pathname}" was given in the \`location\` prop.`),x=T}else x=y;let _=x.pathname||"/",w=_;if(h!=="/"){let T=h.replace(/^\//,"").split("/");w="/"+_.replace(/^\//,"").split("/").slice(T.length).join("/")}let S=!a&&n&&n.matches&&n.matches.length>0?n.matches:I9(e,{pathname:w});Ta(m||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Ta(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let O=zZ(S&&S.map(T=>Object.assign({},T,{params:Object.assign({},f,T.params),pathname:es([h,i.encodeLocation?i.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?h:es([h,i.encodeLocation?i.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),o,n,r);return t&&O?U.createElement(nv.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},O):O}function IZ(){let e=WZ(),t=PZ(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=U.createElement(U.Fragment,null,U.createElement("p",null,"💿 Hey developer 👋"),U.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",U.createElement("code",{style:a},"ErrorBoundary")," or"," ",U.createElement("code",{style:a},"errorElement")," prop on your route.")),U.createElement(U.Fragment,null,U.createElement("h2",null,"Unexpected Application Error!"),U.createElement("h3",{style:{fontStyle:"italic"}},t),n?U.createElement("pre",{style:i},n):null,o)}var $Z=U.createElement(IZ,null),BZ=class extends U.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?U.createElement(Pa.Provider,{value:this.props.routeContext},U.createElement(Sj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function UZ({routeContext:e,match:t,children:n}){let r=U.useContext(Ud);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),U.createElement(Pa.Provider,{value:e},n)}function zZ(e,t=[],n=null,r=null){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 i=e,a=n==null?void 0:n.errors;if(a!=null){let f=i.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);En(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let o=!1,l=-1;if(n)for(let f=0;f=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((f,u,h)=>{let m,y=!1,x=null,_=null;n&&(m=a&&u.route.id?a[u.route.id]:void 0,x=u.route.errorElement||$Z,o&&(l<0&&h===0?(H9("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,_=null):l===h&&(y=!0,_=u.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,h+1)),S=()=>{let O;return m?O=x:y?O=_:u.route.Component?O=U.createElement(u.route.Component,null):u.route.element?O=u.route.element:O=f,U.createElement(UZ,{match:u,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:O})};return n&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?U.createElement(BZ,{location:n.location,revalidation:n.revalidation,component:x,error:m,children:S(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):S()},null)}function Oj(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function FZ(e){let t=U.useContext(Ud);return En(t,Oj(e)),t}function qZ(e){let t=U.useContext(z0);return En(t,Oj(e)),t}function VZ(e){let t=U.useContext(Pa);return En(t,Oj(e)),t}function Ej(e){let t=VZ(e),n=t.matches[t.matches.length-1];return En(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function HZ(){return Ej("useRouteId")}function WZ(){var r;let e=U.useContext(Sj),t=qZ("useRouteError"),n=Ej("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function GZ(){let{router:e}=FZ("useNavigate"),t=Ej("useNavigate"),n=U.useRef(!1);return q9(()=>{n.current=!0}),U.useCallback(async(i,a={})=>{Ta(n.current,F9),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var ON={};function H9(e,t,n){!t&&!ON[e]&&(ON[e]=!0,Ta(!1,n))}U.memo(YZ);function YZ({routes:e,future:t,state:n}){return V9(e,void 0,n,t)}function Cj({to:e,replace:t,state:n,relative:r}){En(_c()," may be used only in the context of a component.");let{static:i}=U.useContext(ja);Ta(!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}=U.useContext(Pa),{pathname:o}=Lr(),l=yo(),f=wj(e,xj(a),o,r==="path"),u=JSON.stringify(f);return U.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function St(e){En(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function KZ({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){En(!_c(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=U.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n=="string"&&(n=Bd(n));let{pathname:f="/",search:u="",hash:h="",state:m=null,key:y="default"}=n,x=U.useMemo(()=>{let _=as(f,o);return _==null?null:{location:{pathname:_,search:u,hash:h,state:m,key:y},navigationType:r}},[o,f,u,h,m,y,r]);return Ta(x!=null,` is not able to match the URL "${f}${u}${h}" because it does not start with the basename, so the won't render anything.`),x==null?null:U.createElement(ja.Provider,{value:l},U.createElement(nv.Provider,{children:t,value:x}))}function F0({children:e,location:t}){return kZ(GE(e),t)}function GE(e,t=[]){let n=[];return U.Children.forEach(e,(r,i)=>{if(!U.isValidElement(r))return;let a=[...t,i];if(r.type===U.Fragment){n.push.apply(n,GE(r.props.children,a));return}En(r.type===St,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),En(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=GE(r.props.children,a)),n.push(o)}),n}var Py="get",Ry="application/x-www-form-urlencoded";function q0(e){return e!=null&&typeof e.tagName=="string"}function ZZ(e){return q0(e)&&e.tagName.toLowerCase()==="button"}function XZ(e){return q0(e)&&e.tagName.toLowerCase()==="form"}function QZ(e){return q0(e)&&e.tagName.toLowerCase()==="input"}function JZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eX(e,t){return e.button===0&&(!t||t==="_self")&&!JZ(e)}var Jg=null;function tX(){if(Jg===null)try{new FormData(document.createElement("form"),0),Jg=!1}catch{Jg=!0}return Jg}var nX=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function lw(e){return e!=null&&!nX.has(e)?(Ta(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Ry}"`),null):e}function rX(e,t){let n,r,i,a,o;if(XZ(e)){let l=e.getAttribute("action");r=l?as(l,t):null,n=e.getAttribute("method")||Py,i=lw(e.getAttribute("enctype"))||Ry,a=new FormData(e)}else if(ZZ(e)||QZ(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a