basic_67 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react")):typeof define==`function`&&define.amd?define([`exports`,`react`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.YourPackageName={},e.React))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),l=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e};t=((e,t,i)=>(i=e==null?{}:n(o(e)),l(t||!e||!e.__esModule||!s.call(e,`default`)?r(i,`default`,{value:e,enumerable:!0}):i,e)))(t,1);var u=c((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),d=c((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case ee:return`Activity`;case te:return`ViewTransition`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=D.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(O.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){A||(A=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return ie[e]||(ie[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0){if(o){if(re(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`)}else f(p)}if(O.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,M[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,o,p,m,p),M[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require("react"),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),te=Symbol.for(`react.view_transition`),ne=Symbol.for(`react.client.reference`),D=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Object.prototype.hasOwnProperty,re=Array.isArray,k=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var A,ie={},ae=m.react_stack_bottom_frame.bind(m,o)(),j=k(i(o)),M={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>D.recentlyCreatedOwnerStacks++;if(r){var a=Error.stackTraceLimit;Error.stackTraceLimit=10;var o=Error(`react-stack-top-frame`);Error.stackTraceLimit=a}else o=ae;return d(e,t,n,!1,o,r?k(i(e)):j)},e.jsxs=function(e,t,n){var r=1e4>D.recentlyCreatedOwnerStacks++;if(r){var a=Error.stackTraceLimit;Error.stackTraceLimit=10;var o=Error(`react-stack-top-frame`);Error.stackTraceLimit=a}else o=ae;return d(e,t,n,!0,o,r?k(i(e)):j)}})()})),f=c(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?u():d()}))(),p=()=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(`h1`,{children:`About`})}),m=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,h=/^[\\/]{2}/;function g(e,t){return t+e.replace(/\\/g,`/`)}function _(e,t){if(e===!1||e==null)throw Error(t)}function v(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function y({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function b(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function x(e,t,n=`/`){return S(e,t,n,!1)}function S(e,t,n,r,i){let a=N((typeof t==`string`?b(t):t).pathname||`/`,n);if(a==null)return null;let o=i??C(e),s=null,c=se(a);for(let e=0;s==null&&e<o.length;++e)s=ae(o[e],c,r);return s}function C(e){let t=w(e);return E(t),t}function w(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;_(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=I([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(_(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),w(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:A(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=oe(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of T(e.path))a(e,t,!0,n)}),t}function T(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=T(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 E(e){e.sort((e,t)=>e.score===t.score?ie(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ee=/^:[\w-]+$/,te=3,ne=2,D=1,O=10,re=-2,k=e=>e===`*`;function A(e,t){let n=e.split(`/`),r=n.length;return n.some(k)&&(r+=re),t&&(r+=ne),n.filter(e=>!k(e)).reduce((e,t)=>e+(ee.test(t)?te:t===``?D:O),r)}function ie(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 ae(e,t,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={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?M(u,l,s.matcher,s.compiledParams):j(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=j({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:I([a,d.pathname]),pathnameBase:pe(I([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=I([a,d.pathnameBase]))}return o}function j(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=oe(e.path,e.caseSensitive,e.end);return M(e,t,n,r)}function M(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=L(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=L(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function oe(e,t=!1,n=!0){v(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,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function se(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return v(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function N(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 ce(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?b(e):e,a;return n?(n=fe(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?le(n.substring(1),`/`):le(n,t)):a=t,{pathname:a,search:me(r),hash:he(i)}}function le(e,t){let n=L(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}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 <Link to="..."> and the router will parse it for you.`}function ue(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function de(e){let t=ue(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function F(e,t,n,r=!1){let i;typeof e==`string`?i=b(e):(i={...e},_(!i.pathname||!i.pathname.includes(`?`),P(`?`,`pathname`,`search`,i)),_(!i.pathname||!i.pathname.includes(`#`),P(`#`,`pathname`,`hash`,i)),_(!i.search||!i.search.includes(`#`),P(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ce(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var fe=e=>e.replace(/[\\/]{2,}/g,`/`),I=e=>fe(e.join(`/`));function L(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var pe=e=>L(e).replace(/^\/*/,`/`),me=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,he=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,ge=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function _e(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ve(e){return I(e.map(e=>e.route.path).filter(Boolean))||`/`}var ye=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function be(e,t){let n=e;if(typeof n!=`string`||!m.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ye)try{let e=new URL(window.location.href),r=h.test(n)?new URL(g(n,e.protocol)):new URL(n),a=N(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{v(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var xe=new URL(`http://localhost`);function Se(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),xe)}catch{return xe}}function R(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Ce(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function we(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!R(i,n),s=!R(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Ce(e,i)||!R(i,a)))throw Error(`External navigation is not allowed`)}var Te=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Te);var Ee=[`GET`,...Te];new Set(Ee);var De=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Oe(e){try{return De.includes(new URL(e).protocol)}catch{return!1}}var z=t.createContext(null);z.displayName=`DataRouter`;var B=t.createContext(null);B.displayName=`DataRouterState`;var ke=t.createContext(!1);function Ae(){return t.useContext(ke)}var je=t.createContext({isTransitioning:!1});je.displayName=`ViewTransition`;var Me=t.createContext(new Map);Me.displayName=`Fetchers`;var Ne=t.createContext(null);Ne.displayName=`Await`;var V=t.createContext(null);V.displayName=`Navigation`;var H=t.createContext(null);H.displayName=`Location`;var U=t.createContext({outlet:null,matches:[],isDataRoute:!1});U.displayName=`Route`;var Pe=t.createContext(null);Pe.displayName=`RouteError`;var Fe=`REACT_ROUTER_ERROR`,Ie=`REDIRECT`,Le=`ROUTE_ERROR_RESPONSE`;function Re(e){if(e.startsWith(`${Fe}:${Ie}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function ze(e){if(e.startsWith(`${Fe}:${Le}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new ge(t.status,t.statusText,t.data)}catch{}}function Be(e,{relative:n}={}){_(W(),`useHref() may be used only in the context of a <Router> component.`);let{basename:r,navigator:i}=t.useContext(V),{hash:a,pathname:o,search:s}=K(e,{relative:n}),c=o;return r!==`/`&&(c=o===`/`?r:I([r,o])),i.createHref({pathname:c,search:s,hash:a})}function W(){return t.useContext(H)!=null}function G(){return _(W(),`useLocation() may be used only in the context of a <Router> component.`),t.useContext(H).location}var Ve=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function He(e){t.useContext(V).static||t.useLayoutEffect(e)}function Ue(){let{isDataRoute:e}=t.useContext(U);return e?ot():We()}function We(){_(W(),`useNavigate() may be used only in the context of a <Router> component.`);let e=t.useContext(z),{basename:n,navigator:r}=t.useContext(V),{matches:i}=t.useContext(U),{pathname:a}=G(),o=JSON.stringify(de(i)),s=t.useRef(!1);return He(()=>{s.current=!0}),t.useCallback((t,i={})=>{if(v(s.current,Ve),!s.current)return;if(typeof t==`number`){r.go(t);return}let c=F(t,JSON.parse(o),a,i.relative===`path`);e==null&&n!==`/`&&(c.pathname=c.pathname===`/`?n:I([n,c.pathname])),we(typeof t==`string`?t:y(t),r.createHref(c),Se(r),`reject`),(i.replace?r.replace:r.push)(c,i.state,i)},[n,r,o,a,e])}t.createContext(null);function K(e,{relative:n}={}){let{matches:r}=t.useContext(U),{pathname:i}=G(),a=JSON.stringify(de(r));return t.useMemo(()=>F(e,JSON.parse(a),i,n===`path`),[e,a,i,n])}function Ge(e,n,r){_(W(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:i}=t.useContext(V),{matches:a}=t.useContext(U),o=a[a.length-1],s=o?o.params:{},c=o?o.pathname:`/`,l=o?o.pathnameBase:`/`,u=o&&o.route;{let e=u&&u.path||``;ct(c,!u||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
7
+
8
+ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let d=G(),f;if(n){let e=typeof n==`string`?b(n):n;_(l===`/`||e.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=d;let p=f.pathname||`/`,m=p;if(l!==`/`){let e=l.replace(/^\//,``).split(`/`);m=`/`+p.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=r&&r.state.matches.length?r.state.matches.map(e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route})):x(e,{pathname:m});v(u||h!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),v(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=Qe(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:I([l,i.encodeLocation?i.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?l:I([l,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),a,r);return n&&g?t.createElement(H.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...f},navigationType:`POP`}},g):g}function Ke(){let e=at(),n=_e(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i=`rgba(200,200,200, 0.5)`,a={padding:`0.5rem`,backgroundColor:i},o={padding:`2px 4px`,backgroundColor:i},s=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),s=t.createElement(t.Fragment,null,t.createElement(`p`,null,`💿 Hey developer 👋`),t.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,t.createElement(`code`,{style:o},`ErrorBoundary`),` or`,` `,t.createElement(`code`,{style:o},`errorElement`),` prop on your route.`)),t.createElement(t.Fragment,null,t.createElement(`h2`,null,`Unexpected Application Error!`),t.createElement(`h3`,{style:{fontStyle:`italic`}},n),r?t.createElement(`pre`,{style:a},r):null,s)}var qe=t.createElement(Ke,null),Je=class extends t.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){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=ze(e.digest);t&&(e=t)}let n=e===void 0?this.props.children:t.createElement(U.Provider,{value:this.props.routeContext},t.createElement(Pe.Provider,{value:e,children:this.props.component}));return this.context?t.createElement(Xe,{error:e},n):n}};Je.contextType=ke;var Ye=new WeakMap;function Xe({children:e,error:n}){let{basename:r,navigator:i}=t.useContext(V);if(typeof n==`object`&&n&&`digest`in n&&typeof n.digest==`string`){let e=Re(n.digest);if(e){let a=Ye.get(n);if(a)throw a;let o=be(e.location,r),s=o.absoluteURL||o.to;if(we(e.location,s,Se(i),`allow-explicit`),Oe(s))throw Error(`Invalid redirect location`);if(ye&&!Ye.get(n)){if(o.isExternal||e.reloadDocument)window.location.href=s;else{let t=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw Ye.set(n,t),t}}return t.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${s}`})}}return e}function Ze({routeContext:e,match:n,children:r}){let i=t.useContext(z);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(U.Provider,{value:e},r)}function Qe(e,n=[],r){let i=r?.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let a=e,o=i?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);_(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(`,`)}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(r&&i){s=i.renderFallback;for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:n}=i,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||n[t.route.id]===void 0);if(t.route.lazy||o){r.isStatic&&(s=!0),a=c>=0?a.slice(0,c+1):[a[0]];break}}}}let l=r?.onError,u=i&&l?(e,t)=>{l(e,{location:i.location,params:i.matches?.[0]?.params??{},pattern:ve(i.matches),errorInfo:t})}:void 0;return a.reduceRight((e,r,l)=>{let d,f=!1,p=null,m=null;i&&(d=o&&r.route.id?o[r.route.id]:void 0,p=r.route.errorElement||qe,s&&(c<0&&l===0?(ct(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):c===l&&(f=!0,m=r.route.hydrateFallbackElement||null)));let h=n.concat(a.slice(0,l+1)),g=()=>{let n;return n=d?p:f?m:r.route.Component?t.createElement(r.route.Component,null):r.route.element?r.route.element:e,t.createElement(Ze,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:i!=null},children:n})};return i&&(r.route.ErrorBoundary||r.route.errorElement||l===0)?t.createElement(Je,{location:i.location,revalidation:i.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()},null)}function $e(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function et(e){let n=t.useContext(z);return _(n,$e(e)),n}function tt(e){let n=t.useContext(B);return _(n,$e(e)),n}function nt(e){let n=t.useContext(U);return _(n,$e(e)),n}function rt(e){let t=nt(e),n=t.matches[t.matches.length-1];return _(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function it(){return rt(`useRouteId`)}function at(){let e=t.useContext(Pe),n=tt(`useRouteError`),r=rt(`useRouteError`);return e===void 0?n.errors?.[r]:e}function ot(){let{router:e}=et(`useNavigate`),n=rt(`useNavigate`),r=t.useRef(!1);return He(()=>{r.current=!0}),t.useCallback(async(t,i={})=>{v(r.current,Ve),r.current&&(typeof t==`number`?await e.navigate(t):await e.navigate(t,{fromRouteId:n,...i}))},[e,n])}var st={};function ct(e,t,n){!t&&!st[e]&&(st[e]=!0,v(!1,n))}t.memo(lt);function lt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Ge(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}t.Component;var q=`get`,J=`application/x-www-form-urlencoded`;function Y(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function ut(e){return Y(e)&&e.tagName.toLowerCase()===`button`}function dt(e){return Y(e)&&e.tagName.toLowerCase()===`form`}function ft(e){return Y(e)&&e.tagName.toLowerCase()===`input`}function pt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mt(e,t){return e.button===0&&(!t||t===`_self`)&&!pt(e)}var X=null;function ht(){if(X===null)try{new FormData(document.createElement(`form`),0),X=!1}catch{X=!0}return X}var gt=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function _t(e){return e!=null&&!gt.has(e)?(v(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${J}"`),null):e}function vt(e,t){let n,r,i,a,o;if(dt(e)){let o=e.getAttribute(`action`);r=o?N(o,t):null,n=e.getAttribute(`method`)||q,i=_t(e.getAttribute(`enctype`))||J,a=new FormData(e)}else if(ut(e)||ft(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?N(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||q,i=_t(e.getAttribute(`formenctype`))||_t(o.getAttribute(`enctype`))||J,a=new FormData(o,e),!ht()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Y(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=q,r=null,i=J,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function yt(e,t){if(e===!1||e==null)throw Error(t)}function bt(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&N(i.pathname,t)===`/`?`${L(t)}/_root.${r}`:`${L(i.pathname)}.${r}`,i}async function xt(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function St(e){return e!=null&&typeof e.page==`string`}function Ct(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function wt(e,t,n){return kt((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await xt(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ct).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Tt(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Et(e,t,{includeHydrateFallback:n}={}){return Dt(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Dt(e){return[...new Set(e)]}function Ot(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function kt(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!St(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Ot(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function At(){let e=t.useContext(z);return yt(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function jt(){let e=t.useContext(B);return yt(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Mt=t.createContext(void 0);Mt.displayName=`FrameworkContext`;function Z(){let e=t.useContext(Mt);return yt(e,`You must render this element inside a <HydratedRouter> element`),e}function Nt(e,n){let r=t.useContext(Mt),[i,a]=t.useState(!1),[o,s]=t.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=n,p=t.useRef(null);t.useEffect(()=>{if(e===`render`&&s(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),t.useEffect(()=>{if(i){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[i]);let m=()=>{a(!0)},h=()=>{a(!1),s(!1)};return r?e===`intent`?[o,p,{onFocus:Q(c,m),onBlur:Q(l,h),onMouseEnter:Q(u,m),onMouseLeave:Q(d,h),onTouchStart:Q(f,m)}]:[o,p,{}]:[!1,p,{}]}function Q(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Pt({page:e,...n}){let r=Ae(),{nonce:i}=Z(),{router:a}=At(),o=t.useMemo(()=>x(a.routes,e,a.basename),[a.routes,e,a.basename]);return o?(n.nonce==null&&i&&(n={...n,nonce:i}),r?t.createElement(It,{page:e,matches:o,...n}):t.createElement(Lt,{page:e,matches:o,...n})):null}function Ft(e){let{manifest:n,routeModules:r}=Z(),[i,a]=t.useState([]);return t.useEffect(()=>{let t=!1;return wt(e,n,r).then(e=>{t||a(e)}),()=>{t=!0}},[e,n,r]),i}function It({page:e,matches:n,...r}){let i=G(),{future:a}=Z(),{basename:o}=At(),s=t.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let t=bt(e,o,a.v8_trailingSlashAwareDataRequests,`rsc`),r=!1,s=[];for(let e of n)typeof e.route.shouldRevalidate==`function`?r=!0:s.push(e.route.id);return r&&s.length>0&&t.searchParams.set(`_routes`,s.join(`,`)),[t.pathname+t.search]},[o,a.v8_trailingSlashAwareDataRequests,e,i,n]);return t.createElement(t.Fragment,null,s.map(e=>t.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...r})))}function Lt({page:e,matches:n,...r}){let i=G(),{future:a,manifest:o,routeModules:s}=Z(),{basename:c}=At(),{loaderData:l,matches:u}=jt(),d=t.useMemo(()=>Tt(e,n,u,o,i,`data`),[e,n,u,o,i]),f=t.useMemo(()=>Tt(e,n,u,o,i,`assets`),[e,n,u,o,i]),p=t.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let t=new Set,r=!1;if(n.forEach(e=>{let n=o.routes[e.route.id];n&&n.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||n.hasClientLoader?r=!0:t.add(e.route.id))}),t.size===0)return[];let u=bt(e,c,a.v8_trailingSlashAwareDataRequests,`data`);return r&&t.size>0&&u.searchParams.set(`_routes`,n.filter(e=>t.has(e.route.id)).map(e=>e.route.id).join(`,`)),[u.pathname+u.search]},[c,a.v8_trailingSlashAwareDataRequests,l,i,o,d,n,e,s]),m=t.useMemo(()=>Et(f,o),[f,o]),h=Ft(f);return t.createElement(t.Fragment,null,p.map(e=>t.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...r})),m.map(e=>t.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...r})),h.map(({key:e,link:n})=>t.createElement(`link`,{key:e,nonce:r.nonce,...n,crossOrigin:n.crossOrigin??r.crossOrigin})))}function Rt(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}t.Component;var zt=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{zt&&(window.__reactRouterVersion=`7.18.3`)}catch{}var Bt=t.forwardRef(function({onClick:e,discover:n=`render`,prefetch:r=`none`,relative:i,reloadDocument:a,replace:o,mask:s,state:c,target:l,to:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...h},g){let{basename:_,navigator:v,useTransitions:y}=t.useContext(V),b=typeof u==`string`&&m.test(u),x=be(u,_);u=x.to;let S=Be(u,{relative:i}),C=G(),w=null;if(s){let e=F(s,[],C.mask?C.mask.pathname:`/`,!0);_!==`/`&&(e.pathname=e.pathname===`/`?_:I([_,e.pathname])),w=v.createHref(e)}let[T,E,ee]=Nt(r,h),te=Wt(u,{replace:o,mask:s,state:c,target:l,preventScrollReset:d,relative:i,viewTransition:f,defaultShouldRevalidate:p,useTransitions:y});function ne(t){e&&e(t),t.defaultPrevented||te(t)}let D=!(x.isExternal||a),O=t.createElement(`a`,{...h,...ee,href:(D?w:void 0)||x.absoluteURL||S,onClick:D?ne:e,ref:Rt(g,E),target:l,"data-discover":!b&&n===`render`?`true`:void 0});return T&&!b?t.createElement(t.Fragment,null,O,t.createElement(Pt,{page:S})):O});Bt.displayName=`Link`;var $=t.forwardRef(function({"aria-current":e=`page`,caseSensitive:n=!1,className:r=``,end:i=!1,style:a,to:o,viewTransition:s,children:c,...l},u){let d=K(o,{relative:l.relative}),f=G(),p=t.useContext(B),{navigator:m,basename:h}=t.useContext(V),g=p!=null&&Yt(d)&&s===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=N(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!i&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!i&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof r==`function`?r(C):[r,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof a==`function`?a(C):a;return t.createElement(Bt,{...l,"aria-current":w,className:T,ref:u,style:E,to:o,viewTransition:s},typeof c==`function`?c(C):c)});$.displayName=`NavLink`;var Vt=t.forwardRef(({discover:e=`render`,fetcherKey:n,navigate:r,reloadDocument:i,replace:a,state:o,method:s=q,action:c,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...h},g)=>{let{useTransitions:_}=t.useContext(V),v=qt(),y=Jt(c,{relative:u}),b=s.toLowerCase()===`get`?`get`:`post`,x=typeof c==`string`&&m.test(c);return t.createElement(`form`,{ref:g,method:b,action:y,onSubmit:i?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let i=e.nativeEvent.submitter,c=i?.getAttribute(`formmethod`)||s,m=()=>v(i||e.currentTarget,{fetcherKey:n,method:c,navigate:r,replace:a,state:o,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});_&&r!==!1?t.startTransition(()=>m()):m()},...h,"data-discover":!x&&e===`render`?`true`:void 0})});Vt.displayName=`Form`;function Ht(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ut(e){let n=t.useContext(z);return _(n,Ht(e)),n}function Wt(e,{target:n,replace:r,mask:i,state:a,preventScrollReset:o,relative:s,viewTransition:c,defaultShouldRevalidate:l,useTransitions:u}={}){let d=Ue(),f=G(),p=K(e,{relative:s});return t.useCallback(m=>{if(mt(m,n)){m.preventDefault();let n=r===void 0?y(f)===y(p):r,h=()=>d(e,{replace:n,mask:i,state:a,preventScrollReset:o,relative:s,viewTransition:c,defaultShouldRevalidate:l});u?t.startTransition(()=>h()):h()}},[f,d,p,r,i,a,n,e,o,s,c,l,u])}var Gt=0,Kt=()=>`__${String(++Gt)}__`;function qt(){let{router:e}=Ut(`useSubmit`),{basename:n}=t.useContext(V),r=it(),i=e.fetch,a=e.navigate;return t.useCallback(async(e,t={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=vt(e,n);if(t.navigate===!1){let e=t.fetcherKey||Kt();await i(e,r,t.action||o,{defaultShouldRevalidate:t.defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:l,body:u,formMethod:t.method||s,formEncType:t.encType||c,flushSync:t.flushSync})}else await a(t.action||o,{defaultShouldRevalidate:t.defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:l,body:u,formMethod:t.method||s,formEncType:t.encType||c,replace:t.replace,state:t.state,fromRouteId:r,flushSync:t.flushSync,viewTransition:t.viewTransition})},[i,a,n,r])}function Jt(e,{relative:n}={}){let{basename:r}=t.useContext(V),i=t.useContext(U);_(i,`useFormAction must be used inside a RouteContext`);let[a]=i.matches.slice(-1),o={...K(e||`.`,{relative:n})},s=G();if(e==null){o.search=s.search;let e=new URLSearchParams(o.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();o.search=n?`?${n}`:``}}return(!e||e===`.`)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),r!==`/`&&(o.pathname=o.pathname===`/`?r:I([r,o.pathname])),y(o)}function Yt(e,{relative:n}={}){let r=t.useContext(je);_(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Ut(`useViewTransitionState`),a=K(e,{relative:n});if(!r.isTransitioning)return!1;let o=N(r.currentLocation.pathname,i)||r.currentLocation.pathname,s=N(r.nextLocation.pathname,i)||r.nextLocation.pathname;return j(a.pathname,s)!=null||j(a.pathname,o)!=null}e.About=p,e.Header=()=>(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(`nav`,{className:`navbar`,children:[(0,f.jsx)(`div`,{className:`navbar-logo`,children:`SRKI`}),(0,f.jsxs)(`ul`,{className:`navbar-menu`,children:[(0,f.jsx)(`li`,{children:(0,f.jsx)($,{className:`nav-links`,to:`/`,children:`Home`})}),(0,f.jsx)(`li`,{children:(0,f.jsx)($,{className:`nav-links`,to:`/About`,children:`About`})}),(0,f.jsx)(`li`,{children:(0,f.jsx)($,{className:`nav-links`,to:`/Students`,children:`Students`})})]})]})}),e.Home=()=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(`h1`,{children:`Home`})}),e.Students=()=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(`h1`,{children:`Students`})})});
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "basic_67",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "main": "./dist/index.umd.js",
6
+ "module": "./dist/index.es.js",
7
+ "style": "./dist/basic_67.css",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.es.js",
14
+ "require": "./dist/index.umd.js"
15
+ },
16
+ "./basic_67.css": "./dist/basic_67.css"
17
+ },
18
+ "scripts": {
19
+ "dev": "vite",
20
+ "build": "vite build",
21
+ "lint": "eslint .",
22
+ "preview": "vite preview"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "^18.0.0 || ^19.0.0",
26
+ "react-dom": "^18.0.0 || ^19.0.0"
27
+ },
28
+ "dependencies": {
29
+ "react-router-dom": "^7.18.3"
30
+ },
31
+ "devDependencies": {
32
+ "@eslint/js": "^10.0.1",
33
+ "@types/react": "^19.2.18",
34
+ "@types/react-dom": "^19.2.7",
35
+ "@vitejs/plugin-react": "^6.1.1",
36
+ "eslint": "^10.10.0",
37
+ "eslint-plugin-react-hooks": "^7.1.1",
38
+ "eslint-plugin-react-refresh": "^0.5.6",
39
+ "globals": "^17.12.0",
40
+ "react": "^19.2.8",
41
+ "react-dom": "^19.2.8",
42
+ "vite": "^8.3.0"
43
+ }
44
+ }