@modern-js/devtools-client 2.37.2 → 2.39.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.
- package/dist/html/main/index.html +3 -3
- package/dist/modern.config.json +1 -1
- package/dist/routes-manifest.json +30 -42
- package/dist/static/js/371.1e9c889c.js +1 -0
- package/dist/static/js/{512.09f14b0a.js.LICENSE.txt → 371.1e9c889c.js.LICENSE.txt} +5 -5
- package/dist/static/js/371.1e9c889c.js.map +1 -0
- package/dist/static/js/async/328.a2a47b6a.js +1 -0
- package/dist/static/js/async/328.a2a47b6a.js.map +1 -0
- package/dist/static/js/async/497.63240d2a.js +1 -0
- package/dist/static/js/async/{497.2b3067fc.js.map → 497.63240d2a.js.map} +1 -1
- package/dist/static/js/async/context/builder/page.9a2ee9fa.js +1 -0
- package/dist/static/js/async/context/builder/{page.47957cf6.js.map → page.9a2ee9fa.js.map} +1 -1
- package/dist/static/js/async/context/framework/page.c7d63c62.js +1 -0
- package/dist/static/js/async/context/framework/{page.e71519b0.js.map → page.c7d63c62.js.map} +1 -1
- package/dist/static/js/async/overview/{page.efe9805b.js → page.bbc0594d.js} +1 -1
- package/dist/static/js/async/overview/page.bbc0594d.js.map +1 -0
- package/dist/static/js/async/pages/layout.29881c1e.js +1 -0
- package/dist/static/js/async/pages/{layout.1abd9f26.js.map → layout.29881c1e.js.map} +1 -1
- package/dist/static/js/async/pages/page.f0108467.js +1 -0
- package/dist/static/js/async/pages/page.f0108467.js.map +1 -0
- package/dist/static/js/lib-polyfill.db046de0.js +1 -0
- package/dist/static/js/{lib-polyfill.4cf65392.js.map → lib-polyfill.db046de0.js.map} +1 -1
- package/dist/static/js/{main.3c5467b3.js → main.8ca73d77.js} +1 -1
- package/dist/static/js/{main.3c5467b3.js.map → main.8ca73d77.js.map} +1 -1
- package/package.json +12 -12
- package/dist/static/js/512.09f14b0a.js +0 -1
- package/dist/static/js/512.09f14b0a.js.map +0 -1
- package/dist/static/js/async/497.2b3067fc.js +0 -1
- package/dist/static/js/async/context/builder/page.47957cf6.js +0 -1
- package/dist/static/js/async/context/framework/page.e71519b0.js +0 -1
- package/dist/static/js/async/overview/page.efe9805b.js.map +0 -1
- package/dist/static/js/async/pages/layout.1abd9f26.js +0 -1
- package/dist/static/js/async/pages/page.98c88553.js +0 -1
- package/dist/static/js/async/pages/page.98c88553.js.map +0 -1
- package/dist/static/js/lib-polyfill.4cf65392.js +0 -1
- /package/dist/static/css/{512.b9f8e3c6.css → 371.14b3f152.css} +0 -0
- /package/dist/static/css/async/{497.0f10bc81.css → 497.46174d9d.css} +0 -0
- /package/dist/static/css/async/context/builder/{page.0f10bc81.css → page.46174d9d.css} +0 -0
- /package/dist/static/css/async/context/framework/{page.0f10bc81.css → page.46174d9d.css} +0 -0
- /package/dist/static/css/async/overview/{page.c064ca71.css → page.cec1bb0f.css} +0 -0
- /package/dist/static/css/async/pages/{layout.7c206560.css → layout.be52df78.css} +0 -0
- /package/dist/static/css/async/pages/{page.1d9b1e12.css → page.9fb294c4.css} +0 -0
- /package/dist/static/css/{main.a46280e5.css → main.ba1f1015.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_modern_js_devtools_client=self.webpackChunk_modern_js_devtools_client||[]).push([["main"],{67271:function(e,n,r){"use strict";r.r(n),r.d(n,{bootstrap:function(){return w},createApp:function(){return b}});var t,o=r("61078"),i=r("20891"),u=r("15169"),a=r("85056"),c=r("93160"),s=r("73706"),l=r("9880"),f=r("6171"),d=r.n(f),v=r("99428"),p=r.n(v),m=r("47328"),h=r("38338"),g=r("31971"),_=r("97511"),x=new WeakMap,y=function(e){return{loaderManager:(0,_.createLoaderManager)({}),runner:e,isBrowser:!0,routeManifest:"undefined"!=typeof window&&window[m.ROUTE_MANIFEST]}},b=function(e){var n=e.plugins,r=e.props,t=g.runtime.clone();return t.usePlugin.apply(t,(0,c._)(n)),function(e){var n=t.init(),o=function(r){var t,o=d.createElement(e||d.Fragment,e?(0,u._)({},r):null,e?r.children:d.cloneElement(r.children,(0,u._)({},null===(t=r.children)||void 0===t?void 0:t.props,r))),i=(0,f.useContext)(h.RuntimeReactContext);return n.provide({element:o,props:(0,u._)({},r),context:i},{onLast:function(e){return e.element}})};e&&p(o,e);var i=n.hoc({App:o},{onLast:function(e){var t=e.App;return p(function(e){var o=e.context,i=(0,a._)(e,["context"]),c=o;!(null==c?void 0:c.runner)&&(c=y(n),n.init({context:c},{onLast:function(e){var n,r=e.context;return null==t?void 0:null===(n=t.init)||void 0===n?void 0:n.call(t,r)}}));var s=(0,u._)({},i,r);return(0,l.jsx)(h.RuntimeReactContext.Provider,{value:c,children:(0,l.jsx)(t,(0,u._)({},s))})},t)}});return x.set(i,n),i}};var w=(t=(0,o._)(function(e,n,r,t){var o,a,c,l,f,v,p,m,h,g,w,R,j,k,S;return(0,s._)(this,function(s){switch(s.label){case 0:var E;if(o=e,!(a=x.get(o))&&(o=b({plugins:[]})(o),a=x.get(o)),c=y(a),l=function(e){return a.init({context:e},{onLast:function(e){var n,r=e.context;return null==o?void 0:null===(n=o.init)||void 0===n?void 0:n.call(o,r)}})},!n)return[2,d.createElement(o,{context:c})];if(!("undefined"!=typeof window&&"nodejs"!==window.name))return[3,4];if(!("string"==typeof(E=n)||"undefined"!=typeof HTMLElement&&(0,i._)(E,HTMLElement)))return[3,2];return h=Object.keys(m=(null==(p=window._SSR_DATA)?void 0:null===(f=p.data)||void 0===f?void 0:f.loadersData)||{}).reduce(function(e,n){var r=m[n];return!1!==r.loading?e:(e[n]=r,e)},{}),Object.assign(c,(0,u._)({loaderManager:(0,_.createLoaderManager)(h,{skipStatic:!0})},p?{ssrContext:null==p?void 0:p.context}:{})),c.initialData=null==p?void 0:null===(v=p.data)||void 0===v?void 0:v.initialData,[4,l(c)];case 1:if((g=s.sent())&&(c.initialData=g),w="string"!=typeof n?n:document.getElementById(n||"root"),!t)throw Error("The `bootstrap` need provide `ReactDOM` parameter");return R=function(e){if(r)r.render(e);else if(t.createRoot)t.createRoot(w).render(e);else throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `createRoot` method")},j=function(e,n){if(!t.hydrateRoot)throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `hydrateRoot` method");t.hydrateRoot(w,e)},[2,a.client({App:o,context:c,ModernRender:R,ModernHydrate:j},{onLast:function(e){var n=e.App;R(d.createElement(n,{context:c}))}})];case 2:throw Error("`bootstrap` needs id in browser environment, it needs to be string or element");case 3:return[3,6];case 4:return Object.assign(c,{ssrContext:n,isBrowser:!1,loaderManager:(0,_.createLoaderManager)({},{skipNonStatic:n.staticGenerate,skipStatic:!n.staticGenerate})}),k=function(e){if("undefined"!=typeof Response&&(0,i._)(e,Response)&&e.status>=300&&e.status<=399){var n=e.status,r=e.headers.get("Location")||"/",t=c.ssrContext;return t&&(t.res.statusCode=n,t.res.setHeader("Location",r),t.redirection=t.redirection||{},t.redirection.status=n,t.redirection.url=r),!0}return!1},[4,l(c)];case 5:if(S=s.sent(),!k(S))return c.initialData=S,[2,a.server({App:o,context:c})];s.label=6;case 6:return[2]}})}),function(e,n,r,o){return t.apply(this,arguments)})},17500:function(e,n,r){"use strict";r.r(n),r.d(n,{RuntimeReactContext:function(){return o.RuntimeReactContext}});var t=r("67271");r.es(t,n);var o=r("38338"),i=r("89323");r.es(i,n)},97511:function(e,n,r){"use strict";r.r(n),r.d(n,{createLoaderManager:function(){return p}});var t,o,i=r("61078"),u=r("20891"),a=r("28003"),c=r("93160"),s=r("73706"),l=r("44463"),f=r.n(l),d=function(){var e=new Map;return function(n){var r=e.get(n);if(r)return r;var t=JSON.stringify(n);return f(t,"params should be not null value"),e.set(n,t),t}};(t=o||(o={}))[t.idle=0]="idle",t[t.loading=1]="loading",t[t.fulfilled=2]="fulfilled",t[t.rejected=3]="rejected";var v=function(e){var n,r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},a=arguments.length>2?arguments[2]:void 0,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],f=o.idle,d=t.data,v=t.error,p=!1,m=new Set;var h=(n=(0,i._)(function(){return(0,s._)(this,function(e){return l||f===o.loading?[2,r]:(f=o.loading,_(),[2,r=a().then(function(e){d=e,v=null,f=o.fulfilled}).catch(function(e){v=e,d=null,f=o.rejected}).finally(function(){r=null,p=!0,_()})])})}),function(){return n.apply(this,arguments)}),g=function(){return{loading:!p&&f===o.loading,reloading:p&&f===o.loading,data:d,error:(0,u._)(v,Error)?"".concat(v.message):v,_error:v}},_=function(){(0,c._)(m).forEach(function(e){e(f,g())})};return{get result(){return g()},get promise(){return r},onChange:function(e){return m.add(e),function(){m.delete(e)}},load:h}},p=function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=r.skipStatic,o=void 0!==t&&t,c=r.skipNonStatic,l=void 0!==c&&c,f=new Map,p=d();return{hasPendingLoaders:function(){var e=!0,n=!1,r=void 0;try{for(var t,o=f.values()[Symbol.iterator]();!(e=(t=o.next()).done);e=!0){var i=t.value.promise;if((0,u._)(i,Promise))return!0}}catch(e){n=!0,r=e}finally{try{!e&&null!=o.return&&o.return()}finally{if(n)throw r}}return!1},awaitPendingLoaders:(n=(0,i._)(function(){var e,n,r,t,o,i,c,l,d,v;return(0,s._)(this,function(s){switch(s.label){case 0:e=[],n=!0,r=!1,t=void 0;try{for(o=f[Symbol.iterator]();!(n=(i=o.next()).done);n=!0)l=(c=(0,a._)(i.value,2))[0],v=(d=c[1]).promise,(0,u._)(v,Promise)&&e.push([l,d])}catch(e){r=!0,t=e}finally{try{!n&&null!=o.return&&o.return()}finally{if(r)throw t}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return s.sent(),[2,e.reduce(function(e,n){var r=(0,a._)(n,2),t=r[0],o=r[1];return e[t]=o.result,e},{})]}})}),function(){return n.apply(this,arguments)}),add:function(n,r){var t=p(r.params),i=f.get(t),u=r._cache;if(!i||!1===u){var a=l&&!r.static,c=o&&r.static,s=a||c;i=v(t,void 0!==e[t]?e[t]:{data:r.initialData},n,s),f.set(t,i)}return t},get:function(e){return f.get(e)}}}},31971:function(e,n,r){"use strict";r.r(n),r.d(n,{runtime:function(){return l}});var t=r("89323"),o=(0,t.createPipeline)(),i=(0,t.createPipeline)(),u=(0,t.createAsyncPipeline)(),a=(0,t.createAsyncPipeline)(),c=(0,t.createAsyncPipeline)(),s={hoc:o,provide:i,client:u,server:a,init:c,pickContext:(0,t.createPipeline)()},l=(0,t.createManager)(s);l.createPlugin},71300:function(e,n,r){"use strict";r.r(n),r.d(n,{bootstrap:function(){return t.bootstrap},createApp:function(){return t.createApp}});var t=r("17500")},71593:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return t.default}});var t=r("94552");r.es(t,n)},75949:function(e,n,r){"use strict";r.r(n),r.d(n,{DefaultNotFound:function(){return o}});var t=r("9880"),o=function(){return(0,t.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})}},90208:function(e,n,r){"use strict";function t(){return null}r.r(n),r.d(n,{default:function(){return t}})},16623:function(e,n,r){"use strict";r.r(n),r.d(n,{Link:function(){return b},NavLink:function(){return w}});var t=r("61078"),o=r("15169"),i=r("85056"),u=r("28003"),a=r("73706"),c=r("9880"),s=r("6171"),l=r.n(s),f=r("95732"),d=r("17500");function v(e,n){return function(r){null==e||e(r),!r.defaultPrevented&&n(r)}}var p=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function m(){return(m=(0,t._)(function(e,n){var t,o;return(0,a._)(this,function(i){switch(i.label){case 0:if(!(t=e.id)||!n[t]||!(o=n[t].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(e){return null===r.e||void 0===r.e?void 0:r.e(String(e))}))];case 2:return i.sent(),[3,4];case 3:return console.error(i.sent()),[3,4];case 4:return[2]}})})).apply(this,arguments)}var h=function(e,n){var r=window.location,t=r.protocol,o=r.host,i=new URL(e,"".concat(t,"//").concat(o));return i.searchParams.append("__loader",n),i.searchParams.append("__ssrDirect","true"),i},g=function(e,n,r){var t,o=e.id;return t=h("/"===r?n:"".concat(r).concat(n),o).toString(),(0,c.jsx)("link",{rel:"prefetch",as:"fetch",href:t},t)},_=function(e){var n=e.path,r=n.pathname,t=(0,s.useContext)(d.RuntimeReactContext),o=t.routeManifest,i=t.routes,u=(o||{}).routeAssets,a=Array.isArray(i)?(0,f.matchRoutes)(i,r):[];return(Array.isArray(a)&&u&&(null==a||a.forEach(function(e){return function(e,n){return m.apply(this,arguments)}(e.route,u)})),window._SSR_DATA)?(0,c.jsx)(x,{matches:a,path:n,routeManifest:o}):null},x=function(e){var n=e.matches,r=e.path,t=e.routeManifest,o=r.pathname,i=r.search,u=r.hash,a=(0,f.useMatches)(),l=(0,f.useHref)("/"),d=(0,s.useMemo)(function(){return null==n?void 0:n.filter(function(e,n){if(!e.route.loader||"function"!=typeof e.route.loader||0===e.route.loader.length)return!1;if(e.route.shouldRevalidate){var r,t=new URL(location.pathname+location.search+location.hash,window.origin),c=new URL(o+i+u,window.origin),s=e.route.shouldRevalidate({currentUrl:t,currentParams:(null===(r=a[0])||void 0===r?void 0:r.params)||{},nextUrl:c,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof s)return s}var l=a[n];return!!(!l||l.id!==e.route.id||l.pathname!==e.pathname||l.pathname.endsWith("*")&&l.params["*"]!==e.params["*"])||!1}).map(function(e){return g(e.route,o,l)})},[n,o,t]);return(0,c.jsx)(c.Fragment,{children:d})},y=function(e){return l.forwardRef(function(n,t){var a,s,d,m,h,g,x,y,b,w,R,j,k,S,E,C=n.to,L=n.prefetch,A=void 0===L?"none":L,M=(0,i._)(n,["to","prefetch"]),O="string"==typeof C&&p.test(C);var P=(0,u._)((a=A,s=M,m=(d=(0,u._)(l.useState(!1),2))[0],h=d[1],x=(g=(0,u._)(l.useState(!1),2))[0],y=g[1],b=s.onFocus,w=s.onBlur,R=s.onMouseEnter,j=s.onMouseLeave,k=s.onTouchStart,l.useEffect(function(){"render"===a&&y(!0)},[a]),S=function(){"intent"===a&&h(!0)},E=function(){"intent"===a&&(h(!1),y(!1))},l.useEffect(function(){if(m){var e=setTimeout(function(){y(!0)},100);return function(){clearTimeout(e)}}},[m]),[x,{onFocus:v(b,S),onBlur:v(w,E),onMouseEnter:v(R,S),onMouseLeave:v(j,E),onTouchStart:v(k,S)}]),2),N=P[0],T=P[1],B=(0,f.useResolvedPath)(C);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,(0,o._)({ref:t,to:C},M,T)),N&&r.e&&!O?(0,c.jsx)(_,{path:B}):null]})})},b=y(f.Link);b.displayName="Link";var w=y(f.NavLink);w.displayName="NavLink"},87872:function(e,n,r){"use strict";r.r(n),r.d(n,{modifyRoutes:function(){return t}});var t=(0,r("89323").createWaterfall)()},94552:function(e,n,r){"use strict";r.r(n),r.d(n,{Link:function(){return i.Link},NavLink:function(){return i.NavLink},Outlet:function(){return t.Outlet},createShouldRevalidate:function(){return u.createShouldRevalidate},default:function(){return a},matchPath:function(){return t.matchPath},matchRoutes:function(){return t.matchRoutes},redirect:function(){return t.redirect},useLocation:function(){return t.useLocation},useMatches:function(){return t.useMatches},useNavigate:function(){return t.useNavigate},useParams:function(){return t.useParams}});var t=r("95732"),o=r("96856"),i=r("16623"),u=r("57312"),a=o.routerPlugin},96856:function(e,n,r){"use strict";r.r(n),r.d(n,{routerPlugin:function(){return g}});var t=r("15169"),o=r("43932"),i=r("93160"),u=r("9880"),a=r("6171"),c=r("95732"),s=r("99428"),l=r.n(s),f=r("15711"),d=r("17500"),v=r("87872"),p=r("40318"),m={routes:[]},h=!0,g=function(e){var n=e.serverBase,r=void 0===n?[]:n,s=e.supportHtml5History,h=void 0===s||s,g=e.basename,_=void 0===g?"":g,x=e.routesConfig,y=e.createRoutes,b=[];return m=x,window._SERVER_DATA=(0,f.parsedJSONFromElement)("__MODERN_SERVER_DATA__"),{name:"@modern-js/plugin-router",registerHook:{modifyRoutes:v.modifyRoutes},setup:function(e){return{init:function(e,n){var r=e.context;return r.router={useMatches:c.useMatches,useLocation:c.useLocation},Object.defineProperty(r,"routes",{get:function(){return b}}),n({context:r})},hoc:function(n,s){var f,v=n.App;if(!m&&!y)return s({App:v});var g=(f=function(n){var u,s,l=(null===(s=window._SERVER_DATA)||void 0===s?void 0:s.router.baseUrl)||(u=location.pathname,r.find(function(e){return 0===u.search(e)})||"/"),f="/"===l?(0,p.urlJoin)(l,_):l,v=window._ROUTER_DATA,g=(0,a.useContext)(d.RuntimeReactContext),x=g.unstable_getBlockNavState;return(0,a.useMemo)(function(){(null==v?void 0:v.errors)&&(v=(0,o._)((0,t._)({},v),{errors:(0,p.deserializeErrors)(v.errors)})),b=y?y():(0,c.createRoutesFromElements)((0,p.renderRoutes)({routesConfig:m,props:n})),b=e.useHookRunners().modifyRoutes(b);var r=h?(0,c.createBrowserRouter)(b,{basename:f,hydrationData:v}):(0,c.createHashRouter)(b,{basename:f,hydrationData:v}),u=r.subscribe;return r.subscribe=function(e){return u(function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];if(!(x&&x()))return e.apply(void 0,(0,i._)(r))})},Object.defineProperty(g,"remixRouter",{get:function(){return r},configurable:!0}),r},[m,n,f,v,x])},function(e){var n=f(e);return(0,u.jsx)(v,(0,o._)((0,t._)({},e),{children:(0,u.jsx)(c.RouterProvider,{router:n})}))});return(v&&(g=l(g,v)),null==x?void 0:x.globalApp)?s({App:l(g,x.globalApp)}):s({App:g})},pickContext:function(e,n){var r=e.context,i=e.pickedContext,u=r.remixRouter;if(!u)return n({context:r,pickedContext:i});var a={navigate:u.navigate,get location(){return u.state.location}};return n({context:r,pickedContext:(0,o._)((0,t._)({},i),{router:a})})}}}}}},57312:function(e,n,r){"use strict";r.r(n),r.d(n,{createShouldRevalidate:function(){return o}});var t=r("47328"),o=function(e){return function(n){var r,o,i=null===(o=window)||void 0===o?void 0:null===(r=o[t.ROUTE_MODULES])||void 0===r?void 0:r[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(n):n.defaultShouldRevalidate}}},40318:function(e,n,r){"use strict";r.r(n),r.d(n,{deserializeErrors:function(){return p},renderRoutes:function(){return d},urlJoin:function(){return v}});var t=r("15169"),o=r("85056"),i=r("28003"),u=r("9880"),a=r("95732"),c=r("76394"),s=r("15711"),l=r("75949"),f=r("90208");function d(e){var n=e.routesConfig,r=e.props,i=e.ssrMode,c=e.reporter;if(!n)return null;var d=n.routes,v=n.globalApp;return d?function(e,n){var r=n.globalApp,i=n.ssrMode,c=n.props,d=n.reporter,v=function(e){var n=e.Component,i=(0,o._)(e,["Component"]);return r?(0,u.jsx)(r,(0,t._)({Component:n},i)):(0,u.jsx)(n,(0,t._)({},i))},p=[],m=!0,h=!1,g=void 0;try{for(var _,x=e[Symbol.iterator]();!(m=(_=x.next()).done);m=!0){var y=_.value;if("nested"===y.type){var b=(0,s.renderNestedRoute)(y,{DeferredDataComponent:"stream"===i?f.default:void 0,props:c,reporter:d});p.push(b)}else{var w=(0,u.jsx)(a.Route,{path:y.path,element:(0,u.jsx)(v,{Component:y.component})},y.path);p.push(w)}}}catch(e){h=!0,g=e}finally{try{!m&&null!=x.return&&x.return()}finally{if(h)throw g}}return p.push((0,u.jsx)(a.Route,{path:"*",element:(0,u.jsx)(l.DefaultNotFound,{})},"*")),p}(d,{globalApp:v,ssrMode:i,props:r,reporter:c}):null}var v=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var t=RegExp("".concat("/","{1,}"),"g");return function(e){var n=e;return n&&"string"==typeof n?(n.startsWith(".")&&(n=n.slice(1)),!n.startsWith("/")&&(n="/".concat(n)),n.endsWith("/")&&"/"!==n&&(n=n.slice(0,n.length-1)),n):n}(n.join("/").replace(t,"/"))};function p(e){if(!e)return null;var n=Object.entries(e),r={},t=!0,o=!1,u=void 0;try{for(var a,s=n[Symbol.iterator]();!(t=(a=s.next()).done);t=!0){var l=(0,i._)(a.value,2),f=l[0],d=l[1];if(d&&"RouteErrorResponse"===d.__type)r[f]=new c.ErrorResponse(d.status,d.statusText,d.data,!0===d.internal);else if(d&&"Error"===d.__type){var v=Error(d.message);v.stack=d.stack,r[f]=v}else r[f]=d}}catch(e){o=!0,u=e}finally{try{!t&&null!=s.return&&s.return()}finally{if(o)throw u}}return r}},38338:function(e,n,r){"use strict";r.r(n),r.d(n,{RuntimeReactContext:function(){return o}});var t=r("6171"),o=(0,t.createContext)({});(0,t.createContext)({})},89323:function(e,n,r){"use strict";r.r(n),r.d(n,{createAsyncPipeline:function(){return d},createManager:function(){return N},createPipeline:function(){return f},createWaterfall:function(){return m}});var t=r("37599"),o=r("15169"),i=r("93160"),u=r("43932"),a=r("16584"),c=function(e){var n=function(r,t){return e(r,t,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;return n(r+1,e)})};return{start:function(e){return n(0,e)},dispatch:n}},s=Symbol.for("MODERN_PIPELINE"),l=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a Middleware"))},f=function(){var e,n=[],r=function(e){return c(function(r,t,o){if(r>=n.length){if(e)return e(t);throw Error("Expect returning a value, but all middlewares just calling next()")}return n[r](t,o)})},o=r(),u=function(e,n){var t;return((t=n)?r(null==t?void 0:t.onLast):o).start(e)},a=(e={},(0,t._)(e,s,!0),(0,t._)(e,"use",function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return n.push.apply(n,(0,i._)(r.map(l))),a}),(0,t._)(e,"run",u),(0,t._)(e,"middleware",function(e,n){return u(e,{onLast:n})}),e);return a},d=function(){var e=f();return(0,o._)({},e)},v=Symbol.for("MODERN_WATERFALL"),p=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a Brook or { brook: Brook }"))},m=function(){var e=f(),n=(0,u._)((0,o._)({},e),(0,t._)({use:function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.use.apply(e,(0,i._)(t.map(p).map(h))),n},run:function(n,r){return e.run(n,(0,u._)((0,o._)({},r),{onLast:function(e){return e}}))},middleware:function(n){return e.run(n,{onLast:function(e){return e}})}},v,!0));return n},h=function(e){return function(n,r){return r(e(n))}},g=Symbol.for("MODERN_ASYNC_WATERFALL"),_=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a AsyncBrook or { brook: AsyncBrook }"))},x=function(){var e=d(),n=(0,u._)((0,o._)({},e),(0,t._)({use:function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.use.apply(e,(0,i._)(t.map(_).map(y))),n},run:function(n,r){return e.run(n,(0,u._)((0,o._)({},r),{onLast:function(e){return e}}))},middleware:function(n){return e.run(n,{onLast:function(e){return e}})}},g,!0));return n},y=function(e){return function(n,r){return Promise.resolve(e(n)).then(function(e){return r(e)})}},b=Symbol.for("MODERN_WORKFLOW"),w=function(){var e=f(),n=(0,u._)((0,o._)({},e),(0,t._)({use:function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.use.apply(e,(0,i._)(t.map(R))),n},run:function(n){return e.run(n,{onLast:function(){return[]}}).filter(Boolean)}},b,!0));return n},R=function(e){return function(n,r){return[e(n)].concat((0,i._)(r(n)))}},j=Symbol.for("MODERN_PARALLEL_WORKFLOW"),k=function(){var e=f(),n=(0,u._)((0,o._)({},e),(0,t._)({run:function(n){return Promise.all(e.run(n,{onLast:function(){return[]}})).then(function(e){return e.filter(Boolean)})},use:function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.use.apply(e,(0,i._)(t.map(S))),n}},j,!0));return n},S=function(e){return function(n,r){return[e(n)].concat((0,i._)(r(n)))}},E=Symbol.for("MODERN_ASYNC_WORKFLOW"),C=function(){var e=d(),n=(0,u._)((0,o._)({},e),(0,t._)({use:function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.use.apply(e,(0,i._)(t.map(L))),n},run:function(n){var r,t=e.run(n,{onLast:function(){return[]}});return(r=t)&&"function"==typeof r.then?t.then(function(e){return e.filter(Boolean)}):t.filter(Boolean)}},E,!0));return n},L=function(e){return function(n,r){return Promise.resolve(e(n)).then(function(e){return Promise.resolve(r(n)).then(function(n){return[e].concat((0,i._)(n))})})}},A=function(e){},M=function(e){return null!==e&&"object"==typeof e},O="SYNC_PLUGIN_SYMBOL",P={name:"untitled",pre:[],post:[],rivals:[],required:[],usePlugins:[],registerHook:{}},N=function(e,n){var r,t=0,i=(0,o._)({},e),c=function(){return r},s=function(e){i=(0,o._)({},e,i)},l=function(e){var n,r;return M(e)&&(n=e,r=O,n.hasOwnProperty(r))&&e[O]===O},f=(0,u._)((0,o._)({},n),{useHookRunners:c}),d=function(e){var n=[],v=function(e){var r,t;if(r=n,t=e,!r.some(function(e){return e.name===t.name}))n.push((0,o._)({},e))},p=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(function(e){if(l(e))v(e);else if("function"==typeof e){var n=e();v(m(n.setup,n))}else M(e)&&v(m(e.setup,e))}),h},m=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(null===(e=r.usePlugins)||void 0===e?void 0:e.length)&&r.usePlugins.forEach(function(e){p(m(e.setup,e))}),r.registerHook&&s(r.registerHook),(0,u._)((0,o._)((0,u._)((0,o._)({},P),{name:"No.".concat(t++," plugin")}),r),{SYNC_PLUGIN_SYMBOL:O,setup:n})},h={createPlugin:m,isPlugin:l,usePlugin:p,init:function(){var t,u=(t=n,(0,a.pluginDagSort)(t.slice())),c=(0,o._)({},f,e);return A(u),r=T(u.map(function(e){return e.setup(c)}),i)},clear:function(){n=[]},run:function(e){return e()},registerHook:s,useRunner:c,clone:d};return h};return d()},T=function(e,n){var r={},t=D(n);if(n){var i=function(n){e.forEach(function(e){(null==e?void 0:e[n])&&t[n].use(e[n])}),r[n]=function(e,r){return t[n].run(e,(0,o._)({},r))}};for(var u in t)i(u)}return r},B=function(e){var n,r,t,o,i,u;if(null==(n=e)?void 0:n[v])return m();if(null==(r=e)?void 0:r[g])return x();if(null==(t=e)?void 0:t[b])return w();if(null==(o=e)?void 0:o[E])return C();if(null==(i=e)?void 0:i[j])return k();if(null==(u=e)?void 0:u[s])return f();throw Error("Unknown hook: ".concat(e))},D=function(e){if(!e)return e;var n={};for(var r in e)n[r]=B(e[r]);return n}},15711:function(e,n,r){"use strict";r.r(n);var t=r("99959");r.es(t,n);var o=r("16351");r.es(o,n)},16351:function(e,n,r){"use strict";r.r(n),r.d(n,{renderNestedRoute:function(){return d}});var t=r("61078"),o=r("15169"),i=r("43932"),u=r("73706"),a=r("9880"),c=r("6171"),s=r("60421"),l=r("47328"),f=r("98813"),d=function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=e.children,m=e.index,h=e.id,g=e.component,_=e.isRoot,x=e.lazyImport,y=e.config,b=e.handle,w=r.parent,R=r.DeferredDataComponent,j=r.props,k=void 0===j?{}:j,S=r.reporter,E={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:function(e,n){var r,o=e.loader;if(!o)return function(){return"function"==typeof e.lazyImport&&e.lazyImport(),null};return r=(0,t._)(function(r){var t,i,a;return(0,u._)(this,function(u){switch(u.label){case 0:return"function"==typeof e.lazyImport&&e.lazyImport(),t=(0,f.time)(),[4,o(r)];case 1:return i=u.sent(),a=t(),"undefined"==typeof document&&n&&(null==n||n.reportTiming("".concat(l.LOADER_REPORTER_NAME,"-").concat(e.id),a)),[2,i]}})}),function(e){return r.apply(this,arguments)}}(e,S),action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,o._)({},b,"object"==typeof y?null==y?void 0:y.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error){var C=(0,a.jsx)(e.error,{});E.errorElement=C}if(g){if((null==w?void 0:w.loading)&&x){var L=w.loading;n=v(g)?(0,a.jsx)(g,{fallback:(0,a.jsx)(L,{})}):(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(L,{}),children:(0,a.jsx)(g,{})})}else n=v(g)&&x?(0,a.jsx)(g,{}):_?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,(0,o._)({},k)),"undefined"==typeof document&&R&&(0,a.jsx)(R,{nonce:null==k?void 0:k.nonce})]}):x?(0,a.jsx)(c.Suspense,{fallback:null,children:(0,a.jsx)(g,{})}):(0,a.jsx)(g,{})}else e.loading=null==w?void 0:w.loading,E.element=(0,a.jsx)(s.Outlet,{});n&&(E.element=n);var A=null==p?void 0:p.map(function(n){return d(n,{parent:e,reporter:S})});return m?(0,a.jsx)(s.Route,(0,i._)((0,o._)({},E),{index:!0}),h):(0,a.jsx)(s.Route,(0,i._)((0,o._)({},E),{index:!1,children:A}),h)};function v(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}},99959:function(e,n,r){"use strict";r.r(n),r.d(n,{parsedJSONFromElement:function(){return t}});var t=function(e){var n=document.querySelectorAll("#".concat(e));if(0!==n.length){var r=n[n.length-1];if(r)try{return JSON.parse((null==r?void 0:r.textContent)||"")}catch(n){console.error("parse ".concat(e," error"),n)}}}},76394:function(e,n,r){"use strict";r.r(n);var t=r("62425");r.es(t,n)},95732:function(e,n,r){"use strict";r.r(n);var t=r("60421");r.es(t,n)},98813:function(e,n,r){"use strict";r.r(n),r.d(n,{time:function(){return u}});var t=r("28003");function o(e){var n=.001*new Date().getTime(),r=Math.floor(n),t=Math.floor(n%1*1e9);return e&&(r-=e[0],(t-=e[1])<0&&(r--,t+=1e9)),[r,t]}var i=function(e){var n=(0,t._)(o(e),2);return 1e3*n[0]+n[1]/1e6},u=function(){var e=o();return function(){return i(e)}}},47328:function(e,n,r){"use strict";r.r(n),r.d(n,{LOADER_REPORTER_NAME:function(){return i},ROUTE_MANIFEST:function(){return t},ROUTE_MODULES:function(){return o}});var t="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"},16584:function(e,n,r){"use strict";r.r(n),r.d(n,{pluginDagSort:function(){return t}});var t=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"pre",t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post",o=function(r){var t=e.find(function(e){return"string"==typeof r?e[n]===r:e[n]===r[n]});if(!t)throw Error("plugin ".concat(r," not existed"));return t},i=[];e.forEach(function(u){var a,c;null===(a=u[r])||void 0===a||a.forEach(function(r){e.find(function(e){return e.name===r})&&i.push([o(r)[n],o(u)[n]])}),null===(c=u[t])||void 0===c||c.forEach(function(r){e.find(function(e){return e.name===r})&&i.push([o(u)[n],o(r)[n]])})});for(var u=e.filter(function(e){return!i.find(function(r){return r[1]===e[n]})}),a=[];u.length;)!function(){var r=u.shift();a.push(o(r)),i=i.filter(function(e){return e[0]!==o(r)[n]}),u=e.filter(function(e){return!a.find(function(r){return r[n]===e[n]})}).filter(function(e){return!i.find(function(r){return r[1]===e[n]})})}();if(i.length){var c={};throw i.forEach(function(e){c[e[0]]=!0,c[e[1]]=!0}),Error("plugins dependencies has loop: ".concat(Object.keys(c).join(",")))}return a}},23027:function(e,n,r){e.exports={connector:"connector-be8376",connector:"connector-be8376",link:"link-_29c31",link:"link-_29c31"}},36610:function(e,n,r){e.exports={tooltip:"tooltip-_51cf0",tooltip:"tooltip-_51cf0"}},53466:function(e,n,r){e.exports={breadcrumbs:"breadcrumbs-c31e26",breadcrumbs:"breadcrumbs-c31e26",container:"container-_5a1f3",container:"container-_5a1f3","fading-mask":"fading-mask-_2a0e7",fadingMask:"fading-mask-_2a0e7",inner:"inner-_7dffa",inner:"inner-_7dffa","inner-right":"inner-right-_74879",innerRight:"inner-right-_74879",navigator:"navigator-c0f838",navigator:"navigator-c0f838","tab-button":"tab-button-_80dcc",tabButton:"tab-button-_80dcc","tab-button-inner":"tab-button-inner-_6dcd0",tabButtonInner:"tab-button-inner-_6dcd0",wrapper:"wrapper-_6e002",wrapper:"wrapper-_6e002"}},4843:function(e,n,r){},12488:function(e,n,r){},91201:function(e,n,r){"use strict";r.r(n),r("25264"),r("59769"),r("19993"),r("80192"),r("13581"),r("34770"),r("83853"),r("40789"),r("36986"),r("21159"),r("56525"),r("40993"),r("54313"),r("54935"),r("6383"),r("5737"),r("97381"),r("82623"),r("63351"),r("14560"),r("81253"),r("59000"),r("33668"),r("43016"),r("67279"),r("78494"),r("33905"),r("72659"),r("21042"),r("16679"),r("48253"),r("72013"),r("99933"),r("44073"),r("7856"),r("84160"),r("25046"),r("7382"),r("60371"),r("28963"),r("73"),r("55070"),r("73817"),r("25737"),r("7028"),r("27834"),r("21023"),r("72143"),r("18207"),r("22545"),r("71471"),r("88287"),r("83196"),r("22308"),r("6524"),r("77783"),r("84393"),r("88170"),r("63442"),r("28067"),r("77247"),r("19415"),r("81022"),r("92444"),r("79028"),r("22935"),r("32985"),r("6564"),r("97603"),r("96341"),r("42071"),r("53951"),r("51004"),r("35656"),r("75634"),r("96228"),r("24323"),r("80483"),r("68545"),r("31745"),r("45498"),r("22921"),r("39375"),r("11188"),r("42032"),r("38444"),r("12036"),r("24183"),r("60872"),r("88046"),r("78639"),r("59841"),r("26729"),r("45460"),r("90954"),r("45605"),r("36543"),r("97936"),r("75550"),r("88694"),r("3887"),r("55667"),r("86740"),r("23170"),r("8468"),r("17653"),r("66547"),r("39560"),r("50301"),r("93346"),r("48386"),r("78771"),r("83960"),r("38116"),r("31623"),r("57764"),r("32049"),r("27409"),r("5330"),r("89184"),r("60402"),r("56710"),r("42543"),r("55220"),r("8296"),r("97540"),r("63145"),r("83731"),r("92210"),r("90517"),r("11017"),r("89095"),r("68691"),r("61931"),r("62522"),r("31397"),r("83685"),r("41644"),r("79346"),r("49217"),r("62558"),r("68514"),r("49449"),r("45145"),r("52622"),r("21629"),r("60996"),r("6369"),r("72880"),r("63298"),r("52832"),r("68900"),r("58554"),r("87253"),r("54368"),r("60049"),r("16790"),r("30406"),r("38193"),r("68902"),r("85179"),r("13767"),r("16549"),r("44400"),r("43186"),r("24468"),r("19272"),r("77544"),r("99353"),r("36852"),r("16476"),r("92260"),r("78420"),r("55001"),r("21860"),r("39193"),r("86167"),r("77253"),r("9316"),r("73455"),r("90095"),r("68571"),r("86842"),r("58618"),r("34453"),r("19418"),r("65881"),r("37367"),r("190"),r("10283"),r("22111"),r("69392"),r("65383"),r("69724"),r("50848"),r("64008"),r("31898"),r("54130"),r("43136"),r("3686"),r("81048"),r("58754"),r("19416"),r("70071"),r("97588"),r("75213"),r("88265"),r("57275"),r("91654"),r("83788"),r("70920"),r("280"),r("67399"),r("84881"),r("54622"),r("93019"),r("65163"),r("21687"),r("87805"),r("19578"),r("56610"),r("85390"),r("43976"),r("2516"),r("99936"),r("33346"),r("46300"),r("45839"),r("83872"),r("28875"),r("46407"),r("99373"),r("53726"),r("9345"),r("12116"),r("41730"),r("49387"),r("99109"),r("56786"),r("78391"),r("75810"),r("85291"),r("61990"),r("67097"),r("43350"),r("46275"),r("35014"),r("30146"),r("7429"),r("77351"),r("44783"),r("37840"),r("32502"),r("90639"),r("7709"),r("54939"),r("96127"),r("33369"),r("18954"),r("51038"),r("2147"),r("58466"),r("91204"),r("83314"),r("12778"),r("1950"),r("44384"),r("92402"),r("15862"),r("98909"),r("31034"),r("50144"),r("18766"),r("55879"),r("8781"),r("97739"),r("98844"),r("89491"),r("24415"),r("88523"),r("54763"),r("48068"),r("70675"),r("6767"),r("29655"),r("36454"),r("13689"),r("93322"),r("74755")},54094:function(e,n,r){"use strict";r.r(n),window.__assetPrefix__="/__devtools"},13773:function(e,n,r){"use strict";r.r(n),r.d(n,{Breadcrumbs:function(){return v}});var t=r("15169"),o=r("43932"),i=r("9880");r("6171");var u=r("20918"),a=r.n(u),c=r("54824"),s=r("43862"),l=r("71593"),f=r("23027"),d=r("94574"),v=e=>{var n=[],r=[];for(var u of(0,l.useMatches)()){var v=a.get(u,"handle.breadcrumb");if(v){for(var p of a.castArray(v).filter(a.isObject))if("title"in p){var m="pathname"in p&&a.isString(p.pathname)?p.pathname:u.pathname;r.push({title:p.title,pathname:m,id:u.id})}}}for(var[h,g]of Object.entries(r)){var _=[g.id,g.pathname,h];n.push((0,i.jsx)(d.Link,{color:"gray",size:"2",to:g.pathname,children:g.title},_.join("_"))),g!==r.at(-1)&&(_.push("#connector"),n.push((0,i.jsx)(s.ChevronRightIcon,{className:f.connector},_.join("_"))))}return(0,i.jsx)(c.Flex,(0,o._)((0,t._)({align:"center",height:"8",gap:"1",px:"4"},e),{children:n}))}},94574:function(e,n,r){"use strict";r.r(n),r.d(n,{Link:function(){return s}});var t=r("15169"),o=r("43932"),i=r("85056"),u=r("9880"),a=r("71593"),c=r("54824"),s=e=>{var{to:n,children:r}=e,s=(0,i._)(e,["to","children"]);return(0,u.jsx)(c.Link,(0,o._)((0,t._)({},s),{asChild:!0,children:(0,u.jsx)(a.Link,{to:n,children:r})}))}},43385:function(e,n,r){"use strict";r.r(n),r.d(n,{SelectLink:function(){return u}});var t=r("9880");r("6171");var o=r("54824"),i=r("71593"),u=e=>{var{items:n}=e,r=(0,i.useNavigate)(),u=(0,i.useLocation)(),a=n.find(e=>(0,i.matchPath)(e.to,u.pathname));return(0,t.jsxs)(o.Select.Root,{size:"1",value:null==a?void 0:a.to,onValueChange:r,children:[(0,t.jsx)(o.Select.Trigger,{}),(0,t.jsx)(o.Select.Content,{position:"popper",children:n.map(e=>{var{title:n,to:r}=e;return(0,t.jsx)(o.Select.Item,{value:r,children:n},r)})})]})}},11281:function(e,n,r){"use strict";r.r(n),r.d(n,{Theme:function(){return p}});var t=r("15169"),o=r("43932"),i=r("85056"),u=r("9880"),a=r("6171"),c=r("54824"),s=r("78164"),l=r("20918"),f=r.n(l),d=e=>["inherit","light","dark"].includes(e),v=e=>{var{children:n}=e,{appearance:r}=(0,c.useThemeContext)();return(0,a.useEffect)(()=>{localStorage.setItem("__modern_js_devtools_appearance",r),"inherit"!==r&&(document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(r))},[r]),(0,u.jsx)(u.Fragment,{children:n})},p=e=>{var{appearance:n,children:r}=e,a=(0,i._)(e,["appearance","children"]),l=n||f.castArray((0,s.getQuery)(location.href).appearance)[0]||localStorage.getItem("__modern_js_devtools_appearance")||"light";if(!d(l))throw Error("Initial appearance value is invalid.");return(0,u.jsx)(c.Theme,(0,o._)((0,t._)({},a),{appearance:l,children:(0,u.jsx)(v,{children:r})}))}},88884:function(e,n,r){"use strict";r.r(n),r.d(n,{getDefaultTabs:function(){return i}});var t=r("9880"),o=r("17880"),i=()=>[{name:"overview",title:"Overview",icon:(0,t.jsx)(o.HiOutlineHome,{}),view:{type:"builtin",url:"/overview"}},{name:"config",title:"Config",icon:(0,t.jsx)(o.HiOutlineAdjustmentsHorizontal,{}),view:{type:"builtin",url:"/config"}},{name:"pages",title:"Pages",icon:(0,t.jsx)(o.HiOutlineRectangleGroup,{}),view:{type:"builtin",url:"/pages"}},{name:"context",title:"Context",icon:(0,t.jsx)(o.HiOutlineCube,{}),view:{type:"builtin",url:"/context"}}]},40368:function(e,n,r){"use strict";r.r(n),r.d(n,{handle:function(){return d}});var t=r("9880");r("6171");var o=r("54824"),i=r("71593"),u=r("20918"),a=r.n(u),c=r("36610"),s=e=>{var{name:n,describe:r}=e;return(0,t.jsx)(o.Tooltip,{className:c.tooltip,side:"right",content:r.map(e=>(0,t.jsx)(o.Text,{style:{display:"block"},children:e},e)),children:(0,t.jsx)(o.Select.Item,{value:n,children:(0,t.jsx)(o.Box,{children:a.startCase(n)})})},n)},l=[{name:"framework",describe:["Framework config is a superset of Builder config, ","extending it with additional configurations that ","include server-side capabilities and so on."]},{name:"builder",describe:["Builder provides wrapped building capabilities for scheduling Bundler, ","as well as other plugins and tools."]},{name:"bundler",describe:["Bundler is typically a low-level build tool like webpack or Rspack, ","and their configuration options differ significantly from higher-level tools."]}],f=[{name:"resolved",describe:["The configuration content passed by the user or superior tools,","usually exposed to the plugin API for modification."]},{name:"transformed",describe:["The modified and frozen configuration objects,","typically exposed to the plugin API for consumption."]}],d={breadcrumb:[{title:"Config"},{title:(0,t.jsx)(()=>{var e=(0,i.useLocation)(),n=(0,i.useNavigate)(),[r,u]=e.pathname.split("/").slice(2);return(0,t.jsxs)(o.Select.Root,{size:"1",value:r,onValueChange:e=>{n("/config/".concat(e,"/").concat(u))},children:[(0,t.jsx)(o.Select.Trigger,{children:r}),(0,t.jsx)(o.Select.Content,{children:l.map(e=>{var{name:n,describe:r}=e;return(0,t.jsx)(s,{name:n,describe:r},n)})})]})},{})},{title:(0,t.jsx)(()=>{var e=(0,i.useLocation)(),n=(0,i.useNavigate)(),[r,u]=e.pathname.split("/").slice(2);return(0,t.jsxs)(o.Select.Root,{size:"1",value:u,onValueChange:e=>{n("/config/".concat(r,"/").concat(e))},children:[(0,t.jsx)(o.Select.Trigger,{children:u}),(0,t.jsx)(o.Select.Content,{children:f.map(e=>{var{name:n,describe:r}=e;return(0,t.jsx)(s,{name:n,describe:r},n)})})]})},{})}]}},9555:function(e,n,r){"use strict";r.r(n),r.d(n,{handle:function(){return i}});var t=r("9880"),o=r("43385"),i={breadcrumb:[{title:"Context"},{title:(0,t.jsx)(o.SelectLink,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},55630:function(e,n,r){"use strict";r.r(n),r.d(n,{handle:function(){return i}});var t=r("9880"),o=r("17880"),i={breadcrumb:{title:(0,t.jsx)(o.HiHomeModern,{}),pathname:"/overview"}}},14539:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return p}});var t=r("9880");r("4843"),r("6171");var o=r("71593"),i=r("54824"),u=r("17880"),a=r("53466"),c=r("27288"),s=r("11281"),l=r("13773"),f=e=>{var{tab:n}=e,r="";if("builtin"===n.view.type)r=n.view.url;else if("iframe"===n.view.type)r="/external/".concat(n.view.src);else throw Error('Invalid tab view of "'.concat(n.name,'".'));return(0,t.jsx)(i.Tooltip,{content:n.title,side:"right",children:(0,t.jsx)(o.NavLink,{to:r,className:a.tabButton,children:(0,t.jsx)(i.Flex,{justify:"center",align:"center",p:"1",className:a.tabButtonInner,children:(0,t.jsx)(i.Box,{height:"5",width:"5",asChild:!0,children:n.icon})})})})},d=()=>{var{appearance:e}=(0,i.useThemeContext)();return(0,t.jsx)(i.Tooltip,{content:"Appearance",side:"right",children:(0,t.jsx)(i.Box,{className:a.tabButton,onClick:()=>{(0,i.updateThemeAppearanceClass)("light"===e?"dark":"light")},children:(0,t.jsx)(i.Flex,{justify:"center",align:"center",p:"1",className:a.tabButtonInner,children:(0,t.jsx)(i.Box,{height:"5",width:"5",asChild:!0,children:"dark"===e?(0,t.jsx)(u.HiOutlineMoon,{}):(0,t.jsx)(u.HiOutlineSun,{})})})})})},v=()=>{var{tabs:e}=(0,c.useStoreSnapshot)();return(0,t.jsxs)(i.Flex,{direction:"column",shrink:"0",className:a.navigator,children:[e.map(e=>(0,t.jsx)(f,{tab:e},e.name)),(0,t.jsx)(i.Box,{grow:"1"}),(0,t.jsx)(d,{})]})};function p(){return(0,t.jsx)(c.StoreContextProvider,{children:(0,t.jsxs)(s.Theme,{className:a.wrapper,accentColor:"blue",panelBackground:"solid",children:[(0,t.jsx)(i.Box,{className:a.inner,children:(0,t.jsx)(i.Box,{className:a.innerRight,children:(0,t.jsx)(i.Box,{className:a.container,children:(0,t.jsx)(o.Outlet,{})})})}),(0,t.jsx)(i.ThemePanel,{defaultOpen:!1,style:{display:"none"}}),(0,t.jsx)(v,{}),(0,t.jsx)(l.Breadcrumbs,{className:a.breadcrumbs})]})})}},24675:function(e,n,r){"use strict";r.r(n),r.d(n,{handle:function(){return t}});var t={breadcrumb:{title:"Overview"}}},27288:function(e,n,r){"use strict";r.r(n),r.d(n,{StoreContextProvider:function(){return x},useStore:function(){return y},useStoreSnapshot:function(){return b}});var t=r("61078"),o=r("9880"),i=r("20918"),u=r.n(i),a=r("6171"),c=r("34104"),s=r("87883"),l=r.n(s),f=r("78164"),d=r("63645"),v=r("78581"),p=r("86040"),m=r("88884"),h=(0,a.createContext)(null),g=()=>{var e=(0,f.getQuery)(location.href).src||sessionStorage.getItem("devtools-data-source");if(!u.isString(e))throw TypeError("Can't connection to data source: ".concat(e||"<EMPTY>"));return sessionStorage.setItem("devtools-data-source",e),e},_=()=>({framework:{context:l(),config:{resolved:l(),transformed:l()}},builder:{context:l(),config:{resolved:l(),transformed:l()}},bundler:{config:{resolved:l(),transformed:l()}},dependencies:l(),compileTimeCost:l(),clientDefinition:l()}),x=e=>{var{children:n}=e,r=(0,a.useMemo)(g,[]),i=(0,a.useMemo)(_,[]),u=(0,p.useProxyFrom)(()=>({dataSource:r,location:"/",framework:{context:i.framework.context.promise,fileSystemRoutes:{},config:{resolved:i.framework.config.resolved.promise,transformed:i.framework.config.transformed.promise}},builder:{context:i.builder.context.promise,config:{resolved:i.builder.config.resolved.promise,transformed:i.builder.config.transformed.promise}},bundler:{config:{resolved:i.bundler.config.resolved.promise,transformed:i.bundler.config.transformed.promise}},tabs:(0,m.getDefaultTabs)().map(e=>(0,d.ref)(e)),version:"2.37.2",dependencies:i.dependencies.promise,compileTimeCost:i.compileTimeCost.promise,name:i.clientDefinition.promise.then(e=>e.name),packages:i.clientDefinition.promise.then(e=>e.packages),assets:i.clientDefinition.promise.then(e=>e.assets),announcement:i.clientDefinition.promise.then(e=>e.announcement),breadcrumb:[]}));return(0,c.useAsync)((0,t._)(function*(){var{server:e}=yield(0,v.setupServerConnection)({url:r,$store:u});for(var{entryName:n}of(i.framework.context.resolve(e.getAppContext()),i.framework.config.resolved.resolve(e.getFrameworkConfig()),i.framework.config.transformed.resolve(e.getTransformedFrameworkConfig()),i.builder.context.resolve(e.getBuilderContext()),i.builder.config.resolved.resolve(e.getBuilderConfig()),i.builder.config.transformed.resolve(e.getTransformedBuilderConfig()),i.bundler.config.resolved.resolve(e.getBundlerConfigs()),i.bundler.config.transformed.resolve(e.getTransformedBundlerConfigs()),i.dependencies.resolve(e.getDependencies()),i.compileTimeCost.resolve(e.getCompileTimeCost()),i.clientDefinition.resolve(e.getClientDefinition()),(yield u.framework.context).entrypoints))u.framework.fileSystemRoutes[n]=e.getFileSystemRoutes(n)}),[r,i]),(0,o.jsx)(h.Provider,{value:u,children:n})},y=()=>{var e=(0,a.useContext)(h);if(!e)throw Error("Can't resolve the context of global store.");return e},b=()=>(0,d.useSnapshot)(y())},74886:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return o}});var t=r("71593"),o=e=>{var{params:n}=e;if(!n.toolkit||!n.type)return(0,t.redirect)("/404");if(!["framework","builder","bundler"].includes(n.toolkit))return(0,t.redirect)("/404");if(!["resolved","transformed"].includes(n.type))return(0,t.redirect)("/404");else return null}},39027:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i}});var t=r("71593"),o=r("78164"),i=e=>{var{request:n}=e,r=(0,o.resolveURL)(n.url,"./builder/transformed");return(0,t.redirect)(r)}},42974:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i}});var t=r("71593"),o=r("78164"),i=e=>{var{request:n}=e,r=(0,o.resolveURL)(n.url,"./builder");return(0,t.redirect)(r)}},82141:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i}});var t=r("71593"),o=r("78164"),i=e=>{var{request:n}=e,r=(0,o.resolveURL)(n.url,"./overview");return(0,t.redirect)(r)}},79652:function(e,n,r){"use strict";r.r(n),r.d(n,{handle:function(){return t}});var t={breadcrumb:{title:"Pages"}}},78581:function(e,n,r){"use strict";r.r(n),r.d(n,{setupServerConnection:function(){return u}});var t,o=r("61078"),i=r("82865");var u=(t=(0,o._)(function*(e){var{url:n,$store:r}=e,t=new window.WebSocket(n),o=(0,i.createBirpc)({refresh:()=>location.reload(),updateFileSystemRoutes(e){var{entrypoint:n,routes:t}=e;r.framework.fileSystemRoutes[n.entryName]=t}},{post:e=>t.send(e),on:e=>t.onmessage=e,serialize:e=>JSON.stringify(e),deserialize:e=>JSON.parse(e.data.toString())});return yield new Promise((e,r)=>{t.onopen=()=>e(),t.onerror=()=>r(Error("Failed connect to WebSocket server: ".concat(n)))}),{server:o}}),function(e){return t.apply(this,arguments)})},86040:function(e,n,r){"use strict";r.r(n),r.d(n,{useProxyFrom:function(){return i}}),r("20918");var t=r("6171"),o=r("63645"),i=e=>(0,t.useMemo)(()=>(0,o.proxy)(e()),[])}},function(e){var n=function(n){return e(e.s=n)};e.O(0,["512","lib-lodash","lib-polyfill","lib-react","lib-router"],function(){return n("54094"),n("91201"),n("61599"),n("12488"),n("16666")}),e.O()}]);
|
|
1
|
+
(self.webpackChunk_modern_js_devtools_client=self.webpackChunk_modern_js_devtools_client||[]).push([["main"],{67271:function(e,n,r){"use strict";r.r(n),r.d(n,{bootstrap:function(){return w},createApp:function(){return b}});var t,o=r("61078"),i=r("20891"),u=r("15169"),a=r("85056"),c=r("93160"),s=r("73706"),l=r("9880"),f=r("6171"),d=r.n(f),v=r("99428"),p=r.n(v),m=r("47328"),h=r("38338"),g=r("31971"),_=r("97511"),x=new WeakMap,y=function(e){return{loaderManager:(0,_.createLoaderManager)({}),runner:e,isBrowser:!0,routeManifest:"undefined"!=typeof window&&window[m.ROUTE_MANIFEST]}},b=function(e){var n=e.plugins,r=e.props,t=g.runtime.clone();return t.usePlugin.apply(t,(0,c._)(n)),function(e){var n=t.init(),o=function(r){var t,o=d.createElement(e||d.Fragment,e?(0,u._)({},r):null,e?r.children:d.cloneElement(r.children,(0,u._)({},null===(t=r.children)||void 0===t?void 0:t.props,r))),i=(0,f.useContext)(h.RuntimeReactContext);return n.provide({element:o,props:(0,u._)({},r),context:i},{onLast:function(e){return e.element}})};e&&p(o,e);var i=n.hoc({App:o},{onLast:function(e){var t=e.App;return p(function(e){var o=e.context,i=(0,a._)(e,["context"]),c=o;!(null==c?void 0:c.runner)&&(c=y(n),n.init({context:c},{onLast:function(e){var n,r=e.context;return null==t?void 0:null===(n=t.init)||void 0===n?void 0:n.call(t,r)}}));var s=(0,u._)({},i,r);return(0,l.jsx)(h.RuntimeReactContext.Provider,{value:c,children:(0,l.jsx)(t,(0,u._)({},s))})},t)}});return x.set(i,n),i}};var w=(t=(0,o._)(function(e,n,r,t){var o,a,c,l,f,v,p,m,h,g,w,R,j,k,S;return(0,s._)(this,function(s){switch(s.label){case 0:var E;if(o=e,!(a=x.get(o))&&(o=b({plugins:[]})(o),a=x.get(o)),c=y(a),l=function(e){return a.init({context:e},{onLast:function(e){var n,r=e.context;return null==o?void 0:null===(n=o.init)||void 0===n?void 0:n.call(o,r)}})},!n)return[2,d.createElement(o,{context:c})];if(!("undefined"!=typeof window&&"nodejs"!==window.name))return[3,4];if(!("string"==typeof(E=n)||"undefined"!=typeof HTMLElement&&(0,i._)(E,HTMLElement)))return[3,2];return h=Object.keys(m=(null==(p=window._SSR_DATA)?void 0:null===(f=p.data)||void 0===f?void 0:f.loadersData)||{}).reduce(function(e,n){var r=m[n];return!1!==r.loading?e:(e[n]=r,e)},{}),Object.assign(c,(0,u._)({loaderManager:(0,_.createLoaderManager)(h,{skipStatic:!0})},p?{ssrContext:null==p?void 0:p.context}:{})),c.initialData=null==p?void 0:null===(v=p.data)||void 0===v?void 0:v.initialData,[4,l(c)];case 1:if((g=s.sent())&&(c.initialData=g),w="string"!=typeof n?n:document.getElementById(n||"root"),!t)throw Error("The `bootstrap` need provide `ReactDOM` parameter");return R=function(e){if(r)r.render(e);else if(t.createRoot)t.createRoot(w).render(e);else throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `createRoot` method")},j=function(e,n){if(!t.hydrateRoot)throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `hydrateRoot` method");t.hydrateRoot(w,e)},[2,a.client({App:o,context:c,ModernRender:R,ModernHydrate:j},{onLast:function(e){var n=e.App;R(d.createElement(n,{context:c}))}})];case 2:throw Error("`bootstrap` needs id in browser environment, it needs to be string or element");case 3:return[3,6];case 4:return Object.assign(c,{ssrContext:n,isBrowser:!1,loaderManager:(0,_.createLoaderManager)({},{skipNonStatic:n.staticGenerate,skipStatic:!n.staticGenerate})}),k=function(e){if("undefined"!=typeof Response&&(0,i._)(e,Response)&&e.status>=300&&e.status<=399){var n=e.status,r=e.headers.get("Location")||"/",t=c.ssrContext;return t&&(t.res.statusCode=n,t.res.setHeader("Location",r),t.redirection=t.redirection||{},t.redirection.status=n,t.redirection.url=r),!0}return!1},[4,l(c)];case 5:if(S=s.sent(),!k(S))return c.initialData=S,[2,a.server({App:o,context:c})];s.label=6;case 6:return[2]}})}),function(e,n,r,o){return t.apply(this,arguments)})},17500:function(e,n,r){"use strict";r.r(n),r.d(n,{RuntimeReactContext:function(){return o.RuntimeReactContext}});var t=r("67271");r.es(t,n);var o=r("38338"),i=r("89323");r.es(i,n)},97511:function(e,n,r){"use strict";r.r(n),r.d(n,{createLoaderManager:function(){return p}});var t,o,i=r("61078"),u=r("20891"),a=r("28003"),c=r("93160"),s=r("73706"),l=r("44463"),f=r.n(l),d=function(){var e=new Map;return function(n){var r=e.get(n);if(r)return r;var t=JSON.stringify(n);return f(t,"params should be not null value"),e.set(n,t),t}};(t=o||(o={}))[t.idle=0]="idle",t[t.loading=1]="loading",t[t.fulfilled=2]="fulfilled",t[t.rejected=3]="rejected";var v=function(e){var n,r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},a=arguments.length>2?arguments[2]:void 0,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],f=o.idle,d=t.data,v=t.error,p=!1,m=new Set;var h=(n=(0,i._)(function(){return(0,s._)(this,function(e){return l||f===o.loading?[2,r]:(f=o.loading,_(),[2,r=a().then(function(e){d=e,v=null,f=o.fulfilled}).catch(function(e){v=e,d=null,f=o.rejected}).finally(function(){r=null,p=!0,_()})])})}),function(){return n.apply(this,arguments)}),g=function(){return{loading:!p&&f===o.loading,reloading:p&&f===o.loading,data:d,error:(0,u._)(v,Error)?"".concat(v.message):v,_error:v}},_=function(){(0,c._)(m).forEach(function(e){e(f,g())})};return{get result(){return g()},get promise(){return r},onChange:function(e){return m.add(e),function(){m.delete(e)}},load:h}},p=function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=r.skipStatic,o=void 0!==t&&t,c=r.skipNonStatic,l=void 0!==c&&c,f=new Map,p=d();return{hasPendingLoaders:function(){var e=!0,n=!1,r=void 0;try{for(var t,o=f.values()[Symbol.iterator]();!(e=(t=o.next()).done);e=!0){var i=t.value.promise;if((0,u._)(i,Promise))return!0}}catch(e){n=!0,r=e}finally{try{!e&&null!=o.return&&o.return()}finally{if(n)throw r}}return!1},awaitPendingLoaders:(n=(0,i._)(function(){var e,n,r,t,o,i,c,l,d,v;return(0,s._)(this,function(s){switch(s.label){case 0:e=[],n=!0,r=!1,t=void 0;try{for(o=f[Symbol.iterator]();!(n=(i=o.next()).done);n=!0)l=(c=(0,a._)(i.value,2))[0],v=(d=c[1]).promise,(0,u._)(v,Promise)&&e.push([l,d])}catch(e){r=!0,t=e}finally{try{!n&&null!=o.return&&o.return()}finally{if(r)throw t}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return s.sent(),[2,e.reduce(function(e,n){var r=(0,a._)(n,2),t=r[0],o=r[1];return e[t]=o.result,e},{})]}})}),function(){return n.apply(this,arguments)}),add:function(n,r){var t=p(r.params),i=f.get(t),u=r._cache;if(!i||!1===u){var a=l&&!r.static,c=o&&r.static,s=a||c;i=v(t,void 0!==e[t]?e[t]:{data:r.initialData},n,s),f.set(t,i)}return t},get:function(e){return f.get(e)}}}},31971:function(e,n,r){"use strict";r.r(n),r.d(n,{runtime:function(){return l}});var t=r("89323"),o=(0,t.createPipeline)(),i=(0,t.createPipeline)(),u=(0,t.createAsyncPipeline)(),a=(0,t.createAsyncPipeline)(),c=(0,t.createAsyncPipeline)(),s={hoc:o,provide:i,client:u,server:a,init:c,pickContext:(0,t.createPipeline)()},l=(0,t.createManager)(s);l.createPlugin},71300:function(e,n,r){"use strict";r.r(n),r.d(n,{bootstrap:function(){return t.bootstrap},createApp:function(){return t.createApp}});var t=r("17500")},71593:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return t.default}});var t=r("94552");r.es(t,n)},75949:function(e,n,r){"use strict";r.r(n),r.d(n,{DefaultNotFound:function(){return o}});var t=r("9880"),o=function(){return(0,t.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})}},90208:function(e,n,r){"use strict";function t(){return null}r.r(n),r.d(n,{default:function(){return t}})},16623:function(e,n,r){"use strict";r.r(n),r.d(n,{Link:function(){return b},NavLink:function(){return w}});var t=r("61078"),o=r("15169"),i=r("85056"),u=r("28003"),a=r("73706"),c=r("9880"),s=r("6171"),l=r.n(s),f=r("95732"),d=r("17500");function v(e,n){return function(r){null==e||e(r),!r.defaultPrevented&&n(r)}}var p=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function m(){return(m=(0,t._)(function(e,n){var t,o;return(0,a._)(this,function(i){switch(i.label){case 0:if(!(t=e.id)||!n[t]||!(o=n[t].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(e){return null===r.e||void 0===r.e?void 0:r.e(String(e))}))];case 2:return i.sent(),[3,4];case 3:return console.error(i.sent()),[3,4];case 4:return[2]}})})).apply(this,arguments)}var h=function(e,n){var r=window.location,t=r.protocol,o=r.host,i=new URL(e,"".concat(t,"//").concat(o));return i.searchParams.append("__loader",n),i.searchParams.append("__ssrDirect","true"),i},g=function(e,n,r){var t,o=e.id;return t=h("/"===r?n:"".concat(r).concat(n),o).toString(),(0,c.jsx)("link",{rel:"prefetch",as:"fetch",href:t},t)},_=function(e){var n=e.path,r=n.pathname,t=(0,s.useContext)(d.RuntimeReactContext),o=t.routeManifest,i=t.routes,u=(o||{}).routeAssets,a=Array.isArray(i)?(0,f.matchRoutes)(i,r):[];return(Array.isArray(a)&&u&&(null==a||a.forEach(function(e){return function(e,n){return m.apply(this,arguments)}(e.route,u)})),window._SSR_DATA)?(0,c.jsx)(x,{matches:a,path:n,routeManifest:o}):null},x=function(e){var n=e.matches,r=e.path,t=e.routeManifest,o=r.pathname,i=r.search,u=r.hash,a=(0,f.useMatches)(),l=(0,f.useHref)("/"),d=(0,s.useMemo)(function(){return null==n?void 0:n.filter(function(e,n){if(!e.route.loader||"function"!=typeof e.route.loader||0===e.route.loader.length)return!1;if(e.route.shouldRevalidate){var r,t=new URL(location.pathname+location.search+location.hash,window.origin),c=new URL(o+i+u,window.origin),s=e.route.shouldRevalidate({currentUrl:t,currentParams:(null===(r=a[0])||void 0===r?void 0:r.params)||{},nextUrl:c,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof s)return s}var l=a[n];return!!(!l||l.id!==e.route.id||l.pathname!==e.pathname||l.pathname.endsWith("*")&&l.params["*"]!==e.params["*"])||!1}).map(function(e){return g(e.route,o,l)})},[n,o,t]);return(0,c.jsx)(c.Fragment,{children:d})},y=function(e){return l.forwardRef(function(n,t){var a,s,d,m,h,g,x,y,b,w,R,j,k,S,E,C=n.to,L=n.prefetch,A=void 0===L?"none":L,M=(0,i._)(n,["to","prefetch"]),O="string"==typeof C&&p.test(C);var P=(0,u._)((a=A,s=M,m=(d=(0,u._)(l.useState(!1),2))[0],h=d[1],x=(g=(0,u._)(l.useState(!1),2))[0],y=g[1],b=s.onFocus,w=s.onBlur,R=s.onMouseEnter,j=s.onMouseLeave,k=s.onTouchStart,l.useEffect(function(){"render"===a&&y(!0)},[a]),S=function(){"intent"===a&&h(!0)},E=function(){"intent"===a&&(h(!1),y(!1))},l.useEffect(function(){if(m){var e=setTimeout(function(){y(!0)},100);return function(){clearTimeout(e)}}},[m]),[x,{onFocus:v(b,S),onBlur:v(w,E),onMouseEnter:v(R,S),onMouseLeave:v(j,E),onTouchStart:v(k,S)}]),2),N=P[0],T=P[1],B=(0,f.useResolvedPath)(C);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,(0,o._)({ref:t,to:C},M,T)),N&&r.e&&!O?(0,c.jsx)(_,{path:B}):null]})})},b=y(f.Link);b.displayName="Link";var w=y(f.NavLink);w.displayName="NavLink"},87872:function(e,n,r){"use strict";r.r(n),r.d(n,{modifyRoutes:function(){return t}});var t=(0,r("89323").createWaterfall)()},94552:function(e,n,r){"use strict";r.r(n),r.d(n,{Link:function(){return o.Link},NavLink:function(){return o.NavLink},Outlet:function(){return u.Outlet},createShouldRevalidate:function(){return i.createShouldRevalidate},default:function(){return a},matchPath:function(){return u.matchPath},matchRoutes:function(){return u.matchRoutes},redirect:function(){return u.redirect},useLocation:function(){return u.useLocation},useMatches:function(){return u.useMatches},useNavigate:function(){return u.useNavigate},useParams:function(){return u.useParams}});var t=r("96856"),o=r("16623"),i=r("57312"),u=r("95732"),a=t.routerPlugin},96856:function(e,n,r){"use strict";r.r(n),r.d(n,{routerPlugin:function(){return g}});var t=r("15169"),o=r("43932"),i=r("93160"),u=r("9880"),a=r("6171"),c=r("95732"),s=r("99428"),l=r.n(s),f=r("15711"),d=r("17500"),v=r("87872"),p=r("40318"),m={routes:[]},h=!0,g=function(e){var n=e.serverBase,r=void 0===n?[]:n,s=e.supportHtml5History,h=void 0===s||s,g=e.basename,_=void 0===g?"":g,x=e.routesConfig,y=e.createRoutes,b=[];return m=x,window._SERVER_DATA=(0,f.parsedJSONFromElement)("__MODERN_SERVER_DATA__"),{name:"@modern-js/plugin-router",registerHook:{modifyRoutes:v.modifyRoutes},setup:function(e){return{init:function(e,n){var r=e.context;return r.router={useMatches:c.useMatches,useLocation:c.useLocation},Object.defineProperty(r,"routes",{get:function(){return b}}),n({context:r})},hoc:function(n,s){var f,v=n.App;if(!m&&!y)return s({App:v});var g=(f=function(n){var u,s,l=(null===(s=window._SERVER_DATA)||void 0===s?void 0:s.router.baseUrl)||(u=location.pathname,r.find(function(e){return 0===u.search(e)})||"/"),f="/"===l?(0,p.urlJoin)(l,_):l,v=window._ROUTER_DATA,g=(0,a.useContext)(d.RuntimeReactContext),x=g.unstable_getBlockNavState;return(0,a.useMemo)(function(){(null==v?void 0:v.errors)&&(v=(0,o._)((0,t._)({},v),{errors:(0,p.deserializeErrors)(v.errors)})),b=y?y():(0,c.createRoutesFromElements)((0,p.renderRoutes)({routesConfig:m,props:n})),b=e.useHookRunners().modifyRoutes(b);var r=h?(0,c.createBrowserRouter)(b,{basename:f,hydrationData:v}):(0,c.createHashRouter)(b,{basename:f,hydrationData:v}),u=r.subscribe;return r.subscribe=function(e){return u(function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];if(!(x&&x()))return e.apply(void 0,(0,i._)(r))})},Object.defineProperty(g,"remixRouter",{get:function(){return r},configurable:!0}),r},[m,n,f,v,x])},function(e){var n=f(e);return(0,u.jsx)(v,(0,o._)((0,t._)({},e),{children:(0,u.jsx)(c.RouterProvider,{router:n})}))});return(v&&(g=l(g,v)),null==x?void 0:x.globalApp)?s({App:l(g,x.globalApp)}):s({App:g})},pickContext:function(e,n){var r=e.context,i=e.pickedContext,u=r.remixRouter;if(!u)return n({context:r,pickedContext:i});var a={navigate:u.navigate,get location(){return u.state.location}};return n({context:r,pickedContext:(0,o._)((0,t._)({},i),{router:a})})}}}}}},57312:function(e,n,r){"use strict";r.r(n),r.d(n,{createShouldRevalidate:function(){return o}});var t=r("47328"),o=function(e){return function(n){var r,o,i=null===(o=window)||void 0===o?void 0:null===(r=o[t.ROUTE_MODULES])||void 0===r?void 0:r[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(n):n.defaultShouldRevalidate}}},40318:function(e,n,r){"use strict";r.r(n),r.d(n,{deserializeErrors:function(){return p},renderRoutes:function(){return d},urlJoin:function(){return v}});var t=r("15169"),o=r("85056"),i=r("28003"),u=r("9880"),a=r("95732"),c=r("76394"),s=r("15711"),l=r("75949"),f=r("90208");function d(e){var n=e.routesConfig,r=e.props,i=e.ssrMode,c=e.reporter;if(!n)return null;var d=n.routes,v=n.globalApp;return d?function(e,n){var r=n.globalApp,i=n.ssrMode,c=n.props,d=n.reporter,v=function(e){var n=e.Component,i=(0,o._)(e,["Component"]);return r?(0,u.jsx)(r,(0,t._)({Component:n},i)):(0,u.jsx)(n,(0,t._)({},i))},p=[],m=!0,h=!1,g=void 0;try{for(var _,x=e[Symbol.iterator]();!(m=(_=x.next()).done);m=!0){var y=_.value;if("nested"===y.type){var b=(0,s.renderNestedRoute)(y,{DeferredDataComponent:"stream"===i?f.default:void 0,props:c,reporter:d});p.push(b)}else{var w=(0,u.jsx)(a.Route,{path:y.path,element:(0,u.jsx)(v,{Component:y.component})},y.path);p.push(w)}}}catch(e){h=!0,g=e}finally{try{!m&&null!=x.return&&x.return()}finally{if(h)throw g}}return p.push((0,u.jsx)(a.Route,{path:"*",element:(0,u.jsx)(l.DefaultNotFound,{})},"*")),p}(d,{globalApp:v,ssrMode:i,props:r,reporter:c}):null}var v=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var t=RegExp("".concat("/","{1,}"),"g");return function(e){var n=e;return n&&"string"==typeof n?(n.startsWith(".")&&(n=n.slice(1)),!n.startsWith("/")&&(n="/".concat(n)),n.endsWith("/")&&"/"!==n&&(n=n.slice(0,n.length-1)),n):n}(n.join("/").replace(t,"/"))};function p(e){if(!e)return null;var n=Object.entries(e),r={},t=!0,o=!1,u=void 0;try{for(var a,s=n[Symbol.iterator]();!(t=(a=s.next()).done);t=!0){var l=(0,i._)(a.value,2),f=l[0],d=l[1];if(d&&"RouteErrorResponse"===d.__type)r[f]=new c.ErrorResponse(d.status,d.statusText,d.data,!0===d.internal);else if(d&&"Error"===d.__type){var v=Error(d.message);v.stack=d.stack,r[f]=v}else r[f]=d}}catch(e){o=!0,u=e}finally{try{!t&&null!=s.return&&s.return()}finally{if(o)throw u}}return r}},38338:function(e,n,r){"use strict";r.r(n),r.d(n,{RuntimeReactContext:function(){return o}});var t=r("6171"),o=(0,t.createContext)({});(0,t.createContext)({})},89323:function(e,n,r){"use strict";r.r(n),r.d(n,{createAsyncPipeline:function(){return d},createManager:function(){return N},createPipeline:function(){return f},createWaterfall:function(){return m}});var t=r("37599"),o=r("15169"),i=r("93160"),u=r("43932"),a=r("16584"),c=function(e){var n=function(r,t){return e(r,t,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;return n(r+1,e)})};return{start:function(e){return n(0,e)},dispatch:n}},s=Symbol.for("MODERN_PIPELINE"),l=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a Middleware"))},f=function(){var e,n=[],r=function(e){return c(function(r,t,o){if(r>=n.length){if(e)return e(t);throw Error("Expect returning a value, but all middlewares just calling next()")}return n[r](t,o)})},o=r(),u=function(e,n){var t;return((t=n)?r(null==t?void 0:t.onLast):o).start(e)},a=(e={},(0,t._)(e,s,!0),(0,t._)(e,"use",function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return n.push.apply(n,(0,i._)(r.map(l))),a}),(0,t._)(e,"run",u),(0,t._)(e,"middleware",function(e,n){return u(e,{onLast:n})}),e);return a},d=function(){var e=f();return(0,o._)({},e)},v=Symbol.for("MODERN_WATERFALL"),p=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a Brook or { brook: Brook }"))},m=function(){var e=f(),n=(0,u._)((0,o._)({},e),(0,t._)({use:function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.use.apply(e,(0,i._)(t.map(p).map(h))),n},run:function(n,r){return e.run(n,(0,u._)((0,o._)({},r),{onLast:function(e){return e}}))},middleware:function(n){return e.run(n,{onLast:function(e){return e}})}},v,!0));return n},h=function(e){return function(n,r){return r(e(n))}},g=Symbol.for("MODERN_ASYNC_WATERFALL"),_=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a AsyncBrook or { brook: AsyncBrook }"))},x=function(){var e=d(),n=(0,u._)((0,o._)({},e),(0,t._)({use:function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.use.apply(e,(0,i._)(t.map(_).map(y))),n},run:function(n,r){return e.run(n,(0,u._)((0,o._)({},r),{onLast:function(e){return e}}))},middleware:function(n){return e.run(n,{onLast:function(e){return e}})}},g,!0));return n},y=function(e){return function(n,r){return Promise.resolve(e(n)).then(function(e){return r(e)})}},b=Symbol.for("MODERN_WORKFLOW"),w=function(){var e=f(),n=(0,u._)((0,o._)({},e),(0,t._)({use:function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.use.apply(e,(0,i._)(t.map(R))),n},run:function(n){return e.run(n,{onLast:function(){return[]}}).filter(Boolean)}},b,!0));return n},R=function(e){return function(n,r){return[e(n)].concat((0,i._)(r(n)))}},j=Symbol.for("MODERN_PARALLEL_WORKFLOW"),k=function(){var e=f(),n=(0,u._)((0,o._)({},e),(0,t._)({run:function(n){return Promise.all(e.run(n,{onLast:function(){return[]}})).then(function(e){return e.filter(Boolean)})},use:function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.use.apply(e,(0,i._)(t.map(S))),n}},j,!0));return n},S=function(e){return function(n,r){return[e(n)].concat((0,i._)(r(n)))}},E=Symbol.for("MODERN_ASYNC_WORKFLOW"),C=function(){var e=d(),n=(0,u._)((0,o._)({},e),(0,t._)({use:function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.use.apply(e,(0,i._)(t.map(L))),n},run:function(n){var r,t=e.run(n,{onLast:function(){return[]}});return(r=t)&&"function"==typeof r.then?t.then(function(e){return e.filter(Boolean)}):t.filter(Boolean)}},E,!0));return n},L=function(e){return function(n,r){return Promise.resolve(e(n)).then(function(e){return Promise.resolve(r(n)).then(function(n){return[e].concat((0,i._)(n))})})}},A=function(e){},M=function(e){return null!==e&&"object"==typeof e},O="SYNC_PLUGIN_SYMBOL",P={name:"untitled",pre:[],post:[],rivals:[],required:[],usePlugins:[],registerHook:{}},N=function(e,n){var r,t=0,i=(0,o._)({},e),c=function(){return r},s=function(e){i=(0,o._)({},e,i)},l=function(e){var n,r;return M(e)&&(n=e,r=O,n.hasOwnProperty(r))&&e[O]===O},f=(0,u._)((0,o._)({},n),{useHookRunners:c}),d=function(e){var n=[],v=function(e){var r,t;if(r=n,t=e,!r.some(function(e){return e.name===t.name}))n.push((0,o._)({},e))},p=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(function(e){if(l(e))v(e);else if("function"==typeof e){var n=e();v(m(n.setup,n))}else M(e)&&v(m(e.setup,e))}),h},m=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(null===(e=r.usePlugins)||void 0===e?void 0:e.length)&&r.usePlugins.forEach(function(e){p(m(e.setup,e))}),r.registerHook&&s(r.registerHook),(0,u._)((0,o._)((0,u._)((0,o._)({},P),{name:"No.".concat(t++," plugin")}),r),{SYNC_PLUGIN_SYMBOL:O,setup:n})},h={createPlugin:m,isPlugin:l,usePlugin:p,init:function(){var t,u=(t=n,(0,a.pluginDagSort)(t.slice())),c=(0,o._)({},f,e);return A(u),r=T(u.map(function(e){return e.setup(c)}),i)},clear:function(){n=[]},run:function(e){return e()},registerHook:s,useRunner:c,clone:d};return h};return d()},T=function(e,n){var r={},t=D(n);if(n){var i=function(n){e.forEach(function(e){(null==e?void 0:e[n])&&t[n].use(e[n])}),r[n]=function(e,r){return t[n].run(e,(0,o._)({},r))}};for(var u in t)i(u)}return r},B=function(e){var n,r,t,o,i,u;if(null==(n=e)?void 0:n[v])return m();if(null==(r=e)?void 0:r[g])return x();if(null==(t=e)?void 0:t[b])return w();if(null==(o=e)?void 0:o[E])return C();if(null==(i=e)?void 0:i[j])return k();if(null==(u=e)?void 0:u[s])return f();throw Error("Unknown hook: ".concat(e))},D=function(e){if(!e)return e;var n={};for(var r in e)n[r]=B(e[r]);return n}},15711:function(e,n,r){"use strict";r.r(n);var t=r("99959");r.es(t,n);var o=r("16351");r.es(o,n)},16351:function(e,n,r){"use strict";r.r(n),r.d(n,{renderNestedRoute:function(){return d}});var t=r("61078"),o=r("15169"),i=r("43932"),u=r("73706"),a=r("9880"),c=r("6171"),s=r("60421"),l=r("47328"),f=r("98813"),d=function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=e.children,m=e.index,h=e.id,g=e.component,_=e.isRoot,x=e.lazyImport,y=e.config,b=e.handle,w=r.parent,R=r.DeferredDataComponent,j=r.props,k=void 0===j?{}:j,S=r.reporter,E={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:function(e,n){var r,o=e.loader;if(!o)return function(){return"function"==typeof e.lazyImport&&e.lazyImport(),null};return r=(0,t._)(function(r){var t,i,a;return(0,u._)(this,function(u){switch(u.label){case 0:return"function"==typeof e.lazyImport&&e.lazyImport(),t=(0,f.time)(),[4,o(r)];case 1:return i=u.sent(),a=t(),"undefined"==typeof document&&n&&(null==n||n.reportTiming("".concat(l.LOADER_REPORTER_NAME,"-").concat(e.id),a)),[2,i]}})}),function(e){return r.apply(this,arguments)}}(e,S),action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,o._)({},b,"object"==typeof y?null==y?void 0:y.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error){var C=(0,a.jsx)(e.error,{});E.errorElement=C}if(g){if((null==w?void 0:w.loading)&&x){var L=w.loading;n=v(g)?(0,a.jsx)(g,{fallback:(0,a.jsx)(L,{})}):(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(L,{}),children:(0,a.jsx)(g,{})})}else n=v(g)&&x?(0,a.jsx)(g,{}):_?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,(0,o._)({},k)),"undefined"==typeof document&&R&&(0,a.jsx)(R,{nonce:null==k?void 0:k.nonce})]}):x?(0,a.jsx)(c.Suspense,{fallback:null,children:(0,a.jsx)(g,{})}):(0,a.jsx)(g,{})}else e.loading=null==w?void 0:w.loading,E.element=(0,a.jsx)(s.Outlet,{});n&&(E.element=n);var A=null==p?void 0:p.map(function(n){return d(n,{parent:e,reporter:S})});return m?(0,a.jsx)(s.Route,(0,i._)((0,o._)({},E),{index:!0}),h):(0,a.jsx)(s.Route,(0,i._)((0,o._)({},E),{index:!1,children:A}),h)};function v(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}},99959:function(e,n,r){"use strict";r.r(n),r.d(n,{parsedJSONFromElement:function(){return t}});var t=function(e){var n=document.querySelectorAll("#".concat(e));if(0!==n.length){var r=n[n.length-1];if(r)try{return JSON.parse((null==r?void 0:r.textContent)||"")}catch(n){console.error("parse ".concat(e," error"),n)}}}},76394:function(e,n,r){"use strict";r.r(n);var t=r("62425");r.es(t,n)},95732:function(e,n,r){"use strict";r.r(n);var t=r("60421");r.es(t,n)},98813:function(e,n,r){"use strict";r.r(n),r.d(n,{time:function(){return u}});var t=r("28003");function o(e){var n=.001*new Date().getTime(),r=Math.floor(n),t=Math.floor(n%1*1e9);return e&&(r-=e[0],(t-=e[1])<0&&(r--,t+=1e9)),[r,t]}var i=function(e){var n=(0,t._)(o(e),2);return 1e3*n[0]+n[1]/1e6},u=function(){var e=o();return function(){return i(e)}}},47328:function(e,n,r){"use strict";r.r(n),r.d(n,{LOADER_REPORTER_NAME:function(){return i},ROUTE_MANIFEST:function(){return t},ROUTE_MODULES:function(){return o}});var t="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"},16584:function(e,n,r){"use strict";r.r(n),r.d(n,{pluginDagSort:function(){return t}});var t=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"pre",t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post",o=function(r){var t=e.find(function(e){return"string"==typeof r?e[n]===r:e[n]===r[n]});if(!t)throw Error("plugin ".concat(r," not existed"));return t},i=[];e.forEach(function(u){var a,c;null===(a=u[r])||void 0===a||a.forEach(function(r){e.find(function(e){return e.name===r})&&i.push([o(r)[n],o(u)[n]])}),null===(c=u[t])||void 0===c||c.forEach(function(r){e.find(function(e){return e.name===r})&&i.push([o(u)[n],o(r)[n]])})});for(var u=e.filter(function(e){return!i.find(function(r){return r[1]===e[n]})}),a=[];u.length;)!function(){var r=u.shift();a.push(o(r)),i=i.filter(function(e){return e[0]!==o(r)[n]}),u=e.filter(function(e){return!a.find(function(r){return r[n]===e[n]})}).filter(function(e){return!i.find(function(r){return r[1]===e[n]})})}();if(i.length){var c={};throw i.forEach(function(e){c[e[0]]=!0,c[e[1]]=!0}),Error("plugins dependencies has loop: ".concat(Object.keys(c).join(",")))}return a}},23027:function(e,n,r){"use strict";e.exports={connector:"connector-be8376",connector:"connector-be8376",link:"link-_29c31",link:"link-_29c31"}},36610:function(e,n,r){"use strict";e.exports={tooltip:"tooltip-_51cf0",tooltip:"tooltip-_51cf0"}},53466:function(e,n,r){"use strict";e.exports={breadcrumbs:"breadcrumbs-c31e26",breadcrumbs:"breadcrumbs-c31e26",container:"container-_5a1f3",container:"container-_5a1f3","fading-mask":"fading-mask-_2a0e7",fadingMask:"fading-mask-_2a0e7",inner:"inner-_7dffa",inner:"inner-_7dffa","inner-right":"inner-right-_74879",innerRight:"inner-right-_74879",navigator:"navigator-c0f838",navigator:"navigator-c0f838","tab-button":"tab-button-_80dcc",tabButton:"tab-button-_80dcc","tab-button-inner":"tab-button-inner-_6dcd0",tabButtonInner:"tab-button-inner-_6dcd0",wrapper:"wrapper-_6e002",wrapper:"wrapper-_6e002"}},4843:function(e,n,r){},12488:function(e,n,r){},91201:function(e,n,r){"use strict";r.r(n),r("25264"),r("59769"),r("19993"),r("80192"),r("13581"),r("34770"),r("83853"),r("40789"),r("36986"),r("21159"),r("56525"),r("40993"),r("54313"),r("54935"),r("6383"),r("5737"),r("97381"),r("82623"),r("63351"),r("14560"),r("81253"),r("59000"),r("33668"),r("43016"),r("67279"),r("78494"),r("33905"),r("72659"),r("21042"),r("16679"),r("48253"),r("72013"),r("99933"),r("44073"),r("7856"),r("84160"),r("25046"),r("7382"),r("60371"),r("28963"),r("73"),r("55070"),r("73817"),r("25737"),r("7028"),r("27834"),r("21023"),r("72143"),r("18207"),r("22545"),r("71471"),r("88287"),r("83196"),r("22308"),r("6524"),r("77783"),r("84393"),r("88170"),r("63442"),r("28067"),r("77247"),r("19415"),r("81022"),r("92444"),r("79028"),r("22935"),r("32985"),r("6564"),r("97603"),r("96341"),r("42071"),r("53951"),r("51004"),r("35656"),r("75634"),r("96228"),r("24323"),r("80483"),r("68545"),r("31745"),r("45498"),r("22921"),r("39375"),r("11188"),r("42032"),r("38444"),r("12036"),r("24183"),r("60872"),r("88046"),r("78639"),r("59841"),r("26729"),r("45460"),r("90954"),r("45605"),r("36543"),r("97936"),r("75550"),r("88694"),r("3887"),r("55667"),r("86740"),r("23170"),r("8468"),r("17653"),r("66547"),r("39560"),r("50301"),r("93346"),r("48386"),r("78771"),r("83960"),r("38116"),r("31623"),r("57764"),r("32049"),r("27409"),r("5330"),r("89184"),r("60402"),r("56710"),r("42543"),r("55220"),r("8296"),r("97540"),r("63145"),r("83731"),r("92210"),r("90517"),r("11017"),r("89095"),r("68691"),r("61931"),r("62522"),r("31397"),r("83685"),r("41644"),r("79346"),r("49217"),r("62558"),r("68514"),r("49449"),r("45145"),r("52622"),r("21629"),r("60996"),r("6369"),r("72880"),r("63298"),r("52832"),r("68900"),r("58554"),r("87253"),r("54368"),r("60049"),r("16790"),r("30406"),r("38193"),r("68902"),r("85179"),r("13767"),r("16549"),r("44400"),r("43186"),r("24468"),r("19272"),r("77544"),r("99353"),r("36852"),r("16476"),r("92260"),r("78420"),r("55001"),r("21860"),r("39193"),r("86167"),r("77253"),r("9316"),r("73455"),r("90095"),r("68571"),r("86842"),r("58618"),r("34453"),r("19418"),r("65881"),r("37367"),r("190"),r("10283"),r("22111"),r("69392"),r("65383"),r("69724"),r("50848"),r("64008"),r("31898"),r("54130"),r("43136"),r("3686"),r("81048"),r("58754"),r("19416"),r("70071"),r("97588"),r("75213"),r("88265"),r("57275"),r("91654"),r("83788"),r("70920"),r("280"),r("67399"),r("84881"),r("54622"),r("93019"),r("65163"),r("21687"),r("87805"),r("19578"),r("56610"),r("85390"),r("43976"),r("2516"),r("99936"),r("33346"),r("46300"),r("45839"),r("83872"),r("28875"),r("46407"),r("99373"),r("53726"),r("9345"),r("12116"),r("41730"),r("49387"),r("99109"),r("56786"),r("78391"),r("75810"),r("85291"),r("61990"),r("67097"),r("43350"),r("46275"),r("35014"),r("30146"),r("7429"),r("77351"),r("44783"),r("37840"),r("32502"),r("90639"),r("7709"),r("54939"),r("96127"),r("33369"),r("18954"),r("51038"),r("2147"),r("58466"),r("91204"),r("83314"),r("12778"),r("1950"),r("44384"),r("92402"),r("15862"),r("98909"),r("31034"),r("50144"),r("18766"),r("55879"),r("8781"),r("97739"),r("98844"),r("89491"),r("24415"),r("88523"),r("54763"),r("48068"),r("70675"),r("6767"),r("29655"),r("36454"),r("13689"),r("93322"),r("74755")},54094:function(e,n,r){"use strict";r.r(n),window.__assetPrefix__="/__devtools"},13773:function(e,n,r){"use strict";r.r(n),r.d(n,{Breadcrumbs:function(){return v}});var t=r("15169"),o=r("43932"),i=r("9880");r("6171");var u=r("20918"),a=r.n(u),c=r("54824"),s=r("43862"),l=r("71593"),f=r("23027"),d=r("94574"),v=e=>{var n=[],r=[];for(var u of(0,l.useMatches)()){var v=a.get(u,"handle.breadcrumb");if(v){for(var p of a.castArray(v).filter(a.isObject))if("title"in p){var m="pathname"in p&&a.isString(p.pathname)?p.pathname:u.pathname;r.push({title:p.title,pathname:m,id:u.id})}}}for(var[h,g]of Object.entries(r)){var _=[g.id,g.pathname,h];n.push((0,i.jsx)(d.Link,{color:"gray",size:"2",to:g.pathname,children:g.title},_.join("_"))),g!==r.at(-1)&&(_.push("#connector"),n.push((0,i.jsx)(s.ChevronRightIcon,{className:f.connector},_.join("_"))))}return(0,i.jsx)(c.Flex,(0,o._)((0,t._)({align:"center",height:"8",gap:"1",px:"4"},e),{children:n}))}},94574:function(e,n,r){"use strict";r.r(n),r.d(n,{Link:function(){return s}});var t=r("15169"),o=r("43932"),i=r("85056"),u=r("9880"),a=r("71593"),c=r("54824"),s=e=>{var{to:n,children:r}=e,s=(0,i._)(e,["to","children"]);return(0,u.jsx)(c.Link,(0,o._)((0,t._)({},s),{asChild:!0,children:(0,u.jsx)(a.Link,{to:n,children:r})}))}},43385:function(e,n,r){"use strict";r.r(n),r.d(n,{SelectLink:function(){return u}});var t=r("9880");r("6171");var o=r("54824"),i=r("71593"),u=e=>{var{items:n}=e,r=(0,i.useNavigate)(),u=(0,i.useLocation)(),a=n.find(e=>(0,i.matchPath)(e.to,u.pathname));return(0,t.jsxs)(o.Select.Root,{size:"1",value:null==a?void 0:a.to,onValueChange:r,children:[(0,t.jsx)(o.Select.Trigger,{}),(0,t.jsx)(o.Select.Content,{position:"popper",children:n.map(e=>{var{title:n,to:r}=e;return(0,t.jsx)(o.Select.Item,{value:r,children:n},r)})})]})}},11281:function(e,n,r){"use strict";r.r(n),r.d(n,{Theme:function(){return p}});var t=r("15169"),o=r("43932"),i=r("85056"),u=r("9880"),a=r("6171"),c=r("54824"),s=r("78164"),l=r("20918"),f=r.n(l),d=e=>["inherit","light","dark"].includes(e),v=e=>{var{children:n}=e,{appearance:r}=(0,c.useThemeContext)();return(0,a.useEffect)(()=>{localStorage.setItem("__modern_js_devtools_appearance",r),"inherit"!==r&&(document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(r))},[r]),(0,u.jsx)(u.Fragment,{children:n})},p=e=>{var{appearance:n,children:r}=e,a=(0,i._)(e,["appearance","children"]),l=n||f.castArray((0,s.getQuery)(location.href).appearance)[0]||localStorage.getItem("__modern_js_devtools_appearance")||"light";if(!d(l))throw Error("Initial appearance value is invalid.");return(0,u.jsx)(c.Theme,(0,o._)((0,t._)({},a),{appearance:l,children:(0,u.jsx)(v,{children:r})}))}},88884:function(e,n,r){"use strict";r.r(n),r.d(n,{getDefaultTabs:function(){return i}});var t=r("9880"),o=r("17880"),i=()=>[{name:"overview",title:"Overview",icon:(0,t.jsx)(o.HiOutlineHome,{}),view:{type:"builtin",url:"/overview"}},{name:"config",title:"Config",icon:(0,t.jsx)(o.HiOutlineAdjustmentsHorizontal,{}),view:{type:"builtin",url:"/config"}},{name:"pages",title:"Pages",icon:(0,t.jsx)(o.HiOutlineRectangleGroup,{}),view:{type:"builtin",url:"/pages"}},{name:"context",title:"Context",icon:(0,t.jsx)(o.HiOutlineCube,{}),view:{type:"builtin",url:"/context"}}]},40368:function(e,n,r){"use strict";r.r(n),r.d(n,{handle:function(){return d}});var t=r("9880");r("6171");var o=r("54824"),i=r("71593"),u=r("20918"),a=r.n(u),c=r("36610"),s=e=>{var{name:n,describe:r}=e;return(0,t.jsx)(o.Tooltip,{className:c.tooltip,side:"right",content:r.map(e=>(0,t.jsx)(o.Text,{style:{display:"block"},children:e},e)),children:(0,t.jsx)(o.Select.Item,{value:n,children:(0,t.jsx)(o.Box,{children:a.startCase(n)})})},n)},l=[{name:"framework",describe:["Framework config is a superset of Builder config, ","extending it with additional configurations that ","include server-side capabilities and so on."]},{name:"builder",describe:["Builder provides wrapped building capabilities for scheduling Bundler, ","as well as other plugins and tools."]},{name:"bundler",describe:["Bundler is typically a low-level build tool like webpack or Rspack, ","and their configuration options differ significantly from higher-level tools."]}],f=[{name:"resolved",describe:["The configuration content passed by the user or superior tools,","usually exposed to the plugin API for modification."]},{name:"transformed",describe:["The modified and frozen configuration objects,","typically exposed to the plugin API for consumption."]}],d={breadcrumb:[{title:"Config"},{title:(0,t.jsx)(()=>{var e=(0,i.useLocation)(),n=(0,i.useNavigate)(),[r,u]=e.pathname.split("/").slice(2);return(0,t.jsxs)(o.Select.Root,{size:"1",value:r,onValueChange:e=>{n("/config/".concat(e,"/").concat(u))},children:[(0,t.jsx)(o.Select.Trigger,{children:r}),(0,t.jsx)(o.Select.Content,{children:l.map(e=>{var{name:n,describe:r}=e;return(0,t.jsx)(s,{name:n,describe:r},n)})})]})},{})},{title:(0,t.jsx)(()=>{var e=(0,i.useLocation)(),n=(0,i.useNavigate)(),[r,u]=e.pathname.split("/").slice(2);return(0,t.jsxs)(o.Select.Root,{size:"1",value:u,onValueChange:e=>{n("/config/".concat(r,"/").concat(e))},children:[(0,t.jsx)(o.Select.Trigger,{children:u}),(0,t.jsx)(o.Select.Content,{children:f.map(e=>{var{name:n,describe:r}=e;return(0,t.jsx)(s,{name:n,describe:r},n)})})]})},{})}]}},9555:function(e,n,r){"use strict";r.r(n),r.d(n,{handle:function(){return i}});var t=r("9880"),o=r("43385"),i={breadcrumb:[{title:"Context"},{title:(0,t.jsx)(o.SelectLink,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},55630:function(e,n,r){"use strict";r.r(n),r.d(n,{handle:function(){return i}});var t=r("9880"),o=r("17880"),i={breadcrumb:{title:(0,t.jsx)(o.HiHomeModern,{}),pathname:"/overview"}}},14539:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return p}});var t=r("9880");r("4843"),r("6171");var o=r("71593"),i=r("54824"),u=r("17880"),a=r("53466"),c=r("27288"),s=r("11281"),l=r("13773"),f=e=>{var{tab:n}=e,r="";if("builtin"===n.view.type)r=n.view.url;else if("iframe"===n.view.type)r="/external/".concat(n.view.src);else throw Error('Invalid tab view of "'.concat(n.name,'".'));return(0,t.jsx)(i.Tooltip,{content:n.title,side:"right",children:(0,t.jsx)(o.NavLink,{to:r,className:a.tabButton,children:(0,t.jsx)(i.Flex,{justify:"center",align:"center",p:"1",className:a.tabButtonInner,children:(0,t.jsx)(i.Box,{height:"5",width:"5",asChild:!0,children:n.icon})})})})},d=()=>{var{appearance:e}=(0,i.useThemeContext)();return(0,t.jsx)(i.Tooltip,{content:"Appearance",side:"right",children:(0,t.jsx)(i.Box,{className:a.tabButton,onClick:()=>{(0,i.updateThemeAppearanceClass)("light"===e?"dark":"light")},children:(0,t.jsx)(i.Flex,{justify:"center",align:"center",p:"1",className:a.tabButtonInner,children:(0,t.jsx)(i.Box,{height:"5",width:"5",asChild:!0,children:"dark"===e?(0,t.jsx)(u.HiOutlineMoon,{}):(0,t.jsx)(u.HiOutlineSun,{})})})})})},v=()=>{var{tabs:e}=(0,c.useStoreSnapshot)();return(0,t.jsxs)(i.Flex,{direction:"column",shrink:"0",className:a.navigator,children:[e.map(e=>(0,t.jsx)(f,{tab:e},e.name)),(0,t.jsx)(i.Box,{grow:"1"}),(0,t.jsx)(d,{})]})};function p(){return(0,t.jsx)(c.StoreContextProvider,{children:(0,t.jsxs)(s.Theme,{className:a.wrapper,accentColor:"blue",panelBackground:"solid",children:[(0,t.jsx)(i.Box,{className:a.inner,children:(0,t.jsx)(i.Box,{className:a.innerRight,children:(0,t.jsx)(i.Box,{className:a.container,children:(0,t.jsx)(o.Outlet,{})})})}),(0,t.jsx)(i.ThemePanel,{defaultOpen:!1,style:{display:"none"}}),(0,t.jsx)(v,{}),(0,t.jsx)(l.Breadcrumbs,{className:a.breadcrumbs})]})})}},24675:function(e,n,r){"use strict";r.r(n),r.d(n,{handle:function(){return t}});var t={breadcrumb:{title:"Overview"}}},27288:function(e,n,r){"use strict";r.r(n),r.d(n,{StoreContextProvider:function(){return x},useStore:function(){return y},useStoreSnapshot:function(){return b}});var t=r("61078"),o=r("9880"),i=r("20918"),u=r.n(i),a=r("6171"),c=r("34104"),s=r("87883"),l=r.n(s),f=r("78164"),d=r("63645"),v=r("78581"),p=r("86040"),m=r("88884"),h=(0,a.createContext)(null),g=()=>{var e=(0,f.getQuery)(location.href).src||sessionStorage.getItem("devtools-data-source");if(!u.isString(e))throw TypeError("Can't connection to data source: ".concat(e||"<EMPTY>"));return sessionStorage.setItem("devtools-data-source",e),e},_=()=>({framework:{context:l(),config:{resolved:l(),transformed:l()}},builder:{context:l(),config:{resolved:l(),transformed:l()}},bundler:{config:{resolved:l(),transformed:l()}},dependencies:l(),compileTimeCost:l(),clientDefinition:l()}),x=e=>{var{children:n}=e,r=(0,a.useMemo)(g,[]),i=(0,a.useMemo)(_,[]),u=(0,p.useProxyFrom)(()=>({dataSource:r,location:"/",framework:{context:i.framework.context.promise,fileSystemRoutes:{},config:{resolved:i.framework.config.resolved.promise,transformed:i.framework.config.transformed.promise}},builder:{context:i.builder.context.promise,config:{resolved:i.builder.config.resolved.promise,transformed:i.builder.config.transformed.promise}},bundler:{config:{resolved:i.bundler.config.resolved.promise,transformed:i.bundler.config.transformed.promise}},tabs:(0,m.getDefaultTabs)().map(e=>(0,d.ref)(e)),version:"2.39.0",dependencies:i.dependencies.promise,compileTimeCost:i.compileTimeCost.promise,name:i.clientDefinition.promise.then(e=>e.name),packages:i.clientDefinition.promise.then(e=>e.packages),assets:i.clientDefinition.promise.then(e=>e.assets),announcement:i.clientDefinition.promise.then(e=>e.announcement),breadcrumb:[]}));return(0,c.useAsync)((0,t._)(function*(){var{server:e}=yield(0,v.setupServerConnection)({url:r,$store:u});for(var{entryName:n}of(i.framework.context.resolve(e.getAppContext()),i.framework.config.resolved.resolve(e.getFrameworkConfig()),i.framework.config.transformed.resolve(e.getTransformedFrameworkConfig()),i.builder.context.resolve(e.getBuilderContext()),i.builder.config.resolved.resolve(e.getBuilderConfig()),i.builder.config.transformed.resolve(e.getTransformedBuilderConfig()),i.bundler.config.resolved.resolve(e.getBundlerConfigs()),i.bundler.config.transformed.resolve(e.getTransformedBundlerConfigs()),i.dependencies.resolve(e.getDependencies()),i.compileTimeCost.resolve(e.getCompileTimeCost()),i.clientDefinition.resolve(e.getClientDefinition()),(yield u.framework.context).entrypoints))u.framework.fileSystemRoutes[n]=e.getFileSystemRoutes(n)}),[r,i]),(0,o.jsx)(h.Provider,{value:u,children:n})},y=()=>{var e=(0,a.useContext)(h);if(!e)throw Error("Can't resolve the context of global store.");return e},b=()=>(0,d.useSnapshot)(y())},74886:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return o}});var t=r("71593"),o=e=>{var{params:n}=e;if(!n.toolkit||!n.type)return(0,t.redirect)("/404");if(!["framework","builder","bundler"].includes(n.toolkit))return(0,t.redirect)("/404");if(!["resolved","transformed"].includes(n.type))return(0,t.redirect)("/404");else return null}},39027:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i}});var t=r("71593"),o=r("78164"),i=e=>{var{request:n}=e,r=(0,o.resolveURL)(n.url,"./builder/transformed");return(0,t.redirect)(r)}},42974:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i}});var t=r("71593"),o=r("78164"),i=e=>{var{request:n}=e,r=(0,o.resolveURL)(n.url,"./builder");return(0,t.redirect)(r)}},82141:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i}});var t=r("71593"),o=r("78164"),i=e=>{var{request:n}=e,r=(0,o.resolveURL)(n.url,"./overview");return(0,t.redirect)(r)}},79652:function(e,n,r){"use strict";r.r(n),r.d(n,{handle:function(){return t}});var t={breadcrumb:{title:"Pages"}}},78581:function(e,n,r){"use strict";r.r(n),r.d(n,{setupServerConnection:function(){return u}});var t,o=r("61078"),i=r("82865");var u=(t=(0,o._)(function*(e){var{url:n,$store:r}=e,t=new window.WebSocket(n),o=(0,i.createBirpc)({refresh:()=>location.reload(),updateFileSystemRoutes(e){var{entrypoint:n,routes:t}=e;r.framework.fileSystemRoutes[n.entryName]=t}},{post:e=>t.send(e),on:e=>t.onmessage=e,serialize:e=>JSON.stringify(e),deserialize:e=>JSON.parse(e.data.toString())});return yield new Promise((e,r)=>{t.onopen=()=>e(),t.onerror=()=>r(Error("Failed connect to WebSocket server: ".concat(n)))}),{server:o}}),function(e){return t.apply(this,arguments)})},86040:function(e,n,r){"use strict";r.r(n),r.d(n,{useProxyFrom:function(){return i}}),r("20918");var t=r("6171"),o=r("63645"),i=e=>(0,t.useMemo)(()=>(0,o.proxy)(e()),[])}},function(e){var n=function(n){return e(e.s=n)};e.O(0,["371","lib-lodash","lib-polyfill","lib-react","lib-router"],function(){return n("54094"),n("91201"),n("61599"),n("12488"),n("16666")}),e.O()}]);
|