import{__exports as r}from"../../../../../../../_virtual/parse-relative-url.js_commonjs-exports";export{__exports as default}from"../../../../../../../_virtual/parse-relative-url.js_commonjs-exports";import"../../utils.js";import"./querystring.js";import{__exports as e}from"../../../../../../../_virtual/utils.js_commonjs-exports";import{__exports as t}from"../../../../../../../_virtual/querystring.js_commonjs-exports";r.__esModule=!0,r.parseRelativeUrl=function(r,e){const t=new URL("undefined"==typeof window?"http://n":(0,o.getLocationOrigin)()),i=e?new URL(e,t):t,{pathname:a,searchParams:n,search:m,hash:p,href:l,origin:u}=new URL(r,i);if(u!==t.origin)throw new Error(`invariant: invalid relative URL, router received ${r}`);return{pathname:a,query:(0,s.searchParamsToUrlQuery)(n),search:m,hash:p,href:l.slice(t.origin.length)}};var o=e,s=t;
//# sourceMappingURL=parse-relative-url.js.map
