vendor: 10,335 bytes, line 1
1import{o as e,t}from"./rolldown-runtime-BM3Ffeng.js";import{Mr as n,Nr as r}from"./DataGrid-DITduGG7.js";var i=t((e=>{var t=n();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),a=e(r());n();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)}var s;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(s||={});var c=`popstate`;function l(e){e===void 0&&(e={});function t(e,t){let{pathname:n,search:r,hash:i}=e.location;return m(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){return typeof t==`string`?t:h(t)}return _(t,n,null,e)}function u(e,t){if(e===!1||e==null)throw Error(t)}function d(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function f(){return Math.random().toString(36).substr(2,8)}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,n,r){return n===void 0&&(n=null),o({pathname:typeof e==`string`?e:e.pathname,search:``,hash:``},typeof t==`string`?g(t):t,{state:n,key:t&&t.key||r||f()})}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 g(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 _(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,l=i.history,d=s.Pop,f=null,g=_();g??(g=0,l.replaceState(o({},l.state,{idx:g}),``));function _(){return(l.state||{idx:null}).idx}function v(){d=s.Pop;let e=_(),t=e==null?null:e-g;g=e,f&&f({action:d,location:S.location,delta:t})}function y(e,t){d=s.Push;let r=m(S.location,e,t);n&&n(r,e),g=_()+1;let o=p(r,g),c=S.createHref(r);try{l.pushState(o,``,c)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(c)}a&&f&&f({action:d,location:S.location,delta:1})}function b(e,t){d=s.Replace;let r=m(S.location,e,t);n&&n(r,e),g=_();let i=p(r,g),o=S.createHref(r);l.replaceState(i,``,o),a&&f&&f({action:d,location:S.location,delta:0})}function x(e){let t=i.location.origin===`null`?i.location.href:i.location.origin,n=typeof e==`string`?e:h(e);return n=n.replace(/ $/,`%20`),u(t,`No window.location.(origin|href) available to create URL for href: `+n),new URL(n,t)}let S={get action(){return d},get location(){return e(i,l)},listen(e){if(f)throw Error(`A history only accepts one active listener`);return i.addEventListener(c,v),f=e,()=>{i.removeEventListener(c,v),f=null}},createHref(e){return t(i,e)},createURL:x,encodeLocation(e){let t=x(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:y,replace:b,go(e){return l.go(e)}};return S}var v;(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(v||={});function y(e,t,n){return n===void 0&&(n=`/`),b(e,t,n,!1)}function b(e,t,n,r){let i=D((typeof t==`string`?g(t):t).pathname||`/`,n);if(i==null)return null;let a=x(e);ee(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=le(i);o=se(a[e],t,r)}return o}function x(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=``);let i=(e,i,a)=>{let o={relativePath:a===void 0?e.path||``:a,caseSensitive:e.caseSensitive===!0,childrenIndex:i,route:e};o.relativePath.startsWith(`/`)&&(u(o.relativePath.startsWith(r),`Absolute route path "`+o.relativePath+`" nested under path `+(`"`+r+`" is not valid. An absolute child route path `)+`must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(r.length));let s=M([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(u(e.index!==!0,`Index routes must not have child routes. Please remove `+(`all child routes from route path "`+s+`".`)),x(e.children,t,c,s)),!(e.path==null&&!e.index)&&t.push({path:s,score:ae(s,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))i(e,t);else for(let n of S(e.path))i(e,t,n)}),t}function S(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=S(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 ee(e){e.sort((e,t)=>e.score===t.score?oe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var te=/^:[\w-]+$/,ne=3,re=2,C=1,w=10,ie=-2,T=e=>e===`*`;function ae(e,t){let n=e.split(`/`),r=n.length;return n.some(T)&&(r+=ie),t&&(r+=re),n.filter(e=>!T(e)).reduce((e,t)=>e+(te.test(t)?ne:t===``?C:w),r)}function oe(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 se(e,t,n){n===void 0&&(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=E({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=E({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:M([a,u.pathname]),pathnameBase:me(M([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=M([a,u.pathnameBase]))}return o}function E(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ce(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,t,n)=>{let{paramName:r,isOptional:i}=t;if(r===`*`){let e=s[n]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let c=s[n];return i&&!c?e[r]=void 0:e[r]=(c||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function ce(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),d(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)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`));return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function le(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return d(!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 D(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)||`/`}var ue=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,de=e=>ue.test(e);function fe(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?g(e):e,a;if(n)if(de(n))a=n;else{if(n.includes(`//`)){let e=n;n=n.replace(/\/\/+/g,`/`),d(!1,`Pathnames cannot have embedded double slashes - normalizing `+(e+` -> `+n))}a=n.startsWith(`/`)?O(n.substring(1),`/`):O(n,t)}else a=t;return{pathname:a,search:he(r),hash:ge(i)}}function O(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 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 pe(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function A(e,t){let n=pe(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function j(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=g(e):(i=o({},e),u(!i.pathname||!i.pathname.includes(`?`),k(`?`,`pathname`,`search`,i)),u(!i.pathname||!i.pathname.includes(`#`),k(`#`,`pathname`,`hash`,i)),u(!i.search||!i.search.includes(`#`),k(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,s=a?`/`:i.pathname,c;if(s==null)c=n;else{let e=t.length-1;if(!r&&s.startsWith(`..`)){let t=s.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}c=e>=0?t[e]:`/`}let l=fe(i,c),d=s&&s!==`/`&&s.endsWith(`/`),f=(a||s===`.`)&&n.endsWith(`/`);return!l.pathname.endsWith(`/`)&&(d||f)&&(l.pathname+=`/`),l}var M=e=>e.join(`/`).replace(/\/\/+/g,`/`),me=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),he=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,ge=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e;function _e(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}var N=[`post`,`put`,`patch`,`delete`];new Set(N);var ve=[`get`,...N];new Set(ve);function P(){return P=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},P.apply(this,arguments)}var F=a.createContext(null),ye=a.createContext(null),I=a.createContext(null),L=a.createContext(null),R=a.createContext({outlet:null,matches:[],isDataRoute:!1}),z=a.createContext(null);function be(e,t){let{relative:n}=t===void 0?{}:t;!B()&&u(!1);let{basename:r,navigator:i}=a.useContext(I),{hash:o,pathname:s,search:c}=W(e,{relative:n}),l=s;return r!==`/`&&(l=s===`/`?r:M([r,s])),i.createHref({pathname:l,search:c,hash:o})}function B(){return a.useContext(L)!=null}function V(){return!B()&&u(!1),a.useContext(L).location}function H(e){a.useContext(I).static||a.useLayoutEffect(e)}function U(){let{isDataRoute:e}=a.useContext(R);return e?Pe():xe()}function xe(){!B()&&u(!1);let e=a.useContext(F),{basename:t,future:n,navigator:r}=a.useContext(I),{matches:i}=a.useContext(R),{pathname:o}=V(),s=JSON.stringify(A(i,n.v7_relativeSplatPath)),c=a.useRef(!1);return H(()=>{c.current=!0}
1),a.useCallback(function(n,i){if(i===void 0&&(i={}),!c.current)return;if(typeof n==`number`){r.go(n);return}let a=j(n,JSON.parse(s),o,i.relative===`path`);e==null&&t!==`/`&&(a.pathname=a.pathname===`/`?t:M([t,a.pathname])),(i.replace?r.replace:r.push)(a,i.state,i)},[t,r,s,o,e])}var Se=a.createContext(null);function Ce(e){let t=a.useContext(R).outlet;return t&&a.createElement(Se.Provider,{value:e},t)}function W(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=a.useContext(I),{matches:i}=a.useContext(R),{pathname:o}=V(),s=JSON.stringify(A(i,r.v7_relativeSplatPath));return a.useMemo(()=>j(e,JSON.parse(s),o,n===`path`),[e,s,o,n])}function we(e,t){return Te(e,t)}function Te(e,t,n,r){!B()&&u(!1);let{navigator:i}=a.useContext(I),{matches:o}=a.useContext(R),c=o[o.length-1],l=c?c.params:{};c&&c.pathname;let d=c?c.pathnameBase:`/`;c&&c.route;let f=V(),p;if(t){let e=typeof t==`string`?g(t):t;!(d===`/`||e.pathname?.startsWith(d))&&u(!1),p=e}else p=f;let m=p.pathname||`/`,h=m;if(d!==`/`){let e=d.replace(/^\//,``).split(`/`);h=`/`+m.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let _=y(e,{pathname:h}),v=Ae(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:M([d,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?d:M([d,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,n,r);return t&&v?a.createElement(L.Provider,{value:{location:P({pathname:`/`,search:``,hash:``,state:null,key:`default`},p),navigationType:s.Pop}},v):v}function Ee(){let e=Ne(),t=_e(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;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:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var De=a.createElement(Ee,null),Oe=class 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||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){console.error(`React Router caught the following error during render`,e,t)}render(){return this.state.error===void 0?this.props.children:a.createElement(R.Provider,{value:this.props.routeContext},a.createElement(z.Provider,{value:this.state.error,children:this.props.component}))}};function ke(e){let{routeContext:t,match:n,children:r}=e,i=a.useContext(F);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),a.createElement(R.Provider,{value:t},r)}function Ae(e,t,n,r){if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=n?.errors;if(s!=null){let e=o.findIndex(e=>e.route.id&&s?.[e.route.id]!==void 0);!(e>=0)&&u(!1),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&e[t.route.id]===void 0&&(!r||r[t.route.id]===void 0);if(t.route.lazy||i){c=!0,o=l>=0?o.slice(0,l+1):[o[0]];break}}}return o.reduceRight((e,r,i)=>{let u,d=!1,f=null,p=null;n&&(u=s&&r.route.id?s[r.route.id]:void 0,f=r.route.errorElement||De,c&&(l<0&&i===0?(Fe(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):l===i&&(d=!0,p=r.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,i+1)),h=()=>{let t;return t=u?f:d?p:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(ke,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:n!=null},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||i===0)?a.createElement(Oe,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:h(),routeC
1ontext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var G=function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e}(G||{}),K=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}(K||{});function je(e){let t=a.useContext(F);return!t&&u(!1),t}function q(e){let t=a.useContext(ye);return!t&&u(!1),t}function Me(e){let t=a.useContext(R);return!t&&u(!1),t}function J(e){let t=Me(e),n=t.matches[t.matches.length-1];return!n.route.id&&u(!1),n.route.id}function Ne(){let e=a.useContext(z),t=q(K.UseRouteError),n=J(K.UseRouteError);return e===void 0?t.errors?.[n]:e}function Pe(){let{router:e}=je(G.UseNavigateStable),t=J(K.UseNavigateStable),n=a.useRef(!1);return H(()=>{n.current=!0}),a.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,P({fromRouteId:t},i)))},[e,t])}var Y={};function Fe(e,t,n){!t&&!Y[e]&&(Y[e]=!0)}var X=(e,t,n)=>(``+t+("You can use the `"+e+"` future flag to opt-in early. ")+(`For more information, see `+n+`.`),void 0);function Ie(e,t){e?.v7_startTransition===void 0&&X(`v7_startTransition`,"React Router will begin wrapping state updates in `React.startTransition` in v7",`https://reactrouter.com/v6/upgrading/future#v7_starttransition`),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&X(`v7_relativeSplatPath`,`Relative route resolution within Splat routes is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath`),t&&(t.v7_fetcherPersist===void 0&&X(`v7_fetcherPersist`,`The persistence behavior of fetchers is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist`),t.v7_normalizeFormMethod===void 0&&X(`v7_normalizeFormMethod`,"Casing of `formMethod` fields is being normalized to uppercase in v7",`https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod`),t.v7_partialHydration===void 0&&X(`v7_partialHydration`,"`RouterProvider` hydration behavior is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_partialhydration`),t.v7_skipActionErrorRevalidation===void 0&&X(`v7_skipActionErrorRevalidation`,"The revalidation behavior after 4xx/5xx `action` responses is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation`))}function Le(e){let{to:t,replace:n,state:r,relative:i}=e;!B()&&u(!1);let{future:o,static:s}=a.useContext(I),{matches:c}=a.useContext(R),{pathname:l}=V(),d=U(),f=j(t,A(c,o.v7_relativeSplatPath),l,i===`path`),p=JSON.stringify(f);return a.useEffect(()=>d(JSON.parse(p),{replace:n,state:r,relative:i}),[d,p,i,n,r]),null}function Re(e){return Ce(e.context)}function ze(e){let{basename:t=`/`,children:n=null,location:r,navigationType:i=s.Pop,navigator:o,static:c=!1,future:l}=e;B()&&u(!1);let d=t.replace(/^\/*/,`/`),f=a.useMemo(()=>({basename:d,navigator:o,static:c,future:P({v7_relativeSplatPath:!1},l)}),[d,l,o,c]);typeof r==`string`&&(r=g(r));let{pathname:p=`/`,search:m=``,hash:h=``,state:_=null,key:v=`default`}=r,y=a.useMemo(()=>{let e=D(p,d);return e==null?null:{location:{pathname:e,search:m,hash:h,state:_,key:v},navigationType:i}},[d,p,m,h,_,v,i]);return y==null?null:a.createElement(I.Provider,{value:f},a.createElement(L.Provider,{children:n,value:y}))}var Be=function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e}(Be||{});new Promise(()=>{}),a.Component;function Z(){return Z=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},Z.apply(this,arguments)}function Ve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function He(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ue(e,t){return e.button===0&&(!t||t===`_self`)&&!He(e)}function Q(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(e=>[n,e]):[[n,r]])},[]))}function We(e,t){let n=Q(e);return t&&t.forEach((e,r)=>
1{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Ge=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`,`viewTransition`],Ke=`6`;try{window.__reactRouterVersion=Ke}catch{}var $=a.startTransition;function qe(e){let{basename:t,children:n,future:r,window:i}=e,o=a.useRef();o.current??=l({window:i,v5Compat:!0});let s=o.current,[c,u]=a.useState({action:s.action,location:s.location}),{v7_startTransition:d}=r||{},f=a.useCallback(e=>{d&&$?$(()=>u(e)):u(e)},[u,d]);return a.useLayoutEffect(()=>s.listen(f),[s,f]),a.useEffect(()=>Ie(r),[r]),a.createElement(ze,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:s,future:r})}var Je=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Ye=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xe=a.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d}=e,f=Ve(e,Ge),{basename:p}=a.useContext(I),m,h=!1;if(typeof l==`string`&&Ye.test(l)&&(m=l,Je))try{let e=new URL(window.location.href),t=l.startsWith(`//`)?new URL(e.protocol+l):new URL(l),n=D(t.pathname,p);t.origin===e.origin&&n!=null?l=n+t.search+t.hash:h=!0}catch{}let g=be(l,{relative:r}),_=$e(l,{replace:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d});function v(e){n&&n(e),e.defaultPrevented||_(e)}return a.createElement(`a`,Z({},f,{href:m||g,onClick:h||i?n:v,ref:t,target:c}))}),Ze;(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmit=`useSubmit`,e.UseSubmitFetcher=`useSubmitFetcher`,e.UseFetcher=`useFetcher`,e.useViewTransitionState=`useViewTransitionState`})(Ze||={});var Qe;(function(e){e.UseFetcher=`useFetcher`,e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(Qe||={});function $e(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:c}=t===void 0?{}:t,l=U(),u=V(),d=W(e,{relative:s});return a.useCallback(t=>{Ue(t,n)&&(t.preventDefault(),l(e,{replace:r===void 0?h(u)===h(d):r,state:i,preventScrollReset:o,relative:s,viewTransition:c}))},[u,l,d,r,i,n,e,o,s,c])}function et(e){let t=a.useRef(Q(e)),n=a.useRef(!1),r=V(),i=a.useMemo(()=>We(r.search,n.current?null:t.current),[r.search]),o=U();return[i,a.useCallback((e,t)=>{let r=Q(typeof e==`function`?e(i):e);n.current=!0,o(`?`+r,t)},[o,i])]}export{Re as a,we as c,Le as i,i as l,Xe as n,V as o,et as r,U as s,qe as t};
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.