@coreframe/dashboard 0.0.0 → 0.1.1
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.
- package/README.md +93 -0
- package/dist/client/assets/QueryClientProvider-BCOOhPXt.js +1 -0
- package/dist/client/assets/dashboard-0D3-ZE5r.js +64 -0
- package/dist/client/assets/entry.client-DhCu-K7v.js +9 -0
- package/dist/client/assets/errorBoundaries-Dn4hVn2U.js +16 -0
- package/dist/client/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/client/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/client/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/client/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/client/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/client/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/client/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/client/assets/jsx-runtime-CuoEKysV.js +1 -0
- package/dist/client/assets/lib-DciQAlmZ.js +1 -0
- package/dist/client/assets/manifest-da601958.js +1 -0
- package/dist/client/assets/not-found-WOdQxFoc.js +1 -0
- package/dist/client/assets/root-C3UMhDeq.css +1 -0
- package/dist/client/assets/root-CJkTVXq-.js +1 -0
- package/dist/client/assets/root.style-DmKiRSsP.js +1 -0
- package/dist/client/index.html +6 -0
- package/dist/server/index.js +1 -0
- package/dist/src/api/router.js +1 -0
- package/dist/src/api/routes/dashboard.js +1 -0
- package/dist/src/api/routes/development.js +1 -0
- package/dist/src/api/routes/health.js +1 -0
- package/dist/src/api/routes/index.js +1 -0
- package/dist/src/cli.d.ts +1 -0
- package/dist/src/cli.js +8 -0
- package/dist/src/development.d.ts +12 -0
- package/dist/src/development.js +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +1 -0
- package/dist/src/node-fetch-adapter.js +1 -0
- package/dist/src/server.d.ts +24 -0
- package/dist/src/server.js +1 -0
- package/dist/src/types.d.ts +68 -0
- package/dist/src/worker.d.ts +30 -0
- package/dist/src/worker.js +1 -0
- package/package.json +71 -10
- package/readme.md +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),u=o(((e,t)=>{t.exports=l()})),d=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,f=/^[\\/]{2}/;function p(e,t){return t+e.replace(/\\/g,`/`)}var m=`popstate`;function h(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function g(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return x(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:S(t)}return w(t,n,null,e)}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(){return Math.random().toString(36).substring(2,10)}function b(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function x(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?C(t):t,state:n,key:t&&t.key||r||y(),mask:i}}function S({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 C(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 w(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:_.location,delta:t})}function f(e,t){s=`PUSH`;let r=h(e)?e:x(_.location,e,t);n&&n(r,e),l=u()+1;let d=b(r,l),f=_.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:_.location,delta:1})}function p(e,t){s=`REPLACE`;let r=h(e)?e:x(_.location,e,t);n&&n(r,e),l=u();let i=b(r,l),d=_.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:_.location,delta:0})}function g(e){return T(i,e)}let _={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(m,d),c=e,()=>{i.removeEventListener(m,d),c=null}},createHref(e){return t(i,e)},createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return _}function T(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),_(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:S(t);return i=i.replace(/ $/,`%20`),!n&&f.test(i)&&(i=r+i),new URL(i,r)}var E=c(u(),1),D=class{#e=new Map;constructor(e){if(e)for(let[t,n]of e)this.set(t,n)}get(e){if(this.#e.has(e))return this.#e.get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){this.#e.set(e,t)}},O=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function k(e){return O.has(e)}var A=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function j(e){return A.has(e)}function M(e){return e.index===!0}function N(e){let t={};return e.Component&&Object.assign(t,{element:E.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:E.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:E.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function P(e,t=N,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(_(e.index!==!0||!e.children,`Cannot specify children on an index route`),_(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),M(e)){let n={...e,id:s};return r[s]=F(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=F(n,t(n)),e.children&&(n.children=P(e.children,t,o,r,i)),n}})}function F(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function I(e,t,n=`/`){return L(e,t,n,!1)}function L(e,t,n,r,i){let a=me((typeof t==`string`?C(t):t).pathname||`/`,n);if(a==null)return null;let o=i??R(e),s=null,c=W(a);for(let e=0;s==null&&e<o.length;++e)s=ue(o[e],c,r);return s}function ee(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function R(e){let t=te(e);return re(t),t}function te(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=G([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}".`),te(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:U(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=pe(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 ne(e.path))a(e,t,!0,n)}),t}function ne(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=ne(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 re(e){e.sort((e,t)=>e.score===t.score?le(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ie=/^:[\w-]+$/,z=/^:[\w-]+/,ae=3.5,oe=3,se=2,B=1,ce=10,V=-2,H=e=>e===`*`;function U(e,t){let n=e.split(`/`),r=n.length;return n.some(H)&&(r+=V),t&&(r+=se),n.filter(e=>!H(e)).reduce((e,t)=>e+(ie.test(t)?oe:z.test(t)?ae:t===``?B:ce),r)}function le(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 ue(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?fe(u,l,s.matcher,s.compiledParams):de(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=de({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:G([a,d.pathname]),pathnameBase:Te(G([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=G([a,d.pathnameBase]))}return o}function de(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=pe(e.path,e.caseSensitive,e.end);return fe(e,t,n,r)}function fe(e,t,n,r){let 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,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function pe(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)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function W(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 me(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 he({basename:e,pathname:t}){return t===`/`?e:G([e,t])}var ge=e=>d.test(e);function _e(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?C(e):e,a;return n?(n=Ce(n),a=n.startsWith(`/`)?ve(n.substring(1),`/`):ve(n,t)):a=t,{pathname:a,search:Ee(r),hash:De(i)}}function ve(e,t){let n=we(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ye(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 be(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xe(e){let t=be(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Se(e,t,n,r=!1){let i;typeof e==`string`?i=C(e):(i={...e},_(!i.pathname||!i.pathname.includes(`?`),ye(`?`,`pathname`,`search`,i)),_(!i.pathname||!i.pathname.includes(`#`),ye(`#`,`pathname`,`hash`,i)),_(!i.search||!i.search.includes(`#`),ye(`#`,`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=_e(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Ce=e=>e.replace(/[\\/]{2,}/g,`/`),G=e=>Ce(e.join(`/`)),we=e=>e.replace(/\/+$/,``),Te=e=>we(e).replace(/^\/*/,`/`),Ee=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,De=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Oe=class{type=`DataWithResponseInit`;data;init;constructor(e,t){this.data=e,this.init=t||null}};function ke(e,t){return new Oe(e,typeof t==`number`?{status:t}:t)}var Ae=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},je=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Me=class{status;statusText;data;error;internal;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 Ne(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Pe(e){return G(e.map(e=>e.route.path).filter(Boolean))||`/`}function Fe(e,t){let n=new URL(typeof e==`string`||e instanceof URL?e:e.url),r=typeof t==`string`?C(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);let i=e.toString();n.search=i?`?${i}`:``}else n.search=``;return n.hash=r.hash||``,n}var Ie=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function K(e,t){let n=e;if(typeof n!=`string`||!d.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ie)try{let e=new URL(window.location.href),r=f.test(n)?new URL(p(n,e.protocol)):new URL(n),a=me(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}}var Le=Symbol(`Uninstrumented`),Re=new WeakMap;function ze(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){e.lazy!=null&&n.lazy.push(e.lazy),e[`lazy.loader`]!=null&&n[`lazy.loader`].push(e[`lazy.loader`]),e[`lazy.action`]!=null&&n[`lazy.action`].push(e[`lazy.action`]),e[`lazy.middleware`]!=null&&n[`lazy.middleware`].push(e[`lazy.middleware`]),e.middleware!=null&&n.middleware.push(e.middleware),e.loader!=null&&n.loader.push(e.loader),e.action!=null&&n.action.push(e.action)}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=t.lazy;r.lazy=async(...t)=>q(await J(n.lazy,void 0,()=>e(...t),Y))}if(typeof t.lazy==`object`){let e=t.lazy;if(typeof e.middleware==`function`&&n[`lazy.middleware`].length>0){let t=e.middleware;r.lazy=Object.assign(r.lazy||{},{middleware:async(...e)=>q(await J(n[`lazy.middleware`],void 0,()=>t(...e),Y))})}if(typeof e.loader==`function`&&n[`lazy.loader`].length>0){let t=e.loader;r.lazy=Object.assign(r.lazy||{},{loader:async(...e)=>q(await J(n[`lazy.loader`],void 0,()=>t(...e),Y))})}if(typeof e.action==`function`&&n[`lazy.action`].length>0){let t=e.action;r.lazy=Object.assign(r.lazy||{},{action:async(...e)=>q(await J(n[`lazy.action`],void 0,()=>t(...e),Y))})}}if(typeof t.loader==`function`&&n.loader.length>0){let e=Ve(t.loader),i=async(...t)=>q(await J(n.loader,Ge(t[0]),()=>e(...t),Y));e.hydrate===!0&&(i.hydrate=!0),He(i,e),r.loader=i}if(typeof t.action==`function`&&n.action.length>0){let e=Ve(t.action),i=async(...t)=>q(await J(n.action,Ge(t[0]),()=>e(...t),Y));He(i,e),r.action=i}return t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=Ve(e),r=async(...e)=>q(await J(n.middleware,Ge(e[0]),()=>t(...e),Y));return He(r,t),r})),r}function Be(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){e.navigate!=null&&n.navigate.push(e.navigate),e.fetch!=null&&n.fetch.push(e.fetch)}})),n.navigate.length>0){let t=Ve(e.navigate),r=async(...r)=>{let[i,a]=r,o,s={to:typeof i==`number`||typeof i==`string`?i:i?S(i):`.`,...Ke(e,a??{})};return q(await J(n.navigate,s,async()=>{if(typeof i==`number`)return await t(...r);let n=Ue(e,e=>{o=e});try{return await t(...r)}finally{n()}},e=>({...Y(e),meta:o})))};He(r,t),e.navigate=r}if(n.fetch.length>0){let t=Ve(e.fetch),r=async(...r)=>{let[i,a,o,s]=r,c;return q(await J(n.fetch,{href:o??`.`,fetcherKey:i,...Ke(e,s??{})},async()=>{let n=Ue(e,e=>{c=e});try{return await t(...r)}finally{n()}},e=>({...Y(e),meta:c})))};He(r,t),e.fetch=r}return e}function Ve(e){return e[Le]??e}function He(e,t){e[Le]=t}function Ue(e,t){return Re.set(e,t),()=>{Re.get(e)===t&&Re.delete(e)}}function We(e){let t=Re.get(e);return Re.delete(e),t}function q(e){if(e.type===`error`)throw e.value;return e.value}async function J(e,t,n,r,i={result:null,innerResult:null},a=e.length-1){let o=e[a];if(o){let s,c=async()=>(s?console.error(`You cannot call instrumented handlers more than once`):s=J(e,t,n,r,i,a-1),await s,_(i.innerResult,`Expected an inner result`),i.innerResult);try{await o(c,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}s||await c(),await s}else{try{i.result={type:`success`,value:await n()}}catch(e){i.result={type:`error`,value:e}}i.innerResult=r(i.result,t)}return i.result?i.result:(i.result={type:`error`,value:Error(`No result assigned in instrumentation chain.`)},i.innerResult=r(i.result,t),i.result)}function Y(e){return e.type===`error`&&e.value instanceof Error?{status:`error`,error:e.value}:{status:`success`,error:void 0}}function Ge(e){let{request:t,context:n,params:r}=e;return{...e,request:qe(t),params:{...r},context:Je(n)}}function Ke(e,t){return{currentUrl:S(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function qe(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Je(e){return{get:t=>e.get(t)}}var Ye=[`POST`,`PUT`,`PATCH`,`DELETE`],Xe=new Set(Ye),Ze=[`GET`,...Ye],Qe=new Set(Ze),$e=new Set([301,302,303,307,308]),et=new Set([307,308]),tt={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},nt={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},rt={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},it=`remix-router-transitions`,at=Symbol(`ResetLoaderData`),ot=class{#e;#t;#n;#r;constructor(e){this.#e=e,this.#t=R(e)}get stableRoutes(){return this.#e}get activeRoutes(){return this.#n??this.#e}get branches(){return this.#r??this.#t}get hasHMRRoutes(){return this.#n!=null}setRoutes(e){this.#e=e,this.#t=R(e)}setHmrRoutes(e){this.#n=e,this.#r=R(e)}commitHmrRoutes(){this.#n&&(this.#e=this.#n,this.#t=this.#r,this.#n=void 0,this.#r=void 0)}};function st(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;_(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties,a=i||(()=>({}));if(e.instrumentations){let t=e.instrumentations;a=e=>({...i?.(e),...ze(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new ot(P(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||wt,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,y=e.hydrationData!=null,b=L(s.activeRoutes,e.history.location,c,!1,s.branches),S=!1,w=null,E,O;if(b==null&&!e.patchRoutesOnNavigation){let t=X(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=qt(s.activeRoutes);E=!0,O=!E,b=n,w={[r.id]:t}}else if(b&&!e.hydrationData&&Ye(b,s.activeRoutes,e.history.location.pathname).active&&(b=null),!b){E=!1,O=!E,b=[];let t=Ye(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(S=!0,b=t.matches)}else if(b.some(e=>e.route.lazy))E=!1,O=!E;else if(!b.some(e=>ft(e.route)))E=!0,O=!E;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=b;if(n){let e=b.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}O=!1,E=!0,r.forEach(e=>{let r=pt(e.route,t,n);O||=r.renderFallback,E&&=!r.shouldLoad})}let k,A={historyAction:e.history.action,location:e.history.location,matches:b,initialized:E,renderFallback:O,navigation:tt,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},j=`POP`,M=null,N=!1,F,I=!1,R=new Map,te=null,ne=!1,re=!1,ie=new Set,z=new Map,ae=0,oe=-1,se=new Map,B=new Set,ce=new Map,V=new Map,H=new Set,U=new Map,le,ue=null;function de(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(le){le(),le=void 0;return}v(U.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=J({currentLocation:A.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{le=e});e.history.go(r*-1),q(i,{state:`blocked`,location:n,proceed(){q(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(A.blockers);e.set(i,rt),W({blockers:e})}}),M?.resolve(),M=null;return}return ye(t,n)}),n){_n(t,R);let e=()=>vn(t,R);t.addEventListener(`pagehide`,e),te=()=>t.removeEventListener(`pagehide`,e)}return A.initialized||ye(`POP`,A.location,{initialHydration:!0}),k}function fe(){d&&d(),te&&te(),f.clear(),F&&F.abort(),A.fetchers.forEach((e,t)=>Fe(A.fetchers,t)),A.blockers.forEach((e,t)=>Ue(t))}function pe(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(A,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function W(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),A={...A,...e};let n=[],r=[];A.fetchers.forEach((e,t)=>{e.state===`idle`&&(H.has(t)?n.push(t):r.push(t))}),H.forEach(e=>{!A.fetchers.has(e)&&!z.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(A,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Fe(A.fetchers,e)),r.forEach(e=>A.fetchers.delete(e))}function he(t,n,{flushSync:r}={}){let i=A.actionData!=null&&A.navigation.formMethod!=null&&Q(A.navigation.formMethod)&&A.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?A.actionData:null;let o=n.loaderData?Wt(A.loaderData,n.loaderData,n.matches||[],n.errors):A.loaderData,c=A.blockers;c.size>0&&!ne&&(c=new Map(c),c.forEach((e,t)=>c.set(t,rt)));let l=ne?!1:Je(t,n.matches||A.matches),u=N===!0||A.navigation.formMethod!=null&&Q(A.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),ne||j===`POP`||(j===`PUSH`?e.history.push(t,t.state):j===`REPLACE`&&e.history.replace(t,t.state));let d;if(j===`POP`){let e=R.get(A.location.pathname);e&&e.has(t.pathname)?d={currentLocation:A.location,nextLocation:t}:R.has(t.pathname)&&(d={currentLocation:t,nextLocation:A.location})}else if(I){let e=R.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),R.set(A.location.pathname,e)),d={currentLocation:A.location,nextLocation:t}}W({...n,actionData:a,loaderData:o,historyAction:j,location:t,initialized:!0,renderFallback:!1,navigation:tt,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),j=`POP`,N=!1,I=!1,ne=!1,re=!1,M?.resolve(),M=null,ue?.resolve(),ue=null}async function _e(t,n){if(M?.resolve(),M=null,typeof t==`number`){M||=yn();let n=M.promise;return e.history.go(t),n}let r=We(k),{path:i,submission:a,error:o}=ut(!1,lt(A.location,A.matches,c,t,n?.fromRouteId,n?.relative),n),s;n?.mask&&(s={pathname:``,search:``,hash:``,...typeof n.mask==`string`?C(n.mask):{...A.location.mask,...n.mask}});let l=A.location,u=x(l,i,n&&n.state,void 0,s);u={...u,...e.history.encodeLocation(u)};let d=n&&n.replace!=null?n.replace:void 0,f=`PUSH`;d===!0?f=`REPLACE`:d===!1||a!=null&&Q(a.formMethod)&&a.formAction===A.location.pathname+A.location.search&&(f=`REPLACE`);let p=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,m=(n&&n.flushSync)===!0,h=J({currentLocation:l,nextLocation:u,historyAction:f});if(h){q(h,{state:`blocked`,location:u,proceed(){q(h,{state:`proceeding`,proceed:void 0,reset:void 0,location:u}),_e(t,n)},reset(){let e=new Map(A.blockers);e.set(h,rt),W({blockers:e})}});return}await ye(f,u,{submission:a,pendingError:o,preventScrollReset:p,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:m,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate,instrumentationNavigateMetaReceiver:r})}function ve(){ue||=yn(),ke(),W({revalidation:`loading`});let e=ue.promise;return A.navigation.state===`submitting`?e:A.navigation.state===`idle`?(ye(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),e):(ye(j||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:I===!0}),e)}async function ye(t,n,r){F&&F.abort(),F=null,j=t,ne=(r&&r.startUninterruptedRevalidation)===!0,qe(A.location,A.matches),N=(r&&r.preventScrollReset)===!0,I=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&A.matches&&A.matches.length>0&&!S?A.matches:L(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&A.initialized&&!re&&Xt(A.location,n)&&!(r&&r.submission&&Q(r.submission.formMethod))){he(n,{matches:a},{flushSync:o});return}let l=Ye(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),r?.instrumentationNavigateMetaReceiver){let t=un(e.history,n,a);r.instrumentationNavigateMetaReceiver(t)}if(!a){let{error:e,notFoundMatches:t,route:r}=Y(n.pathname);he(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;F=new AbortController;let d=zt(e.history,n,F.signal,r&&r.submission),f=e.getContext?await e.getContext():new D,p;if(r&&r.pendingError)p=[Kt(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Q(r.submission.formMethod)){let i=await be(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(Z(t)&&Ne(t.error)&&t.error.status===404){F=null,he(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=fn(n,a,t,r.submission),o=!1,l.active=!1,d=zt(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await xe(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(F=null,he(n,{matches:h||a,...Gt(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function be(t,n,i,l,u,d,f,p,m={}){if(ke(),W({navigation:pn(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await Xe(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=qt(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Kt(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Y(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=ln(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:X(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await De(t,n,At(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(tn(h)){let n;return n=m&&m.replace!=null?m.replace:Rt(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===A.location.pathname+A.location.search,await Ee(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(Z(h)){let e=Kt(l,g.route.id);return(m&&m.replace)!==!0&&(j=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function xe(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||fn(n,i,l,p),x=p||m||dn(b),S=!ne&&!g;if(d){if(S){let e=Se(v);W({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await Xe(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=qt(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Kt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Y(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=dt(t,u,a,o,e.history,A,i,x,n,g?[]:r,g===!0,re,ie,H,ce,B,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(oe=++ae,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=new Map(A.fetchers),t=Re(e);return he(n,{matches:i,loaderData:{},errors:v&&Z(v[1])?{[v[0]]:v[1].error}:null,...Gt(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=Se(v);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Ce(T)),W(e,{flushSync:_})}T.forEach(e=>{K(e.key),e.controller&&z.set(e.key,e.controller)});let E=()=>T.forEach(e=>K(e.key));F&&F.signal.addEventListener(`abort`,E);let{loaderResults:D,fetcherResults:O}=await Oe(w,T,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener(`abort`,E),T.forEach(e=>z.delete(e.key));let k=Jt(D);if(k)return await Ee(t,k.result,!0,{replace:h}),{shortCircuited:!0};if(k=Jt(O),k)return B.add(k.key),await Ee(t,k.result,!0,{replace:h}),{shortCircuited:!0};let j=new Map(A.fetchers),{loaderData:M,errors:N}=Ut(A,i,D,v,T,O,j);g&&A.errors&&(N={...A.errors,...N});let P=Re(j),I=Ve(oe,j),L=P||I||T.length>0;return{matches:i,loaderData:M,errors:N,...L?{workingFetchers:j}:{}}}function Se(e){if(e&&!Z(e[1]))return{[e[0]]:e[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function Ce(e){let t=new Map(A.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=mn(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function G(t,n,r,i){K(t);let a=(i&&i.flushSync)===!0,o=We(k),l=s.activeRoutes,u=lt(A.location,A.matches,c,r,n,i?.relative),d=L(l,u,c,!1,s.branches),f=Ye(d,l,u);if(f.active&&f.matches&&(d=f.matches),o&&o(un(e.history,u,d)),!d){je(t,n,X(404,{pathname:u}),{flushSync:a});return}let{path:p,submission:m,error:h}=ut(!0,u,i);if(h){je(t,n,h,{flushSync:a});return}let g=e.getContext?await e.getContext():new D,_=(i&&i.preventScrollReset)===!0;if(m&&Q(m.formMethod)){await we(t,n,p,d,g,f.active,a,_,m,i&&i.defaultShouldRevalidate);return}ce.set(t,{routeId:n,path:p}),await Te(t,n,p,d,g,f.active,a,_,m)}async function we(t,n,i,l,u,d,f,p,m,h){ke(),ce.delete(t),Ae(t,hn(m,A.fetchers.get(t)),{flushSync:f});let g=new AbortController,v=zt(e.history,i,g.signal,m);if(d){let e=await Xe(l,new URL(v.url).pathname,v.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){je(t,n,e.error,{flushSync:f});return}else if(e.matches)l=e.matches;else{je(t,n,X(404,{pathname:i}),{flushSync:f});return}}let y=ln(l,i);if(!y.route.action&&!y.route.lazy){je(t,n,X(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}z.set(t,g);let b=ae,x=At(a,o,v,i,l,y,r,u),S=await De(v,i,x,u,t),C=S[y.route.id];if(!C){for(let e of x)if(S[e.route.id]){C=S[e.route.id];break}}if(v.signal.aborted){z.get(t)===g&&z.delete(t);return}if(H.has(t)){if(tn(C)||Z(C)){Ae(t,gn(void 0));return}}else{if(tn(C))if(z.delete(t),oe>b){Ae(t,gn(void 0));return}else return B.add(t),Ae(t,mn(m)),Ee(v,C,!1,{fetcherSubmission:m,preventScrollReset:p});if(Z(C)){je(t,n,C.error);return}}let w=A.navigation.location||A.location,T=zt(e.history,w,g.signal),E=s.activeRoutes,D=A.navigation.state===`idle`?A.matches:L(E,A.navigation.location,c,!1,s.branches);_(D,`Didn't find any matches after fetcher action`);let O=++ae;se.set(t,O);let{dsMatches:k,revalidatingFetchers:M}=dt(T,u,a,o,e.history,A,D,m,w,r,!1,re,ie,H,ce,B,E,c,e.patchRoutesOnNavigation!=null,s.branches,[y.route.id,C],h),N=mn(m,C.data),P=new Map(A.fetchers);P.set(t,N),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=P.get(t),r=mn(void 0,n?n.data:void 0);P.set(t,r),K(t),e.controller&&z.set(t,e.controller)}),W({fetchers:P});let I=()=>M.forEach(e=>K(e.key));g.signal.addEventListener(`abort`,I);let{loaderResults:ee,fetcherResults:R}=await Oe(k,M,T,w,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,I),se.delete(t),z.delete(t),M.forEach(e=>z.delete(e.key));let te=A.fetchers.has(t),ne=e=>{if(!te)return e;let n=new Map(e.fetchers);return n.set(t,gn(C.data)),{...e,fetchers:n}},V=Jt(ee);if(V)return A=ne(A),Ee(T,V.result,!1,{preventScrollReset:p});if(V=Jt(R),V)return B.add(V.key),A=ne(A),Ee(T,V.result,!1,{preventScrollReset:p});let U=new Map(A.fetchers);te&&U.set(t,gn(C.data));let{loaderData:le,errors:ue}=Ut(A,D,ee,void 0,M,R,U);Ve(O,U),A.navigation.state===`loading`&&O>oe?(_(j,`Expected pending action`),F&&F.abort(),he(A.navigation.location,{matches:D,loaderData:le,errors:ue,fetchers:U})):(W({errors:ue,loaderData:Wt(A.loaderData,le,D,ue),fetchers:U}),re=!1)}async function Te(t,n,i,s,c,l,u,d,f){let p=A.fetchers.get(t);Ae(t,mn(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=zt(e.history,i,m.signal);if(l){let e=await Xe(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){je(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{je(t,n,X(404,{pathname:i}),{flushSync:u});return}}let g=ln(s,i);z.set(t,m);let _=ae,v=await De(h,i,At(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(z.get(t)===m&&z.delete(t),!h.signal.aborted){if(H.has(t)){Ae(t,gn(void 0));return}if(tn(y))if(oe>_){Ae(t,gn(void 0));return}else{B.add(t),await Ee(h,y,!1,{preventScrollReset:d});return}if(Z(y)){je(t,n,y.error);return}Ae(t,gn(y.data))}}async function Ee(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(M?.resolve(),M=null),i.response.headers.has(`X-Remix-Revalidate`)&&(re=!0);let d=i.response.headers.get(`Location`);_(d,`Expected a Location header on the redirect Response`),d=Rt(d,new URL(r.url),c,e.history);let f=x(A.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(ge(d)){let n=T(t,d,!0);e=n.origin!==t.location.origin||me(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}F=null;let p=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:m,formAction:h,formEncType:g}=A.navigation;!o&&!s&&m&&h&&g&&(o=dn(A.navigation));let v=o||s;et.has(i.response.status)&&v&&Q(v.formMethod)?await ye(p,f,{submission:{...v,formAction:d},preventScrollReset:l||N,enableViewTransition:a?I:void 0}):await ye(p,f,{overrideNavigation:fn(f,[],p,o),fetcherSubmission:s,preventScrollReset:l||N,enableViewTransition:a?I:void 0})}async function De(e,t,n,r,i){let a,o={};try{a=await jt(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Q(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!A.loaderData.hasOwnProperty(e.route.id)&&(!A.errors||!A.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(en(r)){let i=r.result;o[t]={type:`redirect`,response:Ft(i,e,t,n,c)}}else o[t]=await Pt(r);return o}async function Oe(e,t,n,r,i){let a=De(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await De(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:X(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function ke(){re=!0,ce.forEach((e,t)=>{z.has(t)&&ie.add(t),K(t)})}function Ae(e,t,n={}){let r=new Map(A.fetchers);r.set(e,t),W({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function je(e,t,n,r={}){let i=Kt(A.matches,t),a=new Map(A.fetchers);Fe(a,e),W({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Me(e){return V.set(e,(V.get(e)||0)+1),H.has(e)&&H.delete(e),A.fetchers.get(e)||nt}function Pe(e,t){K(e,t?.reason),Ae(e,gn(null))}function Fe(e,t){let n=A.fetchers.get(t);z.has(t)&&!(n&&n.state===`loading`&&se.has(t))&&K(t),ce.delete(t),se.delete(t),B.delete(t),H.delete(t),ie.delete(t),e.delete(t)}function Ie(e){let t=(V.get(e)||0)-1;t<=0?(V.delete(e),H.add(e)):V.set(e,t),W({fetchers:new Map(A.fetchers)})}function K(e,t){let n=z.get(e);n&&(n.abort(t),z.delete(e))}function Le(e,t){for(let n of e){let e=t.get(n);_(e,`Expected fetcher: ${n}`);let r=gn(e.data);t.set(n,r)}}function Re(e){let t=[],n=!1;for(let r of B){let i=e.get(r);_(i,`Expected fetcher: ${r}`),i.state===`loading`&&(B.delete(r),t.push(r),n=!0)}return Le(t,e),n}function Ve(e,t){let n=[];for(let[r,i]of se)if(i<e){let e=t.get(r);_(e,`Expected fetcher: ${r}`),e.state===`loading`&&(K(r),se.delete(r),n.push(r))}return Le(n,t),n.length>0}function He(e,t){let n=A.blockers.get(e)||rt;return U.get(e)!==t&&U.set(e,t),n}function Ue(e){A.blockers.delete(e),U.delete(e)}function q(e,t){let n=A.blockers.get(e)||rt;_(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(A.blockers);r.set(e,t),W({blockers:r})}function J({currentLocation:e,nextLocation:t,historyAction:n}){if(U.size===0)return;U.size>1&&v(!1,`A router only supports one blocker at a time`);let r=Array.from(U.entries()),[i,a]=r[r.length-1],o=A.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function Y(e){let t=X(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=qt(n);return{notFoundMatches:r,route:i,error:t}}function Ge(e,t,n){if(m=e,g=t,h=n||null,!y&&A.navigation===tt){y=!0;let e=Je(A.location,A.matches);e!=null&&W({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function Ke(e,t){return h&&h(e,t.map(e=>ee(e,A.loaderData)))||e.key}function qe(e,t){if(m&&g){let n=Ke(e,t);m[n]=g()}}function Je(e,t){if(m){let n=Ke(e,t),r=m[n];if(typeof r==`number`)return r}return null}function Ye(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:L(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:L(n,r,c,!0,e)}}return{active:!1,matches:null}}async function Xe(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||_t(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=L(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=L(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&Ze(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=L(s.activeRoutes,n,c,!0,u),!f||Ze(l,f))return{type:`success`,matches:null};l=f}}function Ze(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Qe(e){o={},s.setHmrRoutes(P(e,a,void 0,o))}function $e(e,t,n=!1){_t(e,t,s,o,a,n),s.hasHMRRoutes||W({})}return k={get basename(){return c},get future(){return u},get state(){return A},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:de,subscribe:pe,enableScrollRestoration:Ge,navigate:_e,fetch:G,revalidate:ve,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Me,resetFetcher:Pe,deleteFetcher:Ie,dispose:fe,getBlocker:He,deleteBlocker:Ue,patchRoutes:$e,_internalFetchControllers:z,_internalSetRoutes:Qe,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){W(e)}},e.instrumentations&&(k=Be(k,e.instrumentations.map(e=>e.router).filter(Boolean))),k}function ct(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function lt(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Se(r||`.`,xe(o),me(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=cn(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=he({basename:n,pathname:c.pathname})),S(c)}function ut(e,t,n){if(!n||!ct(n))return{path:t};if(n.formMethod&&!sn(n.formMethod))return{path:t,error:X(405,{method:n.formMethod})};let r=()=>({path:t,error:X(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=Yt(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Q(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!Q(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}_(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Bt(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Bt(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=Vt(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=Vt(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Q(c.formMethod))return{path:t,submission:c};let l=C(t);return e&&l.search&&cn(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:S(l),submission:c}}function dt(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?Z(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&Z(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,D=E&&E>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},k=Pe(o),A=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!ft(s))f=!1;else if(u){let{shouldLoad:e}=pt(s,a.loaderData,a.errors);f=e}else mt(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return kt(n,r,e,c,k,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:D?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?ht(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p};return kt(n,r,e,c,k,i,l,t,gt(i,m),m,x)}),j=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=L(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;j.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=ln(b,e.path),C=new AbortController,w=zt(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=At(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=At(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:D?!1:d;let a={...O,defaultShouldRevalidate:i};gt(S,a)&&(T=At(n,r,w,e.path,b,S,l,t,a))}T&&j.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:j}}function ft(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function pt(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!ft(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function mt(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function ht(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function gt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function _t(e,t,n,r,i,a){let o;if(e){let t=r[e];_(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>vt(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=P(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=P([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function vt(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>vt(e,t)))??!1:!1}var yt=new WeakMap,bt=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(_(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=yt.get(i);o||(o={},yt.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=k(e),n=i[e]!==void 0;if(t)v(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)v(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},xt=new WeakMap;function St(e,t,n,r,i){let a=n[e.id];if(_(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=xt.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{_(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=j(e),o=a[e]!==void 0;i?v(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?v(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return xt.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=bt({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function Ct(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function wt(e){return e.matches.some(e=>e.route.middleware)?Tt(e,()=>Ct(e)):Ct(e)}function Tt(e,t){return Et(e,t,e=>{if(on(e))throw e;return e},Qt,n);async function n(t,n,r){if(r)return Object.assign(r.value,{[n]:{type:`error`,result:t}});{let{matches:r}=e,i=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),a=r[i].route.id;for(let e of r.slice(0,i+1))try{await e._lazyPromises?.route}catch{a=e.route.id;break}return{[Kt(r,a).route.id]:{type:`error`,result:t}}}}}async function Et(e,t,n,r,i){let{matches:a,...o}=e;return await Dt(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Dt(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await Dt(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function Ot(e,t,n,r,i){let a=bt({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=St(r.route,Q(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function kt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Ot(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?gt(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?gt(a,{...l,defaultShouldRevalidate:e}):gt(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Q(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Q(n.method)||!p)?Mt({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function At(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?kt(e,t,n,r,Pe(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Ot(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function jt(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:Fe(t,n),pattern:Pe(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return Tt(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function Mt({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Q(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:Fe(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw X(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}else if(t)c=await f(t);else{let t=new URL(e.url);throw X(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Nt(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Pt(e){let{result:t,type:n}=e;if(rn(t)){let e;try{e=await Nt(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Me(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?nn(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Zt(t),statusCode:Ne(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Ne(t)?t.status:void 0}:nn(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Ft(e,t,n,r,i){let a=e.headers.get(`Location`);if(_(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!ge(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=lt(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var It=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Lt(e){try{return It.includes(new URL(e).protocol)}catch{return!1}}function Rt(e,t,n,r){if(ge(e)){let r=e,i=f.test(r)?new URL(p(r,t.protocol)):new URL(r);if(Lt(i.toString()))throw Error(`Invalid redirect location`);let a=me(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Ce(i.pathname)+i.search+i.hash}try{if(Lt(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function zt(e,t,n,r){let i=e.createURL(Yt(t)).toString(),a={signal:n};if(r&&Q(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=Bt(r.formData):a.body=r.formData}return new Request(i,a)}function Bt(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Vt(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ht(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&Z(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(_(!tn(f),`Cannot handle redirect results in processLoaderData`),Z(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=Kt(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=at),c||(c=!0,s=Ne(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function Ut(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=Ht(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(_(s,`Did not find corresponding fetcher result`),Z(s)){let t=Kt(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(tn(s))_(!1,`Unhandled fetcher revalidation redirect`);else{let e=gn(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function Wt(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==at).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function Gt(e){return e?Z(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Kt(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.ErrorBoundary!=null||e.route.errorElement!=null)||e[0]}function qt(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function X(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Me(e||500,o,Error(s),!0)}function Jt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(tn(r))return{key:n,result:r}}}function Yt(e){return S({...typeof e==`string`?C(e):e,hash:``})}function Xt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function Zt(e){return new Me(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Qt(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&$t(t))}function $t(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function en(e){return rn(e.result)&&$e.has(e.result.status)}function Z(e){return e.type===`error`}function tn(e){return(e&&e.type)===`redirect`}function nn(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function rn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function an(e){return $e.has(e)}function on(e){return rn(e)&&an(e.status)&&e.headers.has(`Location`)}function sn(e){return Qe.has(e.toUpperCase())}function Q(e){return Xe.has(e.toUpperCase())}function cn(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function ln(e,t){let n=typeof t==`string`?C(t).search:t.search;if(e[e.length-1].route.index&&cn(n||``))return e[e.length-1];let r=be(e);return r[r.length-1]}function un(e,t,n){return{url:Fe(e.createURL(t),t),pattern:n?Pe(n):``,params:n?.[0]?.params?{...n[0].params}:{}}}function dn(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function fn(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function pn(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function mn(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function hn(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function gn(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function _n(e,t){try{let n=e.sessionStorage.getItem(it);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function vn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(it,JSON.stringify(n))}catch(e){v(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function yn(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var bn=E.createContext(null);bn.displayName=`DataRouter`;var xn=E.createContext(null);xn.displayName=`DataRouterState`;var Sn=E.createContext(!1);function Cn(){return E.useContext(Sn)}var wn=E.createContext({isTransitioning:!1});wn.displayName=`ViewTransition`;var Tn=E.createContext(new Map);Tn.displayName=`Fetchers`;var En=E.createContext(null);En.displayName=`Await`;var Dn=E.createContext(null);Dn.displayName=`Navigation`;var On=E.createContext(null);On.displayName=`Location`;var $=E.createContext({outlet:null,matches:[],isDataRoute:!1});$.displayName=`Route`;var kn=E.createContext(null);kn.displayName=`RouteError`;var An=`REACT_ROUTER_ERROR`,jn=`REDIRECT`,Mn=`ROUTE_ERROR_RESPONSE`;function Nn(e){if(e.startsWith(`${An}:${jn}:{`))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 Pn(e){if(e.startsWith(`${An}:${Mn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Me(t.status,t.statusText,t.data)}catch{}}function Fn(e,{relative:t}={}){_(In(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=E.useContext(Dn),{hash:i,pathname:a,search:o}=Wn(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:G([n,a])),r.createHref({pathname:s,search:o,hash:i})}function In(){return E.useContext(On)!=null}function Ln(){return _(In(),`useLocation() may be used only in the context of a <Router> component.`),E.useContext(On).location}var Rn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function zn(){let{isDataRoute:e}=E.useContext($);return e?ur():Bn()}function Bn(){_(In(),`useNavigate() may be used only in the context of a <Router> component.`);let e=E.useContext(bn),{basename:t,navigator:n}=E.useContext(Dn),{matches:r}=E.useContext($),{pathname:i}=Ln(),a=JSON.stringify(xe(r)),o=E.useRef(!1);return E.useLayoutEffect(()=>{o.current=!0}),E.useCallback((r,s={})=>{if(v(o.current,Rn),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Se(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:G([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Vn=E.createContext(null);function Hn(e){let t=E.useContext($).outlet;return E.useMemo(()=>t&&E.createElement(Vn.Provider,{value:e},t),[t,e])}function Un(){let{matches:e}=E.useContext($);return e[e.length-1]?.params??{}}function Wn(e,{relative:t}={}){let{matches:n}=E.useContext($),{pathname:r}=Ln(),i=JSON.stringify(xe(n));return E.useMemo(()=>Se(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Gn(e,t,n){_(In(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=E.useContext(Dn),{matches:i}=E.useContext($),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=Ln(),l;if(t){let e=typeof t==`string`?C(t):t;_(s===`/`||e.pathname?.startsWith(s),`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 "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):I(e,{pathname:d}),p=Qn(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:G([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:G([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?E.createElement(On.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function Kn(){let e=lr(),t=Ne(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return E.createElement(E.Fragment,null,E.createElement(`h2`,null,`Unexpected Application Error!`),E.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?E.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var qn=E.createElement(Kn,null),Jn=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=Sn;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=Pn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:E.createElement($.Provider,{value:this.props.routeContext},E.createElement(kn.Provider,{value:e,children:this.props.component}));return this.context?E.createElement(Xn,{error:e},t):t}},Yn=new WeakMap;function Xn({children:e,error:t}){let{basename:n}=E.useContext(Dn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Nn(t.digest);if(e){let r=Yn.get(t);if(r)throw r;let i=K(e.location,n),a=i.absoluteURL||i.to;if(Lt(a))throw Error(`Invalid redirect location`);if(Ie&&!Yn.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Yn.set(t,n),n}return E.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Zn({routeContext:e,match:t,children:n}){let r=E.useContext(bn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement($.Provider,{value:e},n)}function Qn(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);_(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Pe(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||qn,o&&(s<0&&c===0?(fr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?E.createElement(n.route.Component,null):n.route.element?n.route.element:e,E.createElement(Zn,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?E.createElement(Jn,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function $n(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function er(e){let t=E.useContext(bn);return _(t,$n(e)),t}function tr(e){let t=E.useContext(xn);return _(t,$n(e)),t}function nr(e){let t=E.useContext($);return _(t,$n(e)),t}function rr(e){let t=nr(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 ir(){return rr(`useRouteId`)}function ar(){let e=tr(`useNavigation`);return E.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function or(){let{matches:e,loaderData:t}=tr(`useMatches`);return E.useMemo(()=>e.map(e=>ee(e,t)),[e,t])}function sr(){let e=tr(`useLoaderData`),t=rr(`useLoaderData`);return e.loaderData[t]}function cr(){let e=tr(`useActionData`),t=rr(`useLoaderData`);return e.actionData?e.actionData[t]:void 0}function lr(){let e=E.useContext(kn),t=tr(`useRouteError`),n=rr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function ur(){let{router:e}=er(`useNavigate`),t=rr(`useNavigate`),n=E.useRef(!1);return E.useLayoutEffect(()=>{n.current=!0}),E.useCallback(async(r,i={})=>{v(n.current,Rn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var dr={};function fr(e,t,n){!t&&!dr[e]&&(dr[e]=!0,v(!1,n))}var pr={};function mr(e,t){!e&&!pr[t]&&(pr[t]=!0,console.warn(t))}var hr=[`HydrateFallback`,`hydrateFallbackElement`],gr=class{status=`pending`;promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function _r({router:e,flushSync:t,onError:n,useTransitions:r}){r=Cn()||r;let[i,a]=E.useState(e.state),[o,s]=(0,E.useOptimistic)(i),[c,l]=E.useState(),[u,d]=E.useState({isTransitioning:!1}),[f,p]=E.useState(),[m,h]=E.useState(),[g,_]=E.useState(),v=E.useRef(new Map),y=E.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:Pe(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),mr(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(mr(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y){t&&u?t(()=>a(i)):r===!1?a(i):E.startTransition(()=>{r===!0&&s(e=>vr(e,i)),a(i)});return}if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n));return}m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);E.useLayoutEffect(()=>e.subscribe(y),[e,y]),E.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new gr)},[u]),E.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):E.startTransition(()=>{r===!0&&s(e=>vr(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),E.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),E.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let b=E.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),x=e.basename||`/`,S=E.useMemo(()=>({router:e,navigator:b,static:!1,basename:x,onError:n}),[e,b,x,n]);return E.createElement(E.Fragment,null,E.createElement(bn.Provider,{value:S},E.createElement(xn.Provider,{value:o},E.createElement(Tn.Provider,{value:v.current},E.createElement(wn.Provider,{value:u},E.createElement(Sr,{basename:x,location:o.location,navigationType:o.historyAction,navigator:b,useTransitions:r},E.createElement(yr,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function vr(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var yr=E.memo(br);function br({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Gn(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function xr(e){return Hn(e.context)}function Sr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){_(!In(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=E.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=C(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=E.useMemo(()=>{let e=me(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return v(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:E.createElement(Dn.Provider,{value:c},E.createElement(On.Provider,{children:t,value:h}))}E.Component;function Cr(){return{params:Un(),loaderData:sr(),actionData:cr(),matches:or()}}function wr(e){return function(){let t=Cr();return E.createElement(e,t)}}function Tr(){return{params:Un(),loaderData:sr(),actionData:cr(),error:lr()}}function Er(e){return function(){let t=Tr();return E.createElement(e,t)}}var Dr=o((e=>{var t=Symbol.for(`react.transitional.element`);function n(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.jsx=n,e.jsxs=n})),Or=o(((e,t)=>{t.exports=Dr()}));export{N as A,g as B,st as C,je as D,Me as E,L as F,u as G,_ as H,K as I,o as K,Ae as L,G as M,de as N,pe as O,I as P,Se as R,Cn as S,rn as T,v as U,S as V,d as W,bn as _,hr as a,$ as b,mr as c,or as d,zn as f,ir as g,lr as h,_r as i,Ne as j,ke as k,Fn as l,Wn as m,xr as n,wr as o,ar as p,c as q,Sr as r,Er as s,Or as t,Ln as u,xn as v,nn as w,wn as x,Dn as y,me as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as e,H as t,I as n,M as r,N as i,R as a,U as o,V as s,W as c,_ as l,b as u,d,f,g as p,l as m,m as h,p as g,q as _,r as v,u as y,v as b,x,y as S,z as C}from"./jsx-runtime-CuoEKysV.js";import{a as w,c as T,g as E,n as D,s as O}from"./errorBoundaries-Dn4hVn2U.js";var k=`application/x-www-form-urlencoded`;function A(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function j(e){return A(e)&&e.tagName.toLowerCase()===`button`}function M(e){return A(e)&&e.tagName.toLowerCase()===`form`}function N(e){return A(e)&&e.tagName.toLowerCase()===`input`}function P(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function F(e,t){return e.button===0&&(!t||t===`_self`)&&!P(e)}var I=null;function L(){if(I===null)try{new FormData(document.createElement(`form`),0),I=!1}catch{I=!0}return I}var R=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function z(e){return e!=null&&!R.has(e)?(o(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${k}"`),null):e}function B(e,t){let n,r,i,a,o;if(M(e)){let o=e.getAttribute(`action`);r=o?C(o,t):null,n=e.getAttribute(`method`)||`get`,i=z(e.getAttribute(`enctype`))||k,a=new FormData(e)}else if(j(e)||N(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?C(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=z(e.getAttribute(`formenctype`))||z(o.getAttribute(`enctype`))||k,a=new FormData(o,e),!L()){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(A(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=k,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var V=_(e(),1),H=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{H&&(window.__reactRouterVersion=`8.2.0`)}catch{}function U({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=V.useState({action:n.action,location:n.location}),o=V.useCallback(e=>{r===!1?a(e):V.startTransition(()=>a(e))},[r]);return V.useLayoutEffect(()=>n.listen(o),[n,o]),V.createElement(v,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}U.displayName=`unstable_HistoryRouter`;var W=V.forwardRef(function({onClick:e,discover:t=`render`,prefetch:i=`none`,relative:o,reloadDocument:s,replace:l,mask:u,state:d,target:f,to:p,preventScrollReset:h,viewTransition:g,defaultShouldRevalidate:_,...v},b){let{basename:x,navigator:C,useTransitions:E}=V.useContext(S),D=typeof p==`string`&&c.test(p),k=n(p,x);p=k.to;let A=m(p,{relative:o}),j=y(),M=null;if(u){let e=a(u,[],j.mask?j.mask.pathname:`/`,!0);x!==`/`&&(e.pathname=e.pathname===`/`?x:r([x,e.pathname])),M=C.createHref(e)}let[N,P,F]=T(i,v),I=ee(p,{replace:l,mask:u,state:d,target:f,preventScrollReset:h,relative:o,viewTransition:g,defaultShouldRevalidate:_,useTransitions:E});function L(t){e&&e(t),t.defaultPrevented||I(t)}let R=!(k.isExternal||s),z=V.createElement(`a`,{...v,...F,href:(R?M:void 0)||k.absoluteURL||A,onClick:R?L:e,ref:O(b,P),target:f,"data-discover":!D&&t===`render`?`true`:void 0});return N&&!D?V.createElement(V.Fragment,null,z,V.createElement(w,{page:A})):z});W.displayName=`Link`;var G=V.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=h(a,{relative:c.relative}),d=y(),f=V.useContext(b),{navigator:p,basename:m}=V.useContext(S),g=f!=null&&se(u)&&o===!0,_=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,x=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),x=x?x.toLowerCase():null,_=_.toLowerCase()),x&&m&&(x=C(x,m)||x);let w=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,T=v===_||!r&&v.startsWith(_)&&v.charAt(w)===`/`,E=x!=null&&(x===_||!r&&x.startsWith(_)&&x.charAt(_.length)===`/`),D={isActive:T,isPending:E,isTransitioning:g},O=T?e:void 0,k;k=typeof n==`function`?n(D):[n,T?`active`:null,E?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let A=typeof i==`function`?i(D):i;return V.createElement(W,{...c,"aria-current":O,className:k,ref:l,style:A,to:a,viewTransition:o},typeof s==`function`?s(D):s)});G.displayName=`NavLink`;var K=V.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=V.useContext(S),_=re(),v=ie(s,{relative:u}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&c.test(s);return V.createElement(`form`,{ref:h,method:y,action:v,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,c=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});g&&n!==!1?V.startTransition(()=>c()):c()},...m,"data-discover":!b&&e===`render`?`true`:void 0})});K.displayName=`Form`;function q({getKey:e,storageKey:t,...n}){let r=V.useContext(D),{basename:i}=V.useContext(S),a=y(),o=d();ae({getKey:e,storageKey:t});let s=V.useMemo(()=>{if(!r||!e)return null;let t=$(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),V.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${E(JSON.stringify(t||Z))}, ${E(JSON.stringify(s))})`}})}q.displayName=`ScrollRestoration`;function J(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Y(e){let n=V.useContext(l);return t(n,J(e)),n}function X(e){let n=V.useContext(b);return t(n,J(e)),n}function ee(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:c,defaultShouldRevalidate:l,useTransitions:u}={}){let d=f(),p=y(),m=h(e,{relative:o});return V.useCallback(f=>{if(F(f,t)){f.preventDefault();let t=n===void 0?s(p)===s(m):n,h=()=>d(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:c,defaultShouldRevalidate:l});u?V.startTransition(()=>h()):h()}},[p,d,m,n,r,i,t,e,a,o,c,l,u])}var te=0,ne=()=>`__${String(++te)}__`;function re(){let{router:e}=Y(`useSubmit`),{basename:t}=V.useContext(S),n=p(),r=e.fetch,i=e.navigate;return V.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=B(e,t);a.navigate===!1?await r(a.fetcherKey||ne(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function ie(e,{relative:n}={}){let{basename:i}=V.useContext(S),a=V.useContext(u);t(a,`useFormAction must be used inside a RouteContext`);let[o]=a.matches.slice(-1),c={...h(e||`.`,{relative:n})},l=y();if(e==null){c.search=l.search;let e=new URLSearchParams(c.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();c.search=n?`?${n}`:``}}return(!e||e===`.`)&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`),i!==`/`&&(c.pathname=c.pathname===`/`?i:r([i,c.pathname])),s(c)}var Z=`react-router-scroll-positions`,Q={};function $(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:C(e.pathname,n)||e.pathname},t)),i??=e.key,i}function ae({getKey:e,storageKey:t}={}){let{router:n}=Y(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=X(`useScrollRestoration`),{basename:a}=V.useContext(S),s=y(),c=d(),l=g();V.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),oe(V.useCallback(()=>{if(l.state===`idle`){let t=$(s,c,a,e);Q[t]=window.scrollY}try{sessionStorage.setItem(t||Z,JSON.stringify(Q))}catch(e){o(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[l.state,e,a,s,c,t])),typeof document<`u`&&(V.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Z);e&&(Q=JSON.parse(e))}catch{}},[t]),V.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Q,()=>window.scrollY,e?(t,n)=>$(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),V.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(s.hash){let e=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{o(!1,`"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[s,r,i]))}function oe(e,t){let{capture:n}=t||{};V.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function se(e,{relative:n}={}){let r=V.useContext(x);t(r!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Y(`useViewTransitionState`),o=h(e,{relative:n});if(!r.isTransitioning)return!1;let s=C(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=C(r.nextLocation.pathname,a)||r.nextLocation.pathname;return i(o.pathname,c)!=null||i(o.pathname,s)!=null}export{q as n,W as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.__reactRouterManifest={"entry":{"module":"/__dashboard/assets/entry.client-DhCu-K7v.js","imports":["/__dashboard/assets/jsx-runtime-CuoEKysV.js","/__dashboard/assets/errorBoundaries-Dn4hVn2U.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/__dashboard/assets/root-CJkTVXq-.js","imports":["/__dashboard/assets/jsx-runtime-CuoEKysV.js","/__dashboard/assets/errorBoundaries-Dn4hVn2U.js","/__dashboard/assets/lib-DciQAlmZ.js","/__dashboard/assets/root.style-DmKiRSsP.js","/__dashboard/assets/QueryClientProvider-BCOOhPXt.js"],"css":["/__dashboard/assets/root-C3UMhDeq.css"]},"routes/dashboard":{"id":"routes/dashboard","parentId":"root","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/__dashboard/assets/dashboard-0D3-ZE5r.js","imports":["/__dashboard/assets/jsx-runtime-CuoEKysV.js","/__dashboard/assets/root.style-DmKiRSsP.js","/__dashboard/assets/QueryClientProvider-BCOOhPXt.js"],"css":[]},"routes/not-found":{"id":"routes/not-found","parentId":"root","path":"*","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/__dashboard/assets/not-found-WOdQxFoc.js","imports":["/__dashboard/assets/jsx-runtime-CuoEKysV.js","/__dashboard/assets/lib-DciQAlmZ.js","/__dashboard/assets/root.style-DmKiRSsP.js","/__dashboard/assets/errorBoundaries-Dn4hVn2U.js"],"css":[]}},"url":"/__dashboard/assets/manifest-da601958.js","version":"da601958"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e,t}from"./jsx-runtime-CuoEKysV.js";import{t as n}from"./lib-DciQAlmZ.js";import{r,t as i}from"./root.style-DmKiRSsP.js";var a=r(),o=t(),s=e(function(){let e=(0,a.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,o.jsxs)(`main`,{className:i.statePage,children:[(0,o.jsx)(`p`,{className:i.eyebrow,children:`Coreframe Dashboard`}),(0,o.jsx)(`h1`,{children:`Page not found`}),(0,o.jsx)(`p`,{className:i.message,children:`This dashboard only exposes the project overview.`}),(0,o.jsx)(n,{className:i.button,to:`/`,children:`Go home`})]}),e[0]=t):t=e[0],t});export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "nanoreset";@layer reset{html{color:#20242a;font-family:var(--fonts-body);background:#f5f6f8}body{min-height:100svh}button,a{font:inherit}button,[role=button]{cursor:pointer}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}}@layer base{:root{--made-with-panda:"🐼"}*,:before,:after,::backdrop{--blur: ;--brightness: ;--contrast: ;--grayscale: ;--hue-rotate: ;--invert: ;--saturate: ;--sepia: ;--drop-shadow: ;--backdrop-blur: ;--backdrop-brightness: ;--backdrop-contrast: ;--backdrop-grayscale: ;--backdrop-hue-rotate: ;--backdrop-invert: ;--backdrop-opacity: ;--backdrop-saturate: ;--backdrop-sepia: ;--gradient-from-position: ;--gradient-to-position: ;--gradient-via-position: ;--scroll-snap-strictness:proximity;--border-spacing-x:0;--border-spacing-y:0;--translate-x:0;--translate-y:0;--rotate:0;--rotate-x:0;--rotate-y:0;--skew-x:0;--skew-y:0;--scale-x:1;--scale-y:1}}@layer tokens{:where(:root,:host){--colors-current:currentcolor;--colors-transparent:oklch(0% 0 0/0);--colors-black:#000;--colors-white:#fff;--colors-slate-50:oklch(98.4% .003 247.858);--colors-slate-100:oklch(96.8% .007 247.896);--colors-slate-200:oklch(92.9% .013 255.508);--colors-slate-300:oklch(86.9% .022 252.894);--colors-slate-400:oklch(70.4% .04 256.788);--colors-slate-500:oklch(55.4% .046 257.417);--colors-slate-600:oklch(44.6% .043 257.281);--colors-slate-700:oklch(37.2% .044 257.287);--colors-slate-800:oklch(27.9% .041 260.031);--colors-slate-900:oklch(20.8% .042 265.755);--colors-slate-950:oklch(12.9% .042 264.695);--colors-gray-50:oklch(98.5% .002 247.839);--colors-gray-100:oklch(96.7% .003 264.542);--colors-gray-200:oklch(92.8% .006 264.531);--colors-gray-300:oklch(87.2% .01 258.338);--colors-gray-400:oklch(70.7% .022 261.325);--colors-gray-500:oklch(55.1% .027 264.364);--colors-gray-600:oklch(44.6% .03 256.802);--colors-gray-700:oklch(37.3% .034 259.733);--colors-gray-800:oklch(27.8% .033 256.848);--colors-gray-900:oklch(21% .034 264.665);--colors-gray-950:oklch(13% .028 261.692);--colors-zinc-50:oklch(98.5% 0 0);--colors-zinc-100:oklch(96.7% .001 286.375);--colors-zinc-200:oklch(92% .004 286.32);--colors-zinc-300:oklch(87.1% .006 286.286);--colors-zinc-400:oklch(70.5% .015 286.067);--colors-zinc-500:oklch(55.2% .016 285.938);--colors-zinc-600:oklch(44.2% .017 285.786);--colors-zinc-700:oklch(37% .013 285.805);--colors-zinc-800:oklch(27.4% .006 286.033);--colors-zinc-900:oklch(21% .006 285.885);--colors-zinc-950:oklch(14.1% .005 285.823);--colors-neutral-50:oklch(98.5% 0 0);--colors-neutral-100:oklch(97% 0 0);--colors-neutral-200:oklch(92.2% 0 0);--colors-neutral-300:oklch(87% 0 0);--colors-neutral-400:oklch(70.8% 0 0);--colors-neutral-500:oklch(55.6% 0 0);--colors-neutral-600:oklch(43.9% 0 0);--colors-neutral-700:oklch(37.1% 0 0);--colors-neutral-800:oklch(26.9% 0 0);--colors-neutral-900:oklch(20.5% 0 0);--colors-neutral-950:oklch(14.5% 0 0);--colors-stone-50:oklch(98.5% .001 106.423);--colors-stone-100:oklch(97% .001 106.424);--colors-stone-200:oklch(92.3% .003 48.717);--colors-stone-300:oklch(86.9% .005 56.366);--colors-stone-400:oklch(70.9% .01 56.259);--colors-stone-500:oklch(55.3% .013 58.071);--colors-stone-600:oklch(44.4% .011 73.639);--colors-stone-700:oklch(37.4% .01 67.558);--colors-stone-800:oklch(26.8% .007 34.298);--colors-stone-900:oklch(21.6% .006 56.043);--colors-stone-950:oklch(14.7% .004 49.25);--colors-mauve-50:oklch(98.5% 0 0);--colors-mauve-100:oklch(96% .003 325.6);--colors-mauve-200:oklch(92.2% .005 325.62);--colors-mauve-300:oklch(86.5% .012 325.68);--colors-mauve-400:oklch(71.1% .019 323.02);--colors-mauve-500:oklch(54.2% .034 322.5);--colors-mauve-600:oklch(43.5% .029 321.78);--colors-mauve-700:oklch(36.4% .029 323.89);--colors-mauve-800:oklch(26.3% .024 320.12);--colors-mauve-900:oklch(21.2% .019 322.12);--colors-mauve-950:oklch(14.5% .008 326);--colors-olive-50:oklch(98.8% .003 106.5);--colors-olive-100:oklch(96.6% .005 106.5);--colors-olive-200:oklch(93% .007 106.5);--colors-olive-300:oklch(88% .011 106.6);--colors-olive-400:oklch(73.7% .021 106.9);--colors-olive-500:oklch(58% .031 107.3);--colors-olive-600:oklch(46.6% .025 107.3);--colors-olive-700:oklch(39.4% .023 107.4);--colors-olive-800:oklch(28.6% .016 107.4);--colors-olive-900:oklch(22.8% .013 107.4);--colors-olive-950:oklch(15.3% .006 107.1);--colors-mist-50:oklch(98.7% .002 197.1);--colors-mist-100:oklch(96.3% .002 197.1);--colors-mist-200:oklch(92.5% .005 214.3);--colors-mist-300:oklch(87.2% .007 219.6);--colors-mist-400:oklch(72.3% .014 214.4);--colors-mist-500:oklch(56% .021 213.5);--colors-mist-600:oklch(45% .017 213.2);--colors-mist-700:oklch(37.8% .015 216);--colors-mist-800:oklch(27.5% .011 216.9);--colors-mist-900:oklch(21.8% .008 223.9);--colors-mist-950:oklch(14.8% .004 228.8);--colors-taupe-50:oklch(98.6% .002 67.8);--colors-taupe-100:oklch(96% .002 17.2);--colors-taupe-200:oklch(92.2% .005 34.3);--colors-taupe-300:oklch(86.8% .007 39.5);--colors-taupe-400:oklch(71.4% .014 41.2);--colors-taupe-500:oklch(54.7% .021 43.1);--colors-taupe-600:oklch(43.8% .017 39.3);--colors-taupe-700:oklch(36.7% .016 35.7);--colors-taupe-800:oklch(26.8% .011 36.5);--colors-taupe-900:oklch(21.4% .009 43.1);--colors-taupe-950:oklch(14.7% .004 49.3);--colors-red-50:oklch(97.1% .013 17.38);--colors-red-100:oklch(93.6% .032 17.717);--colors-red-200:oklch(88.5% .062 18.334);--colors-red-300:oklch(80.8% .114 19.571);--colors-red-400:oklch(70.4% .191 22.216);--colors-red-500:oklch(63.7% .237 25.331);--colors-red-600:oklch(57.7% .245 27.325);--colors-red-700:oklch(50.5% .213 27.518);--colors-red-800:oklch(44.4% .177 26.899);--colors-red-900:oklch(39.6% .141 25.723);--colors-red-950:oklch(25.8% .092 26.042);--colors-orange-50:oklch(98% .016 73.684);--colors-orange-100:oklch(95.4% .038 75.164);--colors-orange-200:oklch(90.1% .076 70.697);--colors-orange-300:oklch(83.7% .128 66.29);--colors-orange-400:oklch(75% .183 55.934);--colors-orange-500:oklch(70.5% .213 47.604);--colors-orange-600:oklch(64.6% .222 41.116);--colors-orange-700:oklch(55.3% .195 38.402);--colors-orange-800:oklch(47% .157 37.304);--colors-orange-900:oklch(40.8% .123 38.172);--colors-orange-950:oklch(26.6% .079 36.259);--colors-amber-50:oklch(98.7% .022 95.277);--colors-amber-100:oklch(96.2% .059 95.617);--colors-amber-200:oklch(92.4% .12 95.746);--colors-amber-300:oklch(87.9% .169 91.605);--colors-amber-400:oklch(82.8% .189 84.429);--colors-amber-500:oklch(76.9% .188 70.08);--colors-amber-600:oklch(66.6% .179 58.318);--colors-amber-700:oklch(55.5% .163 48.998);--colors-amber-800:oklch(47.3% .137 46.201);--colors-amber-900:oklch(41.4% .112 45.904);--colors-amber-950:oklch(27.9% .077 45.635);--colors-yellow-50:oklch(98.7% .026 102.212);--colors-yellow-100:oklch(97.3% .071 103.193);--colors-yellow-200:oklch(94.5% .129 101.54);--colors-yellow-300:oklch(90.5% .182 98.111);--colors-yellow-400:oklch(85.2% .199 91.936);--colors-yellow-500:oklch(79.5% .184 86.047);--colors-yellow-600:oklch(68.1% .162 75.834);--colors-yellow-700:oklch(55.4% .135 66.442);--colors-yellow-800:oklch(47.6% .114 61.907);--colors-yellow-900:oklch(42.1% .095 57.708);--colors-yellow-950:oklch(28.6% .066 53.813);--colors-lime-50:oklch(98.6% .031 120.757);--colors-lime-100:oklch(96.7% .067 122.328);--colors-lime-200:oklch(93.8% .127 124.321);--colors-lime-300:oklch(89.7% .196 126.665);--colors-lime-400:oklch(84.1% .238 128.85);--colors-lime-500:oklch(76.8% .233 130.85);--colors-lime-600:oklch(64.8% .2 131.684);--colors-lime-700:oklch(53.2% .157 131.589);--colors-lime-800:oklch(45.3% .124 130.933);--colors-lime-900:oklch(40.5% .101 131.063);--colors-lime-950:oklch(27.4% .072 132.109);--colors-green-50:oklch(98.2% .018 155.826);--colors-green-100:oklch(96.2% .044 156.743);--colors-green-200:oklch(92.5% .084 155.995);--colors-green-300:oklch(87.1% .15 154.449);--colors-green-400:oklch(79.2% .209 151.711);--colors-green-500:oklch(72.3% .219 149.579);--colors-green-600:oklch(62.7% .194 149.214);--colors-green-700:oklch(52.7% .154 150.069);--colors-green-800:oklch(44.8% .119 151.328);--colors-green-900:oklch(39.3% .095 152.535);--colors-green-950:oklch(26.6% .065 152.934);--colors-emerald-50:oklch(97.9% .021 166.113);--colors-emerald-100:oklch(95% .052 163.051);--colors-emerald-200:oklch(90.5% .093 164.15);--colors-emerald-300:oklch(84.5% .143 164.978);--colors-emerald-400:oklch(76.5% .177 163.223);--colors-emerald-500:oklch(69.6% .17 162.48);--colors-emerald-600:oklch(59.6% .145 163.225);--colors-emerald-700:oklch(50.8% .118 165.612);--colors-emerald-800:oklch(43.2% .095 166.913);--colors-emerald-900:oklch(37.8% .077 168.94);--colors-emerald-950:oklch(26.2% .051 172.552);--colors-teal-50:oklch(98.4% .014 180.72);--colors-teal-100:oklch(95.3% .051 180.801);--colors-teal-200:oklch(91% .096 180.426);--colors-teal-300:oklch(85.5% .138 181.071);--colors-teal-400:oklch(77.7% .152 181.912);--colors-teal-500:oklch(70.4% .14 182.503);--colors-teal-600:oklch(60% .118 184.704);--colors-teal-700:oklch(51.1% .096 186.391);--colors-teal-800:oklch(43.7% .078 188.216);--colors-teal-900:oklch(38.6% .063 188.416);--colors-teal-950:oklch(27.7% .046 192.524);--colors-cyan-50:oklch(98.4% .019 200.873);--colors-cyan-100:oklch(95.6% .045 203.388);--colors-cyan-200:oklch(91.7% .08 205.041);--colors-cyan-300:oklch(86.5% .127 207.078);--colors-cyan-400:oklch(78.9% .154 211.53);--colors-cyan-500:oklch(71.5% .143 215.221);--colors-cyan-600:oklch(60.9% .126 221.723);--colors-cyan-700:oklch(52% .105 223.128);--colors-cyan-800:oklch(45% .085 224.283);--colors-cyan-900:oklch(39.8% .07 227.392);--colors-cyan-950:oklch(30.2% .056 229.695);--colors-sky-50:oklch(97.7% .013 236.62);--colors-sky-100:oklch(95.1% .026 236.824);--colors-sky-200:oklch(90.1% .058 230.902);--colors-sky-300:oklch(82.8% .111 230.318);--colors-sky-400:oklch(74.6% .16 232.661);--colors-sky-500:oklch(68.5% .169 237.323);--colors-sky-600:oklch(58.8% .158 241.966);--colors-sky-700:oklch(50% .134 242.749);--colors-sky-800:oklch(44.3% .11 240.79);--colors-sky-900:oklch(39.1% .09 240.876);--colors-sky-950:oklch(29.3% .066 243.157);--colors-blue-50:oklch(97% .014 254.604);--colors-blue-100:oklch(93.2% .032 255.585);--colors-blue-200:oklch(88.2% .059 254.128);--colors-blue-300:oklch(80.9% .105 251.813);--colors-blue-400:oklch(70.7% .165 254.624);--colors-blue-500:oklch(62.3% .214 259.815);--colors-blue-600:oklch(54.6% .245 262.881);--colors-blue-700:oklch(48.8% .243 264.376);--colors-blue-800:oklch(42.4% .199 265.638);--colors-blue-900:oklch(37.9% .146 265.522);--colors-blue-950:oklch(28.2% .091 267.935);--colors-indigo-50:oklch(96.2% .018 272.314);--colors-indigo-100:oklch(93% .034 272.788);--colors-indigo-200:oklch(87% .065 274.039);--colors-indigo-300:oklch(78.5% .115 274.713);--colors-indigo-400:oklch(67.3% .182 276.935);--colors-indigo-500:oklch(58.5% .233 277.117);--colors-indigo-600:oklch(51.1% .262 276.966);--colors-indigo-700:oklch(45.7% .24 277.023);--colors-indigo-800:oklch(39.8% .195 277.366);--colors-indigo-900:oklch(35.9% .144 278.697);--colors-indigo-950:oklch(25.7% .09 281.288);--colors-violet-50:oklch(96.9% .016 293.756);--colors-violet-100:oklch(94.3% .029 294.588);--colors-violet-200:oklch(89.4% .057 293.283);--colors-violet-300:oklch(81.1% .111 293.571);--colors-violet-400:oklch(70.2% .183 293.541);--colors-violet-500:oklch(60.6% .25 292.717);--colors-violet-600:oklch(54.1% .281 293.009);--colors-violet-700:oklch(49.1% .27 292.581);--colors-violet-800:oklch(43.2% .232 292.759);--colors-violet-900:oklch(38% .189 293.745);--colors-violet-950:oklch(28.3% .141 291.089);--colors-purple-50:oklch(97.7% .014 308.299);--colors-purple-100:oklch(94.6% .033 307.174);--colors-purple-200:oklch(90.2% .063 306.703);--colors-purple-300:oklch(82.7% .119 306.383);--colors-purple-400:oklch(71.4% .203 305.504);--colors-purple-500:oklch(62.7% .265 303.9);--colors-purple-600:oklch(55.8% .288 302.321);--colors-purple-700:oklch(49.6% .265 301.924);--colors-purple-800:oklch(43.8% .218 303.724);--colors-purple-900:oklch(38.1% .176 304.987);--colors-purple-950:oklch(29.1% .149 302.717);--colors-fuchsia-50:oklch(97.7% .017 320.058);--colors-fuchsia-100:oklch(95.2% .037 318.852);--colors-fuchsia-200:oklch(90.3% .076 319.62);--colors-fuchsia-300:oklch(83.3% .145 321.434);--colors-fuchsia-400:oklch(74% .238 322.16);--colors-fuchsia-500:oklch(66.7% .295 322.15);--colors-fuchsia-600:oklch(59.1% .293 322.896);--colors-fuchsia-700:oklch(51.8% .253 323.949);--colors-fuchsia-800:oklch(45.2% .211 324.591);--colors-fuchsia-900:oklch(40.1% .17 325.612);--colors-fuchsia-950:oklch(29.3% .136 325.661);--colors-pink-50:oklch(97.1% .014 343.198);--colors-pink-100:oklch(94.8% .028 342.258);--colors-pink-200:oklch(89.9% .061 343.231);--colors-pink-300:oklch(82.3% .12 346.018);--colors-pink-400:oklch(71.8% .202 349.761);--colors-pink-500:oklch(65.6% .241 354.308);--colors-pink-600:oklch(59.2% .249 .584);--colors-pink-700:oklch(52.5% .223 3.958);--colors-pink-800:oklch(45.9% .187 3.815);--colors-pink-900:oklch(40.8% .153 2.432);--colors-pink-950:oklch(28.4% .109 3.907);--colors-rose-50:oklch(96.9% .015 12.422);--colors-rose-100:oklch(94.1% .03 12.58);--colors-rose-200:oklch(89.2% .058 10.001);--colors-rose-300:oklch(81% .117 11.638);--colors-rose-400:oklch(71.2% .194 13.428);--colors-rose-500:oklch(64.5% .246 16.439);--colors-rose-600:oklch(58.6% .253 17.585);--colors-rose-700:oklch(51.4% .222 16.935);--colors-rose-800:oklch(45.5% .188 13.697);--colors-rose-900:oklch(41% .159 10.272);--colors-rose-950:oklch(27.1% .105 12.094);--fonts-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--fonts-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--fonts-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--fonts-body:"Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;--font-sizes-2xs:.5rem;--font-sizes-xs:.75rem;--font-sizes-sm:.875rem;--font-sizes-md:1rem;--font-sizes-lg:1.125rem;--font-sizes-xl:1.25rem;--font-sizes-2xl:1.5rem;--font-sizes-3xl:1.875rem;--font-sizes-4xl:2.25rem;--font-sizes-5xl:3rem;--font-sizes-6xl:3.75rem;--font-sizes-7xl:4.5rem;--font-sizes-8xl:6rem;--font-sizes-9xl:8rem;--font-weights-thin:100;--font-weights-extralight:200;--font-weights-light:300;--font-weights-normal:400;--font-weights-medium:500;--font-weights-semibold:600;--font-weights-bold:700;--font-weights-extrabold:800;--font-weights-black:900;--line-heights-none:1;--line-heights-tight:1.25;--line-heights-snug:1.375;--line-heights-normal:1.5;--line-heights-relaxed:1.625;--line-heights-loose:2;--letter-spacings-tighter:-.05em;--letter-spacings-tight:-.025em;--letter-spacings-normal:0em;--letter-spacings-wide:.025em;--letter-spacings-wider:.05em;--letter-spacings-widest:.1em;--sizes-0:0rem;--sizes-1:.25rem;--sizes-2:.5rem;--sizes-3:.75rem;--sizes-4:1rem;--sizes-5:1.25rem;--sizes-6:1.5rem;--sizes-7:1.75rem;--sizes-8:2rem;--sizes-9:2.25rem;--sizes-10:2.5rem;--sizes-11:2.75rem;--sizes-12:3rem;--sizes-14:3.5rem;--sizes-16:4rem;--sizes-20:5rem;--sizes-24:6rem;--sizes-28:7rem;--sizes-32:8rem;--sizes-36:9rem;--sizes-40:10rem;--sizes-44:11rem;--sizes-48:12rem;--sizes-52:13rem;--sizes-56:14rem;--sizes-60:15rem;--sizes-64:16rem;--sizes-72:18rem;--sizes-80:20rem;--sizes-96:24rem;--sizes-0\.5:.125rem;--sizes-1\.5:.375rem;--sizes-2\.5:.625rem;--sizes-3\.5:.875rem;--sizes-4\.5:1.125rem;--sizes-5\.5:1.375rem;--sizes-xs:20rem;--sizes-sm:24rem;--sizes-md:28rem;--sizes-lg:32rem;--sizes-xl:36rem;--sizes-2xl:42rem;--sizes-3xl:48rem;--sizes-4xl:56rem;--sizes-5xl:64rem;--sizes-6xl:72rem;--sizes-7xl:80rem;--sizes-8xl:90rem;--sizes-prose:65ch;--sizes-full:100%;--sizes-min:min-content;--sizes-max:max-content;--sizes-fit:fit-content;--shadows-2xs:0 1px #0000000d;--shadows-xs:0 1px 2px 0 #0000000d;--shadows-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadows-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadows-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--shadows-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--shadows-2xl:0 25px 50px -12px #00000040;--shadows-inner:inset 0 2px 4px 0 #0000000d;--shadows-inset-2xs:inset 0 1px #0000000d;--shadows-inset-xs:inset 0 1px 1px #0000000d;--shadows-inset-sm:inset 0 2px 4px #0000000d;--spacing-0:0rem;--spacing-1:.25rem;--spacing-2:.5rem;--spacing-3:.75rem;--spacing-4:1rem;--spacing-5:1.25rem;--spacing-6:1.5rem;--spacing-7:1.75rem;--spacing-8:2rem;--spacing-9:2.25rem;--spacing-10:2.5rem;--spacing-11:2.75rem;--spacing-12:3rem;--spacing-14:3.5rem;--spacing-16:4rem;--spacing-20:5rem;--spacing-24:6rem;--spacing-28:7rem;--spacing-32:8rem;--spacing-36:9rem;--spacing-40:10rem;--spacing-44:11rem;--spacing-48:12rem;--spacing-52:13rem;--spacing-56:14rem;--spacing-60:15rem;--spacing-64:16rem;--spacing-72:18rem;--spacing-80:20rem;--spacing-96:24rem;--spacing-0\.5:.125rem;--spacing-1\.5:.375rem;--spacing-2\.5:.625rem;--spacing-3\.5:.875rem;--spacing-4\.5:1.125rem;--spacing-5\.5:1.375rem;--radii-xs:.125rem;--radii-sm:.25rem;--radii-md:.375rem;--radii-lg:.5rem;--radii-xl:.75rem;--radii-2xl:1rem;--radii-3xl:1.5rem;--radii-4xl:2rem;--radii-full:9999px;--borders-none:none;--durations-fastest:50ms;--durations-faster:.1s;--durations-fast:.15s;--durations-normal:.2s;--durations-slow:.3s;--durations-slower:.4s;--durations-slowest:.5s;--easings-default:cubic-bezier(.4, 0, .2, 1);--easings-linear:linear;--easings-in:cubic-bezier(.4, 0, 1, 1);--easings-out:cubic-bezier(0, 0, .2, 1);--easings-in-out:cubic-bezier(.4, 0, .2, 1);--animations-spin:spin 1s linear infinite;--animations-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animations-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animations-bounce:bounce 1s infinite;--blurs-xs:4px;--blurs-sm:8px;--blurs-md:12px;--blurs-lg:16px;--blurs-xl:24px;--blurs-2xl:40px;--blurs-3xl:64px;--aspect-ratios-square:1 / 1;--aspect-ratios-video:16 / 9;--aspect-ratios-landscape:4 / 3;--aspect-ratios-portrait:3 / 4;--aspect-ratios-wide:16 / 9;--aspect-ratios-ultrawide:18 / 5;--aspect-ratios-golden:1.618 / 1;--breakpoints-sm:40rem;--sizes-breakpoint-sm:40rem;--breakpoints-md:48rem;--sizes-breakpoint-md:48rem;--breakpoints-lg:64rem;--sizes-breakpoint-lg:64rem;--breakpoints-xl:80rem;--sizes-breakpoint-xl:80rem;--breakpoints-2xl:96rem;--sizes-breakpoint-2xl:96rem}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}}@layer recipes;@layer utilities{.bg_\#17181d{background:#17181d}.bg_gray\.100{background:var(--colors-gray-100)}.bg_gray\.900{background:var(--colors-gray-900)}.bg_green\.50{background:var(--colors-green-50)}.bg_green\.700{background:var(--colors-green-700)}.bg_indigo\.600{background:var(--colors-indigo-600)}.bg_linear-gradient\(135deg\,_\#ffffff_20\%\,_\#f8f7ff_100\%\){background:linear-gradient(135deg,#fff 20%,#f8f7ff 100%)}.bg_red\.50{background:var(--colors-red-50)}.bg_red\.700{background:var(--colors-red-700)}.bg_rgb\(255_255_255_\/_0\.8\){background:#fffc}.bg_white{background:var(--colors-white)}.bg_yellow\.50{background:var(--colors-yellow-50)}.bg_yellow\.700{background:var(--colors-yellow-700)}.bd_1px_solid_\#30323a{border:1px solid #30323a}.bd_1px_solid_rgb\(229_228_223_\/_0\.9\){border:1px solid #e5e4dfe6}.bd_1px_solid_token\(colors\.gray\.200\){border:1px solid var(--colors-gray-200)}.bd_1px_solid_token\(colors\.gray\.300\){border:1px solid var(--colors-gray-300)}.bd_1px_solid_token\(colors\.indigo\.600\){border:1px solid var(--colors-indigo-600)}.m_0{margin:var(--spacing-0)}.m_0_0_0\.2rem{margin:0 0 .2rem}.m_0_0_0\.3125rem{margin:0 0 .3125rem}.m_0_auto{margin:0 auto}.m_0\.5rem_0_0{margin:.5rem 0 0}.m_0\.625rem_0_0_0\.9375rem{margin:.625rem 0 0 .9375rem}.m_0\.75rem_0{margin:.75rem 0}.m_0\.75rem_0_0{margin:.75rem 0 0}.m_0\.75rem_0_0_0\.9375rem{margin:.75rem 0 0 .9375rem}.p_0{padding:var(--spacing-0)}.p_0_0\.25rem_1\.5rem{padding:0 .25rem 1.5rem}.p_0\.3125rem_0\.5rem{padding:.3125rem .5rem}.p_0\.4rem_0\.625rem{padding:.4rem .625rem}.p_0\.5625rem_0\.75rem{padding:.5625rem .75rem}.p_0\.5rem_0\.75rem{padding:.5rem .75rem}.p_0\.5rem_0\.7rem{padding:.5rem .7rem}.p_0\.625rem_0\.75rem{padding:.625rem .75rem}.p_0\.875rem{padding:.875rem}.p_0\.875rem_0{padding:.875rem 0}.p_1\.125rem{padding:1.125rem}.p_1\.125rem_0{padding:1.125rem 0}.p_1\.25rem{padding:1.25rem}.p_1\.25rem_0_3rem{padding:1.25rem 0 3rem}.bd-b_1px_solid_\#30323a{border-bottom:1px solid #30323a}.bdr_0\.375rem{border-radius:.375rem}.bdr_0\.5rem{border-radius:.5rem}.bdr_0\.625rem{border-radius:.625rem}.bdr_0\.75rem{border-radius:.75rem}.bdr_1rem{border-radius:1rem}.bdr_50\%{border-radius:50%}.bdr_999px{border-radius:999px}.bd-t_1px_solid_token\(colors\.gray\.200\){border-top:1px solid var(--colors-gray-200)}.flex_0_0_auto{flex:none}.gap_0\.35rem{gap:.35rem}.gap_0\.375rem_1\.125rem{gap:.375rem 1.125rem}.gap_0\.4rem{gap:.4rem}.gap_0\.5rem{gap:.5rem}.gap_0\.625rem{gap:.625rem}.gap_0\.875rem{gap:.875rem}.gap_1\.25rem{gap:1.25rem}.gap_1\.5rem{gap:1.5rem}.gap_1rem{gap:1rem}.grid-c_auto{grid-column:auto}.li-s_none{list-style:none}.ov_auto{overflow:auto}.ov_hidden{overflow:hidden}.place-items_center{place-items:center}.td_none{text-decoration:none}.trs_border-color_150ms_ease\,_background_150ms_ease{transition:border-color .15s,background .15s}.trs_border-color_150ms_ease\,_box-shadow_150ms_ease\,_transform_150ms_ease{transition:border-color .15s,box-shadow .15s,transform .15s}.trs_filter_150ms_ease\,_transform_150ms_ease{transition:filter .15s,transform .15s}.ai_center{align-items:center}.ai_flex-start{align-items:flex-start}.bd-cl_collapse{border-collapse:collapse}.bx-sh_0_12px_35px_rgb\(32_33_38_\/_0\.055\){box-shadow:0 12px 35px #2021260e}.bx-sh_0_1px_2px_rgb\(32_33_38_\/_0\.05\){box-shadow:0 1px 2px #2021260d}.bx-sh_0_2px_10px_rgb\(32_33_38_\/_0\.035\){box-shadow:0 2px 10px #20212609}.bx-sh_0_4px_10px_rgb\(91_91_214_\/_0\.2\){box-shadow:0 4px 10px #5b5bd633}.bx-sh_0_5px_14px_rgb\(32_33_38_\/_0\.16\){box-shadow:0 5px 14px #20212629}.bx-sh_0_5px_18px_rgb\(32_33_38_\/_0\.035\){box-shadow:0 5px 18px #20212609}.bx-sh_inset_0_1px_0_rgb\(255_255_255_\/_0\.04\){box-shadow:inset 0 1px #ffffff0a}.c_\#737886{color:#737886}.c_\#b9bdc9{color:#b9bdc9}.c_\#dfe2ea{color:#dfe2ea}.c_\#ff9b92{color:#ff9b92}.c_gray\.500{color:var(--colors-gray-500)}.c_gray\.600{color:var(--colors-gray-600)}.c_gray\.900{color:var(--colors-gray-900)}.c_green\.700{color:var(--colors-green-700)}.c_red\.700{color:var(--colors-red-700)}.c_white{color:var(--colors-white)}.c_yellow\.700{color:var(--colors-yellow-700)}.c_yellow\.800{color:var(--colors-yellow-800)}.d_block{display:block}.d_flex{display:flex}.d_grid{display:grid}.d_inline-flex{display:inline-flex}.flex-d_column{flex-direction:column}.flex-wrap_wrap{flex-wrap:wrap}.ff_ui-monospace\,_SFMono-Regular\,_Menlo\,_Monaco\,_Consolas\,_monospace{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.fs_0\.65rem{font-size:.65rem}.fs_0\.6875rem{font-size:.6875rem}.fs_0\.75rem{font-size:.75rem}.fs_0\.8125rem{font-size:.8125rem}.fs_0\.875rem{font-size:.875rem}.fs_1rem{font-size:1rem}.fs_clamp\(1\.4rem\,_3vw\,_1\.8rem\){font-size:clamp(1.4rem,3vw,1.8rem)}.fs_clamp\(1\.5rem\,_4vw\,_1\.875rem\){font-size:clamp(1.5rem,4vw,1.875rem)}.font-style_italic{font-style:italic}.fw_600{font-weight:600}.fw_650{font-weight:650}.fw_680{font-weight:680}.fw_700{font-weight:700}.fw_750{font-weight:750}.grid-tc_1fr{grid-template-columns:1fr}.jc_center{justify-content:center}.jc_space-between{justify-content:space-between}.ls_-0\.025em{letter-spacing:-.025em}.ls_-0\.035em{letter-spacing:-.035em}.ls_0\.04em{letter-spacing:.04em}.ls_0\.08em{letter-spacing:.08em}.ls_0\.1em{letter-spacing:.1em}.lh_1{line-height:1}.lh_1\.05{line-height:1.05}.lh_1\.2{line-height:1.2}.lh_1\.45{line-height:1.45}.lh_1\.55{line-height:1.55}.pos_relative{position:relative}.tab-size_2{tab-size:2}.ta_left{text-align:left}.tt_uppercase{text-transform:uppercase}.white-space_nowrap{white-space:nowrap}.white-space_pre-wrap{white-space:pre-wrap}.wb_break-word{word-break:break-word}.z_1{z-index:1}.ov-x_auto{overflow-x:auto}.h_0\.4375rem{height:.4375rem}.h_2\.625rem{height:2.625rem}.mb_1rem{margin-bottom:1rem}.ml_auto{margin-left:auto}.mt_1rem{margin-top:1rem}.max-h_20rem{max-height:20rem}.max-w_47\.5rem{max-width:47.5rem}.min-h_100svh{min-height:100svh}.min-h_7rem{min-height:7rem}.min-w_0{min-width:var(--sizes-0)}.pt_0\.875rem{padding-top:.875rem}.pt_1rem{padding-top:1rem}.w_0\.4375rem{width:.4375rem}.w_100\%{width:100%}.w_2\.625rem{width:2.625rem}.w_min\(70rem\,_calc\(100vw_-_2\.5rem\)\){width:min(70rem,100vw - 2.5rem)}.w_min\(76rem\,_calc\(100vw_-_2rem\)\){width:min(76rem,100vw - 2rem)}.\[\&_\>_div\]\:gap_0\.3125rem>div{gap:.3125rem}.\[\&_\>_div\]\:ai_baseline>div{align-items:baseline}.\[\&_\>_div\]\:d_flex>div{display:flex}.\[\&_\>_span\]\:d_inline>span{display:inline}.\[\&_a\]\:p_0\.6875rem_0 a{padding:.6875rem 0}.\[\&_a\]\:gap_1rem a{gap:1rem}.\[\&_a\]\:td_none a{text-decoration:none}.\[\&_a\]\:ai_center a{align-items:center}.\[\&_a\]\:c_indigo\.600 a{color:var(--colors-indigo-600)}.\[\&_a\]\:d_flex a{display:flex}.\[\&_a\]\:fs_0\.8125rem a{font-size:.8125rem}.\[\&_a\]\:fw_600 a{font-weight:600}.\[\&_a\]\:jc_space-between a{justify-content:space-between}.\[\&_a\]\:w_fit-content a{width:fit-content}.\[\&_a\]\:\[\&\:hover\]\:td_underline a:hover{text-decoration:underline}.\[\&_code\]\:fs_0\.75rem code{font-size:.75rem}.\[\&_dd\]\:m_0 dd{margin:var(--spacing-0)}.\[\&_dd\]\:m_0\.35rem_0_0 dd{margin:.35rem 0 0}.\[\&_dd\]\:fs_0\.75rem dd{font-size:.75rem}.\[\&_dd\]\:fs_0\.925rem dd{font-size:.925rem}.\[\&_dd\]\:fw_600 dd{font-weight:600}.\[\&_dd\]\:fw_650 dd{font-weight:650}.\[\&_dd\]\:lh_1\.3 dd{line-height:1.3}.\[\&_dt\]\:c_gray\.500 dt{color:var(--colors-gray-500)}.\[\&_dt\]\:fs_0\.625rem dt{font-size:.625rem}.\[\&_dt\]\:fs_0\.6875rem dt{font-size:.6875rem}.\[\&_dt\]\:fw_700 dt{font-weight:700}.\[\&_dt\]\:ls_0\.035em dt{letter-spacing:.035em}.\[\&_dt\]\:tt_uppercase dt{text-transform:uppercase}.\[\&_h2\]\:m_0 h2{margin:var(--spacing-0)}.\[\&_h2\]\:fs_1\.05rem h2{font-size:1.05rem}.\[\&_h2\]\:fw_680 h2{font-weight:680}.\[\&_h2\]\:ls_-0\.015em h2{letter-spacing:-.015em}.\[\&_h3\]\:m_0 h3{margin:var(--spacing-0)}.\[\&_h3\]\:fs_0\.9rem h3{font-size:.9rem}.\[\&_h3\]\:fw_650 h3{font-weight:650}.\[\&_p\]\:m_0\.25rem_0_0 p{margin:.25rem 0 0}.\[\&_p\]\:m_0\.3rem_0_0 p{margin:.3rem 0 0}.\[\&_p\]\:c_gray\.600 p{color:var(--colors-gray-600)}.\[\&_p\]\:fs_0\.8125rem p{font-size:.8125rem}.\[\&_p\]\:lh_1\.45 p{line-height:1.45}.\[\&_small\]\:c_gray\.500 small{color:var(--colors-gray-500)}.\[\&_small\]\:fs_0\.75rem small{font-size:.75rem}.\[\&_small\]\:mt_0\.25rem small{margin-top:.25rem}.\[\&_span\]\:c_gray\.600 span{color:var(--colors-gray-600)}.\[\&_span\]\:fs_0\.8125rem span{font-size:.8125rem}.\[\&_span\]\:mt_0\.1875rem span{margin-top:.1875rem}.\[\&_strong\]\:fs_0\.8125rem strong{font-size:.8125rem}.\[\&_strong\,_\&_span\,_\&_small\]\:d_block strong,.\[\&_strong\,_\&_span\,_\&_small\]\:d_block span,.\[\&_strong\,_\&_span\,_\&_small\]\:d_block small{display:block}.\[\&_tbody_th\]\:fw_600 tbody th{font-weight:600}.\[\&_tbody_th\]\:min-w_16rem tbody th{min-width:16rem}.\[\&_tbody_th_span\]\:c_gray\.600 tbody th span{color:var(--colors-gray-600)}.\[\&_tbody_th_span\]\:d_block tbody th span{display:block}.\[\&_tbody_th_span\]\:fw_400 tbody th span{font-weight:400}.\[\&_tbody_th_span\]\:lh_1\.4 tbody th span{line-height:1.4}.\[\&_tbody_th_span\]\:mt_0\.25rem tbody th span{margin-top:.25rem}.\[\&_tbody_th_span\]\:max-w_28rem tbody th span{max-width:28rem}.\[\&_th\,_\&_td\]\:p_0\.75rem th,.\[\&_th\,_\&_td\]\:p_0\.75rem td{padding:.75rem}.\[\&_th\,_\&_td\]\:bd-t_1px_solid_token\(colors\.gray\.200\) th,.\[\&_th\,_\&_td\]\:bd-t_1px_solid_token\(colors\.gray\.200\) td{border-top:1px solid var(--colors-gray-200)}.\[\&_th\,_\&_td\]\:fs_0\.75rem th,.\[\&_th\,_\&_td\]\:fs_0\.75rem td{font-size:.75rem}.\[\&_th\,_\&_td\]\:va_top th,.\[\&_th\,_\&_td\]\:va_top td{vertical-align:top}.\[\&_thead_th\]\:bd-t_0 thead th{border-top:0}.\[\&_thead_th\]\:c_gray\.500 thead th{color:var(--colors-gray-500)}.\[\&_thead_th\]\:fs_0\.65rem thead th{font-size:.65rem}.\[\&_thead_th\]\:fw_700 thead th{font-weight:700}.\[\&_thead_th\]\:ls_0\.04em thead th{letter-spacing:.04em}.\[\&_thead_th\]\:tt_uppercase thead th{text-transform:uppercase}.\[\&_\>_span\:first-child\]\:fs_0\.8125rem>span:first-child{font-size:.8125rem}.\[\&_\>_span\:first-child\]\:fw_600>span:first-child{font-weight:600}.\[\&\:first-child\]\:bd-t_0:first-child{border-top:0}.\[\&\:first-child\]\:pt_0\.125rem:first-child{padding-top:.125rem}.\[\&_span\:last-child\]\:c_\#737886 span:last-child{color:#737886}.\[\&\:last-child\]\:pb_0\.125rem:last-child{padding-bottom:.125rem}.\[\&\:disabled\]\:bg_gray\.100:disabled{background:var(--colors-gray-100)}.\[\&\:disabled\]\:bd-c_gray\.300:disabled{border-color:var(--colors-gray-300)}.\[\&\:disabled\]\:bx-sh_none:disabled{box-shadow:none}.\[\&\:disabled\]\:c_gray\.500:disabled{color:var(--colors-gray-500)}.\[\&\:disabled\]\:op_0\.55:disabled{opacity:.55}.\[\&\:disabled\]\:op_1:disabled{opacity:1}.\[\&\:hover\]\:bg_gray\.100:hover{background:var(--colors-gray-100)}.\[\&\:hover\]\:bd-c_gray\.500:hover{border-color:var(--colors-gray-500)}.\[\&\:hover\]\:bd-c_indigo\.600:hover{border-color:var(--colors-indigo-600)}.\[\&\:hover\]\:bx-sh_0_3px_8px_rgb\(32_33_38_\/_0\.08\):hover{box-shadow:0 3px 8px #20212614}.\[\&\:hover\]\:trf_translateY\(-1px\):hover{transform:translateY(-1px)}.\[\&\:focus-visible\]\:ring_3px_solid_rgb\(91_91_214_\/_0\.22\):focus-visible{outline:3px solid #5b5bd638}.\[\&\:focus-visible\]\:ring-o_2px:focus-visible{outline-offset:2px}.\[\&\:hover\:not\(\:disabled\)\]\:filter_brightness\(0\.94\):hover:not(:disabled){filter:brightness(.94)}.\[\&\:hover\:not\(\:disabled\)\]\:trf_translateY\(-1px\):hover:not(:disabled){transform:translateY(-1px)}.\[\&\:\:after\]\:bg_rgb\(91_91_214_\/_0\.06\):after{background:#5b5bd60f}.\[\&\:\:after\]\:bdr_50\%:after{border-radius:50%}.\[\&\:\:after\]\:content_\'\':after{content:""}.\[\&\:\:after\]\:pointer-events_none:after{pointer-events:none}.\[\&\:\:after\]\:pos_absolute:after{position:absolute}.\[\&\:\:after\]\:h_11rem:after{height:11rem}.\[\&\:\:after\]\:right_-3rem:after{right:-3rem}.\[\&\:\:after\]\:top_-5rem:after{top:-5rem}.\[\&\:\:after\]\:w_11rem:after{width:11rem}.\[\&\:\:before\]\:bg_currentColor:before{background:currentColor}.\[\&\:\:before\]\:bdr_50\%:before{border-radius:50%}.\[\&\:\:before\]\:content_\'\':before{content:""}.\[\&\:\:before\]\:h_0\.4rem:before{height:.4rem}.\[\&\:\:before\]\:w_0\.4rem:before{width:.4rem}@media (width>=40rem){.sm\:ai_center{align-items:center}.sm\:flex-d_row{flex-direction:row}.sm\:grid-tc_repeat\(3\,_minmax\(0\,_1fr\)\){grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=48rem){.md\:p_1\.375rem_1\.5rem{padding:1.375rem 1.5rem}.md\:p_1\.75rem_2rem{padding:1.75rem 2rem}.md\:p_2rem_0_4rem{padding:2rem 0 4rem}.md\:gap_2\.5rem{gap:2.5rem}.md\:grid-c_1_\/_-1{grid-column:1/-1}.md\:ai_center{align-items:center}.md\:flex-d_row{flex-direction:row}.md\:grid-tc_minmax\(0\,_1\.05fr\)_minmax\(21rem\,_0\.95fr\){grid-template-columns:minmax(0,1.05fr) minmax(21rem,.95fr)}.md\:grid-tc_repeat\(2\,_minmax\(0\,_1fr\)\){grid-template-columns:repeat(2,minmax(0,1fr))}}}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/__dashboard/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/__dashboard/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/__dashboard/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/__dashboard/assets/inter-greek-wght-normal-CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/__dashboard/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/__dashboard/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/__dashboard/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,j as t,n,o as r,s as i,t as a}from"./jsx-runtime-CuoEKysV.js";import{n as o,t as s}from"./lib-DciQAlmZ.js";import{i as c,o as l,r as u}from"./errorBoundaries-Dn4hVn2U.js";import{r as d,t as f}from"./root.style-DmKiRSsP.js";import{D as p,O as m,_ as h,a as g,c as _,d as v,f as y,g as b,h as x,o as S,p as C,r as w,s as T,t as E,v as D,w as O,x as k}from"./QueryClientProvider-BCOOhPXt.js";var A=class extends g{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||j(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=S({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),_.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function j(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var M=class extends m{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new A({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=N(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=N(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=N(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=N(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){_.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>x(t,e))}findAll(e={}){return this.getAll().filter(t=>x(e,t))}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return _.batch(()=>Promise.all(e.map(e=>e.continue().catch(h))))}};function N(e){return e.options.scope?.id}var P=class extends m{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??C(r,t),a=this.get(i);return a||(a=new w({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){_.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>b(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>b(e,t)):t}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},F=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new P,this.#t=e.mutationCache||new M,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=p.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=T.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(k(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=v(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return _.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;_.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return _.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=_.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(h).catch(h)}invalidateQueries(e,t={}){return _.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=_.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(h)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(h)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(k(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(h).catch(h)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(h).catch(h)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return T.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(y(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{D(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(y(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{D(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=C(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===O&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},I=d(),L=new F({defaultOptions:{queries:{retry:1,staleTime:5e3}}}),R=a();function z(e){let t=(0,I.c)(5),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,R.jsxs)(`head`,{children:[(0,R.jsx)(`meta`,{charSet:`UTF-8`}),(0,R.jsx)(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1.0`}),(0,R.jsx)(`title`,{children:`Coreframe Dashboard`}),null,(0,R.jsx)(c,{}),(0,R.jsx)(u,{})]}),t[0]=r):r=t[0];let i,a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,R.jsx)(o,{}),a=(0,R.jsx)(l,{}),t[1]=i,t[2]=a):(i=t[1],a=t[2]);let s;return t[3]===n?s=t[4]:(s=(0,R.jsxs)(`html`,{lang:`en`,children:[r,(0,R.jsxs)(`body`,{children:[n,i,a]})]}),t[3]=n,t[4]=s),s}var B=i(function(){let n=(0,I.c)(9),r=e(),i=t(r)&&r.status===404?`Page not found`:`Dashboard unavailable`,a=`The dashboard hit an unexpected error.`,o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,R.jsx)(`p`,{className:f.eyebrow,children:`Coreframe Dashboard`}),n[0]=o):o=n[0];let c;n[1]===i?c=n[2]:(c=(0,R.jsx)(`h1`,{children:i}),n[1]=i,n[2]=c);let l;n[3]===a?l=n[4]:(l=(0,R.jsx)(`p`,{className:f.message,children:a}),n[3]=a,n[4]=l);let u;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,R.jsx)(s,{className:f.button,to:`/`,children:`Go home`}),n[5]=u):u=n[5];let d;return n[6]!==c||n[7]!==l?(d=(0,R.jsxs)(`main`,{className:f.statePage,children:[o,c,l,u]}),n[6]=c,n[7]=l,n[8]=d):d=n[8],d}),V=r(function(){let e=(0,I.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,R.jsx)(E,{client:L,children:(0,R.jsx)(n,{})}),e[0]=t):t=e[0],t});export{B as ErrorBoundary,z as Layout,V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as e,K as t}from"./jsx-runtime-CuoEKysV.js";var n=t((t=>{var n=e().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.c=function(e){return n.H.useMemoCache(e)}})),r=t(((e,t)=>{t.exports=n()}));function i(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var a=Object.prototype.hasOwnProperty;function o(e){return e===`base`}function s(e){let t=[];for(let n=0;n<e.length;n++)o(e[n])||t.push(e[n]);return t}function c(e){let t=5381;for(let n=e.length;n;)t=t*33^e.charCodeAt(--n);let n=t>>>0,r=``;for(;n>52;n=n/52|0){let e=n%52;r=String.fromCharCode(e+(e>25?39:97))+r}let i=n%52;return String.fromCharCode(i+(i>25?39:97))+r}function l(e,t){let n=Object.create(null);for(let r=0;r<e.length;r++)e[r]!=null&&(n[t[r]]=e[r]);return n}function u(e,t,n){n||={};let{stop:r,getKey:i}=n,o=(e,n=[])=>{if(!e||typeof e!=`object`||r?.(e,n))return t(e,n);let s=Array.isArray(e)?[]:Object.create(null);for(let t in e){if(!a.call(e,t))continue;let r=i?.(t,e[t])??t;n.push(r);let c=o(e[t],n);n.pop(),c!=null&&(s[r]=c)}return s};return o(e)}function d(e,t,n){let{utility:r,conditions:i}=t,{hasShorthand:a,resolveShorthand:o}=r;return n=n!==!1,u(e,e=>Array.isArray(e)?l(e,i.breakpoints.keys):e,{stop:Array.isArray,getKey:n?e=>a?o(e):e:void 0})}function f(e){let t=new WeakMap;return n=>{if(!n||typeof n!=`object`)return e(n);if(t.has(n))return t.get(n);let r=e(n);return t.set(n,r),r}}function p(...e){let t=Object.create(null);for(let n of e)if(n)for(let e in n){if(!a.call(n,e)||e===`__proto__`||e===`constructor`||e===`prototype`)continue;let r=t[e],o=n[e];t[e]=i(r)&&i(o)?p(r,o):o}return t}function m(e){let{utility:t,hash:n,conditions:r}=e,a=e=>t.prefix?t.prefix+`-`+e:e,o=(e,i)=>{let o=r.finalize(e);return o.push(n?i:a(i)),n?a(t.toHash(o,c)):o.join(`:`)},l=f(function({base:n,...i}={}){let a=d(n?Object.assign(i,n):i,e),c=new Set;u(a,(e,n)=>{if(e==null)return;let i=b(e),[a,...l]=r.shift(n),u=s(l),d=t.transform(a,y(x(e))),f=o(u,d.className);i&&(f+=`!`),c.add(f)});let l=``;for(let e of c)l+=l?` `+e:e;return l}),m=t=>{let n=[],r=e=>{for(let t=0;t<e.length;t++){let a=e[t];if(Array.isArray(a)){r(a);continue}if(i(a)){for(let e in a)if(a[e]!==void 0){n.push(a);break}}}};if(r(t),n.length<2)return n;for(let t=0;t<n.length;t++)n[t]=d(n[t],e);return n};return{serializeCss:l,mergeCss:function(){return p(...m(arguments))},assignCss:function(){let e={},t=m(arguments);for(let n=0;n<t.length;n++)Object.assign(e,t[n]);return e}}}function h(e){return e.startsWith(`--`)?e:e.replace(/[A-Z]/g,`-$&`).replace(/^ms-/,`-ms-`).toLowerCase()}var g=[`htmlSize`,`htmlTranslate`,`htmlWidth`,`htmlHeight`];function _(e){return g.includes(e)?e.replace(`html`,``).toLowerCase():e}function v(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[_(e),t]))}v.keys=g;function y(e){return typeof e==`string`&&e.indexOf(` `)>=0?e.replaceAll(` `,`_`):e}function b(e){return typeof e==`string`?/\s*!(important)?/i.test(e):!1}function x(e){return typeof e==`string`?e.replace(/\s*!(important)?/i,``).trim():e}var S=new Set(`2xl,2xlDown,2xlOnly,@/2xl,@/2xlDown,@/2xlOnly,@/2xlTo3xl,@/2xlTo4xl,@/2xlTo5xl,@/2xlTo6xl,@/2xlTo7xl,@/2xlTo8xl,@/2xs,@/2xsDown,@/2xsOnly,@/2xsTo2xl,@/2xsTo3xl,@/2xsTo4xl,@/2xsTo5xl,@/2xsTo6xl,@/2xsTo7xl,@/2xsTo8xl,@/2xsToLg,@/2xsToMd,@/2xsToSm,@/2xsToXl,@/2xsToXs,@/3xl,@/3xlDown,@/3xlOnly,@/3xlTo4xl,@/3xlTo5xl,@/3xlTo6xl,@/3xlTo7xl,@/3xlTo8xl,@/3xs,@/3xsDown,@/3xsOnly,@/3xsTo2xl,@/3xsTo2xs,@/3xsTo3xl,@/3xsTo4xl,@/3xsTo5xl,@/3xsTo6xl,@/3xsTo7xl,@/3xsTo8xl,@/3xsToLg,@/3xsToMd,@/3xsToSm,@/3xsToXl,@/3xsToXs,@/4xl,@/4xlDown,@/4xlOnly,@/4xlTo5xl,@/4xlTo6xl,@/4xlTo7xl,@/4xlTo8xl,@/5xl,@/5xlDown,@/5xlOnly,@/5xlTo6xl,@/5xlTo7xl,@/5xlTo8xl,@/6xl,@/6xlDown,@/6xlOnly,@/6xlTo7xl,@/6xlTo8xl,@/7xl,@/7xlDown,@/7xlOnly,@/7xlTo8xl,@/8xl,@/8xlDown,@/8xlOnly,@/lg,@/lgDown,@/lgOnly,@/lgTo2xl,@/lgTo3xl,@/lgTo4xl,@/lgTo5xl,@/lgTo6xl,@/lgTo7xl,@/lgTo8xl,@/lgToXl,@/md,@/mdDown,@/mdOnly,@/mdTo2xl,@/mdTo3xl,@/mdTo4xl,@/mdTo5xl,@/mdTo6xl,@/mdTo7xl,@/mdTo8xl,@/mdToLg,@/mdToXl,@/sm,@/smDown,@/smOnly,@/smTo2xl,@/smTo3xl,@/smTo4xl,@/smTo5xl,@/smTo6xl,@/smTo7xl,@/smTo8xl,@/smToLg,@/smToMd,@/smToXl,@/xl,@/xlDown,@/xlOnly,@/xlTo2xl,@/xlTo3xl,@/xlTo4xl,@/xlTo5xl,@/xlTo6xl,@/xlTo7xl,@/xlTo8xl,@/xs,@/xsDown,@/xsOnly,@/xsTo2xl,@/xsTo3xl,@/xsTo4xl,@/xsTo5xl,@/xsTo6xl,@/xsTo7xl,@/xsTo8xl,@/xsToLg,@/xsToMd,@/xsToSm,@/xsToXl,_active,_after,_atValue,_autofill,_backdrop,_before,_checked,_closed,_complete,_current,_currentPage,_currentStep,_dark,_default,_disabled,_dragging,_empty,_enabled,_even,_expanded,_file,_first,_firstLetter,_firstLine,_firstOfType,_focus,_focusVisible,_focusWithin,_fullscreen,_grabbed,_groupActive,_groupChecked,_groupDisabled,_groupExpanded,_groupFocus,_groupFocusVisible,_groupFocusWithin,_groupHover,_groupInvalid,_hidden,_highContrast,_highlighted,_horizontal,_hover,_icon,_inRange,_incomplete,_indeterminate,_invalid,_invertedColors,_landscape,_last,_lastOfType,_lessContrast,_light,_loading,_ltr,_marker,_moreContrast,_motionReduce,_motionSafe,_noscript,_now,_odd,_only,_onlyOfType,_open,_optional,_osDark,_osLight,_outOfRange,_overValue,_peerActive,_peerChecked,_peerDisabled,_peerExpanded,_peerFocus,_peerFocusVisible,_peerFocusWithin,_peerHover,_peerInvalid,_peerPlaceholderShown,_placeholder,_placeholderShown,_portrait,_pressed,_print,_rangeEnd,_rangeStart,_readOnly,_readWrite,_required,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_selected,_selection,_starting,_target,_today,_topmost,_unavailable,_underValue,_valid,_vertical,_visited,base,lg,lgDown,lgOnly,lgTo2xl,lgToXl,md,mdDown,mdOnly,mdTo2xl,mdToLg,mdToXl,sm,smDown,smOnly,smTo2xl,smToLg,smToMd,smToXl,xl,xlDown,xlOnly,xlTo2xl`.split(`,`)),C=/^@|&/,w=/^_/,T=/&|@/,E=[`base`,`sm`,`md`,`lg`,`xl`,`2xl`];function D(e){return S.has(e)||C.test(e)}function O(e){return e.map(e=>S.has(e)?e.replace(w,``):T.test(e)?`[${y(e.trim())}]`:e)}function k(e){return[...e].sort((e,t)=>{let n=D(e),r=D(t);return n&&!r?1:!n&&r?-1:0})}var A=`WebkitTextFillColor:wktf-c,accentColor:ac-c,alignContent:ac,alignItems:ai,alignSelf:as,animation:anim,animationComposition:anim-comp,animationDelay:anim-dly,animationDirection:anim-dir,animationDuration:anim-dur,animationFillMode:anim-fm,animationIterationCount:anim-ic,animationName:anim-n,animationPlayState:anim-ps,animationRange:anim-r,animationRangeEnd:anim-re,animationRangeStart:anim-rs,animationState:anim-s,animationTimeline:anim-tl,animationTimingFunction:anim-tmf,appearance:ap,aspectRatio:asp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropFilter:bkdp,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,backfaceVisibility:bfv,background:bg/1,backgroundAttachment:bg-a/bgAttachment,backgroundBlendMode:bg-bm/bgBlendMode,backgroundClip:bg-cp/bgClip,backgroundColor:bg-c/bgColor,backgroundConic:bg-conic/bgConic,backgroundGradient:bg-grad/bgGradient,backgroundImage:bg-i/bgImage,backgroundLinear:bg-linear/bgLinear,backgroundOrigin:bg-o/bgOrigin,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundRadial:bg-radial/bgRadial,backgroundRepeat:bg-r/bgRepeat,backgroundSize:bg-s/bgSize,blockSize:h-bs,border:bd,borderBlock:bd-y/borderY,borderBlockColor:bd-y-c/borderYColor,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockEndWidth:bd-be-w,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,borderBlockStartWidth:bd-bs-w,borderBlockWidth:bd-y-w/borderYWidth,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderBottomRadius:bdr-b/roundedBottom,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomWidth:bd-b-w,borderCollapse:bd-cl,borderColor:bd-c,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,borderEndStartRadius:bdr-es/roundedEndStart,borderInline:bd-x/borderX,borderInlineColor:bd-x-c/borderXColor,borderInlineEnd:bd-e/borderEnd,borderInlineEndColor:bd-e-c/borderEndColor,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineStart:bd-s/borderStart,borderInlineStartColor:bd-s-c/borderStartColor,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineWidth:bd-x-w/borderXWidth,borderLeft:bd-l,borderLeftColor:bd-l-c,borderLeftRadius:bdr-l/roundedLeft,borderLeftWidth:bd-l-w,borderRadius:bdr/rounded,borderRight:bd-r,borderRightColor:bd-r-c,borderRightRadius:bdr-r/roundedRight,borderRightWidth:bd-r-w,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderStartStartRadius:bdr-ss/roundedStartStart,borderTop:bd-t,borderTopColor:bd-t-c,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRadius:bdr-t/roundedTop,borderTopRightRadius:bdr-tr/roundedTopRight,borderTopWidth:bd-t-w,borderWidth:bd-w,boxDecorationBreak:bx-db,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,boxSize:size,boxSizing:bx-s,caretColor:ca-c,clipPath:cp-path,color:c,columnGap:cg,container:cq,containerName:cq-n,containerType:cq-t,display:d,divideColor:dvd-c,divideStyle:dvd-s,divideX:dvd-x,divideY:dvd-y,flexBasis:flex-b,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingStyle:focus-ring-s,focusRingWidth:focus-ring-w,focusVisibleRing:focus-v-ring,fontFamily:ff,fontFeatureSettings:ff-s,fontKerning:fk,fontPalette:fp,fontSize:fs,fontSizeAdjust:fs-a,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariantNumeric:fv-num,fontVariationSettings:fv-s,fontWeight:fw,gradientFrom:grad-from,gradientFromPosition:grad-from-pos,gradientTo:grad-to,gradientToPosition:grad-to-pos,gradientVia:grad-via,gradientViaPosition:grad-via-pos,gridAutoColumns:grid-ac,gridAutoFlow:grid-af,gridAutoRows:grid-ar,gridColumn:grid-c,gridColumnEnd:grid-ce,gridColumnGap:grid-cg,gridColumnStart:grid-cs,gridGap:grid-g,gridRow:grid-r,gridRowGap:grid-rg,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,height:h/1,hideBelow:show,hideFrom:hide,hyphens:hy,inlineSize:w-is,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInline:inset-x/insetX,insetInlineEnd:inset-e/end/insetEnd,insetInlineStart:inset-s/insetStart/start,justifyContent:jc,letterSpacing:ls,lineClamp:lc,lineHeight:lh,listStyle:li-s,listStyleImage:li-img,listStylePosition:li-pos,listStyleType:li-t,margin:m/1,marginBlock:my/marginY/1,marginBlockEnd:mbe,marginBlockStart:mbs,marginBottom:mb/1,marginInline:mx/marginX/1,marginInlineEnd:me/marginEnd/1,marginInlineStart:ms/marginStart/1,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,mask:msk,maskImage:msk-i,maskSize:msk-s,maxBlockSize:max-b,maxHeight:max-h/maxH,maxInlineSize:max-w-is,maxWidth:max-w/maxW,minBlockSize:min-h-bs,minHeight:min-h/minH,minInlineSize:min-w-is,minWidth:min-w/minW,mixBlendMode:mix-bm,objectFit:obj-f,objectPosition:obj-p,opacity:op,outline:ring/1,outlineColor:ring-c/ringColor,outlineOffset:ring-o/ringOffset,outlineWidth:ring-w/ringWidth,overflow:ov,overflowAnchor:ov-a,overflowBlock:ov-b,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overflowInline:ov-i,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overscrollBehavior:ovs-b,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,padding:p/1,paddingBlock:py/paddingY/1,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingBottom:pb/1,paddingInline:px/paddingX/1,paddingInlineEnd:pe/paddingEnd/1,paddingInlineStart:ps/paddingStart/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,position:pos/1,rowGap:rg,scrollBehavior:scr-bhv,scrollMargin:scr-m,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginBottom:scr-mb,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockEnd:scr-pbe,scrollPaddingBlockStart:scr-pbs,scrollPaddingBottom:scr-pb,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollSnapAlign:scr-sa,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapMargin:scrs-m,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapMarginTop:scrs-mt,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapStop:scrs-s,scrollSnapStrictness:scrs-strt,scrollSnapType:scrs-t,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,spaceX:sx,spaceY:sy,srOnly:sr,stroke:stk,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,strokeWidth:stk-w,tableLayout:tbl,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textEmphasisColor:te-c,textGradient:txt-grad,textIndent:ti,textOverflow:tov,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textSizeAdjust:txt-adj,textStyle:textStyle,textTransform:tt,textUnderlineOffset:tu-o,textWrap:tw,touchAction:tch-a,transform:trf,transformBox:trf-b,transformOrigin:trf-o,transformStyle:trf-s,transition:trs,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transitionTimingFunction:trs-tmf,translateX:/x,translateY:/y,translateZ:/z,truncate:trunc,userSelect:us,verticalAlign:va,visibility:vis,width:w/1,wordBreak:wb,zIndex:z`,j=new Map,M=new Map;A.split(`,`).forEach(e=>{let[t,n]=e.split(`:`),[r,...i]=n.split(`/`);r&&j.set(t,r),i.forEach(e=>{let n=e===`1`?r:e;M.set(n,t)})});var N=e=>M.get(e)||e,{serializeCss:P,mergeCss:F,assignCss:I}=m({hash:!1,conditions:{shift:k,finalize:O,breakpoints:{keys:E}},utility:{prefix:null,hasShorthand:!0,toHash(e,t){return t(e.join(`:`))},transform(e,t){let n=N(e);return{className:`${j.get(n)||h(n)}_${y(t)}`}},resolveShorthand:N}}),L=Object.assign(function(...e){return e.length===1&&i(e[0])?P(e[0]):P(F(...e))},{raw:function(...e){return F(...e)}}),R={statePage:L({display:`flex`,width:`min(70rem, calc(100vw - 2.5rem))`,minHeight:`100svh`,flexDirection:`column`,alignItems:`flex-start`,justifyContent:`center`,margin:`0 auto`}),eyebrow:L({margin:`0 0 0.3125rem`,color:`gray.600`,fontSize:`0.6875rem`,fontWeight:`700`,letterSpacing:`0.08em`,textTransform:`uppercase`}),message:L({color:`gray.600`}),button:L({marginTop:`1rem`,borderRadius:`0.375rem`,background:`indigo.600`,color:`white`,padding:`0.5rem 0.75rem`,fontWeight:`600`,textDecoration:`none`})};export{L as n,r,R as t};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Coreframe Dashboard</title><link rel="modulepreload" href="/__dashboard/assets/manifest-da601958.js"/><link rel="modulepreload" href="/__dashboard/assets/entry.client-DhCu-K7v.js"/><link rel="modulepreload" href="/__dashboard/assets/jsx-runtime-CuoEKysV.js"/><link rel="modulepreload" href="/__dashboard/assets/errorBoundaries-Dn4hVn2U.js"/><link rel="modulepreload" href="/__dashboard/assets/root-CJkTVXq-.js"/><link rel="modulepreload" href="/__dashboard/assets/lib-DciQAlmZ.js"/><link rel="modulepreload" href="/__dashboard/assets/root.style-DmKiRSsP.js"/><link rel="modulepreload" href="/__dashboard/assets/QueryClientProvider-BCOOhPXt.js"/><link rel="stylesheet" href="/__dashboard/assets/root-C3UMhDeq.css"/></head><body><script>window.__reactRouterContext = {"basename":"/__dashboard/","future":{"unstable_enableNodeReadableStream":false,"unstable_optimizeDeps":false},"routeDiscovery":{"mode":"initial"},"ssr":false,"isSpaMode":true};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());</script><script type="module" async="">import "/__dashboard/assets/manifest-da601958.js";
|
|
2
|
+
import * as route0 from "/__dashboard/assets/root-CJkTVXq-.js";
|
|
3
|
+
|
|
4
|
+
window.__reactRouterRouteModules = {"root":route0};
|
|
5
|
+
|
|
6
|
+
import("/__dashboard/assets/entry.client-DhCu-K7v.js");</script><!--$--><script>window.__reactRouterContext.streamController.enqueue("[{\"_1\":2,\"_3\":-5,\"_4\":-5},\"loaderData\",{},\"actionData\",\"errors\"]\n");</script><!--$--><script>window.__reactRouterContext.streamController.close();</script><!--/$--><!--/$--></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{renderToReadableStream as e}from"react-dom/server";import{Link as t,Links as n,Meta as r,Outlet as i,Scripts as a,ScrollRestoration as o,ServerRouter as s,UNSAFE_withComponentProps as c,UNSAFE_withErrorBoundaryProps as l,isRouteErrorResponse as u,useRouteError as d}from"react-router";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{QueryClient as ee,QueryClientProvider as m}from"@tanstack/react-query";var h=Object.defineProperty,g=(e,t)=>{let n={};for(var r in e)h(n,r,{get:e[r],enumerable:!0});return t||h(n,Symbol.toStringTag,{value:`Module`}),n},_=g({default:()=>v});async function v(t,n,r,i,a){if(t.method.toUpperCase()===`HEAD`)return new Response(null,{headers:r,status:n});let o=await e(f(s,{context:i,url:t.url}));return r.set(`Content-Type`,`text/html`),new Response(o,{headers:r,status:n})}var y=new ee({defaultOptions:{queries:{retry:1,staleTime:5e3}}});function b(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var x=Object.prototype.hasOwnProperty;function S(e){return e===`base`}function C(e){let t=[];for(let n=0;n<e.length;n++)S(e[n])||t.push(e[n]);return t}function w(e){let t=5381;for(let n=e.length;n;)t=t*33^e.charCodeAt(--n);let n=t>>>0,r=``;for(;n>52;n=n/52|0){let e=n%52;r=String.fromCharCode(e+(e>25?39:97))+r}let i=n%52;return String.fromCharCode(i+(i>25?39:97))+r}function T(e,t){let n=Object.create(null);for(let r=0;r<e.length;r++)e[r]!=null&&(n[t[r]]=e[r]);return n}function E(e,t,n){n||={};let{stop:r,getKey:i}=n,a=(e,n=[])=>{if(!e||typeof e!=`object`||r?.(e,n))return t(e,n);let o=Array.isArray(e)?[]:Object.create(null);for(let t in e){if(!x.call(e,t))continue;let r=i?.(t,e[t])??t;n.push(r);let s=a(e[t],n);n.pop(),s!=null&&(o[r]=s)}return o};return a(e)}function D(e,t,n){let{utility:r,conditions:i}=t,{hasShorthand:a,resolveShorthand:o}=r;return n=n!==!1,E(e,e=>Array.isArray(e)?T(e,i.breakpoints.keys):e,{stop:Array.isArray,getKey:n?e=>a?o(e):e:void 0})}function O(e){let t=new WeakMap;return(n=>{if(!n||typeof n!=`object`)return e(n);if(t.has(n))return t.get(n);let r=e(n);return t.set(n,r),r})}function k(...e){let t=Object.create(null);for(let n of e)if(n)for(let e in n){if(!x.call(n,e)||e===`__proto__`||e===`constructor`||e===`prototype`)continue;let r=t[e],i=n[e];t[e]=b(r)&&b(i)?k(r,i):i}return t}function A(e){let{utility:t,hash:n,conditions:r}=e,i=e=>t.prefix?t.prefix+`-`+e:e,a=(e,a)=>{let o=r.finalize(e);return o.push(n?a:i(a)),n?i(t.toHash(o,w)):o.join(`:`)},o=O(function({base:n,...i}={}){let o=D(n?Object.assign(i,n):i,e),s=new Set;E(o,(e,n)=>{if(e==null)return;let i=F(e),[o,...c]=r.shift(n),l=C(c),u=t.transform(o,P(I(e))),d=a(l,u.className);i&&(d+=`!`),s.add(d)});let c=``;for(let e of s)c+=c?` `+e:e;return c}),s=t=>{let n=[],r=e=>{for(let t=0;t<e.length;t++){let i=e[t];if(Array.isArray(i)){r(i);continue}if(b(i)){for(let e in i)if(i[e]!==void 0){n.push(i);break}}}};if(r(t),n.length<2)return n;for(let t=0;t<n.length;t++)n[t]=D(n[t],e);return n};return{serializeCss:o,mergeCss:function(){return k(...s(arguments))},assignCss:function(){let e={},t=s(arguments);for(let n=0;n<t.length;n++)Object.assign(e,t[n]);return e}}}function te(e){return e.startsWith(`--`)?e:e.replace(/[A-Z]/g,`-$&`).replace(/^ms-/,`-ms-`).toLowerCase()}var j=[`htmlSize`,`htmlTranslate`,`htmlWidth`,`htmlHeight`];function M(e){return j.includes(e)?e.replace(`html`,``).toLowerCase():e}function N(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[M(e),t]))}N.keys=j;function P(e){return typeof e==`string`&&e.indexOf(` `)>=0?e.replaceAll(` `,`_`):e}function F(e){return typeof e==`string`?/\s*!(important)?/i.test(e):!1}function I(e){return typeof e==`string`?e.replace(/\s*!(important)?/i,``).trim():e}var L=new Set(`2xl,2xlDown,2xlOnly,@/2xl,@/2xlDown,@/2xlOnly,@/2xlTo3xl,@/2xlTo4xl,@/2xlTo5xl,@/2xlTo6xl,@/2xlTo7xl,@/2xlTo8xl,@/2xs,@/2xsDown,@/2xsOnly,@/2xsTo2xl,@/2xsTo3xl,@/2xsTo4xl,@/2xsTo5xl,@/2xsTo6xl,@/2xsTo7xl,@/2xsTo8xl,@/2xsToLg,@/2xsToMd,@/2xsToSm,@/2xsToXl,@/2xsToXs,@/3xl,@/3xlDown,@/3xlOnly,@/3xlTo4xl,@/3xlTo5xl,@/3xlTo6xl,@/3xlTo7xl,@/3xlTo8xl,@/3xs,@/3xsDown,@/3xsOnly,@/3xsTo2xl,@/3xsTo2xs,@/3xsTo3xl,@/3xsTo4xl,@/3xsTo5xl,@/3xsTo6xl,@/3xsTo7xl,@/3xsTo8xl,@/3xsToLg,@/3xsToMd,@/3xsToSm,@/3xsToXl,@/3xsToXs,@/4xl,@/4xlDown,@/4xlOnly,@/4xlTo5xl,@/4xlTo6xl,@/4xlTo7xl,@/4xlTo8xl,@/5xl,@/5xlDown,@/5xlOnly,@/5xlTo6xl,@/5xlTo7xl,@/5xlTo8xl,@/6xl,@/6xlDown,@/6xlOnly,@/6xlTo7xl,@/6xlTo8xl,@/7xl,@/7xlDown,@/7xlOnly,@/7xlTo8xl,@/8xl,@/8xlDown,@/8xlOnly,@/lg,@/lgDown,@/lgOnly,@/lgTo2xl,@/lgTo3xl,@/lgTo4xl,@/lgTo5xl,@/lgTo6xl,@/lgTo7xl,@/lgTo8xl,@/lgToXl,@/md,@/mdDown,@/mdOnly,@/mdTo2xl,@/mdTo3xl,@/mdTo4xl,@/mdTo5xl,@/mdTo6xl,@/mdTo7xl,@/mdTo8xl,@/mdToLg,@/mdToXl,@/sm,@/smDown,@/smOnly,@/smTo2xl,@/smTo3xl,@/smTo4xl,@/smTo5xl,@/smTo6xl,@/smTo7xl,@/smTo8xl,@/smToLg,@/smToMd,@/smToXl,@/xl,@/xlDown,@/xlOnly,@/xlTo2xl,@/xlTo3xl,@/xlTo4xl,@/xlTo5xl,@/xlTo6xl,@/xlTo7xl,@/xlTo8xl,@/xs,@/xsDown,@/xsOnly,@/xsTo2xl,@/xsTo3xl,@/xsTo4xl,@/xsTo5xl,@/xsTo6xl,@/xsTo7xl,@/xsTo8xl,@/xsToLg,@/xsToMd,@/xsToSm,@/xsToXl,_active,_after,_atValue,_autofill,_backdrop,_before,_checked,_closed,_complete,_current,_currentPage,_currentStep,_dark,_default,_disabled,_dragging,_empty,_enabled,_even,_expanded,_file,_first,_firstLetter,_firstLine,_firstOfType,_focus,_focusVisible,_focusWithin,_fullscreen,_grabbed,_groupActive,_groupChecked,_groupDisabled,_groupExpanded,_groupFocus,_groupFocusVisible,_groupFocusWithin,_groupHover,_groupInvalid,_hidden,_highContrast,_highlighted,_horizontal,_hover,_icon,_inRange,_incomplete,_indeterminate,_invalid,_invertedColors,_landscape,_last,_lastOfType,_lessContrast,_light,_loading,_ltr,_marker,_moreContrast,_motionReduce,_motionSafe,_noscript,_now,_odd,_only,_onlyOfType,_open,_optional,_osDark,_osLight,_outOfRange,_overValue,_peerActive,_peerChecked,_peerDisabled,_peerExpanded,_peerFocus,_peerFocusVisible,_peerFocusWithin,_peerHover,_peerInvalid,_peerPlaceholderShown,_placeholder,_placeholderShown,_portrait,_pressed,_print,_rangeEnd,_rangeStart,_readOnly,_readWrite,_required,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_selected,_selection,_starting,_target,_today,_topmost,_unavailable,_underValue,_valid,_vertical,_visited,base,lg,lgDown,lgOnly,lgTo2xl,lgToXl,md,mdDown,mdOnly,mdTo2xl,mdToLg,mdToXl,sm,smDown,smOnly,smTo2xl,smToLg,smToMd,smToXl,xl,xlDown,xlOnly,xlTo2xl`.split(`,`)),R=/^@|&/,z=/^_/,B=/&|@/,V=[`base`,`sm`,`md`,`lg`,`xl`,`2xl`];function H(e){return L.has(e)||R.test(e)}function U(e){return e.map(e=>L.has(e)?e.replace(z,``):B.test(e)?`[${P(e.trim())}]`:e)}function W(e){return[...e].sort((e,t)=>{let n=H(e),r=H(t);return n&&!r?1:!n&&r?-1:0})}var G=`WebkitTextFillColor:wktf-c,accentColor:ac-c,alignContent:ac,alignItems:ai,alignSelf:as,animation:anim,animationComposition:anim-comp,animationDelay:anim-dly,animationDirection:anim-dir,animationDuration:anim-dur,animationFillMode:anim-fm,animationIterationCount:anim-ic,animationName:anim-n,animationPlayState:anim-ps,animationRange:anim-r,animationRangeEnd:anim-re,animationRangeStart:anim-rs,animationState:anim-s,animationTimeline:anim-tl,animationTimingFunction:anim-tmf,appearance:ap,aspectRatio:asp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropFilter:bkdp,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,backfaceVisibility:bfv,background:bg/1,backgroundAttachment:bg-a/bgAttachment,backgroundBlendMode:bg-bm/bgBlendMode,backgroundClip:bg-cp/bgClip,backgroundColor:bg-c/bgColor,backgroundConic:bg-conic/bgConic,backgroundGradient:bg-grad/bgGradient,backgroundImage:bg-i/bgImage,backgroundLinear:bg-linear/bgLinear,backgroundOrigin:bg-o/bgOrigin,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundRadial:bg-radial/bgRadial,backgroundRepeat:bg-r/bgRepeat,backgroundSize:bg-s/bgSize,blockSize:h-bs,border:bd,borderBlock:bd-y/borderY,borderBlockColor:bd-y-c/borderYColor,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockEndWidth:bd-be-w,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,borderBlockStartWidth:bd-bs-w,borderBlockWidth:bd-y-w/borderYWidth,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderBottomRadius:bdr-b/roundedBottom,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomWidth:bd-b-w,borderCollapse:bd-cl,borderColor:bd-c,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,borderEndStartRadius:bdr-es/roundedEndStart,borderInline:bd-x/borderX,borderInlineColor:bd-x-c/borderXColor,borderInlineEnd:bd-e/borderEnd,borderInlineEndColor:bd-e-c/borderEndColor,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineStart:bd-s/borderStart,borderInlineStartColor:bd-s-c/borderStartColor,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineWidth:bd-x-w/borderXWidth,borderLeft:bd-l,borderLeftColor:bd-l-c,borderLeftRadius:bdr-l/roundedLeft,borderLeftWidth:bd-l-w,borderRadius:bdr/rounded,borderRight:bd-r,borderRightColor:bd-r-c,borderRightRadius:bdr-r/roundedRight,borderRightWidth:bd-r-w,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderStartStartRadius:bdr-ss/roundedStartStart,borderTop:bd-t,borderTopColor:bd-t-c,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRadius:bdr-t/roundedTop,borderTopRightRadius:bdr-tr/roundedTopRight,borderTopWidth:bd-t-w,borderWidth:bd-w,boxDecorationBreak:bx-db,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,boxSize:size,boxSizing:bx-s,caretColor:ca-c,clipPath:cp-path,color:c,columnGap:cg,container:cq,containerName:cq-n,containerType:cq-t,display:d,divideColor:dvd-c,divideStyle:dvd-s,divideX:dvd-x,divideY:dvd-y,flexBasis:flex-b,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingStyle:focus-ring-s,focusRingWidth:focus-ring-w,focusVisibleRing:focus-v-ring,fontFamily:ff,fontFeatureSettings:ff-s,fontKerning:fk,fontPalette:fp,fontSize:fs,fontSizeAdjust:fs-a,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariantNumeric:fv-num,fontVariationSettings:fv-s,fontWeight:fw,gradientFrom:grad-from,gradientFromPosition:grad-from-pos,gradientTo:grad-to,gradientToPosition:grad-to-pos,gradientVia:grad-via,gradientViaPosition:grad-via-pos,gridAutoColumns:grid-ac,gridAutoFlow:grid-af,gridAutoRows:grid-ar,gridColumn:grid-c,gridColumnEnd:grid-ce,gridColumnGap:grid-cg,gridColumnStart:grid-cs,gridGap:grid-g,gridRow:grid-r,gridRowGap:grid-rg,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,height:h/1,hideBelow:show,hideFrom:hide,hyphens:hy,inlineSize:w-is,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInline:inset-x/insetX,insetInlineEnd:inset-e/end/insetEnd,insetInlineStart:inset-s/insetStart/start,justifyContent:jc,letterSpacing:ls,lineClamp:lc,lineHeight:lh,listStyle:li-s,listStyleImage:li-img,listStylePosition:li-pos,listStyleType:li-t,margin:m/1,marginBlock:my/marginY/1,marginBlockEnd:mbe,marginBlockStart:mbs,marginBottom:mb/1,marginInline:mx/marginX/1,marginInlineEnd:me/marginEnd/1,marginInlineStart:ms/marginStart/1,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,mask:msk,maskImage:msk-i,maskSize:msk-s,maxBlockSize:max-b,maxHeight:max-h/maxH,maxInlineSize:max-w-is,maxWidth:max-w/maxW,minBlockSize:min-h-bs,minHeight:min-h/minH,minInlineSize:min-w-is,minWidth:min-w/minW,mixBlendMode:mix-bm,objectFit:obj-f,objectPosition:obj-p,opacity:op,outline:ring/1,outlineColor:ring-c/ringColor,outlineOffset:ring-o/ringOffset,outlineWidth:ring-w/ringWidth,overflow:ov,overflowAnchor:ov-a,overflowBlock:ov-b,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overflowInline:ov-i,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overscrollBehavior:ovs-b,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,padding:p/1,paddingBlock:py/paddingY/1,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingBottom:pb/1,paddingInline:px/paddingX/1,paddingInlineEnd:pe/paddingEnd/1,paddingInlineStart:ps/paddingStart/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,position:pos/1,rowGap:rg,scrollBehavior:scr-bhv,scrollMargin:scr-m,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginBottom:scr-mb,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockEnd:scr-pbe,scrollPaddingBlockStart:scr-pbs,scrollPaddingBottom:scr-pb,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollSnapAlign:scr-sa,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapMargin:scrs-m,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapMarginTop:scrs-mt,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapStop:scrs-s,scrollSnapStrictness:scrs-strt,scrollSnapType:scrs-t,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,spaceX:sx,spaceY:sy,srOnly:sr,stroke:stk,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,strokeWidth:stk-w,tableLayout:tbl,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textEmphasisColor:te-c,textGradient:txt-grad,textIndent:ti,textOverflow:tov,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textSizeAdjust:txt-adj,textStyle:textStyle,textTransform:tt,textUnderlineOffset:tu-o,textWrap:tw,touchAction:tch-a,transform:trf,transformBox:trf-b,transformOrigin:trf-o,transformStyle:trf-s,transition:trs,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transitionTimingFunction:trs-tmf,translateX:/x,translateY:/y,translateZ:/z,truncate:trunc,userSelect:us,verticalAlign:va,visibility:vis,width:w/1,wordBreak:wb,zIndex:z`,K=new Map,q=new Map;G.split(`,`).forEach(e=>{let[t,n]=e.split(`:`),[r,...i]=n.split(`/`);r&&K.set(t,r),i.forEach(e=>{let n=e===`1`?r:e;q.set(n,t)})});var J=e=>q.get(e)||e,{serializeCss:Y,mergeCss:X,assignCss:ne}=A({hash:!1,conditions:{shift:W,finalize:U,breakpoints:{keys:V}},utility:{prefix:null,hasShorthand:!0,toHash(e,t){return t(e.join(`:`))},transform(e,t){let n=J(e);return{className:`${K.get(n)||te(n)}_${P(t)}`}},resolveShorthand:J}}),Z=Object.assign(function(...e){return e.length===1&&b(e[0])?Y(e[0]):Y(X(...e))},{raw:function(...e){return X(...e)}}),Q={statePage:Z({display:`flex`,width:`min(70rem, calc(100vw - 2.5rem))`,minHeight:`100svh`,flexDirection:`column`,alignItems:`flex-start`,justifyContent:`center`,margin:`0 auto`}),eyebrow:Z({margin:`0 0 0.3125rem`,color:`gray.600`,fontSize:`0.6875rem`,fontWeight:`700`,letterSpacing:`0.08em`,textTransform:`uppercase`}),message:Z({color:`gray.600`}),button:Z({marginTop:`1rem`,borderRadius:`0.375rem`,background:`indigo.600`,color:`white`,padding:`0.5rem 0.75rem`,fontWeight:`600`,textDecoration:`none`})},re=g({ErrorBoundary:()=>ae,Layout:()=>ie,default:()=>oe});function ie({children:e}){return p(`html`,{lang:`en`,children:[p(`head`,{children:[f(`meta`,{charSet:`UTF-8`}),f(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1.0`}),f(`title`,{children:`Coreframe Dashboard`}),null,f(r,{}),f(n,{})]}),p(`body`,{children:[e,f(o,{}),f(a,{})]})]})}var ae=l(function(){let e=d(),n=u(e)&&e.status===404?`Page not found`:`Dashboard unavailable`;return p(`main`,{className:Q.statePage,children:[f(`p`,{className:Q.eyebrow,children:`Coreframe Dashboard`}),f(`h1`,{children:n}),f(`p`,{className:Q.message,children:`The dashboard hit an unexpected error.`}),f(t,{className:Q.button,to:`/`,children:`Go home`})]})}),oe=c(function(){return f(m,{client:y,children:f(i,{})})}),se={entry:{module:`/__dashboard/assets/entry.client-DhCu-K7v.js`,imports:[`/__dashboard/assets/jsx-runtime-CuoEKysV.js`,`/__dashboard/assets/errorBoundaries-Dn4hVn2U.js`],css:[]},routes:{root:{id:`root`,parentId:void 0,path:``,index:void 0,caseSensitive:void 0,hasAction:!1,hasLoader:!1,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasDefaultExport:!0,hasErrorBoundary:!0,module:`/__dashboard/assets/root-CJkTVXq-.js`,imports:[`/__dashboard/assets/jsx-runtime-CuoEKysV.js`,`/__dashboard/assets/errorBoundaries-Dn4hVn2U.js`,`/__dashboard/assets/lib-DciQAlmZ.js`,`/__dashboard/assets/root.style-DmKiRSsP.js`,`/__dashboard/assets/QueryClientProvider-BCOOhPXt.js`],css:[`/__dashboard/assets/root-C3UMhDeq.css`],clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0},"routes/dashboard":{id:`routes/dashboard`,parentId:`root`,path:void 0,index:!0,caseSensitive:void 0,hasAction:!1,hasLoader:!1,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasDefaultExport:!0,hasErrorBoundary:!1,module:`/__dashboard/assets/dashboard-0D3-ZE5r.js`,imports:[`/__dashboard/assets/jsx-runtime-CuoEKysV.js`,`/__dashboard/assets/root.style-DmKiRSsP.js`,`/__dashboard/assets/QueryClientProvider-BCOOhPXt.js`],css:[],clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0},"routes/not-found":{id:`routes/not-found`,parentId:`root`,path:`*`,index:void 0,caseSensitive:void 0,hasAction:!1,hasLoader:!1,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasDefaultExport:!0,hasErrorBoundary:!1,module:`/__dashboard/assets/not-found-WOdQxFoc.js`,imports:[`/__dashboard/assets/jsx-runtime-CuoEKysV.js`,`/__dashboard/assets/lib-DciQAlmZ.js`,`/__dashboard/assets/root.style-DmKiRSsP.js`,`/__dashboard/assets/errorBoundaries-Dn4hVn2U.js`],css:[],clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0}},url:`/__dashboard/assets/manifest-da601958.js`,version:`da601958`,sri:void 0},ce={default:()=>null},le={default:()=>null},ue=`dist/client`,de=`/__dashboard/`,fe={unstable_enableNodeReadableStream:!1,unstable_optimizeDeps:!1},pe=!1,$=!0,me=[],he={mode:`initial`},ge=`/__dashboard/`,_e={module:_},ve={root:{id:`root`,parentId:void 0,path:``,index:void 0,caseSensitive:void 0,module:re},"routes/dashboard":{id:`routes/dashboard`,parentId:`root`,path:void 0,index:!0,caseSensitive:void 0,module:ce},"routes/not-found":{id:`routes/not-found`,parentId:`root`,path:`*`,index:void 0,caseSensitive:void 0,module:le}},ye=!1;export{ye as allowedActionOrigins,se as assets,ue as assetsBuildDirectory,de as basename,_e as entry,fe as future,$ as isSpaMode,me as prerender,ge as publicPath,he as routeDiscovery,ve as routes,pe as ssr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DevelopmentRequestError as e}from"../development.js";import{apiRoutes as t}from"./routes/index.js";import{createRouter as n}from"rouzer";import{runDiagnostics as r}from"@coreframe/diagnostics";import{inspectWorkerEnvironment as i}from"@coreframe/scripts/worker-environment";function a(e){return n({basePath:`__dashboard/api/`}).use(t,{health(){return{ok:!0}},async dashboard(){let[t,n,a]=await Promise.all([r({projectRoot:e.projectRoot,environment:`development`,env:e.env}),e.developmentManager.getState(),i({cwd:e.projectRoot})]);return{mode:`local`,development:n,diagnostics:t,mutationToken:e.mutationToken,workerEnvironment:a}},development:{status(){return e.developmentManager.getState()},async start(t){try{o(t.request,e.mutationToken);let n=await e.developmentManager.start(t.body.platform);return Response.json(n,{status:202})}catch(e){return s(e)}},async stop(t){try{return o(t.request,e.mutationToken),await e.developmentManager.stop()}catch(e){return s(e)}}}})}function o(t,n){if(!t.headers.get(`content-type`)?.startsWith(`application/json`))throw new e(`Development controls require an application/json request.`,415);if(t.headers.get(`x-coreframe-dashboard-token`)!==n)throw new e(`Development control request was not authorized.`,403);let r=t.headers.get(`origin`),i=t.headers.get(`host`);if(r)try{if(!i||new URL(r).host!==i)throw new e(`Development control origin was not authorized.`,403)}catch(t){throw t instanceof e?t:new e(`Development control origin was not authorized.`,403)}}function s(t){if(!(t instanceof e))throw t;return Response.json({error:t.message},{status:t.status})}export{a as createDashboardApiRouter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$type as e}from"rouzer";import*as t from"rouzer/http";const n={dashboard:t.get(`dashboard`,{response:e()})};export{n as dashboardRoutes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$type as e}from"rouzer";import*as t from"rouzer/http";import{z as n}from"zod";const r=n.enum([`web`,`desktop`,`ios`,`android`]),i=n.object({platform:r}),a=n.object({}),o={development:t.resource(`development`,{status:t.get({response:e()}),start:t.post(`start`,{body:i,response:e()}),stop:t.post(`stop`,{body:a,response:e()})})};export{r as DevelopmentPlatform,i as StartDevelopmentRequest,a as StopDevelopmentRequest,o as developmentRoutes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$type as e}from"rouzer";import*as t from"rouzer/http";import{z as n}from"zod";n.object({ok:n.literal(!0)});const r={health:t.get(`health`,{response:e()})};export{r as healthRoutes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dashboardRoutes as e}from"./dashboard.js";import{DevelopmentPlatform as t,StartDevelopmentRequest as n,StopDevelopmentRequest as r,developmentRoutes as i}from"./development.js";import{healthRoutes as a}from"./health.js";const o={...a,...e,...i};export{t as DevelopmentPlatform,n as StartDevelopmentRequest,r as StopDevelopmentRequest,o as apiRoutes,e as dashboardRoutes,i as developmentRoutes,a as healthRoutes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/src/cli.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{spawn as e}from"node:child_process";import{access as t}from"node:fs/promises";import{dirname as n,join as r}from"node:path";import{fileURLToPath as i}from"node:url";const a=`https://coreframe.localhost/__dashboard`;async function o(){let t=process.argv.slice(2);if(t.includes(`--help`)||t.includes(`-h`)){s();return}let o=r(n(i(import.meta.url)),`server.js`),l=e(await c(),[`coreframe`,process.execPath,o],{stdio:`inherit`,shell:process.platform===`win32`,env:{...process.env,COREFRAME_DASHBOARD_PROJECT_ROOT:process.cwd(),COREFRAME_DASHBOARD_URL:a}});l.on(`exit`,(e,t)=>{if(t){process.kill(process.pid,t);return}process.exit(e??0)}),l.on(`error`,e=>{console.error(e.message),process.exit(1)})}function s(){console.log(`Coreframe Dashboard
|
|
3
|
+
|
|
4
|
+
Usage:
|
|
5
|
+
coreframe-dashboard
|
|
6
|
+
|
|
7
|
+
Starts the local dashboard at ${a}.
|
|
8
|
+
`)}async function c(){let e=r(r(n(i(import.meta.url)),`..`,`..`),`node_modules`,`.bin`,process.platform===`win32`?`portless.cmd`:`portless`);return await t(e),e}o().catch(e=>{console.error(e instanceof Error?e.message:String(e)),process.exit(1)});export{};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DevelopmentState } from "./types.js";
|
|
2
|
+
import { readProjectConfig } from "@coreframe/scripts/config";
|
|
3
|
+
|
|
4
|
+
//#region src/development.d.ts
|
|
5
|
+
type DevelopmentManager = {
|
|
6
|
+
dispose(): Promise<void>;
|
|
7
|
+
getState(): Promise<DevelopmentState>;
|
|
8
|
+
start(platform: unknown): Promise<DevelopmentState>;
|
|
9
|
+
stop(): Promise<DevelopmentState>;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { DevelopmentManager };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{spawn as e}from"node:child_process";import{access as t}from"node:fs/promises";import{join as n}from"node:path";import{createServer as r}from"node:net";import{readProjectConfig as i}from"@coreframe/scripts/config";import{resolveDevPlatforms as a}from"@coreframe/scripts/dev";var o=class extends Error{status;constructor(e,t){super(e),this.status=t}};const s={web:`Web`,desktop:`Desktop`,ios:`iOS`,android:`Android`},c=process.platform===`win32`?`pnpm.cmd`:`pnpm`,l=RegExp(`\x1B\\][^\\x07]*(?:\\x07|\x1B\\\\)`,`g`),u=RegExp(`\x1B\\[[0-?]*[ -/]*[@-~]`,`g`);function d({env:e=process.env,getAvailablePort:t=_,hostPlatform:r=process.platform,killProcess:l=b,probeWebUrl:u=v,projectRoot:d,readConfig:S=i,spawnProcess:C=m}){let w,T=0,E=[],D=1,O;async function k(){let e=a(await S({cwd:d})),t=await x(n(d,`tauri/src-tauri/tauri.conf.json`));return e.map(e=>{let n=f(e,{hasTauri:t,hostPlatform:r});return{platform:e,label:s[e],available:n===void 0,...n?{unavailableReason:n}:{}}})}async function A(){let e=await k();return O&&!e.some(e=>e.platform===O?.platform)&&e.push({platform:O.platform,label:s[O.platform],available:!0}),{targets:e,logs:[...E],...O?{session:O}:{}}}async function j(n){if(p(O))throw new o(`${s[O.platform]} development is already ${O.status}. Stop it before starting another target.`,409);let r=await k(),i=r.find(e=>e.platform===n);if(!i)throw new o(`Select a configured development target.`,400);if(!i.available)throw new o(i.unavailableReason??`${i.label} development is unavailable.`,400);let a=i.platform===`web`?await t():void 0,l=a===void 0?void 0:`http://localhost:${a}`;E=[],T=0,D=1,O={platform:i.platform,status:`starting`,startedAt:new Date().toISOString(),...l?{url:l}:{}};try{let t=C({args:i.platform===`web`?[`dev`]:[`dev`,i.platform],command:c,cwd:d,env:{...e,FORCE_COLOR:`0`,...a===void 0?{}:{COREFRAME_WEB_PORT:String(a)}}});w=t,h(t,P),t.once(`spawn`,()=>{w===t&&O?.status===`starting`&&(O={...O,status:`running`},l&&F(t,l))}),t.once(`error`,()=>{w===t&&(w=void 0,O={...O,status:`failed`,message:`The development process could not be started.`})}),t.once(`exit`,e=>{if(w!==t)return;w=void 0;let n=O?.status===`stopping`;O={...O,status:n||e===0?`stopped`:`failed`,...typeof e==`number`?{exitCode:e}:{},...!n&&e!==0?{message:`The development process exited before it was stopped.`}:{}}})}catch{let e=`The development process could not be started.`;throw w=void 0,O={...O,status:`failed`,message:e},new o(e,500)}return{targets:r,logs:[...E],session:O}}async function M(){if(!w||!p(O))throw new o(`No dashboard-owned development process is running.`,409);O={...O,status:`stopping`};try{await l(w)}catch{let e=`The development process could not be stopped.`;throw O={...O,status:`failed`,message:e},new o(e,500)}return A()}async function N(){if(w&&p(O))try{O={...O,status:`stopping`},await l(w)}catch{}}function P(e,t){let n=g(String(t)).slice(-16e3);if(n)for(E.push({sequence:D++,stream:e,text:n}),T+=n.length;T>2e5&&E.length>1;)T-=E.shift()?.text.length??0}async function F(e,t){for(;w===e&&p(O)&&!O.readyAt;){if(await u(t)){w===e&&p(O)&&(O={...O,readyAt:new Date().toISOString()});return}await y(250)}}return{dispose:N,getState:A,start:j,stop:M}}function f(e,t){if(e!==`web`){if(!t.hasTauri)return`Tauri is not configured for this project.`;if(e===`ios`&&t.hostPlatform!==`darwin`)return`iOS development requires macOS.`}}function p(e){return[`running`,`starting`,`stopping`].includes(e?.status??``)}function m(t){return e(t.command,t.args,{cwd:t.cwd,detached:process.platform!==`win32`,env:t.env,shell:!1,stdio:[`ignore`,`pipe`,`pipe`]})}function h(e,t){e.stdout?.on(`data`,e=>t(`stdout`,e)),e.stderr?.on(`data`,e=>t(`stderr`,e))}function g(e){return e.replace(l,``).replace(u,``)}async function _(){let e=r();try{await new Promise((t,n)=>{e.once(`error`,n),e.listen(0,`127.0.0.1`,t)});let t=e.address();if(!t||typeof t==`string`)throw Error(`Could not allocate a web development port.`);return t.port}finally{e.listening&&await new Promise((t,n)=>{e.close(e=>e?n(e):t())})}}async function v(e){try{return await fetch(e,{method:`HEAD`,signal:AbortSignal.timeout(750)}),!0}catch{return!1}}function y(e){return new Promise(t=>setTimeout(t,e))}async function b(t){if(!t.pid){t.kill(`SIGTERM`);return}if(process.platform===`win32`){await new Promise((n,r)=>{let i=e(`taskkill`,[`/pid`,String(t.pid),`/t`,`/f`],{shell:!1,stdio:`ignore`});i.once(`error`,r),i.once(`exit`,e=>{e===0?n():r(Error(`taskkill exited with code ${String(e)}`))})});return}try{process.kill(-t.pid,`SIGTERM`)}catch(e){if(!S(e)||e.code!==`ESRCH`)throw e}}async function x(e){try{return await t(e),!0}catch(e){if(S(e)&&e.code===`ENOENT`)return!1;throw e}}function S(e){return e instanceof Error&&`code`in e}export{o as DevelopmentRequestError,d as createDevelopmentManager};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DashboardPayload, DeployedDashboardPayload, DevelopmentSession, DevelopmentSessionStatus, DevelopmentState, DevelopmentTarget } from "./types.js";
|
|
2
|
+
import { DashboardRequestHandler, DashboardServerOptions, StartedDashboardServer, createDashboardRequestHandler, createDashboardServer, resolveDashboardClientDist, startDashboardServer } from "./server.js";
|
|
3
|
+
export { type DashboardPayload, type DashboardRequestHandler, type DashboardServerOptions, type DeployedDashboardPayload, type DevelopmentSession, type DevelopmentSessionStatus, type DevelopmentState, type DevelopmentTarget, type StartedDashboardServer, createDashboardRequestHandler, createDashboardServer, resolveDashboardClientDist, startDashboardServer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createDashboardRequestHandler as e,createDashboardServer as t,resolveDashboardClientDist as n,startDashboardServer as r}from"./server.js";export{e as createDashboardRequestHandler,t as createDashboardServer,n as resolveDashboardClientDist,r as startDashboardServer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DevelopmentRequestError as e}from"./development.js";async function t(e,t,r){let i=await r(await n(e)),a={};i.headers.forEach((e,t)=>{a[t]=e}),t.writeHead(i.status,a),t.end(Buffer.from(await i.arrayBuffer()))}async function n(e){let t=e.method??`GET`,n=new Headers;for(let[t,r]of Object.entries(e.headers))Array.isArray(r)?r.forEach(e=>n.append(t,e)):r!==void 0&&n.set(t,r);return new Request(r(e),{method:t,headers:n,body:t===`GET`||t===`HEAD`?void 0:await i(e)})}function r(e){let t=e.headers[`x-forwarded-proto`]===`https`?`https`:`http`;return new URL(e.url??`/`,`${t}://${e.headers.host??`localhost`}`)}async function i(t){let n=[],r=0;for await(let i of t){let t=Buffer.isBuffer(i)?i:Buffer.from(i);if(r+=t.length,r>8192)throw new e(`Development control request is too large.`,413);n.push(t)}return Buffer.concat(n).toString(`utf8`)}export{t as handleFetchRequest};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DevelopmentManager } from "./development.js";
|
|
2
|
+
import { IncomingMessage, Server, ServerResponse } from "node:http";
|
|
3
|
+
|
|
4
|
+
//#region src/server.d.ts
|
|
5
|
+
type DashboardServerOptions = {
|
|
6
|
+
clientDist?: string;
|
|
7
|
+
developmentManager?: DevelopmentManager;
|
|
8
|
+
mutationToken?: string;
|
|
9
|
+
projectRoot: string;
|
|
10
|
+
};
|
|
11
|
+
type StartedDashboardServer = {
|
|
12
|
+
server: Server;
|
|
13
|
+
url: string;
|
|
14
|
+
};
|
|
15
|
+
type DashboardRequestHandler = {
|
|
16
|
+
dispose(): Promise<void>;
|
|
17
|
+
handle(request: IncomingMessage, response: ServerResponse): Promise<void>;
|
|
18
|
+
};
|
|
19
|
+
declare function createDashboardServer(options: DashboardServerOptions): Server;
|
|
20
|
+
declare function createDashboardRequestHandler(options: DashboardServerOptions): DashboardRequestHandler;
|
|
21
|
+
declare function startDashboardServer(options: DashboardServerOptions): Promise<StartedDashboardServer>;
|
|
22
|
+
declare function resolveDashboardClientDist(): string;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { DashboardRequestHandler, DashboardServerOptions, StartedDashboardServer, createDashboardRequestHandler, createDashboardServer, resolveDashboardClientDist, startDashboardServer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DevelopmentRequestError as e,createDevelopmentManager as t}from"./development.js";import{createDashboardApiRouter as n}from"./api/router.js";import{handleFetchRequest as r}from"./node-fetch-adapter.js";import{readFile as i,stat as a}from"node:fs/promises";import{dirname as o,extname as s,join as c,relative as l,resolve as u,sep as d}from"node:path";import{fileURLToPath as f,pathToFileURL as p}from"node:url";import{randomBytes as m}from"node:crypto";import{createServer as h}from"node:http";import{toFetchHandler as g}from"rouzer";function _(e){let t=v(e),n=h(async(e,n)=>{await t.handle(e,n)});return n.on(`close`,()=>{t.dispose()}),n}function v(r){let i=r.developmentManager??t({projectRoot:r.projectRoot}),a=r.mutationToken??m(32).toString(`base64url`),o=g(n({developmentManager:i,env:process.env,mutationToken:a,projectRoot:r.projectRoot}));return{dispose:()=>i.dispose(),async handle(t,n){try{await b(t,n,r,o)}catch(t){w(n,t instanceof e?t.status:500,{error:t instanceof Error?t.message:String(t)})}}}}async function y(e){let t=S(),n=_(e);return await new Promise((e,r)=>{n.once(`error`,r),n.listen(t,`127.0.0.1`,()=>{n.off(`error`,r),e()})}),{server:n,url:process.env.PORTLESS_URL??`http://127.0.0.1:${t}`}}async function b(e,t,n,i){x(e);let a=new URL(e.url??`/`,`http://127.0.0.1`);if(a.pathname===`/`){t.writeHead(302,{location:`/__dashboard`}),t.end();return}if(a.pathname.startsWith(`/__dashboard/api/`)){await r(e,t,i);return}if(a.pathname===`/__dashboard`){t.writeHead(302,{location:`/__dashboard/`}),t.end();return}if(a.pathname.startsWith(`/__dashboard/`)&&(e.method===`GET`||e.method===`HEAD`)){await C(t,a.pathname.slice(12)||`/`,n.clientDist);return}w(t,405,{error:`Method not allowed`})}function x(t){let n=t.headers.host;if(!n)throw new e(`Dashboard request host is missing.`,403);let r;try{r=new URL(`http://${n}`).hostname}catch{throw new e(`Dashboard request host was not authorized.`,403)}if(r!==`127.0.0.1`&&r!==`::1`&&r!==`localhost`&&!r.endsWith(`.localhost`))throw new e(`Dashboard request host was not authorized.`,403)}function S(){let e=Number(process.env.PORT);if(!Number.isInteger(e)||e<=0)throw Error(`PORT must be set by portless`);return e}async function C(e,t,n=D()){let r=T(n,t),i=r?await E(r):void 0,a=r===void 0||s(t)===``,o=c(n,`index.html`),l=a?await E(o):void 0,u=i&&r?r:o,d=i??l;if(!d){w(e,404,{error:`Client asset not found`});return}e.writeHead(200,{"content-type":O(u),"cache-control":u.endsWith(`index.html`)?`no-store`:`public, max-age=31536000, immutable`}),e.end(e.req.method===`HEAD`?void 0:d)}function w(e,t,n){e.writeHead(t,{"content-type":`application/json; charset=utf-8`,"cache-control":`no-store`}),e.end(JSON.stringify(n))}function T(e,t){let n=decodeURIComponent(t),r=u(e,n===`/`?`index.html`:n.slice(1)),i=l(e,r);if(!(i.startsWith(`..`)||i===``||i.startsWith(d)))return r}async function E(e){try{return(await a(e)).isFile()?await i(e):void 0}catch(e){if(k(e)&&e.code===`ENOENT`)return;throw e}}function D(){let e=o(f(import.meta.url));return c(e.endsWith(`${d}dist${d}src`)?u(e,`../..`):e.endsWith(`${d}src`)?u(e,`..`):u(e,`../..`),`dist`,`client`)}function O(e){switch(s(e)){case`.css`:return`text/css; charset=utf-8`;case`.html`:return`text/html; charset=utf-8`;case`.js`:return`text/javascript; charset=utf-8`;case`.json`:return`application/json; charset=utf-8`;case`.svg`:return`image/svg+xml`;default:return`application/octet-stream`}}function k(e){return e instanceof Error&&`code`in e}process.argv[1]&&import.meta.url===p(process.argv[1]).href&&y({projectRoot:process.env.COREFRAME_DASHBOARD_PROJECT_ROOT??process.cwd()}).then(e=>{console.log(`Coreframe dashboard listening at ${e.url}`);let t=()=>e.server.close();process.once(`SIGINT`,t),process.once(`SIGTERM`,t)}).catch(e=>{console.error(e instanceof Error?e.message:String(e)),process.exit(1)});export{v as createDashboardRequestHandler,_ as createDashboardServer,D as resolveDashboardClientDist,y as startDashboardServer};
|