!function(f){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=f();elseif("function"==typeofdefine&&define.amd)define([],f);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).makeError=f()}}(function(){returnfunctionr(e,n,t){functiono(i,f){if(!n[i]){if(!e[i]){varc="function"==typeofrequire&&require;if(!f&&c)returnc(i,!0);if(u)returnu(i,!0);vara=newError("Cannot find module '"+i+"'");throwa.code="MODULE_NOT_FOUND",a}varp=n[i]={exports:{}};e[i][0].call(p.exports,function(r){returno(e[i][1][r]||r)},p,p.exports,r,e,n,t)}returnn[i].exports}for(varu="function"==typeofrequire&&require,i=0;i<t.length;i++)o(t[i]);returno}({1:[function(require,module,exports){"use strict";varconstruct="undefined"!=typeofReflect?Reflect.construct:void0,defineProperty=Object.defineProperty,captureStackTrace=Error.captureStackTrace;functionBaseError(message){void0!==message&&defineProperty(this,"message",{configurable:!0,value:message,writable:!0});varcname=this.constructor.name;void0!==cname&&cname!==this.name&&defineProperty(this,"name",{configurable:!0,value:cname,writable:!0}),captureStackTrace(this,this.constructor)}void0===captureStackTrace&&(captureStackTrace=function(error){varcontainer=newError;defineProperty(error,"stack",{configurable:!0,get:function(){varstack=container.stack;returndefineProperty(this,"stack",{configurable:!0,value:stack,writable:!0}),stack},set:function(stack){defineProperty(error,"stack",{configurable:!0,value:stack,writable:!0})}})}),BaseError.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:BaseError,writable:!0}});varsetFunctionName=function(){functionsetFunctionName(fn,name){returndefineProperty(fn,"name",{configurable:!0,value:name})}try{varf=function(){};if(setFunctionName(f,"foo"),"foo"===f.name)returnsetFunctionName}catch(_){}}();(module.exports=function(constructor,super_){if(null==super_||super_===Error)super_=BaseError;elseif("function"!=typeofsuper_)thrownewTypeError("super_ should be a function");varname;if("string"==typeofconstructor)name=constructor,constructor=void0!==construct?function(){returnconstruct(super_,arguments,this.constructor)}:function(){super_.apply(this,arguments)},void0!==setFunctionName&&(setFunctionName(constructor,name),name=void0);elseif("function"!=typeofconstructor)thrownewTypeError("constructor should be either a string or a function");constructor.super_=constructor.super=super_;varproperties={constructor:{configurable:!0,value:constructor,writable:!0}};returnvoid0!==name&&(properties.name={configurable:!0,value:name,writable:!0}),constructor.prototype=Object.create(super_.prototype,properties),constructor}).BaseError=BaseError},{}]},{},[1])(1)});