define("share/assert/js/mkdirp",[],function(require,exports){var a=window.require("path"),b=window.require("fs"),c={};c.def=function(d,e,f,g){"function"==typeof e?(f=e,e={}):e&&"object"==typeof e||(e={mode:e});var h=e.mode,i=e.fs||b;void 0===h&&(h=511&~process.umask()),g||(g=null);var j=f||function(){};d=a.resolve(d),i.mkdir(d,h,function(b){if(!b)return g=g||d,j(null,g);switch(b.code){case"ENOENT":c.def(a.dirname(d),e,function(a,b){a?j(a,b):c.def(d,e,j,b)});break;default:i.stat(d,function(a,c){a||!c.isDirectory()?j(b,g):j(null,g)})}})},c.sync=function d(c,e,f){e&&"object"==typeof e||(e={mode:e});var g=e.mode,h=e.fs||b;void 0===g&&(g=511&~process.umask()),f||(f=null),c=a.resolve(c);try{h.mkdirSync(c,g),f=f||c}catch(i){switch(i.code){case"ENOENT":f=d(a.dirname(c),e,f),d(c,e,f);break;default:var j;try{j=h.statSync(c)}catch(k){throw i}if(!j.isDirectory())throw i}}return f},exports.instance=c});