@jspm/core
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -1,650 +0,13 @@ | ||
import { a as dew } from './chunk-2b1f9012.js'; | ||
import _process from './process.js'; | ||
import { a as _util } from './util-c86b84df.js'; | ||
import './process.js'; | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew$1() { | ||
if (_dewExec) return exports$1; | ||
_dewExec = true; | ||
if (typeof Object.create === 'function') { | ||
// implementation from standard node.js 'util' module | ||
exports$1 = function inherits(ctor, superCtor) { | ||
ctor.super_ = superCtor; | ||
ctor.prototype = Object.create(superCtor.prototype, { | ||
constructor: { | ||
value: ctor, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
}; | ||
} else { | ||
// old school shim for old browsers | ||
exports$1 = function inherits(ctor, superCtor) { | ||
ctor.super_ = superCtor; | ||
var TempCtor = function () {}; | ||
TempCtor.prototype = superCtor.prototype; | ||
ctor.prototype = new TempCtor(); | ||
ctor.prototype.constructor = ctor; | ||
}; | ||
} | ||
return exports$1; | ||
} | ||
var exports$2 = {}, | ||
_dewExec$1 = false; | ||
var _global = typeof self !== "undefined" ? self : global; | ||
function dew$2() { | ||
if (_dewExec$1) return exports$2; | ||
_dewExec$1 = true; | ||
var process = _process; | ||
// Copyright Joyent, Inc. and other Node contributors. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a | ||
// copy of this software and associated documentation files (the | ||
// "Software"), to deal in the Software without restriction, including | ||
// without limitation the rights to use, copy, modify, merge, publish, | ||
// distribute, sublicense, and/or sell copies of the Software, and to permit | ||
// persons to whom the Software is furnished to do so, subject to the | ||
// following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included | ||
// in all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN | ||
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | ||
// USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
var formatRegExp = /%[sdj%]/g; | ||
function dew() { | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
exports$2.format = function (f) { | ||
if (!isString(f)) { | ||
var objects = []; | ||
for (var i = 0; i < arguments.length; i++) { | ||
objects.push(inspect(arguments[i])); | ||
} | ||
return objects.join(' '); | ||
} | ||
var i = 1; | ||
var args = arguments; | ||
var len = args.length; | ||
var str = String(f).replace(formatRegExp, function (x) { | ||
if (x === '%%') return '%'; | ||
if (i >= len) return x; | ||
switch (x) { | ||
case '%s': | ||
return String(args[i++]); | ||
case '%d': | ||
return Number(args[i++]); | ||
case '%j': | ||
try { | ||
return JSON.stringify(args[i++]); | ||
} catch (_) { | ||
return '[Circular]'; | ||
} | ||
default: | ||
return x; | ||
} | ||
}); | ||
for (var x = args[i]; i < len; x = args[++i]) { | ||
if (isNull(x) || !isObject(x)) { | ||
str += ' ' + x; | ||
} else { | ||
str += ' ' + inspect(x); | ||
} | ||
} | ||
return str; | ||
}; // Mark that a method should not be used. | ||
// Returns a modified function which warns once by default. | ||
// If --no-deprecation is set, then it is a no-op. | ||
exports$2.deprecate = function (fn, msg) { | ||
// Allow for deprecating things in the process of starting up. | ||
if (isUndefined(_global.process)) { | ||
return function () { | ||
return exports$2.deprecate(fn, msg).apply(this || _global, arguments); | ||
}; | ||
} | ||
if (process.noDeprecation === true) { | ||
return fn; | ||
} | ||
var warned = false; | ||
function deprecated() { | ||
if (!warned) { | ||
if (process.throwDeprecation) { | ||
throw new Error(msg); | ||
} else if (process.traceDeprecation) { | ||
console.trace(msg); | ||
} else { | ||
console.error(msg); | ||
} | ||
warned = true; | ||
} | ||
return fn.apply(this || _global, arguments); | ||
} | ||
return deprecated; | ||
}; | ||
var debugs = {}; | ||
var debugEnviron; | ||
exports$2.debuglog = function (set) { | ||
if (isUndefined(debugEnviron)) debugEnviron = process.env.NODE_DEBUG || ''; | ||
set = set.toUpperCase(); | ||
if (!debugs[set]) { | ||
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { | ||
var pid = process.pid; | ||
debugs[set] = function () { | ||
var msg = exports$2.format.apply(exports$2, arguments); | ||
console.error('%s %d: %s', set, pid, msg); | ||
}; | ||
} else { | ||
debugs[set] = function () {}; | ||
} | ||
} | ||
return debugs[set]; | ||
}; | ||
/** | ||
* Echos the value of a value. Trys to print the value out | ||
* in the best way possible given the different types. | ||
* | ||
* @param {Object} obj The object to print out. | ||
* @param {Object} opts Optional options object that alters the output. | ||
*/ | ||
/* legacy: obj, showHidden, depth, colors*/ | ||
function inspect(obj, opts) { | ||
// default options | ||
var ctx = { | ||
seen: [], | ||
stylize: stylizeNoColor | ||
}; // legacy... | ||
if (arguments.length >= 3) ctx.depth = arguments[2]; | ||
if (arguments.length >= 4) ctx.colors = arguments[3]; | ||
if (isBoolean(opts)) { | ||
// legacy... | ||
ctx.showHidden = opts; | ||
} else if (opts) { | ||
// got an "options" object | ||
exports$2._extend(ctx, opts); | ||
} // set default options | ||
if (isUndefined(ctx.showHidden)) ctx.showHidden = false; | ||
if (isUndefined(ctx.depth)) ctx.depth = 2; | ||
if (isUndefined(ctx.colors)) ctx.colors = false; | ||
if (isUndefined(ctx.customInspect)) ctx.customInspect = true; | ||
if (ctx.colors) ctx.stylize = stylizeWithColor; | ||
return formatValue(ctx, obj, ctx.depth); | ||
} | ||
exports$2.inspect = inspect; // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics | ||
inspect.colors = { | ||
'bold': [1, 22], | ||
'italic': [3, 23], | ||
'underline': [4, 24], | ||
'inverse': [7, 27], | ||
'white': [37, 39], | ||
'grey': [90, 39], | ||
'black': [30, 39], | ||
'blue': [34, 39], | ||
'cyan': [36, 39], | ||
'green': [32, 39], | ||
'magenta': [35, 39], | ||
'red': [31, 39], | ||
'yellow': [33, 39] | ||
}; // Don't use 'blue' not visible on cmd.exe | ||
inspect.styles = { | ||
'special': 'cyan', | ||
'number': 'yellow', | ||
'boolean': 'yellow', | ||
'undefined': 'grey', | ||
'null': 'bold', | ||
'string': 'green', | ||
'date': 'magenta', | ||
// "name": intentionally not styling | ||
'regexp': 'red' | ||
}; | ||
function stylizeWithColor(str, styleType) { | ||
var style = inspect.styles[styleType]; | ||
if (style) { | ||
return '\u001b[' + inspect.colors[style][0] + 'm' + str + '\u001b[' + inspect.colors[style][1] + 'm'; | ||
} else { | ||
return str; | ||
} | ||
} | ||
function stylizeNoColor(str, styleType) { | ||
return str; | ||
} | ||
function arrayToHash(array) { | ||
var hash = {}; | ||
array.forEach(function (val, idx) { | ||
hash[val] = true; | ||
}); | ||
return hash; | ||
} | ||
function formatValue(ctx, value, recurseTimes) { | ||
// Provide a hook for user-specified inspect functions. | ||
// Check that value is an object with an inspect function on it | ||
if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special | ||
value.inspect !== exports$2.inspect && // Also filter out any prototype objects using the circular check. | ||
!(value.constructor && value.constructor.prototype === value)) { | ||
var ret = value.inspect(recurseTimes, ctx); | ||
if (!isString(ret)) { | ||
ret = formatValue(ctx, ret, recurseTimes); | ||
} | ||
return ret; | ||
} // Primitive types cannot have properties | ||
var primitive = formatPrimitive(ctx, value); | ||
if (primitive) { | ||
return primitive; | ||
} // Look up the keys of the object. | ||
var keys = Object.keys(value); | ||
var visibleKeys = arrayToHash(keys); | ||
if (ctx.showHidden) { | ||
keys = Object.getOwnPropertyNames(value); | ||
} // IE doesn't make error fields non-enumerable | ||
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx | ||
if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { | ||
return formatError(value); | ||
} // Some type of object without properties can be shortcutted. | ||
if (keys.length === 0) { | ||
if (isFunction(value)) { | ||
var name = value.name ? ': ' + value.name : ''; | ||
return ctx.stylize('[Function' + name + ']', 'special'); | ||
} | ||
if (isRegExp(value)) { | ||
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); | ||
} | ||
if (isDate(value)) { | ||
return ctx.stylize(Date.prototype.toString.call(value), 'date'); | ||
} | ||
if (isError(value)) { | ||
return formatError(value); | ||
} | ||
} | ||
var base = '', | ||
array = false, | ||
braces = ['{', '}']; // Make Array say that they are Array | ||
if (isArray(value)) { | ||
array = true; | ||
braces = ['[', ']']; | ||
} // Make functions say that they are functions | ||
if (isFunction(value)) { | ||
var n = value.name ? ': ' + value.name : ''; | ||
base = ' [Function' + n + ']'; | ||
} // Make RegExps say that they are RegExps | ||
if (isRegExp(value)) { | ||
base = ' ' + RegExp.prototype.toString.call(value); | ||
} // Make dates with properties first say the date | ||
if (isDate(value)) { | ||
base = ' ' + Date.prototype.toUTCString.call(value); | ||
} // Make error with message first say the error | ||
if (isError(value)) { | ||
base = ' ' + formatError(value); | ||
} | ||
if (keys.length === 0 && (!array || value.length == 0)) { | ||
return braces[0] + base + braces[1]; | ||
} | ||
if (recurseTimes < 0) { | ||
if (isRegExp(value)) { | ||
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); | ||
} else { | ||
return ctx.stylize('[Object]', 'special'); | ||
} | ||
} | ||
ctx.seen.push(value); | ||
var output; | ||
if (array) { | ||
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); | ||
} else { | ||
output = keys.map(function (key) { | ||
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); | ||
}); | ||
} | ||
ctx.seen.pop(); | ||
return reduceToSingleString(output, base, braces); | ||
} | ||
function formatPrimitive(ctx, value) { | ||
if (isUndefined(value)) return ctx.stylize('undefined', 'undefined'); | ||
if (isString(value)) { | ||
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + '\''; | ||
return ctx.stylize(simple, 'string'); | ||
} | ||
if (isNumber(value)) return ctx.stylize('' + value, 'number'); | ||
if (isBoolean(value)) return ctx.stylize('' + value, 'boolean'); // For some reason typeof null is "object", so special case here. | ||
if (isNull(value)) return ctx.stylize('null', 'null'); | ||
} | ||
function formatError(value) { | ||
return '[' + Error.prototype.toString.call(value) + ']'; | ||
} | ||
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { | ||
var output = []; | ||
for (var i = 0, l = value.length; i < l; ++i) { | ||
if (hasOwnProperty(value, String(i))) { | ||
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true)); | ||
} else { | ||
output.push(''); | ||
} | ||
} | ||
keys.forEach(function (key) { | ||
if (!key.match(/^\d+$/)) { | ||
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true)); | ||
} | ||
}); | ||
return output; | ||
} | ||
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { | ||
var name, str, desc; | ||
desc = Object.getOwnPropertyDescriptor(value, key) || { | ||
value: value[key] | ||
}; | ||
if (desc.get) { | ||
if (desc.set) { | ||
str = ctx.stylize('[Getter/Setter]', 'special'); | ||
} else { | ||
str = ctx.stylize('[Getter]', 'special'); | ||
} | ||
} else { | ||
if (desc.set) { | ||
str = ctx.stylize('[Setter]', 'special'); | ||
} | ||
} | ||
if (!hasOwnProperty(visibleKeys, key)) { | ||
name = '[' + key + ']'; | ||
} | ||
if (!str) { | ||
if (ctx.seen.indexOf(desc.value) < 0) { | ||
if (isNull(recurseTimes)) { | ||
str = formatValue(ctx, desc.value, null); | ||
} else { | ||
str = formatValue(ctx, desc.value, recurseTimes - 1); | ||
} | ||
if (str.indexOf('\n') > -1) { | ||
if (array) { | ||
str = str.split('\n').map(function (line) { | ||
return ' ' + line; | ||
}).join('\n').substr(2); | ||
} else { | ||
str = '\n' + str.split('\n').map(function (line) { | ||
return ' ' + line; | ||
}).join('\n'); | ||
} | ||
} | ||
} else { | ||
str = ctx.stylize('[Circular]', 'special'); | ||
} | ||
} | ||
if (isUndefined(name)) { | ||
if (array && key.match(/^\d+$/)) { | ||
return str; | ||
} | ||
name = JSON.stringify('' + key); | ||
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { | ||
name = name.substr(1, name.length - 2); | ||
name = ctx.stylize(name, 'name'); | ||
} else { | ||
name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); | ||
name = ctx.stylize(name, 'string'); | ||
} | ||
} | ||
return name + ': ' + str; | ||
} | ||
function reduceToSingleString(output, base, braces) { | ||
var length = output.reduce(function (prev, cur) { | ||
if (cur.indexOf('\n') >= 0) ; | ||
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; | ||
}, 0); | ||
if (length > 60) { | ||
return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1]; | ||
} | ||
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; | ||
} // NOTE: These type checking functions intentionally don't use `instanceof` | ||
// because it is fragile and can be easily faked with `Object.create()`. | ||
function isArray(ar) { | ||
return Array.isArray(ar); | ||
} | ||
exports$2.isArray = isArray; | ||
function isBoolean(arg) { | ||
return typeof arg === 'boolean'; | ||
} | ||
exports$2.isBoolean = isBoolean; | ||
function isNull(arg) { | ||
return arg === null; | ||
} | ||
exports$2.isNull = isNull; | ||
function isNullOrUndefined(arg) { | ||
return arg == null; | ||
} | ||
exports$2.isNullOrUndefined = isNullOrUndefined; | ||
function isNumber(arg) { | ||
return typeof arg === 'number'; | ||
} | ||
exports$2.isNumber = isNumber; | ||
function isString(arg) { | ||
return typeof arg === 'string'; | ||
} | ||
exports$2.isString = isString; | ||
function isSymbol(arg) { | ||
return typeof arg === 'symbol'; | ||
} | ||
exports$2.isSymbol = isSymbol; | ||
function isUndefined(arg) { | ||
return arg === void 0; | ||
} | ||
exports$2.isUndefined = isUndefined; | ||
function isRegExp(re) { | ||
return isObject(re) && objectToString(re) === '[object RegExp]'; | ||
} | ||
exports$2.isRegExp = isRegExp; | ||
function isObject(arg) { | ||
return typeof arg === 'object' && arg !== null; | ||
} | ||
exports$2.isObject = isObject; | ||
function isDate(d) { | ||
return isObject(d) && objectToString(d) === '[object Date]'; | ||
} | ||
exports$2.isDate = isDate; | ||
function isError(e) { | ||
return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error); | ||
} | ||
exports$2.isError = isError; | ||
function isFunction(arg) { | ||
return typeof arg === 'function'; | ||
} | ||
exports$2.isFunction = isFunction; | ||
function isPrimitive(arg) { | ||
return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol | ||
typeof arg === 'undefined'; | ||
} | ||
exports$2.isPrimitive = isPrimitive; | ||
exports$2.isBuffer = dew(); | ||
function objectToString(o) { | ||
return Object.prototype.toString.call(o); | ||
} | ||
function pad(n) { | ||
return n < 10 ? '0' + n.toString(10) : n.toString(10); | ||
} | ||
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; // 26 Feb 16:19:34 | ||
function timestamp() { | ||
var d = new Date(); | ||
var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':'); | ||
return [d.getDate(), months[d.getMonth()], time].join(' '); | ||
} // log is just a thin wrapper to console.log that prepends a timestamp | ||
exports$2.log = function () { | ||
console.log('%s - %s', timestamp(), exports$2.format.apply(exports$2, arguments)); | ||
}; | ||
/** | ||
* Inherit the prototype methods from one constructor into another. | ||
* | ||
* The Function.prototype.inherits from lang.js rewritten as a standalone | ||
* function (not on Function.prototype). NOTE: If this file is to be loaded | ||
* during bootstrapping this function needs to be rewritten using some native | ||
* functions as prototype setup using normal JavaScript does not work as | ||
* expected during bootstrapping (see mirror.js in r114903). | ||
* | ||
* @param {function} ctor Constructor function which needs to inherit the | ||
* prototype. | ||
* @param {function} superCtor Constructor function to inherit prototype from. | ||
*/ | ||
exports$2.inherits = dew$1(); | ||
exports$2._extend = function (origin, add) { | ||
// Don't do anything if add isn't an object | ||
if (!add || !isObject(add)) return origin; | ||
var keys = Object.keys(add); | ||
var i = keys.length; | ||
while (i--) { | ||
origin[keys[i]] = add[keys[i]]; | ||
} | ||
return origin; | ||
}; | ||
function hasOwnProperty(obj, prop) { | ||
return Object.prototype.hasOwnProperty.call(obj, prop); | ||
} | ||
return exports$2; | ||
} | ||
var _util = dew$2(); | ||
var exports$3 = {}, | ||
_dewExec$2 = false; | ||
var _global$1 = typeof self !== "undefined" ? self : global; | ||
function dew$3() { | ||
if (_dewExec$2) return exports$3; | ||
_dewExec$2 = true; | ||
// compare and isBuffer taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js | ||
@@ -687,4 +50,4 @@ // original notice: | ||
function isBuffer(b) { | ||
if (_global$1.Buffer && typeof _global$1.Buffer.isBuffer === 'function') { | ||
return _global$1.Buffer.isBuffer(b); | ||
if (_global.Buffer && typeof _global.Buffer.isBuffer === 'function') { | ||
return _global.Buffer.isBuffer(b); | ||
} | ||
@@ -736,3 +99,3 @@ | ||
if (typeof _global$1.ArrayBuffer !== 'function') { | ||
if (typeof _global.ArrayBuffer !== 'function') { | ||
return false; | ||
@@ -763,3 +126,3 @@ } | ||
var assert = exports$3 = ok; // 2. The AssertionError is defined in assert. | ||
var assert = exports = ok; // 2. The AssertionError is defined in assert. | ||
// new assert.AssertionError({ message: message, | ||
@@ -1135,9 +498,9 @@ // actual: actual, | ||
return exports$3; | ||
return exports; | ||
} | ||
const exports$4 = dew$3(); | ||
const AssertionError = exports$4.AssertionError, deepEqual = exports$4.deepEqual, deepStrictEqual = exports$4.deepStrictEqual, doesNotReject = exports$4.doesNotReject, doesNotThrow = exports$4.doesNotThrow, equal = exports$4.equal, fail = exports$4.fail, ifError = exports$4.ifError, notDeepEqual = exports$4.notDeepEqual, notDeepStrictEqual = exports$4.notDeepStrictEqual, notEqual = exports$4.notEqual, notStrictEqual = exports$4.notStrictEqual, ok = exports$4.ok, rejects = exports$4.rejects, strict = exports$4.strict, strictEqual = exports$4.strictEqual, throws = exports$4.throws; | ||
const exports$1 = dew(); | ||
const AssertionError = exports$1.AssertionError, deepEqual = exports$1.deepEqual, deepStrictEqual = exports$1.deepStrictEqual, doesNotReject = exports$1.doesNotReject, doesNotThrow = exports$1.doesNotThrow, equal = exports$1.equal, fail = exports$1.fail, ifError = exports$1.ifError, notDeepEqual = exports$1.notDeepEqual, notDeepStrictEqual = exports$1.notDeepStrictEqual, notEqual = exports$1.notEqual, notStrictEqual = exports$1.notStrictEqual, ok = exports$1.ok, rejects = exports$1.rejects, strict = exports$1.strict, strictEqual = exports$1.strictEqual, throws = exports$1.throws; | ||
export default exports$4; | ||
export default exports$1; | ||
export { AssertionError, deepEqual, deepStrictEqual, doesNotReject, doesNotThrow, equal, fail, ifError, notDeepEqual, notDeepStrictEqual, notEqual, notStrictEqual, ok, rejects, strict, strictEqual, throws }; |
@@ -1,9 +0,9 @@ | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
exports$1.byteLength = byteLength; | ||
exports$1.toByteArray = toByteArray; | ||
exports$1.fromByteArray = fromByteArray; | ||
exports.byteLength = byteLength; | ||
exports.toByteArray = toByteArray; | ||
exports.fromByteArray = fromByteArray; | ||
var lookup = []; | ||
@@ -123,12 +123,12 @@ var revLookup = []; | ||
return exports$1; | ||
return exports; | ||
} | ||
var exports$2 = {}, | ||
var exports$1 = {}, | ||
_dewExec$1 = false; | ||
function dew$1() { | ||
if (_dewExec$1) return exports$2; | ||
if (_dewExec$1) return exports$1; | ||
_dewExec$1 = true; | ||
exports$2.read = function (buffer, offset, isLE, mLen, nBytes) { | ||
exports$1.read = function (buffer, offset, isLE, mLen, nBytes) { | ||
var e, m; | ||
@@ -167,3 +167,3 @@ var eLen = nBytes * 8 - mLen - 1; | ||
exports$2.write = function (buffer, value, offset, isLE, mLen, nBytes) { | ||
exports$1.write = function (buffer, value, offset, isLE, mLen, nBytes) { | ||
var e, m, c; | ||
@@ -223,9 +223,9 @@ var eLen = nBytes * 8 - mLen - 1; | ||
return exports$2; | ||
return exports$1; | ||
} | ||
var exports$3 = {}, | ||
var exports$2 = {}, | ||
_dewExec$2 = false; | ||
function dew$2() { | ||
if (_dewExec$2) return exports$3; | ||
if (_dewExec$2) return exports$2; | ||
_dewExec$2 = true; | ||
@@ -237,7 +237,7 @@ | ||
exports$3.Buffer = Buffer; | ||
exports$3.SlowBuffer = SlowBuffer; | ||
exports$3.INSPECT_MAX_BYTES = 50; | ||
exports$2.Buffer = Buffer; | ||
exports$2.SlowBuffer = SlowBuffer; | ||
exports$2.INSPECT_MAX_BYTES = 50; | ||
var K_MAX_LENGTH = 0x7fffffff; | ||
exports$3.kMaxLength = K_MAX_LENGTH; | ||
exports$2.kMaxLength = K_MAX_LENGTH; | ||
/** | ||
@@ -844,3 +844,3 @@ * If `Buffer.TYPED_ARRAY_SUPPORT`: | ||
var str = ''; | ||
var max = exports$3.INSPECT_MAX_BYTES; | ||
var max = exports$2.INSPECT_MAX_BYTES; | ||
str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim(); | ||
@@ -2025,9 +2025,9 @@ if (this.length > max) str += ' ... '; | ||
return exports$3; | ||
return exports$2; | ||
} | ||
const exports$4 = dew$2(); | ||
const Buffer = exports$4.Buffer, INSPECT_MAX_BYTES = exports$4.INSPECT_MAX_BYTES, SlowBuffer = exports$4.SlowBuffer, kMaxLength = exports$4.kMaxLength; | ||
const exports$3 = dew$2(); | ||
const Buffer = exports$3.Buffer, INSPECT_MAX_BYTES = exports$3.INSPECT_MAX_BYTES, SlowBuffer = exports$3.SlowBuffer, kMaxLength = exports$3.kMaxLength; | ||
export default exports$4; | ||
export default exports$3; | ||
export { Buffer, INSPECT_MAX_BYTES, SlowBuffer, kMaxLength }; |
@@ -1,13 +0,11 @@ | ||
import './chunk-2b1f9012.js'; | ||
import { a as _util } from './util-c86b84df.js'; | ||
import './process.js'; | ||
import _assert from './assert.js'; | ||
import './chunk-2db5f7d7.js'; | ||
import _util from './util.js'; | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
exports$1 = now; | ||
exports = now; | ||
@@ -18,6 +16,6 @@ function now() { | ||
return exports$1; | ||
return exports; | ||
} | ||
var exports$2 = {}, | ||
var exports$1 = {}, | ||
_dewExec$1 = false; | ||
@@ -28,3 +26,3 @@ | ||
function dew$1() { | ||
if (_dewExec$1) return exports$2; | ||
if (_dewExec$1) return exports$1; | ||
_dewExec$1 = true; | ||
@@ -62,3 +60,3 @@ | ||
exports$2 = console; | ||
exports$1 = console; | ||
@@ -112,9 +110,9 @@ function log() {} | ||
return exports$2; | ||
return exports$1; | ||
} | ||
const exports$3 = dew$1(); | ||
const assert = exports$3.assert, clear = exports$3.clear, context = exports$3.context, count = exports$3.count, countReset = exports$3.countReset, debug = exports$3.debug, dir = exports$3.dir, dirxml = exports$3.dirxml, error = exports$3.error, group = exports$3.group, groupCollapsed = exports$3.groupCollapsed, groupEnd = exports$3.groupEnd, info = exports$3.info, log = exports$3.log, memory = exports$3.memory, profile = exports$3.profile, profileEnd = exports$3.profileEnd, table = exports$3.table, time = exports$3.time, timeEnd = exports$3.timeEnd, timeStamp = exports$3.timeStamp, trace = exports$3.trace, warn = exports$3.warn; | ||
const exports$2 = dew$1(); | ||
const assert = exports$2.assert, clear = exports$2.clear, context = exports$2.context, count = exports$2.count, countReset = exports$2.countReset, debug = exports$2.debug, dir = exports$2.dir, dirxml = exports$2.dirxml, error = exports$2.error, group = exports$2.group, groupCollapsed = exports$2.groupCollapsed, groupEnd = exports$2.groupEnd, info = exports$2.info, log = exports$2.log, memory = exports$2.memory, profile = exports$2.profile, profileEnd = exports$2.profileEnd, table = exports$2.table, time = exports$2.time, timeEnd = exports$2.timeEnd, timeStamp = exports$2.timeStamp, trace = exports$2.trace, warn = exports$2.warn; | ||
export default exports$3; | ||
export default exports$2; | ||
export { assert, clear, context, count, countReset, debug, dir, dirxml, error, group, groupCollapsed, groupEnd, info, log, memory, profile, profileEnd, table, time, timeEnd, timeStamp, trace, warn }; |
function dew () { | ||
return exports$1; | ||
return exports; | ||
} | ||
var exports$1 = {"O_RDONLY":0,"O_WRONLY":1,"O_RDWR":2,"S_IFMT":61440,"S_IFREG":32768,"S_IFDIR":16384,"S_IFCHR":8192,"S_IFBLK":24576,"S_IFIFO":4096,"S_IFLNK":40960,"S_IFSOCK":49152,"O_CREAT":512,"O_EXCL":2048,"O_NOCTTY":131072,"O_TRUNC":1024,"O_APPEND":8,"O_DIRECTORY":1048576,"O_NOFOLLOW":256,"O_SYNC":128,"O_SYMLINK":2097152,"O_NONBLOCK":4,"S_IRWXU":448,"S_IRUSR":256,"S_IWUSR":128,"S_IXUSR":64,"S_IRWXG":56,"S_IRGRP":32,"S_IWGRP":16,"S_IXGRP":8,"S_IRWXO":7,"S_IROTH":4,"S_IWOTH":2,"S_IXOTH":1,"E2BIG":7,"EACCES":13,"EADDRINUSE":48,"EADDRNOTAVAIL":49,"EAFNOSUPPORT":47,"EAGAIN":35,"EALREADY":37,"EBADF":9,"EBADMSG":94,"EBUSY":16,"ECANCELED":89,"ECHILD":10,"ECONNABORTED":53,"ECONNREFUSED":61,"ECONNRESET":54,"EDEADLK":11,"EDESTADDRREQ":39,"EDOM":33,"EDQUOT":69,"EEXIST":17,"EFAULT":14,"EFBIG":27,"EHOSTUNREACH":65,"EIDRM":90,"EILSEQ":92,"EINPROGRESS":36,"EINTR":4,"EINVAL":22,"EIO":5,"EISCONN":56,"EISDIR":21,"ELOOP":62,"EMFILE":24,"EMLINK":31,"EMSGSIZE":40,"EMULTIHOP":95,"ENAMETOOLONG":63,"ENETDOWN":50,"ENETRESET":52,"ENETUNREACH":51,"ENFILE":23,"ENOBUFS":55,"ENODATA":96,"ENODEV":19,"ENOENT":2,"ENOEXEC":8,"ENOLCK":77,"ENOLINK":97,"ENOMEM":12,"ENOMSG":91,"ENOPROTOOPT":42,"ENOSPC":28,"ENOSR":98,"ENOSTR":99,"ENOSYS":78,"ENOTCONN":57,"ENOTDIR":20,"ENOTEMPTY":66,"ENOTSOCK":38,"ENOTSUP":45,"ENOTTY":25,"ENXIO":6,"EOPNOTSUPP":102,"EOVERFLOW":84,"EPERM":1,"EPIPE":32,"EPROTO":100,"EPROTONOSUPPORT":43,"EPROTOTYPE":41,"ERANGE":34,"EROFS":30,"ESPIPE":29,"ESRCH":3,"ESTALE":70,"ETIME":101,"ETIMEDOUT":60,"ETXTBSY":26,"EWOULDBLOCK":35,"EXDEV":18,"SIGHUP":1,"SIGINT":2,"SIGQUIT":3,"SIGILL":4,"SIGTRAP":5,"SIGABRT":6,"SIGIOT":6,"SIGBUS":10,"SIGFPE":8,"SIGKILL":9,"SIGUSR1":30,"SIGSEGV":11,"SIGUSR2":31,"SIGPIPE":13,"SIGALRM":14,"SIGTERM":15,"SIGCHLD":20,"SIGCONT":19,"SIGSTOP":17,"SIGTSTP":18,"SIGTTIN":21,"SIGTTOU":22,"SIGURG":16,"SIGXCPU":24,"SIGXFSZ":25,"SIGVTALRM":26,"SIGPROF":27,"SIGWINCH":28,"SIGIO":23,"SIGSYS":12,"SSL_OP_ALL":2147486719,"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION":262144,"SSL_OP_CIPHER_SERVER_PREFERENCE":4194304,"SSL_OP_CISCO_ANYCONNECT":32768,"SSL_OP_COOKIE_EXCHANGE":8192,"SSL_OP_CRYPTOPRO_TLSEXT_BUG":2147483648,"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS":2048,"SSL_OP_EPHEMERAL_RSA":0,"SSL_OP_LEGACY_SERVER_CONNECT":4,"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER":32,"SSL_OP_MICROSOFT_SESS_ID_BUG":1,"SSL_OP_MSIE_SSLV2_RSA_PADDING":0,"SSL_OP_NETSCAPE_CA_DN_BUG":536870912,"SSL_OP_NETSCAPE_CHALLENGE_BUG":2,"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG":1073741824,"SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG":8,"SSL_OP_NO_COMPRESSION":131072,"SSL_OP_NO_QUERY_MTU":4096,"SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION":65536,"SSL_OP_NO_SSLv2":16777216,"SSL_OP_NO_SSLv3":33554432,"SSL_OP_NO_TICKET":16384,"SSL_OP_NO_TLSv1":67108864,"SSL_OP_NO_TLSv1_1":268435456,"SSL_OP_NO_TLSv1_2":134217728,"SSL_OP_PKCS1_CHECK_1":0,"SSL_OP_PKCS1_CHECK_2":0,"SSL_OP_SINGLE_DH_USE":1048576,"SSL_OP_SINGLE_ECDH_USE":524288,"SSL_OP_SSLEAY_080_CLIENT_DH_BUG":128,"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG":0,"SSL_OP_TLS_BLOCK_PADDING_BUG":512,"SSL_OP_TLS_D5_BUG":256,"SSL_OP_TLS_ROLLBACK_BUG":8388608,"ENGINE_METHOD_DSA":2,"ENGINE_METHOD_DH":4,"ENGINE_METHOD_RAND":8,"ENGINE_METHOD_ECDH":16,"ENGINE_METHOD_ECDSA":32,"ENGINE_METHOD_CIPHERS":64,"ENGINE_METHOD_DIGESTS":128,"ENGINE_METHOD_STORE":256,"ENGINE_METHOD_PKEY_METHS":512,"ENGINE_METHOD_PKEY_ASN1_METHS":1024,"ENGINE_METHOD_ALL":65535,"ENGINE_METHOD_NONE":0,"DH_CHECK_P_NOT_SAFE_PRIME":2,"DH_CHECK_P_NOT_PRIME":1,"DH_UNABLE_TO_CHECK_GENERATOR":4,"DH_NOT_SUITABLE_GENERATOR":8,"NPN_ENABLED":1,"RSA_PKCS1_PADDING":1,"RSA_SSLV23_PADDING":2,"RSA_NO_PADDING":3,"RSA_PKCS1_OAEP_PADDING":4,"RSA_X931_PADDING":5,"RSA_PKCS1_PSS_PADDING":6,"POINT_CONVERSION_COMPRESSED":2,"POINT_CONVERSION_UNCOMPRESSED":4,"POINT_CONVERSION_HYBRID":6,"F_OK":0,"R_OK":4,"W_OK":2,"X_OK":1,"UV_UDP_REUSEADDR":4}; | ||
var exports = {"O_RDONLY":0,"O_WRONLY":1,"O_RDWR":2,"S_IFMT":61440,"S_IFREG":32768,"S_IFDIR":16384,"S_IFCHR":8192,"S_IFBLK":24576,"S_IFIFO":4096,"S_IFLNK":40960,"S_IFSOCK":49152,"O_CREAT":512,"O_EXCL":2048,"O_NOCTTY":131072,"O_TRUNC":1024,"O_APPEND":8,"O_DIRECTORY":1048576,"O_NOFOLLOW":256,"O_SYNC":128,"O_SYMLINK":2097152,"O_NONBLOCK":4,"S_IRWXU":448,"S_IRUSR":256,"S_IWUSR":128,"S_IXUSR":64,"S_IRWXG":56,"S_IRGRP":32,"S_IWGRP":16,"S_IXGRP":8,"S_IRWXO":7,"S_IROTH":4,"S_IWOTH":2,"S_IXOTH":1,"E2BIG":7,"EACCES":13,"EADDRINUSE":48,"EADDRNOTAVAIL":49,"EAFNOSUPPORT":47,"EAGAIN":35,"EALREADY":37,"EBADF":9,"EBADMSG":94,"EBUSY":16,"ECANCELED":89,"ECHILD":10,"ECONNABORTED":53,"ECONNREFUSED":61,"ECONNRESET":54,"EDEADLK":11,"EDESTADDRREQ":39,"EDOM":33,"EDQUOT":69,"EEXIST":17,"EFAULT":14,"EFBIG":27,"EHOSTUNREACH":65,"EIDRM":90,"EILSEQ":92,"EINPROGRESS":36,"EINTR":4,"EINVAL":22,"EIO":5,"EISCONN":56,"EISDIR":21,"ELOOP":62,"EMFILE":24,"EMLINK":31,"EMSGSIZE":40,"EMULTIHOP":95,"ENAMETOOLONG":63,"ENETDOWN":50,"ENETRESET":52,"ENETUNREACH":51,"ENFILE":23,"ENOBUFS":55,"ENODATA":96,"ENODEV":19,"ENOENT":2,"ENOEXEC":8,"ENOLCK":77,"ENOLINK":97,"ENOMEM":12,"ENOMSG":91,"ENOPROTOOPT":42,"ENOSPC":28,"ENOSR":98,"ENOSTR":99,"ENOSYS":78,"ENOTCONN":57,"ENOTDIR":20,"ENOTEMPTY":66,"ENOTSOCK":38,"ENOTSUP":45,"ENOTTY":25,"ENXIO":6,"EOPNOTSUPP":102,"EOVERFLOW":84,"EPERM":1,"EPIPE":32,"EPROTO":100,"EPROTONOSUPPORT":43,"EPROTOTYPE":41,"ERANGE":34,"EROFS":30,"ESPIPE":29,"ESRCH":3,"ESTALE":70,"ETIME":101,"ETIMEDOUT":60,"ETXTBSY":26,"EWOULDBLOCK":35,"EXDEV":18,"SIGHUP":1,"SIGINT":2,"SIGQUIT":3,"SIGILL":4,"SIGTRAP":5,"SIGABRT":6,"SIGIOT":6,"SIGBUS":10,"SIGFPE":8,"SIGKILL":9,"SIGUSR1":30,"SIGSEGV":11,"SIGUSR2":31,"SIGPIPE":13,"SIGALRM":14,"SIGTERM":15,"SIGCHLD":20,"SIGCONT":19,"SIGSTOP":17,"SIGTSTP":18,"SIGTTIN":21,"SIGTTOU":22,"SIGURG":16,"SIGXCPU":24,"SIGXFSZ":25,"SIGVTALRM":26,"SIGPROF":27,"SIGWINCH":28,"SIGIO":23,"SIGSYS":12,"SSL_OP_ALL":2147486719,"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION":262144,"SSL_OP_CIPHER_SERVER_PREFERENCE":4194304,"SSL_OP_CISCO_ANYCONNECT":32768,"SSL_OP_COOKIE_EXCHANGE":8192,"SSL_OP_CRYPTOPRO_TLSEXT_BUG":2147483648,"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS":2048,"SSL_OP_EPHEMERAL_RSA":0,"SSL_OP_LEGACY_SERVER_CONNECT":4,"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER":32,"SSL_OP_MICROSOFT_SESS_ID_BUG":1,"SSL_OP_MSIE_SSLV2_RSA_PADDING":0,"SSL_OP_NETSCAPE_CA_DN_BUG":536870912,"SSL_OP_NETSCAPE_CHALLENGE_BUG":2,"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG":1073741824,"SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG":8,"SSL_OP_NO_COMPRESSION":131072,"SSL_OP_NO_QUERY_MTU":4096,"SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION":65536,"SSL_OP_NO_SSLv2":16777216,"SSL_OP_NO_SSLv3":33554432,"SSL_OP_NO_TICKET":16384,"SSL_OP_NO_TLSv1":67108864,"SSL_OP_NO_TLSv1_1":268435456,"SSL_OP_NO_TLSv1_2":134217728,"SSL_OP_PKCS1_CHECK_1":0,"SSL_OP_PKCS1_CHECK_2":0,"SSL_OP_SINGLE_DH_USE":1048576,"SSL_OP_SINGLE_ECDH_USE":524288,"SSL_OP_SSLEAY_080_CLIENT_DH_BUG":128,"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG":0,"SSL_OP_TLS_BLOCK_PADDING_BUG":512,"SSL_OP_TLS_D5_BUG":256,"SSL_OP_TLS_ROLLBACK_BUG":8388608,"ENGINE_METHOD_DSA":2,"ENGINE_METHOD_DH":4,"ENGINE_METHOD_RAND":8,"ENGINE_METHOD_ECDH":16,"ENGINE_METHOD_ECDSA":32,"ENGINE_METHOD_CIPHERS":64,"ENGINE_METHOD_DIGESTS":128,"ENGINE_METHOD_STORE":256,"ENGINE_METHOD_PKEY_METHS":512,"ENGINE_METHOD_PKEY_ASN1_METHS":1024,"ENGINE_METHOD_ALL":65535,"ENGINE_METHOD_NONE":0,"DH_CHECK_P_NOT_SAFE_PRIME":2,"DH_CHECK_P_NOT_PRIME":1,"DH_UNABLE_TO_CHECK_GENERATOR":4,"DH_NOT_SUITABLE_GENERATOR":8,"NPN_ENABLED":1,"RSA_PKCS1_PADDING":1,"RSA_SSLV23_PADDING":2,"RSA_NO_PADDING":3,"RSA_PKCS1_OAEP_PADDING":4,"RSA_X931_PADDING":5,"RSA_PKCS1_PSS_PADDING":6,"POINT_CONVERSION_COMPRESSED":2,"POINT_CONVERSION_UNCOMPRESSED":4,"POINT_CONVERSION_HYBRID":6,"F_OK":0,"R_OK":4,"W_OK":2,"X_OK":1,"UV_UDP_REUSEADDR":4}; | ||
const exports$2 = dew(); | ||
const DH_CHECK_P_NOT_PRIME = exports$2.DH_CHECK_P_NOT_PRIME, DH_CHECK_P_NOT_SAFE_PRIME = exports$2.DH_CHECK_P_NOT_SAFE_PRIME, DH_NOT_SUITABLE_GENERATOR = exports$2.DH_NOT_SUITABLE_GENERATOR, DH_UNABLE_TO_CHECK_GENERATOR = exports$2.DH_UNABLE_TO_CHECK_GENERATOR, E2BIG = exports$2.E2BIG, EACCES = exports$2.EACCES, EADDRINUSE = exports$2.EADDRINUSE, EADDRNOTAVAIL = exports$2.EADDRNOTAVAIL, EAFNOSUPPORT = exports$2.EAFNOSUPPORT, EAGAIN = exports$2.EAGAIN, EALREADY = exports$2.EALREADY, EBADF = exports$2.EBADF, EBADMSG = exports$2.EBADMSG, EBUSY = exports$2.EBUSY, ECANCELED = exports$2.ECANCELED, ECHILD = exports$2.ECHILD, ECONNABORTED = exports$2.ECONNABORTED, ECONNREFUSED = exports$2.ECONNREFUSED, ECONNRESET = exports$2.ECONNRESET, EDEADLK = exports$2.EDEADLK, EDESTADDRREQ = exports$2.EDESTADDRREQ, EDOM = exports$2.EDOM, EDQUOT = exports$2.EDQUOT, EEXIST = exports$2.EEXIST, EFAULT = exports$2.EFAULT, EFBIG = exports$2.EFBIG, EHOSTUNREACH = exports$2.EHOSTUNREACH, EIDRM = exports$2.EIDRM, EILSEQ = exports$2.EILSEQ, EINPROGRESS = exports$2.EINPROGRESS, EINTR = exports$2.EINTR, EINVAL = exports$2.EINVAL, EIO = exports$2.EIO, EISCONN = exports$2.EISCONN, EISDIR = exports$2.EISDIR, ELOOP = exports$2.ELOOP, EMFILE = exports$2.EMFILE, EMLINK = exports$2.EMLINK, EMSGSIZE = exports$2.EMSGSIZE, EMULTIHOP = exports$2.EMULTIHOP, ENAMETOOLONG = exports$2.ENAMETOOLONG, ENETDOWN = exports$2.ENETDOWN, ENETRESET = exports$2.ENETRESET, ENETUNREACH = exports$2.ENETUNREACH, ENFILE = exports$2.ENFILE, ENGINE_METHOD_ALL = exports$2.ENGINE_METHOD_ALL, ENGINE_METHOD_CIPHERS = exports$2.ENGINE_METHOD_CIPHERS, ENGINE_METHOD_DH = exports$2.ENGINE_METHOD_DH, ENGINE_METHOD_DIGESTS = exports$2.ENGINE_METHOD_DIGESTS, ENGINE_METHOD_DSA = exports$2.ENGINE_METHOD_DSA, ENGINE_METHOD_ECDH = exports$2.ENGINE_METHOD_ECDH, ENGINE_METHOD_ECDSA = exports$2.ENGINE_METHOD_ECDSA, ENGINE_METHOD_NONE = exports$2.ENGINE_METHOD_NONE, ENGINE_METHOD_PKEY_ASN1_METHS = exports$2.ENGINE_METHOD_PKEY_ASN1_METHS, ENGINE_METHOD_PKEY_METHS = exports$2.ENGINE_METHOD_PKEY_METHS, ENGINE_METHOD_RAND = exports$2.ENGINE_METHOD_RAND, ENGINE_METHOD_STORE = exports$2.ENGINE_METHOD_STORE, ENOBUFS = exports$2.ENOBUFS, ENODATA = exports$2.ENODATA, ENODEV = exports$2.ENODEV, ENOENT = exports$2.ENOENT, ENOEXEC = exports$2.ENOEXEC, ENOLCK = exports$2.ENOLCK, ENOLINK = exports$2.ENOLINK, ENOMEM = exports$2.ENOMEM, ENOMSG = exports$2.ENOMSG, ENOPROTOOPT = exports$2.ENOPROTOOPT, ENOSPC = exports$2.ENOSPC, ENOSR = exports$2.ENOSR, ENOSTR = exports$2.ENOSTR, ENOSYS = exports$2.ENOSYS, ENOTCONN = exports$2.ENOTCONN, ENOTDIR = exports$2.ENOTDIR, ENOTEMPTY = exports$2.ENOTEMPTY, ENOTSOCK = exports$2.ENOTSOCK, ENOTSUP = exports$2.ENOTSUP, ENOTTY = exports$2.ENOTTY, ENXIO = exports$2.ENXIO, EOPNOTSUPP = exports$2.EOPNOTSUPP, EOVERFLOW = exports$2.EOVERFLOW, EPERM = exports$2.EPERM, EPIPE = exports$2.EPIPE, EPROTO = exports$2.EPROTO, EPROTONOSUPPORT = exports$2.EPROTONOSUPPORT, EPROTOTYPE = exports$2.EPROTOTYPE, ERANGE = exports$2.ERANGE, EROFS = exports$2.EROFS, ESPIPE = exports$2.ESPIPE, ESRCH = exports$2.ESRCH, ESTALE = exports$2.ESTALE, ETIME = exports$2.ETIME, ETIMEDOUT = exports$2.ETIMEDOUT, ETXTBSY = exports$2.ETXTBSY, EWOULDBLOCK = exports$2.EWOULDBLOCK, EXDEV = exports$2.EXDEV, F_OK = exports$2.F_OK, NPN_ENABLED = exports$2.NPN_ENABLED, O_APPEND = exports$2.O_APPEND, O_CREAT = exports$2.O_CREAT, O_DIRECTORY = exports$2.O_DIRECTORY, O_EXCL = exports$2.O_EXCL, O_NOCTTY = exports$2.O_NOCTTY, O_NOFOLLOW = exports$2.O_NOFOLLOW, O_NONBLOCK = exports$2.O_NONBLOCK, O_RDONLY = exports$2.O_RDONLY, O_RDWR = exports$2.O_RDWR, O_SYMLINK = exports$2.O_SYMLINK, O_SYNC = exports$2.O_SYNC, O_TRUNC = exports$2.O_TRUNC, O_WRONLY = exports$2.O_WRONLY, POINT_CONVERSION_COMPRESSED = exports$2.POINT_CONVERSION_COMPRESSED, POINT_CONVERSION_HYBRID = exports$2.POINT_CONVERSION_HYBRID, POINT_CONVERSION_UNCOMPRESSED = exports$2.POINT_CONVERSION_UNCOMPRESSED, RSA_NO_PADDING = exports$2.RSA_NO_PADDING, RSA_PKCS1_OAEP_PADDING = exports$2.RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING = exports$2.RSA_PKCS1_PADDING, RSA_PKCS1_PSS_PADDING = exports$2.RSA_PKCS1_PSS_PADDING, RSA_SSLV23_PADDING = exports$2.RSA_SSLV23_PADDING, RSA_X931_PADDING = exports$2.RSA_X931_PADDING, R_OK = exports$2.R_OK, SIGABRT = exports$2.SIGABRT, SIGALRM = exports$2.SIGALRM, SIGBUS = exports$2.SIGBUS, SIGCHLD = exports$2.SIGCHLD, SIGCONT = exports$2.SIGCONT, SIGFPE = exports$2.SIGFPE, SIGHUP = exports$2.SIGHUP, SIGILL = exports$2.SIGILL, SIGINT = exports$2.SIGINT, SIGIO = exports$2.SIGIO, SIGIOT = exports$2.SIGIOT, SIGKILL = exports$2.SIGKILL, SIGPIPE = exports$2.SIGPIPE, SIGPROF = exports$2.SIGPROF, SIGQUIT = exports$2.SIGQUIT, SIGSEGV = exports$2.SIGSEGV, SIGSTOP = exports$2.SIGSTOP, SIGSYS = exports$2.SIGSYS, SIGTERM = exports$2.SIGTERM, SIGTRAP = exports$2.SIGTRAP, SIGTSTP = exports$2.SIGTSTP, SIGTTIN = exports$2.SIGTTIN, SIGTTOU = exports$2.SIGTTOU, SIGURG = exports$2.SIGURG, SIGUSR1 = exports$2.SIGUSR1, SIGUSR2 = exports$2.SIGUSR2, SIGVTALRM = exports$2.SIGVTALRM, SIGWINCH = exports$2.SIGWINCH, SIGXCPU = exports$2.SIGXCPU, SIGXFSZ = exports$2.SIGXFSZ, SSL_OP_ALL = exports$2.SSL_OP_ALL, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION = exports$2.SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION, SSL_OP_CIPHER_SERVER_PREFERENCE = exports$2.SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_CISCO_ANYCONNECT = exports$2.SSL_OP_CISCO_ANYCONNECT, SSL_OP_COOKIE_EXCHANGE = exports$2.SSL_OP_COOKIE_EXCHANGE, SSL_OP_CRYPTOPRO_TLSEXT_BUG = exports$2.SSL_OP_CRYPTOPRO_TLSEXT_BUG, SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS = exports$2.SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS, SSL_OP_EPHEMERAL_RSA = exports$2.SSL_OP_EPHEMERAL_RSA, SSL_OP_LEGACY_SERVER_CONNECT = exports$2.SSL_OP_LEGACY_SERVER_CONNECT, SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER = exports$2.SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER, SSL_OP_MICROSOFT_SESS_ID_BUG = exports$2.SSL_OP_MICROSOFT_SESS_ID_BUG, SSL_OP_MSIE_SSLV2_RSA_PADDING = exports$2.SSL_OP_MSIE_SSLV2_RSA_PADDING, SSL_OP_NETSCAPE_CA_DN_BUG = exports$2.SSL_OP_NETSCAPE_CA_DN_BUG, SSL_OP_NETSCAPE_CHALLENGE_BUG = exports$2.SSL_OP_NETSCAPE_CHALLENGE_BUG, SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG = exports$2.SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG, SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG = exports$2.SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG, SSL_OP_NO_COMPRESSION = exports$2.SSL_OP_NO_COMPRESSION, SSL_OP_NO_QUERY_MTU = exports$2.SSL_OP_NO_QUERY_MTU, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION = exports$2.SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION, SSL_OP_NO_SSLv2 = exports$2.SSL_OP_NO_SSLv2, SSL_OP_NO_SSLv3 = exports$2.SSL_OP_NO_SSLv3, SSL_OP_NO_TICKET = exports$2.SSL_OP_NO_TICKET, SSL_OP_NO_TLSv1 = exports$2.SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1 = exports$2.SSL_OP_NO_TLSv1_1, SSL_OP_NO_TLSv1_2 = exports$2.SSL_OP_NO_TLSv1_2, SSL_OP_PKCS1_CHECK_1 = exports$2.SSL_OP_PKCS1_CHECK_1, SSL_OP_PKCS1_CHECK_2 = exports$2.SSL_OP_PKCS1_CHECK_2, SSL_OP_SINGLE_DH_USE = exports$2.SSL_OP_SINGLE_DH_USE, SSL_OP_SINGLE_ECDH_USE = exports$2.SSL_OP_SINGLE_ECDH_USE, SSL_OP_SSLEAY_080_CLIENT_DH_BUG = exports$2.SSL_OP_SSLEAY_080_CLIENT_DH_BUG, SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG = exports$2.SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG, SSL_OP_TLS_BLOCK_PADDING_BUG = exports$2.SSL_OP_TLS_BLOCK_PADDING_BUG, SSL_OP_TLS_D5_BUG = exports$2.SSL_OP_TLS_D5_BUG, SSL_OP_TLS_ROLLBACK_BUG = exports$2.SSL_OP_TLS_ROLLBACK_BUG, S_IFBLK = exports$2.S_IFBLK, S_IFCHR = exports$2.S_IFCHR, S_IFDIR = exports$2.S_IFDIR, S_IFIFO = exports$2.S_IFIFO, S_IFLNK = exports$2.S_IFLNK, S_IFMT = exports$2.S_IFMT, S_IFREG = exports$2.S_IFREG, S_IFSOCK = exports$2.S_IFSOCK, S_IRGRP = exports$2.S_IRGRP, S_IROTH = exports$2.S_IROTH, S_IRUSR = exports$2.S_IRUSR, S_IRWXG = exports$2.S_IRWXG, S_IRWXO = exports$2.S_IRWXO, S_IRWXU = exports$2.S_IRWXU, S_IWGRP = exports$2.S_IWGRP, S_IWOTH = exports$2.S_IWOTH, S_IWUSR = exports$2.S_IWUSR, S_IXGRP = exports$2.S_IXGRP, S_IXOTH = exports$2.S_IXOTH, S_IXUSR = exports$2.S_IXUSR, UV_UDP_REUSEADDR = exports$2.UV_UDP_REUSEADDR, W_OK = exports$2.W_OK, X_OK = exports$2.X_OK; | ||
const exports$1 = dew(); | ||
const DH_CHECK_P_NOT_PRIME = exports$1.DH_CHECK_P_NOT_PRIME, DH_CHECK_P_NOT_SAFE_PRIME = exports$1.DH_CHECK_P_NOT_SAFE_PRIME, DH_NOT_SUITABLE_GENERATOR = exports$1.DH_NOT_SUITABLE_GENERATOR, DH_UNABLE_TO_CHECK_GENERATOR = exports$1.DH_UNABLE_TO_CHECK_GENERATOR, E2BIG = exports$1.E2BIG, EACCES = exports$1.EACCES, EADDRINUSE = exports$1.EADDRINUSE, EADDRNOTAVAIL = exports$1.EADDRNOTAVAIL, EAFNOSUPPORT = exports$1.EAFNOSUPPORT, EAGAIN = exports$1.EAGAIN, EALREADY = exports$1.EALREADY, EBADF = exports$1.EBADF, EBADMSG = exports$1.EBADMSG, EBUSY = exports$1.EBUSY, ECANCELED = exports$1.ECANCELED, ECHILD = exports$1.ECHILD, ECONNABORTED = exports$1.ECONNABORTED, ECONNREFUSED = exports$1.ECONNREFUSED, ECONNRESET = exports$1.ECONNRESET, EDEADLK = exports$1.EDEADLK, EDESTADDRREQ = exports$1.EDESTADDRREQ, EDOM = exports$1.EDOM, EDQUOT = exports$1.EDQUOT, EEXIST = exports$1.EEXIST, EFAULT = exports$1.EFAULT, EFBIG = exports$1.EFBIG, EHOSTUNREACH = exports$1.EHOSTUNREACH, EIDRM = exports$1.EIDRM, EILSEQ = exports$1.EILSEQ, EINPROGRESS = exports$1.EINPROGRESS, EINTR = exports$1.EINTR, EINVAL = exports$1.EINVAL, EIO = exports$1.EIO, EISCONN = exports$1.EISCONN, EISDIR = exports$1.EISDIR, ELOOP = exports$1.ELOOP, EMFILE = exports$1.EMFILE, EMLINK = exports$1.EMLINK, EMSGSIZE = exports$1.EMSGSIZE, EMULTIHOP = exports$1.EMULTIHOP, ENAMETOOLONG = exports$1.ENAMETOOLONG, ENETDOWN = exports$1.ENETDOWN, ENETRESET = exports$1.ENETRESET, ENETUNREACH = exports$1.ENETUNREACH, ENFILE = exports$1.ENFILE, ENGINE_METHOD_ALL = exports$1.ENGINE_METHOD_ALL, ENGINE_METHOD_CIPHERS = exports$1.ENGINE_METHOD_CIPHERS, ENGINE_METHOD_DH = exports$1.ENGINE_METHOD_DH, ENGINE_METHOD_DIGESTS = exports$1.ENGINE_METHOD_DIGESTS, ENGINE_METHOD_DSA = exports$1.ENGINE_METHOD_DSA, ENGINE_METHOD_ECDH = exports$1.ENGINE_METHOD_ECDH, ENGINE_METHOD_ECDSA = exports$1.ENGINE_METHOD_ECDSA, ENGINE_METHOD_NONE = exports$1.ENGINE_METHOD_NONE, ENGINE_METHOD_PKEY_ASN1_METHS = exports$1.ENGINE_METHOD_PKEY_ASN1_METHS, ENGINE_METHOD_PKEY_METHS = exports$1.ENGINE_METHOD_PKEY_METHS, ENGINE_METHOD_RAND = exports$1.ENGINE_METHOD_RAND, ENGINE_METHOD_STORE = exports$1.ENGINE_METHOD_STORE, ENOBUFS = exports$1.ENOBUFS, ENODATA = exports$1.ENODATA, ENODEV = exports$1.ENODEV, ENOENT = exports$1.ENOENT, ENOEXEC = exports$1.ENOEXEC, ENOLCK = exports$1.ENOLCK, ENOLINK = exports$1.ENOLINK, ENOMEM = exports$1.ENOMEM, ENOMSG = exports$1.ENOMSG, ENOPROTOOPT = exports$1.ENOPROTOOPT, ENOSPC = exports$1.ENOSPC, ENOSR = exports$1.ENOSR, ENOSTR = exports$1.ENOSTR, ENOSYS = exports$1.ENOSYS, ENOTCONN = exports$1.ENOTCONN, ENOTDIR = exports$1.ENOTDIR, ENOTEMPTY = exports$1.ENOTEMPTY, ENOTSOCK = exports$1.ENOTSOCK, ENOTSUP = exports$1.ENOTSUP, ENOTTY = exports$1.ENOTTY, ENXIO = exports$1.ENXIO, EOPNOTSUPP = exports$1.EOPNOTSUPP, EOVERFLOW = exports$1.EOVERFLOW, EPERM = exports$1.EPERM, EPIPE = exports$1.EPIPE, EPROTO = exports$1.EPROTO, EPROTONOSUPPORT = exports$1.EPROTONOSUPPORT, EPROTOTYPE = exports$1.EPROTOTYPE, ERANGE = exports$1.ERANGE, EROFS = exports$1.EROFS, ESPIPE = exports$1.ESPIPE, ESRCH = exports$1.ESRCH, ESTALE = exports$1.ESTALE, ETIME = exports$1.ETIME, ETIMEDOUT = exports$1.ETIMEDOUT, ETXTBSY = exports$1.ETXTBSY, EWOULDBLOCK = exports$1.EWOULDBLOCK, EXDEV = exports$1.EXDEV, F_OK = exports$1.F_OK, NPN_ENABLED = exports$1.NPN_ENABLED, O_APPEND = exports$1.O_APPEND, O_CREAT = exports$1.O_CREAT, O_DIRECTORY = exports$1.O_DIRECTORY, O_EXCL = exports$1.O_EXCL, O_NOCTTY = exports$1.O_NOCTTY, O_NOFOLLOW = exports$1.O_NOFOLLOW, O_NONBLOCK = exports$1.O_NONBLOCK, O_RDONLY = exports$1.O_RDONLY, O_RDWR = exports$1.O_RDWR, O_SYMLINK = exports$1.O_SYMLINK, O_SYNC = exports$1.O_SYNC, O_TRUNC = exports$1.O_TRUNC, O_WRONLY = exports$1.O_WRONLY, POINT_CONVERSION_COMPRESSED = exports$1.POINT_CONVERSION_COMPRESSED, POINT_CONVERSION_HYBRID = exports$1.POINT_CONVERSION_HYBRID, POINT_CONVERSION_UNCOMPRESSED = exports$1.POINT_CONVERSION_UNCOMPRESSED, RSA_NO_PADDING = exports$1.RSA_NO_PADDING, RSA_PKCS1_OAEP_PADDING = exports$1.RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING = exports$1.RSA_PKCS1_PADDING, RSA_PKCS1_PSS_PADDING = exports$1.RSA_PKCS1_PSS_PADDING, RSA_SSLV23_PADDING = exports$1.RSA_SSLV23_PADDING, RSA_X931_PADDING = exports$1.RSA_X931_PADDING, R_OK = exports$1.R_OK, SIGABRT = exports$1.SIGABRT, SIGALRM = exports$1.SIGALRM, SIGBUS = exports$1.SIGBUS, SIGCHLD = exports$1.SIGCHLD, SIGCONT = exports$1.SIGCONT, SIGFPE = exports$1.SIGFPE, SIGHUP = exports$1.SIGHUP, SIGILL = exports$1.SIGILL, SIGINT = exports$1.SIGINT, SIGIO = exports$1.SIGIO, SIGIOT = exports$1.SIGIOT, SIGKILL = exports$1.SIGKILL, SIGPIPE = exports$1.SIGPIPE, SIGPROF = exports$1.SIGPROF, SIGQUIT = exports$1.SIGQUIT, SIGSEGV = exports$1.SIGSEGV, SIGSTOP = exports$1.SIGSTOP, SIGSYS = exports$1.SIGSYS, SIGTERM = exports$1.SIGTERM, SIGTRAP = exports$1.SIGTRAP, SIGTSTP = exports$1.SIGTSTP, SIGTTIN = exports$1.SIGTTIN, SIGTTOU = exports$1.SIGTTOU, SIGURG = exports$1.SIGURG, SIGUSR1 = exports$1.SIGUSR1, SIGUSR2 = exports$1.SIGUSR2, SIGVTALRM = exports$1.SIGVTALRM, SIGWINCH = exports$1.SIGWINCH, SIGXCPU = exports$1.SIGXCPU, SIGXFSZ = exports$1.SIGXFSZ, SSL_OP_ALL = exports$1.SSL_OP_ALL, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION = exports$1.SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION, SSL_OP_CIPHER_SERVER_PREFERENCE = exports$1.SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_CISCO_ANYCONNECT = exports$1.SSL_OP_CISCO_ANYCONNECT, SSL_OP_COOKIE_EXCHANGE = exports$1.SSL_OP_COOKIE_EXCHANGE, SSL_OP_CRYPTOPRO_TLSEXT_BUG = exports$1.SSL_OP_CRYPTOPRO_TLSEXT_BUG, SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS = exports$1.SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS, SSL_OP_EPHEMERAL_RSA = exports$1.SSL_OP_EPHEMERAL_RSA, SSL_OP_LEGACY_SERVER_CONNECT = exports$1.SSL_OP_LEGACY_SERVER_CONNECT, SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER = exports$1.SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER, SSL_OP_MICROSOFT_SESS_ID_BUG = exports$1.SSL_OP_MICROSOFT_SESS_ID_BUG, SSL_OP_MSIE_SSLV2_RSA_PADDING = exports$1.SSL_OP_MSIE_SSLV2_RSA_PADDING, SSL_OP_NETSCAPE_CA_DN_BUG = exports$1.SSL_OP_NETSCAPE_CA_DN_BUG, SSL_OP_NETSCAPE_CHALLENGE_BUG = exports$1.SSL_OP_NETSCAPE_CHALLENGE_BUG, SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG = exports$1.SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG, SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG = exports$1.SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG, SSL_OP_NO_COMPRESSION = exports$1.SSL_OP_NO_COMPRESSION, SSL_OP_NO_QUERY_MTU = exports$1.SSL_OP_NO_QUERY_MTU, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION = exports$1.SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION, SSL_OP_NO_SSLv2 = exports$1.SSL_OP_NO_SSLv2, SSL_OP_NO_SSLv3 = exports$1.SSL_OP_NO_SSLv3, SSL_OP_NO_TICKET = exports$1.SSL_OP_NO_TICKET, SSL_OP_NO_TLSv1 = exports$1.SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1 = exports$1.SSL_OP_NO_TLSv1_1, SSL_OP_NO_TLSv1_2 = exports$1.SSL_OP_NO_TLSv1_2, SSL_OP_PKCS1_CHECK_1 = exports$1.SSL_OP_PKCS1_CHECK_1, SSL_OP_PKCS1_CHECK_2 = exports$1.SSL_OP_PKCS1_CHECK_2, SSL_OP_SINGLE_DH_USE = exports$1.SSL_OP_SINGLE_DH_USE, SSL_OP_SINGLE_ECDH_USE = exports$1.SSL_OP_SINGLE_ECDH_USE, SSL_OP_SSLEAY_080_CLIENT_DH_BUG = exports$1.SSL_OP_SSLEAY_080_CLIENT_DH_BUG, SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG = exports$1.SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG, SSL_OP_TLS_BLOCK_PADDING_BUG = exports$1.SSL_OP_TLS_BLOCK_PADDING_BUG, SSL_OP_TLS_D5_BUG = exports$1.SSL_OP_TLS_D5_BUG, SSL_OP_TLS_ROLLBACK_BUG = exports$1.SSL_OP_TLS_ROLLBACK_BUG, S_IFBLK = exports$1.S_IFBLK, S_IFCHR = exports$1.S_IFCHR, S_IFDIR = exports$1.S_IFDIR, S_IFIFO = exports$1.S_IFIFO, S_IFLNK = exports$1.S_IFLNK, S_IFMT = exports$1.S_IFMT, S_IFREG = exports$1.S_IFREG, S_IFSOCK = exports$1.S_IFSOCK, S_IRGRP = exports$1.S_IRGRP, S_IROTH = exports$1.S_IROTH, S_IRUSR = exports$1.S_IRUSR, S_IRWXG = exports$1.S_IRWXG, S_IRWXO = exports$1.S_IRWXO, S_IRWXU = exports$1.S_IRWXU, S_IWGRP = exports$1.S_IWGRP, S_IWOTH = exports$1.S_IWOTH, S_IWUSR = exports$1.S_IWUSR, S_IXGRP = exports$1.S_IXGRP, S_IXOTH = exports$1.S_IXOTH, S_IXUSR = exports$1.S_IXUSR, UV_UDP_REUSEADDR = exports$1.UV_UDP_REUSEADDR, W_OK = exports$1.W_OK, X_OK = exports$1.X_OK; | ||
export default exports$2; | ||
export default exports$1; | ||
export { DH_CHECK_P_NOT_PRIME, DH_CHECK_P_NOT_SAFE_PRIME, DH_NOT_SUITABLE_GENERATOR, DH_UNABLE_TO_CHECK_GENERATOR, E2BIG, EACCES, EADDRINUSE, EADDRNOTAVAIL, EAFNOSUPPORT, EAGAIN, EALREADY, EBADF, EBADMSG, EBUSY, ECANCELED, ECHILD, ECONNABORTED, ECONNREFUSED, ECONNRESET, EDEADLK, EDESTADDRREQ, EDOM, EDQUOT, EEXIST, EFAULT, EFBIG, EHOSTUNREACH, EIDRM, EILSEQ, EINPROGRESS, EINTR, EINVAL, EIO, EISCONN, EISDIR, ELOOP, EMFILE, EMLINK, EMSGSIZE, EMULTIHOP, ENAMETOOLONG, ENETDOWN, ENETRESET, ENETUNREACH, ENFILE, ENGINE_METHOD_ALL, ENGINE_METHOD_CIPHERS, ENGINE_METHOD_DH, ENGINE_METHOD_DIGESTS, ENGINE_METHOD_DSA, ENGINE_METHOD_ECDH, ENGINE_METHOD_ECDSA, ENGINE_METHOD_NONE, ENGINE_METHOD_PKEY_ASN1_METHS, ENGINE_METHOD_PKEY_METHS, ENGINE_METHOD_RAND, ENGINE_METHOD_STORE, ENOBUFS, ENODATA, ENODEV, ENOENT, ENOEXEC, ENOLCK, ENOLINK, ENOMEM, ENOMSG, ENOPROTOOPT, ENOSPC, ENOSR, ENOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTSOCK, ENOTSUP, ENOTTY, ENXIO, EOPNOTSUPP, EOVERFLOW, EPERM, EPIPE, EPROTO, EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, ESTALE, ETIME, ETIMEDOUT, ETXTBSY, EWOULDBLOCK, EXDEV, F_OK, NPN_ENABLED, O_APPEND, O_CREAT, O_DIRECTORY, O_EXCL, O_NOCTTY, O_NOFOLLOW, O_NONBLOCK, O_RDONLY, O_RDWR, O_SYMLINK, O_SYNC, O_TRUNC, O_WRONLY, POINT_CONVERSION_COMPRESSED, POINT_CONVERSION_HYBRID, POINT_CONVERSION_UNCOMPRESSED, RSA_NO_PADDING, RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING, RSA_PKCS1_PSS_PADDING, RSA_SSLV23_PADDING, RSA_X931_PADDING, R_OK, SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIO, SIGIOT, SIGKILL, SIGPIPE, SIGPROF, SIGQUIT, SIGSEGV, SIGSTOP, SIGSYS, SIGTERM, SIGTRAP, SIGTSTP, SIGTTIN, SIGTTOU, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM, SIGWINCH, SIGXCPU, SIGXFSZ, SSL_OP_ALL, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION, SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_CISCO_ANYCONNECT, SSL_OP_COOKIE_EXCHANGE, SSL_OP_CRYPTOPRO_TLSEXT_BUG, SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS, SSL_OP_EPHEMERAL_RSA, SSL_OP_LEGACY_SERVER_CONNECT, SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER, SSL_OP_MICROSOFT_SESS_ID_BUG, SSL_OP_MSIE_SSLV2_RSA_PADDING, SSL_OP_NETSCAPE_CA_DN_BUG, SSL_OP_NETSCAPE_CHALLENGE_BUG, SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG, SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG, SSL_OP_NO_COMPRESSION, SSL_OP_NO_QUERY_MTU, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION, SSL_OP_NO_SSLv2, SSL_OP_NO_SSLv3, SSL_OP_NO_TICKET, SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1, SSL_OP_NO_TLSv1_2, SSL_OP_PKCS1_CHECK_1, SSL_OP_PKCS1_CHECK_2, SSL_OP_SINGLE_DH_USE, SSL_OP_SINGLE_ECDH_USE, SSL_OP_SSLEAY_080_CLIENT_DH_BUG, SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG, SSL_OP_TLS_BLOCK_PADDING_BUG, SSL_OP_TLS_D5_BUG, SSL_OP_TLS_ROLLBACK_BUG, S_IFBLK, S_IFCHR, S_IFDIR, S_IFIFO, S_IFLNK, S_IFMT, S_IFREG, S_IFSOCK, S_IRGRP, S_IROTH, S_IRUSR, S_IRWXG, S_IRWXO, S_IRWXU, S_IWGRP, S_IWOTH, S_IWUSR, S_IXGRP, S_IXOTH, S_IXUSR, UV_UDP_REUSEADDR, W_OK, X_OK }; |
import _events from './events.js'; | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
exports$1 = function () { | ||
exports = function () { | ||
// Import Events | ||
@@ -81,11 +81,11 @@ var events = _events; // Export Domain | ||
return domain; | ||
}.call(exports$1); | ||
}.call(exports); | ||
return exports$1; | ||
return exports; | ||
} | ||
const exports$2 = dew(); | ||
const create = exports$2.create, createDomain = exports$2.createDomain; | ||
const exports$1 = dew(); | ||
const create = exports$1.create, createDomain = exports$1.createDomain; | ||
export default exports$2; | ||
export default exports$1; | ||
export { create, createDomain }; |
@@ -1,5 +0,5 @@ | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
@@ -36,3 +36,3 @@ var R = typeof Reflect === 'object' ? Reflect : null; | ||
exports$1 = EventEmitter; // Backwards-compat with node 0.10.x | ||
exports = EventEmitter; // Backwards-compat with node 0.10.x | ||
@@ -403,9 +403,9 @@ EventEmitter.EventEmitter = EventEmitter; | ||
return exports$1; | ||
return exports; | ||
} | ||
const exports$2 = dew(); | ||
const EventEmitter = exports$2.EventEmitter, defaultMaxListeners = exports$2.defaultMaxListeners, init = exports$2.init, listenerCount = exports$2.listenerCount; | ||
const exports$1 = dew(); | ||
const EventEmitter = exports$1.EventEmitter, defaultMaxListeners = exports$1.defaultMaxListeners, init = exports$1.init, listenerCount = exports$1.listenerCount; | ||
export default exports$2; | ||
export default exports$1; | ||
export { EventEmitter, defaultMaxListeners, init, listenerCount }; |
@@ -0,11 +1,12 @@ | ||
import { b as dew$7 } from './util-c86b84df.js'; | ||
import _process from './process.js'; | ||
import _buffer from './buffer.js'; | ||
import { a as dew } from './chunk-2db5f7d7.js'; | ||
import './chunk-ed65735f.js'; | ||
import './string_decoder-a044d0fd.js'; | ||
import './events.js'; | ||
import { a as dew$e } from './chunk-14980483.js'; | ||
import { c as dew$8 } from './chunk-147c6ebb.js'; | ||
import './punycode.js'; | ||
import _url from './url.js'; | ||
import './querystring.js'; | ||
import _url from './url.js'; | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
@@ -15,13 +16,13 @@ | ||
function dew$2() { | ||
if (_dewExec) return exports$1; | ||
function dew() { | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
exports$1.fetch = isFunction(_global.fetch) && isFunction(_global.ReadableStream); | ||
exports$1.writableStream = isFunction(_global.WritableStream); | ||
exports$1.abortController = isFunction(_global.AbortController); | ||
exports$1.blobConstructor = false; | ||
exports.fetch = isFunction(_global.fetch) && isFunction(_global.ReadableStream); | ||
exports.writableStream = isFunction(_global.WritableStream); | ||
exports.abortController = isFunction(_global.AbortController); | ||
exports.blobConstructor = false; | ||
try { | ||
new Blob([new ArrayBuffer(1)]); | ||
exports$1.blobConstructor = true; | ||
exports.blobConstructor = true; | ||
} catch (e) {} // The xhr request to example.com may violate some restrictive CSP configurations, | ||
@@ -74,11 +75,11 @@ // so if we're running in a browser that supports `fetch`, avoid calling getXHR() | ||
exports$1.arraybuffer = exports$1.fetch || haveArrayBuffer && checkTypeSupport('arraybuffer'); // These next two tests unavoidably show warnings in Chrome. Since fetch will always | ||
exports.arraybuffer = exports.fetch || haveArrayBuffer && checkTypeSupport('arraybuffer'); // These next two tests unavoidably show warnings in Chrome. Since fetch will always | ||
// be used if it's available, just return false for these to avoid the warnings. | ||
exports$1.msstream = !exports$1.fetch && haveSlice && checkTypeSupport('ms-stream'); | ||
exports$1.mozchunkedarraybuffer = !exports$1.fetch && haveArrayBuffer && checkTypeSupport('moz-chunked-arraybuffer'); // If fetch is supported, then overrideMimeType will be supported too. Skip calling | ||
exports.msstream = !exports.fetch && haveSlice && checkTypeSupport('ms-stream'); | ||
exports.mozchunkedarraybuffer = !exports.fetch && haveArrayBuffer && checkTypeSupport('moz-chunked-arraybuffer'); // If fetch is supported, then overrideMimeType will be supported too. Skip calling | ||
// getXHR(). | ||
exports$1.overrideMimeType = exports$1.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false); | ||
exports$1.vbArray = isFunction(_global.VBArray); | ||
exports.overrideMimeType = exports.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false); | ||
exports.vbArray = isFunction(_global.VBArray); | ||
@@ -91,6 +92,6 @@ function isFunction(value) { | ||
return exports$1; | ||
return exports; | ||
} | ||
var exports$2 = {}, | ||
var exports$1 = {}, | ||
_dewExec$1 = false; | ||
@@ -100,4 +101,4 @@ | ||
function dew$3() { | ||
if (_dewExec$1) return exports$2; | ||
function dew$1() { | ||
if (_dewExec$1) return exports$1; | ||
_dewExec$1 = true; | ||
@@ -107,9 +108,9 @@ var Buffer = _buffer.Buffer; | ||
var capability = dew$2(); | ||
var capability = dew(); | ||
var inherits = dew(); | ||
var inherits = dew$7(); | ||
var stream = dew$e(); | ||
var stream = dew$8(); | ||
var rStates = exports$2.readyStates = { | ||
var rStates = exports$1.readyStates = { | ||
UNSENT: 0, | ||
@@ -122,3 +123,3 @@ OPENED: 1, | ||
var IncomingMessage = exports$2.IncomingMessage = function (xhr, response, mode, fetchTimer) { | ||
var IncomingMessage = exports$1.IncomingMessage = function (xhr, response, mode, fetchTimer) { | ||
var self = this || _global$1; | ||
@@ -354,13 +355,13 @@ stream.Readable.call(self); | ||
return exports$2; | ||
return exports$1; | ||
} | ||
var exports$3 = {}, | ||
var exports$2 = {}, | ||
_dewExec$2 = false; | ||
function dew$4() { | ||
if (_dewExec$2) return exports$3; | ||
function dew$2() { | ||
if (_dewExec$2) return exports$2; | ||
_dewExec$2 = true; | ||
var Buffer = _buffer.Buffer; | ||
exports$3 = function (buf) { | ||
exports$2 = function (buf) { | ||
// If the buffer is backed by a Uint8Array, a faster version will work | ||
@@ -393,6 +394,6 @@ if (buf instanceof Uint8Array) { | ||
return exports$3; | ||
return exports$2; | ||
} | ||
var exports$4 = {}, | ||
var exports$3 = {}, | ||
_dewExec$3 = false; | ||
@@ -402,4 +403,4 @@ | ||
function dew$5() { | ||
if (_dewExec$3) return exports$4; | ||
function dew$3() { | ||
if (_dewExec$3) return exports$3; | ||
_dewExec$3 = true; | ||
@@ -409,11 +410,11 @@ var Buffer = _buffer.Buffer; | ||
var capability = dew$2(); | ||
var capability = dew(); | ||
var inherits = dew(); | ||
var inherits = dew$7(); | ||
var response = dew$3(); | ||
var response = dew$1(); | ||
var stream = dew$e(); | ||
var stream = dew$8(); | ||
var toArrayBuffer = dew$4(); | ||
var toArrayBuffer = dew$2(); | ||
@@ -439,3 +440,3 @@ var IncomingMessage = response.IncomingMessage; | ||
var ClientRequest = exports$4 = function (opts) { | ||
var ClientRequest = exports$3 = function (opts) { | ||
var self = this || _global$2; | ||
@@ -712,11 +713,11 @@ stream.Writable.call(self); | ||
var unsafeHeaders = ['accept-charset', 'accept-encoding', 'access-control-request-headers', 'access-control-request-method', 'connection', 'content-length', 'cookie', 'cookie2', 'date', 'dnt', 'expect', 'host', 'keep-alive', 'origin', 'referer', 'te', 'trailer', 'transfer-encoding', 'upgrade', 'via']; | ||
return exports$4; | ||
return exports$3; | ||
} | ||
var exports$5 = {}, | ||
var exports$4 = {}, | ||
_dewExec$4 = false; | ||
function dew$6() { | ||
if (_dewExec$4) return exports$5; | ||
function dew$4() { | ||
if (_dewExec$4) return exports$4; | ||
_dewExec$4 = true; | ||
exports$5 = extend; | ||
exports$4 = extend; | ||
var hasOwnProperty = Object.prototype.hasOwnProperty; | ||
@@ -740,11 +741,11 @@ | ||
return exports$5; | ||
return exports$4; | ||
} | ||
var exports$6 = {}, | ||
var exports$5 = {}, | ||
_dewExec$5 = false; | ||
function dew$7() { | ||
if (_dewExec$5) return exports$6; | ||
function dew$5() { | ||
if (_dewExec$5) return exports$5; | ||
_dewExec$5 = true; | ||
exports$6 = { | ||
exports$5 = { | ||
"100": "Continue", | ||
@@ -813,6 +814,6 @@ "101": "Switching Protocols", | ||
}; | ||
return exports$6; | ||
return exports$5; | ||
} | ||
var exports$7 = {}, | ||
var exports$6 = {}, | ||
_dewExec$6 = false; | ||
@@ -822,16 +823,16 @@ | ||
function dew$8() { | ||
if (_dewExec$6) return exports$7; | ||
function dew$6() { | ||
if (_dewExec$6) return exports$6; | ||
_dewExec$6 = true; | ||
var ClientRequest = dew$5(); | ||
var ClientRequest = dew$3(); | ||
var response = dew$3(); | ||
var response = dew$1(); | ||
var extend = dew$6(); | ||
var extend = dew$4(); | ||
var statusCodes = dew$7(); | ||
var statusCodes = dew$5(); | ||
var url = _url; | ||
var http = exports$7; | ||
var http = exports$6; | ||
@@ -875,9 +876,9 @@ http.request = function (opts, cb) { | ||
http.METHODS = ['CHECKOUT', 'CONNECT', 'COPY', 'DELETE', 'GET', 'HEAD', 'LOCK', 'M-SEARCH', 'MERGE', 'MKACTIVITY', 'MKCOL', 'MOVE', 'NOTIFY', 'OPTIONS', 'PATCH', 'POST', 'PROPFIND', 'PROPPATCH', 'PURGE', 'PUT', 'REPORT', 'SEARCH', 'SUBSCRIBE', 'TRACE', 'UNLOCK', 'UNSUBSCRIBE']; | ||
return exports$7; | ||
return exports$6; | ||
} | ||
const exports$8 = dew$8(); | ||
const Agent = exports$8.Agent, ClientRequest = exports$8.ClientRequest, IncomingMessage = exports$8.IncomingMessage, METHODS = exports$8.METHODS, STATUS_CODES = exports$8.STATUS_CODES, get = exports$8.get, globalAgent = exports$8.globalAgent, request = exports$8.request; | ||
const exports$7 = dew$6(); | ||
const Agent = exports$7.Agent, ClientRequest = exports$7.ClientRequest, IncomingMessage = exports$7.IncomingMessage, METHODS = exports$7.METHODS, STATUS_CODES = exports$7.STATUS_CODES, get = exports$7.get, globalAgent = exports$7.globalAgent, request = exports$7.request; | ||
export default exports$8; | ||
export default exports$7; | ||
export { Agent, ClientRequest, IncomingMessage, METHODS, STATUS_CODES, get, globalAgent, request }; |
@@ -0,12 +1,13 @@ | ||
import './util-c86b84df.js'; | ||
import './process.js'; | ||
import './buffer.js'; | ||
import './chunk-2db5f7d7.js'; | ||
import './chunk-ed65735f.js'; | ||
import './string_decoder-a044d0fd.js'; | ||
import './events.js'; | ||
import './chunk-14980483.js'; | ||
import './chunk-147c6ebb.js'; | ||
import _http from './http.js'; | ||
import './punycode.js'; | ||
import _url from './url.js'; | ||
import './querystring.js'; | ||
import _url from './url.js'; | ||
import _http from './http.js'; | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
@@ -17,7 +18,7 @@ | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
var http = _http; | ||
var url = _url; | ||
var https = exports$1; | ||
var https = exports; | ||
@@ -54,9 +55,9 @@ for (var key in http) { | ||
return exports$1; | ||
return exports; | ||
} | ||
const exports$2 = dew(); | ||
const Agent = exports$2.Agent, ClientRequest = exports$2.ClientRequest, IncomingMessage = exports$2.IncomingMessage, METHODS = exports$2.METHODS, STATUS_CODES = exports$2.STATUS_CODES, get = exports$2.get, globalAgent = exports$2.globalAgent, request = exports$2.request; | ||
const exports$1 = dew(); | ||
const Agent = exports$1.Agent, ClientRequest = exports$1.ClientRequest, IncomingMessage = exports$1.IncomingMessage, METHODS = exports$1.METHODS, STATUS_CODES = exports$1.STATUS_CODES, get = exports$1.get, globalAgent = exports$1.globalAgent, request = exports$1.request; | ||
export default exports$2; | ||
export default exports$1; | ||
export { Agent, ClientRequest, IncomingMessage, METHODS, STATUS_CODES, get, globalAgent, request }; |
@@ -1,12 +0,12 @@ | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
exports$1.endianness = function () { | ||
exports.endianness = function () { | ||
return 'LE'; | ||
}; | ||
exports$1.hostname = function () { | ||
exports.hostname = function () { | ||
if (typeof location !== 'undefined') { | ||
@@ -17,27 +17,27 @@ return location.hostname; | ||
exports$1.loadavg = function () { | ||
exports.loadavg = function () { | ||
return []; | ||
}; | ||
exports$1.uptime = function () { | ||
exports.uptime = function () { | ||
return 0; | ||
}; | ||
exports$1.freemem = function () { | ||
exports.freemem = function () { | ||
return Number.MAX_VALUE; | ||
}; | ||
exports$1.totalmem = function () { | ||
exports.totalmem = function () { | ||
return Number.MAX_VALUE; | ||
}; | ||
exports$1.cpus = function () { | ||
exports.cpus = function () { | ||
return []; | ||
}; | ||
exports$1.type = function () { | ||
exports.type = function () { | ||
return 'Browser'; | ||
}; | ||
exports$1.release = function () { | ||
exports.release = function () { | ||
if (typeof navigator !== 'undefined') { | ||
@@ -50,31 +50,31 @@ return navigator.appVersion; | ||
exports$1.networkInterfaces = exports$1.getNetworkInterfaces = function () { | ||
exports.networkInterfaces = exports.getNetworkInterfaces = function () { | ||
return {}; | ||
}; | ||
exports$1.arch = function () { | ||
exports.arch = function () { | ||
return 'javascript'; | ||
}; | ||
exports$1.platform = function () { | ||
exports.platform = function () { | ||
return 'browser'; | ||
}; | ||
exports$1.tmpdir = exports$1.tmpDir = function () { | ||
exports.tmpdir = exports.tmpDir = function () { | ||
return '/tmp'; | ||
}; | ||
exports$1.EOL = '\n'; | ||
exports.EOL = '\n'; | ||
exports$1.homedir = function () { | ||
exports.homedir = function () { | ||
return '/'; | ||
}; | ||
return exports$1; | ||
return exports; | ||
} | ||
const exports$2 = dew(); | ||
const EOL = exports$2.EOL, arch = exports$2.arch, cpus = exports$2.cpus, endianness = exports$2.endianness, freemem = exports$2.freemem, getNetworkInterfaces = exports$2.getNetworkInterfaces, homedir = exports$2.homedir, hostname = exports$2.hostname, loadavg = exports$2.loadavg, networkInterfaces = exports$2.networkInterfaces, platform = exports$2.platform, release = exports$2.release, tmpDir = exports$2.tmpDir, tmpdir = exports$2.tmpdir, totalmem = exports$2.totalmem, type = exports$2.type, uptime = exports$2.uptime; | ||
const exports$1 = dew(); | ||
const EOL = exports$1.EOL, arch = exports$1.arch, cpus = exports$1.cpus, endianness = exports$1.endianness, freemem = exports$1.freemem, getNetworkInterfaces = exports$1.getNetworkInterfaces, homedir = exports$1.homedir, hostname = exports$1.hostname, loadavg = exports$1.loadavg, networkInterfaces = exports$1.networkInterfaces, platform = exports$1.platform, release = exports$1.release, tmpDir = exports$1.tmpDir, tmpdir = exports$1.tmpdir, totalmem = exports$1.totalmem, type = exports$1.type, uptime = exports$1.uptime; | ||
export default exports$2; | ||
export default exports$1; | ||
export { EOL, arch, cpus, endianness, freemem, getNetworkInterfaces, homedir, hostname, loadavg, networkInterfaces, platform, release, tmpDir, tmpdir, totalmem, type, uptime }; |
import _process from './process.js'; | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
@@ -72,3 +72,3 @@ var process = _process; | ||
exports$1.resolve = function () { | ||
exports.resolve = function () { | ||
var resolvedPath = '', | ||
@@ -101,4 +101,4 @@ resolvedAbsolute = false; | ||
exports$1.normalize = function (path) { | ||
var isAbsolute = exports$1.isAbsolute(path), | ||
exports.normalize = function (path) { | ||
var isAbsolute = exports.isAbsolute(path), | ||
trailingSlash = substr(path, -1) === '/'; // Normalize the path | ||
@@ -122,3 +122,3 @@ | ||
exports$1.isAbsolute = function (path) { | ||
exports.isAbsolute = function (path) { | ||
return path.charAt(0) === '/'; | ||
@@ -128,5 +128,5 @@ }; // posix version | ||
exports$1.join = function () { | ||
exports.join = function () { | ||
var paths = Array.prototype.slice.call(arguments, 0); | ||
return exports$1.normalize(filter(paths, function (p, index) { | ||
return exports.normalize(filter(paths, function (p, index) { | ||
if (typeof p !== 'string') { | ||
@@ -142,5 +142,5 @@ throw new TypeError('Arguments to path.join must be strings'); | ||
exports$1.relative = function (from, to) { | ||
from = exports$1.resolve(from).substr(1); | ||
to = exports$1.resolve(to).substr(1); | ||
exports.relative = function (from, to) { | ||
from = exports.resolve(from).substr(1); | ||
to = exports.resolve(to).substr(1); | ||
@@ -186,6 +186,6 @@ function trim(arr) { | ||
exports$1.sep = '/'; | ||
exports$1.delimiter = ':'; | ||
exports.sep = '/'; | ||
exports.delimiter = ':'; | ||
exports$1.dirname = function (path) { | ||
exports.dirname = function (path) { | ||
var result = splitPath(path), | ||
@@ -208,3 +208,3 @@ root = result[0], | ||
exports$1.basename = function (path, ext) { | ||
exports.basename = function (path, ext) { | ||
var f = splitPath(path)[2]; // TODO: make this comparison case-insensitive on windows? | ||
@@ -219,3 +219,3 @@ | ||
exports$1.extname = function (path) { | ||
exports.extname = function (path) { | ||
return splitPath(path)[3]; | ||
@@ -242,9 +242,9 @@ }; | ||
}; | ||
return exports$1; | ||
return exports; | ||
} | ||
const exports$2 = dew(); | ||
const _makeLong = exports$2._makeLong, basename = exports$2.basename, delimiter = exports$2.delimiter, dirname = exports$2.dirname, extname = exports$2.extname, format = exports$2.format, isAbsolute = exports$2.isAbsolute, join = exports$2.join, normalize = exports$2.normalize, parse = exports$2.parse, posix = exports$2.posix, relative = exports$2.relative, resolve = exports$2.resolve, sep = exports$2.sep, win32 = exports$2.win32; | ||
const exports$1 = dew(); | ||
const _makeLong = exports$1._makeLong, basename = exports$1.basename, delimiter = exports$1.delimiter, dirname = exports$1.dirname, extname = exports$1.extname, format = exports$1.format, isAbsolute = exports$1.isAbsolute, join = exports$1.join, normalize = exports$1.normalize, parse = exports$1.parse, posix = exports$1.posix, relative = exports$1.relative, resolve = exports$1.resolve, sep = exports$1.sep, win32 = exports$1.win32; | ||
export default exports$2; | ||
export default exports$1; | ||
export { _makeLong, basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, parse, posix, relative, resolve, sep, win32 }; |
@@ -1,2 +0,2 @@ | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
@@ -7,6 +7,6 @@ | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
// shim for using process in browser | ||
var process = exports$1 = {}; // cached from whatever global is present so that test runners that stub it | ||
var process = exports = {}; // cached from whatever global is present so that test runners that stub it | ||
// don't break things. But we need to wrap it in a try catch in case it is | ||
@@ -219,9 +219,9 @@ // wrapped in strict mode code which doesn't define any globals. It's inside a | ||
return exports$1; | ||
return exports; | ||
} | ||
const exports$2 = dew(); | ||
const addListener = exports$2.addListener, argv = exports$2.argv, binding = exports$2.binding, browser = exports$2.browser, chdir = exports$2.chdir, cwd = exports$2.cwd, emit = exports$2.emit, env = exports$2.env, listeners = exports$2.listeners, nextTick = exports$2.nextTick, off = exports$2.off, on = exports$2.on, once = exports$2.once, prependListener = exports$2.prependListener, prependOnceListener = exports$2.prependOnceListener, removeAllListeners = exports$2.removeAllListeners, removeListener = exports$2.removeListener, title = exports$2.title, umask = exports$2.umask, version = exports$2.version, versions = exports$2.versions; | ||
const exports$1 = dew(); | ||
const addListener = exports$1.addListener, argv = exports$1.argv, binding = exports$1.binding, browser = exports$1.browser, chdir = exports$1.chdir, cwd = exports$1.cwd, emit = exports$1.emit, env = exports$1.env, listeners = exports$1.listeners, nextTick = exports$1.nextTick, off = exports$1.off, on = exports$1.on, once = exports$1.once, prependListener = exports$1.prependListener, prependOnceListener = exports$1.prependOnceListener, removeAllListeners = exports$1.removeAllListeners, removeListener = exports$1.removeListener, title = exports$1.title, umask = exports$1.umask, version = exports$1.version, versions = exports$1.versions; | ||
export default exports$2; | ||
export default exports$1; | ||
export { addListener, argv, binding, browser, chdir, cwd, emit, env, listeners, nextTick, off, on, once, prependListener, prependOnceListener, removeAllListeners, removeListener, title, umask, version, versions }; |
@@ -1,5 +0,5 @@ | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
@@ -471,10 +471,10 @@ | ||
}; | ||
exports$1 = punycode; | ||
return exports$1; | ||
exports = punycode; | ||
return exports; | ||
} | ||
const exports$2 = dew(); | ||
const decode = exports$2.decode, encode = exports$2.encode, toASCII = exports$2.toASCII, toUnicode = exports$2.toUnicode, ucs2 = exports$2.ucs2, version = exports$2.version; | ||
const exports$1 = dew(); | ||
const decode = exports$1.decode, encode = exports$1.encode, toASCII = exports$1.toASCII, toUnicode = exports$1.toUnicode, ucs2 = exports$1.ucs2, version = exports$1.version; | ||
export default exports$2; | ||
export default exports$1; | ||
export { decode, encode, toASCII, toUnicode, ucs2, version }; |
@@ -1,5 +0,5 @@ | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
@@ -14,3 +14,3 @@ | ||
exports$1 = function (qs, sep, eq, options) { | ||
exports = function (qs, sep, eq, options) { | ||
sep = sep || '&'; | ||
@@ -69,9 +69,9 @@ eq = eq || '='; | ||
return exports$1; | ||
return exports; | ||
} | ||
var exports$2 = {}, | ||
var exports$1 = {}, | ||
_dewExec$1 = false; | ||
function dew$1() { | ||
if (_dewExec$1) return exports$2; | ||
if (_dewExec$1) return exports$1; | ||
_dewExec$1 = true; | ||
@@ -95,3 +95,3 @@ | ||
exports$2 = function (obj, sep, eq, name) { | ||
exports$1 = function (obj, sep, eq, name) { | ||
sep = sep || '&'; | ||
@@ -122,19 +122,19 @@ eq = eq || '='; | ||
return exports$2; | ||
return exports$1; | ||
} | ||
var exports$3 = {}, | ||
var exports$2 = {}, | ||
_dewExec$2 = false; | ||
function dew$2() { | ||
if (_dewExec$2) return exports$3; | ||
if (_dewExec$2) return exports$2; | ||
_dewExec$2 = true; | ||
exports$3.decode = exports$3.parse = dew(); | ||
exports$3.encode = exports$3.stringify = dew$1(); | ||
return exports$3; | ||
exports$2.decode = exports$2.parse = dew(); | ||
exports$2.encode = exports$2.stringify = dew$1(); | ||
return exports$2; | ||
} | ||
const exports$4 = dew$2(); | ||
const decode = exports$4.decode, encode = exports$4.encode, parse = exports$4.parse, stringify = exports$4.stringify; | ||
const exports$3 = dew$2(); | ||
const decode = exports$3.decode, encode = exports$3.encode, parse = exports$3.parse, stringify = exports$3.stringify; | ||
export default exports$4; | ||
export default exports$3; | ||
export { decode, encode, parse, stringify }; |
@@ -0,45 +1,45 @@ | ||
import { b as dew$8 } from './util-c86b84df.js'; | ||
import './process.js'; | ||
import './buffer.js'; | ||
import { a as dew } from './chunk-2db5f7d7.js'; | ||
import './chunk-ed65735f.js'; | ||
import './string_decoder-a044d0fd.js'; | ||
import _events from './events.js'; | ||
import { a as dew$e, b as dew$9, c as dew$a } from './chunk-14980483.js'; | ||
import { a as dew$5, b as dew$6, c as dew$7 } from './chunk-147c6ebb.js'; | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew$4() { | ||
if (_dewExec) return exports$1; | ||
function dew() { | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
exports$1 = dew$9(); | ||
return exports$1; | ||
exports = dew$5(); | ||
return exports; | ||
} | ||
var exports$2 = {}, | ||
var exports$1 = {}, | ||
_dewExec$1 = false; | ||
function dew$5() { | ||
if (_dewExec$1) return exports$2; | ||
function dew$1() { | ||
if (_dewExec$1) return exports$1; | ||
_dewExec$1 = true; | ||
exports$2 = dew$a(); | ||
return exports$2; | ||
exports$1 = dew$6(); | ||
return exports$1; | ||
} | ||
var exports$3 = {}, | ||
var exports$2 = {}, | ||
_dewExec$2 = false; | ||
function dew$6() { | ||
if (_dewExec$2) return exports$3; | ||
function dew$2() { | ||
if (_dewExec$2) return exports$2; | ||
_dewExec$2 = true; | ||
exports$3 = dew$e().Transform; | ||
return exports$3; | ||
exports$2 = dew$7().Transform; | ||
return exports$2; | ||
} | ||
var exports$4 = {}, | ||
var exports$3 = {}, | ||
_dewExec$3 = false; | ||
function dew$7() { | ||
if (_dewExec$3) return exports$4; | ||
function dew$3() { | ||
if (_dewExec$3) return exports$3; | ||
_dewExec$3 = true; | ||
exports$4 = dew$e().PassThrough; | ||
return exports$4; | ||
exports$3 = dew$7().PassThrough; | ||
return exports$3; | ||
} | ||
var exports$5 = {}, | ||
var exports$4 = {}, | ||
_dewExec$4 = false; | ||
@@ -49,4 +49,4 @@ | ||
function dew$8() { | ||
if (_dewExec$4) return exports$5; | ||
function dew$4() { | ||
if (_dewExec$4) return exports$4; | ||
_dewExec$4 = true; | ||
@@ -73,13 +73,13 @@ // Copyright Joyent, Inc. and other Node contributors. | ||
// USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
exports$5 = Stream; | ||
exports$4 = Stream; | ||
var EE = _events.EventEmitter; | ||
var inherits = dew(); | ||
var inherits = dew$8(); | ||
inherits(Stream, EE); | ||
Stream.Readable = dew$e(); | ||
Stream.Writable = dew$4(); | ||
Stream.Duplex = dew$5(); | ||
Stream.Transform = dew$6(); | ||
Stream.PassThrough = dew$7(); // Backwards-compat with node 0.4.x | ||
Stream.Readable = dew$7(); | ||
Stream.Writable = dew(); | ||
Stream.Duplex = dew$1(); | ||
Stream.Transform = dew$2(); | ||
Stream.PassThrough = dew$3(); // Backwards-compat with node 0.4.x | ||
@@ -166,9 +166,9 @@ Stream.Stream = Stream; // old-style streams. Note that the pipe method (the only relevant | ||
return exports$5; | ||
return exports$4; | ||
} | ||
const exports$6 = dew$8(); | ||
const Duplex = exports$6.Duplex, PassThrough = exports$6.PassThrough, Readable = exports$6.Readable, Stream = exports$6.Stream, Transform = exports$6.Transform, Writable = exports$6.Writable, super_ = exports$6.super_; | ||
const exports$5 = dew$4(); | ||
const Duplex = exports$5.Duplex, PassThrough = exports$5.PassThrough, Readable = exports$5.Readable, Stream = exports$5.Stream, Transform = exports$5.Transform, Writable = exports$5.Writable, super_ = exports$5.super_; | ||
export default exports$6; | ||
export default exports$5; | ||
export { Duplex, PassThrough, Readable, Stream, Transform, Writable, super_ }; |
import './buffer.js'; | ||
export { c as StringDecoder, b as default } from './chunk-ed65735f.js'; | ||
export { c as StringDecoder, b as default } from './string_decoder-a044d0fd.js'; |
@@ -1,4 +0,2 @@ | ||
import './chunk-2b1f9012.js'; | ||
export { c as _extend, d as callbackify, e as debuglog, f as deprecate, g as format, h as inherits, i as inspect, j as isArray, k as isBoolean, l as isBuffer, m as isDate, n as isError, o as isFunction, p as isNull, q as isNullOrUndefined, r as isNumber, s as isObject, t as isPrimitive, u as isRegExp, v as isString, w as isSymbol, x as isUndefined, y as log, z as promisify } from './util-c86b84df.js'; | ||
import './process.js'; | ||
import './chunk-2db5f7d7.js'; | ||
export { _extend, callbackify, debuglog, deprecate, format, inherits, inspect, isArray, isBoolean, isBuffer, isDate, isError, isFunction, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined, log, promisify } from './util.js'; |
import _process from './process.js'; | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
@@ -9,3 +9,3 @@ | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
@@ -213,8 +213,8 @@ var process = _process; | ||
attachTo.clearImmediate = clearImmediate; | ||
})(typeof self === "undefined" ? typeof _global === "undefined" ? exports$1 : _global : self); | ||
})(typeof self === "undefined" ? typeof _global === "undefined" ? exports : _global : self); | ||
return exports$1; | ||
return exports; | ||
} | ||
var exports$2 = {}, | ||
var exports$1 = {}, | ||
_dewExec$1 = false; | ||
@@ -225,3 +225,3 @@ | ||
function dew$1() { | ||
if (_dewExec$1) return exports$2; | ||
if (_dewExec$1) return exports$1; | ||
_dewExec$1 = true; | ||
@@ -231,11 +231,11 @@ var scope = typeof _global$1 !== "undefined" && _global$1 || typeof self !== "undefined" && self || window; | ||
exports$2.setTimeout = function () { | ||
exports$1.setTimeout = function () { | ||
return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout); | ||
}; | ||
exports$2.setInterval = function () { | ||
exports$1.setInterval = function () { | ||
return new Timeout(apply.call(setInterval, scope, arguments), clearInterval); | ||
}; | ||
exports$2.clearTimeout = exports$2.clearInterval = function (timeout) { | ||
exports$1.clearTimeout = exports$1.clearInterval = function (timeout) { | ||
if (timeout) { | ||
@@ -258,3 +258,3 @@ timeout.close(); | ||
exports$2.enroll = function (item, msecs) { | ||
exports$1.enroll = function (item, msecs) { | ||
clearTimeout(item._idleTimeoutId); | ||
@@ -264,3 +264,3 @@ item._idleTimeout = msecs; | ||
exports$2.unenroll = function (item) { | ||
exports$1.unenroll = function (item) { | ||
clearTimeout(item._idleTimeoutId); | ||
@@ -270,3 +270,3 @@ item._idleTimeout = -1; | ||
exports$2._unrefActive = exports$2.active = function (item) { | ||
exports$1._unrefActive = exports$1.active = function (item) { | ||
clearTimeout(item._idleTimeoutId); | ||
@@ -288,11 +288,11 @@ var msecs = item._idleTimeout; | ||
exports$2.setImmediate = typeof self !== "undefined" && self.setImmediate || typeof _global$1 !== "undefined" && _global$1.setImmediate || exports$2 && exports$2.setImmediate; | ||
exports$2.clearImmediate = typeof self !== "undefined" && self.clearImmediate || typeof _global$1 !== "undefined" && _global$1.clearImmediate || exports$2 && exports$2.clearImmediate; | ||
return exports$2; | ||
exports$1.setImmediate = typeof self !== "undefined" && self.setImmediate || typeof _global$1 !== "undefined" && _global$1.setImmediate || exports$1 && exports$1.setImmediate; | ||
exports$1.clearImmediate = typeof self !== "undefined" && self.clearImmediate || typeof _global$1 !== "undefined" && _global$1.clearImmediate || exports$1 && exports$1.clearImmediate; | ||
return exports$1; | ||
} | ||
const exports$3 = dew$1(); | ||
const _unrefActive = exports$3._unrefActive, active = exports$3.active, clearImmediate = exports$3.clearImmediate, clearInterval$1 = exports$3.clearInterval, clearTimeout$1 = exports$3.clearTimeout, enroll = exports$3.enroll, setImmediate$1 = exports$3.setImmediate, setInterval$1 = exports$3.setInterval, setTimeout$1 = exports$3.setTimeout, unenroll = exports$3.unenroll; | ||
const exports$2 = dew$1(); | ||
const _unrefActive = exports$2._unrefActive, active = exports$2.active, clearImmediate = exports$2.clearImmediate, clearInterval$1 = exports$2.clearInterval, clearTimeout$1 = exports$2.clearTimeout, enroll = exports$2.enroll, setImmediate = exports$2.setImmediate, setInterval$1 = exports$2.setInterval, setTimeout$1 = exports$2.setTimeout, unenroll = exports$2.unenroll; | ||
export default exports$3; | ||
export { _unrefActive, active, clearImmediate, clearInterval$1 as clearInterval, clearTimeout$1 as clearTimeout, enroll, setImmediate$1 as setImmediate, setInterval$1 as setInterval, setTimeout$1 as setTimeout, unenroll }; | ||
export default exports$2; | ||
export { _unrefActive, active, clearImmediate, clearInterval$1 as clearInterval, clearTimeout$1 as clearTimeout, enroll, setImmediate, setInterval$1 as setInterval, setTimeout$1 as setTimeout, unenroll }; |
@@ -1,8 +0,8 @@ | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
exports$1.isatty = function () { | ||
exports.isatty = function () { | ||
return false; | ||
@@ -15,3 +15,3 @@ }; | ||
exports$1.ReadStream = ReadStream; | ||
exports.ReadStream = ReadStream; | ||
@@ -22,10 +22,10 @@ function WriteStream() { | ||
exports$1.WriteStream = WriteStream; | ||
return exports$1; | ||
exports.WriteStream = WriteStream; | ||
return exports; | ||
} | ||
const exports$2 = dew(); | ||
const ReadStream = exports$2.ReadStream, WriteStream = exports$2.WriteStream, isatty = exports$2.isatty; | ||
const exports$1 = dew(); | ||
const ReadStream = exports$1.ReadStream, WriteStream = exports$1.WriteStream, isatty = exports$1.isatty; | ||
export default exports$2; | ||
export default exports$1; | ||
export { ReadStream, WriteStream, isatty }; |
@@ -0,580 +1,10 @@ | ||
import _punycode from './punycode.js'; | ||
import _querystring from './querystring.js'; | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
var module$1 = { | ||
exports: exports$1 | ||
}; | ||
var _global = typeof self !== "undefined" ? self : global; | ||
function dew() { | ||
if (_dewExec) return module$1.exports; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
(function (root) { | ||
/** Detect free variables */ | ||
var freeExports = typeof exports$1 == 'object' && exports$1 && !exports$1.nodeType && exports$1; | ||
var freeModule = module$1; | ||
var freeGlobal = typeof _global == 'object' && _global; | ||
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) { | ||
root = freeGlobal; | ||
} | ||
/** | ||
* The `punycode` object. | ||
* @name punycode | ||
* @type Object | ||
*/ | ||
var punycode, | ||
/** Highest positive signed 32-bit float value */ | ||
maxInt = 2147483647, | ||
// aka. 0x7FFFFFFF or 2^31-1 | ||
/** Bootstring parameters */ | ||
base = 36, | ||
tMin = 1, | ||
tMax = 26, | ||
skew = 38, | ||
damp = 700, | ||
initialBias = 72, | ||
initialN = 128, | ||
// 0x80 | ||
delimiter = '-', | ||
// '\x2D' | ||
/** Regular expressions */ | ||
regexPunycode = /^xn--/, | ||
regexNonASCII = /[^\x20-\x7E]/, | ||
// unprintable ASCII chars + non-ASCII chars | ||
regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, | ||
// RFC 3490 separators | ||
/** Error messages */ | ||
errors = { | ||
'overflow': 'Overflow: input needs wider integers to process', | ||
'not-basic': 'Illegal input >= 0x80 (not a basic code point)', | ||
'invalid-input': 'Invalid input' | ||
}, | ||
/** Convenience shortcuts */ | ||
baseMinusTMin = base - tMin, | ||
floor = Math.floor, | ||
stringFromCharCode = String.fromCharCode, | ||
/** Temporary variable */ | ||
key; | ||
/*--------------------------------------------------------------------------*/ | ||
/** | ||
* A generic error utility function. | ||
* @private | ||
* @param {String} type The error type. | ||
* @returns {Error} Throws a `RangeError` with the applicable error message. | ||
*/ | ||
function error(type) { | ||
throw RangeError(errors[type]); | ||
} | ||
/** | ||
* A generic `Array#map` utility function. | ||
* @private | ||
* @param {Array} array The array to iterate over. | ||
* @param {Function} callback The function that gets called for every array | ||
* item. | ||
* @returns {Array} A new array of values returned by the callback function. | ||
*/ | ||
function map(array, fn) { | ||
var length = array.length; | ||
var result = []; | ||
while (length--) { | ||
result[length] = fn(array[length]); | ||
} | ||
return result; | ||
} | ||
/** | ||
* A simple `Array#map`-like wrapper to work with domain name strings or email | ||
* addresses. | ||
* @private | ||
* @param {String} domain The domain name or email address. | ||
* @param {Function} callback The function that gets called for every | ||
* character. | ||
* @returns {Array} A new string of characters returned by the callback | ||
* function. | ||
*/ | ||
function mapDomain(string, fn) { | ||
var parts = string.split('@'); | ||
var result = ''; | ||
if (parts.length > 1) { | ||
// In email addresses, only the domain name should be punycoded. Leave | ||
// the local part (i.e. everything up to `@`) intact. | ||
result = parts[0] + '@'; | ||
string = parts[1]; | ||
} // Avoid `split(regex)` for IE8 compatibility. See #17. | ||
string = string.replace(regexSeparators, '\x2E'); | ||
var labels = string.split('.'); | ||
var encoded = map(labels, fn).join('.'); | ||
return result + encoded; | ||
} | ||
/** | ||
* Creates an array containing the numeric code points of each Unicode | ||
* character in the string. While JavaScript uses UCS-2 internally, | ||
* this function will convert a pair of surrogate halves (each of which | ||
* UCS-2 exposes as separate characters) into a single code point, | ||
* matching UTF-16. | ||
* @see `punycode.ucs2.encode` | ||
* @see <https://mathiasbynens.be/notes/javascript-encoding> | ||
* @memberOf punycode.ucs2 | ||
* @name decode | ||
* @param {String} string The Unicode input string (UCS-2). | ||
* @returns {Array} The new array of code points. | ||
*/ | ||
function ucs2decode(string) { | ||
var output = [], | ||
counter = 0, | ||
length = string.length, | ||
value, | ||
extra; | ||
while (counter < length) { | ||
value = string.charCodeAt(counter++); | ||
if (value >= 0xD800 && value <= 0xDBFF && counter < length) { | ||
// high surrogate, and there is a next character | ||
extra = string.charCodeAt(counter++); | ||
if ((extra & 0xFC00) == 0xDC00) { | ||
// low surrogate | ||
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); | ||
} else { | ||
// unmatched surrogate; only append this code unit, in case the next | ||
// code unit is the high surrogate of a surrogate pair | ||
output.push(value); | ||
counter--; | ||
} | ||
} else { | ||
output.push(value); | ||
} | ||
} | ||
return output; | ||
} | ||
/** | ||
* Creates a string based on an array of numeric code points. | ||
* @see `punycode.ucs2.decode` | ||
* @memberOf punycode.ucs2 | ||
* @name encode | ||
* @param {Array} codePoints The array of numeric code points. | ||
* @returns {String} The new Unicode string (UCS-2). | ||
*/ | ||
function ucs2encode(array) { | ||
return map(array, function (value) { | ||
var output = ''; | ||
if (value > 0xFFFF) { | ||
value -= 0x10000; | ||
output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); | ||
value = 0xDC00 | value & 0x3FF; | ||
} | ||
output += stringFromCharCode(value); | ||
return output; | ||
}).join(''); | ||
} | ||
/** | ||
* Converts a basic code point into a digit/integer. | ||
* @see `digitToBasic()` | ||
* @private | ||
* @param {Number} codePoint The basic numeric code point value. | ||
* @returns {Number} The numeric value of a basic code point (for use in | ||
* representing integers) in the range `0` to `base - 1`, or `base` if | ||
* the code point does not represent a value. | ||
*/ | ||
function basicToDigit(codePoint) { | ||
if (codePoint - 48 < 10) { | ||
return codePoint - 22; | ||
} | ||
if (codePoint - 65 < 26) { | ||
return codePoint - 65; | ||
} | ||
if (codePoint - 97 < 26) { | ||
return codePoint - 97; | ||
} | ||
return base; | ||
} | ||
/** | ||
* Converts a digit/integer into a basic code point. | ||
* @see `basicToDigit()` | ||
* @private | ||
* @param {Number} digit The numeric value of a basic code point. | ||
* @returns {Number} The basic code point whose value (when used for | ||
* representing integers) is `digit`, which needs to be in the range | ||
* `0` to `base - 1`. If `flag` is non-zero, the uppercase form is | ||
* used; else, the lowercase form is used. The behavior is undefined | ||
* if `flag` is non-zero and `digit` has no uppercase form. | ||
*/ | ||
function digitToBasic(digit, flag) { | ||
// 0..25 map to ASCII a..z or A..Z | ||
// 26..35 map to ASCII 0..9 | ||
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); | ||
} | ||
/** | ||
* Bias adaptation function as per section 3.4 of RFC 3492. | ||
* http://tools.ietf.org/html/rfc3492#section-3.4 | ||
* @private | ||
*/ | ||
function adapt(delta, numPoints, firstTime) { | ||
var k = 0; | ||
delta = firstTime ? floor(delta / damp) : delta >> 1; | ||
delta += floor(delta / numPoints); | ||
for (; | ||
/* no initialization */ | ||
delta > baseMinusTMin * tMax >> 1; k += base) { | ||
delta = floor(delta / baseMinusTMin); | ||
} | ||
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); | ||
} | ||
/** | ||
* Converts a Punycode string of ASCII-only symbols to a string of Unicode | ||
* symbols. | ||
* @memberOf punycode | ||
* @param {String} input The Punycode string of ASCII-only symbols. | ||
* @returns {String} The resulting string of Unicode symbols. | ||
*/ | ||
function decode(input) { | ||
// Don't use UCS-2 | ||
var output = [], | ||
inputLength = input.length, | ||
out, | ||
i = 0, | ||
n = initialN, | ||
bias = initialBias, | ||
basic, | ||
j, | ||
index, | ||
oldi, | ||
w, | ||
k, | ||
digit, | ||
t, | ||
/** Cached calculation results */ | ||
baseMinusT; // Handle the basic code points: let `basic` be the number of input code | ||
// points before the last delimiter, or `0` if there is none, then copy | ||
// the first basic code points to the output. | ||
basic = input.lastIndexOf(delimiter); | ||
if (basic < 0) { | ||
basic = 0; | ||
} | ||
for (j = 0; j < basic; ++j) { | ||
// if it's not a basic code point | ||
if (input.charCodeAt(j) >= 0x80) { | ||
error('not-basic'); | ||
} | ||
output.push(input.charCodeAt(j)); | ||
} // Main decoding loop: start just after the last delimiter if any basic code | ||
// points were copied; start at the beginning otherwise. | ||
for (index = basic > 0 ? basic + 1 : 0; index < inputLength;) | ||
/* no final expression */ | ||
{ | ||
// `index` is the index of the next character to be consumed. | ||
// Decode a generalized variable-length integer into `delta`, | ||
// which gets added to `i`. The overflow checking is easier | ||
// if we increase `i` as we go, then subtract off its starting | ||
// value at the end to obtain `delta`. | ||
for (oldi = i, w = 1, k = base;; | ||
/* no condition */ | ||
k += base) { | ||
if (index >= inputLength) { | ||
error('invalid-input'); | ||
} | ||
digit = basicToDigit(input.charCodeAt(index++)); | ||
if (digit >= base || digit > floor((maxInt - i) / w)) { | ||
error('overflow'); | ||
} | ||
i += digit * w; | ||
t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; | ||
if (digit < t) { | ||
break; | ||
} | ||
baseMinusT = base - t; | ||
if (w > floor(maxInt / baseMinusT)) { | ||
error('overflow'); | ||
} | ||
w *= baseMinusT; | ||
} | ||
out = output.length + 1; | ||
bias = adapt(i - oldi, out, oldi == 0); // `i` was supposed to wrap around from `out` to `0`, | ||
// incrementing `n` each time, so we'll fix that now: | ||
if (floor(i / out) > maxInt - n) { | ||
error('overflow'); | ||
} | ||
n += floor(i / out); | ||
i %= out; // Insert `n` at position `i` of the output | ||
output.splice(i++, 0, n); | ||
} | ||
return ucs2encode(output); | ||
} | ||
/** | ||
* Converts a string of Unicode symbols (e.g. a domain name label) to a | ||
* Punycode string of ASCII-only symbols. | ||
* @memberOf punycode | ||
* @param {String} input The string of Unicode symbols. | ||
* @returns {String} The resulting Punycode string of ASCII-only symbols. | ||
*/ | ||
function encode(input) { | ||
var n, | ||
delta, | ||
handledCPCount, | ||
basicLength, | ||
bias, | ||
j, | ||
m, | ||
q, | ||
k, | ||
t, | ||
currentValue, | ||
output = [], | ||
/** `inputLength` will hold the number of code points in `input`. */ | ||
inputLength, | ||
/** Cached calculation results */ | ||
handledCPCountPlusOne, | ||
baseMinusT, | ||
qMinusT; // Convert the input in UCS-2 to Unicode | ||
input = ucs2decode(input); // Cache the length | ||
inputLength = input.length; // Initialize the state | ||
n = initialN; | ||
delta = 0; | ||
bias = initialBias; // Handle the basic code points | ||
for (j = 0; j < inputLength; ++j) { | ||
currentValue = input[j]; | ||
if (currentValue < 0x80) { | ||
output.push(stringFromCharCode(currentValue)); | ||
} | ||
} | ||
handledCPCount = basicLength = output.length; // `handledCPCount` is the number of code points that have been handled; | ||
// `basicLength` is the number of basic code points. | ||
// Finish the basic string - if it is not empty - with a delimiter | ||
if (basicLength) { | ||
output.push(delimiter); | ||
} // Main encoding loop: | ||
while (handledCPCount < inputLength) { | ||
// All non-basic code points < n have been handled already. Find the next | ||
// larger one: | ||
for (m = maxInt, j = 0; j < inputLength; ++j) { | ||
currentValue = input[j]; | ||
if (currentValue >= n && currentValue < m) { | ||
m = currentValue; | ||
} | ||
} // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, | ||
// but guard against overflow | ||
handledCPCountPlusOne = handledCPCount + 1; | ||
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { | ||
error('overflow'); | ||
} | ||
delta += (m - n) * handledCPCountPlusOne; | ||
n = m; | ||
for (j = 0; j < inputLength; ++j) { | ||
currentValue = input[j]; | ||
if (currentValue < n && ++delta > maxInt) { | ||
error('overflow'); | ||
} | ||
if (currentValue == n) { | ||
// Represent delta as a generalized variable-length integer | ||
for (q = delta, k = base;; | ||
/* no condition */ | ||
k += base) { | ||
t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; | ||
if (q < t) { | ||
break; | ||
} | ||
qMinusT = q - t; | ||
baseMinusT = base - t; | ||
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))); | ||
q = floor(qMinusT / baseMinusT); | ||
} | ||
output.push(stringFromCharCode(digitToBasic(q, 0))); | ||
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); | ||
delta = 0; | ||
++handledCPCount; | ||
} | ||
} | ||
++delta; | ||
++n; | ||
} | ||
return output.join(''); | ||
} | ||
/** | ||
* Converts a Punycode string representing a domain name or an email address | ||
* to Unicode. Only the Punycoded parts of the input will be converted, i.e. | ||
* it doesn't matter if you call it on a string that has already been | ||
* converted to Unicode. | ||
* @memberOf punycode | ||
* @param {String} input The Punycoded domain name or email address to | ||
* convert to Unicode. | ||
* @returns {String} The Unicode representation of the given Punycode | ||
* string. | ||
*/ | ||
function toUnicode(input) { | ||
return mapDomain(input, function (string) { | ||
return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string; | ||
}); | ||
} | ||
/** | ||
* Converts a Unicode string representing a domain name or an email address to | ||
* Punycode. Only the non-ASCII parts of the domain name will be converted, | ||
* i.e. it doesn't matter if you call it with a domain that's already in | ||
* ASCII. | ||
* @memberOf punycode | ||
* @param {String} input The domain name or email address to convert, as a | ||
* Unicode string. | ||
* @returns {String} The Punycode representation of the given domain name or | ||
* email address. | ||
*/ | ||
function toASCII(input) { | ||
return mapDomain(input, function (string) { | ||
return regexNonASCII.test(string) ? 'xn--' + encode(string) : string; | ||
}); | ||
} | ||
/*--------------------------------------------------------------------------*/ | ||
/** Define the public API */ | ||
punycode = { | ||
/** | ||
* A string representing the current Punycode.js version number. | ||
* @memberOf punycode | ||
* @type String | ||
*/ | ||
'version': '1.3.2', | ||
/** | ||
* An object of methods to convert from JavaScript's internal character | ||
* representation (UCS-2) to Unicode code points, and back. | ||
* @see <https://mathiasbynens.be/notes/javascript-encoding> | ||
* @memberOf punycode | ||
* @type Object | ||
*/ | ||
'ucs2': { | ||
'decode': ucs2decode, | ||
'encode': ucs2encode | ||
}, | ||
'decode': decode, | ||
'encode': encode, | ||
'toASCII': toASCII, | ||
'toUnicode': toUnicode | ||
}; | ||
/** Expose `punycode` */ | ||
// Some AMD build optimizers, like r.js, check for specific condition patterns | ||
// like the following: | ||
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { | ||
define('punycode', function () { | ||
return punycode; | ||
}); | ||
} else if (freeExports && freeModule) { | ||
if (module$1.exports == freeExports) { | ||
// in Node.js or RingoJS v0.8.0+ | ||
freeModule.exports = punycode; | ||
} else { | ||
// in Narwhal or RingoJS v0.7.0- | ||
for (key in punycode) { | ||
punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]); | ||
} | ||
} | ||
} else { | ||
// in Rhino or a web browser | ||
root.punycode = punycode; | ||
} | ||
})(exports$1); | ||
return module$1.exports; | ||
} | ||
var _punycode = dew(); | ||
var exports$2 = {}, | ||
_dewExec$1 = false; | ||
function dew$1() { | ||
if (_dewExec$1) return exports$2; | ||
_dewExec$1 = true; | ||
exports$2 = { | ||
exports = { | ||
isString: function (arg) { | ||
@@ -593,19 +23,19 @@ return typeof arg === 'string'; | ||
}; | ||
return exports$2; | ||
return exports; | ||
} | ||
var exports$3 = {}, | ||
_dewExec$2 = false; | ||
function dew$2() { | ||
if (_dewExec$2) return exports$3; | ||
_dewExec$2 = true; | ||
var exports$1 = {}, | ||
_dewExec$1 = false; | ||
function dew$1() { | ||
if (_dewExec$1) return exports$1; | ||
_dewExec$1 = true; | ||
var punycode = _punycode; | ||
var util = dew$1(); | ||
var util = dew(); | ||
exports$3.parse = urlParse; | ||
exports$3.resolve = urlResolve; | ||
exports$3.resolveObject = urlResolveObject; | ||
exports$3.format = urlFormat; | ||
exports$3.Url = Url; | ||
exports$1.parse = urlParse; | ||
exports$1.resolve = urlResolve; | ||
exports$1.resolveObject = urlResolveObject; | ||
exports$1.format = urlFormat; | ||
exports$1.Url = Url; | ||
@@ -1308,9 +738,9 @@ function Url() { | ||
return exports$3; | ||
return exports$1; | ||
} | ||
const exports$4 = dew$2(); | ||
const Url = exports$4.Url, format = exports$4.format, parse = exports$4.parse, resolve = exports$4.resolve, resolveObject = exports$4.resolveObject; | ||
const exports$2 = dew$1(); | ||
const Url = exports$2.Url, format = exports$2.format, parse = exports$2.parse, resolve = exports$2.resolve, resolveObject = exports$2.resolveObject; | ||
export default exports$4; | ||
export default exports$2; | ||
export { Url, format, parse, resolve, resolveObject }; |
@@ -1,739 +0,2 @@ | ||
import { a as dew } from './chunk-2b1f9012.js'; | ||
import _process from './process.js'; | ||
import { a as dew$1 } from './chunk-2db5f7d7.js'; | ||
var exports$1 = {}, | ||
_dewExec = false; | ||
var _global = typeof self !== "undefined" ? self : global; | ||
function dew$2() { | ||
if (_dewExec) return exports$1; | ||
_dewExec = true; | ||
var process = _process; | ||
// Copyright Joyent, Inc. and other Node contributors. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a | ||
// copy of this software and associated documentation files (the | ||
// "Software"), to deal in the Software without restriction, including | ||
// without limitation the rights to use, copy, modify, merge, publish, | ||
// distribute, sublicense, and/or sell copies of the Software, and to permit | ||
// persons to whom the Software is furnished to do so, subject to the | ||
// following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included | ||
// in all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN | ||
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | ||
// USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors(obj) { | ||
var keys = Object.keys(obj); | ||
var descriptors = {}; | ||
for (var i = 0; i < keys.length; i++) { | ||
descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]); | ||
} | ||
return descriptors; | ||
}; | ||
var formatRegExp = /%[sdj%]/g; | ||
exports$1.format = function (f) { | ||
if (!isString(f)) { | ||
var objects = []; | ||
for (var i = 0; i < arguments.length; i++) { | ||
objects.push(inspect(arguments[i])); | ||
} | ||
return objects.join(' '); | ||
} | ||
var i = 1; | ||
var args = arguments; | ||
var len = args.length; | ||
var str = String(f).replace(formatRegExp, function (x) { | ||
if (x === '%%') return '%'; | ||
if (i >= len) return x; | ||
switch (x) { | ||
case '%s': | ||
return String(args[i++]); | ||
case '%d': | ||
return Number(args[i++]); | ||
case '%j': | ||
try { | ||
return JSON.stringify(args[i++]); | ||
} catch (_) { | ||
return '[Circular]'; | ||
} | ||
default: | ||
return x; | ||
} | ||
}); | ||
for (var x = args[i]; i < len; x = args[++i]) { | ||
if (isNull(x) || !isObject(x)) { | ||
str += ' ' + x; | ||
} else { | ||
str += ' ' + inspect(x); | ||
} | ||
} | ||
return str; | ||
}; // Mark that a method should not be used. | ||
// Returns a modified function which warns once by default. | ||
// If --no-deprecation is set, then it is a no-op. | ||
exports$1.deprecate = function (fn, msg) { | ||
// Allow for deprecating things in the process of starting up. | ||
if (isUndefined(_global.process)) { | ||
return function () { | ||
return exports$1.deprecate(fn, msg).apply(this || _global, arguments); | ||
}; | ||
} | ||
if (process.noDeprecation === true) { | ||
return fn; | ||
} | ||
var warned = false; | ||
function deprecated() { | ||
if (!warned) { | ||
if (process.throwDeprecation) { | ||
throw new Error(msg); | ||
} else if (process.traceDeprecation) { | ||
console.trace(msg); | ||
} else { | ||
console.error(msg); | ||
} | ||
warned = true; | ||
} | ||
return fn.apply(this || _global, arguments); | ||
} | ||
return deprecated; | ||
}; | ||
var debugs = {}; | ||
var debugEnviron; | ||
exports$1.debuglog = function (set) { | ||
if (isUndefined(debugEnviron)) debugEnviron = process.env.NODE_DEBUG || ''; | ||
set = set.toUpperCase(); | ||
if (!debugs[set]) { | ||
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { | ||
var pid = process.pid; | ||
debugs[set] = function () { | ||
var msg = exports$1.format.apply(exports$1, arguments); | ||
console.error('%s %d: %s', set, pid, msg); | ||
}; | ||
} else { | ||
debugs[set] = function () {}; | ||
} | ||
} | ||
return debugs[set]; | ||
}; | ||
/** | ||
* Echos the value of a value. Trys to print the value out | ||
* in the best way possible given the different types. | ||
* | ||
* @param {Object} obj The object to print out. | ||
* @param {Object} opts Optional options object that alters the output. | ||
*/ | ||
/* legacy: obj, showHidden, depth, colors*/ | ||
function inspect(obj, opts) { | ||
// default options | ||
var ctx = { | ||
seen: [], | ||
stylize: stylizeNoColor | ||
}; // legacy... | ||
if (arguments.length >= 3) ctx.depth = arguments[2]; | ||
if (arguments.length >= 4) ctx.colors = arguments[3]; | ||
if (isBoolean(opts)) { | ||
// legacy... | ||
ctx.showHidden = opts; | ||
} else if (opts) { | ||
// got an "options" object | ||
exports$1._extend(ctx, opts); | ||
} // set default options | ||
if (isUndefined(ctx.showHidden)) ctx.showHidden = false; | ||
if (isUndefined(ctx.depth)) ctx.depth = 2; | ||
if (isUndefined(ctx.colors)) ctx.colors = false; | ||
if (isUndefined(ctx.customInspect)) ctx.customInspect = true; | ||
if (ctx.colors) ctx.stylize = stylizeWithColor; | ||
return formatValue(ctx, obj, ctx.depth); | ||
} | ||
exports$1.inspect = inspect; // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics | ||
inspect.colors = { | ||
'bold': [1, 22], | ||
'italic': [3, 23], | ||
'underline': [4, 24], | ||
'inverse': [7, 27], | ||
'white': [37, 39], | ||
'grey': [90, 39], | ||
'black': [30, 39], | ||
'blue': [34, 39], | ||
'cyan': [36, 39], | ||
'green': [32, 39], | ||
'magenta': [35, 39], | ||
'red': [31, 39], | ||
'yellow': [33, 39] | ||
}; // Don't use 'blue' not visible on cmd.exe | ||
inspect.styles = { | ||
'special': 'cyan', | ||
'number': 'yellow', | ||
'boolean': 'yellow', | ||
'undefined': 'grey', | ||
'null': 'bold', | ||
'string': 'green', | ||
'date': 'magenta', | ||
// "name": intentionally not styling | ||
'regexp': 'red' | ||
}; | ||
function stylizeWithColor(str, styleType) { | ||
var style = inspect.styles[styleType]; | ||
if (style) { | ||
return '\u001b[' + inspect.colors[style][0] + 'm' + str + '\u001b[' + inspect.colors[style][1] + 'm'; | ||
} else { | ||
return str; | ||
} | ||
} | ||
function stylizeNoColor(str, styleType) { | ||
return str; | ||
} | ||
function arrayToHash(array) { | ||
var hash = {}; | ||
array.forEach(function (val, idx) { | ||
hash[val] = true; | ||
}); | ||
return hash; | ||
} | ||
function formatValue(ctx, value, recurseTimes) { | ||
// Provide a hook for user-specified inspect functions. | ||
// Check that value is an object with an inspect function on it | ||
if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special | ||
value.inspect !== exports$1.inspect && // Also filter out any prototype objects using the circular check. | ||
!(value.constructor && value.constructor.prototype === value)) { | ||
var ret = value.inspect(recurseTimes, ctx); | ||
if (!isString(ret)) { | ||
ret = formatValue(ctx, ret, recurseTimes); | ||
} | ||
return ret; | ||
} // Primitive types cannot have properties | ||
var primitive = formatPrimitive(ctx, value); | ||
if (primitive) { | ||
return primitive; | ||
} // Look up the keys of the object. | ||
var keys = Object.keys(value); | ||
var visibleKeys = arrayToHash(keys); | ||
if (ctx.showHidden) { | ||
keys = Object.getOwnPropertyNames(value); | ||
} // IE doesn't make error fields non-enumerable | ||
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx | ||
if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { | ||
return formatError(value); | ||
} // Some type of object without properties can be shortcutted. | ||
if (keys.length === 0) { | ||
if (isFunction(value)) { | ||
var name = value.name ? ': ' + value.name : ''; | ||
return ctx.stylize('[Function' + name + ']', 'special'); | ||
} | ||
if (isRegExp(value)) { | ||
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); | ||
} | ||
if (isDate(value)) { | ||
return ctx.stylize(Date.prototype.toString.call(value), 'date'); | ||
} | ||
if (isError(value)) { | ||
return formatError(value); | ||
} | ||
} | ||
var base = '', | ||
array = false, | ||
braces = ['{', '}']; // Make Array say that they are Array | ||
if (isArray(value)) { | ||
array = true; | ||
braces = ['[', ']']; | ||
} // Make functions say that they are functions | ||
if (isFunction(value)) { | ||
var n = value.name ? ': ' + value.name : ''; | ||
base = ' [Function' + n + ']'; | ||
} // Make RegExps say that they are RegExps | ||
if (isRegExp(value)) { | ||
base = ' ' + RegExp.prototype.toString.call(value); | ||
} // Make dates with properties first say the date | ||
if (isDate(value)) { | ||
base = ' ' + Date.prototype.toUTCString.call(value); | ||
} // Make error with message first say the error | ||
if (isError(value)) { | ||
base = ' ' + formatError(value); | ||
} | ||
if (keys.length === 0 && (!array || value.length == 0)) { | ||
return braces[0] + base + braces[1]; | ||
} | ||
if (recurseTimes < 0) { | ||
if (isRegExp(value)) { | ||
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); | ||
} else { | ||
return ctx.stylize('[Object]', 'special'); | ||
} | ||
} | ||
ctx.seen.push(value); | ||
var output; | ||
if (array) { | ||
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); | ||
} else { | ||
output = keys.map(function (key) { | ||
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); | ||
}); | ||
} | ||
ctx.seen.pop(); | ||
return reduceToSingleString(output, base, braces); | ||
} | ||
function formatPrimitive(ctx, value) { | ||
if (isUndefined(value)) return ctx.stylize('undefined', 'undefined'); | ||
if (isString(value)) { | ||
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + '\''; | ||
return ctx.stylize(simple, 'string'); | ||
} | ||
if (isNumber(value)) return ctx.stylize('' + value, 'number'); | ||
if (isBoolean(value)) return ctx.stylize('' + value, 'boolean'); // For some reason typeof null is "object", so special case here. | ||
if (isNull(value)) return ctx.stylize('null', 'null'); | ||
} | ||
function formatError(value) { | ||
return '[' + Error.prototype.toString.call(value) + ']'; | ||
} | ||
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { | ||
var output = []; | ||
for (var i = 0, l = value.length; i < l; ++i) { | ||
if (hasOwnProperty(value, String(i))) { | ||
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true)); | ||
} else { | ||
output.push(''); | ||
} | ||
} | ||
keys.forEach(function (key) { | ||
if (!key.match(/^\d+$/)) { | ||
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true)); | ||
} | ||
}); | ||
return output; | ||
} | ||
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { | ||
var name, str, desc; | ||
desc = Object.getOwnPropertyDescriptor(value, key) || { | ||
value: value[key] | ||
}; | ||
if (desc.get) { | ||
if (desc.set) { | ||
str = ctx.stylize('[Getter/Setter]', 'special'); | ||
} else { | ||
str = ctx.stylize('[Getter]', 'special'); | ||
} | ||
} else { | ||
if (desc.set) { | ||
str = ctx.stylize('[Setter]', 'special'); | ||
} | ||
} | ||
if (!hasOwnProperty(visibleKeys, key)) { | ||
name = '[' + key + ']'; | ||
} | ||
if (!str) { | ||
if (ctx.seen.indexOf(desc.value) < 0) { | ||
if (isNull(recurseTimes)) { | ||
str = formatValue(ctx, desc.value, null); | ||
} else { | ||
str = formatValue(ctx, desc.value, recurseTimes - 1); | ||
} | ||
if (str.indexOf('\n') > -1) { | ||
if (array) { | ||
str = str.split('\n').map(function (line) { | ||
return ' ' + line; | ||
}).join('\n').substr(2); | ||
} else { | ||
str = '\n' + str.split('\n').map(function (line) { | ||
return ' ' + line; | ||
}).join('\n'); | ||
} | ||
} | ||
} else { | ||
str = ctx.stylize('[Circular]', 'special'); | ||
} | ||
} | ||
if (isUndefined(name)) { | ||
if (array && key.match(/^\d+$/)) { | ||
return str; | ||
} | ||
name = JSON.stringify('' + key); | ||
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { | ||
name = name.substr(1, name.length - 2); | ||
name = ctx.stylize(name, 'name'); | ||
} else { | ||
name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); | ||
name = ctx.stylize(name, 'string'); | ||
} | ||
} | ||
return name + ': ' + str; | ||
} | ||
function reduceToSingleString(output, base, braces) { | ||
var length = output.reduce(function (prev, cur) { | ||
if (cur.indexOf('\n') >= 0) ; | ||
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; | ||
}, 0); | ||
if (length > 60) { | ||
return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1]; | ||
} | ||
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; | ||
} // NOTE: These type checking functions intentionally don't use `instanceof` | ||
// because it is fragile and can be easily faked with `Object.create()`. | ||
function isArray(ar) { | ||
return Array.isArray(ar); | ||
} | ||
exports$1.isArray = isArray; | ||
function isBoolean(arg) { | ||
return typeof arg === 'boolean'; | ||
} | ||
exports$1.isBoolean = isBoolean; | ||
function isNull(arg) { | ||
return arg === null; | ||
} | ||
exports$1.isNull = isNull; | ||
function isNullOrUndefined(arg) { | ||
return arg == null; | ||
} | ||
exports$1.isNullOrUndefined = isNullOrUndefined; | ||
function isNumber(arg) { | ||
return typeof arg === 'number'; | ||
} | ||
exports$1.isNumber = isNumber; | ||
function isString(arg) { | ||
return typeof arg === 'string'; | ||
} | ||
exports$1.isString = isString; | ||
function isSymbol(arg) { | ||
return typeof arg === 'symbol'; | ||
} | ||
exports$1.isSymbol = isSymbol; | ||
function isUndefined(arg) { | ||
return arg === void 0; | ||
} | ||
exports$1.isUndefined = isUndefined; | ||
function isRegExp(re) { | ||
return isObject(re) && objectToString(re) === '[object RegExp]'; | ||
} | ||
exports$1.isRegExp = isRegExp; | ||
function isObject(arg) { | ||
return typeof arg === 'object' && arg !== null; | ||
} | ||
exports$1.isObject = isObject; | ||
function isDate(d) { | ||
return isObject(d) && objectToString(d) === '[object Date]'; | ||
} | ||
exports$1.isDate = isDate; | ||
function isError(e) { | ||
return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error); | ||
} | ||
exports$1.isError = isError; | ||
function isFunction(arg) { | ||
return typeof arg === 'function'; | ||
} | ||
exports$1.isFunction = isFunction; | ||
function isPrimitive(arg) { | ||
return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol | ||
typeof arg === 'undefined'; | ||
} | ||
exports$1.isPrimitive = isPrimitive; | ||
exports$1.isBuffer = dew(); | ||
function objectToString(o) { | ||
return Object.prototype.toString.call(o); | ||
} | ||
function pad(n) { | ||
return n < 10 ? '0' + n.toString(10) : n.toString(10); | ||
} | ||
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; // 26 Feb 16:19:34 | ||
function timestamp() { | ||
var d = new Date(); | ||
var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':'); | ||
return [d.getDate(), months[d.getMonth()], time].join(' '); | ||
} // log is just a thin wrapper to console.log that prepends a timestamp | ||
exports$1.log = function () { | ||
console.log('%s - %s', timestamp(), exports$1.format.apply(exports$1, arguments)); | ||
}; | ||
/** | ||
* Inherit the prototype methods from one constructor into another. | ||
* | ||
* The Function.prototype.inherits from lang.js rewritten as a standalone | ||
* function (not on Function.prototype). NOTE: If this file is to be loaded | ||
* during bootstrapping this function needs to be rewritten using some native | ||
* functions as prototype setup using normal JavaScript does not work as | ||
* expected during bootstrapping (see mirror.js in r114903). | ||
* | ||
* @param {function} ctor Constructor function which needs to inherit the | ||
* prototype. | ||
* @param {function} superCtor Constructor function to inherit prototype from. | ||
*/ | ||
exports$1.inherits = dew$1(); | ||
exports$1._extend = function (origin, add) { | ||
// Don't do anything if add isn't an object | ||
if (!add || !isObject(add)) return origin; | ||
var keys = Object.keys(add); | ||
var i = keys.length; | ||
while (i--) { | ||
origin[keys[i]] = add[keys[i]]; | ||
} | ||
return origin; | ||
}; | ||
function hasOwnProperty(obj, prop) { | ||
return Object.prototype.hasOwnProperty.call(obj, prop); | ||
} | ||
var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined; | ||
exports$1.promisify = function promisify(original) { | ||
if (typeof original !== 'function') throw new TypeError('The "original" argument must be of type Function'); | ||
if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) { | ||
var fn = original[kCustomPromisifiedSymbol]; | ||
if (typeof fn !== 'function') { | ||
throw new TypeError('The "util.promisify.custom" argument must be of type Function'); | ||
} | ||
Object.defineProperty(fn, kCustomPromisifiedSymbol, { | ||
value: fn, | ||
enumerable: false, | ||
writable: false, | ||
configurable: true | ||
}); | ||
return fn; | ||
} | ||
function fn() { | ||
var promiseResolve, promiseReject; | ||
var promise = new Promise(function (resolve, reject) { | ||
promiseResolve = resolve; | ||
promiseReject = reject; | ||
}); | ||
var args = []; | ||
for (var i = 0; i < arguments.length; i++) { | ||
args.push(arguments[i]); | ||
} | ||
args.push(function (err, value) { | ||
if (err) { | ||
promiseReject(err); | ||
} else { | ||
promiseResolve(value); | ||
} | ||
}); | ||
try { | ||
original.apply(this || _global, args); | ||
} catch (err) { | ||
promiseReject(err); | ||
} | ||
return promise; | ||
} | ||
Object.setPrototypeOf(fn, Object.getPrototypeOf(original)); | ||
if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, { | ||
value: fn, | ||
enumerable: false, | ||
writable: false, | ||
configurable: true | ||
}); | ||
return Object.defineProperties(fn, getOwnPropertyDescriptors(original)); | ||
}; | ||
exports$1.promisify.custom = kCustomPromisifiedSymbol; | ||
function callbackifyOnRejected(reason, cb) { | ||
// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M). | ||
// Because `null` is a special error value in callbacks which means "no error | ||
// occurred", we error-wrap so the callback consumer can distinguish between | ||
// "the promise rejected with null" or "the promise fulfilled with undefined". | ||
if (!reason) { | ||
var newReason = new Error('Promise was rejected with a falsy value'); | ||
newReason.reason = reason; | ||
reason = newReason; | ||
} | ||
return cb(reason); | ||
} | ||
function callbackify(original) { | ||
if (typeof original !== 'function') { | ||
throw new TypeError('The "original" argument must be of type Function'); | ||
} // We DO NOT return the promise as it gives the user a false sense that | ||
// the promise is actually somehow related to the callback's execution | ||
// and that the callback throwing will reject the promise. | ||
function callbackified() { | ||
var args = []; | ||
for (var i = 0; i < arguments.length; i++) { | ||
args.push(arguments[i]); | ||
} | ||
var maybeCb = args.pop(); | ||
if (typeof maybeCb !== 'function') { | ||
throw new TypeError('The last argument must be of type Function'); | ||
} | ||
var self = this || _global; | ||
var cb = function () { | ||
return maybeCb.apply(self, arguments); | ||
}; // In true node style we process the callback on `nextTick` with all the | ||
// implications (stack, `uncaughtException`, `async_hooks`) | ||
original.apply(this || _global, args).then(function (ret) { | ||
process.nextTick(cb, null, ret); | ||
}, function (rej) { | ||
process.nextTick(callbackifyOnRejected, rej, cb); | ||
}); | ||
} | ||
Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original)); | ||
Object.defineProperties(callbackified, getOwnPropertyDescriptors(original)); | ||
return callbackified; | ||
} | ||
exports$1.callbackify = callbackify; | ||
return exports$1; | ||
} | ||
const exports$2 = dew$2(); | ||
const _extend = exports$2._extend, callbackify = exports$2.callbackify, debuglog = exports$2.debuglog, deprecate = exports$2.deprecate, format = exports$2.format, inherits = exports$2.inherits, inspect = exports$2.inspect, isArray = exports$2.isArray, isBoolean = exports$2.isBoolean, isBuffer = exports$2.isBuffer, isDate = exports$2.isDate, isError = exports$2.isError, isFunction = exports$2.isFunction, isNull = exports$2.isNull, isNullOrUndefined = exports$2.isNullOrUndefined, isNumber = exports$2.isNumber, isObject = exports$2.isObject, isPrimitive = exports$2.isPrimitive, isRegExp = exports$2.isRegExp, isString = exports$2.isString, isSymbol = exports$2.isSymbol, isUndefined = exports$2.isUndefined, log = exports$2.log, promisify = exports$2.promisify; | ||
export default exports$2; | ||
export { _extend, callbackify, debuglog, deprecate, format, inherits, inspect, isArray, isBoolean, isBuffer, isDate, isError, isFunction, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined, log, promisify }; | ||
export { c as _extend, d as callbackify, e as debuglog, a as default, f as deprecate, g as format, h as inherits, i as inspect, j as isArray, k as isBoolean, l as isBuffer, m as isDate, n as isError, o as isFunction, p as isNull, q as isNullOrUndefined, r as isNumber, s as isObject, t as isPrimitive, u as isRegExp, v as isString, w as isSymbol, x as isUndefined, y as log, z as promisify } from './util-c86b84df.js'; | ||
import './process.js'; |
@@ -1,2 +0,2 @@ | ||
var exports$1 = {}, | ||
var exports = {}, | ||
_dewExec = false; | ||
@@ -7,3 +7,3 @@ | ||
function dew() { | ||
if (_dewExec) return exports$1; | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
@@ -58,3 +58,3 @@ | ||
var Script = exports$1.Script = function NodeScript(code) { | ||
var Script = exports.Script = function NodeScript(code) { | ||
if (!((this || _global) instanceof Script)) return new Script(code); | ||
@@ -128,3 +128,3 @@ (this || _global).code = code; | ||
forEach(Object_keys(Script.prototype), function (name) { | ||
exports$1[name] = Script[name] = function (code) { | ||
exports[name] = Script[name] = function (code) { | ||
var s = Script(code); | ||
@@ -135,11 +135,11 @@ return s[name].apply(s, [].slice.call(arguments, 1)); | ||
exports$1.isContext = function (context) { | ||
exports.isContext = function (context) { | ||
return context instanceof Context; | ||
}; | ||
exports$1.createScript = function (code) { | ||
return exports$1.Script(code); | ||
exports.createScript = function (code) { | ||
return exports.Script(code); | ||
}; | ||
exports$1.createContext = Script.createContext = function (context) { | ||
exports.createContext = Script.createContext = function (context) { | ||
var copy = new Context(); | ||
@@ -156,9 +156,9 @@ | ||
return exports$1; | ||
return exports; | ||
} | ||
const exports$2 = dew(); | ||
const Script = exports$2.Script, createContext = exports$2.createContext, createScript = exports$2.createScript, isContext = exports$2.isContext, runInContext = exports$2.runInContext, runInNewContext = exports$2.runInNewContext, runInThisContext = exports$2.runInThisContext; | ||
const exports$1 = dew(); | ||
const Script = exports$1.Script, createContext = exports$1.createContext, createScript = exports$1.createScript, isContext = exports$1.isContext, runInContext = exports$1.runInContext, runInNewContext = exports$1.runInNewContext, runInThisContext = exports$1.runInThisContext; | ||
export default exports$2; | ||
export default exports$1; | ||
export { Script, createContext, createScript, isContext, runInContext, runInNewContext, runInThisContext }; |
{ | ||
"name": "@jspm/core", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "jspm core libraries", | ||
"author": "Guy Bedford", | ||
"license": "MIT", | ||
"license": "Apache-2.0", | ||
"files": [ | ||
@@ -17,35 +17,27 @@ "resolve.js", | ||
"@jspm/core": "^1.0.2", | ||
"node-assert": "assert@^1.4.1", | ||
"node-buffer": "buffer@^5.0.8", | ||
"node-console": "console-browserify@^1.1.0", | ||
"node-constants": "constants-browserify@^1.0.0", | ||
"node-crypto": "crypto-browserify@^3.12.0", | ||
"node-domain": "domain-browser@^1.1.7", | ||
"node-events": "events@^3.0.0", | ||
"node-http": "stream-http@^2.7.2", | ||
"node-https": "https-browserify@^1.0.0", | ||
"node-os": "os-browserify@~0.3.0", | ||
"node-path": "path-browserify@^0.0.0", | ||
"node-process": "process@~0.11.10", | ||
"node-punycode": "punycode@^2.1.0", | ||
"node-querystring": "querystring@~0.2.0", | ||
"node-stream": "stream-browserify@^2.0.1", | ||
"node-string_decoder": "string_decoder@^1.1.1", | ||
"node-timers": "timers-browserify@^2.0.10", | ||
"node-tty": "tty-browserify@^0.0.1", | ||
"node-url": "url@~0.11.0", | ||
"node-util": "util@~0.11.0", | ||
"node-vm": "vm-browserify@^1.1.0", | ||
"node-zlib": "browserify-zlib@~0.2.0", | ||
"readable-stream": "^2.3.3", | ||
"assert": "^1.4.1", | ||
"buffer": "^5.0.8", | ||
"console": "console-browserify@^1.1.0", | ||
"constants": "constants-browserify@^1.0.0", | ||
"crypto": "crypto-browserify@^3.12.0", | ||
"domain": "domain-browser@^1.1.7", | ||
"events": "^3.0.0", | ||
"http": "stream-http@^2.7.2", | ||
"https": "https-browserify@^1.0.0", | ||
"os": "os-browserify@~0.3.0", | ||
"path": "path-browserify@^0.0.0", | ||
"process": "~0.11.10", | ||
"punycode": "^2.1.0", | ||
"querystring": "~0.2.0", | ||
"rollup": "^1.8.0", | ||
"rollup-plugin-jspm": "github:jspm/rollup-plugin-jspm@master" | ||
"rollup-plugin-jspm": "github:jspm/rollup-plugin-jspm@master", | ||
"stream": "stream-browserify@^2.0.1", | ||
"string_decoder": "^1.2.0", | ||
"timers": "timers-browserify@^2.0.10", | ||
"tty": "tty-browserify@^0.0.1", | ||
"url": "~0.11.0", | ||
"util": "~0.11.0", | ||
"vm": "vm-browserify@^1.1.0", | ||
"zlib": "browserify-zlib@~0.2.0" | ||
}, | ||
"map": { | ||
"_stream_duplex": "readable-stream/duplex.js", | ||
"_stream_passthrough": "readable-stream/passthrough.js", | ||
"_stream_readable": "readable-stream/readable.js", | ||
"_stream_transform": "readable-stream/transform.js", | ||
"_stream_writable": "readable-stream/writable.js" | ||
}, | ||
"type": "module", | ||
@@ -600,3 +592,3 @@ "overrides": { | ||
}, | ||
"npm:string_decoder@~1.1.1": { | ||
"npm:string_decoder@^1.2.0": { | ||
"namedExports": { | ||
@@ -603,0 +595,0 @@ "lib/string_decoder.js": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
25
0
11
4
1032877
26669