@module-federation/treeshake-server 2.5.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/876.mjs +940 -0
  2. package/dist/frontend/adapter/index.js +12 -8
  3. package/dist/frontend/index.html +1 -1
  4. package/dist/frontend/static/css/index.513418ff5d.css +1 -0
  5. package/dist/frontend/static/js/637.b47e0403af.js +2 -0
  6. package/dist/frontend/static/js/async/427.dbb8b74259.js +2 -0
  7. package/dist/frontend/static/js/async/503.7bd056737e.js +12 -0
  8. package/dist/frontend/static/js/async/515.1b7f26d7ec.js +2 -0
  9. package/dist/frontend/static/js/index.ace3fa3d0e.js +88 -0
  10. package/dist/frontend/static/js/lib-react.7c43a84261.js +2 -0
  11. package/dist/frontend/static/js/{lib-router.949393cc.js → lib-router.5077a93d5a.js} +3 -3
  12. package/dist/index.js +29 -27
  13. package/dist/index.mjs +1 -942
  14. package/dist/server.js +23 -21
  15. package/dist/server.mjs +11 -949
  16. package/package.json +5 -5
  17. package/dist/frontend/static/css/index.16175e0f.css +0 -1
  18. package/dist/frontend/static/js/465.8ad65aff.js +0 -2
  19. package/dist/frontend/static/js/async/538.91f59a63.js +0 -12
  20. package/dist/frontend/static/js/async/873.03a2ef6b.js +0 -2
  21. package/dist/frontend/static/js/async/987.89efa6cc.js +0 -2
  22. package/dist/frontend/static/js/index.3cfd4422.js +0 -88
  23. package/dist/frontend/static/js/lib-react.c59642e3.js +0 -2
  24. /package/dist/frontend/static/js/{465.8ad65aff.js.LICENSE.txt → 637.b47e0403af.js.LICENSE.txt} +0 -0
  25. /package/dist/frontend/static/js/async/{538.91f59a63.js.LICENSE.txt → 427.dbb8b74259.js.LICENSE.txt} +0 -0
  26. /package/dist/frontend/static/js/async/{987.89efa6cc.js.LICENSE.txt → 503.7bd056737e.js.LICENSE.txt} +0 -0
  27. /package/dist/frontend/static/js/{lib-react.c59642e3.js.LICENSE.txt → lib-react.7c43a84261.js.LICENSE.txt} +0 -0
  28. /package/dist/frontend/static/js/{lib-router.949393cc.js.LICENSE.txt → lib-router.5077a93d5a.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- /*! For license information please see lib-router.949393cc.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_module_federation_treeshake_frontend=self.webpackChunk_module_federation_treeshake_frontend||[]).push([["535"],{6325(e,t,n){n.d(t,{I9:()=>eO,Zp:()=>V,zy:()=>Y});var r,a=n(2155),o="popstate";function i(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function l(e,t){if(!1===e||null==e)throw Error(t)}function u(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function s(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 c(e,t,n=null,r,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?p(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:a}}function h({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 p(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 d(e,t=!1){let n="http://localhost";"u">typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),l(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function m(e,t,n="/"){return f(e,t,n,!1)}function f(e,t,n,r,a){let o,i=w(("string"==typeof t?p(t):t).pathname||"/",n);if(null==i)return null;let s=a??((o=function e(t,n=[],r=[],a="",o=!1){let i=(t,i,u=o,s)=>{var c,h;let p,d,m={relativePath:void 0===s?t.path||"":s,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(a)&&u)return;l(m.relativePath.startsWith(a),`Absolute route path "${m.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(a.length)}let f=$([a,m.relativePath]),v=r.concat(m);t.children&&t.children.length>0&&(l(!0!==t.index,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),e(t.children,n,v,f,u)),(null!=t.path||t.index)&&n.push({path:f,score:(c=f,h=t.index,d=(p=c.split("/")).length,p.some(y)&&(d+=-2),h&&(d+=2),p.filter(e=>!y(e)).reduce((e,t)=>e+(g.test(t)?3:""===t?1:10),d)),routesMeta:v})};return t.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...a]=n,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),u=[];return u.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&u.push(...l),u.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))i(e,t,!0,n);else i(e,t)}),n}(e)).sort((e,t)=>{var n,r;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),r=t.routesMeta.map(e=>e.childrenIndex),n.length===r.length&&n.slice(0,-1).every((e,t)=>e===r[t])?n[n.length-1]-r[r.length-1]:0)}),o),c=null,h=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return u(!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}}(i);for(let e=0;null==c&&e<s.length;++e)c=function(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",i=[];for(let e=0;e<r.length;++e){let l=r[e],u=e===r.length-1,s="/"===o?t:t.slice(o.length)||"/",c=v({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},s),h=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=v({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},s)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:$([o,c.pathname]),pathnameBase:L($([o,c.pathnameBase])),route:h}),"/"!==c.pathnameBase&&(o=$([o,c.pathnameBase]))}return i}(s[e],h,r);return c}new WeakMap;var g=/^:[\w-]+$/,y=e=>"*"===e;function v(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){u("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let a=l[r];return n&&!a?e[t]=void 0:e[t]=(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function w(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var b=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function R(e,t){let n=k(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function x(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 E(e){let t=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function C(e,t,n,r=!1){let a,o;"string"==typeof e?a=p(e):(l(!(a={...e}).pathname||!a.pathname.includes("?"),x("?","pathname","search",a)),l(!a.pathname||!a.pathname.includes("#"),x("#","pathname","hash",a)),l(!a.search||!a.search.includes("#"),x("#","search","hash",a)));let i=""===e||""===a.pathname,u=i?"/":a.pathname;if(null==u)o=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:a=""}="string"==typeof e?p(e):e;return{pathname:n?(n=S(n)).startsWith("/")?R(n.substring(1),"/"):R(n,t):t,search:P(r),hash:O(a)}}(a,o),c=u&&"/"!==u&&u.endsWith("/"),h=(i||"."===u)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||h)&&(s.pathname+="/"),s}var S=e=>e.replace(/\/\/+/g,"/"),$=e=>S(e.join("/")),k=e=>e.replace(/\/+$/,""),L=e=>k(e).replace(/^\/*/,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",O=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",T=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function N(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var W="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function M(e,t){let n=e;if("string"!=typeof n||!b.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(W)try{let e=new URL(window.location.href),r=new URL(n.startsWith("//")?e.protocol+n:n),o=w(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:a=!0}catch(e){u(!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:a,to:n}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),Symbol("ResetLoaderData"),new WeakMap,new WeakMap,new WeakMap,new WeakMap;var _=a.createContext(null);_.displayName="DataRouter";var A=a.createContext(null);A.displayName="DataRouterState";var F=a.createContext(!1);function j(){return a.useContext(F)}var D=a.createContext({isTransitioning:!1});D.displayName="ViewTransition",a.createContext(new Map).displayName="Fetchers",a.createContext(null).displayName="Await";var U=a.createContext(null);U.displayName="Navigation";var B=a.createContext(null);B.displayName="Location";var I=a.createContext({outlet:null,matches:[],isDataRoute:!1});I.displayName="Route";var H=a.createContext(null);H.displayName="RouteError";var z="REACT_ROUTER_ERROR";function J(){return null!=a.useContext(B)}function Y(){return l(J(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(B).location}var q="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function K(e){a.useContext(U).static||a.useLayoutEffect(e)}function V(){let{isDataRoute:e}=a.useContext(I);return e?function(){let e,{router:t}=(l(e=a.useContext(_),en("useNavigate")),e),n=ea("useNavigate"),r=a.useRef(!1);return K(()=>{r.current=!0}),a.useCallback(async(e,a={})=>{u(r.current,q),r.current&&("number"==typeof e?await t.navigate(e):await t.navigate(e,{fromRouteId:n,...a}))},[t,n])}():function(){l(J(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(_),{basename:t,navigator:n}=a.useContext(U),{matches:r}=a.useContext(I),{pathname:o}=Y(),i=JSON.stringify(E(r)),s=a.useRef(!1);return K(()=>{s.current=!0}),a.useCallback((r,a={})=>{if(u(s.current,q),!s.current)return;if("number"==typeof r)return void n.go(r);let l=C(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:$([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)},[t,n,i,o,e])}()}function X(e,{relative:t}={}){let{matches:n}=a.useContext(I),{pathname:r}=Y(),o=JSON.stringify(E(n));return a.useMemo(()=>C(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}a.createContext(null);var Z=a.createElement(function(){let e,t,n,r=(e=a.useContext(H),t=er("useRouteError"),n=ea("useRouteError"),void 0!==e?e:t.errors?.[n]),o=N(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),i=r instanceof Error?r.stack:null,l="rgba(200,200,200, 0.5)",u={padding:"2px 4px",backgroundColor:l},s=null;return console.error("Error handled by React Router default ErrorBoundary:",r),s=a.createElement(a.Fragment,null,a.createElement("p",null,"\uD83D\uDCBF Hey developer \uD83D\uDC4B"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:u},"ErrorBoundary")," or"," ",a.createElement("code",{style:u},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},o),i?a.createElement("pre",{style:{padding:"0.5rem",backgroundColor:l}},i):null,s)},null),G=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.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&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){let t=function(e){if(e.startsWith(`${z}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new T(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(I.Provider,{value:this.props.routeContext},a.createElement(H.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(ee,{error:e},t):t}};G.contextType=F;var Q=new WeakMap;function ee({children:e,error:t}){let{basename:n}=a.useContext(U);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${z}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Q.get(t);if(r)throw r;let o=M(e.location,n);if(W&&!Q.get(t))if(o.isExternal||e.reloadDocument)window.location.href=o.absoluteURL||o.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw Q.set(t,n),n}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function et({routeContext:e,match:t,children:n}){let r=a.useContext(_);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(I.Provider,{value:e},n)}function en(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=a.useContext(A);return l(t,en(e)),t}function ea(e){let t,n=(l(t=a.useContext(I),en(e)),t),r=n.matches[n.matches.length-1];return l(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}var eo={};function ei(e,t,n){t||eo[e]||(eo[e]=!0,u(!1,n))}function el({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,useTransitions:s}){l(!J(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),h=a.useMemo(()=>({basename:c,navigator:o,static:i,useTransitions:s,future:{}}),[c,o,i,s]);"string"==typeof n&&(n=p(n));let{pathname:d="/",search:m="",hash:f="",state:g=null,key:y="default",mask:v}=n,b=a.useMemo(()=>{let e=w(d,c);return null==e?null:{location:{pathname:e,search:m,hash:f,state:g,key:y,mask:v},navigationType:r}},[c,d,m,f,g,y,r,v]);return(u(null!=b,`<Router basename="${c}"> is not able to match the URL "${d}${m}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==b)?null:a.createElement(U.Provider,{value:h},a.createElement(B.Provider,{children:t,value:b}))}(r||(r=n.t(a,2))).useOptimistic,a.memo(function({routes:e,manifest:t,future:n,state:r,isStatic:o,onError:i}){return function(e,t,n){let r;l(J(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=a.useContext(U),{matches:i}=a.useContext(I),s=i[i.length-1],c=s?s.params:{},h=s?s.pathname:"/",d=s?s.pathnameBase:"/",f=s&&s.route;{let e=f&&f.path||"";ei(h,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
1
+ /*! LICENSE: lib-router.5077a93d5a.js.LICENSE.txt */
2
+ "use strict";(self.rspackChunk_module_federation_treeshake_frontend=self.rspackChunk_module_federation_treeshake_frontend||[]).push([[535],{6325(e,t,n){var r,a=n(2155),o="popstate";function i(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function l(e,t){if(!1===e||null==e)throw Error(t)}function u(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function s(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 c(e,t,n=null,r,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?p(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:a}}function h({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 p(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 d(e,t=!1){let n="http://localhost";"u">typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),l(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function m(e,t,n="/"){return f(e,t,n,!1)}function f(e,t,n,r,a){let o,i=w(("string"==typeof t?p(t):t).pathname||"/",n);if(null==i)return null;let s=a??((o=function e(t,n=[],r=[],a="",o=!1){let i=(t,i,u=o,s)=>{var c,h;let p,d,m={relativePath:void 0===s?t.path||"":s,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(a)&&u)return;l(m.relativePath.startsWith(a),`Absolute route path "${m.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(a.length)}let f=$([a,m.relativePath]),v=r.concat(m);t.children&&t.children.length>0&&(l(!0!==t.index,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),e(t.children,n,v,f,u)),(null!=t.path||t.index)&&n.push({path:f,score:(c=f,h=t.index,d=(p=c.split("/")).length,p.some(y)&&(d+=-2),h&&(d+=2),p.filter(e=>!y(e)).reduce((e,t)=>e+(g.test(t)?3:""===t?1:10),d)),routesMeta:v})};return t.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...a]=n,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),u=[];return u.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&u.push(...l),u.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))i(e,t,!0,n);else i(e,t)}),n}(e)).sort((e,t)=>{var n,r;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),r=t.routesMeta.map(e=>e.childrenIndex),n.length===r.length&&n.slice(0,-1).every((e,t)=>e===r[t])?n[n.length-1]-r[r.length-1]:0)}),o),c=null,h=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return u(!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}}(i);for(let e=0;null==c&&e<s.length;++e)c=function(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",i=[];for(let e=0;e<r.length;++e){let l=r[e],u=e===r.length-1,s="/"===o?t:t.slice(o.length)||"/",c=v({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},s),h=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=v({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},s)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:$([o,c.pathname]),pathnameBase:L($([o,c.pathnameBase])),route:h}),"/"!==c.pathnameBase&&(o=$([o,c.pathnameBase]))}return i}(s[e],h,r);return c}new WeakMap;var g=/^:[\w-]+$/,y=e=>"*"===e;function v(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){u("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let a=l[r];return n&&!a?e[t]=void 0:e[t]=(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function w(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var b=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function R(e,t){let n=k(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function x(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 E(e){let t=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function C(e,t,n,r=!1){let a,o;"string"==typeof e?a=p(e):(l(!(a={...e}).pathname||!a.pathname.includes("?"),x("?","pathname","search",a)),l(!a.pathname||!a.pathname.includes("#"),x("#","pathname","hash",a)),l(!a.search||!a.search.includes("#"),x("#","search","hash",a)));let i=""===e||""===a.pathname,u=i?"/":a.pathname;if(null==u)o=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:a=""}="string"==typeof e?p(e):e;return{pathname:n?(n=S(n)).startsWith("/")?R(n.substring(1),"/"):R(n,t):t,search:P(r),hash:O(a)}}(a,o),c=u&&"/"!==u&&u.endsWith("/"),h=(i||"."===u)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||h)&&(s.pathname+="/"),s}var S=e=>e.replace(/\/\/+/g,"/"),$=e=>S(e.join("/")),k=e=>e.replace(/\/+$/,""),L=e=>k(e).replace(/^\/*/,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",O=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",T=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function N(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var W="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function M(e,t){let n=e;if("string"!=typeof n||!b.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(W)try{let e=new URL(window.location.href),r=new URL(n.startsWith("//")?e.protocol+n:n),o=w(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:a=!0}catch(e){u(!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:a,to:n}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),Symbol("ResetLoaderData"),new WeakMap,new WeakMap,new WeakMap,new WeakMap;var _=a.createContext(null);_.displayName="DataRouter";var A=a.createContext(null);A.displayName="DataRouterState";var F=a.createContext(!1);function j(){return a.useContext(F)}var D=a.createContext({isTransitioning:!1});D.displayName="ViewTransition",a.createContext(new Map).displayName="Fetchers",a.createContext(null).displayName="Await";var U=a.createContext(null);U.displayName="Navigation";var B=a.createContext(null);B.displayName="Location";var I=a.createContext({outlet:null,matches:[],isDataRoute:!1});I.displayName="Route";var H=a.createContext(null);H.displayName="RouteError";var z="REACT_ROUTER_ERROR";function J(){return null!=a.useContext(B)}function Y(){return l(J(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(B).location}var q="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function K(e){a.useContext(U).static||a.useLayoutEffect(e)}function V(){let{isDataRoute:e}=a.useContext(I);return e?function(){let e,{router:t}=(l(e=a.useContext(_),en("useNavigate")),e),n=ea("useNavigate"),r=a.useRef(!1);return K(()=>{r.current=!0}),a.useCallback(async(e,a={})=>{u(r.current,q),r.current&&("number"==typeof e?await t.navigate(e):await t.navigate(e,{fromRouteId:n,...a}))},[t,n])}():function(){l(J(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(_),{basename:t,navigator:n}=a.useContext(U),{matches:r}=a.useContext(I),{pathname:o}=Y(),i=JSON.stringify(E(r)),s=a.useRef(!1);return K(()=>{s.current=!0}),a.useCallback((r,a={})=>{if(u(s.current,q),!s.current)return;if("number"==typeof r)return void n.go(r);let l=C(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:$([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)},[t,n,i,o,e])}()}function X(e,{relative:t}={}){let{matches:n}=a.useContext(I),{pathname:r}=Y(),o=JSON.stringify(E(n));return a.useMemo(()=>C(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}a.createContext(null);var Z=a.createElement(function(){let e,t,n,r=(e=a.useContext(H),t=er("useRouteError"),n=ea("useRouteError"),void 0!==e?e:t.errors?.[n]),o=N(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),i=r instanceof Error?r.stack:null,l="rgba(200,200,200, 0.5)",u={padding:"2px 4px",backgroundColor:l},s=null;return console.error("Error handled by React Router default ErrorBoundary:",r),s=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:u},"ErrorBoundary")," or"," ",a.createElement("code",{style:u},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},o),i?a.createElement("pre",{style:{padding:"0.5rem",backgroundColor:l}},i):null,s)},null),G=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.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&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){let t=function(e){if(e.startsWith(`${z}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new T(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(I.Provider,{value:this.props.routeContext},a.createElement(H.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(ee,{error:e},t):t}};G.contextType=F;var Q=new WeakMap;function ee({children:e,error:t}){let{basename:n}=a.useContext(U);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${z}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Q.get(t);if(r)throw r;let o=M(e.location,n);if(W&&!Q.get(t))if(o.isExternal||e.reloadDocument)window.location.href=o.absoluteURL||o.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw Q.set(t,n),n}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function et({routeContext:e,match:t,children:n}){let r=a.useContext(_);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(I.Provider,{value:e},n)}function en(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=a.useContext(A);return l(t,en(e)),t}function ea(e){let t,n=(l(t=a.useContext(I),en(e)),t),r=n.matches[n.matches.length-1];return l(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}var eo={};function ei(e,t,n){t||eo[e]||(eo[e]=!0,u(!1,n))}function el({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,useTransitions:s}){l(!J(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),h=a.useMemo(()=>({basename:c,navigator:o,static:i,useTransitions:s,future:{}}),[c,o,i,s]);"string"==typeof n&&(n=p(n));let{pathname:d="/",search:m="",hash:f="",state:g=null,key:y="default",mask:v}=n,b=a.useMemo(()=>{let e=w(d,c);return null==e?null:{location:{pathname:e,search:m,hash:f,state:g,key:y,mask:v},navigationType:r}},[c,d,m,f,g,y,r,v]);return(u(null!=b,`<Router basename="${c}"> is not able to match the URL "${d}${m}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==b)?null:a.createElement(U.Provider,{value:h},a.createElement(B.Provider,{children:t,value:b}))}(r||(r=n.t(a,2))).useOptimistic,a.memo(function({routes:e,manifest:t,future:n,state:r,isStatic:o,onError:i}){return function(e,t,n){let r;l(J(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=a.useContext(U),{matches:i}=a.useContext(I),s=i[i.length-1],c=s?s.params:{},h=s?s.pathname:"/",d=s?s.pathnameBase:"/",f=s&&s.route;{let e=f&&f.path||"";ei(h,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
3
3
 
4
- Please change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let g=Y();if(t){let e="string"==typeof t?p(t):t;l("/"===d||e.pathname?.startsWith(d),`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 "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),r=e}else r=g;let y=r.pathname||"/",v=y;if("/"!==d){let e=d.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):m(e,{pathname:v});u(f||null!=w,`No routes matched location "${r.pathname}${r.search}${r.hash}" `),u(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${r.pathname}${r.search}${r.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=function(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,i=r?.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&i?.[e.route.id]!==void 0);l(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let u=!1,s=-1;if(n&&r){u=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||i){n.isStatic&&(u=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let c=n?.onError,h=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:$(r.matches.map(e=>e.route.path).filter(Boolean))||"/",errorInfo:t})}:void 0;return o.reduceRight((e,n,l)=>{let c,p=!1,d=null,m=null;r&&(c=i&&n.route.id?i[n.route.id]:void 0,d=n.route.errorElement||Z,u&&(s<0&&0===l?(ei("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):s===l&&(p=!0,m=n.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,l+1)),g=()=>{let t;return t=c?d:p?m:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(et,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?a.createElement(G,{location:r.location,revalidation:r.revalidation,component:d,error:c,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:h}):g()},null)}(w&&w.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:$([d,o.encodeLocation?o.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:$([d,o.encodeLocation?o.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,n);return t&&b?a.createElement(B.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...r},navigationType:"POP"}},b):b}(e,void 0,{manifest:t,state:r,isStatic:o,onError:i,future:n})}),a.Component;var eu="get",es="application/x-www-form-urlencoded";function ec(e){return"u">typeof HTMLElement&&e instanceof HTMLElement}var eh=null,ep=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ed(e){return null==e||ep.has(e)?e:(u(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${es}"`),null)}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"u">typeof window&&window;function em(e,t){if(!1===e||null==e)throw Error(t)}function ef(e,t,n,r){let a="string"==typeof e?new URL(e,"u"<typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===w(a.pathname,t)?a.pathname=`${k(t)}/_root.${r}`:a.pathname=`${k(a.pathname)}.${r}`,a}async function eg(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ey(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function ev(e,t,n){var r;let a,o;return r=(await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await eg(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(ey).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}),a=new Set,o=new Set(void 0),r.reduce((e,t)=>{!1;let n=JSON.stringify(function(e){let t={};for(let n of Object.keys(e).sort())t[n]=e[n];return t}(t));return a.has(n)||(a.add(n),e.push({key:n,link:t})),e},[])}function ew(e,t,n,r,a,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>i(e,t)||l(e,t)):"data"===o?t.filter((t,o)=>{let u=r.routes[t.route.id];if(!u||!u.hasLoader)return!1;if(i(t,o)||l(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function eb(e,t,{includeHydrateFallback:n}={}){return[...new Set(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1))]}function eR(){let e=a.useContext(_);return em(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ex(){let e=a.useContext(A);return em(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Symbol("SingleFetchRedirect");var eE=a.createContext(void 0);function eC(){let e=a.useContext(eE);return em(e,"You must render this element inside a <HydratedRouter> element"),e}function eS(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function e$({page:e,...t}){let n=j(),{router:r}=eR(),o=a.useMemo(()=>m(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?n?a.createElement(ek,{page:e,matches:o,...t}):a.createElement(eL,{page:e,matches:o,...t}):null}function ek({page:e,matches:t,...n}){let r=Y(),{future:o}=eC(),{basename:i}=eR(),l=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ef(e,i,o.unstable_trailingSlashAwareDataRequests,"rsc"),a=!1,l=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:l.push(e.route.id);return a&&l.length>0&&n.searchParams.set("_routes",l.join(",")),[n.pathname+n.search]},[i,o.unstable_trailingSlashAwareDataRequests,e,r,t]);return a.createElement(a.Fragment,null,l.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function eL({page:e,matches:t,...n}){let r=Y(),{future:o,manifest:i,routeModules:l}=eC(),{basename:u}=eR(),{loaderData:s,matches:c}=ex(),h=a.useMemo(()=>ew(e,t,c,i,r,"data"),[e,t,c,i,r]),p=a.useMemo(()=>ew(e,t,c,i,r,"assets"),[e,t,c,i,r]),d=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!h.some(t=>t.route.id===e.route.id)&&e.route.id in s&&l[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))}),0===n.size)return[];let c=ef(e,u,o.unstable_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&c.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[u,o.unstable_trailingSlashAwareDataRequests,s,r,i,h,t,e,l]),m=a.useMemo(()=>eb(p,i),[p,i]),f=function(e){let{manifest:t,routeModules:n}=eC(),[r,o]=a.useState([]);return a.useEffect(()=>{let r=!1;return ev(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}(p);return a.createElement(a.Fragment,null,d.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),m.map(e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),f.map(({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}eE.displayName="FrameworkContext";a.Component;var eP="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{eP&&(window.__reactRouterVersion="7.15.1")}catch(e){}function eO({basename:e,children:t,useTransitions:n,window:r}){let l=a.useRef();null==l.current&&(l.current=function(e={}){return function(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,u=a.history,h="POP",p=null,m=f();function f(){return(u.state||{idx:null}).idx}function g(){h="POP";let e=f(),t=null==e?null:e-m;m=e,p&&p({action:h,location:y.location,delta:t})}null==m&&(m=0,u.replaceState({...u.state,idx:m},""));let y={get action(){return h},get location(){return e(a,u)},listen(e){if(p)throw Error("A history only accepts one active listener");return a.addEventListener(o,g),p=e,()=>{a.removeEventListener(o,g),p=null}},createHref:e=>t(a,e),createURL:function(e){return d(e)},encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h="PUSH";let r=i(e)?e:c(y.location,e,t);n&&n(r,e);let o=s(r,m=f()+1),d=y.createHref(r.mask||r);try{u.pushState(o,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(d)}l&&p&&p({action:h,location:y.location,delta:1})},replace:function(e,t){h="REPLACE";let r=i(e)?e:c(y.location,e,t);n&&n(r,e);let a=s(r,m=f()),o=y.createHref(r.mask||r);u.replaceState(a,"",o),l&&p&&p({action:h,location:y.location,delta:0})},go:e=>u.go(e)};return y}(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=p(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),c("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:h(t))},function(e,t){u("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}({window:r,v5Compat:!0}));let m=l.current,[f,g]=a.useState({action:m.action,location:m.location}),y=a.useCallback(e=>{!1===n?g(e):a.startTransition(()=>g(e))},[n]);return a.useLayoutEffect(()=>m.listen(y),[m,y]),a.createElement(el,{basename:e,children:t,location:f.location,navigationType:f.action,navigator:m,useTransitions:n})}var eT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eN=a.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,mask:u,state:s,target:c,to:p,preventScrollReset:d,viewTransition:m,defaultShouldRevalidate:f,...g},y){let{basename:v,navigator:w,useTransitions:b}=a.useContext(U),R="string"==typeof p&&eT.test(p),x=M(p,v),E=function(e,{relative:t}={}){l(J(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(U),{hash:o,pathname:i,search:u}=X(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:$([n,i])),r.createHref({pathname:s,search:u,hash:o})}(p=x.to,{relative:r}),S=Y(),k=null;if(u){let e=C(u,[],S.mask?S.mask.pathname:"/",!0);"/"!==v&&(e.pathname="/"===e.pathname?v:$([v,e.pathname])),k=w.createHref(e)}let[L,P,O]=function(e,t){let n=a.useContext(eE),[r,o]=a.useState(!1),[i,l]=a.useState(!1),{onFocus:u,onBlur:s,onMouseEnter:c,onMouseLeave:h,onTouchStart:p}=t,d=a.useRef(null);a.useEffect(()=>{if("render"===e&&l(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{l(e.isIntersecting)})},{threshold:.5});return d.current&&e.observe(d.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(r){let e=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{o(!0)},f=()=>{o(!1),l(!1)};return n?"intent"!==e?[i,d,{}]:[i,d,{onFocus:eS(u,m),onBlur:eS(s,f),onMouseEnter:eS(c,m),onMouseLeave:eS(h,f),onTouchStart:eS(p,m)}]:[!1,d,{}]}(n,g),T=function(e,{target:t,replace:n,mask:r,state:o,preventScrollReset:i,relative:l,viewTransition:u,defaultShouldRevalidate:s,useTransitions:c}={}){let p=V(),d=Y(),m=X(e,{relative:l});return a.useCallback(f=>{if(0===f.button&&(!t||"_self"===t)&&!(f.metaKey||f.altKey||f.ctrlKey||f.shiftKey)){f.preventDefault();let t=void 0!==n?n:h(d)===h(m),g=()=>p(e,{replace:t,mask:r,state:o,preventScrollReset:i,relative:l,viewTransition:u,defaultShouldRevalidate:s});c?a.startTransition(()=>g()):g()}},[d,p,m,n,r,o,t,e,i,l,u,s,c])}(p,{replace:i,mask:u,state:s,target:c,preventScrollReset:d,relative:r,viewTransition:m,defaultShouldRevalidate:f,useTransitions:b}),N=!(x.isExternal||o),W=a.createElement("a",{...g,...O,href:(N?k:void 0)||x.absoluteURL||E,onClick:N?function(t){e&&e(t),t.defaultPrevented||T(t)}:e,ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(y,P),target:c,"data-discover":R||"render"!==t?void 0:"true"});return L&&!R?a.createElement(a.Fragment,null,W,a.createElement(e$,{page:E})):W});eN.displayName="Link",a.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:u,children:s,...c},h){let p,d=X(i,{relative:c.relative}),m=Y(),f=a.useContext(A),{navigator:g,basename:y}=a.useContext(U),b=null!=f&&function(e,{relative:t}={}){let n=a.useContext(D);l(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=eW("useViewTransitionState"),o=X(e,{relative:t});if(!n.isTransitioning)return!1;let i=w(n.currentLocation.pathname,r)||n.currentLocation.pathname,u=w(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=v(o.pathname,u)||null!=v(o.pathname,i)}(d)&&!0===u,R=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,x=m.pathname,E=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(x=x.toLowerCase(),E=E?E.toLowerCase():null,R=R.toLowerCase()),E&&y&&(E=w(E,y)||E);let C="/"!==R&&R.endsWith("/")?R.length-1:R.length,S=x===R||!r&&x.startsWith(R)&&"/"===x.charAt(C),$=null!=E&&(E===R||!r&&E.startsWith(R)&&"/"===E.charAt(R.length)),k={isActive:S,isPending:$,isTransitioning:b},L=S?e:void 0;p="function"==typeof n?n(k):[n,S?"active":null,$?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof o?o(k):o;return a.createElement(eN,{...c,"aria-current":L,className:p,ref:h,style:P,to:i,viewTransition:u},"function"==typeof s?s(k):s)}).displayName="NavLink",a.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:u=eu,action:s,onSubmit:c,relative:p,preventScrollReset:d,viewTransition:m,defaultShouldRevalidate:f,...g},y)=>{let{useTransitions:v}=a.useContext(U),b=function(){let{router:e}=eW("useSubmit"),{basename:t}=a.useContext(U),n=ea("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback(async(e,a={})=>{let{action:i,method:l,encType:u,formData:s,body:c}=function(e,t){let n,r,a,o,i;if(ec(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?w(i,t):null,n=e.getAttribute("method")||eu,a=ed(e.getAttribute("enctype"))||es,o=new FormData(e)}else if(ec(e)&&"button"===e.tagName.toLowerCase()||ec(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(r=l?w(l,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||eu,a=ed(e.getAttribute("formenctype"))||ed(i.getAttribute("enctype"))||es,o=new FormData(i,e),!function(){if(null===eh)try{new FormData(document.createElement("form"),0),eh=!1}catch(e){eh=!0}return eh}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else if(ec(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else n=eu,r=null,a=es,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:i}}(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++eM)}__`;await r(e,n,a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:s,body:c,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await o(a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:s,body:c,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}(),R=function(e,{relative:t}={}){let{basename:n}=a.useContext(U),r=a.useContext(I);l(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...X(e||".",{relative:t})},u=Y();if(null==e){i.search=u.search;let e=new URLSearchParams(i.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();i.search=n?`?${n}`:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:$([n,i.pathname])),h(i)}(s,{relative:p}),x="get"===u.toLowerCase()?"get":"post",E="string"==typeof s&&eT.test(s);return a.createElement("form",{ref:y,method:x,action:R,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,l=r?.getAttribute("formmethod")||u,s=()=>b(r||e.currentTarget,{fetcherKey:t,method:l,navigate:n,replace:o,state:i,relative:p,preventScrollReset:d,viewTransition:m,defaultShouldRevalidate:f});v&&!1!==n?a.startTransition(()=>s()):s()},...g,"data-discover":E||"render"!==e?void 0:"true"})}).displayName="Form";function eW(e){var t;let n=a.useContext(_);return l(n,(t=e,`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`)),n}var eM=0}}]);
4
+ Please change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let g=Y();if(t){let e="string"==typeof t?p(t):t;l("/"===d||e.pathname?.startsWith(d),`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 "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),r=e}else r=g;let y=r.pathname||"/",v=y;if("/"!==d){let e=d.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):m(e,{pathname:v});u(f||null!=w,`No routes matched location "${r.pathname}${r.search}${r.hash}" `),u(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${r.pathname}${r.search}${r.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=function(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,i=r?.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&i?.[e.route.id]!==void 0);l(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let u=!1,s=-1;if(n&&r){u=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||i){n.isStatic&&(u=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let c=n?.onError,h=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:$(r.matches.map(e=>e.route.path).filter(Boolean))||"/",errorInfo:t})}:void 0;return o.reduceRight((e,n,l)=>{let c,p=!1,d=null,m=null;r&&(c=i&&n.route.id?i[n.route.id]:void 0,d=n.route.errorElement||Z,u&&(s<0&&0===l?(ei("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):s===l&&(p=!0,m=n.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,l+1)),g=()=>{let t;return t=c?d:p?m:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(et,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?a.createElement(G,{location:r.location,revalidation:r.revalidation,component:d,error:c,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:h}):g()},null)}(w&&w.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:$([d,o.encodeLocation?o.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:$([d,o.encodeLocation?o.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,n);return t&&b?a.createElement(B.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...r},navigationType:"POP"}},b):b}(e,void 0,{manifest:t,state:r,isStatic:o,onError:i,future:n})}),a.Component;var eu="get",es="application/x-www-form-urlencoded";function ec(e){return"u">typeof HTMLElement&&e instanceof HTMLElement}var eh=null,ep=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ed(e){return null==e||ep.has(e)?e:(u(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${es}"`),null)}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"u">typeof window&&window;function em(e,t){if(!1===e||null==e)throw Error(t)}function ef(e,t,n,r){let a="string"==typeof e?new URL(e,"u"<typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===w(a.pathname,t)?a.pathname=`${k(t)}/_root.${r}`:a.pathname=`${k(a.pathname)}.${r}`,a}async function eg(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ey(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function ev(e,t,n){var r;let a,o;return r=(await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await eg(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(ey).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}),a=new Set,o=new Set(void 0),r.reduce((e,t)=>{!1;let n=JSON.stringify(function(e){let t={};for(let n of Object.keys(e).sort())t[n]=e[n];return t}(t));return a.has(n)||(a.add(n),e.push({key:n,link:t})),e},[])}function ew(e,t,n,r,a,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>i(e,t)||l(e,t)):"data"===o?t.filter((t,o)=>{let u=r.routes[t.route.id];if(!u||!u.hasLoader)return!1;if(i(t,o)||l(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function eb(e,t,{includeHydrateFallback:n}={}){return[...new Set(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1))]}function eR(){let e=a.useContext(_);return em(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ex(){let e=a.useContext(A);return em(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Symbol("SingleFetchRedirect");var eE=a.createContext(void 0);function eC(){let e=a.useContext(eE);return em(e,"You must render this element inside a <HydratedRouter> element"),e}function eS(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function e$({page:e,...t}){let n=j(),{router:r}=eR(),o=a.useMemo(()=>m(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?n?a.createElement(ek,{page:e,matches:o,...t}):a.createElement(eL,{page:e,matches:o,...t}):null}function ek({page:e,matches:t,...n}){let r=Y(),{future:o}=eC(),{basename:i}=eR(),l=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ef(e,i,o.unstable_trailingSlashAwareDataRequests,"rsc"),a=!1,l=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:l.push(e.route.id);return a&&l.length>0&&n.searchParams.set("_routes",l.join(",")),[n.pathname+n.search]},[i,o.unstable_trailingSlashAwareDataRequests,e,r,t]);return a.createElement(a.Fragment,null,l.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function eL({page:e,matches:t,...n}){let r=Y(),{future:o,manifest:i,routeModules:l}=eC(),{basename:u}=eR(),{loaderData:s,matches:c}=ex(),h=a.useMemo(()=>ew(e,t,c,i,r,"data"),[e,t,c,i,r]),p=a.useMemo(()=>ew(e,t,c,i,r,"assets"),[e,t,c,i,r]),d=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!h.some(t=>t.route.id===e.route.id)&&e.route.id in s&&l[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))}),0===n.size)return[];let c=ef(e,u,o.unstable_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&c.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[u,o.unstable_trailingSlashAwareDataRequests,s,r,i,h,t,e,l]),m=a.useMemo(()=>eb(p,i),[p,i]),f=function(e){let{manifest:t,routeModules:n}=eC(),[r,o]=a.useState([]);return a.useEffect(()=>{let r=!1;return ev(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}(p);return a.createElement(a.Fragment,null,d.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),m.map(e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),f.map(({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}eE.displayName="FrameworkContext";a.Component;var eP="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{eP&&(window.__reactRouterVersion="7.15.1")}catch(e){}function eO({basename:e,children:t,useTransitions:n,window:r}){let l=a.useRef();null==l.current&&(l.current=function(e={}){return function(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,u=a.history,h="POP",p=null,m=f();function f(){return(u.state||{idx:null}).idx}function g(){h="POP";let e=f(),t=null==e?null:e-m;m=e,p&&p({action:h,location:y.location,delta:t})}null==m&&(m=0,u.replaceState({...u.state,idx:m},""));let y={get action(){return h},get location(){return e(a,u)},listen(e){if(p)throw Error("A history only accepts one active listener");return a.addEventListener(o,g),p=e,()=>{a.removeEventListener(o,g),p=null}},createHref:e=>t(a,e),createURL:function(e){return d(e)},encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h="PUSH";let r=i(e)?e:c(y.location,e,t);n&&n(r,e);let o=s(r,m=f()+1),d=y.createHref(r.mask||r);try{u.pushState(o,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(d)}l&&p&&p({action:h,location:y.location,delta:1})},replace:function(e,t){h="REPLACE";let r=i(e)?e:c(y.location,e,t);n&&n(r,e);let a=s(r,m=f()),o=y.createHref(r.mask||r);u.replaceState(a,"",o),l&&p&&p({action:h,location:y.location,delta:0})},go:e=>u.go(e)};return y}(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=p(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),c("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:h(t))},function(e,t){u("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}({window:r,v5Compat:!0}));let m=l.current,[f,g]=a.useState({action:m.action,location:m.location}),y=a.useCallback(e=>{!1===n?g(e):a.startTransition(()=>g(e))},[n]);return a.useLayoutEffect(()=>m.listen(y),[m,y]),a.createElement(el,{basename:e,children:t,location:f.location,navigationType:f.action,navigator:m,useTransitions:n})}var eT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eN=a.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,mask:u,state:s,target:c,to:p,preventScrollReset:d,viewTransition:m,defaultShouldRevalidate:f,...g},y){let{basename:v,navigator:w,useTransitions:b}=a.useContext(U),R="string"==typeof p&&eT.test(p),x=M(p,v),E=function(e,{relative:t}={}){l(J(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(U),{hash:o,pathname:i,search:u}=X(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:$([n,i])),r.createHref({pathname:s,search:u,hash:o})}(p=x.to,{relative:r}),S=Y(),k=null;if(u){let e=C(u,[],S.mask?S.mask.pathname:"/",!0);"/"!==v&&(e.pathname="/"===e.pathname?v:$([v,e.pathname])),k=w.createHref(e)}let[L,P,O]=function(e,t){let n=a.useContext(eE),[r,o]=a.useState(!1),[i,l]=a.useState(!1),{onFocus:u,onBlur:s,onMouseEnter:c,onMouseLeave:h,onTouchStart:p}=t,d=a.useRef(null);a.useEffect(()=>{if("render"===e&&l(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{l(e.isIntersecting)})},{threshold:.5});return d.current&&e.observe(d.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(r){let e=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{o(!0)},f=()=>{o(!1),l(!1)};return n?"intent"!==e?[i,d,{}]:[i,d,{onFocus:eS(u,m),onBlur:eS(s,f),onMouseEnter:eS(c,m),onMouseLeave:eS(h,f),onTouchStart:eS(p,m)}]:[!1,d,{}]}(n,g),T=function(e,{target:t,replace:n,mask:r,state:o,preventScrollReset:i,relative:l,viewTransition:u,defaultShouldRevalidate:s,useTransitions:c}={}){let p=V(),d=Y(),m=X(e,{relative:l});return a.useCallback(f=>{if(0===f.button&&(!t||"_self"===t)&&!(f.metaKey||f.altKey||f.ctrlKey||f.shiftKey)){f.preventDefault();let t=void 0!==n?n:h(d)===h(m),g=()=>p(e,{replace:t,mask:r,state:o,preventScrollReset:i,relative:l,viewTransition:u,defaultShouldRevalidate:s});c?a.startTransition(()=>g()):g()}},[d,p,m,n,r,o,t,e,i,l,u,s,c])}(p,{replace:i,mask:u,state:s,target:c,preventScrollReset:d,relative:r,viewTransition:m,defaultShouldRevalidate:f,useTransitions:b}),N=!(x.isExternal||o),W=a.createElement("a",{...g,...O,href:(N?k:void 0)||x.absoluteURL||E,onClick:N?function(t){e&&e(t),t.defaultPrevented||T(t)}:e,ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(y,P),target:c,"data-discover":R||"render"!==t?void 0:"true"});return L&&!R?a.createElement(a.Fragment,null,W,a.createElement(e$,{page:E})):W});eN.displayName="Link",a.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:u,children:s,...c},h){let p,d=X(i,{relative:c.relative}),m=Y(),f=a.useContext(A),{navigator:g,basename:y}=a.useContext(U),b=null!=f&&function(e,{relative:t}={}){let n=a.useContext(D);l(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=eW("useViewTransitionState"),o=X(e,{relative:t});if(!n.isTransitioning)return!1;let i=w(n.currentLocation.pathname,r)||n.currentLocation.pathname,u=w(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=v(o.pathname,u)||null!=v(o.pathname,i)}(d)&&!0===u,R=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,x=m.pathname,E=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(x=x.toLowerCase(),E=E?E.toLowerCase():null,R=R.toLowerCase()),E&&y&&(E=w(E,y)||E);let C="/"!==R&&R.endsWith("/")?R.length-1:R.length,S=x===R||!r&&x.startsWith(R)&&"/"===x.charAt(C),$=null!=E&&(E===R||!r&&E.startsWith(R)&&"/"===E.charAt(R.length)),k={isActive:S,isPending:$,isTransitioning:b},L=S?e:void 0;p="function"==typeof n?n(k):[n,S?"active":null,$?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof o?o(k):o;return a.createElement(eN,{...c,"aria-current":L,className:p,ref:h,style:P,to:i,viewTransition:u},"function"==typeof s?s(k):s)}).displayName="NavLink",a.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:u=eu,action:s,onSubmit:c,relative:p,preventScrollReset:d,viewTransition:m,defaultShouldRevalidate:f,...g},y)=>{let{useTransitions:v}=a.useContext(U),b=function(){let{router:e}=eW("useSubmit"),{basename:t}=a.useContext(U),n=ea("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback(async(e,a={})=>{let{action:i,method:l,encType:u,formData:s,body:c}=function(e,t){let n,r,a,o,i;if(ec(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?w(i,t):null,n=e.getAttribute("method")||eu,a=ed(e.getAttribute("enctype"))||es,o=new FormData(e)}else if(ec(e)&&"button"===e.tagName.toLowerCase()||ec(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(r=l?w(l,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||eu,a=ed(e.getAttribute("formenctype"))||ed(i.getAttribute("enctype"))||es,o=new FormData(i,e),!function(){if(null===eh)try{new FormData(document.createElement("form"),0),eh=!1}catch(e){eh=!0}return eh}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else if(ec(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else n=eu,r=null,a=es,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:i}}(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++eM)}__`;await r(e,n,a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:s,body:c,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await o(a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:s,body:c,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}(),R=function(e,{relative:t}={}){let{basename:n}=a.useContext(U),r=a.useContext(I);l(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...X(e||".",{relative:t})},u=Y();if(null==e){i.search=u.search;let e=new URLSearchParams(i.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();i.search=n?`?${n}`:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:$([n,i.pathname])),h(i)}(s,{relative:p}),x="get"===u.toLowerCase()?"get":"post",E="string"==typeof s&&eT.test(s);return a.createElement("form",{ref:y,method:x,action:R,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,l=r?.getAttribute("formmethod")||u,s=()=>b(r||e.currentTarget,{fetcherKey:t,method:l,navigate:n,replace:o,state:i,relative:p,preventScrollReset:d,viewTransition:m,defaultShouldRevalidate:f});v&&!1!==n?a.startTransition(()=>s()):s()},...g,"data-discover":E||"render"!==e?void 0:"true"})}).displayName="Form";function eW(e){var t;let n=a.useContext(_);return l(n,(t=e,`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`)),n}var eM=0;n.d(t,{I9:()=>eO,Zp:()=>V,zy:()=>Y})}}]);
package/dist/index.js CHANGED
@@ -10,11 +10,15 @@ var __webpack_require__ = {};
10
10
  };
11
11
  })();
12
12
  (()=>{
13
- __webpack_require__.d = (exports1, definition)=>{
14
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
15
- enumerable: true,
16
- get: definition[key]
17
- });
13
+ __webpack_require__.d = (exports1, getters, values)=>{
14
+ var define = (defs, kind)=>{
15
+ for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
16
+ enumerable: true,
17
+ [kind]: defs[key]
18
+ });
19
+ };
20
+ define(getters, "get");
21
+ define(values, "value");
18
22
  };
19
23
  })();
20
24
  (()=>{
@@ -22,7 +26,7 @@ var __webpack_require__ = {};
22
26
  })();
23
27
  (()=>{
24
28
  __webpack_require__.r = (exports1)=>{
25
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
29
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
26
30
  value: 'Module'
27
31
  });
28
32
  Object.defineProperty(exports1, '__esModule', {
@@ -33,13 +37,13 @@ var __webpack_require__ = {};
33
37
  var __webpack_exports__ = {};
34
38
  __webpack_require__.r(__webpack_exports__);
35
39
  __webpack_require__.d(__webpack_exports__, {
36
- createApp: ()=>createApp,
37
- LocalObjectStore: ()=>LocalObjectStore,
38
- createLogger: ()=>createLogger,
39
- createOssAdapterRegistry: ()=>createOssAdapterRegistry,
40
40
  LocalAdapter: ()=>LocalAdapter,
41
+ LocalObjectStore: ()=>LocalObjectStore,
41
42
  createAdapterDeps: ()=>createAdapterDeps,
42
43
  createAdapterRegistry: ()=>createAdapterRegistry,
44
+ createApp: ()=>createApp,
45
+ createLogger: ()=>createLogger,
46
+ createOssAdapterRegistry: ()=>createOssAdapterRegistry,
43
47
  createServer: ()=>createServer
44
48
  });
45
49
  const external_hono_namespaceObject = require("hono");
@@ -54,7 +58,7 @@ function createDiMiddleware(deps) {
54
58
  const external_pino_namespaceObject = require("pino");
55
59
  var external_pino_default = /*#__PURE__*/ __webpack_require__.n(external_pino_namespaceObject);
56
60
  const createLogger = (opts)=>external_pino_default()({
57
- level: (null == opts ? void 0 : opts.level) ?? 'info',
61
+ level: opts?.level ?? 'info',
58
62
  formatters: {
59
63
  level (label) {
60
64
  return {
@@ -94,7 +98,7 @@ const normalizedKey = (name, v)=>`${name}@${v}`;
94
98
  function normalizeConfig(config) {
95
99
  const { shared, plugins, target, libraryType, hostName, uploadOptions } = config;
96
100
  const commonNormalizedConfig = {
97
- plugins: (null == plugins ? void 0 : plugins.sort(([a], [b])=>a.localeCompare(b))) ?? [],
101
+ plugins: plugins?.sort(([a], [b])=>a.localeCompare(b)) ?? [],
98
102
  target: Array.isArray(target) ? [
99
103
  ...target
100
104
  ].sort() : [
@@ -376,7 +380,6 @@ const retrieveSharedFilepaths = async (projectDir, type)=>{
376
380
  stats.shared.forEach((s)=>{
377
381
  const { name, version, fallback, fallbackName } = s;
378
382
  if (fallback && fallbackName) {
379
- var _s_usedExports;
380
383
  const filepath = external_node_path_default().join(distDir, fallback);
381
384
  sharedFilepaths.push({
382
385
  name,
@@ -385,7 +388,7 @@ const retrieveSharedFilepaths = async (projectDir, type)=>{
385
388
  globalName: fallbackName,
386
389
  type: t,
387
390
  modules: s.usedExports,
388
- canTreeShaking: s.canTreeShaking ?? (null == (_s_usedExports = s.usedExports) ? void 0 : _s_usedExports.length) !== 0
391
+ canTreeShaking: s.canTreeShaking ?? s.usedExports?.length !== 0
389
392
  });
390
393
  }
391
394
  });
@@ -841,18 +844,17 @@ async function serveLocalFile(c, rootDir) {
841
844
  }
842
845
  function createStaticRoute(opts) {
843
846
  const staticRoute = new external_hono_namespaceObject.Hono();
844
- const rootDir = (null == opts ? void 0 : opts.rootDir) ?? DEFAULT_STATIC_ROOT;
847
+ const rootDir = opts?.rootDir ?? DEFAULT_STATIC_ROOT;
845
848
  staticRoute.get('/tree-shaking-shared/*', async (c)=>serveLocalFile(c, rootDir));
846
849
  return staticRoute;
847
850
  }
848
851
  const timeout_namespaceObject = require("hono/timeout");
849
852
  function createApp(deps, opts) {
850
- var _opts_appExtensions, _opts_frontendAdapters;
851
- if (null == opts ? void 0 : opts.logger) setLogger(opts.logger);
852
- setRuntimeEnv((null == opts ? void 0 : opts.runtimeEnv) ?? process.env);
853
+ if (opts?.logger) setLogger(opts.logger);
854
+ setRuntimeEnv(opts?.runtimeEnv ?? process.env);
853
855
  const app = new external_hono_namespaceObject.Hono();
854
- const corsOrigin = (null == opts ? void 0 : opts.corsOrigin) ?? '*';
855
- const staticRootDir = (null == opts ? void 0 : opts.staticRootDir) ?? DEFAULT_STATIC_ROOT;
856
+ const corsOrigin = opts?.corsOrigin ?? '*';
857
+ const staticRootDir = opts?.staticRootDir ?? DEFAULT_STATIC_ROOT;
856
858
  app.use('*', (0, cors_namespaceObject.cors)({
857
859
  origin: corsOrigin,
858
860
  allowMethods: [
@@ -868,7 +870,7 @@ function createApp(deps, opts) {
868
870
  app.use('*', loggerMiddleware);
869
871
  app.use('*', createDiMiddleware(deps));
870
872
  app.use('*', (0, timeout_namespaceObject.timeout)(60000));
871
- if (null == opts ? void 0 : null == (_opts_appExtensions = opts.appExtensions) ? void 0 : _opts_appExtensions.length) for (const extend of opts.appExtensions)extend(app);
873
+ if (opts?.appExtensions?.length) for (const extend of opts.appExtensions)extend(app);
872
874
  app.get('/tree-shaking-shared/healthz', (c)=>c.json({
873
875
  status: 'ok',
874
876
  timestamp: new Date().toISOString()
@@ -877,8 +879,8 @@ function createApp(deps, opts) {
877
879
  app.route('/', createStaticRoute({
878
880
  rootDir: staticRootDir
879
881
  }));
880
- if (null == opts ? void 0 : null == (_opts_frontendAdapters = opts.frontendAdapters) ? void 0 : _opts_frontendAdapters.length) for (const adapter of opts.frontendAdapters)adapter.register(app);
881
- startPeriodicPrune(null == opts ? void 0 : opts.pruneIntervalMs);
882
+ if (opts?.frontendAdapters?.length) for (const adapter of opts.frontendAdapters)adapter.register(app);
883
+ startPeriodicPrune(opts?.pruneIntervalMs);
882
884
  return app;
883
885
  }
884
886
  const node_server_namespaceObject = require("@hono/node-server");
@@ -934,9 +936,9 @@ class LocalObjectStore {
934
936
  constructor(opts){
935
937
  localObjectStore_define_property(this, "rootDir", void 0);
936
938
  localObjectStore_define_property(this, "publicBaseUrl", void 0);
937
- this.rootDir = (null == opts ? void 0 : opts.rootDir) ?? external_node_path_default().join(process.cwd(), 'log', 'static');
939
+ this.rootDir = opts?.rootDir ?? external_node_path_default().join(process.cwd(), 'log', 'static');
938
940
  const port = process.env.PORT || 3000;
939
- const base = (null == opts ? void 0 : opts.publicBaseUrl) === '/' ? `http://localhost:${port}/` : (null == opts ? void 0 : opts.publicBaseUrl) ?? '/';
941
+ const base = opts?.publicBaseUrl === '/' ? `http://localhost:${port}/` : opts?.publicBaseUrl ?? '/';
940
942
  this.publicBaseUrl = base.endsWith('/') ? base : `${base}/`;
941
943
  }
942
944
  }
@@ -998,7 +1000,7 @@ exports.createApp = __webpack_exports__.createApp;
998
1000
  exports.createLogger = __webpack_exports__.createLogger;
999
1001
  exports.createOssAdapterRegistry = __webpack_exports__.createOssAdapterRegistry;
1000
1002
  exports.createServer = __webpack_exports__.createServer;
1001
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
1003
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
1002
1004
  "LocalAdapter",
1003
1005
  "LocalObjectStore",
1004
1006
  "createAdapterDeps",
@@ -1007,7 +1009,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
1007
1009
  "createLogger",
1008
1010
  "createOssAdapterRegistry",
1009
1011
  "createServer"
1010
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
1012
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
1011
1013
  Object.defineProperty(exports, '__esModule', {
1012
1014
  value: true
1013
1015
  });