From ed5c7ea79d902e661564f63f788d6287b5acafba Mon Sep 17 00:00:00 2001 From: rassadin11 Date: Sun, 17 May 2026 14:16:56 +0300 Subject: [PATCH] 17.05.2026 funny --- dist/assets/{index-DOZHm_HX.js => index-CdGkzoZk.js} | 2 +- dist/index.html | 2 +- src/widgets/token-table/model/useChainTokenRows.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename dist/assets/{index-DOZHm_HX.js => index-CdGkzoZk.js} (83%) diff --git a/dist/assets/index-DOZHm_HX.js b/dist/assets/index-CdGkzoZk.js similarity index 83% rename from dist/assets/index-DOZHm_HX.js rename to dist/assets/index-CdGkzoZk.js index 144abb4..8eae686 100644 --- a/dist/assets/index-DOZHm_HX.js +++ b/dist/assets/index-CdGkzoZk.js @@ -57,4 +57,4 @@ Error generating stack: `+a.message+` * @license MIT */var Cm="popstate";function wm(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function fg(l={}){function s(r,d){var p;let h=(p=d.state)==null?void 0:p.masked,{pathname:v,search:y,hash:g}=h||r.location;return Af("",{pathname:v,search:y,hash:g},d.state&&d.state.usr||null,d.state&&d.state.key||"default",h?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function u(r,d){return typeof d=="string"?d:Js(d)}return hg(s,u,null,l)}function Ke(l,s){if(l===!1||l===null||typeof l>"u")throw new Error(s)}function Cn(l,s){if(!l){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function dg(){return Math.random().toString(36).substring(2,10)}function Rm(l,s){return{usr:l.state,key:l.key,idx:s,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function Af(l,s,u=null,r,d){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof s=="string"?Hi(s):s,state:u,key:s&&s.key||r||dg(),unstable_mask:d}}function Js({pathname:l="/",search:s="",hash:u=""}){return s&&s!=="?"&&(l+=s.charAt(0)==="?"?s:"?"+s),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function Hi(l){let s={};if(l){let u=l.indexOf("#");u>=0&&(s.hash=l.substring(u),l=l.substring(0,u));let r=l.indexOf("?");r>=0&&(s.search=l.substring(r),l=l.substring(0,r)),l&&(s.pathname=l)}return s}function hg(l,s,u,r={}){let{window:d=document.defaultView,v5Compat:h=!1}=r,v=d.history,y="POP",g=null,p=j();p==null&&(p=0,v.replaceState({...v.state,idx:p},""));function j(){return(v.state||{idx:null}).idx}function _(){y="POP";let w=j(),B=w==null?null:w-p;p=w,g&&g({action:y,location:D.location,delta:B})}function T(w,B){y="PUSH";let Z=wm(w)?w:Af(D.location,w,B);p=j()+1;let G=Rm(Z,p),Q=D.createHref(Z.unstable_mask||Z);try{v.pushState(G,"",Q)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;d.location.assign(Q)}h&&g&&g({action:y,location:D.location,delta:1})}function M(w,B){y="REPLACE";let Z=wm(w)?w:Af(D.location,w,B);p=j();let G=Rm(Z,p),Q=D.createHref(Z.unstable_mask||Z);v.replaceState(G,"",Q),h&&g&&g({action:y,location:D.location,delta:0})}function U(w){return mg(w)}let D={get action(){return y},get location(){return l(d,v)},listen(w){if(g)throw new Error("A history only accepts one active listener");return d.addEventListener(Cm,_),g=w,()=>{d.removeEventListener(Cm,_),g=null}},createHref(w){return s(d,w)},createURL:U,encodeLocation(w){let B=U(w);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:T,replace:M,go(w){return v.go(w)}};return D}function mg(l,s=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Ke(u,"No window.location.(origin|href) available to create URL");let r=typeof l=="string"?l:Js(l);return r=r.replace(/ $/,"%20"),!s&&r.startsWith("//")&&(r=u+r),new URL(r,u)}function R1(l,s,u="/"){return pg(l,s,u,!1)}function pg(l,s,u,r){let d=typeof s=="string"?Hi(s):s,h=pa(d.pathname||"/",u);if(h==null)return null;let v=A1(l);vg(v);let y=null;for(let g=0;y==null&&g{let j={relativePath:p===void 0?v.path||"":p,caseSensitive:v.caseSensitive===!0,childrenIndex:y,route:v};if(j.relativePath.startsWith("/")){if(!j.relativePath.startsWith(r)&&g)return;Ke(j.relativePath.startsWith(r),`Absolute route path "${j.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),j.relativePath=j.relativePath.slice(r.length)}let _=Tn([r,j.relativePath]),T=u.concat(j);v.children&&v.children.length>0&&(Ke(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${_}".`),A1(v.children,s,T,_,g)),!(v.path==null&&!v.index)&&s.push({path:_,score:jg(_,v.index),routesMeta:T})};return l.forEach((v,y)=>{var g;if(v.path===""||!((g=v.path)!=null&&g.includes("?")))h(v,y);else for(let p of O1(v.path))h(v,y,!0,p)}),s}function O1(l){let s=l.split("/");if(s.length===0)return[];let[u,...r]=s,d=u.endsWith("?"),h=u.replace(/\?$/,"");if(r.length===0)return d?[h,""]:[h];let v=O1(r.join("/")),y=[];return y.push(...v.map(g=>g===""?h:[h,g].join("/"))),d&&y.push(...v),y.map(g=>l.startsWith("/")&&g===""?"/":g)}function vg(l){l.sort((s,u)=>s.score!==u.score?u.score-s.score:Eg(s.routesMeta.map(r=>r.childrenIndex),u.routesMeta.map(r=>r.childrenIndex)))}var yg=/^:[\w-]+$/,gg=3,_g=2,bg=1,xg=10,Sg=-2,Am=l=>l==="*";function jg(l,s){let u=l.split("/"),r=u.length;return u.some(Am)&&(r+=Sg),s&&(r+=_g),u.filter(d=>!Am(d)).reduce((d,h)=>d+(yg.test(h)?gg:h===""?bg:xg),r)}function Eg(l,s){return l.length===s.length&&l.slice(0,-1).every((r,d)=>r===s[d])?l[l.length-1]-s[s.length-1]:0}function Ng(l,s,u=!1){let{routesMeta:r}=l,d={},h="/",v=[];for(let y=0;y{if(j==="*"){let U=y[T]||"";v=h.slice(0,h.length-U.length).replace(/(.)\/+$/,"$1")}const M=y[T];return _&&!M?p[j]=void 0:p[j]=(M||"").replace(/%2F/g,"/"),p},{}),pathname:h,pathnameBase:v,pattern:l}}function Tg(l,s=!1,u=!0){Cn(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let r=[],d="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,y,g,p,j)=>{if(r.push({paramName:y,isOptional:g!=null}),g){let _=j.charAt(p+v.length);return _&&_!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(r.push({paramName:"*"}),d+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?d+="\\/*$":l!==""&&l!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,s?void 0:"i"),r]}function Cg(l){try{return l.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Cn(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),l}}function pa(l,s){if(s==="/")return l;if(!l.toLowerCase().startsWith(s.toLowerCase()))return null;let u=s.endsWith("/")?s.length-1:s.length,r=l.charAt(u);return r&&r!=="/"?null:l.slice(u)||"/"}var wg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Rg(l,s="/"){let{pathname:u,search:r="",hash:d=""}=typeof l=="string"?Hi(l):l,h;return u?(u=M1(u),u.startsWith("/")?h=Om(u.substring(1),"/"):h=Om(u,s)):h=s,{pathname:h,search:Mg(r),hash:zg(d)}}function Om(l,s){let u=Lu(s).split("/");return l.split("/").forEach(d=>{d===".."?u.length>1&&u.pop():d!=="."&&u.push(d)}),u.length>1?u.join("/"):"/"}function xf(l,s,u,r){return`Cannot include a '${l}' character in a manually specified \`to.${s}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Ag(l){return l.filter((s,u)=>u===0||s.route.path&&s.route.path.length>0)}function Pf(l){let s=Ag(l);return s.map((u,r)=>r===s.length-1?u.pathname:u.pathnameBase)}function qu(l,s,u,r=!1){let d;typeof l=="string"?d=Hi(l):(d={...l},Ke(!d.pathname||!d.pathname.includes("?"),xf("?","pathname","search",d)),Ke(!d.pathname||!d.pathname.includes("#"),xf("#","pathname","hash",d)),Ke(!d.search||!d.search.includes("#"),xf("#","search","hash",d)));let h=l===""||d.pathname==="",v=h?"/":d.pathname,y;if(v==null)y=u;else{let _=s.length-1;if(!r&&v.startsWith("..")){let T=v.split("/");for(;T[0]==="..";)T.shift(),_-=1;d.pathname=T.join("/")}y=_>=0?s[_]:"/"}let g=Rg(d,y),p=v&&v!=="/"&&v.endsWith("/"),j=(h||v===".")&&u.endsWith("/");return!g.pathname.endsWith("/")&&(p||j)&&(g.pathname+="/"),g}var M1=l=>l.replace(/\/\/+/g,"/"),Tn=l=>M1(l.join("/")),Lu=l=>l.replace(/\/+$/,""),Og=l=>Lu(l).replace(/^\/*/,"/"),Mg=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,zg=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,Dg=class{constructor(l,s,u,r=!1){this.status=l,this.statusText=s||"",this.internal=r,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function Lg(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function Bg(l){let s=l.map(u=>u.route.path).filter(Boolean);return Tn(s)||"/"}var z1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function D1(l,s){let u=l;if(typeof u!="string"||!wg.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let r=u,d=!1;if(z1)try{let h=new URL(window.location.href),v=u.startsWith("//")?new URL(h.protocol+u):new URL(u),y=pa(v.pathname,s);v.origin===h.origin&&y!=null?u=y+v.search+v.hash:d=!0}catch{Cn(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var L1=["POST","PUT","PATCH","DELETE"];new Set(L1);var Ug=["GET",...L1];new Set(Ug);var ki=S.createContext(null);ki.displayName="DataRouter";var $u=S.createContext(null);$u.displayName="DataRouterState";var B1=S.createContext(!1);function Hg(){return S.useContext(B1)}var U1=S.createContext({isTransitioning:!1});U1.displayName="ViewTransition";var kg=S.createContext(new Map);kg.displayName="Fetchers";var qg=S.createContext(null);qg.displayName="Await";var an=S.createContext(null);an.displayName="Navigation";var ic=S.createContext(null);ic.displayName="Location";var bn=S.createContext({outlet:null,matches:[],isDataRoute:!1});bn.displayName="Route";var e0=S.createContext(null);e0.displayName="RouteError";var H1="REACT_ROUTER_ERROR",$g="REDIRECT",Qg="ROUTE_ERROR_RESPONSE";function Gg(l){if(l.startsWith(`${H1}:${$g}:{`))try{let s=JSON.parse(l.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function Yg(l){if(l.startsWith(`${H1}:${Qg}:{`))try{let s=JSON.parse(l.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new Dg(s.status,s.statusText,s.data)}catch{}}function Vg(l,{relative:s}={}){Ke(qi(),"useHref() may be used only in the context of a component.");let{basename:u,navigator:r}=S.useContext(an),{hash:d,pathname:h,search:v}=sc(l,{relative:s}),y=h;return u!=="/"&&(y=h==="/"?u:Tn([u,h])),r.createHref({pathname:y,search:v,hash:d})}function qi(){return S.useContext(ic)!=null}function ln(){return Ke(qi(),"useLocation() may be used only in the context of a component."),S.useContext(ic).location}var k1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function q1(l){S.useContext(an).static||S.useLayoutEffect(l)}function wn(){let{isDataRoute:l}=S.useContext(bn);return l?c_():Xg()}function Xg(){Ke(qi(),"useNavigate() may be used only in the context of a component.");let l=S.useContext(ki),{basename:s,navigator:u}=S.useContext(an),{matches:r}=S.useContext(bn),{pathname:d}=ln(),h=JSON.stringify(Pf(r)),v=S.useRef(!1);return q1(()=>{v.current=!0}),S.useCallback((g,p={})=>{if(Cn(v.current,k1),!v.current)return;if(typeof g=="number"){u.go(g);return}let j=qu(g,JSON.parse(h),d,p.relative==="path");l==null&&s!=="/"&&(j.pathname=j.pathname==="/"?s:Tn([s,j.pathname])),(p.replace?u.replace:u.push)(j,p.state,p)},[s,u,h,d,l])}var Zg=S.createContext(null);function Fg(l){let s=S.useContext(bn).outlet;return S.useMemo(()=>s&&S.createElement(Zg.Provider,{value:l},s),[s,l])}function Kg(){let{matches:l}=S.useContext(bn),s=l[l.length-1];return(s==null?void 0:s.params)??{}}function sc(l,{relative:s}={}){let{matches:u}=S.useContext(bn),{pathname:r}=ln(),d=JSON.stringify(Pf(u));return S.useMemo(()=>qu(l,JSON.parse(d),r,s==="path"),[l,d,r,s])}function Jg(l,s){return $1(l,s)}function $1(l,s,u){var w;Ke(qi(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=S.useContext(an),{matches:d}=S.useContext(bn),h=d[d.length-1],v=h?h.params:{},y=h?h.pathname:"/",g=h?h.pathnameBase:"/",p=h&&h.route;{let B=p&&p.path||"";G1(y,!p||B.endsWith("*")||B.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${y}" (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 j=ln(),_;if(s){let B=typeof s=="string"?Hi(s):s;Ke(g==="/"||((w=B.pathname)==null?void 0:w.startsWith(g)),`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 "${g}" but pathname "${B.pathname}" was given in the \`location\` prop.`),_=B}else _=j;let T=_.pathname||"/",M=T;if(g!=="/"){let B=g.replace(/^\//,"").split("/");M="/"+T.replace(/^\//,"").split("/").slice(B.length).join("/")}let U=R1(l,{pathname:M});Cn(p||U!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Cn(U==null||U[U.length-1].route.element!==void 0||U[U.length-1].route.Component!==void 0||U[U.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let D=t_(U&&U.map(B=>Object.assign({},B,{params:Object.assign({},v,B.params),pathname:Tn([g,r.encodeLocation?r.encodeLocation(B.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?g:Tn([g,r.encodeLocation?r.encodeLocation(B.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathnameBase])})),d,u);return s&&D?S.createElement(ic.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,..._},navigationType:"POP"}},D):D}function Wg(){let l=s_(),s=Lg(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),u=l instanceof Error?l.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},v=null;return console.error("Error handled by React Router default ErrorBoundary:",l),v=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:h},"ErrorBoundary")," or"," ",S.createElement("code",{style:h},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},s),u?S.createElement("pre",{style:d},u):null,v)}var Ig=S.createElement(Wg,null),Q1=class extends S.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,s){return s.location!==l.location||s.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:s.error,location:s.location,revalidation:l.revalidation||s.revalidation}}componentDidCatch(l,s){this.props.onError?this.props.onError(l,s):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const u=Yg(l.digest);u&&(l=u)}let s=l!==void 0?S.createElement(bn.Provider,{value:this.props.routeContext},S.createElement(e0.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?S.createElement(Pg,{error:l},s):s}};Q1.contextType=B1;var Sf=new WeakMap;function Pg({children:l,error:s}){let{basename:u}=S.useContext(an);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let r=Gg(s.digest);if(r){let d=Sf.get(s);if(d)throw d;let h=D1(r.location,u);if(z1&&!Sf.get(s))if(h.isExternal||r.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:r.replace}));throw Sf.set(s,v),v}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return l}function e_({routeContext:l,match:s,children:u}){let r=S.useContext(ki);return r&&r.static&&r.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=s.route.id),S.createElement(bn.Provider,{value:l},u)}function t_(l,s=[],u){let r=u==null?void 0:u.state;if(l==null){if(!r)return null;if(r.errors)l=r.matches;else if(s.length===0&&!r.initialized&&r.matches.length>0)l=r.matches;else return null}let d=l,h=r==null?void 0:r.errors;if(h!=null){let j=d.findIndex(_=>_.route.id&&(h==null?void 0:h[_.route.id])!==void 0);Ke(j>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,j+1))}let v=!1,y=-1;if(u&&r){v=r.renderFallback;for(let j=0;j=0?d=d.slice(0,y+1):d=[d[0]];break}}}}let g=u==null?void 0:u.onError,p=r&&g?(j,_)=>{var T,M;g(j,{location:r.location,params:((M=(T=r.matches)==null?void 0:T[0])==null?void 0:M.params)??{},unstable_pattern:Bg(r.matches),errorInfo:_})}:void 0;return d.reduceRight((j,_,T)=>{let M,U=!1,D=null,w=null;r&&(M=h&&_.route.id?h[_.route.id]:void 0,D=_.route.errorElement||Ig,v&&(y<0&&T===0?(G1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),U=!0,w=null):y===T&&(U=!0,w=_.route.hydrateFallbackElement||null)));let B=s.concat(d.slice(0,T+1)),Z=()=>{let G;return M?G=D:U?G=w:_.route.Component?G=S.createElement(_.route.Component,null):_.route.element?G=_.route.element:G=j,S.createElement(e_,{match:_,routeContext:{outlet:j,matches:B,isDataRoute:r!=null},children:G})};return r&&(_.route.ErrorBoundary||_.route.errorElement||T===0)?S.createElement(Q1,{location:r.location,revalidation:r.revalidation,component:D,error:M,children:Z(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:p}):Z()},null)}function t0(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n_(l){let s=S.useContext(ki);return Ke(s,t0(l)),s}function a_(l){let s=S.useContext($u);return Ke(s,t0(l)),s}function l_(l){let s=S.useContext(bn);return Ke(s,t0(l)),s}function n0(l){let s=l_(l),u=s.matches[s.matches.length-1];return Ke(u.route.id,`${l} can only be used on routes that contain a unique "id"`),u.route.id}function i_(){return n0("useRouteId")}function s_(){var r;let l=S.useContext(e0),s=a_("useRouteError"),u=n0("useRouteError");return l!==void 0?l:(r=s.errors)==null?void 0:r[u]}function c_(){let{router:l}=n_("useNavigate"),s=n0("useNavigate"),u=S.useRef(!1);return q1(()=>{u.current=!0}),S.useCallback(async(d,h={})=>{Cn(u.current,k1),u.current&&(typeof d=="number"?await l.navigate(d):await l.navigate(d,{fromRouteId:s,...h}))},[l,s])}var Mm={};function G1(l,s,u){!s&&!Mm[l]&&(Mm[l]=!0,Cn(!1,u))}S.memo(u_);function u_({routes:l,future:s,state:u,isStatic:r,onError:d}){return $1(l,void 0,{state:u,isStatic:r,onError:d})}function Ws({to:l,replace:s,state:u,relative:r}){Ke(qi()," may be used only in the context of a component.");let{static:d}=S.useContext(an);Cn(!d," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:h}=S.useContext(bn),{pathname:v}=ln(),y=wn(),g=qu(l,Pf(h),v,r==="path"),p=JSON.stringify(g);return S.useEffect(()=>{y(JSON.parse(p),{replace:s,state:u,relative:r})},[y,p,r,s,u]),null}function Y1(l){return Fg(l.context)}function Ut(l){Ke(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function r_({basename:l="/",children:s=null,location:u,navigationType:r="POP",navigator:d,static:h=!1,unstable_useTransitions:v}){Ke(!qi(),"You cannot render a inside another . You should never have more than one in your app.");let y=l.replace(/^\/*/,"/"),g=S.useMemo(()=>({basename:y,navigator:d,static:h,unstable_useTransitions:v,future:{}}),[y,d,h,v]);typeof u=="string"&&(u=Hi(u));let{pathname:p="/",search:j="",hash:_="",state:T=null,key:M="default",unstable_mask:U}=u,D=S.useMemo(()=>{let w=pa(p,y);return w==null?null:{location:{pathname:w,search:j,hash:_,state:T,key:M,unstable_mask:U},navigationType:r}},[y,p,j,_,T,M,r,U]);return Cn(D!=null,` is not able to match the URL "${p}${j}${_}" because it does not start with the basename, so the won't render anything.`),D==null?null:S.createElement(an.Provider,{value:g},S.createElement(ic.Provider,{children:s,value:D}))}function o_({children:l,location:s}){return Jg(Of(l),s)}function Of(l,s=[]){let u=[];return S.Children.forEach(l,(r,d)=>{if(!S.isValidElement(r))return;let h=[...s,d];if(r.type===S.Fragment){u.push.apply(u,Of(r.props.children,h));return}Ke(r.type===Ut,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),Ke(!r.props.index||!r.props.children,"An index route cannot have child routes.");let v={id:r.props.id||h.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,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&&(v.children=Of(r.props.children,h)),u.push(v)}),u}var Ou="get",Mu="application/x-www-form-urlencoded";function Qu(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function f_(l){return Qu(l)&&l.tagName.toLowerCase()==="button"}function d_(l){return Qu(l)&&l.tagName.toLowerCase()==="form"}function h_(l){return Qu(l)&&l.tagName.toLowerCase()==="input"}function m_(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function p_(l,s){return l.button===0&&(!s||s==="_self")&&!m_(l)}var Cu=null;function v_(){if(Cu===null)try{new FormData(document.createElement("form"),0),Cu=!1}catch{Cu=!0}return Cu}var y_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jf(l){return l!=null&&!y_.has(l)?(Cn(!1,`"${l}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Mu}"`),null):l}function g_(l,s){let u,r,d,h,v;if(d_(l)){let y=l.getAttribute("action");r=y?pa(y,s):null,u=l.getAttribute("method")||Ou,d=jf(l.getAttribute("enctype"))||Mu,h=new FormData(l)}else if(f_(l)||h_(l)&&(l.type==="submit"||l.type==="image")){let y=l.form;if(y==null)throw new Error('Cannot submit a