@tanstack/react-router 0.0.1-beta.28 → 0.0.1-beta.280
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/LICENSE +21 -0
- package/build/cjs/CatchBoundary.js +128 -0
- package/build/cjs/CatchBoundary.js.map +1 -0
- package/build/cjs/Matches.js +233 -0
- package/build/cjs/Matches.js.map +1 -0
- package/build/cjs/RouterProvider.js +170 -0
- package/build/cjs/RouterProvider.js.map +1 -0
- package/build/cjs/_virtual/_rollupPluginBabelHelpers.js +2 -22
- package/build/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/build/cjs/awaited.js +43 -0
- package/build/cjs/awaited.js.map +1 -0
- package/build/cjs/defer.js +37 -0
- package/build/cjs/defer.js.map +1 -0
- package/build/cjs/fileRoute.js +27 -0
- package/build/cjs/fileRoute.js.map +1 -0
- package/build/cjs/index.js +130 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/lazyRouteComponent.js +54 -0
- package/build/cjs/lazyRouteComponent.js.map +1 -0
- package/build/cjs/link.js +223 -0
- package/build/cjs/link.js.map +1 -0
- package/build/cjs/path.js +214 -0
- package/build/cjs/path.js.map +1 -0
- package/build/cjs/qss.js +63 -0
- package/build/cjs/qss.js.map +1 -0
- package/build/cjs/redirects.js +28 -0
- package/build/cjs/redirects.js.map +1 -0
- package/build/cjs/route.js +191 -0
- package/build/cjs/route.js.map +1 -0
- package/build/cjs/router.js +1049 -0
- package/build/cjs/router.js.map +1 -0
- package/build/cjs/scroll-restoration.js +202 -0
- package/build/cjs/scroll-restoration.js.map +1 -0
- package/build/cjs/searchParams.js +81 -0
- package/build/cjs/searchParams.js.map +1 -0
- package/build/cjs/useBlocker.js +55 -0
- package/build/cjs/useBlocker.js.map +1 -0
- package/build/cjs/useNavigate.js +86 -0
- package/build/cjs/useNavigate.js.map +1 -0
- package/build/cjs/useParams.js +26 -0
- package/build/cjs/useParams.js.map +1 -0
- package/build/cjs/useSearch.js +25 -0
- package/build/cjs/useSearch.js.map +1 -0
- package/build/cjs/utils.js +239 -0
- package/build/cjs/utils.js.map +1 -0
- package/build/esm/index.js +2255 -2571
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +3498 -2694
- package/build/stats-react.json +1204 -44
- package/build/types/CatchBoundary.d.ts +36 -0
- package/build/types/Matches.d.ts +62 -0
- package/build/types/RouterProvider.d.ts +35 -0
- package/build/types/awaited.d.ts +9 -0
- package/build/types/defer.d.ts +19 -0
- package/build/types/fileRoute.d.ts +38 -0
- package/build/types/history.d.ts +7 -0
- package/build/types/index.d.ts +27 -114
- package/build/types/lazyRouteComponent.d.ts +2 -0
- package/build/types/link.d.ts +91 -0
- package/build/types/location.d.ts +12 -0
- package/build/types/path.d.ts +17 -0
- package/build/types/qss.d.ts +2 -0
- package/build/types/redirects.d.ts +11 -0
- package/build/types/route.d.ts +282 -0
- package/build/types/routeInfo.d.ts +22 -0
- package/build/types/router.d.ts +188 -0
- package/build/types/scroll-restoration.d.ts +18 -0
- package/build/types/searchParams.d.ts +7 -0
- package/build/types/useBlocker.d.ts +9 -0
- package/build/types/useNavigate.d.ts +19 -0
- package/build/types/useParams.d.ts +7 -0
- package/build/types/useSearch.d.ts +7 -0
- package/build/types/utils.d.ts +66 -0
- package/build/umd/index.development.js +2858 -2548
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +4 -4
- package/build/umd/index.production.js.map +1 -1
- package/package.json +11 -10
- package/src/CatchBoundary.tsx +101 -0
- package/src/Matches.tsx +421 -0
- package/src/RouterProvider.tsx +252 -0
- package/src/awaited.tsx +40 -0
- package/src/defer.ts +55 -0
- package/src/fileRoute.ts +152 -0
- package/src/history.ts +8 -0
- package/src/index.tsx +28 -761
- package/src/lazyRouteComponent.tsx +33 -0
- package/src/link.tsx +598 -0
- package/src/location.ts +13 -0
- package/src/path.ts +261 -0
- package/src/qss.ts +53 -0
- package/src/redirects.ts +39 -0
- package/src/route.ts +872 -0
- package/src/routeInfo.ts +70 -0
- package/src/router.ts +1630 -0
- package/src/scroll-restoration.tsx +230 -0
- package/src/searchParams.ts +79 -0
- package/src/useBlocker.tsx +27 -0
- package/src/useNavigate.tsx +111 -0
- package/src/useParams.tsx +25 -0
- package/src/useSearch.tsx +25 -0
- package/src/utils.ts +350 -0
- package/build/cjs/react-router/src/index.js +0 -508
- package/build/cjs/react-router/src/index.js.map +0 -1
- package/build/cjs/router-core/build/esm/index.js +0 -2530
- package/build/cjs/router-core/build/esm/index.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router
|
|
2
|
+
* @tanstack/react-router/src/index.tsx
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) TanStack
|
|
5
5
|
*
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("use-sync-external-store/shim")):"function"==typeof define&&define.amd?define(["exports","react","use-sync-external-store/shim"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ReactRouter={},t.React,t.
|
|
11
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("use-sync-external-store/shim")):"function"==typeof define&&define.amd?define(["exports","react","use-sync-external-store/shim"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ReactRouter={},t.React,t.require$$1)}(this,(function(t,e,o){"use strict";function n(t){var e=Object.create(null);return t&&Object.keys(t).forEach((function(o){if("default"!==o){var n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:function(){return t[o]}})}})),e.default=t,Object.freeze(e)}var r=n(e);
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* @tanstack/history/src/index.ts
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) TanStack
|
|
16
16
|
*
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
* LICENSE.md file in the root directory of this source tree.
|
|
19
19
|
*
|
|
20
20
|
* @license MIT
|
|
21
|
-
*/function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},l.apply(this,arguments)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(o||(o={}));var c="beforeunload",u="popstate";function h(t){void 0===t&&(t={});var e=t.window,n=void 0===e?document.defaultView:e,a=n.history;function r(){var t=n.location,e=t.pathname,o=t.search,r=t.hash,i=a.state||{};return[i.idx,{pathname:e,search:o,hash:r,state:i.usr||null,key:i.key||"default"}]}var i=null;n.addEventListener(u,(function(){if(i)b.call(i),i=null;else{var t=o.Pop,e=r(),n=e[0],a=e[1];if(b.length){if(null!=n){var s=d-n;s&&(i={action:t,location:a,retry:function(){S(-1*s)}},S(s))}}else R(t)}}));var s=o.Pop,h=r(),d=h[0],f=h[1],_=m(),b=m();function P(t){return"string"==typeof t?t:g(t)}function w(t,e){return void 0===e&&(e=null),l({pathname:f.pathname,hash:"",search:""},"string"==typeof t?y(t):t,{state:e,key:v()})}function x(t,e){return[{usr:t.state,key:t.key,idx:e},P(t)]}function E(t,e,n){return!b.length||(b.call({action:t,location:e,retry:n}),!1)}function R(t){s=t;var e=r();d=e[0],f=e[1],_.call({action:s,location:f})}function S(t){a.go(t)}null==d&&(d=0,a.replaceState(l({},a.state,{idx:d}),""));var I={get action(){return s},get location(){return f},createHref:P,push:function t(e,r){var i=o.Push,s=w(e,r);if(E(i,s,(function(){t(e,r)}))){var l=x(s,d+1),c=l[0],u=l[1];try{a.pushState(c,"",u)}catch(t){n.location.assign(u)}R(i)}},replace:function t(e,n){var r=o.Replace,i=w(e,n);if(E(r,i,(function(){t(e,n)}))){var s=x(i,d),l=s[0],c=s[1];a.replaceState(l,"",c),R(r)}},go:S,back:function(){S(-1)},forward:function(){S(1)},listen:function(t){return _.push(t)},block:function(t){var e=b.push(t);return 1===b.length&&n.addEventListener(c,p),function(){e(),b.length||n.removeEventListener(c,p)}}};return I}function d(t){void 0===t&&(t={});var e=t,n=e.initialEntries,a=void 0===n?["/"]:n,r=e.initialIndex,i=a.map((function(t){return l({pathname:"/",search:"",hash:"",state:null,key:v()},"string"==typeof t?y(t):t)})),s=f(null==r?i.length-1:r,0,i.length-1),c=o.Pop,u=i[s],h=m(),d=m();function p(t,e){return void 0===e&&(e=null),l({pathname:u.pathname,search:"",hash:""},"string"==typeof t?y(t):t,{state:e,key:v()})}function _(t,e,n){return!d.length||(d.call({action:t,location:e,retry:n}),!1)}function b(t,e){c=t,u=e,h.call({action:c,location:u})}function P(t){var e=f(s+t,0,i.length-1),n=o.Pop,a=i[e];_(n,a,(function(){P(t)}))&&(s=e,b(n,a))}var w={get index(){return s},get action(){return c},get location(){return u},createHref:function(t){return"string"==typeof t?t:g(t)},push:function t(e,n){var a=o.Push,r=p(e,n);_(a,r,(function(){t(e,n)}))&&(s+=1,i.splice(s,i.length,r),b(a,r))},replace:function t(e,n){var a=o.Replace,r=p(e,n);_(a,r,(function(){t(e,n)}))&&(i[s]=r,b(a,r))},go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(t){return h.push(t)},block:function(t){return d.push(t)}};return w}function f(t,e,n){return Math.min(Math.max(t,e),n)}function p(t){t.preventDefault(),t.returnValue=""}function m(){var t=[];return{get length(){return t.length},push:function(e){return t.push(e),function(){t=t.filter((function(t){return t!==e}))}},call:function(e){t.forEach((function(t){return t&&t(e)}))}}}function v(){return Math.random().toString(36).substr(2,8)}function g(t){var e=t.pathname,n=void 0===e?"/":e,a=t.search,o=void 0===a?"":a,r=t.hash,i=void 0===r?"":r;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function y(t){var e={};if(t){var n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));var a=t.indexOf("?");a>=0&&(e.search=t.substr(a),t=t.substr(0,a)),t&&(e.pathname=t)}return e}function _(t,e){if(!t)throw new Error("Invariant failed")}function b(t,e){if(t===e)return t;const n=Array.isArray(t)&&Array.isArray(e);if(n||P(t)&&P(e)){const a=n?t.length:Object.keys(t).length,o=n?e:Object.keys(e),r=o.length,i=n?[]:{};let s=0;for(let a=0;a<r;a++){const r=n?a:o[a];i[r]=b(t[r],e[r]),i[r]===t[r]&&s++}return a===r&&s===a?t:i}return e}function P(t){if(!w(t))return!1;const e=t.constructor;if(void 0===e)return!0;const n=e.prototype;return!!w(n)&&!!n.hasOwnProperty("isPrototypeOf")}function w(t){return"[object Object]"===Object.prototype.toString.call(t)}function x(t){return t[t.length-1]}function E(t,e){if(t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}return!0}function R(t,e){return"function"==typeof t?t(e):t}function S(t,e){return e.reduce(((e,n)=>(e[n]=t[n],e)),{})}function I(t){return M(t.filter(Boolean).join("/"))}function M(t){return t.replace(/\/{2,}/g,"/")}function A(t){return"/"===t?t:t.replace(/^\/{1,}/,"")}function L(t){return"/"===t?t:t.replace(/\/{1,}$/,"")}function C(t){return L(A(t))}function k(t,e,n){e=e.replace(new RegExp("^"+t),"/"),n=n.replace(new RegExp("^"+t),"/");let a=O(e);const o=O(n);o.forEach(((t,e)=>{if("/"===t.value)e?e===o.length-1&&a.push(t):a=[t];else if(".."===t.value){var n;a.length>1&&"/"===(null==(n=x(a))?void 0:n.value)&&a.pop(),a.pop()}else{if("."===t.value)return;a.push(t)}}));return M(I([t,...a.map((t=>t.value))]))}function O(t){if(!t)return[];const e=[];if("/"===(t=M(t)).slice(0,1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),!t)return e;const n=t.split("/").filter(Boolean);return e.push(...n.map((t=>t.startsWith("*")?{type:"wildcard",value:t}:"$"===t.charAt(0)?{type:"param",value:t}:{type:"pathname",value:t}))),"/"===t.slice(-1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),e}function D(t,e,n){return I(O(t).map((t=>{return"*"!==t.value||n?"param"===t.type?null!=(a=e[t.value.substring(1)])?a:"":t.value:"";var a})))}function j(t,e){const n=F(t,e);if(!e.to||n)return null!=n?n:{}}function F(t,e){var n;const a=O(t),o=O(""+(null!=(n=e.to)?n:"*")),r={};return(()=>{for(let t=0;t<Math.max(a.length,o.length);t++){const n=a[t],i=o[t],s=t===o.length-1,l=t===a.length-1;if(i){if("wildcard"===i.type)return!(null==n||!n.value)&&(r["*"]=I(a.slice(t).map((t=>t.value))),!0);if("pathname"===i.type){if("/"===i.value&&(null==n||!n.value))return!0;if(n)if(e.caseSensitive){if(i.value!==n.value)return!1}else if(i.value.toLowerCase()!==n.value.toLowerCase())return!1}if(!n)return!1;if("param"===i.type){if("/"===(null==n?void 0:n.value))return!1;"$"!==n.value.charAt(0)&&(r[i.value.substring(1)]=n.value)}}if(s&&!l)return!!e.fuzzy}return!0})()?r:void 0}function T(t,e){var n,a,o,r="";for(n in t)if(void 0!==(o=t[n]))if(Array.isArray(o))for(a=0;a<o.length;a++)r&&(r+="&"),r+=encodeURIComponent(n)+"="+encodeURIComponent(o[a]);else r&&(r+="&"),r+=encodeURIComponent(n)+"="+encodeURIComponent(o);return(e||"")+r}function N(t){if(!t)return"";var e=decodeURIComponent(t);return"false"!==e&&("true"===e||("0"===e.charAt(0)?e:0*+e==0?+e:e))}function B(t){for(var e,n,a={},o=t.split("&");e=o.shift();)void 0!==a[n=(e=e.split("=")).shift()]?a[n]=[].concat(a[n],N(e.shift())):a[n]=N(e.shift());return a}function U(){return U=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},U.apply(this,arguments)}function H(t,e,n,a){const{id:o,routeId:r,path:i,fullPath:s}=t,l=a.state.actions[o]||(a.state.actions[o]={submissions:[],submit:async(t,e)=>{var n;if(!u)return;const o=null==(n=null==e?void 0:e.invalidate)||n;null!=e&&e.multi||(l.submissions=l.submissions.filter((t=>t.isMulti)));const r={submittedAt:Date.now(),status:"pending",submission:t,isMulti:!(null==e||!e.multi)};l.current=r,l.latest=r,l.submissions.push(r),a.notify();try{const e=await(null==u.options.action?void 0:u.options.action(t));return r.data=e,o&&(a.invalidateRoute({to:".",fromCurrent:!0}),await a.reload()),r.status="success",e}catch(t){console.error(t),r.error=t,r.status="error"}finally{a.notify()}}},a.state.actions[o]),c=a.state.loaders[o]||(a.state.loaders[o]={pending:[],fetch:async t=>{if(!u)return;const e={loadedAt:Date.now(),loaderContext:t};c.current=e,c.latest=e,c.pending.push(e),a.notify();try{return await(null==u.options.loader?void 0:u.options.loader(t))}finally{c.pending=c.pending.filter((t=>t!==e)),a.notify()}}},a.state.loaders[o]);let u={routeInfo:void 0,routeId:o,routeRouteId:r,routePath:i,fullPath:s,options:e,router:a,childRoutes:void 0,parentRoute:n,action:l,loader:c,buildLink:t=>a.buildLink(U({},t,{from:s})),navigate:t=>a.navigate(U({},t,{from:s})),matchRoute:(t,e)=>a.matchRoute(U({},t,{from:s}),e)};return null==a.options.createRoute||a.options.createRoute({router:a,route:u}),u}const z="__root__",G=["component","errorComponent","pendingComponent"];function q(t,e,n){const a=U({},e,n,{router:t,routeSearch:{},search:{},childMatches:[],status:"idle",routeLoaderData:{},loaderData:{},isFetching:!1,isInvalid:!1,invalidAt:1/0,getIsInvalid:()=>{const t=Date.now();return a.isInvalid||a.invalidAt<t},__:{abortController:new AbortController,latestId:"",resolve:()=>{},notify:()=>{a.__.resolve(),a.router.notify()},validate:()=>{var e,n;const o=null!=(e=null==(n=a.parentMatch)?void 0:n.search)?e:t.location.search;try{var r;const t=a.routeSearch,e="object"==typeof a.options.validateSearch?a.options.validateSearch.parse:a.options.validateSearch;let n=b(t,null!=(r=null==e?void 0:e(o))?r:{});t!==n&&(a.isInvalid=!0),a.routeSearch=n,a.search=b(o,U({},o,n)),G.map((async t=>{const e=a.options[t];"function"!=typeof a.__[t]&&(a.__[t]=e)}))}catch(t){console.error(t);const e=new Error("Invalid search params found",{cause:t});return e.code="INVALID_SEARCH_PARAMS",a.status="error",void(a.error=e)}}},cancel:()=>{var t;null==(t=a.__.abortController)||t.abort()},invalidate:()=>{a.isInvalid=!0},hasLoaders:()=>!(!e.options.loader&&!G.some((t=>{var n;return null==(n=e.options[t])?void 0:n.preload}))),load:async e=>{const n=Date.now(),o=null!=e&&e.preload?Math.max(null==e?void 0:e.maxAge,null==e?void 0:e.gcMaxAge):0;if(null!=e&&e.preload&&o>0){if(t.state.matches.find((t=>t.matchId===a.matchId)))return;t.matchCache[a.matchId]={gc:n+e.gcMaxAge,match:a}}if("success"===a.status&&a.getIsInvalid()||"error"===a.status||"idle"===a.status){const t=null!=e&&e.preload?null==e?void 0:e.maxAge:void 0;await a.fetch({maxAge:t})}},fetch:async e=>{const n=""+Date.now()+Math.random();a.__.latestId=n;const o=async()=>{if(n!==a.__.latestId)return new Promise((()=>{}))};"idle"===a.status&&(a.status="loading"),a.isInvalid=!1,a.__.loadPromise=new Promise((async n=>{a.isFetching=!0,a.__.resolve=n,a.__.componentsPromise=(async()=>{await Promise.all(G.map((async e=>{var n;const o=a.options[e];null!=(n=a.__[e])&&n.preload&&(a.__[e]=await t.options.loadComponent(o))})))})(),a.__.dataPromise=Promise.resolve().then((async()=>{try{var n,r,i;if(a.options.loader){const e=await t.loadMatchData(a);await o(),a.routeLoaderData=b(a.routeLoaderData,e)}return a.error=void 0,a.status="success",a.updatedAt=Date.now(),a.invalidAt=a.updatedAt+(null!=(n=null!=(r=null!=(i=null==e?void 0:e.maxAge)?i:a.options.loaderMaxAge)?r:t.options.defaultLoaderMaxAge)?n:0),a.routeLoaderData}catch(t){throw await o(),a.error=t,a.status="error",a.updatedAt=Date.now(),t}}));const r=async()=>{await o(),a.isFetching=!1,delete a.__.loadPromise,a.__.notify()};try{await Promise.all([a.__.componentsPromise,a.__.dataPromise.catch((()=>{}))]),r()}catch(t){r()}})),await a.__.loadPromise,await o()}});return a.hasLoaders()||(a.status="success"),a}const K=W(JSON.parse),V=$(JSON.stringify);function W(t){return e=>{"?"===e.substring(0,1)&&(e=e.substring(1));let n=B(e);for(let e in n){const a=n[e];if("string"==typeof a)try{n[e]=t(a)}catch(t){}}return n}}function $(t){return e=>{(e=U({},e))&&Object.keys(e).forEach((n=>{const a=e[n];if(void 0===a||void 0===a)delete e[n];else if(a&&"object"==typeof a&&null!==a)try{e[n]=t(a)}catch(t){}}));const n=T(e).toString();return n?"?"+n:""}}var J;const X="undefined"==typeof window||!(null!=(J=window.document)&&J.createElement);function Q(){return{status:"idle",location:null,matches:[],actions:{},loaders:{},lastUpdated:Date.now(),isFetching:!1,isPreloading:!1}}function Y(t){var e,n;const a=(null==t?void 0:t.history)||(X?d():h()),o=U({defaultLoaderGcMaxAge:3e5,defaultLoaderMaxAge:0,defaultPreloadMaxAge:2e3,defaultPreloadDelay:50},t,{stringifySearch:null!=(e=null==t?void 0:t.stringifySearch)?e:V,parseSearch:null!=(n=null==t?void 0:t.parseSearch)?n:K});let r={types:void 0,history:a,options:o,listeners:[],context:{},basepath:"",routeTree:void 0,routesById:{},location:void 0,navigationPromise:Promise.resolve(),resolveNavigation:()=>{},matchCache:{},state:Q(),reset:()=>{r.state=Q(),r.notify()},startedLoadingAt:Date.now(),subscribe:t=>(r.listeners.push(t),()=>{r.listeners=r.listeners.filter((e=>e!==t))}),getRoute:t=>r.routesById[t],notify:()=>{const t="loading"===r.state.status||r.state.matches.some((t=>t.isFetching)),e=Object.values(r.matchCache).some((t=>t.match.isFetching&&!r.state.matches.find((e=>e.matchId===t.match.matchId))));r.state.isFetching===t&&r.state.isPreloading===e||(r.state=U({},r.state,{isFetching:t,isPreloading:e})),Z(r.state.matches),r.listeners.forEach((t=>t(r)))},dehydrateState:()=>U({},S(r.state,["status","location","lastUpdated"]),{matches:r.state.matches.map((t=>S(t,["matchId","status","routeLoaderData","loaderData","isInvalid","invalidAt"])))}),hydrateState:t=>{const e=r.matchRoutes(r.location.pathname,{strictParseParams:!0});e.forEach(((e,n)=>{const a=t.matches[n];_(a),Object.assign(e,a)})),e.forEach((t=>t.__.validate())),r.state=U({},r.state,t,{matches:e})},mount:()=>{const t=r.__.buildLocation({to:".",search:!0,hash:!0});t.href!==r.location.href&&r.__.commitLocation(t,!0),r.state.matches.length||r.load();const e=r.history.listen((t=>{r.load(r.__.parseLocation(t.location,r.location))}));return!X&&window.addEventListener&&(window.addEventListener("visibilitychange",r.onFocus,!1),window.addEventListener("focus",r.onFocus,!1)),()=>{e(),!X&&window.removeEventListener&&(window.removeEventListener("visibilitychange",r.onFocus),window.removeEventListener("focus",r.onFocus))}},onFocus:()=>{r.load()},update:t=>{const e=(null==t?void 0:t.history)!==r.history;r.location&&!e||(null!=t&&t.history&&(r.history=t.history),r.location=r.__.parseLocation(r.history.location),r.state.location=r.location),Object.assign(r.options,t);const{basepath:n,routeConfig:a}=r.options;return r.basepath=M("/"+(null!=n?n:"")),a&&(r.routesById={},r.routeTree=r.__.buildRouteTree(a)),r},cancelMatches:()=>{var t,e;[...r.state.matches,...null!=(t=null==(e=r.state.pending)?void 0:e.matches)?t:[]].forEach((t=>{t.cancel()}))},load:async t=>{const e=Math.random();r.startedLoadingAt=e,t&&(r.location=t),r.cancelMatches();const n=r.matchRoutes(r.location.pathname,{strictParseParams:!0});try{await Promise.all(n.map((t=>null==t.options.beforeLoad?void 0:t.options.beforeLoad({context:r.context}))))}catch(t){throw null!=t&&t.then&&await new Promise((()=>{})),t}if("undefined"!=typeof document?r.state=U({},r.state,{pending:{matches:n,location:r.location},status:"loading"}):r.state=U({},r.state,{matches:n,location:r.location,status:"loading"}),r.notify(),await r.loadMatches(n),r.startedLoadingAt!==e)return r.navigationPromise;const a=r.state.matches,o=[],i=[];a.forEach((t=>{n.find((e=>e.matchId===t.matchId))?i.push(t):o.push(t)}));const s=n.filter((t=>!a.find((e=>e.matchId===t.matchId)))),l=Date.now();o.forEach((t=>{var e,n,a,o;null==t.__.onExit||t.__.onExit({params:t.params,search:t.routeSearch}),"error"!==t.status||t.isFetching||(t.status="idle",t.error=void 0);const i=Math.max(null!=(e=null!=(n=t.options.loaderGcMaxAge)?n:r.options.defaultLoaderGcMaxAge)?e:0,null!=(a=null!=(o=t.options.loaderMaxAge)?o:r.options.defaultLoaderMaxAge)?a:0);i>0&&(r.matchCache[t.matchId]={gc:i==1/0?Number.MAX_SAFE_INTEGER:l+i,match:t})})),i.forEach((t=>{null==t.options.onTransition||t.options.onTransition({params:t.params,search:t.routeSearch})})),s.forEach((t=>{t.__.onExit=null==t.options.onLoaded?void 0:t.options.onLoaded({params:t.params,search:t.search}),delete r.matchCache[t.matchId]})),r.startedLoadingAt===e&&(n.forEach((t=>{t.action&&(t.action.current=void 0,t.action.submissions=[])})),r.state=U({},r.state,{location:r.location,matches:n,pending:void 0,status:"idle"}),r.notify(),r.resolveNavigation())},cleanMatchCache:()=>{const t=Date.now();Object.keys(r.matchCache).forEach((e=>{const n=r.matchCache[e];"loading"!==n.match.status&&(n.gc>0&&n.gc>t||delete r.matchCache[e])}))},loadRoute:async function(t){void 0===t&&(t=r.location);const e=r.buildNext(t),n=r.matchRoutes(e.pathname,{strictParseParams:!0});return await r.loadMatches(n),n},preloadRoute:async function(t,e){var n,a,o,i,s,l;void 0===t&&(t=r.location);const c=r.buildNext(t),u=r.matchRoutes(c.pathname,{strictParseParams:!0});return await r.loadMatches(u,{preload:!0,maxAge:null!=(n=null!=(a=null!=(o=e.maxAge)?o:r.options.defaultPreloadMaxAge)?a:r.options.defaultLoaderMaxAge)?n:0,gcMaxAge:null!=(i=null!=(s=null!=(l=e.gcMaxAge)?l:r.options.defaultPreloadGcMaxAge)?s:r.options.defaultLoaderGcMaxAge)?i:0}),u},matchRoutes:(t,e)=>{var n,a;r.cleanMatchCache();const o=[];if(!r.routeTree)return o;const i=[...r.state.matches,...null!=(n=null==(a=r.state.pending)?void 0:a.matches)?n:[]],s=async n=>{var a,l,c;const u=x(o);let h=null!=(a=null==u?void 0:u.params)?a:{};const d=null!=(l=null==r.options.filterRoutes?void 0:r.options.filterRoutes(n))?l:n;let f=[];const p=(n,a)=>(a.some((a=>{var o,i,s;if(!a.routePath&&null!=(o=a.childRoutes)&&o.length)return p([...f,a],a.childRoutes);const l=!!("/"!==a.routePath||null!=(i=a.childRoutes)&&i.length),c=j(t,{to:a.fullPath,fuzzy:l,caseSensitive:null!=(s=a.options.caseSensitive)?s:r.options.caseSensitive});if(c){let t;try{var u;t=null!=(u=null==a.options.parseParams?void 0:a.options.parseParams(c))?u:c}catch(t){if(null!=e&&e.strictParseParams)throw t}h=U({},h,t)}return c&&(f=[...n,a]),!!f.length})),!!f.length);if(p([],d),!f.length)return;f.forEach((e=>{var n;const a=D(e.routePath,h),s=D(e.routeId,h,!0),l=i.find((t=>t.matchId===s))||(null==(n=r.matchCache[s])?void 0:n.match)||q(r,e,{parentMatch:u,matchId:s,params:h,pathname:I([t,a])});o.push(l)}));const m=x(f);null!=(c=m.childRoutes)&&c.length&&s(m.childRoutes)};return s([r.routeTree]),Z(o),o},loadMatches:async(t,e)=>{const n=t.map((async t=>{t.__.validate(),t.load(e);const n=t.search;n.__data&&n.__data.matchId!==t.matchId||t.__.loadPromise&&await t.__.loadPromise}));r.notify(),await Promise.all(n)},loadMatchData:async t=>{var e;if(X||!r.options.useServerData)return null!=(e=await(null==t.options.loader?void 0:t.options.loader({params:t.params,search:t.routeSearch,signal:t.__.abortController.signal})))?e:{};{const e=r.buildNext({to:".",search:e=>U({},null!=e?e:{},{__data:{matchId:t.matchId}})}),n=await fetch(e.href,{method:"GET"});if(n.ok)return n.json();throw new Error("Failed to fetch match data")}},invalidateRoute:t=>{var e,n;const a=r.buildNext(t),o=r.matchRoutes(a.pathname).map((t=>t.matchId));[...r.state.matches,...null!=(e=null==(n=r.state.pending)?void 0:n.matches)?e:[]].forEach((t=>{o.includes(t.matchId)&&t.invalidate()}))},reload:()=>r.__.navigate({fromCurrent:!0,replace:!0,search:!0}),resolvePath:(t,e)=>k(r.basepath,t,M(e)),matchRoute:(t,e)=>{var n;t=U({},t,{to:t.to?r.resolvePath(null!=(n=t.from)?n:"",t.to):void 0});const a=r.buildNext(t);var o;return null!=e&&e.pending?!(null==(o=r.state.pending)||!o.location)&&!!j(r.state.pending.location.pathname,U({},e,{to:a.pathname})):!!j(r.state.location.pathname,U({},e,{to:a.pathname}))},navigate:async t=>{let{from:e,to:n=".",search:a,hash:o,replace:i,params:s}=t;const l=String(n),c=String(e);let u;try{new URL(""+l),u=!0}catch(t){}return _(!u),r.__.navigate({from:c,to:l,search:a,hash:o,replace:i,params:s})},buildLink:t=>{var e,n;let{from:a,to:o=".",search:i,params:s,hash:l,target:c,replace:u,activeOptions:h,preload:d,preloadMaxAge:f,preloadGcMaxAge:p,preloadDelay:m,disabled:v}=t;try{return new URL(""+o),{type:"external",href:o}}catch(t){}const g={from:a,to:o,search:i,params:s,hash:l,replace:u},y=r.buildNext(g);d=null!=(e=d)?e:r.options.defaultPreload;const _=null!=(n=null!=m?m:r.options.defaultPreloadDelay)?n:0,b=r.state.location.pathname===y.pathname,P=r.state.location.pathname.split("/"),w=y.pathname.split("/").every(((t,e)=>t===P[e])),x=r.state.location.hash===y.hash,E=null!=h&&h.exact?b:w,R=null==h||!h.includeHash||x;return{type:"internal",next:y,handleFocus:t=>{d&&r.preloadRoute(g,{maxAge:f,gcMaxAge:p})},handleClick:t=>{v||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||t.defaultPrevented||c&&"_self"!==c||0!==t.button||(t.preventDefault(),!b||i||l||r.invalidateRoute(g),r.__.navigate(g))},handleEnter:t=>{const e=t.target||{};if(d){if(e.preloadTimeout)return;e.preloadTimeout=setTimeout((()=>{e.preloadTimeout=null,r.preloadRoute(g,{maxAge:f,gcMaxAge:p})}),_)}},handleLeave:t=>{const e=t.target||{};e.preloadTimeout&&(clearTimeout(e.preloadTimeout),e.preloadTimeout=null)},isActive:E&&R,disabled:v}},buildNext:t=>{const e=r.__.buildLocation(t),n=r.matchRoutes(e.pathname),a=n.map((t=>{var e;return null!=(e=t.options.preSearchFilters)?e:[]})).flat().filter(Boolean),o=n.map((t=>{var e;return null!=(e=t.options.postSearchFilters)?e:[]})).flat().filter(Boolean);return r.__.buildLocation(U({},t,{__preSearchFilters:a,__postSearchFilters:o}))},__:{buildRouteTree:t=>{const e=(t,n)=>t.map((t=>{const a=H(t,t.options,n,r);if(r.routesById[a.routeId])throw new Error;r.routesById[a.routeId]=a;const o=t.children;return a.childRoutes=null!=o&&o.length?e(o,a):void 0,a}));return e([t])[0]},parseLocation:(t,e)=>{var n;const a=r.options.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:b(null==e?void 0:e.search,a),hash:null!=(n=t.hash.split("#").reverse()[0])?n:"",href:""+t.pathname+t.search+t.hash,state:t.state,key:t.key}},navigate:t=>{const e=r.buildNext(t);return r.__.commitLocation(e,t.replace)},buildLocation:function(t){var e,n,a,o,i,s,l,c,u;void 0===t&&(t={});const h=t.fromCurrent?r.location.pathname:null!=(e=t.from)?e:r.location.pathname;let d=k(null!=(n=r.basepath)?n:"/",h,""+(null!=(a=t.to)?a:"."));const f=r.matchRoutes(r.location.pathname,{strictParseParams:!0}),p=r.matchRoutes(d),m=U({},null==(o=x(f))?void 0:o.params);let v=!0===(null==(i=t.params)||i)?m:R(t.params,m);v&&p.map((t=>t.options.stringifyParams)).filter(Boolean).forEach((t=>{Object.assign({},v,t(v))})),d=D(d,null!=v?v:{});const g=null!=(s=t.__preSearchFilters)&&s.length?t.__preSearchFilters.reduce(((t,e)=>e(t)),r.location.search):r.location.search,y=!0===t.search?g:t.search?null!=(l=R(t.search,g))?l:{}:null!=(c=t.__preSearchFilters)&&c.length?g:{},_=null!=(u=t.__postSearchFilters)&&u.length?t.__postSearchFilters.reduce(((t,e)=>e(t)),y):y,P=b(r.location.search,_),w=r.options.stringifySearch(P);let E=!0===t.hash?r.location.hash:R(t.hash,r.location.hash);return E=E?"#"+E:"",{pathname:d,search:P,searchStr:w,state:r.location.state,hash:E,href:""+d+w+E,key:t.key}},commitLocation:(t,e)=>{const n=""+Date.now()+Math.random();r.navigateTimeout&&clearTimeout(r.navigateTimeout);let o="replace";e||(o="push");return r.__.parseLocation(a.location).href===t.href&&!t.key&&(o="replace"),"replace"===o?a.replace({pathname:t.pathname,hash:t.hash,search:t.searchStr},U({id:n},t.state)):a.push({pathname:t.pathname,hash:t.hash,search:t.searchStr},{id:n}),r.navigationPromise=new Promise((t=>{const e=r.resolveNavigation;r.resolveNavigation=()=>{e(),t()}})),r.navigationPromise}}};return r.update(t),null==r.options.createRouter||r.options.createRouter(r),r}function Z(t){t.forEach(((e,n)=>{const a=t[n-1];a&&(e.loaderData=b(e.loaderData,U({},a.loaderData,e.routeLoaderData)))}))}const tt=["type","children","target","activeProps","inactiveProps","activeOptions","disabled","hash","search","params","to","preload","preloadDelay","preloadMaxAge","replace","style","className","onClick","onFocus","onMouseEnter","onMouseLeave","onTouchStart","onTouchEnd"],et=["pending","caseSensitive","children"],nt=["children","router"];const at=r.createContext(null),ot=r.createContext(null);function rt(t){return r.createElement(at.Provider,t)}const it=t=>{n.useSyncExternalStore((e=>t.subscribe((()=>e()))),(()=>t.state),(()=>t.state))};function st(){const t=r.useContext(ot);return E(!t,"useRouter must be used inside a <Router> component!"),it(t.router),t.router}function lt(){return r.useContext(at)}function ct(){var t,e,n;const a=st(),o=lt().slice(1),i=o[0],s=r.useCallback((()=>null),[]);if(!i)return null;const l=null!=(t=null!=(e=i.__.pendingComponent)?e:a.options.defaultPendingComponent)?t:s,c=null!=(n=i.__.errorComponent)?n:a.options.defaultErrorComponent;return r.createElement(rt,{value:o},r.createElement(r.Suspense,{fallback:r.createElement(l,null)},r.createElement(ut,{errorComponent:c,key:i.routeId},(()=>{if("error"===i.status)throw i.error;var t,e;if("success"===i.status)return r.createElement(null!=(t=null!=(e=i.__.component)?e:a.options.defaultComponent)?t:ct);throw i.__.loadPromise})())))}class ut extends r.Component{constructor(){super(...arguments),this.state={error:!1,info:void 0}}componentDidCatch(t,e){console.error(t),this.setState({error:t,info:e})}render(){return r.createElement(ht,i({},this.props,{errorState:this.state,reset:()=>this.setState({})}))}}function ht(t){var e;const[n,a]=r.useState(t.errorState),o=st(),i=null!=(e=t.errorComponent)?e:dt;return r.useEffect((()=>{if(n){let t=o.state.location.key;return o.subscribe((()=>{o.state.location.key!==t&&(t=o.state.location.key,a({}))}))}}),[n]),r.useEffect((()=>{t.errorState.error&&a(t.errorState),t.reset()}),[t.errorState.error]),n.error?r.createElement(i,n):t.children}function dt(t){let{error:e}=t;return r.createElement("div",{style:{padding:".5rem",maxWidth:"100%"}},r.createElement("strong",{style:{fontSize:"1.2rem"}},"Something went wrong!"),r.createElement("div",{style:{height:".5rem"}}),r.createElement("div",null,r.createElement("pre",null,e.message?r.createElement("code",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".5rem",color:"red"}},e.message):null)))}function ft(t,e){const n=st();r.useEffect((()=>{if(!e)return;let a=n.history.block((e=>{window.confirm(t)?(a(),e.retry()):n.location.pathname=window.location.pathname}));return a}),[e,location,t])}t.DefaultErrorBoundary=dt,t.Link=function(t){const e=st();return r.createElement(e.Link,t)},t.MatchRoute=function(t){const e=st();return r.createElement(e.MatchRoute,t)},t.MatchesProvider=rt,t.Outlet=ct,t.Prompt=function(t){let{message:e,when:n,children:a}=t;return ft(e,null==n||n),null!=a?a:null},t.RouterProvider=function(t){var e;let{children:n,router:a}=t,o=s(t,nt);a.update(o);const i=r.useRef({}),l=null!=(e=null==a.options.useContext?void 0:a.options.useContext())?e:i.current;return a.context=l,it(a),r.useEffect((()=>a.mount()),[a]),r.createElement(ot.Provider,{value:{router:a}},r.createElement(rt,{value:a.state.matches},null!=n?n:r.createElement(ct,null)))},t.cleanPath=M,t.createBrowserHistory=h,t.createHashHistory=function(t){void 0===t&&(t={});var e=t.window,n=void 0===e?document.defaultView:e,a=n.history;function r(){var t=y(n.location.hash.substr(1)),e=t.pathname,o=void 0===e?"/":e,r=t.search,i=void 0===r?"":r,s=t.hash,l=void 0===s?"":s,c=a.state||{};return[c.idx,{pathname:o,search:i,hash:l,state:c.usr||null,key:c.key||"default"}]}var i=null;function s(){if(i)P.call(i),i=null;else{var t=o.Pop,e=r(),n=e[0],a=e[1];if(P.length){if(null!=n){var s=f-n;s&&(i={action:t,location:a,retry:function(){I(-1*s)}},I(s))}}else S(t)}}n.addEventListener(u,s),n.addEventListener("hashchange",(function(){g(r()[1])!==g(_)&&s()}));var h=o.Pop,d=r(),f=d[0],_=d[1],b=m(),P=m();function w(t){return function(){var t=document.querySelector("base"),e="";if(t&&t.getAttribute("href")){var a=n.location.href,o=a.indexOf("#");e=-1===o?a:a.slice(0,o)}return e}()+"#"+("string"==typeof t?t:g(t))}function x(t,e){return void 0===e&&(e=null),l({pathname:_.pathname,hash:"",search:""},"string"==typeof t?y(t):t,{state:e,key:v()})}function E(t,e){return[{usr:t.state,key:t.key,idx:e},w(t)]}function R(t,e,n){return!P.length||(P.call({action:t,location:e,retry:n}),!1)}function S(t){h=t;var e=r();f=e[0],_=e[1],b.call({action:h,location:_})}function I(t){a.go(t)}null==f&&(f=0,a.replaceState(l({},a.state,{idx:f}),""));var M={get action(){return h},get location(){return _},createHref:w,push:function t(e,r){var i=o.Push,s=x(e,r);if(R(i,s,(function(){t(e,r)}))){var l=E(s,f+1),c=l[0],u=l[1];try{a.pushState(c,"",u)}catch(t){n.location.assign(u)}S(i)}},replace:function t(e,n){var r=o.Replace,i=x(e,n);if(R(r,i,(function(){t(e,n)}))){var s=E(i,f),l=s[0],c=s[1];a.replaceState(l,"",c),S(r)}},go:I,back:function(){I(-1)},forward:function(){I(1)},listen:function(t){return b.push(t)},block:function(t){var e=P.push(t);return 1===P.length&&n.addEventListener(c,p),function(){e(),P.length||n.removeEventListener(c,p)}}};return M},t.createMemoryHistory=d,t.createReactRouter=function(t){const e=(t,e)=>({useRoute:function(n){void 0===n&&(n=".");const a=e.resolvePath(t.routeId,n),o=e.getRoute(a);return it(e),_(o),o},linkProps:e=>{var n,a;const{target:o,activeProps:l=(()=>({className:"active"})),inactiveProps:c=(()=>({})),disabled:u,style:h,className:d,onClick:f,onFocus:p,onMouseEnter:m,onMouseLeave:v}=e,g=s(e,tt),y=t.buildLink(e);if("external"===y.type){const{href:t}=y;return{href:t}}const{handleClick:_,handleFocus:b,handleEnter:P,handleLeave:w,isActive:x,next:E}=y,S=t=>e=>{e.persist(),t.forEach((t=>{t&&t(e)}))},I=x&&null!=(n=R(l,{}))?n:{},M=x?{}:null!=(a=R(c,{}))?a:{};return i({},I,M,g,{href:u?void 0:E.href,onClick:S([t=>{r.startTransition?r.startTransition((()=>{_(t)})):_(t)},f]),onFocus:S([b,p]),onMouseEnter:S([P,m]),onMouseLeave:S([w,v]),target:o,style:i({},h,I.style,M.style),className:[d,I.className,M.className].filter(Boolean).join(" ")||void 0},u?{role:"link","aria-disabled":!0}:void 0,{"data-status":x?"active":void 0})},Link:r.forwardRef(((n,a)=>{const o=t.linkProps(n);return it(e),r.createElement("a",i({ref:a},o,{children:"function"==typeof n.children?n.children({isActive:"active"===o["data-status"]}):n.children}))})),MatchRoute:e=>{const{pending:n,caseSensitive:a}=e,o=s(e,et),r=t.matchRoute(o,{pending:n,caseSensitive:a});return r?"function"==typeof e.children?e.children(r):e.children:null}}),n=Y(i({},t,{createRouter:t=>{const n={useState:()=>(it(t),t.state),useMatch:(e,n)=>{var a,o;it(t),_(e!==z);const r=null==(a=lt())?void 0:a[0],i=t.state.matches.find((t=>t.routeId===e));return(null==(o=null==n?void 0:n.strict)||o)&&(_(i),_(r.routeId==(null==i?void 0:i.routeId),(null==i||i.routeId,r.routeId,null==i||i.routeId,null==i||i.routeId))),i}},a=e(t.getRoute(z),t);Object.assign(t,n,a)},createRoute:t=>{let{router:n,route:a}=t;const o=e(a,n);Object.assign(a,o)},loadComponent:async t=>(t.preload&&"undefined"!=typeof document&&t.preload(),t)}));return n},t.createRoute=H,t.createRouteConfig=function t(e,n,a,o,r){void 0===e&&(e={}),void 0===a&&(a=!0),a&&(e.path=z),o===z&&(o="");let i=a?z:e.path;i&&"/"!==i&&(i=C(i));const s=i||e.id;let l=I([o,s]);i===z&&(i="/"),l!==z&&(l=I(["/",l]));const c=l===z?"/":L(I([r,i]));return{id:l,routeId:s,path:i,fullPath:c,options:e,children:n,addChildren:n=>t(e,n,!1,o,r),createRoute:e=>t(e,void 0,!1,l,c),generate:()=>{_(!1)}}},t.createRouteMatch=q,t.createRouter=Y,t.decode=B,t.defaultParseSearch=K,t.defaultStringifySearch=V,t.encode=T,t.functionalUpdate=R,t.interpolatePath=D,t.invariant=_,t.joinPaths=I,t.last=x,t.lazy=function(t){const e=r.lazy(t);let n,a;const o=r.forwardRef(((t,n)=>{const o=r.useRef(a||e);return r.createElement(o.current,i({},n?{ref:n}:{},t))}));return o.preload=()=>(n||(n=t().then((t=>(a=t.default,a)))),n),o},t.linkProps=function(t){return st().linkProps(t)},t.matchByPath=F,t.matchPathname=j,t.matchesContext=at,t.parsePathname=O,t.parseSearchWith=W,t.pick=S,t.replaceEqualDeep=b,t.resolvePath=k,t.rootRouteId=z,t.routerContext=ot,t.stringifySearchWith=$,t.trimPath=C,t.trimPathLeft=A,t.trimPathRight=L,t.useMatch=function(t,e){return st().useMatch(t,e)},t.useMatches=lt,t.useNearestMatch=function(){var t;const e=null==(t=lt())?void 0:t[0];return _(e),e},t.usePrompt=ft,t.useRoute=function(t){return st().useRoute(t)},t.useRouter=st,t.useSearch=function(t){return st().state.location.search},t.warning=E,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
21
|
+
*/const s="pushstate",a="popstate",i="beforeunload",c=t=>(t.preventDefault(),t.returnValue=""),l=()=>{removeEventListener(i,c,{capture:!0})};function u(t){let e=t.getLocation(),o=new Set,n=[];const r=()=>{e=t.getLocation(),o.forEach((t=>t()))},s=async e=>{if("undefined"!=typeof document&&n.length)for(let e of n){if(!await e())return void t.onBlocked?.(r)}e()};return{get location(){return e},subscribe:t=>(o.add(t),()=>{o.delete(t)}),push:(e,o)=>{o=h(o),s((()=>{t.pushState(e,o,r)}))},replace:(e,o)=>{o=h(o),s((()=>{t.replaceState(e,o,r)}))},go:e=>{s((()=>{t.go(e)}))},back:()=>{s((()=>{t.back()}))},forward:()=>{s((()=>{t.forward()}))},createHref:e=>t.createHref(e),block:t=>(n.push(t),1===n.length&&addEventListener(i,c,{capture:!0}),()=>{n=n.filter((e=>e!==t)),n.length||l()}),flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:r}}function h(t){return t||(t={}),{...t,key:m()}}function d(t){const e=t?.window??("undefined"!=typeof document?window:void 0),o=t?.createHref??(t=>t),n=t?.parseLocation??(()=>p(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));let r,i=n();let c,l,h=!0;const d=()=>{h=!1,(()=>{c&&(e.history[c.isPush?"pushState":"replaceState"](c.state,"",c.href),c=void 0,l=void 0,r=void 0)})(),h=!0},f=(t,e,n,s)=>{const a=o(e);l||(r=i),i=p(e,n),c={href:a,state:n,isPush:c?.isPush||"push"===t},s(),l||(l=Promise.resolve().then((()=>d())))},m=()=>{i=n(),v.notify()};var y=e.history.pushState,g=e.history.replaceState;const v=u({getLocation:()=>i,pushState:(t,e,o)=>f("push",t,e,o),replaceState:(t,e,o)=>f("replace",t,e,o),back:()=>e.history.back(),forward:()=>e.history.forward(),go:t=>e.history.go(t),createHref:t=>o(t),flush:d,destroy:()=>{e.history.pushState=y,e.history.replaceState=g,e.removeEventListener(s,m),e.removeEventListener(a,m)},onBlocked:t=>{r&&i!==r&&(i=r,t())}});return e.addEventListener(s,m),e.addEventListener(a,m),e.history.pushState=function(){let t=y.apply(e.history,arguments);return h&&v.notify(),t},e.history.replaceState=function(){let t=g.apply(e.history,arguments);return h&&v.notify(),t},v}function f(t={initialEntries:["/"]}){const e=t.initialEntries;let o=t.initialIndex??e.length-1,n={key:m()};return u({getLocation:()=>p(e[o],n),pushState:(t,r)=>{n=r,e.push(t),o++},replaceState:(t,r)=>{n=r,e[o]=t},back:()=>{o--},forward:()=>{o=Math.min(o+1,e.length-1)},go:t=>{o=Math.min(Math.max(o+t,0),e.length-1)},createHref:t=>t})}function p(t,e){let o=t.indexOf("#"),n=t.indexOf("?");return{href:t,pathname:t.substring(0,o>0?n>0?Math.min(o,n):o:n>0?n:t.length),hash:o>-1?t.substring(o):"",search:n>-1?t.slice(n,-1===o?void 0:o):"",state:e||{}}}function m(){return(Math.random()+1).toString(36).substring(7)}var y="Invariant failed";function g(t,e){if(!t)throw new Error(y)}var v,w={exports:{}},b={};w.exports=function(){if(v)return b;v=1;var t=e,n=o,r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=n.useSyncExternalStore,a=t.useRef,i=t.useEffect,c=t.useMemo,l=t.useDebugValue;return b.useSyncExternalStoreWithSelector=function(t,e,o,n,u){var h=a(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;h=c((function(){function t(t){if(!i){if(i=!0,s=t,t=n(t),void 0!==u&&d.hasValue){var e=d.value;if(u(e,t))return a=e}return a=t}if(e=a,r(s,t))return e;var o=n(t);return void 0!==u&&u(e,o)?e:(s=t,a=o)}var s,a,i=!1,c=void 0===o?null:o;return[function(){return t(e())},null===c?void 0:function(){return t(c())}]}),[e,o,n,u]);var f=s(t,h[0],h[1]);return i((function(){d.hasValue=!0,d.value=f}),[f]),l(f),f},b}();var _=w.exports,S=class{constructor(t,e){this.listeners=new Set,this._batching=!1,this._flushing=0,this._nextPriority=null,this.subscribe=t=>{this.listeners.add(t);const e=this.options?.onSubscribe?.(t,this);return()=>{this.listeners.delete(t),e?.()}},this.setState=(t,e)=>{const o=this.state;this.state=this.options?.updateFn?this.options.updateFn(o)(t):t(o);const n=e?.priority??this.options?.defaultPriority??"high";null===this._nextPriority||"high"===this._nextPriority?this._nextPriority=n:this._nextPriority=this.options?.defaultPriority??"high",this.options?.onUpdate?.({priority:this._nextPriority}),this._flush()},this._flush=()=>{if(this._batching)return;const t=++this._flushing;this.listeners.forEach((e=>{this._flushing===t&&e({priority:this._nextPriority??"high"})}))},this.batch=t=>{if(this._batching)return t();this._batching=!0,t(),this._batching=!1,this._flush()},this.state=t,this.options=e}};function R(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!1;for(let n=0;n<o.length;n++)if(!Object.prototype.hasOwnProperty.call(e,o[n])||!Object.is(t[o[n]],e[o[n]]))return!1;return!0}function E(t){const e=t.errorComponent??P;return r.createElement(L,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:o})=>o?r.createElement(e,{error:o}):t.children})}class L extends r.Component{state={error:null};static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}componentDidUpdate(t,e){e.error&&e.resetKey!==this.state.resetKey&&this.setState({error:null})}componentDidCatch(t){console.error(t),this.props.onCatch?.(t)}render(){return this.props.children(this.state)}}function P({error:t}){const[e,o]=r.useState(!1);return r.createElement("div",{style:{padding:".5rem",maxWidth:"100%"}},r.createElement("div",{style:{display:"flex",alignItems:"center",gap:".5rem"}},r.createElement("strong",{style:{fontSize:"1rem"}},"Something went wrong!"),r.createElement("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>o((t=>!t))},e?"Hide Error":"Show Error")),r.createElement("div",{style:{height:".25rem"}}),e?r.createElement("div",null,r.createElement("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"}},t.message?r.createElement("code",null,t.message):null)):null)}const x="undefined"==typeof document;function C(t){return t[t.length-1]}function T(t,e){return"function"==typeof t?t(e):t}function M(t,e){return e.reduce(((e,o)=>(e[o]=t[o],e)),{})}function O(t,e){if(t===e)return t;const o=e,n=Array.isArray(t)&&Array.isArray(o);if(n||k(t)&&k(o)){const e=n?t.length:Object.keys(t).length,r=n?o:Object.keys(o),s=r.length,a=n?[]:{};let i=0;for(let e=0;e<s;e++){const s=n?e:r[e];a[s]=O(t[s],o[s]),a[s]===t[s]&&i++}return e===s&&i===e?t:a}return o}function k(t){if(!I(t))return!1;const e=t.constructor;if(void 0===e)return!0;const o=e.prototype;return!!I(o)&&!!o.hasOwnProperty("isPrototypeOf")}function I(t){return"[object Object]"===Object.prototype.toString.call(t)}function D(t,e,o=!1){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(k(t)&&k(e)){const n=Object.keys(t),r=Object.keys(e);return!(!o&&n.length!==r.length)&&!r.some((n=>!(n in t)||!D(t[n],e[n],o)))}return!(!Array.isArray(t)||!Array.isArray(e))&&!t.some(((t,n)=>!D(t,e[n],o)))}const j="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function $(t){return t.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/"/g,'\\"')}const B=r.createContext(void 0);function A(){const t=Q(),e=G({select:t=>U(t)[0]?.id});return r.createElement(B.Provider,{value:e},r.createElement(E,{getResetKey:()=>t.state.resolvedLocation.state?.key,errorComponent:P,onCatch:()=>{}},e?r.createElement(H,{matchId:e}):null))}function N(t){return r.createElement(r.Fragment,null,t.children)}function H({matchId:t}){const e=Q(),o=G({select:e=>U(e).find((e=>e.id===t))?.routeId});g(o);const n=e.routesById[o],s=n.options.pendingComponent??e.options.defaultPendingComponent,a=s?r.createElement(s,null):null,i=n.options.errorComponent??e.options.defaultErrorComponent??P,c=n.options.wrapInSuspense??s??n.options.component?.preload??n.options.pendingComponent?.preload??n.options.errorComponent?.preload?r.Suspense:N,l=i?E:N;return r.createElement(B.Provider,{value:t},r.createElement(c,{fallback:a},r.createElement(l,{getResetKey:()=>e.state.resolvedLocation.state?.key,errorComponent:i,onCatch:()=>{}},r.createElement(F,{matchId:t,pendingElement:a}))))}function F({matchId:t,pendingElement:e}){const o=Q(),n=G({select:e=>U(e).find((e=>e.id===t))?.routeId}),s=o.routesById[n],a=G({select:e=>M(U(e).find((e=>e.id===t)),["status","error","showPending","loadPromise"])});if("error"===a.status)throw a.error;if("pending"===a.status){if(a.showPending)return e;throw a.loadPromise}if("success"===a.status){let t=s.options.component??o.options.defaultComponent;return t?r.createElement(t,null):r.createElement(K,null)}g(!1)}const K=r.memo((function(){const t=r.useContext(B),e=G({select:e=>{const o=U(e),n=o.findIndex((e=>e.id===t));return o[n+1]?.id}});return e?r.createElement(H,{matchId:e}):null}));function W(){G({select:t=>[t.location,t.resolvedLocation]});const{matchRoute:t}=Q();return r.useCallback((e=>{const{pending:o,caseSensitive:n,...r}=e;return t(r,{pending:o,caseSensitive:n})}),[])}function U(t){return t.pendingMatches?.some((t=>t.showPending))?t.pendingMatches:t.matches}function z(t){const e=Q(),o=r.useContext(B),n=U(e.state).find((t=>t.id===o))?.routeId,s=(()=>{const n=U(e.state);return(t?.from?n.find((e=>e.routeId===t?.from)):n.find((t=>t.id===o))).routeId})();(t?.strict??1)&&g(n==s);return G({select:e=>{const n=U(e).find((t=>t.id===o));return g(n,t?.from&&t.from),t?.select?t.select(n):n}})}function Y(t){return G({select:e=>{let o=U(e);return t?.select?t.select(o):o}})}function J(t){return z({...t,select:e=>"function"==typeof t.select?t.select(e?.loaderDeps):e?.loaderDeps})}function X(t){return z({...t,select:e=>"function"==typeof t.select?t.select(e?.loaderData):e?.loaderData})}function q(){const t=Q(),e=G({select:t=>M(t,["isLoading","location","resolvedLocation","isTransitioning"])}),[o,n]=r.useTransition();t.startReactTransition=n,r.useEffect((()=>{o&&t.__store.setState((t=>({...t,isTransitioning:o})))}),[o]);const s=()=>{var o;o=()=>{try{t.load()}catch(t){console.error(t)}},e.isTransitioning?o():n((()=>o()))};return j((()=>{const o=t.history.subscribe((()=>{t.latestLocation=t.parseLocation(t.latestLocation),e.location!==t.latestLocation&&s()})),n=t.buildLocation({search:!0,params:!0,hash:!0,state:!0});return e.location.href!==n.href&&t.commitLocation({...n,replace:!0}),()=>{o()}}),[t.history]),j((()=>{if(e.isTransitioning&&!o&&!e.isLoading&&e.resolvedLocation!==e.location){if(t.emit({type:"onResolved",fromLocation:e.resolvedLocation,toLocation:e.location,pathChanged:e.location.href!==e.resolvedLocation?.href}),document.querySelector&&""!==e.location.hash){const t=document.getElementById(e.location.hash);t&&t.scrollIntoView()}t.__store.setState((t=>({...t,isTransitioning:!1,resolvedLocation:t.location})))}}),[e.isTransitioning,o,e.isLoading,e.resolvedLocation,e.location]),j((()=>{window.__TSR_DEHYDRATED__||s()}),[]),null}function V(t,e){return[...t.cachedMatches,...t.pendingMatches??[],...t.matches].find((t=>t.id===e))}function G(t){return function(t,e=(t=>t)){return _.useSyncExternalStoreWithSelector(t.subscribe,(()=>t.state),(()=>t.state),e,R)}(Q().__store,t?.select)}function Q(){const e="undefined"!=typeof document&&window.__TSR_ROUTER_CONTEXT__||t.routerContext;return r.useContext(e)}function Z(t){return"object"==typeof t&&null!==t&&!(t instanceof Promise)&&!t.then&&"__deferredState"in t}function tt({promise:t}){const e=Q();let o=t.__deferredState;const n=`__TSR__DEFERRED__${o.uid}`;if(Z(t)&&(o=e.hydrateData(n),(t=Promise.resolve(o.data)).__deferredState=o),"pending"===o.status)throw new Promise((t=>setTimeout(t,1))).then((()=>t));if("error"===o.status)throw o.error;return e.dehydrateData(n,o),[o.data]}function et(t){return ot(t.filter(Boolean).join("/"))}function ot(t){return t.replace(/\/{2,}/g,"/")}function nt(t){return"/"===t?t:t.replace(/^\/{1,}/,"")}function rt(t){return"/"===t?t:t.replace(/\/{1,}$/,"")}function st(t){return rt(nt(t))}function at(t,e,o){e=e.replace(new RegExp(`^${t}`),"/"),o=o.replace(new RegExp(`^${t}`),"/");let n=it(e);const r=it(o);r.forEach(((t,e)=>{if("/"===t.value)e?e===r.length-1&&n.push(t):n=[t];else if(".."===t.value)n.length>1&&"/"===C(n)?.value&&n.pop(),n.pop();else{if("."===t.value)return;n.push(t)}}));return ot(et([t,...n.map((t=>t.value))]))}function it(t){if(!t)return[];const e=[];if("/"===(t=ot(t)).slice(0,1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),!t)return e;const o=t.split("/").filter(Boolean);return e.push(...o.map((t=>"$"===t||"*"===t?{type:"wildcard",value:t}:"$"===t.charAt(0)?{type:"param",value:t}:{type:"pathname",value:t}))),"/"===t.slice(-1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),e}function ct(t,e,o=!1){return et(it(t).map((t=>{if("wildcard"===t.type){const n=e[t.value];return o?`${t.value}${n??""}`:n}return"param"===t.type?e[t.value.substring(1)]??"undefined":t.value})))}function lt(t,e,o){const n=ht(t,e,o);if(!o.to||n)return n??{}}function ut(t,e){return"/"!=t?e.substring(t.length):e}function ht(t,e,o){e=ut(t,e);const n=`${o.to??"$"}`,r=it(e),s=it(n);e.startsWith("/")||r.unshift({type:"pathname",value:"/"}),n.startsWith("/")||s.unshift({type:"pathname",value:"/"});const a={};return(()=>{for(let t=0;t<Math.max(r.length,s.length);t++){const e=r[t],n=s[t],i=t>=r.length-1,c=t>=s.length-1;if(n){if("wildcard"===n.type)return!!e?.value&&(a["*"]=et(r.slice(t).map((t=>t.value))),!0);if("pathname"===n.type){if("/"===n.value&&!e?.value)return!0;if(e)if(o.caseSensitive){if(n.value!==e.value)return!1}else if(n.value.toLowerCase()!==e.value.toLowerCase())return!1}if(!e)return!1;if("param"===n.type){if("/"===e?.value)return!1;"$"!==e.value.charAt(0)&&(a[n.value.substring(1)]=e.value)}}if(!i&&c)return a["**"]=et(r.slice(t+1).map((t=>t.value))),!!o.fuzzy&&"/"!==n?.value}return!0})()?a:void 0}function dt(t){return G({select:e=>{const o=C(e.matches)?.params;return t?.select?t.select(o):o}})}function ft(t){return z({...t,select:e=>t?.select?t.select(e.search):e.search})}t.routerContext=r.createContext(null),"undefined"!=typeof document&&(window.__TSR_ROUTER_CONTEXT__?t.routerContext=window.__TSR_ROUTER_CONTEXT__:window.__TSR_ROUTER_CONTEXT__=t.routerContext);const pt="__root__";class mt{constructor(t){this.options=t||{},this.isRoot=!t?.getParentRoute,g(!(t?.id&&t?.path)),this.$$typeof=Symbol.for("react.memo")}init=t=>{this.originalIndex=t.originalIndex;const e=this.options,o=!e?.path&&!e?.id;this.parentRoute=this.options?.getParentRoute?.(),o?this.path=pt:g(this.parentRoute);let n=o?pt:e.path;n&&"/"!==n&&(n=st(n));const r=e?.id||n;let s=o?pt:et([this.parentRoute.id===pt?"":this.parentRoute.id,r]);n===pt&&(n="/"),s!==pt&&(s=et(["/",s]));const a=s===pt?"/":et([this.parentRoute.fullPath,n]);this.path=n,this.id=s,this.fullPath=a,this.to=a};addChildren=t=>(this.children=t,this);update=t=>(Object.assign(this.options,t),this);useMatch=t=>z({...t,from:this.id});useRouteContext=t=>z({...t,from:this.id,select:e=>t?.select?t.select(e.context):e.context});useSearch=t=>ft({...t,from:this.id});useParams=t=>dt({...t,from:this.id});useLoaderDeps=t=>J({...t,from:this.id});useLoaderData=t=>X({...t,from:this.id})}class yt extends mt{constructor(t){super(t)}}function gt(){return gt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},gt.apply(this,arguments)}const vt="Error preloading route! ☝️";function wt(t){const e=Q(),o=z({strict:!1,select:t=>t.pathname}),{children:n,target:r,activeProps:s=(()=>({className:"active"})),inactiveProps:a=(()=>({})),activeOptions:i,disabled:c,hash:l,search:u,params:h,to:d,state:f,mask:p,preload:m,preloadDelay:y,replace:g,startTransition:v,resetScroll:w,style:b,className:_,onClick:S,onFocus:R,onMouseEnter:E,onMouseLeave:L,onTouchStart:P,...x}=t,C={from:t.to?o:void 0,...t};let M="internal";try{new URL(`${d}`),M="external"}catch{}if("external"===M)return{href:d};const O=e.buildLocation(C),k=m??e.options.defaultPreload,I=y??e.options.defaultPreloadDelay??0,j=G({select:t=>{const e=t.location.pathname.split("/"),o=O.pathname.split("/").every(((t,o)=>t===e[o])),n=i?.exact?t.location.pathname===O.pathname:o,r=!i?.includeHash||t.location.hash===O.hash,s=!(i?.includeSearch??1)||D(t.location.search,O.search,!i?.exact);return n&&r&&s}}),$=t=>e=>{e.persist&&e.persist(),t.filter(Boolean).forEach((t=>{e.defaultPrevented||t(e)}))},B=j?T(s,{})??{}:{},A=j?{}:T(a,{})??{};return{...B,...A,...x,href:c?void 0:O.maskedLocation?O.maskedLocation.href:O.href,onClick:$([S,t=>{c||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||t.defaultPrevented||r&&"_self"!==r||0!==t.button||(t.preventDefault(),e.commitLocation({...O,replace:g,resetScroll:w,startTransition:v}))}]),onFocus:$([R,t=>{k&&e.preloadRoute(C).catch((t=>{console.warn(t),console.warn(vt)}))}]),onMouseEnter:$([E,t=>{const o=t.target||{};if(k){if(o.preloadTimeout)return;o.preloadTimeout=setTimeout((()=>{o.preloadTimeout=null,e.preloadRoute(C).catch((t=>{console.warn(t),console.warn(vt)}))}),I)}}]),onMouseLeave:$([L,t=>{const e=t.target||{};e.preloadTimeout&&(clearTimeout(e.preloadTimeout),e.preloadTimeout=null)}]),onTouchStart:$([P,t=>{k&&e.preloadRoute(C).catch((t=>{console.warn(t),console.warn(vt)}))}]),target:r,style:{...b,...B.style,...A.style},className:[_,B.className,A.className].filter(Boolean).join(" ")||void 0,...c?{role:"link","aria-disabled":!0}:void 0,"data-status":j?"active":void 0}}const bt=r.forwardRef(((t,e)=>{const o=wt(t);return r.createElement("a",gt({ref:e},o,{children:"function"==typeof t.children?t.children({isActive:"active"===o["data-status"]}):t.children}))}));function _t(t,e){var o,n,r,s="";for(o in t)if(void 0!==(r=t[o]))if(Array.isArray(r))for(n=0;n<r.length;n++)s&&(s+="&"),s+=encodeURIComponent(o)+"="+encodeURIComponent(r[n]);else s&&(s+="&"),s+=encodeURIComponent(o)+"="+encodeURIComponent(r);return(e||"")+s}function St(t){if(!t)return"";var e=decodeURIComponent(t);return"false"!==e&&("true"===e||(0*+e==0&&+e+""===e?+e:e))}function Rt(t){for(var e,o,n={},r=t.split("&");e=r.shift();)void 0!==n[o=(e=e.split("=")).shift()]?n[o]=[].concat(n[o],St(e.shift())):n[o]=St(e.shift());return n}function Et(t){return!!t?.isRedirect}const Lt=xt(JSON.parse),Pt=Ct(JSON.stringify,JSON.parse);function xt(t){return e=>{"?"===e.substring(0,1)&&(e=e.substring(1));let o=Rt(e);for(let e in o){const n=o[e];if("string"==typeof n)try{o[e]=t(n)}catch(t){}}return o}}function Ct(t,e){return o=>{(o={...o})&&Object.keys(o).forEach((n=>{const r=o[n];void 0===r||void 0===r?delete o[n]:o[n]=function(o){if("object"==typeof o&&null!==o)try{return t(o)}catch(t){}else if("string"==typeof o&&"function"==typeof e)try{return e(o),t(o)}catch(t){}return o}(r)}));const n=_t(o).toString();return n?`?${n}`:""}}const Tt=["component","errorComponent","pendingComponent"];class Mt extends Error{}class Ot extends Error{}function kt(t){return{isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:{...t},location:t,matches:[],pendingMatches:[],cachedMatches:[],lastUpdated:Date.now()}}const It="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Dt="window",jt="___";let $t=new WeakSet;let Bt="undefined"!=typeof window&&window.sessionStorage?(()=>{const t="tsr-scroll-restoration-v2";return{state:JSON.parse(window.sessionStorage.getItem(t)||"null")||{cached:{},next:{}},set:e=>{Bt.state=T(e,Bt.state),window.sessionStorage.setItem(t,JSON.stringify(Bt.state))}}})():void 0;const At=t=>t.state.key;function Nt(t){const e=Q();It((()=>{const o=t?.getKey||At,{history:n}=window;n.scrollRestoration&&(n.scrollRestoration="manual");const r=t=>{if($t.has(t.target))return;$t.add(t.target);let e="";if(t.target===document||t.target===window)e=Dt;else{const o=t.target.getAttribute("data-scroll-restoration-id");e=o?`[data-scroll-restoration-id="${o}"]`:Ht(t.target)}Bt.state.next[e]||Bt.set((t=>({...t,next:{...t.next,[e]:{scrollX:NaN,scrollY:NaN}}})))};"undefined"!=typeof document&&document.addEventListener("scroll",r,!0);const s=e.subscribe("onBeforeLoad",(t=>{if(t.pathChanged){const e=o(t.fromLocation);for(const t in Bt.state.next){const o=Bt.state.next[t];if(t===Dt)o.scrollX=window.scrollX||0,o.scrollY=window.scrollY||0;else if(t){const e=document.querySelector(t);o.scrollX=e?.scrollLeft||0,o.scrollY=e?.scrollTop||0}Bt.set((n=>{const r={...n.next};return delete r[t],{...n,next:r,cached:{...n.cached,[[e,t].join(jt)]:o}}}))}}})),a=e.subscribe("onResolved",(o=>{if(o.pathChanged){if(!e.resetNextScroll)return;e.resetNextScroll=!0;const n=(t?.getKey||At)(o.toLocation);let r=!1;for(const t in Bt.state.cached){const e=Bt.state.cached[t],[o,s]=t.split(jt);if(o===n)if(s===Dt)r=!0,window.scrollTo(e.scrollX,e.scrollY);else if(s){const t=document.querySelector(s);t&&(t.scrollLeft=e.scrollX,t.scrollTop=e.scrollY)}}r||window.scrollTo(0,0),Bt.set((t=>({...t,next:{}}))),$t=new WeakSet}}));return()=>{document.removeEventListener("scroll",r),s(),a()}}),[])}function Ht(t){let e,o=[];for(;e=t.parentNode;)o.unshift(`${t.tagName}:nth-child(${[].indexOf.call(e.children,t)+1})`),t=e;return`${o.join(" > ")}`.toLowerCase()}function Ft(t,e=!0){const{history:o}=Q();r.useEffect((()=>{if(e)return o.block(t)}))}t.Await=function(t){const e=tt(t);return t.children(...e)},t.Block=function({blocker:t,condition:e,children:o}){return Ft(t,e),o??null},t.CatchBoundary=E,t.CatchBoundaryImpl=L,t.ErrorComponent=P,t.FileRoute=class{constructor(t){this.path=t}createRoute=t=>{const e=new mt(t);return e.isRoot=!1,e}},t.Link=bt,t.Match=H,t.MatchRoute=function(t){const e=W()(t);return"function"==typeof t.children?t.children(e):e?t.children:null},t.Matches=A,t.Navigate=function(t){const{navigate:e}=Q(),o=z({strict:!1});return r.useEffect((()=>{e({from:t.to?o.pathname:void 0,...t})}),[]),null},t.NotFoundRoute=class extends mt{constructor(t){super({...t,id:"404"})}},t.Outlet=K,t.PathParamError=Ot,t.RootRoute=yt,t.Route=mt,t.RouteApi=class{constructor({id:t}){this.id=t}useMatch=t=>z({...t,from:this.id});useRouteContext=t=>z({...t,from:this.id,select:e=>t?.select?t.select(e.context):e.context});useSearch=t=>ft({...t,from:this.id});useParams=t=>dt({...t,from:this.id});useLoaderDeps=t=>J({...t,from:this.id});useLoaderData=t=>X({...t,from:this.id})},t.Router=class{tempLocationKey=`${Math.round(1e7*Math.random())}`;resetNextScroll=!0;navigateTimeout=null;latestLoadPromise=Promise.resolve();subscribers=new Set;injectedHtml=[];constructor(t){this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,stringifySearch:t?.stringifySearch??Pt,parseSearch:t?.parseSearch??Lt})}startReactTransition=t=>t();update=t=>{this.options={...this.options,...t},this.basepath=`/${st(t.basepath??"")??""}`,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??("undefined"!=typeof document?d():f()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new S(kt(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,status:this.state.isTransitioning||this.state.isLoading?"pending":"idle"}}}))};get state(){return this.__store.state}buildRouteTree=()=>{this.routesById={},this.routesByPath={};const t=this.options.notFoundRoute;t&&(t.init({originalIndex:99999999999}),this.routesById[t.id]=t);const e=t=>{t.forEach(((t,o)=>{t.init({originalIndex:o});if(g(!this.routesById[t.id],String(t.id)),this.routesById[t.id]=t,!t.isRoot&&t.path){const e=rt(t.fullPath);this.routesByPath[e]&&!t.fullPath.endsWith("/")||(this.routesByPath[e]=t)}const n=t.children;n?.length&&e(n)}))};e([this.routeTree]);const o=[];Object.values(this.routesById).forEach(((t,e)=>{if(t.isRoot||!t.path)return;const n=nt(t.fullPath),r=it(n);for(;r.length>1&&"/"===r[0]?.value;)r.shift();const s=r.map((t=>"/"===t.value?.75:"param"===t.type?.5:"wildcard"===t.type?.25:1));o.push({child:t,trimmed:n,parsed:r,index:e,scores:s})})),this.flatRoutes=o.sort(((t,e)=>{const o=Math.min(t.scores.length,e.scores.length);for(let n=0;n<o;n++)if(t.scores[n]!==e.scores[n])return e.scores[n]-t.scores[n];if(t.scores.length!==e.scores.length)return e.scores.length-t.scores.length;for(let n=0;n<o;n++)if(t.parsed[n].value!==e.parsed[n].value)return t.parsed[n].value>e.parsed[n].value?1:-1;return t.index-e.index})).map(((t,e)=>(t.child.rank=e,t.child)))};subscribe=(t,e)=>{const o={eventType:t,fn:e};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}};emit=t=>{this.subscribers.forEach((e=>{e.eventType===t.type&&e.fn(t)}))};checkLatest=t=>this.latestLoadPromise!==t?this.latestLoadPromise:void 0;parseLocation=t=>{const e=({pathname:e,search:o,hash:n,state:r})=>{const s=this.options.parseSearch(o);return{pathname:e,searchStr:o,search:O(t?.search,s),hash:n.split("#").reverse()[0]??"",href:`${e}${o}${n}`,state:O(t?.state,r)}},o=e(this.history.location);let{__tempLocation:n,__tempKey:r}=o.state;if(n&&(!r||r===this.tempLocationKey)){const t=e(n);return t.state.key=o.state.key,delete t.state.__tempLocation,{...t,maskedLocation:o}}return o};resolvePathWithBase=(t,e)=>at(this.basepath,t,ot(e));get looseRoutesById(){return this.routesById}matchRoutes=(t,e,o)=>{let n={},r=this.flatRoutes.find((e=>{const o=lt(this.basepath,rt(t),{to:e.fullPath,caseSensitive:e.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});return!!o&&(n=o,!0)})),s=r||this.routesById.__root__,a=[s];for((r?"/"!==r.path&&n["**"]:rt(t))&&this.options.notFoundRoute&&a.push(this.options.notFoundRoute);s?.parentRoute;)s=s.parentRoute,s&&a.unshift(s);const i=a.map((t=>{let e;if(t.options.parseParams)try{const e=t.options.parseParams(n);Object.assign(n,e)}catch(t){if(e=new Ot(t.message,{cause:t}),o?.throwOnError)throw e;return e}})),c=[];return a.forEach(((t,r)=>{const s=c[r-1],[a,l]=(()=>{const n=s?.search??e;try{const e="object"==typeof t.options.validateSearch?t.options.validateSearch.parse:t.options.validateSearch;let o=e?.(n)??{};return[{...n,...o},void 0]}catch(t){const e=new Mt(t.message,{cause:t});if(o?.throwOnError)throw e;return[n,e]}})(),u=t.options.loaderDeps?.({search:a})??"",h=u?JSON.stringify(u):"",d=ct(t.fullPath,n),f=ct(t.id,n,!0)+h,p=V(this.state,f),m=this.state.matches.find((t=>t.id===f))?"stay":"enter",y=!(!t.options.loader&&!Tt.some((e=>t.options[e]?.preload))),g=p?{...p,cause:m}:{id:f,routeId:t.id,params:n,pathname:et([this.basepath,d]),updatedAt:Date.now(),search:{},searchError:void 0,status:y?"pending":"success",showPending:!1,isFetching:!1,error:void 0,paramsError:i[r],loadPromise:Promise.resolve(),routeContext:void 0,context:void 0,abortController:new AbortController,fetchCount:0,cause:m,loaderDeps:u};g.search=O(g.search,a),g.searchError=l,c.push(g)})),c};cancelMatch=t=>{V(this.state,t)?.abortController?.abort()};cancelMatches=()=>{this.state.pendingMatches?.forEach((t=>{this.cancelMatch(t.id)}))};buildLocation=t=>{const e=(t={},e)=>{const o=this.latestLocation,n=(this.state.pendingMatches||this.state.matches).at(-1)?.search||o.search,r=t.from??o.pathname;let s=this.resolvePathWithBase(r,`${t.to??""}`);const a=this.matchRoutes(r,n),i=e?.filter((t=>a?.find((e=>e.routeId===t.routeId)))),c={...C(a)?.params};let l=!0===(t.params??!0)?c:T(t.params,c);l&&e?.map((t=>this.looseRoutesById[t.routeId].options.stringifyParams)).filter(Boolean).forEach((t=>{l={...l,...t(l)}})),s=ct(s,l??{});const u=i?.map((t=>this.looseRoutesById[t.routeId].options.preSearchFilters??[])).flat().filter(Boolean)??[],h=i?.map((t=>this.looseRoutesById[t.routeId].options.postSearchFilters??[])).flat().filter(Boolean)??[],d=u?.length?u?.reduce(((t,e)=>e(t)),n):n,f=!0===t.search?d:t.search?T(t.search,d)??{}:u?.length?d:{},p=O(n,h?.length?h.reduce(((t,e)=>e(t)),f):f),m=this.options.stringifySearch(p),y=!0===t.hash?o.hash:t.hash?T(t.hash,o.hash):o.hash,g=y?`#${y}`:"";let v=!0===t.state?o.state:t.state?T(t.state,o.state):o.state;return v=O(o.state,v),{pathname:s,search:p,searchStr:m,state:v,hash:y,href:`${s}${m}${g}`,unmaskOnReload:t.unmaskOnReload}},o=(t={},o)=>{let n=e(t),r=o?e(o):void 0;if(!r){let t={},s=this.options.routeMasks?.find((e=>{const o=lt(this.basepath,n.pathname,{to:e.from,caseSensitive:!1,fuzzy:!1});return!!o&&(t=o,!0)}));s&&(s={...s,from:ct(s.from,t)},r=e(o=s))}const s=this.matchRoutes(n.pathname,n.search),a=r?this.matchRoutes(r.pathname,r.search):void 0,i=r?e(o,a):void 0,c=e(t,s);return i&&(c.maskedLocation=i),c};return t.mask?o(t,{...M(t,["from"]),...t.mask}):o(t)};commitLocation=async({startTransition:t,...e})=>{this.navigateTimeout&&clearTimeout(this.navigateTimeout);if(!(this.latestLocation.href===e.href)||!e.replace){let{maskedLocation:o,...n}=e;o&&(n={...o,state:{...o.state,__tempKey:void 0,__tempLocation:{...n,search:n.searchStr,state:{...n.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(n.unmaskOnReload??this.options.unmaskOnReload)&&(n.state.__tempKey=this.tempLocationKey));const r=()=>{this.history[e.replace?"replace":"push"](n.href,n.state)};t??1?this.startReactTransition(r):r()}return this.resetNextScroll=e.resetScroll??!0,this.latestLoadPromise};buildAndCommitLocation=({replace:t,resetScroll:e,startTransition:o,...n}={})=>{const r=this.buildLocation(n);return this.commitLocation({...r,startTransition:o,replace:t,resetScroll:e})};navigate=({from:t,to:e="",...o})=>{const n=String(e),r=void 0===t?t:String(t);let s;try{new URL(`${n}`),s=!0}catch(t){}return g(!s),this.buildAndCommitLocation({...o,from:r,to:n})};loadMatches=async({checkLatest:t,matches:e,preload:o,invalidate:n})=>{let r,s;const a=t=>{const e=this.state.pendingMatches?.find((e=>e.id===t.id)),o=this.state.matches.find((e=>e.id===t.id)),n=e?"pendingMatches":o?"matches":"cachedMatches";this.__store.setState((e=>({...e,[n]:e[n]?.map((e=>e.id===t.id?t:e))})))};try{for(let[t,n]of e.entries()){const r=e[t-1],a=this.looseRoutesById[n.routeId],i=new AbortController,c=(o,r)=>{if(o.routerCode=r,s=s??t,Et(o))throw o;try{a.options.onError?.(o)}catch(t){if(o=t,Et(t))throw t}e[t]=n={...n,error:o,status:"error",updatedAt:Date.now(),abortController:new AbortController}};try{n.paramsError&&c(n.paramsError,"PARSE_PARAMS"),n.searchError&&c(n.searchError,"VALIDATE_SEARCH");const s=r?.context??this.options.context??{},l=await(a.options.beforeLoad?.({search:n.search,abortController:i,params:n.params,preload:!!o,context:s,location:this.state.location,navigate:t=>this.navigate({...t,from:n.pathname}),buildLocation:this.buildLocation,cause:o?"preload":n.cause}))??{};if(Et(l))throw l;const u={...s,...l};e[t]=n={...n,routeContext:O(n.routeContext,l),context:O(n.context,u),abortController:i}}catch(t){c(t,"BEFORE_LOAD");break}}}catch(t){if(Et(t))return o||this.navigate(t),e;throw t}const i=e.slice(0,s),c=[];return i.forEach(((n,s)=>{c.push(new Promise((async i=>{const l=c[s-1],u=this.looseRoutesById[n.routeId],h=t=>!!Et(t)&&(o||this.navigate(t),!0);let d;e[s]=n={...n,showPending:!1};let f=!1;const p=u.options.pendingMs??this.options.defaultPendingMs,m=u.options.pendingMinMs??this.options.defaultPendingMinMs,y=!o&&p&&(u.options.pendingComponent??this.options.defaultPendingComponent),g=async()=>{if(n.isFetching)d=V(this.state,n.id)?.loadPromise;else{const t={params:n.params,deps:n.loaderDeps,preload:!!o,parentMatchPromise:l,abortController:n.abortController,context:n.context,location:this.state.location,navigate:t=>this.navigate({...t,from:n.pathname}),cause:o?"preload":n.cause};n.fetchCount&&"success"===n.status&&i(),e[s]=n={...n,isFetching:!0,fetchCount:n.fetchCount+1};const r=Promise.all(Tt.map((async t=>{const e=u.options[t];e?.preload&&await e.preload()}))),a=u.options.loader?.(t);d=Promise.all([r,a]).then((t=>t[1]))}e[s]=n={...n,loadPromise:d},a(n);try{const o=await d;if(r=t())return await r;if(Et(o)&&h(o))return;if(f&&m&&await new Promise((t=>setTimeout(t,m))),r=t())return await r;e[s]=n={...n,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:o,loadPromise:void 0}}catch(o){if(r=t())return await r;if(h(o))return;try{u.options.onError?.(o)}catch(t){if(o=t,h(t))return}e[s]=n={...n,error:o,status:"error",isFetching:!1}}a(n)},v=Date.now()-n.updatedAt;let w=o?u.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:u.options.staleTime??this.options.defaultStaleTime??0;"success"===n.status?v>w&&g():(y&&new Promise((t=>setTimeout(t,p))).then((async()=>{if(r=t())return r;f=!0,e[s]=n={...n,showPending:!0},a(n),i()})),await g()),i()})))})),await Promise.all(c),e};invalidate=()=>this.load({invalidate:!0});load=async t=>{const e=new Promise((async(o,n)=>{const r=this.latestLocation,s=this.state.resolvedLocation,a=s.href!==r.href;let i,c;this.cancelMatches(),this.emit({type:"onBeforeLoad",fromLocation:s,toLocation:r,pathChanged:a});const l=this.state.matches;this.__store.batch((()=>{this.__store.setState((t=>({...t,cachedMatches:t.cachedMatches.filter((t=>{const e=this.looseRoutesById[t.routeId];return"error"!==t.status&&Date.now()-t.updatedAt<(e.options.gcTime??this.options.defaultGcTime??3e5)}))}))),c=this.matchRoutes(r.pathname,r.search,{debug:!0}),this.__store.setState((t=>({...t,isLoading:!0,location:r,pendingMatches:c,cachedMatches:t.cachedMatches.filter((t=>!c.find((e=>e.id===t.id))))})))}));try{try{await this.loadMatches({matches:c,checkLatest:()=>this.checkLatest(e),invalidate:t?.invalidate})}catch(t){}if(i=this.checkLatest(e))return i;const n=l.filter((t=>!c.find((e=>e.id===t.id)))),u=c.filter((t=>!l.find((e=>e.id===t.id)))),h=l.filter((t=>c.find((e=>e.id===t.id))));this.__store.setState((t=>({...t,isLoading:!1,matches:c,pendingMatches:void 0,cachedMatches:[...t.cachedMatches,...n.filter((t=>"error"!==t.status))]}))),[[n,"onLeave"],[u,"onEnter"],[h,"onStay"]].forEach((([t,e])=>{t.forEach((t=>{this.looseRoutesById[t.routeId].options[e]?.(t)}))})),this.emit({type:"onLoad",fromLocation:s,toLocation:r,pathChanged:a}),o()}catch(t){if(i=this.checkLatest(e))return i;n(t)}}));return this.latestLoadPromise=e,this.latestLoadPromise};preloadRoute=async(t=this.state.location)=>{let e=this.buildLocation(t),o=this.matchRoutes(e.pathname,e.search,{throwOnError:!0});const n=Object.fromEntries([...this.state.matches,...this.state.pendingMatches??[],...this.state.cachedMatches]?.map((t=>[t.id,!0])));return this.__store.batch((()=>{o.forEach((t=>{n[t.id]||this.__store.setState((e=>({...e,cachedMatches:[...e.cachedMatches,t]})))}))})),o=await this.loadMatches({matches:o,preload:!0,checkLatest:()=>{}}),o};matchRoute=(t,e)=>{t={...t,to:t.to?this.resolvePathWithBase(t.from||"",t.to):void 0};const o=this.buildLocation(t);if(e?.pending&&"pending"!==this.state.status)return!1;const n=e?.pending?this.latestLocation:this.state.resolvedLocation;if(!n)return!1;const r=lt(this.basepath,n.pathname,{...e,to:o.pathname});return!!r&&(r&&(e?.includeSearch??1)?!!D(n.search,o.search,!0)&&r:r)};injectHtml=async t=>{this.injectedHtml.push(t)};dehydrateData=(t,e)=>{if("undefined"==typeof document){const o="string"==typeof t?t:JSON.stringify(t);return this.injectHtml((async()=>{const t=`__TSR_DEHYDRATED__${o}`,n="function"==typeof e?await e():e;return`<script id='${t}' suppressHydrationWarning>window["__TSR_DEHYDRATED__${$(o)}"] = ${JSON.stringify(n)}\n ;(() => {\n var el = document.getElementById('${t}')\n el.parentElement.removeChild(el)\n })()\n <\/script>`})),()=>this.hydrateData(t)}return()=>{}};hydrateData=t=>{if("undefined"!=typeof document){const e="string"==typeof t?t:JSON.stringify(t);return window[`__TSR_DEHYDRATED__${e}`]}};dehydrate=()=>({state:{dehydratedMatches:this.state.matches.map((t=>M(t,["id","status","updatedAt","loaderData"])))}});hydrate=async t=>{let e=t;"undefined"!=typeof document&&(e=window.__TSR_DEHYDRATED__),g(e);const o=e;this.dehydratedData=o.payload,this.options.hydrate?.(o.payload);const n=o.router.state;let r=this.matchRoutes(this.state.location.pathname,this.state.location.search).map((t=>{const e=n.dehydratedMatches.find((e=>e.id===t.id));return g(e,t.id),e?{...t,...e}:t}));this.__store.setState((t=>({...t,matches:r})))}},t.RouterProvider=function({router:e,...o}){e.update({...e.options,...o,context:{...e.options.context,...o?.context}});const n=e.options.InnerWrap?r.createElement(e.options.InnerWrap,null,r.createElement(A,null)):r.createElement(A,null),s=r.createElement(t.routerContext.Provider,{value:e},n,r.createElement(q,null));return e.options.Wrap?r.createElement(e.options.Wrap,null,s):s},t.ScrollRestoration=function(t){return Nt(t),null},t.SearchParamError=Mt,t.cleanPath=ot,t.componentTypes=Tt,t.createBrowserHistory=d,t.createHashHistory=function(t){const e=t?.window??("undefined"!=typeof document?window:void 0);return d({window:e,parseLocation:()=>p(e.location.hash.split("#").slice(1).join("#")??"/",e.history.state),createHref:t=>`${e.location.pathname}${e.location.search}#${t}`})},t.createHistory=u,t.createMemoryHistory=f,t.createRouteMask=function(t){return t},t.decode=Rt,t.deepEqual=D,t.defaultParseSearch=Lt,t.defaultStringifySearch=Pt,t.defer=function(t){const e=t;if(!e.__deferredState){e.__deferredState={uid:Math.random().toString(36).slice(2),status:"pending"};const t=e.__deferredState;e.then((e=>{t.status="success",t.data=e})).catch((e=>{t.status="error",t.error=e}))}return e},t.encode=_t,t.escapeJSON=$,t.functionalUpdate=T,t.getInitialRouterState=kt,t.getRouteMatch=V,t.interpolatePath=ct,t.invariant=g,t.isDehydratedDeferred=Z,t.isPlainObject=k,t.isRedirect=Et,t.isServer=x,t.joinPaths=et,t.last=C,t.lazyFn=function(t,e){return async(...o)=>(await t())[e||"default"](...o)},t.lazyRouteComponent=function(t,e){let o;const n=()=>(o||(o=t()),o),s=r.lazy((async()=>({default:(await n())[e??"default"]})));return s.preload=n,s},t.matchByPath=ht,t.matchContext=B,t.matchPathname=lt,t.parsePathname=it,t.parseSearchWith=xt,t.pick=M,t.redirect=function(t){if(t.isRedirect=!0,t.throw)throw t;return t},t.removeBasepath=ut,t.replaceEqualDeep=O,t.resolvePath=at,t.rootRouteId=pt,t.rootRouteWithContext=function(){return t=>new yt(t)},t.shallow=function(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!1;for(let n=0;n<o.length;n++)if(!Object.prototype.hasOwnProperty.call(e,o[n])||!Object.is(t[o[n]],e[o[n]]))return!1;return!0},t.stringifySearchWith=Ct,t.trimPath=st,t.trimPathLeft=nt,t.trimPathRight=rt,t.useAwaited=tt,t.useBlocker=Ft,t.useElementScrollRestoration=function(t){const e=Q(),o=t?.getKey||At;let n="";if(t.id)n=`[data-scroll-restoration-id="${t.id}"]`;else{const e=t.getElement?.();if(!e)return;n=Ht(e)}const r=[o(e.latestLocation),n].join(jt);return Bt.state.cached[r]},t.useLayoutEffect=j,t.useLinkProps=wt,t.useLoaderData=X,t.useLoaderDeps=J,t.useMatch=z,t.useMatchRoute=W,t.useMatches=Y,t.useNavigate=function(t){const{navigate:e}=Q(),o=z({strict:!1,select:t=>t.pathname});return r.useCallback((n=>e({from:n?.to?o:void 0,...t,...n})),[])},t.useParams=dt,t.useParentMatches=function(t){const e=r.useContext(B);return Y({select:o=>(o=o.slice(o.findIndex((t=>t.id===e))),t?.select?t.select(o):o)})},t.useRouteContext=function(t){return z({...t,select:e=>t?.select?t.select(e.context):e.context})},t.useRouter=Q,t.useRouterState=G,t.useScrollRestoration=Nt,t.useSearch=ft,t.useStableCallback=function(t){const e=r.useRef(t);return e.current=t,r.useRef(((...t)=>e.current(...t))).current},t.warning=function(t,e){}}));
|
|
22
22
|
//# sourceMappingURL=index.production.js.map
|