Files
hub-insurance/wp-content/plugins/gravitysmtp/assets/js/dist/vendor-react-router.c0ed8972f25ddb0c3d5e.min.js
T
2026-07-02 15:54:39 -06:00

1 line
20 KiB
JavaScript

"use strict";(self.webpackChunkgravitysmtp=self.webpackChunkgravitysmtp||[]).push([[9631],{16894:function(e,t,n){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var a;n.d(t,{AO:function(){return h},Gh:function(){return j},HS:function(){return A},Oi:function(){return l},Rr:function(){return p},pX:function(){return I},pb:function(){return L},rc:function(){return a},sd:function(){return B},tH:function(){return D},ue:function(){return m},zR:function(){return 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={}),d(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 u(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function s(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}function d(e,t,n,i){void 0===i&&(i={});let{window:u=document.defaultView,v5Compat:p=!1}=i,d=u.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"!==u.location.origin?u.location.origin:u.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(u,d)},listen(e){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(o,y),m=e,()=>{u.removeEventListener(o,y),m=null}},createHref(e){return t(u,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=s(r,v),i=w.createHref(r);try{d.pushState(o,"",i)}catch(e){u.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=s(r,v),i=w.createHref(r);d.replaceState(o,"",i),p&&m&&m({action:f,location:w.location,delta:0})},go(e){return d.go(e)}};return w}var f;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function m(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=v(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return 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<a.length;++e)o=O(a[e],U(r));return o}function v(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(e,a,o)=>{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 u=A([r,i.relativePath]),s=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 "'+u+'".'),v(e.children,t,s,u)),(null!=e.path||e.index)&&t.push({path:u,score:S(u,e.index),routesMeta:s})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of g(e.path))a(e,t,n);else a(e,t)}),t}function g(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=g(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)}const y=/^:\w+$/,b=3,w=2,R=1,x=10,C=-2,E=e=>"*"===e;function S(e,t){let n=e.split("/"),r=n.length;return n.some(E)&&(r+=C),t&&(r+=w),n.filter(e=>!E(e)).reduce((e,t)=>e+(y.test(t)?b:""===t?R:x),r)}function O(e,t){let{routesMeta:n}=e,r={},a="/",o=[];for(let e=0;e<n.length;++e){let i=n[e],l=e===n.length-1,u="/"===a?t:t.slice(a.length)||"/",s=P({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},u);if(!s)return null;Object.assign(r,s.params);let c=i.route;o.push({params:r,pathname:A([a,s.pathname]),pathnameBase:$(A([a,s.pathnameBase])),route:c}),"/"!==s.pathnameBase&&(a=A([a,s.pathnameBase]))}return o}function P(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);u("*"===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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(r.push(t),"/([^\\/]+)"));e.endsWith("*")?(r.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let o=new RegExp(a,t?void 0:"i");return[o,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)=>{if("*"===t){let e=l[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return u(!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}}(l[n]||"",t),e},{}),pathname:o,pathnameBase:i,pattern:e}}function U(e){try{return decodeURI(e)}catch(t){return u(!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 k(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 B(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function j(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("?"),k("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),k("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),k("#","search","hash",o)));let i,u=""===e||""===o.pathname,s=u?"/":o.pathname;if(a||null==s)i=n;else{let e=t.length-1;if(s.startsWith("..")){let t=s.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:W(r),hash:N(a)}}(o,i),h=s&&"/"!==s&&s.endsWith("/"),d=(u||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!h&&!d||(c.pathname+="/"),c}const A=e=>e.join("/").replace(/\/\/+/g,"/"),$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class D extends Error{}function I(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const M=["post","put","patch","delete"],z=(new Set(M),["get",...M]);new Set(z),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;Symbol("deferred")},36894:function(e,t,n){n.d(t,{Kd:function(){return h},N_:function(){return f},k2:function(){return m},ok:function(){return y}});var r=n(26322),a=n(70449),o=n(16894);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function u(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]])},[]))}const s=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],c=["aria-current","caseSensitive","className","end","style","to","children"];function h(e){let{basename:t,children:n,window:i}=e,l=r.useRef();null==l.current&&(l.current=(0,o.zR)({window:i,v5Compat:!0}));let u=l.current,[s,c]=r.useState({action:u.action,location:u.location});return r.useLayoutEffect(()=>u.listen(c),[u]),r.createElement(a.Ix,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:u})}const p="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,d=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,f=r.forwardRef(function(e,t){let n,{onClick:u,relative:c,reloadDocument:h,replace:f,state:m,target:v,to:g,preventScrollReset:y}=e,b=l(e,s),{basename:w}=r.useContext(a.jb),R=!1;if("string"==typeof g&&d.test(g)&&(n=g,p))try{let e=new URL(window.location.href),t=g.startsWith("//")?new URL(e.protocol+g):new URL(g),n=(0,o.pb)(t.pathname,w);t.origin===e.origin&&null!=n?g=n+t.search+t.hash:R=!0}catch(e){}let x=(0,a.$P)(g,{relative:c}),C=function(e,t){let{target:n,replace:i,state:l,preventScrollReset:u,relative:s}=void 0===t?{}:t,c=(0,a.Zp)(),h=(0,a.zy)(),p=(0,a.x$)(e,{relative:s});return r.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!==i?i:(0,o.AO)(h)===(0,o.AO)(p);c(e,{replace:n,state:l,preventScrollReset:u,relative:s})}},[h,c,p,i,l,n,e,u,s])}(g,{replace:f,state:m,target:v,preventScrollReset:y,relative:c});return r.createElement("a",i({},b,{href:n||x,onClick:R||h?u:function(e){u&&u(e),e.defaultPrevented||C(e)},ref:t,target:v}))});const m=r.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:o=!1,className:u="",end:s=!1,style:h,to:p,children:d}=e,m=l(e,c),v=(0,a.x$)(p,{relative:m.relative}),g=(0,a.zy)(),y=r.useContext(a.Rq),{navigator:b}=r.useContext(a.jb),w=b.encodeLocation?b.encodeLocation(v).pathname:v.pathname,R=g.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(R=R.toLowerCase(),x=x?x.toLowerCase():null,w=w.toLowerCase());let C,E=R===w||!s&&R.startsWith(w)&&"/"===R.charAt(w.length),S=null!=x&&(x===w||!s&&x.startsWith(w)&&"/"===x.charAt(w.length)),O=E?n:void 0;C="function"==typeof u?u({isActive:E,isPending:S}):[u,E?"active":null,S?"pending":null].filter(Boolean).join(" ");let P="function"==typeof h?h({isActive:E,isPending:S}):h;return r.createElement(f,i({},m,{"aria-current":O,className:C,ref:t,style:P,to:p}),"function"==typeof d?d({isActive:E,isPending:S}):d)});var v,g;function y(e){let t=r.useRef(u(e)),n=r.useRef(!1),o=(0,a.zy)(),i=r.useMemo(()=>function(e,t){let n=u(e);if(t)for(let e of t.keys())n.has(e)||t.getAll(e).forEach(t=>{n.append(e,t)});return n}(o.search,n.current?null:t.current),[o.search]),l=(0,a.Zp)(),s=r.useCallback((e,t)=>{const r=u("function"==typeof e?e(i):e);n.current=!0,l("?"+r,t)},[l,i]);return[i,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(v||(v={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(g||(g={}))},70449:function(e,t,n){n.d(t,{$P:function(){return p},BV:function(){return B},Ix:function(){return k},Rq:function(){return l},Zp:function(){return v},jb:function(){return u},qh:function(){return L},x$:function(){return g},zy:function(){return f}});var r=n(26322),a=n(16894);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const i=r.createContext(null);const l=r.createContext(null);const u=r.createContext(null);const s=r.createContext(null);const c=r.createContext({outlet:null,matches:[],isDataRoute:!1});const h=r.createContext(null);function p(e,t){let{relative:n}=void 0===t?{}:t;d()||(0,a.Oi)(!1);let{basename:o,navigator:i}=r.useContext(u),{hash:l,pathname:s,search:c}=g(e,{relative:n}),h=s;return"/"!==o&&(h="/"===s?o:(0,a.HS)([o,s])),i.createHref({pathname:h,search:c,hash:l})}function d(){return null!=r.useContext(s)}function f(){return d()||(0,a.Oi)(!1),r.useContext(s).location}function m(e){r.useContext(u).static||r.useLayoutEffect(e)}function v(){let{isDataRoute:e}=r.useContext(c);return e?function(){let{router:e}=O(E.UseNavigateStable),t=U(S.UseNavigateStable),n=r.useRef(!1);return m(()=>{n.current=!0}),r.useCallback(function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,o({fromRouteId:t},a)))},[e,t])}():function(){d()||(0,a.Oi)(!1);let{basename:e,navigator:t}=r.useContext(u),{matches:n}=r.useContext(c),{pathname:o}=f(),i=JSON.stringify((0,a.sd)(n).map(e=>e.pathnameBase)),l=r.useRef(!1);return m(()=>{l.current=!0}),r.useCallback(function(n,r){if(void 0===r&&(r={}),!l.current)return;if("number"==typeof n)return void t.go(n);let u=(0,a.Gh)(n,JSON.parse(i),o,"path"===r.relative);"/"!==e&&(u.pathname="/"===u.pathname?e:(0,a.HS)([e,u.pathname])),(r.replace?t.replace:t.push)(u,r.state,r)},[e,t,i,o])}()}function g(e,t){let{relative:n}=void 0===t?{}:t,{matches:o}=r.useContext(c),{pathname:i}=f(),l=JSON.stringify((0,a.sd)(o).map(e=>e.pathnameBase));return r.useMemo(()=>(0,a.Gh)(e,JSON.parse(l),i,"path"===n),[e,l,i,n])}function y(e,t,n){d()||(0,a.Oi)(!1);let{navigator:i}=r.useContext(u),{matches:l}=r.useContext(c),h=l[l.length-1],p=h?h.params:{},m=(h&&h.pathname,h?h.pathnameBase:"/");h&&h.route;let v,g=f();if(t){var y;let e="string"==typeof t?(0,a.Rr)(t):t;"/"===m||(null==(y=e.pathname)?void 0:y.startsWith(m))||(0,a.Oi)(!1),v=e}else v=g;let b=v.pathname||"/",w="/"===m?b:b.slice(m.length)||"/",R=(0,a.ue)(e,{pathname:w});let x=C(R&&R.map(e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:(0,a.HS)([m,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,a.HS)([m,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),l,n);return t&&x?r.createElement(s.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:a.rc.Pop}},x):x}function b(){let e=function(){var e;let t=r.useContext(h),n=P(S.UseRouteError),a=U(S.UseRouteError);if(t)return t;return null==(e=n.errors)?void 0:e[a]}(),t=(0,a.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:i},n):null,null)}const w=r.createElement(b,null);class R extends r.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?r.createElement(c.Provider,{value:this.props.routeContext},r.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function x(e){let{routeContext:t,match:n,children:a}=e,o=r.useContext(i);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(c.Provider,{value:t},a)}function C(e,t,n){var o;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,u=null==(o=n)?void 0:o.errors;if(null!=u){let e=l.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id]));e>=0||(0,a.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}return l.reduceRight((e,a,o)=>{let i=a.route.id?null==u?void 0:u[a.route.id]:null,s=null;n&&(s=a.route.errorElement||w);let c=t.concat(l.slice(0,o+1)),h=()=>{let t;return t=i?s:a.route.Component?r.createElement(a.route.Component,null):a.route.element?a.route.element:e,r.createElement(x,{match:a,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===o)?r.createElement(R,{location:n.location,revalidation:n.revalidation,component:s,error:i,children:h(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):h()},null)}var E,S;function O(e){let t=r.useContext(i);return t||(0,a.Oi)(!1),t}function P(e){let t=r.useContext(l);return t||(0,a.Oi)(!1),t}function U(e){let t=function(){let e=r.useContext(c);return e||(0,a.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,a.Oi)(!1),n.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(E||(E={})),function(e){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"}(S||(S={}));function L(e){(0,a.Oi)(!1)}function k(e){let{basename:t="/",children:n=null,location:o,navigationType:i=a.rc.Pop,navigator:l,static:c=!1}=e;d()&&(0,a.Oi)(!1);let h=t.replace(/^\/*/,"/"),p=r.useMemo(()=>({basename:h,navigator:l,static:c}),[h,l,c]);"string"==typeof o&&(o=(0,a.Rr)(o));let{pathname:f="/",search:m="",hash:v="",state:g=null,key:y="default"}=o,b=r.useMemo(()=>{let e=(0,a.pb)(f,h);return null==e?null:{location:{pathname:e,search:m,hash:v,state:g,key:y},navigationType:i}},[h,f,m,v,g,y,i]);return null==b?null:r.createElement(u.Provider,{value:p},r.createElement(s.Provider,{children:n,value:b}))}function B(e){let{children:t,location:n}=e;return y(A(t),n)}var j;!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(j||(j={}));new Promise(()=>{});r.Component;function A(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,(e,o)=>{if(!r.isValidElement(e))return;let i=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,A(e.props.children,i));e.type!==L&&(0,a.Oi)(!1),e.props.index&&e.props.children&&(0,a.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=A(e.props.children,i)),n.push(l)}),n}}}]);