PageSourceSearch

https://rust-map.pages.dev/assets/index-BnqE0H4p.js

js rust-map.pages.dev collected 2026-10-03 05:55:19 UTC 116,575 bytes, 5 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/root-8UZvoEuW.js","assets/rolldown-runtime-Dw2cE7zH.js","assets/react-BooWp227.js","assets/usePrefersReducedMotion-B6QzFU_C.js","assets/ShellAction-D9BxKurG.js","assets/social-CNE_r4ZT.js","assets/useMobilePortraitBlock-BTPCcSu0.js","assets/lobby-ErL87BwB.js","assets/ShellExternalNavItem-CIqneZd6.js","assets/ShellHighlightsBand-2X8A7z2P.js","assets/ShellNavItem-hjEYP3ti.js","assets/mediaWarmup-D8ENqD0y.js","assets/loading-BNhsY2mO.js","assets/gameAssets-CtCM6zN-.js","assets/three-core-C6Wzlkxe.js","assets/react-DroxUSDZ.js","assets/gameBootUi-CdKTeKQm.js","assets/loadSceneCanvas-DUwJ67ja.js","assets/game-DZfOcrzg.js","assets/rustMapStatus-BtzAU2Us.js","assets/ShowcaseRail-Dhwbxn3z.js","assets/ShowcaseDetailPanel-Dt_5rE-r.js","assets/AchievementShowcaseRail-D4GFBp1T.js","assets/game-CbpJyIFT.css","assets/experience-rqu7UtHz.js","assets/SplitShowcasePage-BEZ1mNpB.js","assets/projects-DTR9Pivt.js","assets/achievements-DIYW0iAt.js"])))=>i.map(i=>d[i]);
2import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{S as t,b as n,w as r,x as i,y as a}from"./react-BooWp227.js";import{a as o,n as s,r as c,t as l}from"./careerIntel-Dg8dptSm.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=e(r(),1),d=i(),f=e=>{throw TypeError(e)},p=(e,t,n)=>t.has(e)||f(`Cannot `+n),m=(e,t,n)=>(p(e,t,`read from private field`),n?n.call(e):t.get(e)),h=(e,t,n)=>t.has(e)?f(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),g=`popstate`;function _(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function v(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return C(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:w(t)}return E(t,n,null,e)}function y(e,t){if(e===!1||e==null)throw Error(t)}function b(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function x(){return Math.random().toString(36).substring(2,10)}function S(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 C(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?T(t):t,state:n,key:t&&t.key||r||x(),unstable_mask:i}}function w({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 T(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 E(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=_(e)?e:C(h.location,e,t);n&&n(r,e),l=u()+1;let d=S(r,l),f=h.createHref(r.unstable_mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=_(e)?e:C(h.location,e,t);n&&n(r,e),l=u();let i=S(r,l),d=h.createHref(r.unstable_mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ee(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(g,d),c=e,()=>{i.removeEventListener(g,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ee(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),y(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:w(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}var D,O=class{constructor(e){if(h(this,D,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(m(this,D).has(e))return m(this,D).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){m(this,D).set(e,t)}};D=new WeakMap;var k=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function A(e){return k.has(e)}var j=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function te(e){return j.has(e)}function M(e){return e.index===!0}function N(e,t,n=[],r={},i=!1){return e.map((e,a)=>
2{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(y(e.index!==!0||!e.children,`Cannot specify children on an index route`),y(i||!r[s],`Found a route id collision on id "${s}".  Route id's must be globally unique within Data Router usages`),M(e)){let n={...e,id:s};return r[s]=P(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=P(n,t(n)),e.children&&(n.children=N(e.children,t,o,r,i)),n}})}function P(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function ne(e,t,n=`/`){return re(e,t,n,!1)}function re(e,t,n,r){let i=B((typeof t==`string`?T(t):t).pathname||`/`,n);if(i==null)return null;let a=F(e);oe(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=he(i);o=R(a[e],t,r)}return o}function ie(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function F(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;y(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=U([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(y(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),F(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:fe(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ae(e.path))a(e,t,!0,n)}),t}function ae(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=ae(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function oe(e){e.sort((e,t)=>e.score===t.score?pe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var se=/^:[\w-]+$/,ce=3,I=2,le=1,ue=10,de=-2,L=e=>e===`*`;function fe(e,t){let n=e.split(`/`),r=n.length;return n.some(L)&&(r+=de),t&&(r+=I),n.filter(e=>!L(e)).reduce((e,t)=>e+(se.test(t)?ce:t===``?le:ue),r)}function pe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function R(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=z({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=z({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
2Object.assign(i,u.params),o.push({params:i,pathname:U([a,u.pathname]),pathnameBase:Ce(U([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=U([a,u.pathnameBase]))}return o}function z(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=me(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function me(e,t=!1,n=!0){b(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,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function he(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return b(!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 B(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 ge({basename:e,pathname:t}){return t===`/`?e:U([e,t])}var _e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ve=e=>_e.test(e);function ye(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?T(e):e,a;return n?(n=n.replace(/\/\/+/g,`/`),a=n.startsWith(`/`)?V(n.substring(1),`/`):V(n,t)):a=t,{pathname:a,search:we(r),hash:Te(i)}}function V(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function be(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 <Link to="..."> and the router will parse it for you.`}function xe(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Se(e){let t=xe(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function H(e,t,n,r=!1){let i;typeof e==`string`?i=T(e):(i={...e},y(!i.pathname||!i.pathname.includes(`?`),be(`?`,`pathname`,`search`,i)),y(!i.pathname||!i.pathname.includes(`#`),be(`#`,`pathname`,`hash`,i)),y(!i.search||!i.search.includes(`#`),be(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ye(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var U=e=>e.join(`/`).replace(/\/\/+/g,`/`),Ce=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),we=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Te=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Ee=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},De=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Oe(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ke(e){return e.map(e=>
2e.route.path).filter(Boolean).join(`/`).replace(/\/\/*/g,`/`)||`/`}var Ae=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function je(e,t){let n=e;if(typeof n!=`string`||!_e.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ae)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=B(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{b(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var W=Symbol(`Uninstrumented`);function Me(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=Pe(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=Pe(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[W]??i,a=Pe(n[e],t,(...e)=>K(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[W]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[W]??e,r=Pe(n.middleware,t,(...e)=>K(e[0]));return r?(r[W]=t,r):e})),r}function Ne(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[W]??e.navigate,r=Pe(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?w(n):`.`,...Fe(e,r??{})}});r&&(r[W]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[W]??e.fetch,r=Pe(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...Fe(e,i??{})}});r&&(r[W]=t,e.fetch=r)}return e}function Pe(e,t,n){return e.length===0?null:async(...r)=>{let i=await G(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function G(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=G(e,t,n,r-1),a=await o,y(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function K(e){let{request:t,context:n,params:r,unstable_pattern:i}=e;return{request:Ie(t),params:{...r},unstable_pattern:i,context:Le(n)}}function Fe(e,t){return{currentUrl:w(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Ie(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Le(e){if(q(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var Re=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function q(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Re}var ze=[`POST`,`PUT`,`PATCH`,`DELETE`],Be=new Set(ze),Ve=[`GET`,...ze],He=new Set(Ve),Ue=new Set([301,302,303,307,308]),We=new Set([307,308]),Ge={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ke={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qe={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Je=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ye=`remix-router-transitions`,Xe=Symbol(`ResetLoaderData`);function Ze(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;y(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||Je,a=i;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...i(e),...Me(t.map(e=>
2e.route).filter(Boolean),e)})}let o={},s=N(e.routes,a,void 0,o),c,l=e.basename||`/`;l.startsWith(`/`)||(l=`/${l}`);let u=e.dataStrategy||mt,d={unstable_passThroughRequests:!1,...e.future},f=null,p=new Set,m=null,h=null,g=null,_=e.hydrationData!=null,v=ne(s,e.history.location,l),x=!1,S=null,w,E;if(v==null&&!e.patchRoutesOnNavigation){let t=J(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Lt(s);w=!0,E=!w,v=n,S={[r.id]:t}}else if(v&&!e.hydrationData&&ct(v,s,e.history.location.pathname).active&&(v=null),!v){w=!1,E=!w,v=[];let t=ct(null,s,e.history.location.pathname);t.active&&t.matches&&(x=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))w=!1,E=!w;else if(!v.some(e=>nt(e.route)))w=!0,E=!w;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}E=!1,w=!0,r.forEach(e=>{let r=rt(e.route,t,n);E||=r.renderFallback,w&&=!r.shouldLoad})}let D,k={historyAction:e.history.action,location:e.history.location,matches:v,initialized:w,renderFallback:E,navigation:Ge,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},A=`POP`,j=null,te=!1,M,P=!1,F=new Map,ae=null,oe=!1,se=!1,ce=new Set,I=new Map,le=0,ue=-1,de=new Map,L=new Set,fe=new Map,pe=new Map,R=new Set,z=new Map,me,he=null;function ge(){if(f=e.history.listen(({action:t,location:n,delta:r})=>{if(me){me(),me=void 0;return}b(z.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Xe({currentLocation:k.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{me=e});e.history.go(r*-1),Ye(i,{state:`blocked`,location:n,proceed(){Ye(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(k.blockers);e.set(i,qe),V({blockers:e})}}),j?.resolve(),j=null;return}return H(t,n)}),n){on(t,F);let e=()=>sn(t,F);t.addEventListener(`pagehide`,e),ae=()=>t.removeEventListener(`pagehide`,e)}return k.initialized||H(`POP`,k.location,{initialHydration:!0}),D}function _e(){f&&f(),ae&&ae(),p.clear(),M&&M.abort(),k.fetchers.forEach((e,t)=>Le(t)),k.blockers.forEach((e,t)=>Ue(t))}function ye(e){return p.add(e),()=>p.delete(e)}function V(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),k={...k,...e};let n=[],r=[];k.fetchers.forEach((e,t)=>{e.state===`idle`&&(R.has(t)?n.push(t):r.push(t))}),R.forEach(e=>{!k.fetchers.has(e)&&!I.has(e)&&n.push(e)}),[...p].forEach(r=>r(k,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Le(e)),r.forEach(e=>k.fetchers.delete(e))}function be(t,n,{flushSync:r}={}){let i=k.actionData!=null&&k.navigation.formMethod!=null&&X(k.navigation.formMethod)&&k.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?k.actionData:null;let o=n.loaderData?Pt(k.loaderData,n.loaderData,n.matches||[],n.errors):k.loaderData,l=k.blockers;l.size>0&&(l=new Map(l),l.forEach((e,t)=>l.set(t,qe)));let u=oe?!1:ot(t,n.matches||k.matches),d=te===!0||k.navigation.formMethod!=null&&X(k.navigation.formMethod)&&t.state?._isRedirect!==!0;c&&=(s=c,void 0),oe||A===`POP`||(A===`PUSH`?e.history.push(t,t.state):A===`REPLACE`&&e.history.replace(t,t.state));let f;if(A===`POP`){let e=F.get(k.location.pathname);e&&e.has(t.pathname)?f={currentLocation:k.location,nextLocation:t}:F.has(t.pathname)&&(f={currentLocation:t,nextLocation:k.location})}else if(P){let e=F.get(k.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),F.set(k.location.pathname,e)),f={currentLocation:k.location,nextLocation:t}}V({...n,actionData:a,loaderData:o,historyAction:A,location:t,initialized:!0,renderFallback:!1,navigation:Ge,revalidation:`idle`,restoreScrollPosition:u,preventScrollReset:d,blockers:l},{viewTransitionOpts:f,flushSync:r===!0}),A=`POP`,te=!1,P=!1,oe=!1,se=!1,j?.resolve(),j=null,he?.resolve(),he=null}async function xe(t,n){if(j?.resolve(),j=null,typeof t==`number`){j||=cn();let n=j.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=et(!1,$e(k.location,k.matches,l,t,n?.fromRouteId,n?.relative),n),o;n?.unstable_mask&&(o={pathname:``,search:``,hash:``,...typeof n.unstable_mask==`string`?T(n.unstable_mask):{...k.location.unstable_mask,...n.unstable_mask}});let s=k.location,c=C(s,r,n&&n.state,void 0,o);c={...c,...e.history.encodeLocation(c)};let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&X(i.formMethod)&&i.formAction===k.location.pathname+k.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=Xe({currentLocation:s,nextLocation:c,historyAction:d});if(m){Ye(m,{state:`blocked`,location:c,proceed(){Ye(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:c}),xe(t,n)},reset(){let e=new Map(k.blockers);e.set(m,qe),V({blockers:e})}});return}await H(d,c,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.unstable_defaultShouldRevalidate})}function Se(){he||=cn(),Pe(),V({revalidation:`loading`});let e=he.promise;return k.navigation.state===`submitting`?e:k.navigation.state===`idle`?(H(k.historyAction,k.location,{startUninterruptedRevalidation:!0}
2),e):(H(A||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:P===!0}),e)}async function H(t,n,r){M&&M.abort(),M=null,A=t,oe=(r&&r.startUninterruptedRevalidation)===!0,at(k.location,k.matches),te=(r&&r.preventScrollReset)===!0,P=(r&&r.enableViewTransition)===!0;let i=c||s,a=r&&r.overrideNavigation,o=r?.initialHydration&&k.matches&&k.matches.length>0&&!x?k.matches:ne(i,n,l),u=(r&&r.flushSync)===!0;if(o&&k.initialized&&!se&&Bt(k.location,n)&&!(r&&r.submission&&X(r.submission.formMethod))){be(n,{matches:o},{flushSync:u});return}let d=ct(o,i,n.pathname);if(d.active&&d.matches&&(o=d.matches),!o){let{error:e,notFoundMatches:t,route:r}=Ze(n.pathname);be(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:u});return}M=new AbortController;let f=Ot(e.history,n,M.signal,r&&r.submission),p=e.getContext?await e.getContext():new O,m;if(r&&r.pendingError)m=[It(o).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&X(r.submission.formMethod)){let t=await U(f,n,r.submission,o,p,d.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Y(r)&&Oe(r.error)&&r.error.status===404){M=null,be(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}o=t.matches||o,m=t.pendingActionResult,a=en(n,r.submission),u=!1,d.active=!1,f=Ot(e.history,f.url,f.signal)}let{shortCircuited:h,matches:g,loaderData:_,errors:v}=await Ce(f,n,o,p,d.active,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,u,m,r&&r.callSiteDefaultShouldRevalidate);h||(M=null,be(n,{matches:g||o,...Ft(m),loaderData:_,errors:v}))}async function U(t,n,i,c,u,d,f,p={}){if(Pe(),V({navigation:tn(n,i)},{flushSync:p.flushSync===!0}),d){let e=await lt(c,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Lt(s);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=It(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)c=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Ze(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let m,h=Qt(c,n);if(!h.route.action&&!h.route.lazy)m={type:`error`,error:J(405,{method:t.method,pathname:n.pathname,routeId:h.route.id})};else{let e=await je(t,n,bt(a,o,t,n,c,h,f?[]:r,u),u,null);if(m=e[h.route.id],!m){for(let t of c)if(e[t.route.id]){m=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Gt(m)){let n;return n=p&&p.replace!=null?p.replace:Dt(m.response.headers.get(`Location`),new URL(t.url),l,e.history)===k.location.pathname+k.location.search,await Ae(t,m,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(Y(m)){let e=It(c,h.route.id);return(p&&p.replace)!==!0&&(A=`PUSH`),{matches:c,pendingActionResult:[e.route.id,m,h.route.id]}}return{matches:c,pendingActionResult:[h.route.id,m]}}async function Ce(t,n,i,u,d,f,p,m,h,g,_,v,y){let b=f||en(n,p),x=p||m||$t(b),S=!oe&&!g;if(d){if(S){let e=we(v);V({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await lt(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Lt(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=It(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Ze(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=c||s,{dsMatches:w,revalidatingFetchers:T}=tt(t,u,a,o,e.history,k,i,x,n,g?[]:r,g===!0,se,ce,R,fe,L,C,l,e.patchRoutesOnNavigation!=null,v,y);if(ue=++le,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=Be();return be(n,{matches:i,loaderData:{},errors:v&&Y(v[1])?{[v[0]]:v[1].error}:null,...Ft(v),...e?{fetchers:new Map(k.fetchers)}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=we(v);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Te(T)),V(e,{flushSync:_})}
2T.forEach(e=>{q(e.key),e.controller&&I.set(e.key,e.controller)});let E=()=>T.forEach(e=>q(e.key));M&&M.signal.addEventListener(`abort`,E);let{loaderResults:ee,fetcherResults:D}=await W(w,T,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener(`abort`,E),T.forEach(e=>I.delete(e.key));let O=Rt(ee);if(O)return await Ae(t,O.result,!0,{replace:h}),{shortCircuited:!0};if(O=Rt(D),O)return L.add(O.key),await Ae(t,O.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:A,errors:j}=Nt(k,i,ee,v,T,D);g&&k.errors&&(j={...k.errors,...j});let te=Be(),N=Ve(ue),P=te||N||T.length>0;return{matches:i,loaderData:A,errors:j,...P?{fetchers:new Map(k.fetchers)}:{}}}function we(e){if(e&&!Y(e[1]))return{[e[0]]:e[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function Te(e){return e.forEach(e=>{let t=k.fetchers.get(e.key),n=nn(void 0,t?t.data:void 0);k.fetchers.set(e.key,n)}),new Map(k.fetchers)}async function Ee(t,n,r,i){q(t);let a=(i&&i.flushSync)===!0,o=c||s,u=$e(k.location,k.matches,l,r,n,i?.relative),d=ne(o,u,l),f=ct(d,o,u);if(f.active&&f.matches&&(d=f.matches),!d){K(t,n,J(404,{pathname:u}),{flushSync:a});return}let{path:p,submission:m,error:h}=et(!0,u,i);if(h){K(t,n,h,{flushSync:a});return}let g=e.getContext?await e.getContext():new O,_=(i&&i.preventScrollReset)===!0;if(m&&X(m.formMethod)){await De(t,n,p,d,g,f.active,a,_,m,i&&i.unstable_defaultShouldRevalidate);return}fe.set(t,{routeId:n,path:p}),await ke(t,n,p,d,g,f.active,a,_,m)}async function De(t,n,i,u,d,f,p,m,h,g){Pe(),fe.delete(t),G(t,rn(h,k.fetchers.get(t)),{flushSync:p});let _=new AbortController,v=Ot(e.history,i,_.signal,h);if(f){let e=await lt(u,new URL(v.url).pathname,v.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){K(t,n,e.error,{flushSync:p});return}else if(e.matches)u=e.matches;else{K(t,n,J(404,{pathname:i}),{flushSync:p});return}}let b=Qt(u,i);if(!b.route.action&&!b.route.lazy){K(t,n,J(405,{method:h.formMethod,pathname:i,routeId:n}),{flushSync:p});return}I.set(t,_);let x=le,S=bt(a,o,v,i,u,b,r,d),C=await je(v,i,S,d,t),w=C[b.route.id];if(!w){for(let e of S)if(C[e.route.id]){w=C[e.route.id];break}}if(v.signal.aborted){I.get(t)===_&&I.delete(t);return}if(R.has(t)){if(Gt(w)||Y(w)){G(t,an(void 0));return}}else{if(Gt(w))if(I.delete(t),ue>x){G(t,an(void 0));return}else return L.add(t),G(t,nn(h)),Ae(v,w,!1,{fetcherSubmission:h,preventScrollReset:m});if(Y(w)){K(t,n,w.error);return}}let T=k.navigation.location||k.location,E=Ot(e.history,T,_.signal),ee=c||s,D=k.navigation.state===`idle`?k.matches:ne(ee,k.navigation.location,l);y(D,`Didn't find any matches after fetcher action`);let O=++le;de.set(t,O);let j=nn(h,w.data);k.fetchers.set(t,j);let{dsMatches:te,revalidatingFetchers:N}=tt(E,d,a,o,e.history,k,D,h,T,r,!1,se,ce,R,fe,L,ee,l,e.patchRoutesOnNavigation!=null,[b.route.id,w],g);N.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=k.fetchers.get(t),r=nn(void 0,n?n.data:void 0);k.fetchers.set(t,r),q(t),e.controller&&I.set(t,e.controller)}),V({fetchers:new Map(k.fetchers)});let P=()=>N.forEach(e=>q(e.key));_.signal.addEventListener(`abort`,P);let{loaderResults:re,fetcherResults:ie}=await W(te,N,E,T,d);if(_.signal.aborted)return;if(_.signal.removeEventListener(`abort`,P),de.delete(t),I.delete(t),N.forEach(e=>I.delete(e.key)),k.fetchers.has(t)){let e=an(w.data);k.fetchers.set(t,e)}let F=Rt(re);if(F)return Ae(E,F.result,!1,{preventScrollReset:m});if(F=Rt(ie),F)return L.add(F.key),Ae(E,F.result,!1,{preventScrollReset:m});let{loaderData:ae,errors:oe}=Nt(k,D,re,void 0,N,ie);Ve(O),k.navigation.state===`loading`&&O>ue?(y(A,`Expected pending action`),M&&M.abort(),be(k.navigation.location,{matches:D,loaderData:ae,errors:oe,fetchers:new Map(k.fetchers)})):(V({errors:oe,loaderData:Pt(k.loaderData,ae,D,oe),fetchers:new Map(k.fetchers)}),se=!1)}async function ke(t,n,i,s,c,l,u,d,f){let p=k.fetchers.get(t);G(t,nn(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=Ot(e.history,i,m.signal);if(l){let e=await lt(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){K(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{K(t,n,J(404,{pathname:i}),{flushSync:u});return}}let g=Qt(s,i);I.set(t,m);let _=le,v=(await je(h,i,bt(a,o,h,i,s,g,r,c),c,t))[g.route.id];if(I.get(t)===m&&I.delete(t),!h.signal.aborted){if(R.has(t)){G(t,an(void 0));return}if(Gt(v))if(ue>_){G(t,an(void 0));return}else{L.add(t),await Ae(h,v,!1,{preventScrollReset:d});return}if(Y(v)){K(t,n,v.error);return}G(t,an(v.data))}}async function Ae(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:c,replace:u}={}){a||(j?.resolve(),j=null),i.response.headers.has(`X-Remix-Revalidate`)&&(se=!0);let d=i.response.headers.get(`Location`);y(d,`Expected a Location header on the redirect Response`),d=Dt(d,new URL(r.url),l,e.history);let f=C(k.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(ve(d)){let n=ee(d,!0);e=n.origin!==t.location.origin||B(n.pathname,l)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}M=null;let p=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:m,formAction:h,formEncType:g}=k.navigation;!o&&!s&&m&&h&&g&&(o=$t(k.navigation));let _=o||s;We.has(i.response.status)&&_&&X(_.formMethod)?await H(p,f,{submission:{..._,formAction:d},preventScrollReset:c||te,enableViewTransition:a?P:void 0}):await H(p,f,{overrideNavigation:en(f,o),fetcherSubmission:s,preventScrollReset:c||te,enableViewTransition:a?P:void 0})}async function je(e,t,n,r,i){let a,o={};try{a=await xt(u,e,t,n,i,r,!1)}catch(e){return n.filter(e=>
2e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!X(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!k.loaderData.hasOwnProperty(e.route.id)&&(!k.errors||!k.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(Wt(r)){let i=r.result;o[t]={type:`redirect`,response:Tt(i,e,t,n,l)}}else o[t]=await wt(r);return o}async function W(e,t,n,r,i){let a=je(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await je(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:J(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Pe(){se=!0,fe.forEach((e,t)=>{I.has(t)&&ce.add(t),q(t)})}function G(e,t,n={}){k.fetchers.set(e,t),V({fetchers:new Map(k.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function K(e,t,n,r={}){let i=It(k.matches,t);Le(e),V({errors:{[i.route.id]:n},fetchers:new Map(k.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function Fe(e){return pe.set(e,(pe.get(e)||0)+1),R.has(e)&&R.delete(e),k.fetchers.get(e)||Ke}function Ie(e,t){q(e,t?.reason),G(e,an(null))}function Le(e){let t=k.fetchers.get(e);I.has(e)&&!(t&&t.state===`loading`&&de.has(e))&&q(e),fe.delete(e),de.delete(e),L.delete(e),R.delete(e),ce.delete(e),k.fetchers.delete(e)}function Re(e){let t=(pe.get(e)||0)-1;t<=0?(pe.delete(e),R.add(e)):pe.set(e,t),V({fetchers:new Map(k.fetchers)})}function q(e,t){let n=I.get(e);n&&(n.abort(t),I.delete(e))}function ze(e){for(let t of e){let e=an(Fe(t).data);k.fetchers.set(t,e)}}function Be(){let e=[],t=!1;for(let n of L){let r=k.fetchers.get(n);y(r,`Expected fetcher: ${n}`),r.state===`loading`&&(L.delete(n),e.push(n),t=!0)}return ze(e),t}function Ve(e){let t=[];for(let[n,r]of de)if(r<e){let e=k.fetchers.get(n);y(e,`Expected fetcher: ${n}`),e.state===`loading`&&(q(n),de.delete(n),t.push(n))}return ze(t),t.length>0}function He(e,t){let n=k.blockers.get(e)||qe;return z.get(e)!==t&&z.set(e,t),n}function Ue(e){k.blockers.delete(e),z.delete(e)}function Ye(e,t){let n=k.blockers.get(e)||qe;y(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(k.blockers);r.set(e,t),V({blockers:r})}function Xe({currentLocation:e,nextLocation:t,historyAction:n}){if(z.size===0)return;z.size>1&&b(!1,`A router only supports one blocker at a time`);let r=Array.from(z.entries()),[i,a]=r[r.length-1],o=k.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function Ze(e){let t=J(404,{pathname:e}),{matches:n,route:r}=Lt(c||s);return{notFoundMatches:n,route:r,error:t}}function Qe(e,t,n){if(m=e,g=t,h=n||null,!_&&k.navigation===Ge){_=!0;let e=ot(k.location,k.matches);e!=null&&V({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function it(e,t){return h&&h(e,t.map(e=>ie(e,k.loaderData)))||e.key}function at(e,t){if(m&&g){let n=it(e,t);m[n]=g()}}function ot(e,t){if(m){let n=it(e,t),r=m[n];if(typeof r==`number`)return r}return null}function ct(t,n,r){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:re(n,r,l,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:re(n,r,l,!0)}}return{active:!1,matches:null}}async function lt(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let u=t;for(;;){let t=c==null,d=c||s,f=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:i,patch:(e,t)=>{r.aborted||st(e,t,d,f,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:`aborted`};let p=ne(d,n,l),m=null;if(p&&(Object.keys(p[0].params).length===0||(m=re(d,n,l,!0),!(m&&u.length<m.length&&ut(u,m.slice(0,u.length))))))return{type:`success`,matches:p};if(m||=re(d,n,l,!0),!m||ut(u,m))return{type:`success`,matches:null};u=m}}function ut(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function dt(e){o={},c=N(e,a,void 0,o)}function ft(e,t,n=!1){let r=c==null;st(e,t,c||s,o,a,n),r&&(s=[...s],V({}))}return D={get basename(){return l},get future(){return d},get state(){return k},get routes(){return s},get window(){return t},initialize:ge,subscribe:ye,enableScrollRestoration:Qe,navigate:xe,fetch:Ee,revalidate:Se,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Fe,resetFetcher:Ie,deleteFetcher:Re,dispose:_e,getBlocker:He,deleteBlocker:Ue,patchRoutes:ft,_internalFetchControllers:I,_internalSetRoutes:dt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){V(e)}},e.unstable_instrumentations&&(D=Ne(D,e.unstable_instrumentations.map(e=>
2e.router).filter(Boolean))),D}function Qe(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function $e(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=H(r||`.`,Se(o),B(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Zt(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=ge({basename:n,pathname:c.pathname})),w(c)}function et(e,t,n){if(!n||!Qe(n))return{path:t};if(n.formMethod&&!Xt(n.formMethod))return{path:t,error:J(405,{method:n.formMethod})};let r=()=>({path:t,error:J(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=zt(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!X(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
3`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!X(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}y(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=At(n.formData),s=n.formData;else if(n.body instanceof FormData)o=At(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=jt(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=jt(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(X(c.formMethod))return{path:t,submission:c};let l=T(t);return e&&l.search&&Zt(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:w(l),submission:c}}function tt(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b){let x=y?Y(y[1])?y[1].error:y[1].data:void 0,S=i.createURL(a.location),C=i.createURL(c),w;if(u&&a.errors){let e=Object.keys(a.errors)[0];w=o.findIndex(t=>t.route.id===e)}else if(y&&Y(y[1])){let e=y[0];w=o.findIndex(t=>t.route.id===e)-1}let T=y?y[1].statusCode:void 0,E=T&&T>=400,ee={currentUrl:S,currentParams:a.matches[0]?.params||{},nextUrl:C,nextParams:o[0].params,...s,actionResult:x,actionStatus:T},D=ke(o),O=o.map((i,o)=>{let{route:s}=i,f=null;if(w!=null&&o>w)f=!1;else if(s.lazy)f=!0;else if(!nt(s))f=!1;else if(u){let{shouldLoad:e}=rt(s,a.loaderData,a.errors);f=e}else it(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return yt(n,r,e,c,D,i,l,t,f);let p=!1;typeof b==`boolean`?p=b:E?p=!1:d||S.pathname+S.search===C.pathname+C.search?p=!0:S.search===C.search?at(a.matches[o],i)&&(p=!0):p=!0;let m={...ee,defaultShouldRevalidate:p};return yt(n,r,e,c,D,i,l,t,ot(i,m),m,b)}),k=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,y=ne(g,e.path,_);if(!y){if(v&&m)return;k.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let x=Qt(y,e.path),S=new AbortController,C=Ot(i,e.path,S.signal),w=null;if(f.has(s))f.delete(s),w=bt(n,r,C,e.path,y,x,l,t);else if(m)d&&(w=bt(n,r,C,e.path,y,x,l,t));else{let i;i=typeof b==`boolean`?b:E?!1:d;let a={...ee,defaultShouldRevalidate:i};ot(x,a)&&(w=bt(n,r,C,e.path,y,x,l,t,a))}w&&k.push({key:s,routeId:e.routeId,path:e.path,matches:w,match:x,request:C,controller:S})}),{dsMatches:O,revalidatingFetchers:k}}function nt(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function rt(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!nt(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function it(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function at(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function ot(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function st(e,t,n,r,i,a){let o;if(e){let t=r[e];y(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n;let s=[],c=[];
3if(t.forEach(e=>{let t=o.find(t=>ct(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=N(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=N([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function ct(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>ct(e,t)))??!1:!1}var lt=new WeakMap,ut=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(y(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=lt.get(i);o||(o={},lt.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=A(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)b(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)b(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},dt=new WeakMap;function ft(e,t,n,r,i){let a=n[e.id];if(y(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=dt.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{y(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=te(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?b(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?b(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return dt.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=ut({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function pt(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function mt(e){return e.matches.some(e=>e.route.middleware)?ht(e,()=>pt(e)):pt(e)}function ht(e,t){return gt(e,t,e=>{if(Yt(e))throw e;return e},Ht,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=It(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function gt(e,t,n,r,i){let{matches:a,...o}=e;return await _t(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function _t(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await _t(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function vt(e,t,n,r,i){let a=ut({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=ft(r.route,X(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function yt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=vt(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?ot(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?ot(a,{...l,defaultShouldRevalidate:e}):ot(a,l):c}
3,resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!X(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(X(n.method)||!p)?St({request:n,path:r,unstable_pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function bt(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?yt(e,t,n,r,ke(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:vt(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function xt(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,unstable_url:kt(t,n),unstable_pattern:ke(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response.  You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return ht(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function St({request:e,path:t,unstable_pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=X(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,unstable_url:kt(e,t),unstable_pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw J(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}else if(t)c=await f(t);else{let t=new URL(e.url);throw J(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Ct(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function wt(e){let{result:t,type:n}=e;if(qt(t)){let e;try{e=await Ct(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new De(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Kt(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Vt(t),statusCode:Oe(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Oe(t)?t.status:void 0}:Kt(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Tt(e,t,n,r,i){let a=e.headers.get(`Location`);if(y(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!ve(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=$e(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Et=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Dt(e,t,n,r){if(ve(e)){let r=e,i=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(Et.includes(i.protocol))throw Error(`Invalid redirect location`);let a=B(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}try{let t=r.createURL(e);if(Et.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function Ot(e,t,n,r){let i=e.createURL(zt(t)).toString(),a={signal:n};if(r&&X(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=At(r.formData):a.body=r.formData}
3return new Request(i,a)}function kt(e,t){let n=new URL(e.url),r=typeof t==`string`?T(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function At(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function jt(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Mt(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&Y(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(y(!Gt(f),`Cannot handle redirect results in processLoaderData`),Y(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=It(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=Xe),c||(c=!0,s=Oe(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function Nt(e,t,n,r,i,a){let{loaderData:o,errors:s}=Mt(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let o=a[n];if(y(o,`Did not find corresponding fetcher result`),Y(o)){let t=It(e.matches,r?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:o.error}),e.fetchers.delete(n)}else if(Gt(o))y(!1,`Unhandled fetcher revalidation redirect`);else{let t=an(o.data);e.fetchers.set(n,t)}}),{loaderData:o,errors:s}}function Pt(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Xe).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function Ft(e){return e?Y(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function It(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function Lt(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function J(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new De(e||500,o,Error(s),!0)}function Rt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Gt(r))return{key:n,result:r}}}function zt(e){return w({...typeof e==`string`?T(e):e,hash:``})}function Bt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function Vt(e){return new De(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Ht(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Ut(t))}function Ut(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Wt(e){return qt(e.result)&&Ue.has(e.result.status)}function Y(e){return e.type===`error`}function Gt(e){return(e&&e.type)===`redirect`}function Kt(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function qt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Jt(e){return Ue.has(e)}function Yt(e){return qt(e)&&Jt(e.status)&&e.headers.has(`Location`)}function Xt(e){return He.has(e.toUpperCase())}function X(e){return Be.has(e.toUpperCase())}function Zt(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Qt(e,t){let n=typeof t==`string`?T(t).search:t.search;if(e[e.length-1].route.index&&Zt(n||``))return e[e.length-1];let r=xe(e);return r[r.length-1]}function $t(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function en(e,t){return t?{state:`loading`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:`loading`,location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tn(e,t){return{state:`submitting`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function nn(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function rn(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function an(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function on(e,t){try{let n=e.sessionStorage.getItem(Ye);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function sn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ye,JSON.stringify(n))}catch(e){b(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function cn(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var ln=u.createContext(null);ln.displayName=`DataRouter`;var un=u.createContext(null);un.displayName=`DataRouterState`;var dn=u.createContext(!1);function fn(){return u.useContext(dn)}var pn=u.createContext({isTransitioning:!1});pn.displayName=`ViewTransition`;var mn=u.createContext(new Map);mn.displayName=`Fetchers`;var hn=u.createContext(null);hn.displayName=`Await`;var Z=u.createContext(null);Z.displayName=`Navigation`;var gn=u.createContext(null);gn.displayName=`Location`;var Q=u.createContext({outlet:null,matches:[],isDataRoute:!1});Q.displayName=`Route`;var _n=u.createContext(null);_n.displayName=`RouteError`;var vn=`REACT_ROUTER_ERROR`,yn=`REDIRECT`,bn=`ROUTE_ERROR_RESPONSE`;function xn(e){if(e.startsWith(`${vn}:${yn}:{`))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 Sn(e){if(e.startsWith(`${vn}:${bn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new De(t.status,t.statusText,t.data)}catch{}}function Cn(e,{relative:t}={}){y(wn(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=u.useContext(Z),{hash:i,pathname:a,search:o}=Mn(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:U([n,a])),r.createHref({pathname:s,search:o,hash:i})}function wn(){return u.useContext(gn)!=null}
3function $(){return y(wn(),`useLocation() may be used only in the context of a <Router> component.`),u.useContext(gn).location}var Tn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function En(e){u.useContext(Z).static||u.useLayoutEffect(e)}function Dn(){let{isDataRoute:e}=u.useContext(Q);return e?Xn():On()}function On(){y(wn(),`useNavigate() may be used only in the context of a <Router> component.`);let e=u.useContext(ln),{basename:t,navigator:n}=u.useContext(Z),{matches:r}=u.useContext(Q),{pathname:i}=$(),a=JSON.stringify(Se(r)),o=u.useRef(!1);return En(()=>{o.current=!0}),u.useCallback((r,s={})=>{if(b(o.current,Tn),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=H(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:U([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var kn=u.createContext(null);function An(e){let t=u.useContext(Q).outlet;return u.useMemo(()=>t&&u.createElement(kn.Provider,{value:e},t),[t,e])}function jn(){let{matches:e}=u.useContext(Q),t=e[e.length-1];return t?t.params:{}}function Mn(e,{relative:t}={}){let{matches:n}=u.useContext(Q),{pathname:r}=$(),i=JSON.stringify(Se(n));return u.useMemo(()=>H(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Nn(e,t,n){y(wn(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=u.useContext(Z),{matches:i}=u.useContext(Q),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Qn(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) 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.
4
5Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let d=$(),f;if(t){let e=typeof t==`string`?T(t):t;y(c===`/`||e.pathname?.startsWith(c),`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 "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=d;let p=f.pathname||`/`,m=p;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);m=`/`+p.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=ne(e,{pathname:m});b(l||h!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),b(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.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=Bn(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:U([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:U([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?u.createElement(gn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,unstable_mask:void 0,...f},navigationType:`POP`}},g):g}function Pn(){let e=Yn(),t=Oe(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 
5Error!`),u.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?u.createElement(`pre`,{style:i},n):null,o)}var Fn=u.createElement(Pn,null),In=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?t.error:e.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`){let t=Sn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:u.createElement(Q.Provider,{value:this.props.routeContext},u.createElement(_n.Provider,{value:e,children:this.props.component}));return this.context?u.createElement(Rn,{error:e},t):t}};In.contextType=dn;var Ln=new WeakMap;function Rn({children:e,error:t}){let{basename:n}=u.useContext(Z);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=xn(t.digest);if(e){let r=Ln.get(t);if(r)throw r;let i=je(e.location,n);if(Ae&&!Ln.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Ln.set(t,n),n}return u.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function zn({routeContext:e,match:t,children:n}){let r=u.useContext(ln);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),u.createElement(Q.Provider,{value:e},n)}function Bn(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);y(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:ke(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let d,f=!1,p=null,m=null;r&&(d=a&&n.route.id?a[n.route.id]:void 0,p=n.route.errorElement||Fn,o&&(s<0&&c===0?(Qn(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):s===c&&(f=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=d?p:f?m:n.route.Component?u.createElement(n.route.Component,null):n.route.element?n.route.element:e,u.createElement(zn,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?u.createElement(In,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:l}):g()},null)}function Vn(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hn(e){let t=u.useContext(ln);return y(t,Vn(e)),t}function Un(e){let t=u.useContext(un);return y(t,Vn(e)),t}function Wn(e){let t=u.useContext(Q);return y(t,Vn(e)),t}function Gn(e){let t=Wn(e),n=t.matches[t.matches.length-1];return y(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Kn(){return Gn(`useRouteId`)}function qn(){return Un(`useNavigation`).navigation}function Jn(){let{matches:e,loaderData:t}=Un(`useMatches`);return u.useMemo(()=>e.map(e=>ie(e,t)),[e,t])}function Yn(){let e=u.useContext(_n),t=Un(`useRouteError`),n=Gn(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Xn(){let{router:e}=Hn(`useNavigate`),t=Gn(`useNavigate`),n=u.useRef(!1);return En(()=>{n.current=!0}),u.useCallback(async(r,i={})=>{b(n.current,Tn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Zn={};function Qn(e,t,n){!t&&!Zn[e]&&(Zn[e]=!0,b(!1,n))}var $n={};function er(e,t){!e&&!$n[t]&&($n[t]=!0,console.warn(t))}var tr=u.useOptimistic,nr=()=>void 0;function rr(e){return tr?tr(e):[e,nr]}function ir(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&b(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:u.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&b(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:u.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&b(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:u.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var ar=[`HydrateFallback`,`hydrateFallbackElement`],or=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>
5{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function sr({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){r=fn()||r;let[i,a]=u.useState(e.state),[o,s]=rr(i),[c,l]=u.useState(),[d,f]=u.useState({isTransitioning:!1}),[p,m]=u.useState(),[h,g]=u.useState(),[_,v]=u.useState(),y=u.useRef(new Map),b=u.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:d,viewTransitionOpts:_})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},unstable_pattern:ke(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),o.forEach(e=>y.current.delete(e)),er(d===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let b=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(er(_==null||b,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!_||!b){t&&d?t(()=>a(i)):r===!1?a(i):u.startTransition(()=>{r===!0&&s(e=>cr(e,i)),a(i)});return}if(t&&d){t(()=>{h&&(p?.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),l(void 0),f({isTransitioning:!1})})}),t(()=>g(n));return}h?(p?.resolve(),h.skipTransition(),v({state:i,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(l(i),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[e.window,t,h,p,r,s,n]);u.useLayoutEffect(()=>e.subscribe(b),[e,b]),u.useEffect(()=>{d.isTransitioning&&!d.flushSync&&m(new or)},[d]),u.useEffect(()=>{if(p&&c&&e.window){let t=c,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):u.startTransition(()=>{r===!0&&s(e=>cr(e,t)),a(t)}),await n});i.finished.finally(()=>{m(void 0),g(void 0),l(void 0),f({isTransitioning:!1})}),g(i)}},[c,p,e.window,r,s]),u.useEffect(()=>{p&&c&&o.location.key===c.location.key&&p.resolve()},[p,h,o.location,c]),u.useEffect(()=>{!d.isTransitioning&&_&&(l(_.state),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),v(void 0))},[d.isTransitioning,_]);let x=u.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),S=e.basename||`/`,C=u.useMemo(()=>({router:e,navigator:x,static:!1,basename:S,onError:n}),[e,x,S,n]);return u.createElement(u.Fragment,null,u.createElement(ln.Provider,{value:C},u.createElement(un.Provider,{value:o},u.createElement(mn.Provider,{value:y.current},u.createElement(pn.Provider,{value:d},u.createElement(pr,{basename:S,location:o.location,navigationType:o.historyAction,navigator:x,unstable_useTransitions:r},u.createElement(lr,{routes:e.routes,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function cr(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var lr=u.memo(ur);function ur({routes:e,future:t,state:n,isStatic:r,onError:i}){return Nn(e,void 0,{state:n,isStatic:r,onError:i,future:t})}function dr({to:e,replace:t,state:n,relative:r}){y(wn(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=u.useContext(Z);b(!i,`<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:a}=u.useContext(Q),{pathname:o}=$(),s=Dn(),c=H(e,Se(a),o,r===`path`),l=JSON.stringify(c);return u.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function fr(e){return An(e.context)}function pr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,unstable_useTransitions:o}){y(!wn(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=u.useMemo(()=>({basename:s,navigator:i,static:a,unstable_useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=T(n));let{pathname:l=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`,unstable_mask:h}=n,g=u.useMemo(()=>{let e=B(l,s);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m,unstable_mask:h},navigationType:r}},[s,l,d,f,p,m,r,h]);
5return b(g!=null,`<Router basename="${s}"> is not able to match the URL "${l}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:u.createElement(Z.Provider,{value:c},u.createElement(gn.Provider,{children:t,value:g}))}u.Component;var mr=`get`,hr=`application/x-www-form-urlencoded`;function gr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function _r(e){return gr(e)&&e.tagName.toLowerCase()===`button`}function vr(e){return gr(e)&&e.tagName.toLowerCase()===`form`}function yr(e){return gr(e)&&e.tagName.toLowerCase()===`input`}function br(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xr(e,t){return e.button===0&&(!t||t===`_self`)&&!br(e)}var Sr=null;function Cr(){if(Sr===null)try{new FormData(document.createElement(`form`),0),Sr=!1}catch{Sr=!0}return Sr}var wr=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Tr(e){return e!=null&&!wr.has(e)?(b(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hr}"`),null):e}function Er(e,t){let n,r,i,a,o;if(vr(e)){let o=e.getAttribute(`action`);r=o?B(o,t):null,n=e.getAttribute(`method`)||mr,i=Tr(e.getAttribute(`enctype`))||hr,a=new FormData(e)}else if(_r(e)||yr(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?B(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||mr,i=Tr(e.getAttribute(`formenctype`))||Tr(o.getAttribute(`enctype`))||hr,a=new FormData(o,e),!Cr()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(gr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=mr,r=null,i=hr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Dr={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Or=/[&><\u2028\u2029]/g;function kr(e){return e.replace(Or,e=>Dr[e])}function Ar(e,t){if(e===!1||e==null)throw Error(t)}function jr(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&B(i.pathname,t)===`/`?i.pathname=`${t.replace(/\/$/,``)}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,``)}.${r}`,i}async function Mr(e,t){if(e.id in t)return t[e.id];try{let r=await n(()=>import(e.module),[]);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Nr(e){return e!=null&&typeof e.page==`string`}function Pr(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 Fr(e,t,n){return Br((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Mr(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Pr).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Ir(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Lr(e,t,{includeHydrateFallback:n}={}){return Rr(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Rr(e){return[...new Set(e)]}function zr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Br(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Nr(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(zr(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Vr(){let e=u.useContext(ln);return Ar(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Hr(){let e=u.useContext(un);return Ar(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Ur=u.createContext(void 0);Ur.displayName=`FrameworkContext`;function Wr(){let e=u.useContext(Ur);return Ar(e,`You must render this element inside a <HydratedRouter> element`),e}function Gr(e,t){let n=u.useContext(Ur),[r,i]=u.useState(!1),[a,o]=u.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:d,onTouchStart:f}=t,p=u.useRef(null);u.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>
5{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),u.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e===`intent`?[a,p,{onFocus:Kr(s,m),onBlur:Kr(c,h),onMouseEnter:Kr(l,m),onMouseLeave:Kr(d,h),onTouchStart:Kr(f,m)}]:[a,p,{}]:[!1,p,{}]}function Kr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function qr({page:e,...t}){let{router:n}=Vr(),r=u.useMemo(()=>ne(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?u.createElement(Yr,{page:e,matches:r,...t}):null}function Jr(e){let{manifest:t,routeModules:n}=Wr(),[r,i]=u.useState([]);return u.useEffect(()=>{let r=!1;return Fr(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Yr({page:e,matches:t,...n}){let r=$(),{future:i,manifest:a,routeModules:o}=Wr(),{basename:s}=Vr(),{loaderData:c,matches:l}=Hr(),d=u.useMemo(()=>Ir(e,t,l,a,r,`data`),[e,t,l,a,r]),f=u.useMemo(()=>Ir(e,t,l,a,r,`assets`),[e,t,l,a,r]),p=u.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!d.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let u=jr(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[u.pathname+u.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,d,t,e,o]),m=u.useMemo(()=>Lr(f,a),[f,a]),h=Jr(f);return u.createElement(u.Fragment,null,p.map(e=>u.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>u.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>u.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Xr(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}u.Component;var Zr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Zr&&(window.__reactRouterVersion=`7.13.2`)}catch{}function Qr(e,t){return Ze({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:v({window:t?.window}),hydrationData:t?.hydrationData||$r(),routes:e,mapRouteProperties:ir,hydrationRouteProperties:ar,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function $r(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ei(e.errors)}),e}function ei(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new De(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function ti({basename:e,children:t,history:n,unstable_useTransitions:r}){let[i,a]=u.useState({action:n.action,location:n.location}),o=u.useCallback(e=>{r===!1?a(e):u.startTransition(()=>a(e))},[r]);return u.useLayoutEffect(()=>n.listen(o),[n,o]),u.createElement(pr,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,unstable_useTransitions:r})}ti.displayName=`unstable_HistoryRouter`;var ni=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ri=u.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,unstable_mask:o,state:s,target:c,to:l,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:_,unstable_useTransitions:v}=u.useContext(Z),y=typeof l==`string`&&ni.test(l),b=je(l,g);l=b.to;let x=Cn(l,{relative:r}),S=$(),C=null;if(o){let e=H(o,[],S.unstable_mask?S.unstable_mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:U([g,e.pathname])),C=_.createHref(e)}let[w,T,E]=Gr(n,m),ee=ui(l,{replace:a,unstable_mask:o,state:s,target:c,preventScrollReset:d,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v});function D(t){e&&e(t),t.defaultPrevented||ee(t)}let O=!(b.isExternal||i),k=u.createElement(`a`,{...m,...E,href:(O?C:void 0)||b.absoluteURL||x,onClick:O?D:e,ref:Xr(h,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?u.createElement(u.Fragment,null,k,u.createElement(qr,{page:x})):k});ri.displayName=`Link`;var ii=u.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let d=Mn(a,{relative:c.relative}),f=$(),p=u.useContext(un),{navigator:m,basename:h}=u.useContext(Z),g=p!=null&&bi(d)&&o===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=B(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(
5Boolean).join(` `);let E=typeof i==`function`?i(C):i;return u.createElement(ri,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});ii.displayName=`NavLink`;var ai=u.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=mr,action:s,onSubmit:c,relative:l,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:p,...m},h)=>{let{unstable_useTransitions:g}=u.useContext(Z),_=pi(),v=mi(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&ni.test(s);return u.createElement(`form`,{ref:h,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,m=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:p});g&&n!==!1?u.startTransition(()=>m()):m()},...m,"data-discover":!b&&e===`render`?`true`:void 0})});ai.displayName=`Form`;function oi({getKey:e,storageKey:t,...n}){let r=u.useContext(Ur),{basename:i}=u.useContext(Z),a=$(),o=Jn();vi({getKey:e,storageKey:t});let s=u.useMemo(()=>{if(!r||!e)return null;let t=_i(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];
5typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return u.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${kr(JSON.stringify(t||hi))}, ${kr(JSON.stringify(s))})`}})}oi.displayName=`ScrollRestoration`;function si(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ci(e){let t=u.useContext(ln);return y(t,si(e)),t}function li(e){let t=u.useContext(un);return y(t,si(e)),t}function ui(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:c,unstable_useTransitions:l}={}){let d=Dn(),f=$(),p=Mn(e,{relative:o});return u.useCallback(m=>{if(xr(m,t)){m.preventDefault();let t=n===void 0?w(f)===w(p):n,h=()=>d(e,{replace:t,unstable_mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:c});l?u.startTransition(()=>h()):h()}},[f,d,p,n,r,i,t,e,a,o,s,c,l])}var di=0,fi=()=>`__${String(++di)}__`;function pi(){let{router:e}=ci(`useSubmit`),{basename:t}=u.useContext(Z),n=Kn(),r=e.fetch,i=e.navigate;return u.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Er(e,t);a.navigate===!1?await r(a.fetcherKey||fi(),n,a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function mi(e,{relative:t}={}){let{basename:n}=u.useContext(Z),r=u.useContext(Q);y(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Mn(e||`.`,{relative:t})},o=$();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:U([n,a.pathname])),w(a)}var hi=`react-router-scroll-positions`,gi={};function _i(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:B(e.pathname,n)||e.pathname},t)),i??=e.key,i}function vi({getKey:e,storageKey:t}={}){let{router:n}=ci(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=li(`useScrollRestoration`),{basename:a}=u.useContext(Z),o=$(),s=Jn(),c=qn();u.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),yi(u.useCallback(()=>{if(c.state===`idle`){let t=_i(o,s,a,e);gi[t]=window.scrollY}try{sessionStorage.setItem(t||hi,JSON.stringify(gi))}catch(e){b(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(u.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||hi);e&&(gi=JSON.parse(e))}catch{}},[t]),u.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(gi,()=>window.scrollY,e?(t,n)=>_i(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),u.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{b(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function yi(e,t){let{capture:n}=t||{};u.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function bi(e,{relative:t}={}){let n=u.useContext(pn);y(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ci(`useViewTransitionState`),i=Mn(e,{relative:t});if(!n.isTransitioning)return!1;let a=B(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=B(n.nextLocation.pathname,r)||n.nextLocation.pathname;return z(i.pathname,o)!=null||z(i.pathname,a)!=null}var xi=e(t(),1);function Si(e){return u.createElement(sr,{flushSync:xi.flushSync,...e})}function Ci(e){return Math.round(e*100)/100}function wi(){(0,u.useEffect)(()=>
5{if(typeof window>`u`)return;let e=document.documentElement,t=window.visualViewport,n=0,r=()=>{n=0;let r=Ci(t?.height??window.innerHeight);e.style.setProperty(`--app-visual-viewport-height`,`${r}px`),e.dataset.viewportReady=`true`},i=()=>{n===0&&(n=window.requestAnimationFrame(r))};return i(),window.addEventListener(`resize`,i,{passive:!0}),window.addEventListener(`orientationchange`,i),t?.addEventListener(`resize`,i),t?.addEventListener(`scroll`,i),()=>{n!==0&&window.cancelAnimationFrame(n),window.removeEventListener(`resize`,i),window.removeEventListener(`orientationchange`,i),t?.removeEventListener(`resize`,i),t?.removeEventListener(`scroll`,i),delete e.dataset.viewportReady,e.style.removeProperty(`--app-visual-viewport-height`)}},[])}var Ti=[{id:`saas-bootstrap`,navLabel:`SaaS Bootstrapped`,navSubLabel:`Nova Software`,navMeta:`01`,title:`$1M Sales, 3K Users in Year 1`,category:`Product / Startup`,...s(`saas-bootstrap`),links:[{label:`Experience`,href:`/experience/nova-software`},{label:`Project`,href:`/projects/nova-bot`}],progressBarsFilled:8,progressBarsTotal:8},{id:`forbes-feature`,navLabel:`Forbes Innovation`,navSubLabel:`Nova Software`,navMeta:`02`,title:`Forbes Feature: Viral Freebie Bot`,category:`Product Innovation / Viral Bots`,...s(`forbes-feature`),links:[{label:`Experience`,href:`/experience/nova-software`},{label:`Project`,href:`/projects/nova-bot`},{label:`Forbes Article`,href:`https://www.forbes.com/sites/laurendebter/2022/11/25/freebie-bots-holiday-shopping/`,external:!0}],progressBarsFilled:8,progressBarsTotal:8},{id:`alert-campaign`,navLabel:`Historic Airdrop`,navSubLabel:`Boomer on Base`,navMeta:`03`,title:`Largest Base Airdrop in History`,category:`Growth Execution`,...s(`alert-campaign`),links:[{label:`Project`,href:`/projects/boomer-on-base`}],progressBarsFilled:7,progressBarsTotal:8},{id:`creator-shops-award`,navLabel:`Hackathon Award`,navSubLabel:`Creator Shops`,navMeta:`04`,title:`"Most Potential to Bring in Normies"`,category:`Hackathon / Consumer Crypto`,...s(`creator-shops-award`),links:[{label:`X Post`,href:`https://x.com/Grif_gg/status/1960421105124172233`,external:!0}],progressBarsFilled:6,progressBarsTotal:8}],Ei=Ti[0]?.id??`saas-bootstrap`;l(`achievements`,new Set(Ti.map(e=>e.id)));var Di=[{id:`gov-contract-finder`,navLabel:`Gov Contract Finder`,navSubLabel:`Founding Engineer`,title:`Founding Engineer`,organization:`Gov Contract Finder`,dateRange:`Jan 2024 - Present`,...c(`gov-contract-finder`),stack:[`TypeScript`,`Python`,`React`,`Next.js`,`PostgreSQL`,`OpenAI API`,`AWS`],loadout:{perks:[{title:`200k+ Contract Index`,description:`Built ingestion pipeline for Federal government contracts and stored them in elasticsearch for fast retrieval.`,slot:`perk1`,assetId:`scavenger-pro`},{title:`AI Bidding Assistant`,description:`Built an AI bidding assistant that used a document processing pipeline, pgvector stores, and the OpenAI API to match, qualify, and draft against document heavy opportunities.`,slot:`perk2`,assetId:`hardline-pro`},{title:`Custom CRM`,description:`Built a custom CRM for government contractors to manage their opportunities, bids, and compliance requirements.`,slot:`perk3`,assetId:`sitrep-pro`}],streak:{title:`Founder Driven Product Loop`,description:`Used demos, onboarding, and customer feedback to shape both the technical system and the commercial motion around it.`,assetId:`painkiller`}}},{id:`grif-tech-llc`,navLabel:`Grif Tech LLC`,navSubLabel:`Software Engineer`,title:`Software Engineer`,organization:`Grif Tech LLC`,dateRange:`Aug 2023 - Present`,...c(`grif-tech-llc`),stack:[`TypeScript`,`Go`,`Python`,`Node.js`,`BullMQ`,`Google Cloud Pub/Sub`,`Shopify APIs`,`OpenAI API`,`MongoDB`],loadout:{perks:[{title:`12+ Production Systems`,description:`Delivered client systems across AI, commerce, SaaS, and Web3 from architecture through deployment.`,slot:`perk1`,assetId:`one-man-army-pro`},{title:`Automation Studio`,description:`Converted manual business operations into structured AI workflows, review queues, and internal tools built for real use.`,slot:`perk2`,assetId:`danger-close-pro`},{title:`Event Based Integrations`,description:`Built integrations that handled retries, rate limits, webhooks, queues, and background jobs without losing delivery speed.`,slot:`perk3`,assetId:`commando-pro`}],streak:{title:`Problem First Delivery`,description:`Moved across domains and client contexts without losing rigor on architecture, operating workflows, or production readiness.`,assetId:`painkiller`}}},{id:`nova-software`,navLabel:`Nova Software`,navSubLabel:`Founding Engineer`,title:`Founding Engineer`,organization:`Nova Software`,dateRange:`Jan 2021 - Aug 2023`,...c(`nova-software`),stack:[`Go`,`TypeScript`,`Electron`,`React Native`,`Stripe`,`Redis`,`MongoDB`,`WebSockets`,`AWS`],loadout:{perks:[{title:`$50M+ Transaction Flow`,description:`Built the platform infrastru
5cture behind $50M+ in transactions and $1M+ in first year revenue.`,slot:`perk1`,assetId:`marathon-pro`},{title:`Distributed Execution Plane`,description:`Coordinated 50,000+ time sensitive concurrent tasks across queues, workers, proxies, alerts, and control surfaces for operators.`,slot:`perk2`,assetId:`stopping-power-pro`},{title:`Realtime Systems Discipline`,description:`Built a system around concurrency, low latency, failure recovery, and clear control surfaces.`,slot:`perk3`,assetId:`ninja-pro`}],streak:{title:`Founder Driven Product Execution`,description:`Engaged deeply with the community to understand their needs and build a product that they wanted.`,assetId:`final-stand`}}},{id:`bake-more-pies`,navLabel:`Bake More Pies`,navSubLabel:`Web Development / Project Coordinator`,title:`Web Development / Project Coordinator`,organization:`Bake More Pies`,dateRange:`Aug 2019 - Apr 2021`,...c(`bake-more-pies`),stack:[`JavaScript`,`HTML/CSS`,`QA`,`CI/CD`],loadout:{perks:[{title:`Delivery Coordination`,description:`Kept implementation, feedback, and release work aligned across teams instead of letting projects stall between handoffs.`,slot:`perk1`,assetId:`scavenger-pro`},{title:`QA Discipline`,description:`Strengthened testing and validation habits that made later product and platform work more reliable.`,slot:`perk2`,assetId:`lightweight-pro`},{title:`Release Readiness`,description:`Helped turn active client work into clean launches through better process, coordination, and deployment flow.`,slot:`perk3`,assetId:`steady-aim-pro`}],streak:{title:`Execution Hygiene`,description:`Built the practical shipping discipline that later supported larger systems, faster delivery, and better operational follow through.`,assetId:`painkiller`}}},{id:`ominous-blockchain`,navLabel:`Ominous Blockchain`,navSubLabel:`Software Engineer`,title:`Software Engineer`,organization:`Ominous Blockchain`,dateRange:`Jan 2017 - Mar 2019`,...c(`ominous-blockchain`),stack:[`Node.js`,`Go`,`Linux`,`Distributed Systems`],loadout:{perks:[{title:`Live Mining Operations`,description:`Improved uptime on Ethereum and Ravencoin mining infrastructure with monitoring, restart automation, and production support.`,slot:`perk1`,assetId:`bling-pro`},{title:`Distributed Storage Work`,description:`Contributed to a storage network built in Go spanning backend services, peer coordination, and scaling concerns.`,slot:`perk2`,assetId:`cold-blooded-pro`},{title:`Infrastructure Foundations`,description:`Built hands on depth in Linux, networking, and distributed reliability through live operational systems.`,slot:`perk3`,assetId:`ninja-pro`}],streak:{title:`Operational Instincts`,description:`Developed a production mindset rooted in uptime, monitoring, and practical systems thinking that carried into later platform work.`,assetId:`final-stand`}}},{id:`university-of-tampa`,navLabel:`University of Tampa`,navSubLabel:`B.S. in Management Information Systems`,title:`B.S. in Management Information Systems`,organization:`University of Tampa`,dateRange:`2016 - 2019`,...c(`university-of-tampa`),stack:[`Python`,`MySQL`],loadout:{perks:[{title:`Solid Foundations`,description:`Built the baseline systems and software knowledge that later roles compounded into product and platform work.`,slot:`perk1`,assetId:`scavenger-pro`},{title:`Accelerated Growth`,description:`Turned core MIS coursew
5ork into practical momentum toward engineering and systems oriented work.`,slot:`perk2`,assetId:`lightweight-pro`},{title:`Technical Accuracy`,description:`Strengthened software, database, and systems thinking through structured academic training.`,slot:`perk3`,assetId:`steady-aim-pro`}]}}],Oi=`gov-contract-finder`;l(`experience`,new Set(Di.map(e=>e.id)));var ki=[{id:`gov-contract-finder`,navLabel:`Gov Contract Finder`,navMeta:`01`,navSubLabel:`AI SaaS · GovTech`,title:`Gov Contract Finder`,surfaceLabel:`Website`,surfaceHref:`https://govcontractfinder.com/`,focusTags:[`Gov contracting`,`Retrieval`,`Proposal workflows`],...o(`gov-contract-finder`),stack:[`TypeScript`,`Python`,`PostgreSQL`,`OpenAI API`,`AWS`,`React`,`Next.js`,`Docker`],loadout:{heroMedia:{kind:`cloudflare-stream`,customerCode:`mc4g6m8led42vnd8`,videoId:`2f0742a52ca8bcabf834f0dc331162b1`,posterUrl:`https://customer-mc4g6m8led42vnd8.cloudflarestream.com/2f0742a52ca8bcabf834f0dc331162b1/thumbnails/thumbnail.jpg`,aspectRatio:1920/1440},perks:[{title:`Indexed 200k+ Federal Contracts`,description:`Indexed 200k+ federal contracts into elasticsearch for fast retrieval.`,slot:`perk1`,assetId:`scavenger-pro`},{title:`Eligibility Retrieval`,description:`Mapped certifications, NAICS codes, compliance rules, and metadata into structured matching workflows instead of loose search results.`,slot:`perk2`,assetId:`hardline-pro`},{title:`Document-Aware Drafting`,description:`Used long-form procurement documents to drive LLM-assisted drafting, gap analysis, and submission-readiness workflows.`,slot:`perk3`,assetId:`sitrep-pro`}],streak:{title:`End-to-End Contracting Surface`,description:`Covered discovery through drafting in one stack by combining app layer, data pipelines, retrieval design, and cloud operations.`,assetId:`painkiller`}}},{id:`nova-bot`,navLabel:`Nova Bot`,navMeta:`02`,navSubLabel:`Retail automation · Desktop`,title:`Nova Bot`,surfaceLabel:`Repository`,surfaceHref:`https://github.com/rbuddy101/Nova-Software`,focusTags:[`Distributed execution`,`Queues`,`Recovery`],...o(`nova-bot`),stack:[`Go`,`Node.js`,`Electron`,`Redis`,`Socket.IO`,`MongoDB`,`TLS Client`],loadout:{heroMedia:{kind:`cloudflare-stream`,customerCode:`mc4g6m8led42vnd8`,videoId:`b702d9831e890ece721a10cdf70a3d59`,posterUrl:`https://customer-mc4g6m8led42vnd8.cloudflarestream.com/b702d9831e890ece721a10cdf70a3d59/thumbnails/thumbnail.jpg`,aspectRatio:1280/720},perks:[{title:`Electron Desktop App`,description:`Deployed Windows, Mac, and Linux desktop apps for retail automation across Amazon and Walmart.`,slot:`perk1`,assetId:`marathon-pro`},{title:`Hive mind monitoring`,description:`Developed a WebSocket-based monitoring system where distributed clients could share alerts with each other.`,slot:`perk2`,assetId:`stopping-power-pro`},{title:`Reverse Engineer`,description:`Decompiled enterprise websites to optimize checkout flows, avoid bot protection, and decrease checkout times.`,slot:`perk3`,assetId:`ninja-pro`}],streak:{title:`Held Through Spikes`,description:`Kept the platform useful through heavy traffic spikes and long running tasks.`,assetId:`final-stand`}}},{id:`server-buddy`,navLabel:`Server Buddy`,navMeta:`03`,navSubLabel:`Internal tooling · Server ops`,title:`Server Buddy`,surfaceLabel:`Repository`,surfaceHref:`https://github.com/rbuddy101/server-buddy`,focusTags:[`Windows ops`,`RDP automation`,`Monitoring`],...o(`server-buddy`),stack:[`Node.js`,`Electron`,`PowerShell`,`Express`,`Socket.IO`,`MySQL`],loadout:{heroMedia:{kind:`youtube`,url:`https://www.youtube.com/watch?v=QjAEy_jLQOs`,aspectRatio:16/9},perks:[{title:`One-Panel Server Ops`,description:`Pulled common Windows administration tasks into one operator workflow instead of scattered manual steps and remote sessions.`,slot:`perk1`,assetId:`slight-of-hand-pro`},{title:`Privileged Automation`,description:`Wrapped security-sensitive RDP, firewall, and system-maintenance actions in repeatable software flows.`,slot:`perk2`,assetId:`cold-blooded-pro`},{title:`Operational Visibility`,description:`Built a web dashboard to monitor server state, set up alerts, and run recovery jobs.`,slot:`perk3`,assetId:`sitrep-pro`}],streak:{title:`Ops Recovery Layer`,description:`Gave operators a safer, faster way to diagnose and recover from live Windows infrastru
5cture issues.`,assetId:`painkiller`}}},{id:`dimes`,navLabel:`Dimes / localhost`,navMeta:`04`,navSubLabel:`Builder spaces · Access platform`,title:`Dimes / localhost`,surfaceLabel:`Platform`,surfaceHref:`https://dimes.io/`,focusTags:[`Physical access`,`Stripe metering`,`GitHub intelligence`],...o(`dimes`),stack:[`TypeScript`,`Next.js`,`PostgreSQL`,`Privy`,`GitHub App`,`Stripe`,`React`],loadout:{heroMedia:{kind:`image`,sources:[`/projects/dimes.png`],altTexts:[`Dimes / localhost platform preview: builder workspaces, access billing, and member tooling.`]},perks:[{title:`Metered Door Access`,description:`Built QR scanning at the entrance that validates passes in real time and pairs with Stripe for monthly subscriptions plus daily access billed on scan-in, keeping billing honest to actual visits.`,slot:`perk1`,assetId:`hardline-pro`},{title:`Operator & Member Surfaces`,description:`Delivered an admin panel for membership operations, an interactive calendar for what is happening on-site, and Google and Apple Wallet passes so builders carry access like any other scan-to-enter credential.`,slot:`perk2`,assetId:`sitrep-pro`},{title:`Repository Intelligence`,description:`Integrated a GitHub App so connected builders expose the repos they work on, the stacks in play, and a clearer picture of shipped work.`,slot:`perk3`,assetId:`scavenger-pro`}],streak:{title:`Physical Product Loop`,description:`Connected identity, payments, door hardware, calendar programming, and developer signal into one platform for in-person builder spaces.`,assetId:`painkiller`}}},{id:`boomer-on-base`,navLabel:`Boomer on Base`,navMeta:`05`,navSubLabel:`Web3 growth · Campaign`,title:`Boomer on Base`,surfaceLabel:`Project`,surfaceHref:`https://x.com/BoomerOnBase`,focusTags:[`Airdrop campaign`,`Growth infra`,`Merchant adoption`],...o(`boomer-on-base`),stack:[`Node.js`,`Ethers`,`Solidity`,`Express`,`MySQL`,`WordPress`],loadout:{heroMedia:{kind:`image`,sources:[`/projects/boomer-on-base.jpg`],altTexts:[`Boomer on Base campaign visual used in William Rogers portfolio.`]},perks:[{title:`Campaign Infrastructure`,description:`Pulled growth systems, alerts, and execution coordination into one push for a record-scale campaign outcome.`,slot:`perk1`,assetId:`one-man-army-pro`},{title:`Distribution at Scale`,description:`Scaled the campaign into 100,000+ alerts and a $100M+ trading-volume result through coordinated execution.`,slot:`perk2`,assetId:`danger-close-pro`},{title:`Speed Under Pressure`,description:`Onboarded thousands of members in 1 month with optimized user flows.`,slot:`perk3`,assetId:`commando-pro`}],streak:{title:`Last Push Effect`,description:`Turned concentrated campaign pressure into adoption, attention, and measurable growth.`,assetId:`martyrdom`}}},{id:`car-sniper`,navLabel:`Car Sniper`,navMeta:`06`,navSubLabel:`Marketplace aggregation · Live`,title:`Car Sniper`,surfaceLabel:`Repository`,surfaceHref:`https://github.com/rbuddy101/car-sniper`,focusTags:[`Aggregation`,`Deduplication`,`Realtime alerts`],...o(`car-sniper`),stack:[`Node.js`,`Express`,`MySQL`,`Redis`,`Socket.IO`,`TLS Client`,`Tesseract`],loadout:{heroMedia:{kind:`image`,sources:[`/projects/car-sniper.jpg`],altTexts:[`Car Sniper dashboard preview for vehicle marketplace aggregation and alerts.`]},perks:[{title:`Marketplace Normalization`,description:`Normalized inventory from 10+ listing sources into a consistent intelligence feed despite messy source formats.`,slot:`perk1`,assetId:`scavenger-pro`},{title:`Computer Vision`,description:`Used computer vision and OCR to extract and normalize vehicle details from raw marketplace listings.`,slot:`perk2`,assetId:`hardline-pro`},{title:`Realtime Match Alerts`,description:`Used websocket delivery to surface new opportunities the moment they appeared.`,slot:`perk3`,assetId:`scrambler-pro`}],streak:{title:`Competitive Mimicry`,description:`Delivered enterprise-style listing intelligence with practical tooling and without enterprise dealership software pricing.`,assetId:`copycat`}}},{id:`nova-mobile`,navLabel:`Nova Mobile`,navMeta:`07`,navSubLabel:`Mobile companion · React Native`,title:`Nova Mobile`,surfaceLabel:`Demo`,surfaceHref:`https://github.com/rbuddy101/Nova-Software`,focusTags:[`Task monitoring`,`Alerts`,`Remote control`],...o(`nova-mobile`),stack:[`React Native`,`Expo`,`Node.js`,`Socket.IO`,`Redis`,`Express`],loadout:{heroMedia:{kind:`cloudflare-stream`,customerCode:`mc4g6m8led42vnd8`,videoId:`df64ccb9473223bf842d1fb7db4a39d9`,posterUrl:`https://customer-mc4g6m8led42vnd8.cloudflarestream.com/df64ccb9473223bf842d1fb7db4a39d9/thumbnails/thumbnail.jpg`,aspectRatio:480/852},perks:[{title:`Remote Control Surface`,description:`Extended Nova into a mobile surface that stayed useful while users were away from the desktop client.`,slot:`perk1`,assetId:`marathon-pro`},{title:`Quick Intervention`,description:`Allowed users to quickly adjust tasks, which led to higher success rates and more profit for users.`,slot:`perk2`,assetId:`lightweight-pro`},{title:`Focused Alerts`,description:`Delivered live monitoring and checkout alerts so users could act on them immediately.`,slot:`perk3`,assetId:`steady-aim-pro`}],streak:{title:`Full control parity`,description:`Mimics all desktop app functionality on a mobile device.`,assetId:`painkiller`}}},{id:`bldr`,navLabel:`BLDR`,navMeta:`08`,navSubLabel:`Web3 SaaS · Community tooling`,title:`BLDR`,surfaceLabel:`Platform`,surfaceHref:`https://bldr.social/`,focu
5sTags:[`Community ops`,`Gamified engagement`,`Builder tooling`],...o(`bldr`),stack:[`TypeScript`,`Telegram Bot`,`Solidity`,`PostgreSQL`,`Redis`],loadout:{heroMedia:{kind:`image`,sources:[`/projects/bldr.png`],altTexts:[`BLDR platform preview for Web3 community management and campaign tooling.`]},perks:[{title:`Telegram Operations Layer`,description:`Covered core community needs with Telegram security, buy, NFT sales, and raid bots built for active moderation and engagement.`,slot:`perk1`,assetId:`one-man-army-pro`},{title:`Campaign Utility Suite`,description:`Added operator tooling for airdrops, giveaway selection, and multisig recovery so community campaigns and support workflows lived in one product.`,slot:`perk2`,assetId:`danger-close-pro`},{title:`Project Visibility Surfaces`,description:`Rounded out the platform with dashboards, content distribution, and shareable BLDR Link pages for public-facing project presence.`,slot:`perk3`,assetId:`sitrep-pro`}],streak:{title:`All-In-One Community Stack`,description:`Pulled security, growth, analytics, and project-discovery tooling into a single Web3 platform instead of a fragmented ops workflow.`,assetId:`painkiller`}}},{id:`scotty-cameron-bot`,navLabel:`Scotty Cameron Bot`,navMeta:`09`,navSubLabel:`Collector resale · Automation`,title:`Scotty Cameron Bot`,surfaceLabel:`Automation`,surfaceHref:`https://github.com/rbuddy101/Nova-Software/tree/main/nova-task-engine/ace`,focusTags:[`Go concurrency`,`Restock monitoring`,`Inventory ops`],...o(`scotty-cameron-bot`),stack:[`Go`,`Automation`,`Concurrent monitoring`,`Google Sheets`,`Inventory tracking`,`Pricing analysis`,`Collector resale`],loadout:{heroMedia:{kind:`image`,sources:[`/projects/scotty-cameron-bot/putters-kitchen.png`,`/projects/scotty-cameron-bot/headcovers-doorway.png`,`/projects/scotty-cameron-bot/collection-bedspread.png`,`/projects/scotty-cameron-bot/payout-ledger.png`],altTexts:[`Scotty Cameron Bot project photo showing putters arranged on a kitchen counter.`,`Scotty Cameron Bot project photo showing collector headcovers displayed in a doorway.`,`Scotty Cameron Bot project photo showing a bedspread covered with collector inventory.`,`Scotty Cameron Bot payout ledger screenshot used for resale tracking.`]},perks:[{title:`Reverse-Engineered Flow`,description:`Bypassed hCaptcha bot protection allowing for checkouts before any other bot could react.`,slot:`perk1`,assetId:`hardline-pro`},{title:`Profit Maximization`,description:`In 5 months we internally sourced more than $500,000 in inventory.`,slot:`perk2`,assetId:`bling-pro`},{title:`Predictive Brute Force Monitoring`,description:`Guessed new product IDs before they were released to the public, allowing products to be bought before they even went live.`,slot:`perk3`,assetId:`sitrep-pro`}],streak:{title:`Market Takeover`,description:`Scotty Cameron had to change their website to a raffle after we bought every single putter they had in stock.`,assetId:`painkiller`}}}],Ai=`gov-contract-finder`;l(`projects`,new Set(ki.map(e=>e.id)));var ji={surface:`shell`,enableViewTransition:!0,showGlobalPendingBar:!0},Mi={surface:`loading`,enableViewTransition:!1,showGlobalPendingBar:!1},Ni={surface:`game`,enableViewTransition:!1,showGlobalPendingBar:!1};function Pi(e){return e===`/game`||e.startsWith(`/game/`)?Ni:e===`/loading`||e.startsWith(`/loading/`)?Mi:ji}var Fi=a(),Ii=Qr([{id:`root`,path:`/`,hydrateFallbackElement:(0,Fi.jsx)(`div`,{role:`status`,"aria-live":`polite`,style:{alignItems:`center`,display:`grid`,minHeight:`var(--app-dynamic-block-size)`,placeItems:`center`},children:`Loading route...`}),lazy:()=>n(()=>import(`./root-8UZvoEuW.js`),__vite__mapDeps([0,1,2,3,4,5,6])),children:[{index:!0,loader:()=>Ee(`/lobby`)},{id:`lobby`,path:`lobby`,handle:ji,lazy:()=>n(()=>import(`./lobby-ErL87BwB.js`),__vite__mapDeps([7,1,2,3,4,8,9,10,11,5]))},{id:`loading`,path:`loading`,handle:Mi,lazy:()=>n(()=>import(`./loading-BNhsY2mO.js`),__vite__mapDeps([12,1,2,13,14,15,3,16,17,4]))},{id:`game`,path:`game`,handle:Ni,lazy:()=>n(()=>import(`./game-DZfOcrzg.js`),__vite__mapDeps([18,1,2,13,14,3,17,19,4,20,10,21,11,8,22,5,16,6,23]))},{path:`experience`,loader:()=>Ee(`/experience/${Oi}`)},{id:`experience`,path:`experience/:entryId`,handle:ji,lazy:()=>n(()=>import(`./experience-rqu7UtHz.js`),__vite__mapDeps([24,2,1,21,3,11,25,4,20,10,9]))},{path:`projects`,loader:()=>Ee(`/projects/${Ai}`)},{id:`projects`,path:`projects/:entryId`,handle:ji,lazy:()=>n(()=>import(`./projects-DTR9Pivt.js`),__vite__mapDeps([26,2,1,21,3,11,25,4,20,10,9]))},{path:`achievements`,loader:()=>Ee(`/achievements/${Ei}`)},{id:`achievements`,path:`achievements/:entryId`,handle:ji,lazy:()=>n(()=>import(`./achievements-DIYW0iAt.js`),__vite__mapDeps([27,2,1,3,4,9,21,11,22]))},{path:`*`,loader:()=>Ee(`/`)}]}]);function Li(){return wi(),(0,Fi.jsx)(Si,{router:Ii})}var Ri={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_MAP_ASSET_BASE_URL:`https://map-assets.griftech.dev`,VITE_SITE_URL:`https://rust-map.pages.dev`}.VITE_ADOBE_FONTS_PROJECT_ID,zi=typeof Ri==`string`?Ri.trim():``;if(zi){for(let e of[`https://use.typekit.net`,`https://p.typekit.net`]){let t=document.createElement(`link`);t.rel=`preconnect`,t.href=e,t.crossOrigin=`anonymous`,document.head.appendChild(t)}
5let e=document.createElement(`link`);e.rel=`stylesheet`,e.href=`https://use.typekit.net/${zi}.css`,document.head.appendChild(e)}(0,d.createRoot)(document.getElementById(`root`)).render((0,Fi.jsx)(u.StrictMode,{children:(0,Fi.jsx)(Li,{})}));export{Jn as _,Oi as a,jn as b,Ei as c,dr as d,fr as f,$ as g,Ee as h,ki as i,ri as l,Oe as m,Pi as n,Di as o,oi as p,Ai as r,Ti as s,ji as t,ii as u,Dn as v,Yn as x,qn as y};

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.