"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("../../../util@0.11.1/node_modules/util/util.js"),_=require("../../../is-arrayish@0.2.1/node_modules/is-arrayish/index.js");var h,O;function y(){if(O)return h;O=1;var g=p.__require(),b=_.__require(),l=function(e,r){(!e||e.constructor!==String)&&(r=e||{},e=Error.name);var n=function d(i){if(!this)return new d(i);i=i instanceof Error?i.message:i||this.message,Error.call(this,i),Error.captureStackTrace(this,n),this.name=e,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var t=i.split(/\r?\n/g);for(var a in r)if(!!r.hasOwnProperty(a)){var u=r[a];"message"in u&&(t=u.message(this[a],t)||t,b(t)||(t=[t]))}return t.join(`
`)},set:function(t){i=t}});var f=null,o=Object.getOwnPropertyDescriptor(this,"stack"),E=o.get,j=o.value;delete o.value,delete o.writable,o.set=function(t){f=t},o.get=function(){var t=(f||(E?E.call(this):j)).split(/\r?\n+/g);f||(t[0]=this.name+": "+this.message);var a=1;for(var u in r)if(!!r.hasOwnProperty(u)){var c=r[u];if("line"in c){var v=c.line(this[u]);v&&t.splice(a++,0,"    "+v)}"stack"in c&&c.stack(this[u],t)}return t.join(`
`)},Object.defineProperty(this,"stack",o)};return Object.setPrototypeOf?(Object.setPrototypeOf(n.prototype,Error.prototype),Object.setPrototypeOf(n,Error)):g.inherits(n,Error),n};return l.append=function(s,e){return{message:function(r,n){return r=r||e,r&&(n[0]+=" "+s.replace("%s",r.toString())),n}}},l.line=function(s,e){return{line:function(r){return r=r||e,r?s.replace("%s",r.toString()):null}}},h=l,h}exports.__require=y;
//# sourceMappingURL=index.js.map
