"use strict";module.exports=(function(){var r=require("events"),e={};return e.createDomain=e.create=function(){var e=new r.EventEmitter;function t(r){e.emit("error",r)}return e.add=function(r){r.on("error",t)},e.remove=function(r){r.removeListener("error",t)},e.bind=function(r){return function(){var e=Array.prototype.slice.call(arguments);try{r.apply(null,e)}catch(r){t(r)}}},e.intercept=function(r){return function(e){if(e)t(e);else{var n=Array.prototype.slice.call(arguments,1);try{r.apply(null,n)}catch(r){t(r)}}}},e.run=function(r){try{r()}catch(r){t(r)}return this},e.dispose=function(){return this.removeAllListeners(),this},e.enter=e.exit=function(){return this},e},e}).call(this);