vendor: 4,237 bytes, lines 1-10
1import{r as o,R as Ce}from"./vendor-react-63GBCzgN.js";/** 2 * @remix-run/router v1.23.3 3 * 4 * Copyright (c) Remix Software Inc. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.md file in the root directory of this source tree. 8 * 9 * @license MIT 10 */function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(null,arguments)}var b;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(b||(b={}));const Z="popstate";function Pe(e){e===void 0&&(e={});function t(r,a){let{pathname:l,search:i,hash:u}=r.location;return z("",{pathname:l,search:i,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:W(a)}return we(t,n,null,e)}function x(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function q(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ee(){return Math.random().toString(36).substr(2,8)}function ee(e,t){return{usr:e.state,key:e.key,idx:t}}function z(e,t,n,r){return n===void 0&&(n=null),B({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?N(t):t,{state:n,key:t&&t.key||r||Ee()})}function W(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 N(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 we(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:l=!1}=r,i=a.history,u=b.Pop,s=null,c=h();c==null&&(c=0,i.replaceState(B({},i.state,{idx:c}),""));function h(){return(i.state||{idx:null}).idx}function f(){u=b.Pop;let d=h(),C=d==null?null:d-c;c=d,s&&s({action:u,location:m.location,delta:C})}function p(d,C){u=b.Push;let v=z(m.location,d,C);c=h()+1;let y=ee(v,c),P=m.createHref(v);try{i.pushState(y,"",P)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(P)}l&&s&&s({action:u,location:m.location,delta:1})}function E(d,C){u=b.Replace;let v=z(m.location,d,C);c=h();let y=ee(v,c),P=m.createHref(v);i.replaceState(y,"",P),l&&s&&s({action:u,location:m.location,delta:0})}function g(d){let C=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof d=="string"?d:W(d);return v=v.replace(/ $/,"%20"),x(C,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,C)}let m={get action(){return u},get location(){return e(a,i)},listen(d){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(Z,f),s=d,()=>{a.removeEventListener(Z,f),s=null}},createHref(d){return t(a,d)},createURL:g,encodeLocation(d){let C=g(d);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:p,replace:E,go(d){return i.go(d)}};return m}var te;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(te||(te={}));function Re(e,t,n){return n===void 0&&(n="/"),Se(e,t,n)}function Se(e,t,n,r){let a=typeof t=="string"?N(t):t,l=O(a.pathname||"/",n);if(l==null)return null;let i=oe(e);be(i);let u=null,s=$e(l);for(let c=0;u==null&&c<i.length;++c)u=We(i[c],s);return u}function oe(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let a=(l,i,u)=>{let s={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};s.relativePath.startsWith("/")&&(x(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=L([r,s.relativePath]),h=n.concat(s);l.children&&l.children.length>0&&(x(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),oe(l.children,t,h,c)),!(l.path==null&&!l.index)&&t.push({path:c,score:Ie(c,l.index),routesMeta:h})};return e.forEach((l,i)=>{var u;if(l.path===""||!((u=l.path)!=null&&u.includes("?")))a(l,i);
vendor: 1,037 bytes, line 10
10else for(let s of se(l.path))a(l,i,s)}),t}function se(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let i=se(r.join("/")),u=[];return u.push(...i.map(s=>s===""?l:[l,s].join("/"))),a&&u.push(...i),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function be(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ke(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Le=/^:[\w-]+$/,Ue=3,Oe=2,Ne=1,Te=10,Be=-2,ne=e=>e==="*";function Ie(e,t){let n=e.split("/"),r=n.length;return n.some(ne)&&(r+=Be),t&&(r+=Oe),n.filter(a=>!ne(a)).reduce((a,l)=>a+(Le.test(l)?Ue:l===""?Ne:Te),r)}function ke(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function We(e,t,n){let{routesMeta:r}=e,a={},l="/",i=[];for(let u=0;u<r.length;++u){let s=r[u],c=u===r.length-1,h=l==="/"?t:t.slice(l.length)||"/",f=D({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},h),p=s.route;if(!f)return null;
vendor: 5,122 bytes, lines 10-19
10Object.assign(a,f.params),i.push({params:a,pathname:L([l,f.pathname]),pathnameBase:Ve(L([l,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(l=L([l,f.pathnameBase]))}return i}function D(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=_e(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],i=l.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((c,h,f)=>{let{paramName:p,isOptional:E}=h;if(p==="*"){let m=u[f]||"";i=l.slice(0,l.length-m.length).replace(/(.)\/+$/,"$1")}const g=u[f];return E&&!g?c[p]=void 0:c[p]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:i,pattern:e}}function _e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),q(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,(i,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function $e(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return q(!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 O(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)||"/"}const je=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fe=e=>je.test(e);function Me(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?N(e):e,l;if(n)if(Fe(n))l=n;else{if(n.includes("//")){let i=n;n=ue(n),q(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?l=re(n.substring(1),"/"):l=re(n,t)}else l=t;return{pathname:l,search:ze(r),hash:De(a)}}function re(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function V(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 Ae(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function X(e,t){let n=Ae(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function H(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=N(e):(a=B({},e),x(!a.pathname||!a.pathname.includes("?"),V("?","pathname","search",a)),x(!a.pathname||!a.pathname.includes("#"),V("#","pathname","hash",a)),x(!a.search||!a.search.includes("#"),V("#","search","hash",a)));let l=e===""||a.pathname==="",i=l?"/":a.pathname,u;if(i==null)u=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}u=f>=0?t[f]:"/"}let s=Me(a,u),c=i&&i!=="/"&&i.endsWith("/"),h=(l||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||h)&&(s.pathname+="/"),s}const ue=e=>e.replace(/\/\/+/g,"/"),L=e=>ue(e.join("/")),Ve=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ze=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,De=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Je(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ce=["post","put","patch","delete"];new Set(ce);const Ke=["get",...ce];new Set(Ke);/** 11 * React Router v6.30.4 12 * 13 * Copyright (c) Remix Software Inc. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE.md file in the root directory of this source tree. 17 * 18 * @license MIT 19 */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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(null,arguments)}const $=o.createContext(null),fe=o.createContext(null),R=o.createContext(null),k=o.createContext(null),w=o.createContext({outlet:null,matches:[],isDataRoute:!1}),he=o.createContext(null);function Ge(e,t){let{relative:n}=t===void 0?{}:t;T()||x(!1);let{basename:r,navigator:a}=o.useContext(R),{hash:l,pathname:i,search:u}=j(e,{relative:n}),s=i;return r!=="/"&&(s=i==="/"?r:L([r,i])),a.createHref({pathname:s,search:u,hash:l})}function T(){return o.useContext(k)!=null}function U(){return T()||x(!1),o.useContext(k).location}function Ut(){return o.useContext(k).navigationType}function de(e){o.useContext(R).static||o.useLayoutEffect(e)}function Q(){let{isDataRoute:e}=o.useContext(w);return e?st():qe()}function qe(){T()||x(!1);
vendor: 4,718 bytes, line 19
19let e=o.useContext($),{basename:t,future:n,navigator:r}=o.useContext(R),{matches:a}=o.useContext(w),{pathname:l}=U(),i=JSON.stringify(X(a,n.v7_relativeSplatPath)),u=o.useRef(!1);return de(()=>{u.current=!0}),o.useCallback(function(c,h){if(h===void 0&&(h={}),!u.current)return;if(typeof c=="number"){r.go(c);return}let f=H(c,JSON.parse(i),l,h.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:L([t,f.pathname])),(h.replace?r.replace:r.push)(f,h.state,h)},[t,r,i,l,e])}const Xe=o.createContext(null);function He(e){let t=o.useContext(w).outlet;return t&&o.createElement(Xe.Provider,{value:e},t)}function Ot(){let{matches:e}=o.useContext(w),t=e[e.length-1];return t?t.params:{}}function j(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=o.useContext(R),{matches:a}=o.useContext(w),{pathname:l}=U(),i=JSON.stringify(X(a,r.v7_relativeSplatPath));return o.useMemo(()=>H(e,JSON.parse(i),l,n==="path"),[e,i,l,n])}function Qe(e,t){return Ye(e,t)}function Ye(e,t,n,r){T()||x(!1);let{navigator:a}=o.useContext(R),{matches:l}=o.useContext(w),i=l[l.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let c=U(),h;if(t){var f;let d=typeof t=="string"?N(t):t;s==="/"||(f=d.pathname)!=null&&f.startsWith(s)||x(!1),h=d}else h=c;let p=h.pathname||"/",E=p;if(s!=="/"){let d=s.replace(/^\//,"").split("/");E="/"+p.replace(/^\//,"").split("/").slice(d.length).join("/")}let g=Re(e,{pathname:E}),m=rt(g&&g.map(d=>Object.assign({},d,{params:Object.assign({},u,d.params),pathname:L([s,a.encodeLocation?a.encodeLocation(d.pathname).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?s:L([s,a.encodeLocation?a.encodeLocation(d.pathnameBase).pathname:d.pathnameBase])})),l,n,r);return t&&m?o.createElement(k.Provider,{value:{location:I({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:b.Pop}},m):m}function Ze(){let e=ot(),t=Je(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:a},n):null,null)}const et=o.createElement(Ze,null);class tt extends o.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?o.createElement(w.Provider,{value:this.props.routeContext},o.createElement(he.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nt(e){let{routeContext:t,match:n,children:r}=e,a=o.useContext($);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(w.Provider,{value:t},r)}function rt(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,u=(a=n)==null?void 0:a.errors;if(u!=null){let h=i.findIndex(f=>f.route.id&&u?.[f.route.id]!==void 0);h>=0||x(!1),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<i.length;h++){let f=i[h];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=h),f.route.id){let{loaderData:p,errors:E}=n,g=f.route.loader&&p[f.route.id]===void 0&&(!E||E[f.route.id]===void 0);if(f.route.lazy||g){s=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((h,f,p)=>{let E,g=!1,m=null,d=null;n&&(E=u&&f.route.id?u[f.route.id]:void 0,m=f.route.errorElement||et,s&&(c<0&&p===0?(ut("route-fallback"),g=!0,d=null):c===p&&(g=!0,d=f.route.hydrateFallbackElement||null)));let C=t.concat(i.slice(0,p+1)),v=()=>{let y;return E?y=m:g?y=d:f.route.Component?y=o.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=h,o.createElement(nt,{match:f,routeContext:{outlet:h,matches:C,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?o.createElement(tt,{location:n.location,revalidation:n.revalidation,component:m,error:E,children:v(),routeC
19ontext:{outlet:null,matches:C,isDataRoute:!0}}):v()},null)}var pe=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(pe||{}),me=(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})(me||{});function at(e){let t=o.useContext($);return t||x(!1),t}function lt(e){let t=o.useContext(fe);return t||x(!1),t}function it(e){let t=o.useContext(w);return t||x(!1),t}function ve(e){let t=it(),n=t.matches[t.matches.length-1];return n.route.id||x(!1),n.route.id}function ot(){var e;let t=o.useContext(he),n=lt(),r=ve();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function st(){let{router:e}=at(pe.UseNavigateStable),t=ve(me.UseNavigateStable),n=o.useRef(!1);return de(()=>{n.current=!0}),o.useCallback(function(a,l){l===void 0&&(l={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,I({fromRouteId:t},l)))},[e,t])}const ae={};function ut(e,t,n){ae[e]||(ae[e]=!0)}function ct(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function Nt(e){let{to:t,replace:n,state:r,relative:a}=e;T()||x(!1);let{future:l,static:i}=o.useContext(R),{matches:u}=o.useContext(w),{pathname:s}=U(),c=Q(),h=H(t,X(u,l.v7_relativeSplatPath),s,a==="path"),f=JSON.stringify(h);return o.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:a}),[c,f,a,n,r]),null}function Tt(e){return He(e.context)}function ft(e){x(!1)}function ht(e){let{basename:t="/",children:n=null,location:r,navigationType:a=b.Pop,navigator:l,static:i=!1,future:u}=e;T()&&x(!1);let s=t.replace(/^\/*/,"/"),c=o.useMemo(()=>({basename:s,navigator:l,static:i,future:I({v7_relativeSplatPath:!1},u)}),[s,u,l,i]);typeof r=="string"&&(r=N(r));let{pathname:h="/",search:f="",hash:p="",state:E=null,key:g="default"}=r,m=o.useMemo(()=>{let d=O(h,s);return d==null?null:{location:{pathname:d,search:f,hash:p,state:E,key:g},navigationType:a}},[s,h,f,p,E,g,a]);return m==null?null:o.createElement(R.Provider,{value:c},o.createElement(k.Provider,{children:n,value:m}))}function Bt(e){let{children:t,location:n}=e;return Qe(J(t),n)}new Promise(()=>{});function J(e,t){t===void 0&&(t=[]);let n=[];return o.Children.forEach(e,(r,a)=>{if(!o.isValidElement(r))return;let l=[...t,a];if(r.type===o.Fragment){n.push.apply(n,J(r.props.children,l));return}r.type!==ft&&x(!1),!r.props.index||!r.props.children||x(!1);let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=J(r.props.children,l)),n.push(i)}),n}/** 20 * React Router DOM v6.30.4 21 * 22 * Copyright (c) Remix Software Inc. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE.md file in the root directory of this source tree. 26 * 27 * @license MIT 28 */function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(null,arguments)}function ge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function dt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pt(e,t){return e.button===0&&(!t||t==="_self")&&!dt(e)}function K(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||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(a=>[n,a]):[[n,r]])},[]))}function mt(e,t){let n=K(e);return t&&t.forEach((r,a)=>
28{n.has(a)||t.getAll(a).forEach(l=>{n.append(a,l)})}),n}const vt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gt=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],yt="6";try{window.__reactRouterVersion=yt}catch{}const xt=o.createContext({isTransitioning:!1}),Ct="startTransition",le=Ce[Ct];function It(e){let{basename:t,children:n,future:r,window:a}=e,l=o.useRef();l.current==null&&(l.current=Pe({window:a,v5Compat:!0}));let i=l.current,[u,s]=o.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},h=o.useCallback(f=>{c&&le?le(()=>s(f)):s(f)},[s,c]);return o.useLayoutEffect(()=>i.listen(h),[i,h]),o.useEffect(()=>ct(r),[r]),o.createElement(ht,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}const Pt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Et=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wt=o.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:l,replace:i,state:u,target:s,to:c,preventScrollReset:h,viewTransition:f}=t,p=ge(t,vt),{basename:E}=o.useContext(R),g,m=!1;if(typeof c=="string"&&Et.test(c)&&(g=c,Pt))try{let y=new URL(window.location.href),P=c.startsWith("//")?new URL(y.protocol+c):new URL(c),S=O(P.pathname,E);P.origin===y.origin&&S!=null?c=S+P.search+P.hash:m=!0}catch{}let d=Ge(c,{relative:a}),C=St(c,{replace:i,state:u,target:s,preventScrollReset:h,relative:a,viewTransition:f});function v(y){r&&r(y),y.defaultPrevented||C(y)}return o.createElement("a",_({},p,{href:g||d,onClick:m||l?r:v,ref:n,target:s}))}),kt=o.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:a=!1,className:l="",end:i=!1,style:u,to:s,viewTransition:c,children:h}=t,f=ge(t,gt),p=j(s,{relative:f.relative}),E=U(),g=o.useContext(fe),{navigator:m,basename:d}=o.useContext(R),C=g!=null&&bt(p)&&c===!0,v=m.encodeLocation?m.encodeLocation(p).pathname:p.pathname,y=E.pathname,P=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;a||(y=y.toLowerCase(),P=P?P.toLowerCase():null,v=v.toLowerCase()),P&&d&&(P=O(P,d)||P);const S=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let F=y===v||!i&&y.startsWith(v)&&y.charAt(S)==="/",Y=P!=null&&(P===v||!i&&P.startsWith(v)&&P.charAt(v.length)==="/"),M={isActive:F,isPending:Y,isTransitioning:C},ye=F?r:void 0,A;typeof l=="function"?A=l(M):A=[l,F?"active":null,Y?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let xe=typeof u=="function"?u(M):u;return o.createElement(wt,_({},f,{"aria-current":ye,className:A,ref:n,style:xe,to:s,viewTransition:c}),typeof h=="function"?h(M):h)});var G;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(G||(G={}));var ie;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ie||(ie={}));function Rt(e){let t=o.useContext($);return t||x(!1),t}function St(e,t){let{target:n,replace:r,state:a,preventScrollReset:l,relative:i,viewTransition:u}=t===void 0?{}:t,s=Q(),c=U(),h=j(e,{relative:i});return o.useCallback(f=>{if(pt(f,n)){f.preventDefault();let p=r!==void 0?r:W(c)===W(h);s(e,{replace:p,state:a,preventScrollReset:l,relative:i,viewTransition:u})}},[c,s,h,r,a,n,e,l,i,u])}function Wt(e){let t=o.useRef(K(e)),n=o.useRef(!1),r=U(),a=o.useMemo(()=>mt(r.search,n.current?null:t.current),[r.search]),l=Q(),i=o.useCallback((u,s)=>{const c=K(typeof u=="function"?u(a):u);n.current=!0,l("?"+c,s)},[l,a]);return[a,i]}function bt(e,t){t===void 0&&(t={});let n=o.useContext(xt);n==null&&x(!1);let{basename:r}=Rt(G.useViewTransitionState),a=j(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=O(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=O(n.nextLocation.pathname,r)||n.nextLocation.pathname;return D(a.pathname,i)!=null||D(a.pathname,l)!=null}export{It as B,wt as L,Nt as N,Tt as O,Bt as R,Ut as a,ft as b,kt as c,Ot as d,Wt as e,U as u};
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.