@modern-js/devtools-client 2.65.0 → 2.65.2
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/modern.config.json +1 -1
- package/dist/public/sw-proxy.js +1 -1
- package/dist/routes-manifest.json +42 -42
- package/dist/static/css/690.7701d402.css +1 -0
- package/dist/static/css/738.2dbfb4a8.css +1 -0
- package/dist/static/css/{components.699409ea.css → components.663fb16b.css} +1 -1
- package/dist/static/html/client/index.html +3 -3
- package/dist/static/html/mount/index.html +3 -3
- package/dist/static/js/{130.b7ccd432.js → 130.05ae0320.js} +1 -1
- package/dist/static/js/{939.026e5f35.js → 690.477c2c77.js} +2 -2
- package/dist/static/js/{738.0f0e676a.js → 738.eb0fc430.js} +2 -2
- package/dist/static/js/async/699.978d0291.js +1 -0
- package/dist/static/js/{builder-runtime.21ed0887.js → builder-runtime.58617f9c.js} +1 -1
- package/dist/static/js/client.f76c5001.js +1 -0
- package/dist/static/js/{mount.33784f30.js → mount.e8800257.js} +1 -1
- package/package.json +9 -9
- package/dist/static/css/738.b0638a73.css +0 -1
- package/dist/static/css/939.dab1d45c.css +0 -1
- package/dist/static/js/async/883.79b86c45.js +0 -1
- package/dist/static/js/client.dd32d1e8.js +0 -1
- /package/dist/static/js/{939.026e5f35.js.LICENSE.txt → 690.477c2c77.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{738.0f0e676a.js.LICENSE.txt → 738.eb0fc430.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["699"],{23694:function(e,t,n){function i(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");let n={},i=t||{},o=i.decode||r,s=0;for(;s<e.length;){let t=e.indexOf("=",s);if(-1===t)break;let r=e.indexOf(";",s);if(-1===r)r=e.length;else if(r<t){s=e.lastIndexOf(";",t-1)+1;continue}let f=e.slice(s,t).trim();if(i?.filter&&!i?.filter(f)){s=r+1;continue}if(void 0===n[f]){let i=e.slice(t+1,r).trim();34===i.codePointAt(0)&&(i=i.slice(1,-1)),n[f]=function(e,t){try{return t(e)}catch{return e}}(i,o)}s=r+1}return n}function r(e){return e.includes("%")?decodeURIComponent(e):e}n.d(t,{parse:()=>i})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o||"object"==typeof r&&r&&(4&o&&r.__esModule||16&o&&"function"==typeof r.then))return r;var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach(function(e){i[e]=function(){return r[e]}});return i.default=function(){return r},n.d(a,i),a}})(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,r){return n.f[r](e,t),t},[]))},n.u=function(e){return"static/js/async/"+(({127:"client_page",146:"client_storage/preset/page",158:"client_external/$",161:"client_overview/page",244:"client_storage/preset/(id)/page",288:"client_config/(toolkit).(type)/page",299:"client_react/(tab)/layout",361:"client_context/page",470:"client_storage/preset/layout",483:"client_react/(tab)/page",488:"client_doctor/page",504:"client_context/layout",518:"client_config/layout",631:"client_pages/layout",718:"client_pages/page",730:"client_headers/editor/page",744:"client_external/layout",752:"client_react/offscreen/page",818:"client_context/framework/page",860:"client_headers/welcome/page",925:"client_headers/layout",943:"client_config/page",945:"client_react/page",958:"client_context/builder/page",963:"client_headers/page",988:"client_overview/layout"})[e]||e)+"."+({127:"a2223950",146:"b0373a07",158:"38c99ee1",161:"755cd6a3",244:"8fa8c735",288:"ba4a1d2f",299:"b6e74b7b",361:"29e3a931",470:"114e0853",483:"86909e32",488:"e5af3656",504:"f529d23f",518:"61297a6c",631:"80e460c4",718:"8a8a8ae3",730:"2a1555c7",744:"045f31f2",752:"4d8bc70c",808:"f25c3973",818:"2ec943a2",860:"f7917dc3",
|
|
1
|
+
(()=>{"use strict";var e={},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o||"object"==typeof r&&r&&(4&o&&r.__esModule||16&o&&"function"==typeof r.then))return r;var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach(function(e){i[e]=function(){return r[e]}});return i.default=function(){return r},n.d(a,i),a}})(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,r){return n.f[r](e,t),t},[]))},n.u=function(e){return"static/js/async/"+(({127:"client_page",146:"client_storage/preset/page",158:"client_external/$",161:"client_overview/page",244:"client_storage/preset/(id)/page",288:"client_config/(toolkit).(type)/page",299:"client_react/(tab)/layout",361:"client_context/page",470:"client_storage/preset/layout",483:"client_react/(tab)/page",488:"client_doctor/page",504:"client_context/layout",518:"client_config/layout",631:"client_pages/layout",718:"client_pages/page",730:"client_headers/editor/page",744:"client_external/layout",752:"client_react/offscreen/page",818:"client_context/framework/page",860:"client_headers/welcome/page",925:"client_headers/layout",943:"client_config/page",945:"client_react/page",958:"client_context/builder/page",963:"client_headers/page",988:"client_overview/layout"})[e]||e)+"."+({127:"a2223950",146:"b0373a07",158:"38c99ee1",161:"755cd6a3",244:"8fa8c735",288:"ba4a1d2f",299:"b6e74b7b",361:"29e3a931",470:"114e0853",483:"86909e32",488:"e5af3656",504:"f529d23f",518:"61297a6c",631:"80e460c4",699:"978d0291",718:"8a8a8ae3",730:"2a1555c7",744:"045f31f2",752:"4d8bc70c",808:"f25c3973",818:"2ec943a2",860:"f7917dc3",925:"31604154",943:"993f402f",945:"c8fa7b76",958:"bd8357b5",963:"81568ee7",988:"c2f0c4c5"})[e]+".js"},n.miniCssF=function(e){return"static/css/async/"+({146:"client_storage/preset/page",161:"client_overview/page",244:"client_storage/preset/(id)/page",470:"client_storage/preset/layout",488:"client_doctor/page",718:"client_pages/page",730:"client_headers/editor/page"})[e]+"."+({146:"c4cdd54f",161:"c0cb887a",244:"059d889d",470:"c4cdd54f",488:"c491d527",718:"d3851c0f",730:"84a7c425"})[e]+".css"},n.h=function(){return"c25c246577a26c7d"},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},(()=>{var e={},t="modernjsDevtools:";n.l=function(r,o,a,i){if(e[r]){e[r].push(o);return}if(void 0!==a)for(var c,u,l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var d=l[f];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){c=d;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,n.nc&&c.setAttribute("nonce",n.nc),c.setAttribute("data-webpack",t+a),c.src=r),e[r]=[o];var s=function(t,n){c.onerror=c.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=s.bind(null,c.onerror),c.onload=s.bind(null,c.onload),u&&document.head.appendChild(c)}})(),n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.nc=void 0,(()=>{var e=[];n.O=function(t,r,o,a){if(r){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[r,o,a];return}for(var c=1/0,i=0;i<e.length;i++){for(var r=e[i][0],o=e[i][1],a=e[i][2],u=!0,l=0;l<r.length;l++)(!1&a||c>=a)&&Object.keys(n.O).every(function(e){return n.O[e](r[l])})?r.splice(l--,1):(u=!1,a<c&&(c=a));if(u){e.splice(i--,1);var f=o();void 0!==f&&(t=f)}}return t}})(),n.p="/",n.rv=function(){return"1.2.3"},(()=>{if("undefined"!=typeof document){var e=function(e,t,r,o,a){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",n.nc&&(i.nonce=n.nc),i.onerror=i.onload=function(n){if(i.onerror=i.onload=null,"load"===n.type)o();else{var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.href||t,u=Error("Loading CSS chunk "+e+" failed.\\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.type=r,u.request=c,i.parentNode&&i.parentNode.removeChild(i),a(u)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},t=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===t))return o}for(var i=document.getElementsByTagName("style"),r=0;r<i.length;r++){var o=i[r],a=o.getAttribute("data-href");if(a===e||a===t)return o}},r={242:0};n.f.miniCss=function(o,a){if(r[o])a.push(r[o]);else if(0!==r[o]&&({470:1,161:1,488:1,718:1,146:1,244:1,730:1})[o])a.push(r[o]=new Promise(function(r,a){var i=n.miniCssF(o),c=n.p+i;if(t(i,c))return r();e(o,c,null,r,a)}).then(function(){r[o]=0},function(e){throw delete r[o],e}))}}})(),(()=>{var e={242:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o){if(o)r.push(o[2]);else if(242!=t){var a=new Promise(function(n,r){o=e[t]=[n,r]});r.push(o[2]=a);var i=n.p+n.u(t),c=Error();n.l(i,function(r){if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;c.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",c.name="ChunkLoadError",c.type=a,c.request=i,o[1](c)}},"chunk-"+t,t)}else e[t]=0}},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,a,i=r[0],c=r[1],u=r[2],l=0;if(i.some(function(t){return 0!==e[t]})){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(u)var f=u(n)}for(t&&t(r);l<i.length;l++)a=i[l],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(f)},r=self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.ruid="bundler=rspack@1.2.3"})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["462"],{95942:function(e,t,n){n.d(t,{sY:()=>w});var r=n(12402),o=n(84706),i=n(49987),a=n(65),u=n(50102),l=n(99613),s=n(75192),c=n(62641),d=n(24644),f=n(13063),h=n(5872);function p(e,t){return h.createElement(d.JO.Provider,{value:t},e)}var v=n(86834),m=n(27947),g=n(24348),y=function(e){var t=e.callback,n=e.children,r=(0,h.useRef)(!1);return(0,h.useLayoutEffect)(function(){!r.current&&(r.current=!0,t())},[t]),n},x=function(){return!0};function w(e,t){return _.apply(this,arguments)}function _(){return(_=(0,r._)(function(e,t){var n,h,w,_,j,E,k,C,A,S,P;function N(){return(N=(0,r._)(function(e){return(0,l.Jh)(this,function(t){return[2,function(e,t){return b.apply(this,arguments)}(e,P)]})})).apply(this,arguments)}function T(){return(T=(0,r._)(function(e,t){return(0,l.Jh)(this,function(n){return[2,function(e,t){return R.apply(this,arguments)}(e,P,t)]})})).apply(this,arguments)}return(0,l.Jh)(this,function(b){var R,M,D,O,L,H,U,B,I,J,z,F,Z,q,V,W,X;switch(b.label){case 0:if(n=(0,d.zv)(),R=(0,r._)(function(e){var t,n;return(0,l.Jh)(this,function(r){switch(r.label){case 0:return(t=(0,c.Uk)()).pluginAPI.updateRuntimeContext(e),[4,t.hooks.onBeforeRender.call(e)];case 1:return r.sent(),[2,null==(n=(0,c.Hb)())?void 0:n(e)]}})}),h=function(e){return R.apply(this,arguments)},!(void 0===t||"string"==typeof t||"undefined"!=typeof HTMLElement&&(0,o._)(t,HTMLElement)))return[3,2];return w=function(e){return N.apply(this,arguments)},_=function(e,t){return T.apply(this,arguments)},H=null==(L=window._SSR_DATA)?void 0:null===(M=L.context)||void 0===M?void 0:M.request,A=Object.keys(C=(null===(j=(k=(0,a._)((0,i._)({},L||{renderLevel:0,mode:"string"}),{context:(0,a._)((0,i._)({},(null==L?void 0:L.context)||{}),{request:(0,a._)((0,i._)({},(null==L?void 0:null===(D=L.context)||void 0===D?void 0:D.request)||{}),{params:(null==H?void 0:H.params)||{},host:(null==H?void 0:H.host)||location.host,pathname:(null==H?void 0:H.pathname)||location.pathname,headers:(null==H?void 0:H.headers)||{},cookieMap:s.parse(document.cookie||"")||{},cookie:document.cookie||"",userAgent:(null==H?void 0:null===(O=H.headers)||void 0===O?void 0:O["user-agent"])||navigator.userAgent,referer:document.referrer,query:(0,i._)({},window.location.search.substring(1).split("&").reduce(function(e,t){var n=(0,u._)(t.split("="),2),r=n[0],o=n[1];return r&&(e[r]=o),e},{}),(null==H?void 0:H.query)||{}),url:location.href})})})).data)||void 0===j?void 0:j.loadersData)||{}).reduce(function(e,t){var n=C[t];return(null==n?void 0:n.loading)!==!1||(e[t]=n),e},{}),Object.assign(n,(0,i._)({loaderManager:(0,f.K)(A,{skipStatic:!0}),_internalRouterBaseName:e.props.basename},{ssrContext:k.context})),n.initialData=null===(E=k.data)||void 0===E?void 0:E.initialData,[4,h(n)];case 1:if((S=b.sent())&&(n.initialData=S),P=t&&"string"!=typeof t?t:document.getElementById(t||"root"),window._SSR_DATA)return[2,(U=n,B=w,I=_,q=(0,a._)((0,i._)({},U),{get routes(){return U.routes},_hydration:!0}),V=function(){delete q._hydration},W=(null===(z=window)||void 0===z?void 0:null===(J=z._SSR_DATA)||void 0===J?void 0:J.renderLevel)||g.Nm.CLIENT_RENDER,X=(null===(Z=window)||void 0===Z?void 0:null===(F=Z._SSR_DATA)||void 0===F?void 0:F.mode)||"string",x()&&"stream"===X?W===g.Nm.SERVER_RENDER?I(p((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:V,children:e})},{}),q)):B(p(e,U)):W===g.Nm.CLIENT_RENDER||W===g.Nm.SERVER_PREFETCH?B(p(e,U)):W===g.Nm.SERVER_RENDER?new Promise(function(t){x()?(0,m.TA)(function(){I(p((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:V,children:e})},{}),q)).then(function(e){t(e)})}):(0,m.TA)(function(){I(p(e,q),V).then(function(e){t(e)})})}):(console.warn("unknow render level: ".concat(W,", execute render()")),B(p(e,U))))];return[2,w(p(e,n))];case 2:throw Error("`render` function needs id in browser environment, it needs to be string or element")}})})).apply(this,arguments)}function b(){return(b=(0,r._)(function(e,t){var r;return(0,l.Jh)(this,function(o){switch(o.label){case 0:return[4,n.e("58").then(n.t.bind(n,41035,19))];case 1:return(r=o.sent().createRoot(t)).render(e),[2,r]}})})).apply(this,arguments)}function j(){return(j=(0,r._)(function(e,t){return(0,l.Jh)(this,function(r){switch(r.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,54e3,19))];case 1:return r.sent().render(e,t),[2,t]}})})).apply(this,arguments)}function R(){return(R=(0,r._)(function(e,t){return(0,l.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e("58").then(n.t.bind(n,41035,19))];case 1:return[2,r.sent().hydrateRoot(t,e)]}})})).apply(this,arguments)}function E(){return(E=(0,r._)(function(e,t,r){return(0,l.Jh)(this,function(o){switch(o.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,54e3,19))];case 1:return[2,o.sent().hydrate(e,t,r)]}})})).apply(this,arguments)}},24348:function(e,t,n){n.d(t,{Ni:()=>a,Nm:()=>o,pc:()=>i}),(r=o||(o={}))[r.CLIENT_RENDER=0]="CLIENT_RENDER",r[r.SERVER_PREFETCH=1]="SERVER_PREFETCH",r[r.SERVER_RENDER=2]="SERVER_RENDER";var r,o,i="__MODERN_SSR_DATA__",a="__MODERN_ROUTER_DATA__"},62641:function(e,t,n){n.d(t,{CH:()=>d,FM:()=>u,Hb:()=>s,Uk:()=>a,cE:()=>o,hb:()=>i,jn:()=>l,nB:()=>c});var r={};function o(e){r.App=e.App,r.routes=e.routes,r.appInit=e.appInit,r.appConfig="function"==typeof e.appConfig?e.appConfig():e.appConfig,r.layoutApp=e.layoutApp,r.RSCRoot=e.RSCRoot}function i(e){r.internalRuntimeContext=e}function a(){return r.internalRuntimeContext}function u(){return r.App}function l(){return r.routes}function s(){var e,t;return r.appInit||(null===(e=u())||void 0===e?void 0:e.init)||(null===(t=d())||void 0===t?void 0:t.init)}function c(){var e,t;return r.appConfig||(null===(e=u())||void 0===e?void 0:e.config)||(null===(t=d())||void 0===t?void 0:t.config)}function d(){return r.layoutApp}},24644:function(e,t,n){n.d(t,{JO:()=>a,zv:()=>u});var r=n(63415),o=n(5872),i=n(13063),a=(0,o.createContext)({});(0,o.createContext)({});var u=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1?arguments[1]:void 0;return{loaderManager:(0,i.K)({}),isBrowser:e,routeManifest:t||"undefined"!=typeof window&&window[r.p9]}}},13063:function(e,t,n){n.d(t,{K:()=>p});var r,o,i=n(12402),a=n(84706),u=n(50102),l=n(77360),s=n(99613),c=n(24546),d=n.n(c),f=function(){var e=new Map;return function(t){var n=e.get(t);if(n)return n;var r=JSON.stringify(t);return d()(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 h=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&&void 0!==arguments[2]?arguments[2]:function(){return Promise.resolve()},u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=0,d=r.data,f=r.error,h=!1,p=new Set,v=(t=(0,i._)(function(){return(0,s.Jh)(this,function(e){return u||1===c?[2,n]:(c=1,g(),[2,n=o().then(function(e){d=e,f=null,c=2}).catch(function(e){f=e,d=null,c=3}).finally(function(){n=null,h=!0,g()})])})}),function(){return t.apply(this,arguments)}),m=function(){return{loading:!h&&1===c,reloading:h&&1===c,data:d,error:(0,a._)(f,Error)?"".concat(f.message):f,_error:f}},g=function(){(0,l._)(p).forEach(function(e){e(c,m())})};return{get result(){return m()},get promise(){return n},onChange:function(e){return p.add(e),function(){p.delete(e)}},load:v}},p=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipStatic,o=void 0!==r&&r,l=n.skipNonStatic,c=void 0!==l&&l,d=new Map,p=f();return{hasPendingLoaders:function(){var e=!0,t=!1,n=void 0;try{for(var r,o=d.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value.promise;if((0,a._)(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,l,c,f,h;return(0,s.Jh)(this,function(s){switch(s.label){case 0:e=[],t=!0,n=!1,r=void 0;try{for(o=d[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)c=(l=(0,u._)(i.value,2))[0],h=(f=l[1]).promise,(0,a._)(h,Promise)&&e.push([c,f])}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,u._)(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=p(n.params),i=d.get(r),a=n._cache;if(!i||!1===a){var u=c&&!n.static,l=o&&n.static;i=h(r,void 0!==e[r]?e[r]:{data:n.initialData},t,u||l),d.set(r,i)}return r},get:function(e){return d.get(e)}}}},61597:function(e,t,n){n.d(t,{v:()=>b,f:()=>j});var r,o,i,a,u,l,s,c=n(77360),d=n(27293),f=n(545),h=n(49987),p=n(17936),v=n(65),m=n(22589),g=(o=function(e){s.clear(),r=e;var t=e.plugins,n=e.handleSetupResult;s.addPlugins(t);var o=s.getPlugins(),i=(g=(f={runtimeContext:{},config:r.config,plugins:o}).runtimeContext,y=f.config,x=f.plugins,w={},x.forEach(function(e){var t=e.registryHooks,n=void 0===t?{}:t;Object.keys(n).forEach(function(e){w[e]=n[e]})}),(0,v._)((0,h._)({},g),{hooks:(0,h._)({},{onBeforeRender:(0,m.Ol)(),wrapRoot:(0,m.y2)(),pickContext:(0,m.y2)(),modifyRuntimeConfig:(0,m.rG)()},w),extendsHooks:w,config:y})),a=function(e){var t=e.context,n=e.plugins,r=t.hooks,o=t.extendsHooks;function i(){if(t){t.hooks,t.extendsHooks,t.config,t.pluginAPI;var e=(0,p._)(t,["hooks","extendsHooks","config","pluginAPI"]);return e._internalContext=t,e}throw Error("Cannot access context")}function a(e){t=(0,d.T)(t,e)}var u={};return n.forEach(function(e){var t=e._registryApi;if(t){var n=t(i,a);Object.keys(n).forEach(function(e){u[e]=n[e]})}}),o&&Object.keys(o).forEach(function(e){u[e]=o[e].tap}),new Proxy((0,h._)({updateRuntimeContext:a,getHooks:function(){return(0,h._)({},r,o)},getRuntimeConfig:function(){if(t.config)return t.config;throw Error("Cannot access config")},modifyRuntimeConfig:r.modifyRuntimeConfig.tap,onBeforeRender:r.onBeforeRender.tap,wrapRoot:r.wrapRoot.tap,pickContext:r.pickContext.tap},u),{get:function(e,t){return"then"===t?void 0:t in e?e[t]:function(){console.warn("api.".concat(t.toString()," not exist"))}}})}({context:i,pluginManager:s,plugins:o});i.pluginAPI=a;var u=!0,l=!1,c=void 0;try{for(var f,g,y,x,w,_,b=o[Symbol.iterator]();!(u=(_=b.next()).done);u=!0){var j,R=_.value,E=null===(j=R.setup)||void 0===j?void 0:j.call(R,a);n&&n(E,a)}}catch(e){l=!0,c=e}finally{try{u||null==b.return||b.return()}finally{if(l)throw c}}return{runtimeContext:i}},i=new Map,a=new Map,u=function(e,t,n){a.has(t)||a.set(t,{pre:new Map,post:new Map}),"pre"===n?a.get(e).pre.set(t,{name:t,isUse:!1}):"post"===n?a.get(e).post.set(t,{name:t}):"use"!==n||a.get(e).post.has(t)||a.get(t).pre.has(e)||a.get(e).pre.set(t,{name:t,isUse:!0})},l=function(e){if(e){!function(e){var t=void 0===e?"undefined":(0,f._)(e);if("object"!==t||null===e)throw Error("Expect CLI Plugin instance to be an object, but got ".concat(t,"."));if(e.setup){if("function"==typeof e.setup)return;throw Error("Expect CLI Plugin plugin.setup to be a function, but got ".concat(t,"."))}}(e);var t=e.name,n=e.usePlugins,r=e.pre,o=e.post;if(i.has(t)){console.warn("Plugin ".concat(t," already exists."));return}i.set(t,e),a.set(t,{pre:new Map,post:new Map}),(void 0===r?[]:r).forEach(function(e){u(t,e,"pre")}),(void 0===o?[]:o).forEach(function(e){u(t,e,"post")}),(void 0===n?[]:n).forEach(function(e){i.has(e.name)||l(e),u(t,e.name,"use")})}},s={getPlugins:function(){var e=new Set,t=new Set,n=[],r=function(o){if(t.has(o))throw Error("Circular dependency detected: ".concat(o));if(!e.has(o)&&i.get(o)){t.add(o);var u=i.get(o).required;(void 0===u?[]:u).forEach(function(e){if(!i.get(e))throw Error("".concat(o," plugin required plugin ").concat(e,", but not found."))});var l=a.get(o).pre;Array.from(l.values()).filter(function(e){return!e.isUse}).forEach(function(e){return r(e.name)}),Array.from(l.values()).filter(function(e){return e.isUse}).forEach(function(e){return r(e.name)}),t.delete(o),e.add(o),n.push(i.get(o))}};return i.forEach(function(e,t){a.get(t).post.forEach(function(e){a.get(e.name).pre.has(t)||a.get(e.name).pre.set(t,{name:t,isUse:!1})})}),i.forEach(function(e,t){r(t)}),n=n.filter(function(e){return e})},addPlugins:function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value;l(a)}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}},clear:function(){i.clear(),a.clear()},isPluginExists:function(e){return i.has(e)}},{run:function(e){var t=o(e).runtimeContext,n=t.hooks.modifyRuntimeConfig.call(t.config).filter(function(e){return!!e});return t.config=d.T.apply(void 0,[{}].concat((0,c._)(n))),{runtimeContext:t}}}),y=n(12402),x=n(99613);function w(e,t){e&&Object.keys(e).forEach(function(n){var r=e[n];if("function"==typeof r){var o,i="beforeRender"===(o=n)?"onBeforeRender":o;t[i]&&("beforeRender"===n?t[i]((0,y._)(function(){var e,t,n,o=arguments;return(0,x.Jh)(this,function(i){switch(i.label){case 0:for(t=Array(e=o.length),n=0;n<e;n++)t[n]=o[n];return[4,r.apply(void 0,(0,c._)(t))];case 1:return i.sent(),[2]}})})):t[i](function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.apply(void 0,(0,c._)(t))}))}})}var _=n(62641);function b(e,t){var n=(t||{}).plugins,r=g.run({plugins:[{name:"@modern-js/runtime-plugin-compat",_registryApi:function(e){return{useRuntimeConfigContext:function(){return e()._internalContext.config},useHookRunners:function(){var t,n;return t=e()._internalContext.hooks,{beforeRender:(n=(0,y._)(function(e){return(0,x.Jh)(this,function(n){return[2,t.onBeforeRender.call(e)]})}),function(e){return n.apply(this,arguments)}),wrapRoot:function(e){return t.wrapRoot.call(e)},pickContext:function(e){return t.pickContext.call(e)},modifyRuntimeConfig:function(e){return t.modifyRuntimeConfig.call(e)}}}}}}].concat((0,c._)(e),(0,c._)(void 0===n?[]:n)),config:t||{},handleSetupResult:w}).runtimeContext;return(0,_.hb)(r),r}function j(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return d.T.apply(void 0,[{},e].concat((0,c._)(n)))}},62192:function(e,t,n){n.d(t,{s:()=>a});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)}}},o=n(24348),i=n(62641);function a(e){var t=e||(0,i.FM)();return"undefined"!=typeof window&&"nodejs"!==window.name&&(window._SSR_DATA=window._SSR_DATA||r(o.pc),window._ROUTER_DATA=window._ROUTER_DATA||r(o.Ni)),(0,i.Uk)().hooks.wrapRoot.call(t)}},30624:function(e,t,n){n.d(t,{NA:()=>T});var r=n(49987),o=n(65),i=n(77360),a=n(86834),u=n(27293),l=n(43866),s=n(81784);function c(e){return"/"+e.replace(/^\/+|\/+$/g,"")}var d=n(5872),f=n(24644),h=n(62641),p=n(22589),v=(0,p.y2)(),m=(0,p.y2)(),g=n(17936),y=n(50102),x=n(12402),w=n(545),_=n(99613);function b(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]}n(63415);var j=function(e){var t=(0,y._)(b(e),2);return 1e3*t[0]+t[1]/1e6},R=function(){var e=b();return function(){return j(e)}},E=function(e){var t,n,i,u,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=e.children,f=e.index,h=e.id,p=e.component,v=e.isRoot,m=e.lazyImport,g=e.config,y=e.handle,b=s.parent,j=s.props,C={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:(i=(t=e).loader)?(n=(0,x._)(function(e){var n,r,o;return(0,_.Jh)(this,function(o){switch(o.label){case 0:return"function"==typeof t.lazyImport&&t.lazyImport(),n=R(),[4,i(e)];case 1:return r=o.sent(),n(),"undefined"==typeof document&&console.error("You should not get async storage in browser"),[2,r]}})}),function(e){return n.apply(this,arguments)}):function(){return"function"==typeof t.lazyImport&&t.lazyImport(),null},action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,r._)({},y,(void 0===g?"undefined":(0,w._)(g))==="object"?null==g?void 0:g.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error){var A=(0,a.jsx)(e.error,{});C.errorElement=A}if(p){if((null==b?void 0:b.loading)&&m){var S=b.loading;u=k(p)?(0,a.jsx)(p,{fallback:(0,a.jsx)(S,{})}):(0,a.jsx)(d.Suspense,{fallback:(0,a.jsx)(S,{}),children:(0,a.jsx)(p,{})})}else u=k(p)&&m?(0,a.jsx)(p,{}):v?(0,a.jsx)(p,(0,r._)({},void 0===j?{}:j)):m?(0,a.jsx)(d.Suspense,{fallback:null,children:(0,a.jsx)(p,{})}):(0,a.jsx)(p,{})}else e.loading=null==b?void 0:b.loading,C.element=(0,a.jsx)(l.j3,{});u&&(C.element=u);var P=null==c?void 0:c.map(function(t){return E(t,{parent:e})});return f?(0,a.jsx)(l.AW,(0,o._)((0,r._)({},C),{index:!0}),h):(0,a.jsx)(l.AW,(0,o._)((0,r._)({},C),{index:!1,children:P}),h)};function k(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}var C=n(38933),A=function(){return(0,a.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})};function S(){return null}var P=function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=RegExp("".concat("/","{1,}"),"g");return(e=n.join("/").replace(o,"/"))&&"string"==typeof e&&(e.startsWith(".")&&(e=e.slice(1)),e.startsWith("/")||(e="/".concat(e)),e.endsWith("/")&&"/"!==e&&(e=e.slice(0,e.length-1))),e},N={routes:[]},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"@modern-js/plugin-router",registryHooks:{modifyRoutes:v,onBeforeCreateRoutes:m},setup:function(t){var n=[];t.onBeforeRender(function(t){if(window._SSR_DATA&&e.unstable_reloadOnURLMismatch){var r,o=t.ssrContext,i=c(window.location.pathname),a=(null==o?void 0:null===(r=o.request)||void 0===r?void 0:r.pathname)&&c(o.request.pathname);a&&a!==i&&(console.error("The initial URL ".concat(a," and the URL ").concat(i," to be hydrated do not match, reload.")),window.location.reload())}t.router={useMatches:l.SN,useLocation:l.TH,useHref:l.oQ},Object.defineProperty(t,"routes",{get:function(){return n}})}),t.wrapRoot(function(c){var p,v,m=t.getRuntimeConfig(),x=(0,u.T)(m.router||{},e),w=x.serverBase,_=void 0===w?[]:w,b=x.supportHtml5History,j=void 0===b||b,R=x.basename,k=void 0===R?"":R,T=x.routesConfig,M=x.createRoutes,D=x.future;return(N=(0,r._)({routes:(0,h.jn)(),globalApp:(0,h.CH)()},T)).routes||M?(p=function(e){var u,c=(0,d.useContext)(f.JO),h=(u=location.pathname,_.find(function(e){return 0===u.search(e)})||"/").replace(/^\/*/,"/"),p="/"===h?P(h,c._internalRouterBaseName||k):h,v=window._ROUTER_DATA,m=c.unstable_getBlockNavState;return(0,d.useMemo)(function(){(null==v?void 0:v.errors)&&(v=(0,o._)((0,r._)({},v),{errors:function(e){if(!e)return null;var t=Object.entries(e),n={},r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var l=(0,y._)(a.value,2),s=l[0],c=l[1];if(c&&"RouteErrorResponse"===c.__type)n[s]=new C.OF(c.status,c.statusText,c.data,!0===c.internal);else if(c&&"Error"===c.__type){var d=Error(c.message);d.stack=c.stack,n[s]=d}else n[s]=c}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(v.errors)})),n=M?M():(0,l.i7)(function(e){var t=e.routesConfig,n=e.props,o=e.ssrMode;if(!t)return null;var i=t.routes,u=t.globalApp;return i?function(e,t){var n=t.globalApp,o=t.ssrMode,i=t.props,u=function(e){var t=e.Component,o=(0,g._)(e,["Component"]);return n?(0,a.jsx)(n,(0,r._)({Component:t},o)):(0,a.jsx)(t,(0,r._)({},o))},s=[],c=!0,d=!1,f=void 0;try{for(var h,p=e[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var v=h.value;if("nested"===v.type){var m=E(v,{DeferredDataComponent:"stream"===o?S:void 0,props:i});s.push(m)}else{var y=(0,a.jsx)(l.AW,{path:v.path,element:(0,a.jsx)(u,{Component:v.component})},v.path);s.push(y)}}}catch(e){d=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(d)throw f}}return s.push((0,a.jsx)(l.AW,{path:"*",element:(0,a.jsx)(A,{})},"*")),s}(i,{globalApp:u,ssrMode:o,props:n}):null}({routesConfig:N,props:e})),n=t.getHooks().modifyRoutes.call(n);var u=j?(0,s.aj)(n,{basename:p,hydrationData:v}):(0,s.cP)(n,{basename:p,hydrationData:v}),c=u.subscribe;return u.subscribe=function(e){return c(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!(m&&m()))return e.apply(void 0,(0,i._)(n))})},u},[N,e,p,v,m])},v=function(){return null},function(e){var t=p(e),n=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.pG,{router:t,future:D}),(0,a.jsx)(v,{}),(0,a.jsx)(v,{})]});return c?(0,a.jsx)(c,{children:n}):n}):c})}}}},83366:function(e,t,n){n.d(t,{RC:()=>o,UC:()=>a,u3:()=>i});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.u$])||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.u$][t]=e),e},a=function(e){return console.error(e),null}},22589:function(e,t,n){n.d(t,{Ol:()=>a,rG:()=>l,y2:()=>u});var r=n(12402),o=n(77360),i=n(99613);function a(){var e,t=[];return{tap:function(e){t.push(e)},call:(e=(0,r._)(function(){var e,n,r,a,u,l,s,c,d,f,h,p,v,m,g=arguments;return(0,i.Jh)(this,function(i){switch(i.label){case 0:for(n=Array(e=g.length),r=0;r<e;r++)n[r]=g[r];a=!1,l=function(e){a=!0,u=e},s=!0,c=!1,d=void 0,i.label=1;case 1:i.trys.push([1,6,7,8]),f=t[Symbol.iterator](),i.label=2;case 2:if((s=(h=f.next()).done)||(p=h.value,a))return[3,5];return[4,p.apply(void 0,(0,o._)(n).concat([l]))];case 3:void 0!==(v=i.sent())&&(n[0]=v),i.label=4;case 4:return s=!0,[3,2];case 5:return[3,8];case 6:return m=i.sent(),c=!0,d=m,[3,8];case 7:try{s||null==f.return||f.return()}finally{if(c)throw d}return[7];case 8:return[2,a?u:n[0]||[]]}})}),function(){return e.apply(this,arguments)})}}function u(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=!0,a=!1,u=void 0;try{for(var l,s=e[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var c=l.value.apply(void 0,(0,o._)(n));void 0!==c&&(n[0]=c)}}catch(e){a=!0,u=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw u}}return n[0]}}}function l(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=[],i=!0,a=!1,u=void 0;try{for(var l,s=e[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var c=(0,l.value)(n);void 0!==c&&o.push(c)}}catch(e){a=!0,u=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw u}}return o}}}},27293:function(e,t,n){n.d(t,{T:()=>function e(t){for(var n=arguments.length,i=Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];if(!i.length)return t;var l=i.shift();if(a(t)&&a(l))for(var s in l)a(l[s])?(t[s]||Object.assign(t,(0,r._)({},s,{})),e(t[s],l[s])):Object.assign(t,(0,r._)({},s,l[s]));return e.apply(void 0,[t].concat((0,o._)(i)))}});var r=n(81855),o=n(77360),i=n(545);function a(e){return e&&(void 0===e?"undefined":(0,i._)(e))==="object"&&!Array.isArray(e)}},63415:function(e,t,n){n.d(t,{m5:()=>i,p9:()=>r,u$:()=>o});var r="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"},26678:function(e,t,n){n.d(t,{M:()=>l});var r=n(86834),o=n(43866),i=n(49133),a=n(5872);let u=e=>{let{error:t}=e,n=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",o=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,r.jsxs)(i.xu,{p:"4",children:[(0,r.jsx)(i.X6,{as:"h4",mb:"4",children:(0,r.jsx)(i.xv,{as:"span",children:n})}),(0,r.jsx)(i.Kx,{disabled:!0,style:{height:"50vh"},value:o})]})},l=()=>{let e=(0,o.lk)();return(0,a.useEffect)(()=>{console.error(e)},[e]),(0,r.jsx)(u,{resetErrorBoundary:()=>null,error:e})}},41294:function(e,t,n){n.d(t,{l:()=>u});var r=n(86834),o=n(43866),i=n(38933),a=n(49133);let u=e=>{let{items:t}=e,n=(0,o.s0)(),u=(0,o.TH)(),l=t.find(e=>(0,i.LX)(e.to,u.pathname));return(0,r.jsxs)(a.Ph.fC,{size:"1",value:null==l?void 0:l.to,onValueChange:n,children:[(0,r.jsx)(a.Ph.xz,{}),(0,r.jsx)(a.Ph.VY,{position:"popper",children:t.map(e=>{let{title:t,to:n}=e;return(0,r.jsx)(a.Ph.ck,{value:n,children:t},n)})})]})}},95197:function(e,t,n){n.d(t,{T:()=>k,k:()=>C});var r=n(49987),o=n(65),i=n(86834),a=n(29134),u=n(10487),l=n(65872);class s extends l.gl{static use(){return u.RUNTIME_GLOBALS in window||(window[u.RUNTIME_GLOBALS]=new s),window[u.RUNTIME_GLOBALS]}}async function c(e){s.use();let t=e.map(e=>new Promise((t,n)=>{let r=document.createElement("script");r.onload=()=>t(),r.onerror=e=>n(e),r.src=e,document.head.appendChild(r)}));await Promise.all(t)}var d=n(64542),f=n(7459),h=n(52493),p=n.n(h),v=n(3570),m=n(13190),g=n(4390),y=n(55058),x=n(41839);let w=async()=>{let e=await u.MessagePortChannel.link(window.parent,"channel:connect:client"),t=(0,l.Hu)();return{remote:(0,f.Fu)({async pullUp(e){await t.callHook("pullUp",e)}},(0,o._)((0,r._)({},e.handlers),{timeout:8e3})),hooks:t}};class _ extends Error{constructor(e){super(),this.name="InitializeManifestError",this.cause=e,this.message="Failed to initialize manifest of DevTools"}}let b=async e=>{let t=await fetch(e);try{let e=await t.text();return JSON.parse(e,(0,u.reviver)())}catch(e){throw new _(e)}},j=async(e,t)=>{let n=new URL(e,location.href),i=new window.WebSocket(n),a=await u.WebSocketChannel.link(i),s=(0,l.Hu)();return{remote:(0,f.Fu)({async refresh(){location.reload()},async applyStateOperations(e){for(let n of e)(0,u.applyOperation)(t,n)}},(0,o._)((0,r._)({},a.handlers),{timeout:5e3})),hooks:s,url:n}},R=async()=>{let e=s.use(),t=(0,x.sj)([{name:"overview",title:"Overview",icon:(0,i.jsx)(m.VRM,{}),view:{type:"builtin",src:"/overview"}},{name:"config",title:"Config",icon:(0,i.jsx)(m.pZq,{}),view:{type:"builtin",src:"/config"}},{name:"pages",title:"Pages",icon:(0,i.jsx)(m.OiH,{}),view:{type:"builtin",src:"/pages"}},{name:"react",title:"React",icon:(0,i.jsx)(g.Ueg,{}),view:{type:"builtin",src:"/react"}},{name:"context",title:"Context",icon:(0,i.jsx)(m.sin,{}),view:{type:"builtin",src:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,i.jsx)(m.KBe,{}),view:{type:"builtin",src:"/headers"}},{name:"doctor",title:"Doctor",icon:(0,i.jsx)(g.BwS,{}),view:{type:"builtin",src:"/doctor"}},{name:"storage",title:"Storage",icon:(0,i.jsx)(m.RMk,{}),view:{type:"builtin",src:"/storage/preset"}}]);for(let n of(await e.callHook("tab:list",t),t))"object"==typeof n.icon&&(n.icon=(0,x.iH)(n.icon)),"external"===n.view.type&&(n.view.component=(0,x.iH)(n.view.component));return t},E=async e=>{let t=new d.S,n=t.bindRemote(e.remote,"sendReactDevtoolsData");await e.remote.activateReactDevtools();let r=(0,v.createBridge)(window.parent,t);r.shutdown=()=>null;let o=(0,v.createStore)(r),i=(0,v.initialize)(window.parent,{bridge:r,store:o});return{store:o,bridge:r,wallAgent:t,unreg:n,Renderer:i}},k=(async e=>{var t;let n=(0,y.mB)((0,y.Lk)(e).search),i=null!==(t=p().castArray(n.src)[0])&&void 0!==t?t:(0,y.As)(e,"manifest"),a=w(),u=b(i),l=u.then(e=>e.websocket?j(e.websocket,(0,x.sj)(e)):null),s=u.then(e=>c(e.context.def.plugins)).then(R),d=a.then(E),[f,h,v,m,g]=await Promise.all([a,u,l,s,d]);return(0,x.sj)((0,o._)((0,r._)({},h),{version:"2.65.2",tabs:m,server:v?(0,x.iH)(v):null,mountPoint:(0,x.iH)(f),react:{devtools:{store:(0,x.iH)(g.store),bridge:(0,x.iH)(g.bridge),wallAgent:(0,x.iH)(g.wallAgent),unreg:(0,x.iH)(g.unreg),Renderer:(0,x.iH)(g.Renderer)}}}))})(location.href),C=()=>(0,a.D$)(k)},65507:function(e,t,n){n.d(t,{Z:()=>o});var r=n(38933);let o=e=>{let{params:t}=e;return t.toolkit&&t.type&&["framework","builder","bundler"].includes(t.toolkit)?["resolved","transformed"].includes(t.type)?null:(0,r.uX)("/404"):(0,r.uX)("/404")}},6032:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},16127:function(e,t,n){n.r(t),n.d(t,{handle:()=>d});var r=n(86834),o=n(43866),i=n(49133),a=n(52493),u=n.n(a);let l=e=>{let{name:t,describe:n}=e,o=n.map(e=>(0,r.jsx)(i.xv,{style:{display:"block"},children:e},e));return(0,r.jsx)(i.u,{className:"tooltip-i9AhnB",side:"right",content:o,children:(0,r.jsx)(i.Ph.ck,{value:t,children:(0,r.jsx)(i.xu,{children:u().startCase(t)})})},t)},s=[{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."]}],c=[{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,o.TH)(),t=(0,o.s0)(),[n,a]=e.pathname.split("/").slice(2);return(0,r.jsxs)(i.Ph.fC,{size:"1",value:n,onValueChange:e=>{t("/config/".concat(e,"/").concat(a))},children:[(0,r.jsx)(i.Ph.xz,{children:n}),(0,r.jsx)(i.Ph.VY,{children:s.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(l,{name:t,describe:n},t)})})]})},{})},{title:(0,r.jsx)(()=>{let e=(0,o.TH)(),t=(0,o.s0)(),[n,a]=e.pathname.split("/").slice(2);return(0,r.jsxs)(i.Ph.fC,{size:"1",value:a,onValueChange:e=>{t("/config/".concat(n,"/").concat(e))},children:[(0,r.jsx)(i.Ph.xz,{children:a}),(0,r.jsx)(i.Ph.VY,{children:c.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(l,{name:t,describe:n},t)})})]})},{})}]}},41434:function(e,t,n){n.d(t,{Z:()=>i});var r=n(38933),o=n(55058);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./builder/transformed");return(0,r.uX)(n)}},85512:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},12323:function(e,t,n){n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(41294);let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.l,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},45614:function(e,t,n){n.d(t,{Z:()=>i});var r=n(38933),o=n(55058);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./builder");return(0,r.uX)(n)}},57595:function(e,t,n){n.d(t,{Z:()=>h});var r=n(86834),o=n(26678),i=n(49133),a=n(13190),u=n(8818);let l=e=>{let{title:t,children:n}=e;return(0,r.jsxs)(i.kC,{className:u.Z.container,mt:"9",mx:"auto",gap:"2",children:[(0,r.jsx)(i.kC,{height:"var(--space-9)",align:"center",children:(0,r.jsx)(a.fd$,{size:"36"})}),(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(i.kC,{height:"var(--space-9)",align:"center",children:(0,r.jsx)(i.X6,{children:t})}),(0,r.jsx)(i.xu,{className:u.Z.children,children:n})]})]})};var s=n(95197),c=n(43866),d=n(55058),f=n(20610);let h=()=>{let e=(0,c.lk)(),t=(0,s.k)(),{def:n}=(0,f.R)(t).context;if(!(e&&"object"==typeof e&&0===Object.keys(e).length))return(0,r.jsx)(o.M,{});{let e=(0,d.Lk)(n.doctor.quickStart).host,t=(0,r.jsxs)(i.rU,{href:n.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",e]});return(0,r.jsx)(i.xu,{width:"100%",children:(0,r.jsxs)(l,{title:"Doctor is not working",children:["Visit the website of ",t," to learn more."]})})}}},58326:function(e,t,n){n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Doctor"}}},56089:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},65825:function(e,t,n){n.r(t),n.d(t,{handle:()=>u});var r=n(95197),o=n(29134),i=n(52493),a=n.n(i);let u={breadcrumb(e){var t;let n;let{pathname:i}=e.location,u=null===(t=i.match(/^\/external\/(\w+)/))||void 0===t?void 0:t[1],{tabs:l}=(0,o.D$)(r.T),s=a().find(l,{name:u});return s?{title:n}=s:n=u?a().startCase(u):"External",{title:n,pathname:i}}}},82557:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},65451:function(e,t,n){n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Header Modifier"}}},47716:function(e,t,n){n.d(t,{_:()=>i});var r=n(38933),o=n(96575);let i=async()=>{let e=await o.ok.service;return(0,r.uX)(e.rules?"./editor":"./welcome")}},96575:function(e,t,n){n.d(t,{gM:()=>a,m:()=>u,ok:()=>s});var r=n(52493),o=n.n(r),i=n(41839);let a=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=encodeURIComponent(JSON.stringify(e)),n="".concat("/sw-proxy.js","?rules=").concat(t),r=await navigator.serviceWorker.register(n);return await navigator.serviceWorker.ready,s.service=await l(),r},u=async()=>{let e=await navigator.serviceWorker.getRegistrations(),t=!0;for(let n of e)t=t&&await n.unregister();return s.service=Promise.resolve({}),t},l=async()=>{for(let e of o().times(3))try{let e=AbortSignal.timeout(300),t=await fetch("/__devtools/service/status",{signal:e});return await t.json()}catch(e){}return{}},s=(0,i.sj)({service:l()})},1920:function(e,t,n){n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(13190);let i={breadcrumb:{title:(0,r.jsx)(o.Zn9,{}),pathname:"/overview"}}},57142:function(e,t,n){n.r(t),n.d(t,{default:()=>W});var r=n(86834),o=n(49987),i=n(65),a=n(43866),u=n(66671),l=n(49133),s=n(52493),c=n.n(s),d=n(66630),f=n(17936),h=n(12402),p=n(50102),v=n(99613),m=n(38933),g=n(81784),y=n(5872),x=n(24644);function w(e,t){return function(n){null==e||e(n),n.defaultPrevented||t(n)}}var _=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function b(){return(b=(0,h._)(function(e,t){var r,o;return(0,v.Jh)(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(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 j=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},R=function(e,t,n){var o,i=e.id;return o=j("/"===n?t:"".concat(n).concat(t),i).toString(),(0,r.jsx)("link",{rel:"prefetch",as:"fetch",href:o},o)},E=function(e){var t=e.path,n=t.pathname,o=(0,y.useContext)(x.JO),i=o.routeManifest,a=o.routes,u=(i||{}).routeAssets,l=Array.isArray(a)?(0,m.fp)(a,n):[];return(Array.isArray(l)&&u&&(null==l||l.forEach(function(e){return function(e,t){return b.apply(this,arguments)}(e.route,u)})),window._SSR_DATA)?(0,r.jsx)(k,{matches:l,path:t,routeManifest:i}):null},k=function(e){var t=e.matches,n=e.path,o=e.routeManifest,i=n.pathname,u=n.search,l=n.hash,s=(0,a.SN)(),c=(0,a.oQ)("/"),d=(0,y.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),o=new URL(i+u+l,window.origin),a=e.route.shouldRevalidate({currentUrl:r,currentParams:(null===(n=s[0])||void 0===n?void 0:n.params)||{},nextUrl:o,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof a)return a}var c=s[t];return!!(!c||c.id!==e.route.id||c.pathname!==e.pathname||c.pathname.endsWith("*")&&c.params["*"]!==e.params["*"])}).map(function(e){return R(e.route,i,c)})},[t,i,o]);return(0,r.jsx)(r.Fragment,{children:d})},C=function(e){return y.forwardRef(function(t,i){var u,l,s,c,d,h,v,m,g,x,b,j,R,k,C=t.to,A=t.prefetch,S=(0,f._)(t,["to","prefetch"]),P="string"==typeof C&&_.test(C),N=(0,p._)((u=void 0===A?"none":A,s=(l=(0,p._)(y.useState(!1),2))[0],c=l[1],h=(d=(0,p._)(y.useState(!1),2))[0],v=d[1],m=S.onFocus,g=S.onBlur,x=S.onMouseEnter,b=S.onMouseLeave,j=S.onTouchStart,y.useEffect(function(){"render"===u&&v(!0)},[u]),R=function(){"intent"===u&&c(!0)},k=function(){"intent"===u&&(c(!1),v(!1))},y.useEffect(function(){if(s){var e=setTimeout(function(){v(!0)},100);return function(){clearTimeout(e)}}},[s]),[h,{onFocus:w(m,R),onBlur:w(g,k),onMouseEnter:w(x,R),onMouseLeave:w(b,k),onTouchStart:w(j,R)}]),2),T=N[0],M=N[1],D=(0,a.WU)(C);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e,(0,o._)({ref:i,to:C},S,M)),T&&n.e&&!P?(0,r.jsx)(E,{path:D}):null]})})},A=C(g.rU);A.displayName="Link";var S=C(g.OL);S.displayName="NavLink";let P=e=>{var{to:t,children:n}=e,a=(0,f._)(e,["to","children"]);return(0,r.jsx)(l.rU,(0,i._)((0,o._)({},a),{asChild:!0,children:(0,r.jsx)(A,{to:t,children:n})}))},N=e=>{let{location:t,handle:n}=e;if(!c().isObject(n)&&c().isNil(n))return[];let{breadcrumb:r}=n,o=[];c().isFunction(r)?o.push(...c().castArray(r({location:t}))):o.push(...c().castArray(r));let i=[];for(let t of o){if(!c().isObject(t)||c().isNull(t)||!("title"in t))continue;let n={id:e.id,title:t.title,pathname:e.pathname};"pathname"in t&&c().isString(t.pathname)&&(n.pathname=t.pathname),i.push(n)}return i},T=e=>{let t=[],n=(0,a.SN)(),s=(0,a.TH)(),c=[];for(let e of n)c.push(...N((0,i._)((0,o._)({},e),{location:s})));for(let[e,n]of(s.state&&"breadcrumb"in s.state&&c.push(...N({handle:s.state.breadcrumb,pathname:s.pathname,id:"external/".concat(s.pathname),location:s})),Object.entries(c))){let o=[n.id,n.pathname,e];t.push((0,r.jsx)(P,{color:"gray",size:"2",to:n.pathname,children:n.title},o.join("_"))),n!==c.at(-1)&&(o.push("#connector"),t.push((0,r.jsx)(u.XCv,{className:d.Z.connector},o.join("_"))))}return(0,r.jsx)(l.kC,(0,i._)((0,o._)({align:"center",height:"var(--space-8)",gap:"1",px:"4"},e),{children:t}))};var M=n(95197);let D="";M.T.then(e=>{let{mountPoint:t}=e;t.hooks.hookOnce("pullUp",async e=>{D=e})});let O=()=>{let e=(0,a.s0)(),{mountPoint:t}=(0,M.k)();return(0,y.useEffect)(()=>{D&&e(D),t.hooks.hook("pullUp",async t=>{e(t)})},[]),null};var L=n(97137);let H=e=>{var{children:t}=e,n=(0,f._)(e,["children"]);let[a]=(0,L.U)();return(0,y.useEffect)(()=>{document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(a)},[a]),(0,r.jsx)(l.Q2,(0,i._)((0,o._)({},n),{appearance:a,children:t}))};var U=n(74420),B=n(13190),I=n(20610);let J="tab-button-MtqLNp",z="tab-button-inner-KmlACp",F=e=>{let{tab:t}=e,n="";if("builtin"===t.view.type)n=t.view.src;else if("iframe"===t.view.type)n="/iframe/".concat(t.view.src);else if("external"===t.view.type)n="/external/".concat(t.name);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,y.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,r.jsx)(l.u,{content:t.title,side:"right",children:(0,r.jsx)(S,{to:n,className:J,children:(0,r.jsx)(l.kC,{justify:"center",align:"center",p:"1",className:z,children:(0,r.jsx)(l.xu,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:t.icon})})})})},Z=()=>{let{server:e}=(0,I.R)((0,M.k)());return(0,r.jsx)(l.u,{content:e?"Connected":"Disconnected",side:"right",children:(0,r.jsx)(l.xu,{className:J,children:(0,r.jsxs)(l.xu,{p:"1",position:"relative",className:z,children:[(0,r.jsx)(l.xu,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:(0,r.jsx)(B.Qa9,{})}),(0,r.jsx)(l.xu,{className:"online-indicator-E9Pryr","data-active":!!e})]})})})},q=()=>{let[e,t]=(0,L.U)();return(0,r.jsx)(l.u,{content:"Appearance",side:"right",children:(0,r.jsx)(l.xu,{className:J,onClick:()=>{t("light"===e?"dark":"light")},children:(0,r.jsx)(l.kC,{justify:"center",align:"center",p:"1",className:z,children:(0,r.jsx)(l.xu,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:"dark"===e?(0,r.jsx)(B.Fxr,{}):(0,r.jsx)(B.YGJ,{})})})})})},V=()=>{let{tabs:e}=(0,I.R)((0,M.k)());return(0,r.jsxs)(l.kC,{direction:"column",flexShrink:"0",className:"navigator-O_AEE3",children:[e.map(e=>(0,r.jsx)(F,{tab:e},e.name)),(0,r.jsx)(l.xu,{flexGrow:"1"}),(0,r.jsx)(Z,{}),(0,r.jsx)(q,{})]})},W=()=>(0,r.jsx)(H,{className:"wrapper-YAIt0k",accentColor:"blue",panelBackground:"solid",children:(0,r.jsxs)(U.zt,{swipeDirection:"up",children:[(0,r.jsx)(V,{}),(0,r.jsxs)(l.xu,{width:"100%",position:"relative",pt:"4",children:[(0,r.jsx)(l.xu,{width:"100%",height:"100%",position:"relative",children:(0,r.jsx)(a.j3,{})}),(0,r.jsx)(T,{className:"breadcrumbs-LVvAXj",height:"2.5rem",position:"absolute",top:"0",left:"0",right:"0"})]}),(0,r.jsx)(O,{})]})})},64931:function(e,t,n){n.d(t,{Z:()=>u});var r=n(86834),o=n(9768),i=n(95197),a=n(12564);let u=()=>{let{mountPoint:e}=(0,i.k)();return(0,a.Z)(async()=>{e.remote.onFinishRender()}),(0,r.jsx)(o.g,{className:"loading-gmTvLE"})}},79273:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},34025:function(e,t,n){n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Overview"}}},83881:function(e,t,n){n.d(t,{_:()=>i});var r=n(38933),o=n(55058);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./overview");return(0,r.uX)(n)}},90545:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},42509:function(e,t,n){n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Pages"}}},47152:function(e,t,n){n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(41294);let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.l,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},87010:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},21690:function(e,t,n){n.d(t,{Z:()=>i});var r=n(38933),o=n(55058);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./components");return(0,r.uX)(n)}},86318:function(e,t,n){n.d(t,{_:()=>u});var r=n(95197),o=n(38933),i=n(52493),a=n.n(i);let u=async e=>{let{params:t}=e,{id:n}=t;if(!n)throw TypeError("storage preset id is required");let{context:i}=await r.T,{storagePresets:u}=await Promise.resolve(i),l=a().find(u,{id:n});return l||(0,o.uX)("/storage/preset")}},26823:function(e,t,n){n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:[{title:"Storage"},{title:"Preset"}]}},62739:function(e,t,n){n.d(t,{_:()=>o,a:()=>i});var r=n(33049);let o=async e=>await (0,r.l5)(),i=()=>null},34772:function(e,t,n){n.d(t,{_:()=>o});var r=n(33049);let o=async e=>await (0,r.l5)()},33049:function(e,t,n){n.d(t,{SR:()=>l,dR:()=>a,f:()=>s,l5:()=>c,xq:()=>u});var r=n(95197),o=n(52493),i=n.n(o);let a=["cookie","localStorage","sessionStorage"],u={cookie:"yellow",localStorage:"green",sessionStorage:"blue"},l=(e,t)=>i().map(e[t],(n,r)=>{let o=[e.id,t,r].join("//");return{key:r,value:n,type:t,id:o}}),s=e=>{let t=[];for(let n of a)t.push(...l(e,n));return t},c=async e=>{let{mountPoint:t}=await r.T,[n,o,i]=await Promise.all([t.remote.cookies(null==e?void 0:e.cookie),t.remote.localStorage(null==e?void 0:e.localStorage),t.remote.sessionStorage(null==e?void 0:e.sessionStorage)]);return{cookie:n,localStorage:o,sessionStorage:i}}},29134:function(e,t,n){n.d(t,{D$:()=>o}),n(86834),n(5872),n(52493);let r=new WeakMap,o=e=>{if(!(e instanceof Promise))return e;if(r.has(e)){let t=r.get(e);if(t instanceof Error)throw t;if(!(t instanceof Promise))return t;throw t}throw r.set(e,e),e.then(t=>r.set(e,t)).catch(t=>r.set(e,t)),e}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["118","126","130","567","58","690","738"],function(){return t("5256"),t("99082"),t("24520"),t("28651"),t("58971")}),e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{96747:function(e,t,o){var n=o(86834),l=o(49987),r=o(65),i=o(64542),s=o(10487),a=o(7459),c=o(65872),d=o(52493),u=o.n(d),m=o(9880),v=o.n(m),h=o(57662),p=o(41839);let y=s.MessagePortChannel.wait(window,"channel:connect:client"),f=new i.S,g=(0,h.createBridge)(window,f),w=y.then(e=>{let t=(0,c.Hu)();return{remote:(0,a.Fu)({async activateReactDevtools(){(0,h.activate)(window,{bridge:g})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:n}=await t.json();if(!n||"object"!=typeof n)throw TypeError("No cookies returned from server");let{parse:l}=await o.e("
|
|
1
|
+
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{96747:function(e,t,o){var n=o(86834),l=o(49987),r=o(65),i=o(64542),s=o(10487),a=o(7459),c=o(65872),d=o(52493),u=o.n(d),m=o(9880),v=o.n(m),h=o(57662),p=o(41839);let y=s.MessagePortChannel.wait(window,"channel:connect:client"),f=new i.S,g=(0,h.createBridge)(window,f),w=y.then(e=>{let t=(0,c.Hu)();return{remote:(0,a.Fu)({async activateReactDevtools(){(0,h.activate)(window,{bridge:g})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:n}=await t.json();if(!n||"object"!=typeof n)throw TypeError("No cookies returned from server");let{parse:l}=await o.e("699").then(o.bind(o,23694)),r=l(document.cookie),i=u().omit(n,Object.keys(r));return{client:r,server:i}},localStorage:async e=>(u().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,l._)({},window.localStorage)),sessionStorage:async e=>(u().each(e,(e,t)=>{window.sessionStorage.setItem(t,e)}),(0,l._)({},window.sessionStorage))},(0,r._)((0,l._)({},e.handlers),{timeout:500})),hooks:t}}),k=(0,p.sj)({loaded:!1}),b=v()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});var _=o(41035),j=o(5872),x=o(28962);let C=(e,t)=>{var o,n;return null!==(n=null===(o=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===o?void 0:o.includes(t))&&void 0!==n&&n},E=e=>{let[t,...o]=[{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),n=o.findIndex(e=>{let{key:o}=e;return C(t.key,o)}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},Z=e=>{let{top:t,left:o,height:n,width:l}=e.getBoundingClientRect();return{top:t,left:o,bottom:window.innerHeight-t-n,right:window.innerWidth-o-l}},N=e=>{var t;let o=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",n="number"==typeof o?"".concat(o,"px"):o,[l,r]=(0,j.useState)(),i=()=>{if(!l)return;l.moveable=!1;let{el:e}=l,[t]=E(Z(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{r(void 0),e.style[t.key]=n}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},s=t=>{let o="touches"in t?t.touches[0]:t;if(!(null==l?void 0:l.moveable))return;let{startX:r,startY:i}=l;(r-o.clientX)**2+(i-o.clientY)**2>9&&(l.clickable=!1);let{width:s,height:a}=l.el.getBoundingClientRect(),c=o.clientY-l.offsetY,d=o.clientX-l.offsetX,u=E({top:c,left:d,bottom:window.innerHeight-c-a,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:o}=e;return{key:t,value:"".concat(o,"px")}});if(null==e?void 0:e.clamp)for(let e of u){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-s;e.value="clamp(".concat(n,", ").concat(e.value,", ").concat(t,"px)")}let[m,v,...h]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[v.key]=v.value,p[h[0].key]="auto",p[h[1].key]="auto"};(0,x.Z)("blur",i),(0,x.Z)("mouseup",i),(0,x.Z)("touchend",i),(0,x.Z)("mousemove",s),(0,x.Z)("touchmove",s);let a=e=>{let t="touches"in e?e.touches[0]:e,o=e.currentTarget,n=o.getBoundingClientRect();r({el:o,clickable:!0,moveable:!0,offsetX:t.clientX-n.left,offsetY:t.clientY-n.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!l,props:{onMouseDown:a,onTouchStart:a,onClickCapture:e=>{(null==l?void 0:l.clickable)||e.stopPropagation()}}}},R=(e,t)=>new Promise((o,n)=>{let l=!0,r=setTimeout(()=>{l=!1,n(Error("Promise Timeout"))},t);e.then(e=>{l&&o(e),clearTimeout(r)}),e.catch(n)});var S=o(97137),D=o(49133),P=o(13190),T=o(86209),H=o(42226);let Y=e=>{var t;let o=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,r=(0,j.useRef)(!1);return l&&(r.current=!0),e.load||(o?r.current:l)?(0,n.jsx)("div",{style:{display:!o||l?"unset":"none"},children:e.children}):null};var B=o(38651),I=o(30446);let L=e=>{var t;let[o,l]=(0,B.Z)(()=>Promise.resolve(e.onClick()),[]);return(0,n.jsx)("button",{className:I.Z.container,onClick:l,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:o.loading,children:e.children})};var X=o(50460),O=o(17936),U=o(20610),F=o(9768),W=o(12636);let K=e=>{var{src:t,onClose:o}=e,i=(0,O._)(e,["src","onClose"]);let{loaded:s}=(0,U.R)(k);return(0,n.jsxs)(D.xu,(0,r._)((0,l._)({className:W.Z.container},i),{children:[(0,n.jsx)("iframe",{className:W.Z.frame,src:t}),(0,n.jsx)(P.cu3,{className:W.Z.closeButton,onClick:o}),(0,n.jsx)("div",{className:W.Z.backdrop,style:{display:s?"none":void 0},children:(0,n.jsx)(F.g,{})})]}))},M=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:o}=t,n=null===(e=o.match(/^#\/__devtools(.*)/))||void 0===e?void 0:e[1];return"string"!=typeof n?null:""===n?"/":n},A=e=>{let t=M(),[o,i]=(0,T.Z)(!!t),[s,a]=(0,j.useState)(!1),c=N({clamp:!0}),[d]=(0,S.U)();(0,x.Z)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&i()}),(0,j.useEffect)(()=>{f.hook("receive",e=>{"startInspectingNative"===e.event&&(i(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(i(!0),document.documentElement.style.removeProperty("cursor"))};return f.hook("send",e),()=>{f.removeHook("send",e)}},[]);let u=async()=>{document.documentElement.style.setProperty("cursor","wait"),i(!1),a(!0);try{(await R(w,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,H.Z)(async()=>{t&&(await R(w,1e4)).remote.pullUp(t)},[]),(0,n.jsxs)(D.Q2,{appearance:d,className:d,hasBackground:!1,style:{height:0,width:0,minHeight:0,minWidth:0},children:[(0,n.jsx)(Y,{when:o,keepAlive:!0,load:s,children:(0,n.jsx)("div",{className:X.Z.container,children:(0,n.jsx)(K,{src:e.src,onClose:()=>i(!1),style:{pointerEvents:c.isDragging?"none":"auto"}})})}),(0,n.jsxs)(D.kC,(0,r._)((0,l._)({className:X.Z.fab},c.props),{align:"center",children:[(0,n.jsx)(L,{type:"primary",onClick:i,children:(0,n.jsx)("img",{className:X.Z.logo,src:e.logo})}),(0,n.jsx)(L,{onClick:u,children:(0,n.jsx)(P.aur,{})})]}))]})},q=()=>{let e=window.__modern_js_devtools_manifest;if(!e)throw TypeError("Devtools manifest is not found");let t=e.client;if(!t)throw TypeError("Devtools client source is not found");let o=e.source,l=new URL(t,location.href);if(o){let e=new URL(o,location.href);l.searchParams.set("src",e.href)}return(0,n.jsx)(A,{logo:e.context.def.assets.logo,src:l.href})},J=()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),o=document.getElementById("_modern_js_devtools_styles");if(!(o instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(o.content);let l=document.createElement("div");l.classList.add("_modern_js_devtools_mountpoint","theme-register","container-bYVevn"),t.appendChild(l),(0,_.createRoot)(l).render((0,n.jsx)(q,{}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",J):J()}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","130","567","58","690","94"],function(){return t("5256"),t("99082"),t("24520"),t("28651"),t("96747")}),e.O()}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/devtools-client",
|
|
3
|
-
"version": "2.65.
|
|
3
|
+
"version": "2.65.2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.0.0"
|
|
6
6
|
},
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"typescript": "~5.0.4",
|
|
58
58
|
"ufo": "^1.3.0",
|
|
59
59
|
"valtio": "^1.11.1",
|
|
60
|
-
"@modern-js/app-tools": "2.65.
|
|
61
|
-
"@modern-js/devtools-kit": "2.65.
|
|
62
|
-
"@modern-js/plugin-proxy": "2.65.
|
|
63
|
-
"@modern-js/tsconfig": "2.65.
|
|
64
|
-
"@modern-js/runtime": "2.65.
|
|
65
|
-
"@modern-js/types": "2.65.
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
60
|
+
"@modern-js/app-tools": "2.65.2",
|
|
61
|
+
"@modern-js/devtools-kit": "2.65.2",
|
|
62
|
+
"@modern-js/plugin-proxy": "2.65.2",
|
|
63
|
+
"@modern-js/tsconfig": "2.65.2",
|
|
64
|
+
"@modern-js/runtime": "2.65.2",
|
|
65
|
+
"@modern-js/types": "2.65.2",
|
|
66
|
+
"@modern-js/utils": "2.65.2",
|
|
67
|
+
"@scripts/jest-config": "2.65.2"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"cookie-es": "^1.0.0"
|