-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
1 lines (1 loc) · 9.09 KB
/
index.js
1
(()=>{"use strict";var e={62:(e,r,n)=>{const o=require("http");n.n(o)().createServer((function(e,r){r.writeHead(200,{"content-type":"text/plain"}),r.write("hello nodejs"),r.end()})).listen(3e3)}},r={};function n(o){var t=r[o];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var i=r[o]={exports:{}};try{var c={id:o,module:i,factory:e[o],require:n};n.i.forEach((function(e){e(c)})),i=c.module,c.factory.call(i.exports,i,i.exports,c.require)}catch(e){throw i.error=e,e}return i.exports}n.m=e,n.c=r,n.i=[],n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var o in r)n.o(r,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},n.hu=e=>e+"."+n.h()+".hot-update.js",n.hmrF=()=>"index."+n.h()+".hot-update.json",n.h=()=>"46233475cde3ff0139a6",n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e,r,o,t,i={},c=n.c,d=[],a=[],u="idle";function l(e){u=e;for(var r=[],n=0;n<a.length;n++)r[n]=a[n].call(null,e);return Promise.all(r)}function f(e){if(0===r.length)return e();var n=r;return r=[],Promise.all(n).then((function(){return f(e)}))}function s(e){if("idle"!==u)throw new Error("check() is only allowed in idle status");return l("check").then(n.hmrM).then((function(t){return t?l("prepare").then((function(){var i=[];return r=[],o=[],Promise.all(Object.keys(n.hmrC).reduce((function(e,r){return n.hmrC[r](t.c,t.r,t.m,e,o,i),e}),[])).then((function(){return f((function(){return e?h(e):l("ready").then((function(){return i}))}))}))})):l(v()?"ready":"idle").then((function(){return null}))}))}function p(e){return"ready"!==u?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status")})):h(e)}function h(e){e=e||{},v();var r=o.map((function(r){return r(e)}));o=void 0;var n=r.map((function(e){return e.error})).filter(Boolean);if(n.length>0)return l("abort").then((function(){throw n[0]}));var i=l("dispose");r.forEach((function(e){e.dispose&&e.dispose()}));var c,d=l("apply"),a=function(e){c||(c=e)},u=[];return r.forEach((function(e){if(e.apply){var r=e.apply(a);if(r)for(var n=0;n<r.length;n++)u.push(r[n])}})),Promise.all([i,d]).then((function(){return c?l("fail").then((function(){throw c})):t?h(e).then((function(e){return u.forEach((function(r){e.indexOf(r)<0&&e.push(r)})),e})):l("idle").then((function(){return u}))}))}function v(){if(t)return o||(o=[]),Object.keys(n.hmrI).forEach((function(e){t.forEach((function(r){n.hmrI[e](r,o)}))})),t=void 0,!0}n.hmrD=i,n.i.push((function(h){var v,m,y,_,E=h.module,g=function(n,o){var t=c[o];if(!t)return n;var i=function(r){if(t.hot.active){if(c[r]){var i=c[r].parents;-1===i.indexOf(o)&&i.push(o)}else d=[o],e=r;-1===t.children.indexOf(r)&&t.children.push(r)}else console.warn("[HMR] unexpected require("+r+") from disposed module "+o),d=[];return n(r)},a=function(e){return{configurable:!0,enumerable:!0,get:function(){return n[e]},set:function(r){n[e]=r}}};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&"e"!==s&&Object.defineProperty(i,s,a(s));return i.e=function(e){return function(e){switch(u){case"ready":return l("prepare"),r.push(e),f((function(){return l("ready")})),e;case"prepare":return r.push(e),e;default:return e}}(n.e(e))},i}(h.require,h.id);E.hot=(v=h.id,m=E,_={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:y=e!==v,_requireSelf:function(){d=m.parents.slice(),e=y?void 0:v,n(v)},active:!0,accept:function(e,r,n){if(void 0===e)_._selfAccepted=!0;else if("function"==typeof e)_._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var o=0;o<e.length;o++)_._acceptedDependencies[e[o]]=r||function(){},_._acceptedErrorHandlers[e[o]]=n;else _._acceptedDependencies[e]=r||function(){},_._acceptedErrorHandlers[e]=n},decline:function(e){if(void 0===e)_._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var r=0;r<e.length;r++)_._declinedDependencies[e[r]]=!0;else _._declinedDependencies[e]=!0},dispose:function(e){_._disposeHandlers.push(e)},addDisposeHandler:function(e){_._disposeHandlers.push(e)},removeDisposeHandler:function(e){var r=_._disposeHandlers.indexOf(e);r>=0&&_._disposeHandlers.splice(r,1)},invalidate:function(){switch(this._selfInvalidated=!0,u){case"idle":o=[],Object.keys(n.hmrI).forEach((function(e){n.hmrI[e](v,o)})),l("ready");break;case"ready":Object.keys(n.hmrI).forEach((function(e){n.hmrI[e](v,o)}));break;case"prepare":case"check":case"dispose":case"apply":(t=t||[]).push(v)}},check:s,apply:p,status:function(e){if(!e)return u;a.push(e)},addStatusHandler:function(e){a.push(e)},removeStatusHandler:function(e){var r=a.indexOf(e);r>=0&&a.splice(r,1)},data:i[v]},e=void 0,_),E.parents=d,E.children=[],d=[],h.require=g})),n.hmrC={},n.hmrI={}})(),(()=>{var e,r,o,t,i=n.hmrS_require=n.hmrS_require||{826:1};function c(e,o){var i=require("./"+n.hu(e)),c=i.modules,d=i.runtime;for(var a in c)n.o(c,a)&&(r[a]=c[a],o&&o.push(a));d&&t.push(d)}function d(c){function d(e){for(var r=[e],o={},t=r.map((function(e){return{chain:[e],id:e}}));t.length>0;){var i=t.pop(),c=i.id,d=i.chain,u=n.c[c];if(u&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:d,moduleId:c};if(u.hot._main)return{type:"unaccepted",chain:d,moduleId:c};for(var l=0;l<u.parents.length;l++){var f=u.parents[l],s=n.c[f];if(s){if(s.hot._declinedDependencies[c])return{type:"declined",chain:d.concat([f]),moduleId:c,parentId:f};-1===r.indexOf(f)&&(s.hot._acceptedDependencies[c]?(o[f]||(o[f]=[]),a(o[f],[c])):(delete o[f],r.push(f),t.push({chain:d.concat([f]),id:f})))}}}}return{type:"accepted",moduleId:e,outdatedModules:r,outdatedDependencies:o}}function a(e,r){for(var n=0;n<r.length;n++){var o=r[n];-1===e.indexOf(o)&&e.push(o)}}n.f&&delete n.f.requireHmr,e=void 0;var u={},l=[],f={},s=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var p in r)if(n.o(r,p)){var h,v=r[p],m=!1,y=!1,_=!1,E="";switch((h=v?d(p):{type:"disposed",moduleId:p}).chain&&(E="\nUpdate propagation: "+h.chain.join(" -> ")),h.type){case"self-declined":c.onDeclined&&c.onDeclined(h),c.ignoreDeclined||(m=new Error("Aborted because of self decline: "+h.moduleId+E));break;case"declined":c.onDeclined&&c.onDeclined(h),c.ignoreDeclined||(m=new Error("Aborted because of declined dependency: "+h.moduleId+" in "+h.parentId+E));break;case"unaccepted":c.onUnaccepted&&c.onUnaccepted(h),c.ignoreUnaccepted||(m=new Error("Aborted because "+p+" is not accepted"+E));break;case"accepted":c.onAccepted&&c.onAccepted(h),y=!0;break;case"disposed":c.onDisposed&&c.onDisposed(h),_=!0;break;default:throw new Error("Unexception type "+h.type)}if(m)return{error:m};if(y)for(p in f[p]=v,a(l,h.outdatedModules),h.outdatedDependencies)n.o(h.outdatedDependencies,p)&&(u[p]||(u[p]=[]),a(u[p],h.outdatedDependencies[p]));_&&(a(l,[h.moduleId]),f[p]=s)}r=void 0;for(var g,I=[],D=0;D<l.length;D++){var b=l[D],w=n.c[b];w&&(w.hot._selfAccepted||w.hot._main)&&f[b]!==s&&!w.hot._selfInvalidated&&I.push({module:b,require:w.hot._requireSelf,errorHandler:w.hot._selfAccepted})}return{dispose:function(){var e;o.forEach((function(e){delete i[e]})),o=void 0;for(var r,t=l.slice();t.length>0;){var c=t.pop(),d=n.c[c];if(d){var a={},f=d.hot._disposeHandlers;for(D=0;D<f.length;D++)f[D].call(null,a);for(n.hmrD[c]=a,d.hot.active=!1,delete n.c[c],delete u[c],D=0;D<d.children.length;D++){var s=n.c[d.children[D]];s&&((e=s.parents.indexOf(c))>=0&&s.parents.splice(e,1))}}}for(var p in u)if(n.o(u,p)&&(d=n.c[p]))for(g=u[p],D=0;D<g.length;D++)r=g[D],(e=d.children.indexOf(r))>=0&&d.children.splice(e,1)},apply:function(e){for(var r in f)n.o(f,r)&&(n.m[r]=f[r]);for(var o=0;o<t.length;o++)t[o](n);for(var i in u)if(n.o(u,i)){var d=n.c[i];if(d){g=u[i];for(var a=[],s=[],p=[],h=0;h<g.length;h++){var v=g[h],m=d.hot._acceptedDependencies[v],y=d.hot._acceptedErrorHandlers[v];if(m){if(-1!==a.indexOf(m))continue;a.push(m),s.push(y),p.push(v)}}for(var _=0;_<a.length;_++)try{a[_].call(null,g)}catch(r){if("function"==typeof s[_])try{s[_](r,{moduleId:i,dependencyId:p[_]})}catch(n){c.onErrored&&c.onErrored({type:"accept-error-handler-errored",moduleId:i,dependencyId:p[_],error:n,originalError:r}),c.ignoreErrored||(e(n),e(r))}else c.onErrored&&c.onErrored({type:"accept-errored",moduleId:i,dependencyId:p[_],error:r}),c.ignoreErrored||e(r)}}}for(var E=0;E<I.length;E++){var D=I[E],b=D.module;try{D.require(b)}catch(r){if("function"==typeof D.errorHandler)try{D.errorHandler(r,{moduleId:b,module:n.c[b]})}catch(n){c.onErrored&&c.onErrored({type:"self-accept-error-handler-errored",moduleId:b,error:n,originalError:r}),c.ignoreErrored||(e(n),e(r))}else c.onErrored&&c.onErrored({type:"self-accept-errored",moduleId:b,error:r}),c.ignoreErrored||e(r)}}return l}}}n.hmrI.require=function(e,i){r||(r={},t=[],o=[],i.push(d)),n.o(r,e)||(r[e]=n.m[e])},n.hmrC.require=function(a,u,l,f,s,p){s.push(d),e={},o=u,r=l.reduce((function(e,r){return e[r]=!1,e}),{}),t=[],a.forEach((function(r){n.o(i,r)&&void 0!==i[r]&&(f.push(c(r,p)),e[r]=!0)})),n.f&&(n.f.requireHmr=function(r,o){e&&!n.o(e,r)&&n.o(i,r)&&void 0!==i[r]&&(o.push(c(r)),e[r]=!0)})},n.hmrM=function(){return Promise.resolve().then((function(){return require("./"+n.hmrF())})).catch((function(e){if("MODULE_NOT_FOUND"!==e.code)throw e}))}})();n(62)})();