/*! For license information please see 4976.3460d210dea8117565ba.js.LICENSE.txt */ "use strict";(self.webpackChunk_bike24_spock=self.webpackChunk_bike24_spock||[]).push([[4976],{45588:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;th,B6:()=>O,Gh:()=>T,HS:()=>B,Oi:()=>l,Rr:()=>p,pX:()=>D,pb:()=>L,rc:()=>a,tH:()=>A,ue:()=>f,yD:()=>k,zR:()=>i}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const o="popstate";function i(e){return void 0===e&&(e={}),function(e,t,n,i){void 0===i&&(i={});let{window:s=document.defaultView,v5Compat:p=!1}=i,d=s.history,f=a.Pop,m=null,v=g();function g(){return(d.state||{idx:null}).idx}function y(){f=a.Pop;let e=g(),t=null==e?null:e-v;v=e,m&&m({action:f,location:w.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"==typeof e?e:h(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,d.replaceState(r({},d.state,{idx:v}),""));let w={get action(){return f},get location(){return e(s,d)},listen(e){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(o,y),m=e,()=>{s.removeEventListener(o,y),m=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=a.Push;let r=c(w.location,e,t);n&&n(r,e),v=g()+1;let o=u(r,v),i=w.createHref(r);try{d.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(i)}p&&m&&m({action:f,location:w.location,delta:1})},replace:function(e,t){f=a.Replace;let r=c(w.location,e,t);n&&n(r,e),v=g();let o=u(r,v),i=w.createHref(r);d.replaceState(o,"",i),p&&m&&m({action:f,location:w.location,delta:0})},go:e=>d.go(e)};return w}((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return c("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function s(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,a){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var d;function f(e,t,n){void 0===n&&(n="/");let r=L(("string"==typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let a=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(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}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let e=0;null==o&&e{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=B([r,i.relativePath]),u=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),m(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:S(s,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of v(e.path))a(e,t,n);else a(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=v(r.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(d||(d={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const g=/^:\w+$/,y=3,b=2,w=1,x=10,C=-2,R=e=>"*"===e;function S(e,t){let n=e.split("/"),r=n.length;return n.some(R)&&(r+=C),t&&(r+=b),n.filter((e=>!R(e))).reduce(((e,t)=>e+(g.test(t)?y:""===t?w:x)),r)}function E(e,t){let{routesMeta:n}=e,r={},a="/",o=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=l[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const u=l[n];return e[r]=a&&!u?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return s(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(u||"",r),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function U(e){try{return decodeURI(e)}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function L(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 P(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function k(e){return function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e).map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase))}function T(e,t,n,a){let o;void 0===a&&(a=!1),"string"==typeof e?o=p(e):(o=r({},e),l(!o.pathname||!o.pathname.includes("?"),P("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),P("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),P("#","search","hash",o)));let i,s=""===e||""===o.pathname,u=s?"/":o.pathname;if(null==u)i=n;else if(a){let e=t[t.length-1].replace(/^\//,"").split("/");if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e.pop();o.pathname=t.join("/")}i="/"+e.join("/")}else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?p(e):e,o=n?n.startsWith("/")?n:function(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("/"):"/"}(n,t):t;return{pathname:o,search:N(r),hash:$(a)}}(o,i),h=u&&"/"!==u&&u.endsWith("/"),d=(s||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!h&&!d||(c.pathname+="/"),c}const B=e=>e.join("/").replace(/\/\/+/g,"/"),j=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),N=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class A extends Error{}function D(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const W=["post","put","patch","delete"],_=(new Set(W),["get",...W]);new Set(_),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},84976:(e,t,n)=>{var r,a;n.d(t,{Kd:()=>v,N_:()=>b,k2:()=>w,ok:()=>R});var o=n(96540),i=n(40961),l=n(47767),s=n(45588);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}function h(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const p=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],d=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],f=o.createContext({isTransitioning:!1});new Map;const m=(r||(r=n.t(o,2))).startTransition;function v(e){let{basename:t,children:n,future:r,window:a}=e,i=o.useRef();null==i.current&&(i.current=(0,s.zR)({window:a,v5Compat:!0}));let u=i.current,[c,h]=o.useState({action:u.action,location:u.location}),{v7_startTransition:p}=r||{},d=o.useCallback((e=>{p&&m?m((()=>h(e))):h(e)}),[h,p]);return o.useLayoutEffect((()=>u.listen(d)),[u,d]),o.createElement(l.Ix,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u})}(a||(a=n.t(i,2))).flushSync;const g="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,y=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,b=o.forwardRef((function(e,t){let n,{onClick:r,relative:a,reloadDocument:i,replace:h,state:d,target:f,to:m,preventScrollReset:v,unstable_viewTransition:b}=e,w=c(e,p),{basename:x}=o.useContext(l.jb),C=!1;if("string"==typeof m&&y.test(m)&&(n=m,g))try{let e=new URL(window.location.href),t=m.startsWith("//")?new URL(e.protocol+m):new URL(m),n=(0,s.pb)(t.pathname,x);t.origin===e.origin&&null!=n?m=n+t.search+t.hash:C=!0}catch(e){}let R=(0,l.$P)(m,{relative:a}),S=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:u,unstable_viewTransition:c}=void 0===t?{}:t,h=(0,l.Zp)(),p=(0,l.zy)(),d=(0,l.x$)(e,{relative:u});return o.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,s.AO)(p)===(0,s.AO)(d);h(e,{replace:n,state:a,preventScrollReset:i,relative:u,unstable_viewTransition:c})}}),[p,h,d,r,a,n,e,i,u,c])}(m,{replace:h,state:d,target:f,preventScrollReset:v,relative:a,unstable_viewTransition:b});return o.createElement("a",u({},w,{href:n||R,onClick:C||i?r:function(e){r&&r(e),e.defaultPrevented||S(e)},ref:t,target:f}))})),w=o.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:a="",end:i=!1,style:h,to:p,unstable_viewTransition:m,children:v}=e,g=c(e,d),y=(0,l.x$)(p,{relative:g.relative}),w=(0,l.zy)(),C=o.useContext(l.Rq),{navigator:R}=o.useContext(l.jb),S=null!=C&&function(e,t){void 0===t&&(t={});let n=o.useContext(f);null==n&&(0,s.Oi)(!1);let{basename:r}=function(){let e=o.useContext(l.sp);return e||(0,s.Oi)(!1),e}(x.useViewTransitionState),a=(0,l.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=(0,s.pb)(n.currentLocation.pathname,r)||n.currentLocation.pathname,u=(0,s.pb)(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=(0,s.B6)(a.pathname,u)||null!=(0,s.B6)(a.pathname,i)}(y)&&!0===m,E=R.encodeLocation?R.encodeLocation(y).pathname:y.pathname,O=w.pathname,U=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(O=O.toLowerCase(),U=U?U.toLowerCase():null,E=E.toLowerCase());const L="/"!==E&&E.endsWith("/")?E.length-1:E.length;let P,k=O===E||!i&&O.startsWith(E)&&"/"===O.charAt(L),T=null!=U&&(U===E||!i&&U.startsWith(E)&&"/"===U.charAt(E.length)),B={isActive:k,isPending:T,isTransitioning:S},j=k?n:void 0;P="function"==typeof a?a(B):[a,k?"active":null,T?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let N="function"==typeof h?h(B):h;return o.createElement(b,u({},g,{"aria-current":j,className:P,ref:t,style:N,to:p,unstable_viewTransition:m}),"function"==typeof v?v(B):v)}));var x,C;function R(e){let t=o.useRef(h(e)),n=o.useRef(!1),r=(0,l.zy)(),a=o.useMemo((()=>function(e,t){let n=h(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=(0,l.Zp)(),s=o.useCallback(((e,t)=>{const r=h("function"==typeof e?e(a):e);n.current=!0,i("?"+r,t)}),[i,a]);return[a,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(x||(x={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(C||(C={}))},47767:(e,t,n)=>{var r;n.d(t,{$P:()=>d,BV:()=>T,C5:()=>L,Ix:()=>k,Rq:()=>s,Zp:()=>g,g:()=>y,jb:()=>u,qh:()=>P,sp:()=>l,x$:()=>b,zy:()=>m});var a=n(96540),o=n(45588);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),a.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,i({fromRouteId:t},a)))}),[e,t])}():function(){f()||(0,o.Oi)(!1);let e=a.useContext(l),{basename:t,navigator:n}=a.useContext(u),{matches:r}=a.useContext(h),{pathname:i}=m(),s=JSON.stringify((0,o.yD)(r)),c=a.useRef(!1);return v((()=>{c.current=!0})),a.useCallback((function(r,a){if(void 0===a&&(a={}),!c.current)return;if("number"==typeof r)return void n.go(r);let l=(0,o.Gh)(r,JSON.parse(s),i,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,o.HS)([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)}),[t,n,s,i,e])}()}function y(){let{matches:e}=a.useContext(h),t=e[e.length-1];return t?t.params:{}}function b(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=a.useContext(h),{pathname:i}=m(),l=JSON.stringify((0,o.yD)(r));return a.useMemo((()=>(0,o.Gh)(e,JSON.parse(l),i,"path"===n)),[e,l,i,n])}function w(e,t,n){f()||(0,o.Oi)(!1);let{navigator:r}=a.useContext(u),{matches:l}=a.useContext(h),s=l[l.length-1],p=s?s.params:{},d=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let v,g=m();if(t){var y;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===d||(null==(y=e.pathname)?void 0:y.startsWith(d))||(0,o.Oi)(!1),v=e}else v=g;let b=v.pathname||"/",w="/"===d?b:b.slice(d.length)||"/",x=(0,o.ue)(e,{pathname:w}),E=function(e,t,n){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let l=e,s=null==(r=n)?void 0:r.errors;if(null!=s){let e=l.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}return l.reduceRight(((e,r,o)=>{let i=r.route.id?null==s?void 0:s[r.route.id]:null,u=null;n&&(u=r.route.errorElement||C);let c=t.concat(l.slice(0,o+1)),h=()=>{let t;return t=i?u:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(S,{match:r,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?a.createElement(R,{location:n.location,revalidation:n.revalidation,component:u,error:i,children:h(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):h()}),null)}(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:(0,o.HS)([d,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:(0,o.HS)([d,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n);return t&&E?a.createElement(c.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:o.rc.Pop}},E):E}function x(){let e=function(){var e;let t=a.useContext(p),n=function(){let e=a.useContext(s);return e||(0,o.Oi)(!1),e}(O.UseRouteError),r=U(O.UseRouteError);return t||(null==(e=n.errors)?void 0:e[r])}(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:r},n):null,null)}const C=a.createElement(x,null);class R extends a.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||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?a.createElement(h.Provider,{value:this.props.routeContext},a.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function S(e){let{routeContext:t,match:n,children:r}=e,o=a.useContext(l);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),a.createElement(h.Provider,{value:t},r)}var E=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(E||{}),O=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(O||{});function U(e){let t=function(){let e=a.useContext(h);return e||(0,o.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}function L(e){let{to:t,replace:n,state:r,relative:i}=e;f()||(0,o.Oi)(!1);let{matches:l}=a.useContext(h),{pathname:s}=m(),u=g(),c=(0,o.Gh)(t,(0,o.yD)(l),s,"path"===i),p=JSON.stringify(c);return a.useEffect((()=>u(JSON.parse(p),{replace:n,state:r,relative:i})),[u,p,i,n,r]),null}function P(e){(0,o.Oi)(!1)}function k(e){let{basename:t="/",children:n=null,location:r,navigationType:i=o.rc.Pop,navigator:l,static:s=!1}=e;f()&&(0,o.Oi)(!1);let h=t.replace(/^\/*/,"/"),p=a.useMemo((()=>({basename:h,navigator:l,static:s})),[h,l,s]);"string"==typeof r&&(r=(0,o.Rr)(r));let{pathname:d="/",search:m="",hash:v="",state:g=null,key:y="default"}=r,b=a.useMemo((()=>{let e=(0,o.pb)(d,h);return null==e?null:{location:{pathname:e,search:m,hash:v,state:g,key:y},navigationType:i}}),[h,d,m,v,g,y,i]);return null==b?null:a.createElement(u.Provider,{value:p},a.createElement(c.Provider,{children:n,value:b}))}function T(e){let{children:t,location:n}=e;return w(B(t),n)}function B(e,t){void 0===t&&(t=[]);let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let i=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,B(e.props.children,i));e.type!==P&&(0,o.Oi)(!1),e.props.index&&e.props.children&&(0,o.Oi)(!1);let l={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(l.children=B(e.props.children,i)),n.push(l)})),n}(r||(r=n.t(a,2))).startTransition,new Promise((()=>{})),a.Component}}]);