@modern-js/devtools-client 0.0.0-nightly-20240123170645 → 0.0.0-nightly-20240125170634
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/client/index.html +3 -3
- package/dist/html/mount/index.html +3 -3
- package/dist/modern.config.json +4 -1
- package/dist/routes-manifest.json +54 -58
- package/dist/static/css/mount.a1149398.css +1 -0
- package/dist/static/js/464.2cdd566b.js +6 -0
- package/dist/static/js/{544.5fe6a816.js.LICENSE.txt → 464.2cdd566b.js.LICENSE.txt} +278 -242
- package/dist/static/js/{async/851.f1680ec1.js → 729.4e95d957.js} +10 -10
- package/dist/static/js/{535.ebf8db94.js.LICENSE.txt → 729.4e95d957.js.LICENSE.txt} +82 -100
- package/dist/static/js/768.9ad59bf6.js +12 -0
- package/dist/static/js/768.9ad59bf6.js.LICENSE.txt +5 -0
- package/dist/static/js/810.00bd18a0.js +2 -0
- package/dist/static/js/{971.dfaf371b.js.LICENSE.txt → 810.00bd18a0.js.LICENSE.txt} +75 -73
- package/dist/static/js/async/{199.632ea604.js → 199.6639d0ae.js} +2 -2
- package/dist/static/js/async/client_context/builder/{page.4a147316.js → page.2f20003d.js} +2 -2
- package/dist/static/js/async/client_context/framework/{page.7a779a72.js → page.5da3a416.js} +2 -2
- package/dist/static/js/async/client_headers/editor/page.5bea5d85.js +2 -0
- package/dist/static/js/async/client_headers/editor/{page.8a90ebab.js.LICENSE.txt → page.5bea5d85.js.LICENSE.txt} +7 -7
- package/dist/static/js/async/client_headers/{layout.a02ba20e.js → layout.2b809c91.js} +2 -2
- package/dist/static/js/async/client_overview/{page.e2907cdb.js → page.eb7afddf.js} +2 -2
- package/dist/static/js/async/client_pages/{layout.02f7cf3a.js → layout.f25702f6.js} +2 -2
- package/dist/static/js/async/client_pages/{page.cbbcc027.js → page.e87cee29.js} +2 -2
- package/dist/static/js/async/client_pages/{page.cbbcc027.js.LICENSE.txt → page.e87cee29.js.LICENSE.txt} +16 -28
- package/dist/static/js/async/client_react/(tab)/page.72c702ed.js +2 -0
- package/dist/static/js/async/client_react/(tab)/{page.3990630b.js.LICENSE.txt → page.72c702ed.js.LICENSE.txt} +2 -16
- package/dist/static/js/builder-runtime.2a0b224c.js +1 -0
- package/dist/static/js/client.c92ddbaa.js +2 -0
- package/dist/static/js/{client.ced261c0.js.LICENSE.txt → client.c92ddbaa.js.LICENSE.txt} +159 -127
- package/dist/static/js/{lib-react.5131ac93.js → lib-react.023116e5.js} +2 -2
- package/dist/static/js/{lib-react.5131ac93.js.LICENSE.txt → lib-react.023116e5.js.LICENSE.txt} +16 -16
- package/dist/static/js/mount.efcb4bc8.js +2 -0
- package/dist/static/js/{mount.b89b187f.js.LICENSE.txt → mount.efcb4bc8.js.LICENSE.txt} +43 -39
- package/package.json +13 -13
- package/dist/static/css/mount.6e2e9a58.css +0 -1
- package/dist/static/js/535.ebf8db94.js +0 -2
- package/dist/static/js/544.5fe6a816.js +0 -6
- package/dist/static/js/821.746e4296.js +0 -12
- package/dist/static/js/821.746e4296.js.LICENSE.txt +0 -17
- package/dist/static/js/971.dfaf371b.js +0 -2
- package/dist/static/js/async/851.f1680ec1.js.LICENSE.txt +0 -21
- package/dist/static/js/async/client_headers/editor/page.8a90ebab.js +0 -2
- package/dist/static/js/async/client_react/(tab)/page.3990630b.js +0 -2
- package/dist/static/js/builder-runtime.415d9338.js +0 -1
- package/dist/static/js/client.ced261c0.js +0 -2
- package/dist/static/js/mount.b89b187f.js +0 -2
- package/exports/.eslintrc.js +0 -13
- package/exports/mount.mjs +0 -40
- /package/dist/static/css/{544.b0b76183.css → 464.ad540914.css} +0 -0
- /package/dist/static/css/{971.c51346c6.css → 810.d3a7b418.css} +0 -0
- /package/dist/static/css/async/{199.3d9e4afb.css → 199.c5c9f155.css} +0 -0
- /package/dist/static/css/async/client_context/builder/{page.3d9e4afb.css → page.c5c9f155.css} +0 -0
- /package/dist/static/css/async/client_context/framework/{page.3d9e4afb.css → page.c5c9f155.css} +0 -0
- /package/dist/static/css/async/client_headers/editor/{page.1b30ff56.css → page.1cafd3ec.css} +0 -0
- /package/dist/static/css/async/client_headers/{layout.26c871c9.css → layout.90917891.css} +0 -0
- /package/dist/static/css/async/client_overview/{page.d48aa01a.css → page.a49e16bb.css} +0 -0
- /package/dist/static/css/async/client_pages/{layout.7beb3bbd.css → layout.4e0a9ce4.css} +0 -0
- /package/dist/static/css/async/client_pages/{page.0e57d947.css → page.0e153ba3.css} +0 -0
- /package/dist/static/css/{client.3fa2aa31.css → client.a698094e.css} +0 -0
- /package/dist/static/js/async/{199.632ea604.js.LICENSE.txt → 199.6639d0ae.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_context/builder/{page.4a147316.js.LICENSE.txt → page.2f20003d.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_context/framework/{page.7a779a72.js.LICENSE.txt → page.5da3a416.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_headers/{layout.a02ba20e.js.LICENSE.txt → layout.2b809c91.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_overview/{page.e2907cdb.js.LICENSE.txt → page.eb7afddf.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_pages/{layout.02f7cf3a.js.LICENSE.txt → layout.f25702f6.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see client.ced261c0.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["462"],{58266:function(e,t,n){"use strict";n.r(t),n.d(t,{bootstrap:function(){return R},createApp:function(){return b}});var r,o=n("73839"),i=n("64534"),u=n("90247"),a=n("16170"),c=n("44518"),s=n("2759"),l=n("86834"),f=n("5872"),d=n.n(f),p=n("13266"),h=n.n(p),v=n("63415"),m=n("59535"),g=n("4513"),x=n("13063"),_=new WeakMap,y=function(e){return{loaderManager:(0,x.createLoaderManager)({}),runner:e,isBrowser:!0,routeManifest:"undefined"!=typeof window&&window[v.ROUTE_MANIFEST]}},b=function(e){var t=e.plugins,n=e.props,r=g.runtime.clone();return r.usePlugin.apply(r,(0,c._)(t)),function(e){var t=r.init(),o=function(n){var r,o=d().createElement(e||d().Fragment,e?(0,u._)({},n):null,e?n.children:d().cloneElement(n.children,(0,u._)({},null===(r=n.children)||void 0===r?void 0:r.props,n))),i=(0,f.useContext)(m.RuntimeReactContext);return t.provide({element:o,props:(0,u._)({},n),context:i},{onLast:function(e){return e.element}})};e&&h()(o,e);var i=t.hoc({App:o},{onLast:function(e){var r=e.App;return h()(function(e){var o=e.context,i=(0,a._)(e,["context"]),c=o;!(null==c?void 0:c.runner)&&(c=y(t),t.init({context:c},{onLast:function(e){var t,n=e.context;return null==r?void 0:null===(t=r.init)||void 0===t?void 0:t.call(r,n)}}));var s=(0,u._)({},i,n);return(0,l.jsx)(m.RuntimeReactContext.Provider,{value:c,children:(0,l.jsx)(r,(0,u._)({},s))})},r)}});return _.set(i,t),i}};var R=(r=(0,o._)(function(e,t,n,r){var o,a,c,l,f,p,h,v,m,g,R,j,w,E,k;return(0,s._)(this,function(s){switch(s.label){case 0:var L;if(o=e,!(a=_.get(o))&&(o=b({plugins:[]})(o),a=_.get(o)),c=y(a),l=function(e){return a.init({context:e},{onLast:function(e){var t,n=e.context;return null==o?void 0:null===(t=o.init)||void 0===t?void 0:t.call(o,n)}})},!t)return[2,d().createElement(o,{context:c})];if(!("undefined"!=typeof window&&"nodejs"!==window.name))return[3,4];if(!("string"==typeof(L=t)||"undefined"!=typeof HTMLElement&&(0,i._)(L,HTMLElement)))return[3,2];return m=Object.keys(v=(null==(h=window._SSR_DATA)?void 0:null===(f=h.data)||void 0===f?void 0:f.loadersData)||{}).reduce(function(e,t){var n=v[t];return!1!==n.loading?e:(e[t]=n,e)},{}),Object.assign(c,(0,u._)({loaderManager:(0,x.createLoaderManager)(m,{skipStatic:!0})},h?{ssrContext:null==h?void 0:h.context}:{})),c.initialData=null==h?void 0:null===(p=h.data)||void 0===p?void 0:p.initialData,[4,l(c)];case 1:if((g=s.sent())&&(c.initialData=g),R="string"!=typeof t?t:document.getElementById(t||"root"),!r)throw Error("The `bootstrap` need provide `ReactDOM` parameter");return j=function(e){if(n)n.render(e);else if(r.createRoot)r.createRoot(R).render(e);else throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `createRoot` method")},w=function(e,t){if(!r.hydrateRoot)throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `hydrateRoot` method");r.hydrateRoot(R,e)},[2,a.client({App:o,context:c,ModernRender:j,ModernHydrate:w},{onLast:function(e){var t=e.App;j(d().createElement(t,{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:t,isBrowser:!1,loaderManager:(0,x.createLoaderManager)({},{skipNonStatic:t.staticGenerate,skipStatic:!t.staticGenerate})}),E=function(e){if("undefined"!=typeof Response&&(0,i._)(e,Response)&&e.status>=300&&e.status<=399){var t=e.status,n=e.headers.get("Location")||"/",r=c.ssrContext;return r&&(r.res.statusCode=t,r.res.setHeader("Location",n),r.redirection=r.redirection||{},r.redirection.status=t,r.redirection.url=n),!0}return!1},[4,l(c)];case 5:if(k=s.sent(),!E(k))return c.initialData=k,[2,a.server({App:o,context:c})];s.label=6;case 6:return[2]}})}),function(e,t,n,o){return r.apply(this,arguments)})},25543:function(e,t,n){"use strict";n.r(t),n.d(t,{RuntimeReactContext:function(){return o.RuntimeReactContext}});var r=n("58266");n.es(r,t);var o=n("59535"),i=n("15413");n.es(i,t)},13063:function(e,t,n){"use strict";n.r(t),n.d(t,{createLoaderManager:function(){return h}});var r,o,i=n("73839"),u=n("64534"),a=n("70749"),c=n("44518"),s=n("2759"),l=n("24546"),f=n.n(l),d=function(){var e=new Map;return function(t){var n=e.get(t);if(n)return n;var r=JSON.stringify(t);return f()(r,"params should be not null value"),e.set(t,r),r}};(r=o||(o={}))[r.idle=0]="idle",r[r.loading=1]="loading",r[r.fulfilled=2]="fulfilled",r[r.rejected=3]="rejected";var p=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=0,f=r.data,d=r.error,p=!1,h=new Set;var v=(t=(0,i._)(function(){return(0,s._)(this,function(e){return a||1===l?[2,n]:(l=1,g(),[2,n=o().then(function(e){f=e,d=null,l=2}).catch(function(e){d=e,f=null,l=3}).finally(function(){n=null,p=!0,g()})])})}),function(){return t.apply(this,arguments)}),m=function(){return{loading:!p&&1===l,reloading:p&&1===l,data:f,error:(0,u._)(d,Error)?"".concat(d.message):d,_error:d}},g=function(){(0,c._)(h).forEach(function(e){e(l,m())})};return{get result(){return m()},get promise(){return n},onChange:function(e){return h.add(e),function(){h.delete(e)}},load:v}},h=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipStatic,o=void 0!==r&&r,c=n.skipNonStatic,l=void 0!==c&&c,f=new Map,h=d();return{hasPendingLoaders:function(){var e=!0,t=!1,n=void 0;try{for(var r,o=f.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value.promise;if((0,u._)(i,Promise))return!0}}catch(e){t=!0,n=e}finally{try{!e&&null!=o.return&&o.return()}finally{if(t)throw n}}return!1},awaitPendingLoaders:(t=(0,i._)(function(){var e,t,n,r,o,i,c,l,d,p;return(0,s._)(this,function(s){switch(s.label){case 0:e=[],t=!0,n=!1,r=void 0;try{for(o=f[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)l=(c=(0,a._)(i.value,2))[0],p=(d=c[1]).promise,(0,u._)(p,Promise)&&e.push([l,d])}catch(e){n=!0,r=e}finally{try{!t&&null!=o.return&&o.return()}finally{if(n)throw r}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return s.sent(),[2,e.reduce(function(e,t){var n=(0,a._)(t,2),r=n[0],o=n[1];return e[r]=o.result,e},{})]}})}),function(){return t.apply(this,arguments)}),add:function(t,n){var r=h(n.params),i=f.get(r),u=n._cache;if(!i||!1===u){var a=l&&!n.static,c=o&&n.static;i=p(r,void 0!==e[r]?e[r]:{data:n.initialData},t,a||c),f.set(r,i)}return r},get:function(e){return f.get(e)}}}},4513:function(e,t,n){"use strict";n.r(t),n.d(t,{runtime:function(){return l}});var r=n("15413"),o=(0,r.createPipeline)(),i=(0,r.createPipeline)(),u=(0,r.createAsyncPipeline)(),a=(0,r.createAsyncPipeline)(),c=(0,r.createAsyncPipeline)(),s={hoc:o,provide:i,client:u,server:a,init:c,pickContext:(0,r.createPipeline)()},l=(0,r.createManager)(s);l.createPlugin},46606:function(e,t,n){"use strict";n.r(t),n.d(t,{bootstrap:function(){return r.bootstrap},createApp:function(){return r.createApp}});var r=n("25543")},39934:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.default}});var r=n("90979");n.es(r,t)},47534:function(e,t,n){"use strict";n.r(t),n.d(t,{DefaultNotFound:function(){return o}});var r=n("86834"),o=function(){return(0,r.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})}},21446:function(e,t,n){"use strict";function r(){return null}n.r(t),n.d(t,{default:function(){return r}})},85371:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return b},NavLink:function(){return R}});var r=n("73839"),o=n("90247"),i=n("16170"),u=n("70749"),a=n("2759"),c=n("86834"),s=n("5872"),l=n.n(s),f=n("78771"),d=n("25543");function p(e,t){return function(n){null==e||e(n),!n.defaultPrevented&&t(n)}}var h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function v(){return(v=(0,r._)(function(e,t){var r,o;return(0,a._)(this,function(i){switch(i.label){case 0:if(!(r=e.id)||!t[r]||!(o=t[r].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(e){return null===n.e||void 0===n.e?void 0:n.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 m=function(e,t){var n=window.location,r=n.protocol,o=n.host,i=new URL(e,"".concat(r,"//").concat(o));return i.searchParams.append("__loader",t),i.searchParams.append("__ssrDirect","true"),i},g=function(e,t,n){var r,o=e.id;return r=m("/"===n?t:"".concat(n).concat(t),o).toString(),(0,c.jsx)("link",{rel:"prefetch",as:"fetch",href:r},r)},x=function(e){var t=e.path,n=t.pathname,r=(0,s.useContext)(d.RuntimeReactContext),o=r.routeManifest,i=r.routes,u=(o||{}).routeAssets,a=Array.isArray(i)?(0,f.matchRoutes)(i,n):[];return(Array.isArray(a)&&u&&(null==a||a.forEach(function(e){return function(e,t){return v.apply(this,arguments)}(e.route,u)})),window._SSR_DATA)?(0,c.jsx)(_,{matches:a,path:t,routeManifest:o}):null},_=function(e){var t=e.matches,n=e.path,r=e.routeManifest,o=n.pathname,i=n.search,u=n.hash,a=(0,f.useMatches)(),l=(0,f.useHref)("/"),d=(0,s.useMemo)(function(){return null==t?void 0:t.filter(function(e,t){if(!e.route.loader||"function"!=typeof e.route.loader||0===e.route.loader.length)return!1;if(e.route.shouldRevalidate){var n,r=new URL(location.pathname+location.search+location.hash,window.origin),c=new URL(o+i+u,window.origin),s=e.route.shouldRevalidate({currentUrl:r,currentParams:(null===(n=a[0])||void 0===n?void 0:n.params)||{},nextUrl:c,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof s)return s}var l=a[t];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)})},[t,o,r]);return(0,c.jsx)(c.Fragment,{children:d})},y=function(e){return l().forwardRef(function(t,r){var a,s,d,v,m,g,_,y,b,R,j,w,E,k,L,S=t.to,A=t.prefetch,C=(0,i._)(t,["to","prefetch"]),M="string"==typeof S&&h.test(S);var O=(0,u._)((a=void 0===A?"none":A,s=C,v=(d=(0,u._)(l().useState(!1),2))[0],m=d[1],_=(g=(0,u._)(l().useState(!1),2))[0],y=g[1],b=s.onFocus,R=s.onBlur,j=s.onMouseEnter,w=s.onMouseLeave,E=s.onTouchStart,l().useEffect(function(){"render"===a&&y(!0)},[a]),k=function(){"intent"===a&&m(!0)},L=function(){"intent"===a&&(m(!1),y(!1))},l().useEffect(function(){if(v){var e=setTimeout(function(){y(!0)},100);return function(){clearTimeout(e)}}},[v]),[_,{onFocus:p(b,k),onBlur:p(R,L),onMouseEnter:p(j,k),onMouseLeave:p(w,L),onTouchStart:p(E,k)}]),2),N=O[0],P=O[1],T=(0,f.useResolvedPath)(S);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,(0,o._)({ref:r,to:S},C,P)),N&&n.e&&!M?(0,c.jsx)(x,{path:T}):null]})})},b=y(f.Link);b.displayName="Link";var R=y(f.NavLink);R.displayName="NavLink"},68705:function(e,t,n){"use strict";n.r(t),n.d(t,{modifyRoutes:function(){return r}});var r=(0,n("15413").createWaterfall)()},90979:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return o.Link},NavLink:function(){return o.NavLink},Outlet:function(){return u.Outlet},createShouldRevalidate:function(){return i.createShouldRevalidate},default:function(){return a},handleRouteModule:function(){return i.handleRouteModule},handleRouteModuleError:function(){return i.handleRouteModuleError},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},useRouteError:function(){return u.useRouteError}});var r=n("29552"),o=n("85371"),i=n("83366"),u=n("78771"),a=r.routerPlugin},29552:function(e,t,n){"use strict";n.r(t),n.d(t,{routerPlugin:function(){return g}});var r=n("90247"),o=n("55709"),i=n("44518"),u=n("86834"),a=n("5872"),c=n("78771"),s=n("13266"),l=n.n(s),f=n("89736"),d=n("25543"),p=n("68705"),h=n("78923"),v={routes:[]},m=!0,g=function(e){var t=e.serverBase,n=void 0===t?[]:t,s=e.supportHtml5History,m=void 0===s||s,g=e.basename,x=void 0===g?"":g,_=e.routesConfig,y=e.createRoutes,b=[];return v=_,window._SERVER_DATA=(0,f.parsedJSONFromElement)("__MODERN_SERVER_DATA__"),{name:"@modern-js/plugin-router",registerHook:{modifyRoutes:p.modifyRoutes},setup:function(e){return{init:function(e,t){var n=e.context;return n.router={useMatches:c.useMatches,useLocation:c.useLocation},Object.defineProperty(n,"routes",{get:function(){return b}}),t({context:n})},hoc:function(t,s){var f,p=t.App;if(!v&&!y)return s({App:p});var g=(f=function(t){var u,s,l=(null===(s=window._SERVER_DATA)||void 0===s?void 0:s.router.baseUrl)||(u=location.pathname,n.find(function(e){return 0===u.search(e)})||"/"),f="/"===l?(0,h.urlJoin)(l,x):l,p=window._ROUTER_DATA,g=(0,a.useContext)(d.RuntimeReactContext),_=g.unstable_getBlockNavState;return(0,a.useMemo)(function(){(null==p?void 0:p.errors)&&(p=(0,o._)((0,r._)({},p),{errors:(0,h.deserializeErrors)(p.errors)})),b=y?y():(0,c.createRoutesFromElements)((0,h.renderRoutes)({routesConfig:v,props:t})),b=e.useHookRunners().modifyRoutes(b);var n=m?(0,c.createBrowserRouter)(b,{basename:f,hydrationData:p}):(0,c.createHashRouter)(b,{basename:f,hydrationData:p}),u=n.subscribe;return n.subscribe=function(e){return u(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!(_&&_()))return e.apply(void 0,(0,i._)(n))})},Object.defineProperty(g,"remixRouter",{get:function(){return n},configurable:!0}),n},[v,t,f,p,_])},function(e){var t=f(e);return(0,u.jsx)(p,(0,o._)((0,r._)({},e),{children:(0,u.jsx)(c.RouterProvider,{router:t})}))});return(p&&(g=l()(g,p)),null==_?void 0:_.globalApp)?s({App:l()(g,_.globalApp)}):s({App:g})},pickContext:function(e,t){var n=e.context,i=e.pickedContext,u=n.remixRouter;if(!u)return t({context:n,pickedContext:i});var a={navigate:u.navigate,get location(){return u.state.location}};return t({context:n,pickedContext:(0,o._)((0,r._)({},i),{router:a})})}}}}}},83366:function(e,t,n){"use strict";n.r(t),n.d(t,{createShouldRevalidate:function(){return o},handleRouteModule:function(){return i},handleRouteModuleError:function(){return u}});var r=n("63415"),o=function(e){return function(t){var n,o,i=null===(o=window)||void 0===o?void 0:null===(n=o[r.ROUTE_MODULES])||void 0===n?void 0:n[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(t):t.defaultShouldRevalidate}},i=function(e,t){return"undefined"!=typeof document&&(window[r.ROUTE_MODULES][t]=e),e},u=function(e){return console.error(e),null}},78923:function(e,t,n){"use strict";n.r(t),n.d(t,{deserializeErrors:function(){return h},renderRoutes:function(){return d},urlJoin:function(){return p}});var r=n("90247"),o=n("16170"),i=n("70749"),u=n("86834"),a=n("78771"),c=n("69444"),s=n("48747"),l=n("47534"),f=n("21446");function d(e){var t=e.routesConfig,n=e.props,i=e.ssrMode,c=e.reporter;if(!t)return null;var d=t.routes,p=t.globalApp;return d?function(e,t){var n=t.globalApp,i=t.ssrMode,c=t.props,d=t.reporter,p=function(e){var t=e.Component,i=(0,o._)(e,["Component"]);return n?(0,u.jsx)(n,(0,r._)({Component:t},i)):(0,u.jsx)(t,(0,r._)({},i))},h=[],v=!0,m=!1,g=void 0;try{for(var x,_=e[Symbol.iterator]();!(v=(x=_.next()).done);v=!0){var y=x.value;if("nested"===y.type){var b=(0,s.renderNestedRoute)(y,{DeferredDataComponent:"stream"===i?f.default:void 0,props:c,reporter:d});h.push(b)}else{var R=(0,u.jsx)(a.Route,{path:y.path,element:(0,u.jsx)(p,{Component:y.component})},y.path);h.push(R)}}}catch(e){m=!0,g=e}finally{try{!v&&null!=_.return&&_.return()}finally{if(m)throw g}}return h.push((0,u.jsx)(a.Route,{path:"*",element:(0,u.jsx)(l.DefaultNotFound,{})},"*")),h}(d,{globalApp:p,ssrMode:i,props:n,reporter:c}):null}var p=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=RegExp("".concat("/","{1,}"),"g");return function(e){var t=e;return t&&"string"==typeof t?(t.startsWith(".")&&(t=t.slice(1)),!t.startsWith("/")&&(t="/".concat(t)),t.endsWith("/")&&"/"!==t&&(t=t.slice(0,t.length-1)),t):t}(t.join("/").replace(r,"/"))};function h(e){if(!e)return null;var t=Object.entries(e),n={},r=!0,o=!1,u=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=(0,i._)(a.value,2),f=l[0],d=l[1];if(d&&"RouteErrorResponse"===d.__type)n[f]=new c.UNSAFE_ErrorResponseImpl(d.status,d.statusText,d.data,!0===d.internal);else if(d&&"Error"===d.__type){var p=Error(d.message);p.stack=d.stack,n[f]=p}else n[f]=d}}catch(e){o=!0,u=e}finally{try{!r&&null!=s.return&&s.return()}finally{if(o)throw u}}return n}},59535:function(e,t,n){"use strict";n.r(t),n.d(t,{RuntimeReactContext:function(){return o}});var r=n("5872"),o=(0,r.createContext)({});(0,r.createContext)({})},15413:function(e,t,n){"use strict";n.r(t),n.d(t,{createAsyncPipeline:function(){return d},createManager:function(){return P},createPipeline:function(){return f},createWaterfall:function(){return v}});var r=n("18360"),o=n("90247"),i=n("44518"),u=n("55709"),a=n("76492"),c=function(e){var t=function(n,r){return e(n,r,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return t(n+1,e)})};return{start:function(e){return t(0,e)},dispatch:t}},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,t=[],n=function(e){return c(function(n,r,o){if(n>=t.length){if(e)return e(r);throw Error("Expect returning a value, but all middlewares just calling next()")}return t[n](r,o)})},o=n(),u=function(e,t){var r;return((r=t)?n(null==r?void 0:r.onLast):o).start(e)},a=(e={},(0,r._)(e,s,!0),(0,r._)(e,"use",function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.push.apply(t,(0,i._)(n.map(l))),a}),(0,r._)(e,"run",u),(0,r._)(e,"middleware",function(e,t){return u(e,{onLast:t})}),e);return a},d=function(){var e=f();return(0,o._)({},e)},p=Symbol.for("MODERN_WATERFALL"),h=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 }"))},v=function(){var e=f(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(h).map(m))),t},run:function(t,n){return e.run(t,(0,u._)((0,o._)({},n),{onLast:function(e){return e}}))},middleware:function(t){return e.run(t,{onLast:function(e){return e}})}},p,!0));return t},m=function(e){return function(t,n){return n(e(t))}},g=Symbol.for("MODERN_ASYNC_WATERFALL"),x=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 }"))},_=function(){var e=d(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(x).map(y))),t},run:function(t,n){return e.run(t,(0,u._)((0,o._)({},n),{onLast:function(e){return e}}))},middleware:function(t){return e.run(t,{onLast:function(e){return e}})}},g,!0));return t},y=function(e){return function(t,n){return Promise.resolve(e(t)).then(function(e){return n(e)})}},b=Symbol.for("MODERN_WORKFLOW"),R=function(){var e=f(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(j))),t},run:function(t){return e.run(t,{onLast:function(){return[]}}).filter(Boolean)}},b,!0));return t},j=function(e){return function(t,n){return[e(t)].concat((0,i._)(n(t)))}},w=Symbol.for("MODERN_PARALLEL_WORKFLOW"),E=function(){var e=f(),t=(0,u._)((0,o._)({},e),(0,r._)({run:function(t){return Promise.all(e.run(t,{onLast:function(){return[]}})).then(function(e){return e.filter(Boolean)})},use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(k))),t}},w,!0));return t},k=function(e){return function(t,n){return[e(t)].concat((0,i._)(n(t)))}},L=Symbol.for("MODERN_ASYNC_WORKFLOW"),S=function(){var e=d(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(A))),t},run:function(t){var n,r=e.run(t,{onLast:function(){return[]}});return(n=r)&&"function"==typeof n.then?r.then(function(e){return e.filter(Boolean)}):r.filter(Boolean)}},L,!0));return t},A=function(e){return function(t,n){return Promise.resolve(e(t)).then(function(e){return Promise.resolve(n(t)).then(function(t){return[e].concat((0,i._)(t))})})}},C=function(e){},M=function(e){return null!==e&&"object"==typeof e},O="SYNC_PLUGIN_SYMBOL",N={name:"untitled",pre:[],post:[],rivals:[],required:[],usePlugins:[],registerHook:{}},P=function(e,t){var n,r=0,i=(0,o._)({},e),c=function(){return n},s=function(e){i=(0,o._)({},e,i)},l=function(e){var t,n;return M(e)&&(t=e,n=O,t.hasOwnProperty(n))&&e[O]===O},f=(0,u._)((0,o._)({},t),{useHookRunners:c}),d=function(e){var t=[],p=function(e){var n,r;if(n=t,r=e,!n.some(function(e){return e.name===r.name}))t.push((0,o._)({},e))},h=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach(function(e){if(l(e))p(e);else if("function"==typeof e){var t=e();p(v(t.setup,t))}else M(e)&&p(v(e.setup,e))}),m},v=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(null===(e=n.usePlugins)||void 0===e?void 0:e.length)&&n.usePlugins.forEach(function(e){h(v(e.setup,e))}),n.registerHook&&s(n.registerHook),(0,u._)((0,o._)((0,u._)((0,o._)({},N),{name:"No.".concat(r++," plugin")}),n),{SYNC_PLUGIN_SYMBOL:O,setup:t})},m={createPlugin:v,isPlugin:l,usePlugin:h,init:function(){var r,u=(r=t,(0,a.pluginDagSort)(r.slice())),c=(0,o._)({},f,e);return C(u),n=T(u.map(function(e){return e.setup(c)}),i)},clear:function(){t=[]},run:function(e){return e()},registerHook:s,useRunner:c,clone:d};return m};return d()},T=function(e,t){var n={},r=D(t);if(t){var i=function(t){e.forEach(function(e){(null==e?void 0:e[t])&&r[t].use(e[t])}),n[t]=function(e,n){return r[t].run(e,(0,o._)({},n))}};for(var u in r)i(u)}return n},B=function(e){var t,n,r,o,i,u;if(null==(t=e)?void 0:t[p])return v();if(null==(n=e)?void 0:n[g])return _();if(null==(r=e)?void 0:r[b])return R();if(null==(o=e)?void 0:o[L])return S();if(null==(i=e)?void 0:i[w])return E();if(null==(u=e)?void 0:u[s])return f();throw Error("Unknown hook: ".concat(e))},D=function(e){if(!e)return e;var t={};for(var n in e)t[n]=B(e[n]);return t}},48747:function(e,t,n){"use strict";n.r(t);var r=n("8921");n.es(r,t)},8921:function(e,t,n){"use strict";n.r(t),n.d(t,{renderNestedRoute:function(){return d}});var r=n("73839"),o=n("90247"),i=n("55709"),u=n("2759"),a=n("86834"),c=n("5872"),s=n("3369"),l=n("63415"),f=n("67791"),d=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.children,v=e.index,m=e.id,g=e.component,x=e.isRoot,_=e.lazyImport,y=e.config,b=e.handle,R=n.parent,j=n.DeferredDataComponent,w=n.props,E=void 0===w?{}:w,k=n.reporter,L={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:function(e,t){var n,o=e.loader;if(!o)return function(){return"function"==typeof e.lazyImport&&e.lazyImport(),null};return n=(0,r._)(function(n){var r,i,a;return(0,u._)(this,function(u){switch(u.label){case 0:return"function"==typeof e.lazyImport&&e.lazyImport(),r=(0,f.time)(),[4,o(n)];case 1:return i=u.sent(),a=r(),"undefined"==typeof document&&t&&(null==t||t.reportTiming("".concat(l.LOADER_REPORTER_NAME,"-").concat(e.id),a)),[2,i]}})}),function(e){return n.apply(this,arguments)}}(e,k),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 S=(0,a.jsx)(e.error,{});L.errorElement=S}if(g){if((null==R?void 0:R.loading)&&_){var A=R.loading;t=p(g)?(0,a.jsx)(g,{fallback:(0,a.jsx)(A,{})}):(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(A,{}),children:(0,a.jsx)(g,{})})}else t=p(g)&&_?(0,a.jsx)(g,{}):x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,(0,o._)({},E)),"undefined"==typeof document&&j&&(0,a.jsx)(j,{nonce:null==E?void 0:E.nonce})]}):_?(0,a.jsx)(c.Suspense,{fallback:null,children:(0,a.jsx)(g,{})}):(0,a.jsx)(g,{})}else e.loading=null==R?void 0:R.loading,L.element=(0,a.jsx)(s.Outlet,{});t&&(L.element=t);var C=null==h?void 0:h.map(function(t){return d(t,{parent:e,reporter:k})});return v?(0,a.jsx)(s.Route,(0,i._)((0,o._)({},L),{index:!0}),m):(0,a.jsx)(s.Route,(0,i._)((0,o._)({},L),{index:!1,children:C}),m)};function p(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}},89736:function(e,t,n){"use strict";n.r(t),n.d(t,{parsedJSONFromElement:function(){return r}});var r=function(e){var t=document.querySelectorAll("#".concat(e));if(0!==t.length){var n=t[t.length-1];if(n)try{return JSON.parse((null==n?void 0:n.textContent)||"")}catch(t){console.error("parse ".concat(e," error"),t)}}}},69444:function(e,t,n){"use strict";n.r(t);var r=n("75078");n.es(r,t)},78771:function(e,t,n){"use strict";n.r(t);var r=n("3369");n.es(r,t)},67791:function(e,t,n){"use strict";n.r(t),n.d(t,{time:function(){return u}});var r=n("70749");function o(e){var t=.001*new Date().getTime(),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]}var i=function(e){var t=(0,r._)(o(e),2);return 1e3*t[0]+t[1]/1e6},u=function(){var e=o();return function(){return i(e)}}},63415:function(e,t,n){"use strict";n.r(t),n.d(t,{LOADER_REPORTER_NAME:function(){return i},ROUTE_MANIFEST:function(){return r},ROUTE_MODULES:function(){return o}});var r="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"},76492:function(e,t,n){"use strict";n.r(t),n.d(t,{pluginDagSort:function(){return r}});var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"pre",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post",o=function(n){var r=e.find(function(e){return"string"==typeof n?e[t]===n:e[t]===n[t]});if(!r)throw Error("plugin ".concat(n," not existed"));return r},i=[];e.forEach(function(u){var a,c;null===(a=u[n])||void 0===a||a.forEach(function(n){e.find(function(e){return e.name===n})&&i.push([o(n)[t],o(u)[t]])}),null===(c=u[r])||void 0===c||c.forEach(function(n){e.find(function(e){return e.name===n})&&i.push([o(u)[t],o(n)[t]])})});for(var u=e.filter(function(e){return!i.find(function(n){return n[1]===e[t]})}),a=[];u.length;)!function(){var n=u.shift();a.push(o(n)),i=i.filter(function(e){return e[0]!==o(n)[t]}),u=e.filter(function(e){return!a.find(function(n){return n[t]===e[t]})}).filter(function(e){return!i.find(function(n){return n[1]===e[t]})})}();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}},44801:function(e,t,n){"use strict";n.r(t),n.d(t,{Breadcrumbs:function(){return p}});var r=n("90247"),o=n("55709"),i=n("86834");n("5872");var u=n("52493"),a=n.n(u),c=n("83982"),s=n("60441"),l=n("39934"),f=n("60083"),d=n("54109");let p=e=>{let t=[],n=[];for(let e of(0,l.useMatches)()){let t=a().get(e,"handle.breadcrumb");if(!!t)for(let r of a().castArray(t).filter(a().isObject)){if(!("title"in r))continue;let t="pathname"in r&&a().isString(r.pathname)?r.pathname:e.pathname;n.push({title:r.title,pathname:t,id:e.id})}}for(let[e,r]of Object.entries(n)){let o=[r.id,r.pathname,e];t.push((0,i.jsx)(d.Link,{color:"gray",size:"2",to:r.pathname,children:r.title},o.join("_"))),r!==n.at(-1)&&(o.push("#connector"),t.push((0,i.jsx)(s.ChevronRightIcon,{className:f.connector},o.join("_"))))}return(0,i.jsx)(c.Flex,(0,o._)((0,r._)({align:"center",height:"8",gap:"1",px:"4"},e),{children:t}))}},76471:function(e,t,n){"use strict";n.r(t),n.d(t,{ErrorRouteHandler:function(){return s}});var r=n("90247"),o=n("55709"),i=n("86834");n("5872");var u=n("39934"),a=n("83982");let c=e=>{let{error:t}=e,n=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",r=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,i.jsxs)(a.Box,{p:"4",children:[(0,i.jsx)(a.Heading,{as:"h4",mb:"4",children:(0,i.jsx)(a.Text,{as:"span",children:n})}),(0,i.jsx)(a.TextArea,{disabled:!0,style:{height:"50vh"},children:r})]})},s=e=>{let t=(0,u.useRouteError)();return(0,i.jsx)(c,(0,o._)((0,r._)({},e),{error:t}))}},54109:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return s}});var r=n("90247"),o=n("55709"),i=n("16170"),u=n("86834"),a=n("39934"),c=n("83982");let s=e=>{var{to:t,children:n}=e,s=(0,i._)(e,["to","children"]);return(0,u.jsx)(c.Link,(0,o._)((0,r._)({},s),{asChild:!0,children:(0,u.jsx)(a.Link,{to:t,children:n})}))}},80267:function(e,t,n){"use strict";n.r(t),n.d(t,{SelectLink:function(){return u}});var r=n("86834");n("5872");var o=n("83982"),i=n("39934");let u=e=>{let{items:t}=e,n=(0,i.useNavigate)(),u=(0,i.useLocation)(),a=t.find(e=>(0,i.matchPath)(e.to,u.pathname));return(0,r.jsxs)(o.Select.Root,{size:"1",value:null==a?void 0:a.to,onValueChange:n,children:[(0,r.jsx)(o.Select.Trigger,{}),(0,r.jsx)(o.Select.Content,{position:"popper",children:t.map(e=>{let{title:t,to:n}=e;return(0,r.jsx)(o.Select.Item,{value:n,children:t},n)})})]})}},65530:function(e,t,n){"use strict";n.r(t),n.d(t,{Theme:function(){return h}});var r=n("90247"),o=n("55709"),i=n("16170"),u=n("86834"),a=n("5872"),c=n("83982"),s=n("55058"),l=n("52493"),f=n.n(l);let d=e=>["inherit","light","dark"].includes(e),p=e=>{let{children:t}=e,{appearance:n}=(0,c.useThemeContext)();return(0,a.useEffect)(()=>{localStorage.setItem("__modern_js_devtools_appearance",n),"inherit"!==n&&(document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(n))},[n]),(0,u.jsx)(u.Fragment,{children:t})},h=e=>{var{appearance:t,children:n}=e,a=(0,i._)(e,["appearance","children"]);let l=t||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,r._)({},a),{appearance:l,children:(0,u.jsx)(p,{children:n})}))}},74350:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n("39934"),o=e=>{let{params:t}=e;if(!t.toolkit||!t.type)return(0,r.redirect)("/404");if(!["framework","builder","bundler"].includes(t.toolkit))return(0,r.redirect)("/404");if(!["resolved","transformed"].includes(t.type))return(0,r.redirect)("/404");else return null}},30628:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},64981:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return d}});var r=n("86834");n("5872");var o=n("83982"),i=n("39934"),u=n("52493"),a=n.n(u),c=n("88433");let s=e=>{let{name:t,describe:n}=e,i=n.map(e=>(0,r.jsx)(o.Text,{style:{display:"block"},children:e},e));return(0,r.jsx)(o.Tooltip,{className:c.tooltip,side:"right",content:i,children:(0,r.jsx)(o.Select.Item,{value:t,children:(0,r.jsx)(o.Box,{children:a().startCase(t)})})},t)},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,r.jsx)(()=>{let e=(0,i.useLocation)(),t=(0,i.useNavigate)(),[n,u]=e.pathname.split("/").slice(2);return(0,r.jsxs)(o.Select.Root,{size:"1",value:n,onValueChange:e=>{t("/config/".concat(e,"/").concat(u))},children:[(0,r.jsx)(o.Select.Trigger,{children:n}),(0,r.jsx)(o.Select.Content,{children:l.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(s,{name:t,describe:n},t)})})]})},{})},{title:(0,r.jsx)(()=>{let e=(0,i.useLocation)(),t=(0,i.useNavigate)(),[n,u]=e.pathname.split("/").slice(2);return(0,r.jsxs)(o.Select.Root,{size:"1",value:u,onValueChange:e=>{t("/config/".concat(n,"/").concat(e))},children:[(0,r.jsx)(o.Select.Trigger,{children:u}),(0,r.jsx)(o.Select.Content,{children:f.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(s,{name:t,describe:n},t)})})]})},{})}]}},92563:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./builder/transformed");return(0,r.redirect)(n)}},53978:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},22359:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("80267");let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.SelectLink,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},30383:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./builder");return(0,r.redirect)(n)}},8073:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},58237:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},93656:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Header Modifier"}}},92019:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("29214");let i={breadcrumb:{title:(0,r.jsx)(o.HiHomeModern,{}),pathname:"/overview"}}},65556:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n("86834");n("97502");var o=n("5872"),i=n("39934"),u=n("83982"),a=n("29214"),c=n("42700"),s=n("96706"),l=n("43897"),f=n("65530"),d=n("44801");let p=e=>{let{tab:t}=e,n="";if("builtin"===t.view.type)n=t.view.url;else if("iframe"===t.view.type)n="/external/".concat(t.view.src);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,o.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,r.jsx)(u.Tooltip,{content:t.title,side:"right",children:(0,r.jsx)(i.NavLink,{to:n,className:s.tabButton,children:(0,r.jsx)(u.Flex,{justify:"center",align:"center",p:"1",className:s.tabButtonInner,children:(0,r.jsx)(u.Box,{height:"5",width:"5",asChild:!0,children:t.icon})})})})},h=()=>{let{appearance:e}=(0,u.useThemeContext)();return(0,r.jsx)(u.Tooltip,{content:"Appearance",side:"right",children:(0,r.jsx)(u.Box,{className:s.tabButton,onClick:()=>{(0,u.updateThemeAppearanceClass)("light"===e?"dark":"light")},children:(0,r.jsx)(u.Flex,{justify:"center",align:"center",p:"1",className:s.tabButtonInner,children:(0,r.jsx)(u.Box,{height:"5",width:"5",asChild:!0,children:"dark"===e?(0,r.jsx)(a.HiOutlineMoon,{}):(0,r.jsx)(a.HiOutlineSun,{})})})})})},v=()=>{let e=(0,c.useSnapshot)(l.$tabs);return(0,r.jsxs)(u.Flex,{direction:"column",shrink:"0",className:s.navigator,children:[e.map(e=>(0,r.jsx)(p,{tab:e},e.name)),(0,r.jsx)(u.Box,{grow:"1"}),(0,r.jsx)(h,{})]})};function m(){return(0,r.jsxs)(f.Theme,{className:s.wrapper,accentColor:"blue",panelBackground:"solid",children:[(0,r.jsx)(u.Box,{className:s.inner,children:(0,r.jsx)(u.Box,{className:s.innerRight,children:(0,r.jsx)(u.Box,{className:s.container,children:(0,r.jsx)(i.Outlet,{})})})}),(0,r.jsx)(u.ThemePanel,{defaultOpen:!1,style:{display:"none"}}),(0,r.jsx)(v,{}),(0,r.jsx)(d.Breadcrumbs,{className:s.breadcrumbs})]})}},70853:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n("86834"),o=n("20421"),i=n("43897"),u=n("19512"),a=()=>((0,o.useUnmount)(async()=>{(await i.$mountPoint).remote.onFinishRender()}),(0,r.jsx)(u.Loading,{width:"100%",style:{height:"calc(100vh - var(--breadcrumb-height))"}}))},39134:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},99025:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Overview"}}},50512:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./overview");return(0,r.redirect)(n)}},47743:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},9845:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Pages"}}},41058:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("80267");let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.SelectLink,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},6521:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},67080:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./components");return(0,r.redirect)(n)}},43897:function(e,t,n){"use strict";n.r(t),n.d(t,{$builder:function(){return _},$bundler:function(){return y},$definition:function(){return w},$dependencies:function(){return E},$framework:function(){return x},$mountPoint:function(){return v},$perf:function(){return k},$server:function(){return g},$tabs:function(){return b},VERSION:function(){return R}});var r=n("90247"),o=n("55709"),i=n("86834"),u=n("93549"),a=n("88739"),c=n("65872"),s=n("29214"),l=n("54201"),f=n("55058"),d=n("42700");let p=(0,f.stringifyParsedURL)({protocol:"https:"===location.protocol?"wss:":"ws:",host:location.host,pathname:"/__devtools/rpc"}),h=u.MessagePortChannel.link(window.parent,"channel:connect:client");h.then(()=>console.log("$mountPointChannel"));let v=h.then(async e=>{let t=(0,c.createHooks)();return{remote:(0,a.createBirpc)({},(0,o._)((0,r._)({},e.handlers),{timeout:500})),hooks:t}}),m=new window.WebSocket(p),g=u.WebSocketChannel.link(m).then(async e=>{let t=(0,c.createHooks)();return{remote:(0,a.createBirpc)({async refresh(){location.reload()},async updateFileSystemRoutes(e){await t.callHook("updateFileSystemRoutes",e)}},e),hooks:t}}),x=(0,d.proxy)({context:g.then(e=>{let{remote:t}=e;return t.getAppContext()}),config:{resolved:g.then(e=>{let{remote:t}=e;return t.getFrameworkConfig()}),transformed:g.then(e=>{let{remote:t}=e;return t.getTransformedFrameworkConfig()})}}),_=(0,d.proxy)({context:g.then(e=>{let{remote:t}=e;return t.getBuilderContext()}),config:{resolved:g.then(e=>{let{remote:t}=e;return t.getBuilderConfig()}),transformed:g.then(e=>{let{remote:t}=e;return t.getTransformedBuilderConfig()})}}),y=(0,d.proxy)({config:{resolved:g.then(e=>{let{remote:t}=e;return t.getBundlerConfigs()}),transformed:g.then(e=>{let{remote:t}=e;return t.getTransformedBundlerConfigs()})}}),b=(0,d.proxy)([{name:"overview",title:"Overview",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineHome,{})),view:{type:"builtin",url:"/overview"}},{name:"config",title:"Config",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineAdjustmentsHorizontal,{})),view:{type:"builtin",url:"/config"}},{name:"pages",title:"Pages",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineRectangleGroup,{})),view:{type:"builtin",url:"/pages"}},{name:"react",title:"React",icon:(0,d.ref)((0,i.jsx)(l.RiReactjsLine,{})),view:{type:"builtin",url:"/react"}},{name:"context",title:"Context",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineCube,{})),view:{type:"builtin",url:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineAcademicCap,{})),view:{type:"builtin",url:"/headers"}}]),R="2.46.1",j=g.then(e=>{let{remote:t}=e;return t.getClientDefinition()}),w=(0,d.proxy)({name:j.then(e=>e.name),packages:j.then(e=>e.packages),assets:j.then(e=>e.assets),announcement:j.then(e=>e.announcement)}),E=(0,d.proxy)({}),k=(0,d.proxy)({compileDuration:g.then(e=>{let{remote:t}=e;return t.getCompileTimeCost()})})},60083:function(e){"use strict";e.exports={connector:"connector-_43720",link:"link-_26ee2"}},88433:function(e){"use strict";e.exports={tooltip:"tooltip-ece352"}},96706:function(e){"use strict";e.exports={breadcrumbs:"breadcrumbs-_6b38a",container:"container-_7aa7d","fading-mask":"fading-mask-d5651b",fadingMask:"fading-mask-d5651b",inner:"inner-e0e4a8","inner-right":"inner-right-c4d5b6",innerRight:"inner-right-c4d5b6",navigator:"navigator-bd780c","tab-button":"tab-button-_97258",tabButton:"tab-button-_97258","tab-button-inner":"tab-button-inner-_2887d",tabButtonInner:"tab-button-inner-_2887d",wrapper:"wrapper-_97d72"}},97502:function(e){}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["118","126","535","544","58","707","971"],function(){return t("18466"),t("82900"),t("26397"),t("24366"),t("76273")}),e.O()}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see mount.b89b187f.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{18829:function(e,t,n){"use strict";n.r(t),n.d(t,{ReactComponent:function(){return i}});var o=n("90247"),a=n("55709"),r=n("86834");n("5872");let i=e=>(0,r.jsx)("svg",(0,a._)((0,o._)({xmlns:"http://www.w3.org/2000/svg",width:455.127,height:76.954,viewBox:"0 0 455.127 76.954"},e),{children:(0,r.jsx)("g",{fill:"currentColor",fillRule:"evenodd",strokeLinecap:"round",fontSize:12,children:(0,r.jsx)("path",{d:"M23.096 75.977H0V4.59h24.707a55.919 55.919 0 0 1 8.783.653q4.823.767 8.844 2.438a32.184 32.184 0 0 1 1.904.864q8.008 3.955 12.183 11.572a32.438 32.438 0 0 1 3.257 9.058q.803 3.869.903 8.313a56.775 56.775 0 0 1 .015 1.282 55.441 55.441 0 0 1-.653 8.747q-1.087 6.798-3.986 11.956-4.639 8.252-13.061 12.378-8.423 4.126-19.8 4.126Zm1.806-55.811h-5.615v39.99h4.297a23.978 23.978 0 0 0 4.805-.449q5.202-1.066 8.086-4.653a15.925 15.925 0 0 0 2.578-4.81q1.523-4.394 1.523-10.791a40.21 40.21 0 0 0-.234-4.469q-.402-3.594-1.499-6.297a14.688 14.688 0 0 0-2.006-3.534 11.922 11.922 0 0 0-3.194-2.863 13.658 13.658 0 0 0-4.056-1.626q-1.731-.405-3.742-.48a24.996 24.996 0 0 0-.943-.018ZM123.291 44.971v8.496H89.16a10.988 10.988 0 0 0 .884 3.843 9.877 9.877 0 0 0 2.363 3.286q3.003 2.783 8.863 2.783 5.175 0 9.497-1.025a42.981 42.981 0 0 0 5.506-1.721 52.544 52.544 0 0 0 3.405-1.453V72.9q-4.004 2.1-8.74 3.077a41.172 41.172 0 0 1-3.859.59q-3.56.386-8.104.386a40.077 40.077 0 0 1-8.372-.84 32.226 32.226 0 0 1-6.57-2.138 22.906 22.906 0 0 1-10.376-9.229q-3.289-5.432-3.719-13.556a47.413 47.413 0 0 1-.065-2.508q0-9.961 3.418-16.382a22.599 22.599 0 0 1 5.501-6.864 21.455 21.455 0 0 1 4.069-2.658 28.536 28.536 0 0 1 8.473-2.664 37.588 37.588 0 0 1 5.834-.436q7.915 0 13.709 2.71a24.328 24.328 0 0 1 .207.097q5.859 2.808 9.033 8.423a23.114 23.114 0 0 1 2.381 6.323q.632 2.802.76 6.053a42.733 42.733 0 0 1 .033 1.687Zm-33.74-3.516h16.406a11.664 11.664 0 0 0-.404-2.879 10.108 10.108 0 0 0-.573-1.564q-.927-2.002-2.709-3.174a6.912 6.912 0 0 0-2.409-.977 9.817 9.817 0 0 0-2.01-.195 8.801 8.801 0 0 0-2.918.467 7.628 7.628 0 0 0-2.722 1.657 7.286 7.286 0 0 0-1.672 2.421q-.46 1.046-.723 2.346a16.942 16.942 0 0 0-.266 1.898ZM167.48 75.977h-18.896L127.49 20.654h19.922l9.375 32.715q.137.411.467 2.02a112.258 112.258 0 0 1 .046.226 19.061 19.061 0 0 1 .291 1.903 14.863 14.863 0 0 1 .075 1.466h.342a14.573 14.573 0 0 1 .252-2.745 13.298 13.298 0 0 1 .09-.428q.261-1.159.437-1.918a136.744 136.744 0 0 1 .1-.426l9.814-32.813h19.873L167.48 75.977ZM227.783 20.361v55.616h-19.287V20.361h-17.432V4.59h54.102v15.771h-17.383ZM306.662 54.35a43.23 43.23 0 0 0 .418-6.157q0-4.303-.778-7.983a26.737 26.737 0 0 0-2.762-7.544 23.91 23.91 0 0 0-9.741-9.668 27.016 27.016 0 0 0-6.2-2.383 32.596 32.596 0 0 0-7.96-.937 37.958 37.958 0 0 0-6.862.591 27.435 27.435 0 0 0-8.006 2.729 22.673 22.673 0 0 0-9.571 9.668 24.588 24.588 0 0 0-.648 1.325q-2.697 5.959-2.697 14.202a41.077 41.077 0 0 0 .388 5.768 30.674 30.674 0 0 0 1.639 6.537 28.789 28.789 0 0 0 .856 2.033 24.022 24.022 0 0 0 4.881 7 24.539 24.539 0 0 0 8.716 5.542 28.236 28.236 0 0 0 4.232 1.217 33.502 33.502 0 0 0 6.779.663 39.162 39.162 0 0 0 5.019-.31 30.239 30.239 0 0 0 6.553-1.57 26.901 26.901 0 0 0 .477-.18 23.287 23.287 0 0 0 8.263-5.362q3.613-3.662 5.518-9.033a32.011 32.011 0 0 0 1.486-6.148Zm-35.422-6.157q0 4.737.83 7.984t2.661 4.931a6.244 6.244 0 0 0 3.102 1.529 8.91 8.91 0 0 0 1.708.156 8.544 8.544 0 0 0 1.983-.218 5.857 5.857 0 0 0 2.753-1.467 7.765 7.765 0 0 0 1.439-1.922q.479-.883.831-1.974a15.643 15.643 0 0 0 .294-1.035 24.171 24.171 0 0 0 .491-2.645q.195-1.477.269-3.179a49.717 49.717 0 0 0 .045-2.16 46.12 46.12 0 0 0-.11-3.3q-.188-2.614-.695-4.61-.806-3.174-2.588-4.785a6.007 6.007 0 0 0-2.635-1.365q-.922-.229-2.009-.245a11.184 11.184 0 0 0-.166-.001 8.132 8.132 0 0 0-2.619.398q-2.256.764-3.532 2.992a8.551 8.551 0 0 0-.123.223 13.288 13.288 0 0 0-1.078 2.819q-.851 3.173-.851 7.874ZM370.382 54.35a43.23 43.23 0 0 0 .419-6.157q0-4.303-.778-7.983a26.737 26.737 0 0 0-2.762-7.544 23.91 23.91 0 0 0-9.741-9.668 27.016 27.016 0 0 0-6.2-2.383 32.596 32.596 0 0 0-7.961-.937 37.958 37.958 0 0 0-6.862.591 27.435 27.435 0 0 0-8.006 2.729 22.673 22.673 0 0 0-9.57 9.668 24.588 24.588 0 0 0-.648 1.325q-2.697 5.959-2.697 14.202a41.077 41.077 0 0 0 .388 5.768 30.674 30.674 0 0 0 1.639 6.537 28.789 28.789 0 0 0 .855 2.033 24.022 24.022 0 0 0 4.882 7 24.539 24.539 0 0 0 8.716 5.542 28.236 28.236 0 0 0 4.231 1.217 33.502 33.502 0 0 0 6.779.663 39.162 39.162 0 0 0 5.02-.31 30.239 30.239 0 0 0 6.553-1.57 26.901 26.901 0 0 0 .477-.18 23.287 23.287 0 0 0 8.263-5.362q3.613-3.662 5.517-9.033a32.011 32.011 0 0 0 1.486-6.148Zm-35.421-6.157q0 4.737.83 7.984t2.661 4.931a6.244 6.244 0 0 0 3.101 1.529 8.91 8.91 0 0 0 1.709.156 8.544 8.544 0 0 0 1.983-.218 5.857 5.857 0 0 0 2.753-1.467 7.765 7.765 0 0 0 1.439-1.922q.479-.883.831-1.974a15.643 15.643 0 0 0 .294-1.035 24.171 24.171 0 0 0 .49-2.645q.196-1.477.27-3.179a49.717 49.717 0 0 0 .045-2.16 46.12 46.12 0 0 0-.111-3.3q-.188-2.614-.694-4.61-.806-3.174-2.588-4.785a6.007 6.007 0 0 0-2.635-1.365q-.923-.229-2.01-.245a11.184 11.184 0 0 0-.165-.001 8.132 8.132 0 0 0-2.619.398q-2.256.764-3.532 2.992a8.551 8.551 0 0 0-.123.223 13.288 13.288 0 0 0-1.079 2.819q-.85 3.173-.85 7.874ZM400.781 0v75.977h-19.092V0h19.092ZM411.719 73.877V58.594a46.942 46.942 0 0 0 10.644 3.442q4.467.865 7.376 1.017a22.453 22.453 0 0 0 1.169.033 23.338 23.338 0 0 0 1.633-.053q1.997-.141 3.079-.655a3.273 3.273 0 0 0 .737-.469 2.089 2.089 0 0 0 .752-1.655q0-1.221-1.001-2.075a6.393 6.393 0 0 0-.664-.488q-.753-.489-1.94-1.053a34.704 34.704 0 0 0-.96-.437q-1.963-.86-5.142-2.177a655.312 655.312 0 0 0-2.06-.85q-4.59-1.904-7.642-4.151a15.29 15.29 0 0 1-3.214-3.151 13.596 13.596 0 0 1-1.351-2.22 14.224 14.224 0 0 1-1.111-3.359q-.321-1.566-.386-3.371a25.946 25.946 0 0 1-.017-.936 16.624 16.624 0 0 1 .773-5.204 13.104 13.104 0 0 1 5.477-7.003q5.212-3.42 13.244-3.988a46.937 46.937 0 0 1 3.309-.113 44.511 44.511 0 0 1 7.533.618 38.904 38.904 0 0 1 2.77.578 56.912 56.912 0 0 1 6.491 2.043 69.134 69.134 0 0 1 3.518 1.448l-5.224 12.305q-4.102-1.856-8.301-2.979-3.888-1.039-6.311-1.116a11.911 11.911 0 0 0-.379-.007q-2.246 0-3.466.586a2.789 2.789 0 0 0-.59.372 1.672 1.672 0 0 0-.631 1.337 2.288 2.288 0 0 0 .586 1.531 3.206 3.206 0 0 0 .268.276q.649.593 2.184 1.327a28.563 28.563 0 0 0 1.064.48q2.392 1.025 6.982 2.88a51.888 51.888 0 0 1 3.65 1.632q1.693.841 3.107 1.728a27.253 27.253 0 0 1 1.226.815 14.95 14.95 0 0 1 3.24 3.061 13.247 13.247 0 0 1 1.448 2.335 14.028 14.028 0 0 1 1.051 3.104q.487 2.206.487 4.952a20.16 20.16 0 0 1-.662 5.259 16.821 16.821 0 0 1-1.682 4.068 14.139 14.139 0 0 1-4.22 4.516 19.641 19.641 0 0 1-3.275 1.831 23.27 23.27 0 0 1-4.52 1.443q-2.2.479-4.782.689a52.548 52.548 0 0 1-4.248.163 94.534 94.534 0 0 1-5.265-.139q-2.829-.158-5.306-.496a42.222 42.222 0 0 1-7.658-1.805 48.282 48.282 0 0 1-1.79-.636Z",vectorEffect:"non-scaling-stroke"})})}))},91101:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsActionButton:function(){return p}});var o=n("90247"),a=n("55709"),r=n("86834"),i=n("83982"),l=n("5872"),s=n("20421"),c=n("55058"),u=n("15785"),d=n("36916"),v=n("57844"),h=n("18829"),f=n("21967");let p=e=>{let t=e.def.assets.logo,[n,p]=(0,s.useToggle)(!1),g=(0,c.withQuery)(e.endpoint,{src:e.dataSource}),m=(0,f.useStickyDraggable)({clamp:!0}),[q,_]=(0,l.useState)(()=>{var e;let t=null!==(e=localStorage.getItem("__modern_js_devtools_appearance"))&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});return(0,s.useEvent)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&_(e.newValue||void 0)}),(0,s.useEvent)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&p()}),(0,r.jsxs)(i.Theme,{appearance:q,className:q,children:[(0,r.jsx)(u.default,{when:n,keepAlive:!0,children:(0,r.jsx)("div",{className:d.container,children:(0,r.jsx)(v.FrameBox,{src:g,onClose:()=>p(!1),style:{pointerEvents:m.isDragging?"none":"auto"}})})}),(0,r.jsx)(i.Flex,{asChild:!0,py:"1",px:"2",align:"center",children:(0,r.jsxs)("button",(0,a._)((0,o._)({className:d.fab,onClick:()=>p()},m.props),{children:[(0,r.jsx)("img",{className:d.logo,src:t,alt:""}),(0,r.jsx)(h.ReactComponent,{className:d.heading})]}))})]})}},57844:function(e,t,n){"use strict";n.r(t),n.d(t,{FrameBox:function(){return f}});var o=n("90247"),a=n("55709"),r=n("16170"),i=n("86834"),l=n("5872"),s=n("83982"),c=n("20421"),u=n("29214"),d=n("19512"),v=n("11981"),h=n("78225");let f=e=>{var{src:t,onClose:n}=e,f=(0,r._)(e,["src","onClose"]);let[p,g]=(0,l.useState)(!1);return(0,c.useAsync)(async()=>{(await h.$client).hooks.hook("onFinishRender",async()=>g(!0))},[]),(0,i.jsxs)(s.Box,(0,a._)((0,o._)({className:v.container},f),{children:[(0,i.jsx)("iframe",{className:v.frame,src:t}),(0,i.jsx)(u.HiMiniXMark,{className:v.closeButton,onClick:n}),(0,i.jsx)("div",{className:v.backdrop,style:{display:p?"none":void 0},children:(0,i.jsx)(d.Loading,{})})]}))}},15785:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("86834"),a=n("5872"),r=e=>{var t;let n=null===(t=e.keepAlive)||void 0===t||t,{when:r}=e,i=(0,a.useRef)(!1);r&&(i.current=!0);let l=n?i.current:r;return l?(0,o.jsx)("div",{style:{display:!n||r?"unset":"none"},children:e.children}):null}},76942:function(e,t,n){"use strict";n.r(t);var o=n("90247"),a=n("86834");n("24547"),n("78225");var r=n("60182"),i=n("55058"),l=n("52493"),s=n.n(l),c=n("16298"),u=n("91101");let{container:d,resourceQuery:v}=window._modern_js_devtools_app;d.classList.add(c.container);let h=(0,r.createRoot)(d),f=(0,i.parseQuery)(v);if(!s().isString(f.dataSource)||!s().isString(f.def)||!s().isString(f.endpoint))throw TypeError("Failed to parse client definitions of devtools: ".concat(v));let p={dataSource:f.dataSource,endpoint:f.endpoint,def:JSON.parse(f.def)};h.render((0,a.jsx)(u.DevtoolsActionButton,(0,o._)({},p)))},24547:function(e,t,n){"use strict";n.r(t);var o=n("57662");if(!window.opener)try{try{delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__}catch(e){}(0,o.initialize)(window);let e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub=(t,n)=>{if("devtools-backend-installed"!==t)return e(t,n)}}catch(t){let e=Error("Failed to inject React DevTools backend.");e.cause=t,console.error(e)}},78225:function(e,t,n){"use strict";n.r(t),n.d(t,{$client:function(){return h}});var o=n("90247"),a=n("55709"),r=n("93549"),i=n("88739"),l=n("65872"),s=n("57662"),c=n("48463");let u=r.MessagePortChannel.wait(window,"channel:connect:client"),d=new c.WallAgent,v=(0,s.createBridge)(window,d),h=u.then(e=>{let t=(0,l.createHooks)();return{remote:(0,i.createBirpc)({async activateReactDevtools(){(0,s.activate)(window,{bridge:v})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,a._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}});h.then(e=>{let{remote:t}=e;d.bindRemote(t,"sendReactDevtoolsData")})},21967:function(e,t,n){"use strict";n.r(t),n.d(t,{useStickyDraggable:function(){return s}});var o=n("5872"),a=n("20421");let r=(e,t)=>{var n,o;return null!==(o=null===(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===n?void 0:n.includes(t))&&void 0!==o&&o},i=e=>{let[t,...n]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),o=n.findIndex(e=>{let{key:n}=e;return r(t.key,n)}),[a]=n.splice(o,1);return[t,a,n[0],n[1]]},l=e=>{let{top:t,left:n,height:o,width:a}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-o,right:window.innerWidth-n-a}},s=e=>{var t;let n=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",r="number"==typeof n?"".concat(n,"px"):n,[s,c]=(0,o.useState)(),u=()=>{if(!s)return;s.moveable=!1;let{el:e}=s,[t]=i(l(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{c(void 0),e.style[t.key]=r})},d=t=>{let n="touches"in t?t.touches[0]:t;if(!(null==s?void 0:s.moveable))return;let{startX:o,startY:a}=s;(o-n.clientX)**2+(a-n.clientY)**2>9&&(s.clickable=!1);let{width:l,height:c}=s.el.getBoundingClientRect(),u=n.clientY-s.offsetY,d=n.clientX-s.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-c,right:window.innerWidth-d-l}).map(e=>{let{key:t,value:n}=e;return{key:t,value:"".concat(n,"px")}});if(null==e?void 0:e.clamp)for(let e of v){let t=["top","bottom"].includes(e.key)?window.innerHeight-c:window.innerWidth-l;e.value="clamp(".concat(r,", ").concat(e.value,", ").concat(t,"px)")}let[h,f,...p]=v,{style:g}=s.el;g.transition="",g[h.key]=h.value,g[f.key]=f.value,g[p[0].key]="auto",g[p[1].key]="auto"};(0,a.useEvent)("blur",u),(0,a.useEvent)("mouseup",u),(0,a.useEvent)("touchend",u),(0,a.useEvent)("mousemove",d),(0,a.useEvent)("touchmove",d);let v=e=>{let t="touches"in e?e.touches[0]:e,n=e.currentTarget,o=n.getBoundingClientRect(),a=t.clientX-o.left;c({el:n,clickable:!0,moveable:!0,offsetX:a,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!s,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==s?void 0:s.clickable)||e.stopPropagation()}}}}},48463:function(e,t,n){"use strict";n.r(t),n.d(t,{WallAgent:function(){return a}});var o=n("65872");class a extends o.Hookable{listen(e){return this.hook("receive",e),e}send(e,t,n){this.callHook("send",{event:e,payload:t,transferable:n})}bindRemote(e,t){var n=this;return e.$functions[t]=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];n.callHook("receive",...t)},this.hook("send",function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];e[t](...o)}),this}}},36916:function(e){"use strict";e.exports={container:"container-_2b857",fab:"fab-_08a6e",heading:"heading-_1bbcd",logo:"logo-ed314b"}},11981:function(e){"use strict";e.exports={backdrop:"backdrop-_51706","close-button":"close-button-c3742a",closeButton:"close-button-c3742a",container:"container-fb8255",frame:"frame-_5d7ff"}},16298:function(e){"use strict";e.exports={container:"container-d972e2"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","544","58","707","821","971"],function(){return t("18466"),t("82900"),t("26397"),t("24366"),t("76942")}),e.O()}]);
|
package/exports/.eslintrc.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** @type {import('eslint').Linter.Config} */
|
|
2
|
-
// eslint-disable-next-line import/no-commonjs
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
extends: ['@modern-js-app'],
|
|
6
|
-
parserOptions: {
|
|
7
|
-
tsconfigRootDir: __dirname,
|
|
8
|
-
project: ['../tsconfig.json'],
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
curly: 'off',
|
|
12
|
-
},
|
|
13
|
-
};
|
package/exports/mount.mjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import routesManifest from '../dist/routes-manifest.json';
|
|
2
|
-
|
|
3
|
-
try {
|
|
4
|
-
const container = document.createElement('div');
|
|
5
|
-
container.className = '_modern_js_devtools_container';
|
|
6
|
-
document.body.appendChild(container);
|
|
7
|
-
|
|
8
|
-
const shadow = container.attachShadow({ mode: 'closed' });
|
|
9
|
-
|
|
10
|
-
for (const asset of routesManifest.routeAssets.mount.assets) {
|
|
11
|
-
if (asset.endsWith('.js')) {
|
|
12
|
-
const el = document.createElement('script');
|
|
13
|
-
el.src = asset;
|
|
14
|
-
shadow.appendChild(el);
|
|
15
|
-
} else if (asset.endsWith('.css')) {
|
|
16
|
-
const el = document.createElement('link');
|
|
17
|
-
el.href = asset;
|
|
18
|
-
el.rel = 'stylesheet';
|
|
19
|
-
shadow.appendChild(el);
|
|
20
|
-
} else {
|
|
21
|
-
console.warn(new Error(`Can't resolve unknown asset tag: ${asset}`));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const app = document.createElement('div');
|
|
26
|
-
app.className = '_modern_js_devtools_mountpoint theme-register';
|
|
27
|
-
const appGlobalExport = '_modern_js_devtools_app';
|
|
28
|
-
window[appGlobalExport] ||= {};
|
|
29
|
-
Object.assign(window[appGlobalExport], {
|
|
30
|
-
container: app,
|
|
31
|
-
// eslint-disable-next-line no-undef
|
|
32
|
-
resourceQuery: __resourceQuery,
|
|
33
|
-
});
|
|
34
|
-
shadow.appendChild(app);
|
|
35
|
-
} catch (err) {
|
|
36
|
-
const e = new Error('Failed to execute mount point of DevTools.');
|
|
37
|
-
e.cause = err;
|
|
38
|
-
console.error(e);
|
|
39
|
-
console.error(err);
|
|
40
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/static/css/async/client_context/builder/{page.3d9e4afb.css → page.c5c9f155.css}
RENAMED
|
File without changes
|
/package/dist/static/css/async/client_context/framework/{page.3d9e4afb.css → page.c5c9f155.css}
RENAMED
|
File without changes
|
/package/dist/static/css/async/client_headers/editor/{page.1b30ff56.css → page.1cafd3ec.css}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|