@krx3d/tizentube2 1.30.880 → 1.30.890
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/service.js +1023 -683
- package/dist/userScript.js +2 -2
- package/package.json +1 -1
package/dist/service.js
CHANGED
|
@@ -8,14 +8,14 @@ var require$$3$2 = require('fs');
|
|
|
8
8
|
var require$$1$3 = require('path');
|
|
9
9
|
var require$$7$1 = require('http');
|
|
10
10
|
var require$$8 = require('url');
|
|
11
|
-
var require$$1$4 = require('string_decoder');
|
|
12
11
|
var require$$4$1 = require('timers');
|
|
13
|
-
var require$$1$
|
|
12
|
+
var require$$1$4 = require('assert');
|
|
14
13
|
var require$$0$5 = require('tty');
|
|
15
14
|
var require$$4$2 = require('net');
|
|
16
|
-
var require$$1$
|
|
15
|
+
var require$$1$5 = require('stream');
|
|
17
16
|
var require$$3$3 = require('zlib');
|
|
18
17
|
var require$$0$6 = require('buffer');
|
|
18
|
+
var require$$1$6 = require('string_decoder');
|
|
19
19
|
var require$$8$1 = require('querystring');
|
|
20
20
|
var require$$0$7 = require('crypto');
|
|
21
21
|
|
|
@@ -1010,7 +1010,7 @@ var utils$4 = {};
|
|
|
1010
1010
|
* limitations under the License.
|
|
1011
1011
|
*
|
|
1012
1012
|
*/
|
|
1013
|
-
(function (exports
|
|
1013
|
+
(function (exports) {
|
|
1014
1014
|
|
|
1015
1015
|
var regExpChars = /[|\\{}()[\]^$+*?.]/g;
|
|
1016
1016
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -1028,7 +1028,7 @@ var utils$4 = {};
|
|
|
1028
1028
|
* @static
|
|
1029
1029
|
* @private
|
|
1030
1030
|
*/
|
|
1031
|
-
exports
|
|
1031
|
+
exports.escapeRegExpChars = function (string) {
|
|
1032
1032
|
// istanbul ignore if
|
|
1033
1033
|
if (!string) {
|
|
1034
1034
|
return '';
|
|
@@ -1070,7 +1070,7 @@ var utils$4 = {};
|
|
|
1070
1070
|
* @private
|
|
1071
1071
|
*/
|
|
1072
1072
|
|
|
1073
|
-
exports
|
|
1073
|
+
exports.escapeXML = function (markup) {
|
|
1074
1074
|
return markup == undefined ? '' : String(markup).replace(_MATCH_HTML, encode_char);
|
|
1075
1075
|
};
|
|
1076
1076
|
function escapeXMLToString() {
|
|
@@ -1082,12 +1082,12 @@ var utils$4 = {};
|
|
|
1082
1082
|
// cannot have the property changed using an assignment. If using strict mode, attempting that will cause an error. If not using strict
|
|
1083
1083
|
// mode, attempting that will be silently ignored.
|
|
1084
1084
|
// However, we can still explicitly shadow the prototype's "toString" property by defining a new "toString" property on this object.
|
|
1085
|
-
Object.defineProperty(exports
|
|
1085
|
+
Object.defineProperty(exports.escapeXML, 'toString', {
|
|
1086
1086
|
value: escapeXMLToString
|
|
1087
1087
|
});
|
|
1088
1088
|
} else {
|
|
1089
1089
|
// If Object.defineProperty() doesn't exist, attempt to shadow this property using the assignment operator.
|
|
1090
|
-
exports
|
|
1090
|
+
exports.escapeXML.toString = escapeXMLToString;
|
|
1091
1091
|
}
|
|
1092
1092
|
} catch (err) {
|
|
1093
1093
|
console.warn('Unable to set escapeXML.toString (is the Function prototype frozen?)');
|
|
@@ -1104,7 +1104,7 @@ var utils$4 = {};
|
|
|
1104
1104
|
* @static
|
|
1105
1105
|
* @private
|
|
1106
1106
|
*/
|
|
1107
|
-
exports
|
|
1107
|
+
exports.shallowCopy = function (to, from) {
|
|
1108
1108
|
from = from || {};
|
|
1109
1109
|
if (to !== null && to !== undefined) {
|
|
1110
1110
|
for (var p in from) {
|
|
@@ -1132,7 +1132,7 @@ var utils$4 = {};
|
|
|
1132
1132
|
* @static
|
|
1133
1133
|
* @private
|
|
1134
1134
|
*/
|
|
1135
|
-
exports
|
|
1135
|
+
exports.shallowCopyFromList = function (to, from, list) {
|
|
1136
1136
|
list = list || [];
|
|
1137
1137
|
from = from || {};
|
|
1138
1138
|
if (to !== null && to !== undefined) {
|
|
@@ -1160,7 +1160,7 @@ var utils$4 = {};
|
|
|
1160
1160
|
* @static
|
|
1161
1161
|
* @private
|
|
1162
1162
|
*/
|
|
1163
|
-
exports
|
|
1163
|
+
exports.cache = {
|
|
1164
1164
|
_data: {},
|
|
1165
1165
|
set: function set(key, val) {
|
|
1166
1166
|
this._data[key] = val;
|
|
@@ -1184,7 +1184,7 @@ var utils$4 = {};
|
|
|
1184
1184
|
* @static
|
|
1185
1185
|
* @private
|
|
1186
1186
|
*/
|
|
1187
|
-
exports
|
|
1187
|
+
exports.hyphenToCamel = function (str) {
|
|
1188
1188
|
return str.replace(/-[a-z]/g, function (match) {
|
|
1189
1189
|
return match[1].toUpperCase();
|
|
1190
1190
|
});
|
|
@@ -1197,7 +1197,7 @@ var utils$4 = {};
|
|
|
1197
1197
|
* @static
|
|
1198
1198
|
* @private
|
|
1199
1199
|
*/
|
|
1200
|
-
exports
|
|
1200
|
+
exports.createNullProtoObjWherePossible = function () {
|
|
1201
1201
|
if (typeof Object.create == 'function') {
|
|
1202
1202
|
return function () {
|
|
1203
1203
|
return Object.create(null);
|
|
@@ -1217,8 +1217,8 @@ var utils$4 = {};
|
|
|
1217
1217
|
return {};
|
|
1218
1218
|
};
|
|
1219
1219
|
}();
|
|
1220
|
-
exports
|
|
1221
|
-
var o = exports
|
|
1220
|
+
exports.hasOwnOnlyObject = function (obj) {
|
|
1221
|
+
var o = exports.createNullProtoObjWherePossible();
|
|
1222
1222
|
for (var p in obj) {
|
|
1223
1223
|
if (hasOwn(obj, p)) {
|
|
1224
1224
|
o[p] = obj[p];
|
|
@@ -1249,7 +1249,7 @@ var require$$3$1 = {
|
|
|
1249
1249
|
* limitations under the License.
|
|
1250
1250
|
*
|
|
1251
1251
|
*/
|
|
1252
|
-
(function (exports
|
|
1252
|
+
(function (exports) {
|
|
1253
1253
|
|
|
1254
1254
|
/**
|
|
1255
1255
|
* @file Embedded JavaScript templating engine. {@link http://ejs.co}
|
|
@@ -1304,7 +1304,7 @@ var require$$3$1 = {
|
|
|
1304
1304
|
* @type {Cache}
|
|
1305
1305
|
*/
|
|
1306
1306
|
|
|
1307
|
-
exports
|
|
1307
|
+
exports.cache = utils.cache;
|
|
1308
1308
|
|
|
1309
1309
|
/**
|
|
1310
1310
|
* Custom file loader. Useful for template preprocessing or restricting access
|
|
@@ -1313,7 +1313,7 @@ var require$$3$1 = {
|
|
|
1313
1313
|
* @type {fileLoader}
|
|
1314
1314
|
*/
|
|
1315
1315
|
|
|
1316
|
-
exports
|
|
1316
|
+
exports.fileLoader = fs.readFileSync;
|
|
1317
1317
|
|
|
1318
1318
|
/**
|
|
1319
1319
|
* Name of the object containing the locals.
|
|
@@ -1325,7 +1325,7 @@ var require$$3$1 = {
|
|
|
1325
1325
|
* @public
|
|
1326
1326
|
*/
|
|
1327
1327
|
|
|
1328
|
-
exports
|
|
1328
|
+
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
1329
1329
|
|
|
1330
1330
|
/**
|
|
1331
1331
|
* Promise implementation -- defaults to the native implementation if available
|
|
@@ -1335,7 +1335,7 @@ var require$$3$1 = {
|
|
|
1335
1335
|
* @public
|
|
1336
1336
|
*/
|
|
1337
1337
|
|
|
1338
|
-
exports
|
|
1338
|
+
exports.promiseImpl = new Function('return this;')().Promise;
|
|
1339
1339
|
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Get the path to the included file from the parent file path and the
|
|
@@ -1346,7 +1346,7 @@ var require$$3$1 = {
|
|
|
1346
1346
|
* @param {Boolean} [isDir=false] whether the parent file path is a directory
|
|
1347
1347
|
* @return {String}
|
|
1348
1348
|
*/
|
|
1349
|
-
exports
|
|
1349
|
+
exports.resolveInclude = function (name, filename, isDir) {
|
|
1350
1350
|
var dirname = path.dirname;
|
|
1351
1351
|
var extname = path.extname;
|
|
1352
1352
|
var resolve = path.resolve;
|
|
@@ -1368,7 +1368,7 @@ var require$$3$1 = {
|
|
|
1368
1368
|
function resolvePaths(name, paths) {
|
|
1369
1369
|
var filePath;
|
|
1370
1370
|
if (paths.some(function (v) {
|
|
1371
|
-
filePath = exports
|
|
1371
|
+
filePath = exports.resolveInclude(name, v, true);
|
|
1372
1372
|
return fs.existsSync(filePath);
|
|
1373
1373
|
})) {
|
|
1374
1374
|
return filePath;
|
|
@@ -1394,14 +1394,14 @@ var require$$3$1 = {
|
|
|
1394
1394
|
if (Array.isArray(options.root)) {
|
|
1395
1395
|
includePath = resolvePaths(path, options.root);
|
|
1396
1396
|
} else {
|
|
1397
|
-
includePath = exports
|
|
1397
|
+
includePath = exports.resolveInclude(path, options.root || '/', true);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
// Relative paths
|
|
1401
1401
|
else {
|
|
1402
1402
|
// Look relative to a passed filename first
|
|
1403
1403
|
if (options.filename) {
|
|
1404
|
-
filePath = exports
|
|
1404
|
+
filePath = exports.resolveInclude(path, options.filename);
|
|
1405
1405
|
if (fs.existsSync(filePath)) {
|
|
1406
1406
|
includePath = filePath;
|
|
1407
1407
|
}
|
|
@@ -1443,7 +1443,7 @@ var require$$3$1 = {
|
|
|
1443
1443
|
if (!filename) {
|
|
1444
1444
|
throw new Error('cache option requires a filename');
|
|
1445
1445
|
}
|
|
1446
|
-
func = exports
|
|
1446
|
+
func = exports.cache.get(filename);
|
|
1447
1447
|
if (func) {
|
|
1448
1448
|
return func;
|
|
1449
1449
|
}
|
|
@@ -1457,9 +1457,9 @@ var require$$3$1 = {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
template = fileLoader(filename).toString().replace(_BOM, '');
|
|
1459
1459
|
}
|
|
1460
|
-
func = exports
|
|
1460
|
+
func = exports.compile(template, options);
|
|
1461
1461
|
if (options.cache) {
|
|
1462
|
-
exports
|
|
1462
|
+
exports.cache.set(filename, func);
|
|
1463
1463
|
}
|
|
1464
1464
|
return func;
|
|
1465
1465
|
}
|
|
@@ -1479,8 +1479,8 @@ var require$$3$1 = {
|
|
|
1479
1479
|
function tryHandleCache(options, data, cb) {
|
|
1480
1480
|
var result;
|
|
1481
1481
|
if (!cb) {
|
|
1482
|
-
if (typeof exports
|
|
1483
|
-
return new exports
|
|
1482
|
+
if (typeof exports.promiseImpl == 'function') {
|
|
1483
|
+
return new exports.promiseImpl(function (resolve, reject) {
|
|
1484
1484
|
try {
|
|
1485
1485
|
result = handleCache(options)(data);
|
|
1486
1486
|
resolve(result);
|
|
@@ -1510,7 +1510,7 @@ var require$$3$1 = {
|
|
|
1510
1510
|
*/
|
|
1511
1511
|
|
|
1512
1512
|
function fileLoader(filePath) {
|
|
1513
|
-
return exports
|
|
1513
|
+
return exports.fileLoader(filePath);
|
|
1514
1514
|
}
|
|
1515
1515
|
|
|
1516
1516
|
/**
|
|
@@ -1590,7 +1590,7 @@ var require$$3$1 = {
|
|
|
1590
1590
|
* @public
|
|
1591
1591
|
*/
|
|
1592
1592
|
|
|
1593
|
-
exports
|
|
1593
|
+
exports.compile = function compile(template, opts) {
|
|
1594
1594
|
var templ;
|
|
1595
1595
|
|
|
1596
1596
|
// v1 compat
|
|
@@ -1624,7 +1624,7 @@ var require$$3$1 = {
|
|
|
1624
1624
|
* @public
|
|
1625
1625
|
*/
|
|
1626
1626
|
|
|
1627
|
-
exports
|
|
1627
|
+
exports.render = function (template, d, o) {
|
|
1628
1628
|
var data = d || utils.createNullProtoObjWherePossible();
|
|
1629
1629
|
var opts = o || utils.createNullProtoObjWherePossible();
|
|
1630
1630
|
|
|
@@ -1649,7 +1649,7 @@ var require$$3$1 = {
|
|
|
1649
1649
|
* @public
|
|
1650
1650
|
*/
|
|
1651
1651
|
|
|
1652
|
-
exports
|
|
1652
|
+
exports.renderFile = function () {
|
|
1653
1653
|
var args = Array.prototype.slice.call(arguments);
|
|
1654
1654
|
var filename = args.shift();
|
|
1655
1655
|
var cb;
|
|
@@ -1711,9 +1711,9 @@ var require$$3$1 = {
|
|
|
1711
1711
|
* EJS template class
|
|
1712
1712
|
* @public
|
|
1713
1713
|
*/
|
|
1714
|
-
exports
|
|
1715
|
-
exports
|
|
1716
|
-
exports
|
|
1714
|
+
exports.Template = Template;
|
|
1715
|
+
exports.clearCache = function () {
|
|
1716
|
+
exports.cache.reset();
|
|
1717
1717
|
};
|
|
1718
1718
|
function Template(text, optsParam) {
|
|
1719
1719
|
var opts = utils.hasOwnOnlyObject(optsParam);
|
|
@@ -1729,9 +1729,9 @@ var require$$3$1 = {
|
|
|
1729
1729
|
options.compileDebug = opts.compileDebug !== false;
|
|
1730
1730
|
options.debug = !!opts.debug;
|
|
1731
1731
|
options.filename = opts.filename;
|
|
1732
|
-
options.openDelimiter = opts.openDelimiter || exports
|
|
1733
|
-
options.closeDelimiter = opts.closeDelimiter || exports
|
|
1734
|
-
options.delimiter = opts.delimiter || exports
|
|
1732
|
+
options.openDelimiter = opts.openDelimiter || exports.openDelimiter || _DEFAULT_OPEN_DELIMITER;
|
|
1733
|
+
options.closeDelimiter = opts.closeDelimiter || exports.closeDelimiter || _DEFAULT_CLOSE_DELIMITER;
|
|
1734
|
+
options.delimiter = opts.delimiter || exports.delimiter || _DEFAULT_DELIMITER;
|
|
1735
1735
|
options.strict = opts.strict || false;
|
|
1736
1736
|
options.context = opts.context;
|
|
1737
1737
|
options.cache = opts.cache || false;
|
|
@@ -1739,7 +1739,7 @@ var require$$3$1 = {
|
|
|
1739
1739
|
options.root = opts.root;
|
|
1740
1740
|
options.includer = opts.includer;
|
|
1741
1741
|
options.outputFunctionName = opts.outputFunctionName;
|
|
1742
|
-
options.localsName = opts.localsName || exports
|
|
1742
|
+
options.localsName = opts.localsName || exports.localsName || _DEFAULT_LOCALS_NAME;
|
|
1743
1743
|
options.views = opts.views;
|
|
1744
1744
|
options.async = opts.async;
|
|
1745
1745
|
options.destructuredLocals = opts.destructuredLocals;
|
|
@@ -2073,7 +2073,7 @@ var require$$3$1 = {
|
|
|
2073
2073
|
* @public
|
|
2074
2074
|
* @func
|
|
2075
2075
|
* */
|
|
2076
|
-
exports
|
|
2076
|
+
exports.escapeXML = utils.escapeXML;
|
|
2077
2077
|
|
|
2078
2078
|
/**
|
|
2079
2079
|
* Express.js support.
|
|
@@ -2084,7 +2084,7 @@ var require$$3$1 = {
|
|
|
2084
2084
|
* @func
|
|
2085
2085
|
*/
|
|
2086
2086
|
|
|
2087
|
-
exports
|
|
2087
|
+
exports.__express = exports.renderFile;
|
|
2088
2088
|
|
|
2089
2089
|
/**
|
|
2090
2090
|
* Version of EJS.
|
|
@@ -2094,7 +2094,7 @@ var require$$3$1 = {
|
|
|
2094
2094
|
* @public
|
|
2095
2095
|
*/
|
|
2096
2096
|
|
|
2097
|
-
exports
|
|
2097
|
+
exports.VERSION = _VERSION_STRING;
|
|
2098
2098
|
|
|
2099
2099
|
/**
|
|
2100
2100
|
* Name for detection of EJS.
|
|
@@ -2104,11 +2104,11 @@ var require$$3$1 = {
|
|
|
2104
2104
|
* @public
|
|
2105
2105
|
*/
|
|
2106
2106
|
|
|
2107
|
-
exports
|
|
2107
|
+
exports.name = _NAME;
|
|
2108
2108
|
|
|
2109
2109
|
/* istanbul ignore if */
|
|
2110
2110
|
if (typeof window != 'undefined') {
|
|
2111
|
-
window.ejs = exports
|
|
2111
|
+
window.ejs = exports;
|
|
2112
2112
|
}
|
|
2113
2113
|
})(ejs$1);
|
|
2114
2114
|
|
|
@@ -6337,7 +6337,7 @@ var hasRequiredSax;
|
|
|
6337
6337
|
function requireSax() {
|
|
6338
6338
|
if (hasRequiredSax) return sax;
|
|
6339
6339
|
hasRequiredSax = 1;
|
|
6340
|
-
(function (exports
|
|
6340
|
+
(function (exports) {
|
|
6341
6341
|
(function (sax) {
|
|
6342
6342
|
// wrapper for non-node envs
|
|
6343
6343
|
sax.parser = function (strict, opt) {
|
|
@@ -6367,9 +6367,13 @@ function requireSax() {
|
|
|
6367
6367
|
clearBuffers(parser);
|
|
6368
6368
|
parser.q = parser.c = '';
|
|
6369
6369
|
parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH;
|
|
6370
|
+
parser.encoding = null;
|
|
6370
6371
|
parser.opt = opt || {};
|
|
6371
6372
|
parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags;
|
|
6372
6373
|
parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase';
|
|
6374
|
+
parser.opt.maxEntityCount = parser.opt.maxEntityCount || 512;
|
|
6375
|
+
parser.opt.maxEntityDepth = parser.opt.maxEntityDepth || 4;
|
|
6376
|
+
parser.entityCount = parser.entityDepth = 0;
|
|
6373
6377
|
parser.tags = [];
|
|
6374
6378
|
parser.closed = parser.closedRoot = parser.sawRoot = false;
|
|
6375
6379
|
parser.tag = parser.error = null;
|
|
@@ -6492,6 +6496,32 @@ function requireSax() {
|
|
|
6492
6496
|
function createStream(strict, opt) {
|
|
6493
6497
|
return new SAXStream(strict, opt);
|
|
6494
6498
|
}
|
|
6499
|
+
function determineBufferEncoding(data, isEnd) {
|
|
6500
|
+
// BOM-based detection is the most reliable signal when present.
|
|
6501
|
+
if (data.length >= 2) {
|
|
6502
|
+
if (data[0] === 0xff && data[1] === 0xfe) {
|
|
6503
|
+
return 'utf-16le';
|
|
6504
|
+
}
|
|
6505
|
+
if (data[0] === 0xfe && data[1] === 0xff) {
|
|
6506
|
+
return 'utf-16be';
|
|
6507
|
+
}
|
|
6508
|
+
}
|
|
6509
|
+
if (data.length >= 3 && data[0] === 0xef && data[1] === 0xbb && data[2] === 0xbf) {
|
|
6510
|
+
return 'utf8';
|
|
6511
|
+
}
|
|
6512
|
+
if (data.length >= 4) {
|
|
6513
|
+
// XML documents without a BOM still start with "<?xml", which is enough
|
|
6514
|
+
// to distinguish UTF-16LE/BE from UTF-8 by looking at the zero bytes.
|
|
6515
|
+
if (data[0] === 0x3c && data[1] === 0x00 && data[2] === 0x3f && data[3] === 0x00) {
|
|
6516
|
+
return 'utf-16le';
|
|
6517
|
+
}
|
|
6518
|
+
if (data[0] === 0x00 && data[1] === 0x3c && data[2] === 0x00 && data[3] === 0x3f) {
|
|
6519
|
+
return 'utf-16be';
|
|
6520
|
+
}
|
|
6521
|
+
return 'utf8';
|
|
6522
|
+
}
|
|
6523
|
+
return isEnd ? 'utf8' : null;
|
|
6524
|
+
}
|
|
6495
6525
|
function SAXStream(strict, opt) {
|
|
6496
6526
|
if (!(this instanceof SAXStream)) {
|
|
6497
6527
|
return new SAXStream(strict, opt);
|
|
@@ -6512,6 +6542,7 @@ function requireSax() {
|
|
|
6512
6542
|
me._parser.error = null;
|
|
6513
6543
|
};
|
|
6514
6544
|
this._decoder = null;
|
|
6545
|
+
this._decoderBuffer = null;
|
|
6515
6546
|
streamWraps.forEach(function (ev) {
|
|
6516
6547
|
Object.defineProperty(me, 'on' + ev, {
|
|
6517
6548
|
get: function get() {
|
|
@@ -6535,13 +6566,42 @@ function requireSax() {
|
|
|
6535
6566
|
value: SAXStream
|
|
6536
6567
|
}
|
|
6537
6568
|
});
|
|
6569
|
+
SAXStream.prototype._decodeBuffer = function (data, isEnd) {
|
|
6570
|
+
if (this._decoderBuffer) {
|
|
6571
|
+
// Keep incomplete leading bytes until we have enough data to infer the
|
|
6572
|
+
// stream encoding, then decode the buffered prefix together with the next chunk.
|
|
6573
|
+
data = Buffer.concat([this._decoderBuffer, data]);
|
|
6574
|
+
this._decoderBuffer = null;
|
|
6575
|
+
}
|
|
6576
|
+
if (!this._decoder) {
|
|
6577
|
+
var encoding = determineBufferEncoding(data, isEnd);
|
|
6578
|
+
if (!encoding) {
|
|
6579
|
+
// A very short first chunk may not contain enough bytes to detect the
|
|
6580
|
+
// encoding yet, so defer decoding until the next write/end call.
|
|
6581
|
+
this._decoderBuffer = data;
|
|
6582
|
+
return '';
|
|
6583
|
+
}
|
|
6584
|
+
|
|
6585
|
+
// Store the detected transport encoding so strict mode can compare it
|
|
6586
|
+
// with the optional encoding declared in the XML prolog later on.
|
|
6587
|
+
this._parser.encoding = encoding;
|
|
6588
|
+
this._decoder = new TextDecoder(encoding);
|
|
6589
|
+
}
|
|
6590
|
+
return this._decoder.decode(data, {
|
|
6591
|
+
stream: !isEnd
|
|
6592
|
+
});
|
|
6593
|
+
};
|
|
6538
6594
|
SAXStream.prototype.write = function (data) {
|
|
6539
6595
|
if (typeof Buffer === 'function' && typeof Buffer.isBuffer === 'function' && Buffer.isBuffer(data)) {
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6596
|
+
data = this._decodeBuffer(data, false);
|
|
6597
|
+
} else if (this._decoderBuffer) {
|
|
6598
|
+
// Flush any buffered binary prefix before handling a string chunk.
|
|
6599
|
+
// This only matters if the caller mixes Buffer and string writes (used in test).
|
|
6600
|
+
var remaining = this._decodeBuffer(Buffer.alloc(0), true);
|
|
6601
|
+
if (remaining) {
|
|
6602
|
+
this._parser.write(remaining);
|
|
6603
|
+
this.emit('data', remaining);
|
|
6543
6604
|
}
|
|
6544
|
-
data = this._decoder.write(data);
|
|
6545
6605
|
}
|
|
6546
6606
|
this._parser.write(data.toString());
|
|
6547
6607
|
this.emit('data', data);
|
|
@@ -6551,6 +6611,20 @@ function requireSax() {
|
|
|
6551
6611
|
if (chunk && chunk.length) {
|
|
6552
6612
|
this.write(chunk);
|
|
6553
6613
|
}
|
|
6614
|
+
// Flush any remaining decoded data from the TextDecoder
|
|
6615
|
+
if (this._decoderBuffer) {
|
|
6616
|
+
var finalChunk = this._decodeBuffer(Buffer.alloc(0), true);
|
|
6617
|
+
if (finalChunk) {
|
|
6618
|
+
this._parser.write(finalChunk);
|
|
6619
|
+
this.emit('data', finalChunk);
|
|
6620
|
+
}
|
|
6621
|
+
} else if (this._decoder) {
|
|
6622
|
+
var remaining = this._decoder.decode();
|
|
6623
|
+
if (remaining) {
|
|
6624
|
+
this._parser.write(remaining);
|
|
6625
|
+
this.emit('data', remaining);
|
|
6626
|
+
}
|
|
6627
|
+
}
|
|
6554
6628
|
this._parser.end();
|
|
6555
6629
|
return true;
|
|
6556
6630
|
};
|
|
@@ -6568,8 +6642,8 @@ function requireSax() {
|
|
|
6568
6642
|
|
|
6569
6643
|
// this really needs to be replaced with character classes.
|
|
6570
6644
|
// XML allows all manner of ridiculous numbers and digits.
|
|
6571
|
-
var
|
|
6572
|
-
var
|
|
6645
|
+
var CDATAre = /^\[CDATA\[$/i;
|
|
6646
|
+
var DOCTYPEre = /^DOCTYPE$/i;
|
|
6573
6647
|
var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
|
|
6574
6648
|
var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/';
|
|
6575
6649
|
var rootNS = {
|
|
@@ -6591,7 +6665,7 @@ function requireSax() {
|
|
|
6591
6665
|
return c === ' ' || c === '\n' || c === '\r' || c === '\t';
|
|
6592
6666
|
}
|
|
6593
6667
|
function isQuote(c) {
|
|
6594
|
-
return c === '"' || c === '
|
|
6668
|
+
return c === '"' || c === "'";
|
|
6595
6669
|
}
|
|
6596
6670
|
function isAttribEnd(c) {
|
|
6597
6671
|
return c === '>' || isWhitespace(c);
|
|
@@ -6676,268 +6750,268 @@ function requireSax() {
|
|
|
6676
6750
|
// <script> ...
|
|
6677
6751
|
SCRIPT_ENDING: S++ // <script> ... <
|
|
6678
6752
|
};
|
|
6679
|
-
sax.XML_ENTITIES = {
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
};
|
|
6686
|
-
sax.ENTITIES = {
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
};
|
|
6753
|
+
sax.XML_ENTITIES = Object.assign(Object.create(null), {
|
|
6754
|
+
amp: '&',
|
|
6755
|
+
gt: '>',
|
|
6756
|
+
lt: '<',
|
|
6757
|
+
quot: '"',
|
|
6758
|
+
apos: "'"
|
|
6759
|
+
});
|
|
6760
|
+
sax.ENTITIES = Object.assign(Object.create(null), {
|
|
6761
|
+
amp: '&',
|
|
6762
|
+
gt: '>',
|
|
6763
|
+
lt: '<',
|
|
6764
|
+
quot: '"',
|
|
6765
|
+
apos: "'",
|
|
6766
|
+
AElig: 198,
|
|
6767
|
+
Aacute: 193,
|
|
6768
|
+
Acirc: 194,
|
|
6769
|
+
Agrave: 192,
|
|
6770
|
+
Aring: 197,
|
|
6771
|
+
Atilde: 195,
|
|
6772
|
+
Auml: 196,
|
|
6773
|
+
Ccedil: 199,
|
|
6774
|
+
ETH: 208,
|
|
6775
|
+
Eacute: 201,
|
|
6776
|
+
Ecirc: 202,
|
|
6777
|
+
Egrave: 200,
|
|
6778
|
+
Euml: 203,
|
|
6779
|
+
Iacute: 205,
|
|
6780
|
+
Icirc: 206,
|
|
6781
|
+
Igrave: 204,
|
|
6782
|
+
Iuml: 207,
|
|
6783
|
+
Ntilde: 209,
|
|
6784
|
+
Oacute: 211,
|
|
6785
|
+
Ocirc: 212,
|
|
6786
|
+
Ograve: 210,
|
|
6787
|
+
Oslash: 216,
|
|
6788
|
+
Otilde: 213,
|
|
6789
|
+
Ouml: 214,
|
|
6790
|
+
THORN: 222,
|
|
6791
|
+
Uacute: 218,
|
|
6792
|
+
Ucirc: 219,
|
|
6793
|
+
Ugrave: 217,
|
|
6794
|
+
Uuml: 220,
|
|
6795
|
+
Yacute: 221,
|
|
6796
|
+
aacute: 225,
|
|
6797
|
+
acirc: 226,
|
|
6798
|
+
aelig: 230,
|
|
6799
|
+
agrave: 224,
|
|
6800
|
+
aring: 229,
|
|
6801
|
+
atilde: 227,
|
|
6802
|
+
auml: 228,
|
|
6803
|
+
ccedil: 231,
|
|
6804
|
+
eacute: 233,
|
|
6805
|
+
ecirc: 234,
|
|
6806
|
+
egrave: 232,
|
|
6807
|
+
eth: 240,
|
|
6808
|
+
euml: 235,
|
|
6809
|
+
iacute: 237,
|
|
6810
|
+
icirc: 238,
|
|
6811
|
+
igrave: 236,
|
|
6812
|
+
iuml: 239,
|
|
6813
|
+
ntilde: 241,
|
|
6814
|
+
oacute: 243,
|
|
6815
|
+
ocirc: 244,
|
|
6816
|
+
ograve: 242,
|
|
6817
|
+
oslash: 248,
|
|
6818
|
+
otilde: 245,
|
|
6819
|
+
ouml: 246,
|
|
6820
|
+
szlig: 223,
|
|
6821
|
+
thorn: 254,
|
|
6822
|
+
uacute: 250,
|
|
6823
|
+
ucirc: 251,
|
|
6824
|
+
ugrave: 249,
|
|
6825
|
+
uuml: 252,
|
|
6826
|
+
yacute: 253,
|
|
6827
|
+
yuml: 255,
|
|
6828
|
+
copy: 169,
|
|
6829
|
+
reg: 174,
|
|
6830
|
+
nbsp: 160,
|
|
6831
|
+
iexcl: 161,
|
|
6832
|
+
cent: 162,
|
|
6833
|
+
pound: 163,
|
|
6834
|
+
curren: 164,
|
|
6835
|
+
yen: 165,
|
|
6836
|
+
brvbar: 166,
|
|
6837
|
+
sect: 167,
|
|
6838
|
+
uml: 168,
|
|
6839
|
+
ordf: 170,
|
|
6840
|
+
laquo: 171,
|
|
6841
|
+
not: 172,
|
|
6842
|
+
shy: 173,
|
|
6843
|
+
macr: 175,
|
|
6844
|
+
deg: 176,
|
|
6845
|
+
plusmn: 177,
|
|
6846
|
+
sup1: 185,
|
|
6847
|
+
sup2: 178,
|
|
6848
|
+
sup3: 179,
|
|
6849
|
+
acute: 180,
|
|
6850
|
+
micro: 181,
|
|
6851
|
+
para: 182,
|
|
6852
|
+
middot: 183,
|
|
6853
|
+
cedil: 184,
|
|
6854
|
+
ordm: 186,
|
|
6855
|
+
raquo: 187,
|
|
6856
|
+
frac14: 188,
|
|
6857
|
+
frac12: 189,
|
|
6858
|
+
frac34: 190,
|
|
6859
|
+
iquest: 191,
|
|
6860
|
+
times: 215,
|
|
6861
|
+
divide: 247,
|
|
6862
|
+
OElig: 338,
|
|
6863
|
+
oelig: 339,
|
|
6864
|
+
Scaron: 352,
|
|
6865
|
+
scaron: 353,
|
|
6866
|
+
Yuml: 376,
|
|
6867
|
+
fnof: 402,
|
|
6868
|
+
circ: 710,
|
|
6869
|
+
tilde: 732,
|
|
6870
|
+
Alpha: 913,
|
|
6871
|
+
Beta: 914,
|
|
6872
|
+
Gamma: 915,
|
|
6873
|
+
Delta: 916,
|
|
6874
|
+
Epsilon: 917,
|
|
6875
|
+
Zeta: 918,
|
|
6876
|
+
Eta: 919,
|
|
6877
|
+
Theta: 920,
|
|
6878
|
+
Iota: 921,
|
|
6879
|
+
Kappa: 922,
|
|
6880
|
+
Lambda: 923,
|
|
6881
|
+
Mu: 924,
|
|
6882
|
+
Nu: 925,
|
|
6883
|
+
Xi: 926,
|
|
6884
|
+
Omicron: 927,
|
|
6885
|
+
Pi: 928,
|
|
6886
|
+
Rho: 929,
|
|
6887
|
+
Sigma: 931,
|
|
6888
|
+
Tau: 932,
|
|
6889
|
+
Upsilon: 933,
|
|
6890
|
+
Phi: 934,
|
|
6891
|
+
Chi: 935,
|
|
6892
|
+
Psi: 936,
|
|
6893
|
+
Omega: 937,
|
|
6894
|
+
alpha: 945,
|
|
6895
|
+
beta: 946,
|
|
6896
|
+
gamma: 947,
|
|
6897
|
+
delta: 948,
|
|
6898
|
+
epsilon: 949,
|
|
6899
|
+
zeta: 950,
|
|
6900
|
+
eta: 951,
|
|
6901
|
+
theta: 952,
|
|
6902
|
+
iota: 953,
|
|
6903
|
+
kappa: 954,
|
|
6904
|
+
lambda: 955,
|
|
6905
|
+
mu: 956,
|
|
6906
|
+
nu: 957,
|
|
6907
|
+
xi: 958,
|
|
6908
|
+
omicron: 959,
|
|
6909
|
+
pi: 960,
|
|
6910
|
+
rho: 961,
|
|
6911
|
+
sigmaf: 962,
|
|
6912
|
+
sigma: 963,
|
|
6913
|
+
tau: 964,
|
|
6914
|
+
upsilon: 965,
|
|
6915
|
+
phi: 966,
|
|
6916
|
+
chi: 967,
|
|
6917
|
+
psi: 968,
|
|
6918
|
+
omega: 969,
|
|
6919
|
+
thetasym: 977,
|
|
6920
|
+
upsih: 978,
|
|
6921
|
+
piv: 982,
|
|
6922
|
+
ensp: 8194,
|
|
6923
|
+
emsp: 8195,
|
|
6924
|
+
thinsp: 8201,
|
|
6925
|
+
zwnj: 8204,
|
|
6926
|
+
zwj: 8205,
|
|
6927
|
+
lrm: 8206,
|
|
6928
|
+
rlm: 8207,
|
|
6929
|
+
ndash: 8211,
|
|
6930
|
+
mdash: 8212,
|
|
6931
|
+
lsquo: 8216,
|
|
6932
|
+
rsquo: 8217,
|
|
6933
|
+
sbquo: 8218,
|
|
6934
|
+
ldquo: 8220,
|
|
6935
|
+
rdquo: 8221,
|
|
6936
|
+
bdquo: 8222,
|
|
6937
|
+
dagger: 8224,
|
|
6938
|
+
Dagger: 8225,
|
|
6939
|
+
bull: 8226,
|
|
6940
|
+
hellip: 8230,
|
|
6941
|
+
permil: 8240,
|
|
6942
|
+
prime: 8242,
|
|
6943
|
+
Prime: 8243,
|
|
6944
|
+
lsaquo: 8249,
|
|
6945
|
+
rsaquo: 8250,
|
|
6946
|
+
oline: 8254,
|
|
6947
|
+
frasl: 8260,
|
|
6948
|
+
euro: 8364,
|
|
6949
|
+
image: 8465,
|
|
6950
|
+
weierp: 8472,
|
|
6951
|
+
real: 8476,
|
|
6952
|
+
trade: 8482,
|
|
6953
|
+
alefsym: 8501,
|
|
6954
|
+
larr: 8592,
|
|
6955
|
+
uarr: 8593,
|
|
6956
|
+
rarr: 8594,
|
|
6957
|
+
darr: 8595,
|
|
6958
|
+
harr: 8596,
|
|
6959
|
+
crarr: 8629,
|
|
6960
|
+
lArr: 8656,
|
|
6961
|
+
uArr: 8657,
|
|
6962
|
+
rArr: 8658,
|
|
6963
|
+
dArr: 8659,
|
|
6964
|
+
hArr: 8660,
|
|
6965
|
+
forall: 8704,
|
|
6966
|
+
part: 8706,
|
|
6967
|
+
exist: 8707,
|
|
6968
|
+
empty: 8709,
|
|
6969
|
+
nabla: 8711,
|
|
6970
|
+
isin: 8712,
|
|
6971
|
+
notin: 8713,
|
|
6972
|
+
ni: 8715,
|
|
6973
|
+
prod: 8719,
|
|
6974
|
+
sum: 8721,
|
|
6975
|
+
minus: 8722,
|
|
6976
|
+
lowast: 8727,
|
|
6977
|
+
radic: 8730,
|
|
6978
|
+
prop: 8733,
|
|
6979
|
+
infin: 8734,
|
|
6980
|
+
ang: 8736,
|
|
6981
|
+
and: 8743,
|
|
6982
|
+
or: 8744,
|
|
6983
|
+
cap: 8745,
|
|
6984
|
+
cup: 8746,
|
|
6985
|
+
"int": 8747,
|
|
6986
|
+
there4: 8756,
|
|
6987
|
+
sim: 8764,
|
|
6988
|
+
cong: 8773,
|
|
6989
|
+
asymp: 8776,
|
|
6990
|
+
ne: 8800,
|
|
6991
|
+
equiv: 8801,
|
|
6992
|
+
le: 8804,
|
|
6993
|
+
ge: 8805,
|
|
6994
|
+
sub: 8834,
|
|
6995
|
+
sup: 8835,
|
|
6996
|
+
nsub: 8836,
|
|
6997
|
+
sube: 8838,
|
|
6998
|
+
supe: 8839,
|
|
6999
|
+
oplus: 8853,
|
|
7000
|
+
otimes: 8855,
|
|
7001
|
+
perp: 8869,
|
|
7002
|
+
sdot: 8901,
|
|
7003
|
+
lceil: 8968,
|
|
7004
|
+
rceil: 8969,
|
|
7005
|
+
lfloor: 8970,
|
|
7006
|
+
rfloor: 8971,
|
|
7007
|
+
lang: 9001,
|
|
7008
|
+
rang: 9002,
|
|
7009
|
+
loz: 9674,
|
|
7010
|
+
spades: 9824,
|
|
7011
|
+
clubs: 9827,
|
|
7012
|
+
hearts: 9829,
|
|
7013
|
+
diams: 9830
|
|
7014
|
+
});
|
|
6941
7015
|
Object.keys(sax.ENTITIES).forEach(function (key) {
|
|
6942
7016
|
var e = sax.ENTITIES[key];
|
|
6943
7017
|
var s = typeof e === 'number' ? String.fromCharCode(e) : e;
|
|
@@ -6952,6 +7026,36 @@ function requireSax() {
|
|
|
6952
7026
|
function emit(parser, event, data) {
|
|
6953
7027
|
parser[event] && parser[event](data);
|
|
6954
7028
|
}
|
|
7029
|
+
function getDeclaredEncoding(body) {
|
|
7030
|
+
var match = body && body.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i);
|
|
7031
|
+
return match ? match[2] : null;
|
|
7032
|
+
}
|
|
7033
|
+
function normalizeEncodingName(encoding) {
|
|
7034
|
+
if (!encoding) {
|
|
7035
|
+
return null;
|
|
7036
|
+
}
|
|
7037
|
+
return encoding.toLowerCase().replace(/[^a-z0-9]/g, '');
|
|
7038
|
+
}
|
|
7039
|
+
function encodingsMatch(detectedEncoding, declaredEncoding) {
|
|
7040
|
+
var detected = normalizeEncodingName(detectedEncoding);
|
|
7041
|
+
var declared = normalizeEncodingName(declaredEncoding);
|
|
7042
|
+
if (!detected || !declared) {
|
|
7043
|
+
return true;
|
|
7044
|
+
}
|
|
7045
|
+
if (declared === 'utf16') {
|
|
7046
|
+
return detected === 'utf16le' || detected === 'utf16be';
|
|
7047
|
+
}
|
|
7048
|
+
return detected === declared;
|
|
7049
|
+
}
|
|
7050
|
+
function validateXmlDeclarationEncoding(parser, data) {
|
|
7051
|
+
if (!parser.strict || !parser.encoding || !data || data.name !== 'xml') {
|
|
7052
|
+
return;
|
|
7053
|
+
}
|
|
7054
|
+
var declaredEncoding = getDeclaredEncoding(data.body);
|
|
7055
|
+
if (declaredEncoding && !encodingsMatch(parser.encoding, declaredEncoding)) {
|
|
7056
|
+
strictFail(parser, 'XML declaration encoding ' + declaredEncoding + ' does not match detected stream encoding ' + parser.encoding.toUpperCase());
|
|
7057
|
+
}
|
|
7058
|
+
}
|
|
6955
7059
|
function emitNode(parser, nodeType, data) {
|
|
6956
7060
|
if (parser.textNode) closeText(parser);
|
|
6957
7061
|
emit(parser, nodeType, data);
|
|
@@ -7236,12 +7340,22 @@ function requireSax() {
|
|
|
7236
7340
|
}
|
|
7237
7341
|
}
|
|
7238
7342
|
entity = entity.replace(/^0+/, '');
|
|
7239
|
-
if (isNaN(num) || numStr.toLowerCase() !== entity) {
|
|
7343
|
+
if (isNaN(num) || numStr.toLowerCase() !== entity || num < 0 || num > 0x10ffff || !isXmlChar(num)) {
|
|
7240
7344
|
strictFail(parser, 'Invalid character entity');
|
|
7241
7345
|
return '&' + parser.entity + ';';
|
|
7242
7346
|
}
|
|
7243
7347
|
return String.fromCodePoint(num);
|
|
7244
7348
|
}
|
|
7349
|
+
|
|
7350
|
+
// Returns true if `num` is a code point that matches the XML `Char`
|
|
7351
|
+
// production, false otherwise. Character references that resolve to a
|
|
7352
|
+
// character outside this range (e.g. surrogates or restricted control
|
|
7353
|
+
// characters) are not well-formed.
|
|
7354
|
+
// https://www.w3.org/TR/REC-xml/#NT-Char
|
|
7355
|
+
// https://www.w3.org/TR/REC-xml/#wf-Legalchar
|
|
7356
|
+
function isXmlChar(num) {
|
|
7357
|
+
return num === 0x9 || num === 0xa || num === 0xd || num >= 0x20 && num <= 0xd7ff || num >= 0xe000 && num <= 0xfffd || num >= 0x10000 && num <= 0x10ffff;
|
|
7358
|
+
}
|
|
7245
7359
|
function beginWhiteSpace(parser, c) {
|
|
7246
7360
|
if (c === '<') {
|
|
7247
7361
|
parser.state = S.OPEN_WAKA;
|
|
@@ -7386,12 +7500,12 @@ function requireSax() {
|
|
|
7386
7500
|
parser.state = S.DOCTYPE_DTD;
|
|
7387
7501
|
parser.doctype += '<!' + parser.sgmlDecl + c;
|
|
7388
7502
|
parser.sgmlDecl = '';
|
|
7389
|
-
} else if ((parser.sgmlDecl + c)
|
|
7503
|
+
} else if (CDATAre.test(parser.sgmlDecl + c)) {
|
|
7390
7504
|
emitNode(parser, 'onopencdata');
|
|
7391
7505
|
parser.state = S.CDATA;
|
|
7392
7506
|
parser.sgmlDecl = '';
|
|
7393
7507
|
parser.cdata = '';
|
|
7394
|
-
} else if ((parser.sgmlDecl + c)
|
|
7508
|
+
} else if (DOCTYPEre.test(parser.sgmlDecl + c)) {
|
|
7395
7509
|
parser.state = S.DOCTYPE;
|
|
7396
7510
|
if (parser.doctype || parser.sawRoot) {
|
|
7397
7511
|
strictFail(parser, 'Inappropriately located doctype declaration');
|
|
@@ -7494,10 +7608,22 @@ function requireSax() {
|
|
|
7494
7608
|
}
|
|
7495
7609
|
continue;
|
|
7496
7610
|
case S.CDATA:
|
|
7611
|
+
var starti = i - 1;
|
|
7612
|
+
while (c && c !== ']') {
|
|
7613
|
+
c = charAt(chunk, i++);
|
|
7614
|
+
if (c && parser.trackPosition) {
|
|
7615
|
+
parser.position++;
|
|
7616
|
+
if (c === '\n') {
|
|
7617
|
+
parser.line++;
|
|
7618
|
+
parser.column = 0;
|
|
7619
|
+
} else {
|
|
7620
|
+
parser.column++;
|
|
7621
|
+
}
|
|
7622
|
+
}
|
|
7623
|
+
}
|
|
7624
|
+
parser.cdata += chunk.substring(starti, i - 1);
|
|
7497
7625
|
if (c === ']') {
|
|
7498
7626
|
parser.state = S.CDATA_ENDING;
|
|
7499
|
-
} else {
|
|
7500
|
-
parser.cdata += c;
|
|
7501
7627
|
}
|
|
7502
7628
|
continue;
|
|
7503
7629
|
case S.CDATA_ENDING:
|
|
@@ -7543,10 +7669,12 @@ function requireSax() {
|
|
|
7543
7669
|
continue;
|
|
7544
7670
|
case S.PROC_INST_ENDING:
|
|
7545
7671
|
if (c === '>') {
|
|
7546
|
-
|
|
7672
|
+
var procInstEndData = {
|
|
7547
7673
|
name: parser.procInstName,
|
|
7548
7674
|
body: parser.procInstBody
|
|
7549
|
-
}
|
|
7675
|
+
};
|
|
7676
|
+
validateXmlDeclarationEncoding(parser, procInstEndData);
|
|
7677
|
+
emitNode(parser, 'onprocessinginstruction', procInstEndData);
|
|
7550
7678
|
parser.procInstName = parser.procInstBody = '';
|
|
7551
7679
|
parser.state = S.TEXT;
|
|
7552
7680
|
} else {
|
|
@@ -7715,7 +7843,7 @@ function requireSax() {
|
|
|
7715
7843
|
} else if (isMatch(nameBody, c)) {
|
|
7716
7844
|
parser.tagName += c;
|
|
7717
7845
|
} else if (parser.script) {
|
|
7718
|
-
parser.script += '</' + parser.tagName;
|
|
7846
|
+
parser.script += '</' + parser.tagName + c;
|
|
7719
7847
|
parser.tagName = '';
|
|
7720
7848
|
parser.state = S.SCRIPT;
|
|
7721
7849
|
} else {
|
|
@@ -7757,9 +7885,16 @@ function requireSax() {
|
|
|
7757
7885
|
if (c === ';') {
|
|
7758
7886
|
var parsedEntity = parseEntity(parser);
|
|
7759
7887
|
if (parser.opt.unparsedEntities && !Object.values(sax.XML_ENTITIES).includes(parsedEntity)) {
|
|
7888
|
+
if ((parser.entityCount += 1) > parser.opt.maxEntityCount) {
|
|
7889
|
+
error(parser, 'Parsed entity count exceeds max entity count');
|
|
7890
|
+
}
|
|
7891
|
+
if ((parser.entityDepth += 1) > parser.opt.maxEntityDepth) {
|
|
7892
|
+
error(parser, 'Parsed entity depth exceeds max entity depth');
|
|
7893
|
+
}
|
|
7760
7894
|
parser.entity = '';
|
|
7761
7895
|
parser.state = returnState;
|
|
7762
7896
|
parser.write(parsedEntity);
|
|
7897
|
+
parser.entityDepth -= 1;
|
|
7763
7898
|
} else {
|
|
7764
7899
|
parser[buffer] += parsedEntity;
|
|
7765
7900
|
parser.entity = '';
|
|
@@ -7810,21 +7945,21 @@ function requireSax() {
|
|
|
7810
7945
|
// `NaN`, `+Infinity`, or `-Infinity`
|
|
7811
7946
|
codePoint < 0 ||
|
|
7812
7947
|
// not a valid Unicode code point
|
|
7813
|
-
codePoint >
|
|
7948
|
+
codePoint > 0x10ffff ||
|
|
7814
7949
|
// not a valid Unicode code point
|
|
7815
7950
|
floor(codePoint) !== codePoint // not an integer
|
|
7816
7951
|
) {
|
|
7817
7952
|
throw RangeError('Invalid code point: ' + codePoint);
|
|
7818
7953
|
}
|
|
7819
|
-
if (codePoint <=
|
|
7954
|
+
if (codePoint <= 0xffff) {
|
|
7820
7955
|
// BMP code point
|
|
7821
7956
|
codeUnits.push(codePoint);
|
|
7822
7957
|
} else {
|
|
7823
7958
|
// Astral code point; split in surrogate halves
|
|
7824
7959
|
// http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
|
|
7825
7960
|
codePoint -= 0x10000;
|
|
7826
|
-
highSurrogate = (codePoint >> 10) +
|
|
7827
|
-
lowSurrogate = codePoint % 0x400 +
|
|
7961
|
+
highSurrogate = (codePoint >> 10) + 0xd800;
|
|
7962
|
+
lowSurrogate = codePoint % 0x400 + 0xdc00;
|
|
7828
7963
|
codeUnits.push(highSurrogate, lowSurrogate);
|
|
7829
7964
|
}
|
|
7830
7965
|
if (index + 1 === length || codeUnits.length > MAX_SIZE) {
|
|
@@ -7846,7 +7981,7 @@ function requireSax() {
|
|
|
7846
7981
|
}
|
|
7847
7982
|
})();
|
|
7848
7983
|
}
|
|
7849
|
-
})(exports
|
|
7984
|
+
})(exports);
|
|
7850
7985
|
})(sax);
|
|
7851
7986
|
return sax;
|
|
7852
7987
|
}
|
|
@@ -7911,7 +8046,7 @@ var hasRequiredParser;
|
|
|
7911
8046
|
function requireParser() {
|
|
7912
8047
|
if (hasRequiredParser) return parser;
|
|
7913
8048
|
hasRequiredParser = 1;
|
|
7914
|
-
(function (exports
|
|
8049
|
+
(function (exports) {
|
|
7915
8050
|
// Generated by CoffeeScript 1.12.7
|
|
7916
8051
|
(function () {
|
|
7917
8052
|
|
|
@@ -7968,7 +8103,7 @@ function requireParser() {
|
|
|
7968
8103
|
descriptor.configurable = true;
|
|
7969
8104
|
return Object.defineProperty(obj, key, descriptor);
|
|
7970
8105
|
};
|
|
7971
|
-
exports
|
|
8106
|
+
exports.Parser = function (superClass) {
|
|
7972
8107
|
extend(Parser, superClass);
|
|
7973
8108
|
function Parser(opts) {
|
|
7974
8109
|
this.parseStringPromise = bind(this.parseStringPromise, this);
|
|
@@ -7977,8 +8112,8 @@ function requireParser() {
|
|
|
7977
8112
|
this.assignOrPush = bind(this.assignOrPush, this);
|
|
7978
8113
|
this.processAsync = bind(this.processAsync, this);
|
|
7979
8114
|
var key, ref, value;
|
|
7980
|
-
if (!(this instanceof exports
|
|
7981
|
-
return new exports
|
|
8115
|
+
if (!(this instanceof exports.Parser)) {
|
|
8116
|
+
return new exports.Parser(opts);
|
|
7982
8117
|
}
|
|
7983
8118
|
this.options = {};
|
|
7984
8119
|
ref = defaults["0.2"];
|
|
@@ -8282,7 +8417,7 @@ function requireParser() {
|
|
|
8282
8417
|
};
|
|
8283
8418
|
return Parser;
|
|
8284
8419
|
}(events);
|
|
8285
|
-
exports
|
|
8420
|
+
exports.parseString = function (str, a, b) {
|
|
8286
8421
|
var cb, options, parser;
|
|
8287
8422
|
if (b != null) {
|
|
8288
8423
|
if (typeof b === 'function') {
|
|
@@ -8297,15 +8432,15 @@ function requireParser() {
|
|
|
8297
8432
|
}
|
|
8298
8433
|
options = {};
|
|
8299
8434
|
}
|
|
8300
|
-
parser = new exports
|
|
8435
|
+
parser = new exports.Parser(options);
|
|
8301
8436
|
return parser.parseString(str, cb);
|
|
8302
8437
|
};
|
|
8303
|
-
exports
|
|
8438
|
+
exports.parseStringPromise = function (str, a) {
|
|
8304
8439
|
var options, parser;
|
|
8305
8440
|
if (_typeof(a) === 'object') {
|
|
8306
8441
|
options = a;
|
|
8307
8442
|
}
|
|
8308
|
-
parser = new exports
|
|
8443
|
+
parser = new exports.Parser(options);
|
|
8309
8444
|
return parser.parseStringPromise(str);
|
|
8310
8445
|
};
|
|
8311
8446
|
}).call(commonjsGlobal);
|
|
@@ -8797,7 +8932,7 @@ var gate$1 = {};
|
|
|
8797
8932
|
|
|
8798
8933
|
gate$1.create = create;
|
|
8799
8934
|
var util$3 = require$$1$1;
|
|
8800
|
-
var assert = require$$1$
|
|
8935
|
+
var assert = require$$1$4;
|
|
8801
8936
|
var noop$1 = function noop() {};
|
|
8802
8937
|
function create(options) {
|
|
8803
8938
|
return new Gate(options);
|
|
@@ -10797,7 +10932,7 @@ function toIdentifier(str) {
|
|
|
10797
10932
|
* @private
|
|
10798
10933
|
*/
|
|
10799
10934
|
|
|
10800
|
-
function populateConstructorExports(exports
|
|
10935
|
+
function populateConstructorExports(exports, codes, HttpError) {
|
|
10801
10936
|
codes.forEach(function forEachCode(code) {
|
|
10802
10937
|
var CodeError;
|
|
10803
10938
|
var name = toIdentifier(statuses.message[code]);
|
|
@@ -10811,8 +10946,8 @@ function toIdentifier(str) {
|
|
|
10811
10946
|
}
|
|
10812
10947
|
if (CodeError) {
|
|
10813
10948
|
// export the constructor
|
|
10814
|
-
exports
|
|
10815
|
-
exports
|
|
10949
|
+
exports[code] = CodeError;
|
|
10950
|
+
exports[name] = CodeError;
|
|
10816
10951
|
}
|
|
10817
10952
|
});
|
|
10818
10953
|
}
|
|
@@ -10988,7 +11123,7 @@ var hasRequiredDebug$3;
|
|
|
10988
11123
|
function requireDebug$3() {
|
|
10989
11124
|
if (hasRequiredDebug$3) return debug$9.exports;
|
|
10990
11125
|
hasRequiredDebug$3 = 1;
|
|
10991
|
-
(function (module, exports
|
|
11126
|
+
(function (module, exports) {
|
|
10992
11127
|
/**
|
|
10993
11128
|
* This is the common logic for both the Node.js and web browser
|
|
10994
11129
|
* implementations of `debug()`.
|
|
@@ -10996,19 +11131,19 @@ function requireDebug$3() {
|
|
|
10996
11131
|
* Expose `debug()` as the module.
|
|
10997
11132
|
*/
|
|
10998
11133
|
|
|
10999
|
-
exports
|
|
11000
|
-
exports
|
|
11001
|
-
exports
|
|
11002
|
-
exports
|
|
11003
|
-
exports
|
|
11004
|
-
exports
|
|
11134
|
+
exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
|
|
11135
|
+
exports.coerce = coerce;
|
|
11136
|
+
exports.disable = disable;
|
|
11137
|
+
exports.enable = enable;
|
|
11138
|
+
exports.enabled = enabled;
|
|
11139
|
+
exports.humanize = requireMs$3();
|
|
11005
11140
|
|
|
11006
11141
|
/**
|
|
11007
11142
|
* The currently active debug mode names, and names to skip.
|
|
11008
11143
|
*/
|
|
11009
11144
|
|
|
11010
|
-
exports
|
|
11011
|
-
exports
|
|
11145
|
+
exports.names = [];
|
|
11146
|
+
exports.skips = [];
|
|
11012
11147
|
|
|
11013
11148
|
/**
|
|
11014
11149
|
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
@@ -11016,7 +11151,7 @@ function requireDebug$3() {
|
|
|
11016
11151
|
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
11017
11152
|
*/
|
|
11018
11153
|
|
|
11019
|
-
exports
|
|
11154
|
+
exports.formatters = {};
|
|
11020
11155
|
|
|
11021
11156
|
/**
|
|
11022
11157
|
* Previous log timestamp.
|
|
@@ -11038,7 +11173,7 @@ function requireDebug$3() {
|
|
|
11038
11173
|
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
11039
11174
|
hash |= 0; // Convert to 32bit integer
|
|
11040
11175
|
}
|
|
11041
|
-
return exports
|
|
11176
|
+
return exports.colors[Math.abs(hash) % exports.colors.length];
|
|
11042
11177
|
}
|
|
11043
11178
|
|
|
11044
11179
|
/**
|
|
@@ -11068,7 +11203,7 @@ function requireDebug$3() {
|
|
|
11068
11203
|
for (var i = 0; i < args.length; i++) {
|
|
11069
11204
|
args[i] = arguments[i];
|
|
11070
11205
|
}
|
|
11071
|
-
args[0] = exports
|
|
11206
|
+
args[0] = exports.coerce(args[0]);
|
|
11072
11207
|
if ('string' !== typeof args[0]) {
|
|
11073
11208
|
// anything else let's inspect with %O
|
|
11074
11209
|
args.unshift('%O');
|
|
@@ -11080,7 +11215,7 @@ function requireDebug$3() {
|
|
|
11080
11215
|
// if we encounter an escaped % then don't increase the array index
|
|
11081
11216
|
if (match === '%%') return match;
|
|
11082
11217
|
index++;
|
|
11083
|
-
var formatter = exports
|
|
11218
|
+
var formatter = exports.formatters[format];
|
|
11084
11219
|
if ('function' === typeof formatter) {
|
|
11085
11220
|
var val = args[index];
|
|
11086
11221
|
match = formatter.call(self, val);
|
|
@@ -11093,18 +11228,18 @@ function requireDebug$3() {
|
|
|
11093
11228
|
});
|
|
11094
11229
|
|
|
11095
11230
|
// apply env-specific formatting (colors, etc.)
|
|
11096
|
-
exports
|
|
11097
|
-
var logFn = debug.log || exports
|
|
11231
|
+
exports.formatArgs.call(self, args);
|
|
11232
|
+
var logFn = debug.log || exports.log || console.log.bind(console);
|
|
11098
11233
|
logFn.apply(self, args);
|
|
11099
11234
|
}
|
|
11100
11235
|
debug.namespace = namespace;
|
|
11101
|
-
debug.enabled = exports
|
|
11102
|
-
debug.useColors = exports
|
|
11236
|
+
debug.enabled = exports.enabled(namespace);
|
|
11237
|
+
debug.useColors = exports.useColors();
|
|
11103
11238
|
debug.color = selectColor(namespace);
|
|
11104
11239
|
|
|
11105
11240
|
// env-specific initialization logic for debug instances
|
|
11106
|
-
if ('function' === typeof exports
|
|
11107
|
-
exports
|
|
11241
|
+
if ('function' === typeof exports.init) {
|
|
11242
|
+
exports.init(debug);
|
|
11108
11243
|
}
|
|
11109
11244
|
return debug;
|
|
11110
11245
|
}
|
|
@@ -11118,18 +11253,18 @@ function requireDebug$3() {
|
|
|
11118
11253
|
*/
|
|
11119
11254
|
|
|
11120
11255
|
function enable(namespaces) {
|
|
11121
|
-
exports
|
|
11122
|
-
exports
|
|
11123
|
-
exports
|
|
11256
|
+
exports.save(namespaces);
|
|
11257
|
+
exports.names = [];
|
|
11258
|
+
exports.skips = [];
|
|
11124
11259
|
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
|
11125
11260
|
var len = split.length;
|
|
11126
11261
|
for (var i = 0; i < len; i++) {
|
|
11127
11262
|
if (!split[i]) continue; // ignore empty strings
|
|
11128
11263
|
namespaces = split[i].replace(/\*/g, '.*?');
|
|
11129
11264
|
if (namespaces[0] === '-') {
|
|
11130
|
-
exports
|
|
11265
|
+
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
11131
11266
|
} else {
|
|
11132
|
-
exports
|
|
11267
|
+
exports.names.push(new RegExp('^' + namespaces + '$'));
|
|
11133
11268
|
}
|
|
11134
11269
|
}
|
|
11135
11270
|
}
|
|
@@ -11141,7 +11276,7 @@ function requireDebug$3() {
|
|
|
11141
11276
|
*/
|
|
11142
11277
|
|
|
11143
11278
|
function disable() {
|
|
11144
|
-
exports
|
|
11279
|
+
exports.enable('');
|
|
11145
11280
|
}
|
|
11146
11281
|
|
|
11147
11282
|
/**
|
|
@@ -11154,13 +11289,13 @@ function requireDebug$3() {
|
|
|
11154
11289
|
|
|
11155
11290
|
function enabled(name) {
|
|
11156
11291
|
var i, len;
|
|
11157
|
-
for (i = 0, len = exports
|
|
11158
|
-
if (exports
|
|
11292
|
+
for (i = 0, len = exports.skips.length; i < len; i++) {
|
|
11293
|
+
if (exports.skips[i].test(name)) {
|
|
11159
11294
|
return false;
|
|
11160
11295
|
}
|
|
11161
11296
|
}
|
|
11162
|
-
for (i = 0, len = exports
|
|
11163
|
-
if (exports
|
|
11297
|
+
for (i = 0, len = exports.names.length; i < len; i++) {
|
|
11298
|
+
if (exports.names[i].test(name)) {
|
|
11164
11299
|
return true;
|
|
11165
11300
|
}
|
|
11166
11301
|
}
|
|
@@ -11187,20 +11322,20 @@ var hasRequiredBrowser$3;
|
|
|
11187
11322
|
function requireBrowser$3() {
|
|
11188
11323
|
if (hasRequiredBrowser$3) return browser$3.exports;
|
|
11189
11324
|
hasRequiredBrowser$3 = 1;
|
|
11190
|
-
(function (module, exports
|
|
11191
|
-
exports
|
|
11192
|
-
exports
|
|
11193
|
-
exports
|
|
11194
|
-
exports
|
|
11195
|
-
exports
|
|
11196
|
-
exports
|
|
11197
|
-
exports
|
|
11325
|
+
(function (module, exports) {
|
|
11326
|
+
exports = module.exports = requireDebug$3();
|
|
11327
|
+
exports.log = log;
|
|
11328
|
+
exports.formatArgs = formatArgs;
|
|
11329
|
+
exports.save = save;
|
|
11330
|
+
exports.load = load;
|
|
11331
|
+
exports.useColors = useColors;
|
|
11332
|
+
exports.storage = 'undefined' != typeof chrome && 'undefined' != typeof chrome.storage ? chrome.storage.local : localstorage();
|
|
11198
11333
|
|
|
11199
11334
|
/**
|
|
11200
11335
|
* Colors.
|
|
11201
11336
|
*/
|
|
11202
11337
|
|
|
11203
|
-
exports
|
|
11338
|
+
exports.colors = ['lightseagreen', 'forestgreen', 'goldenrod', 'dodgerblue', 'darkorchid', 'crimson'];
|
|
11204
11339
|
|
|
11205
11340
|
/**
|
|
11206
11341
|
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
@@ -11234,7 +11369,7 @@ function requireBrowser$3() {
|
|
|
11234
11369
|
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
11235
11370
|
*/
|
|
11236
11371
|
|
|
11237
|
-
exports
|
|
11372
|
+
exports.formatters.j = function (v) {
|
|
11238
11373
|
try {
|
|
11239
11374
|
return JSON.stringify(v);
|
|
11240
11375
|
} catch (err) {
|
|
@@ -11250,7 +11385,7 @@ function requireBrowser$3() {
|
|
|
11250
11385
|
|
|
11251
11386
|
function formatArgs(args) {
|
|
11252
11387
|
var useColors = this.useColors;
|
|
11253
|
-
args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports
|
|
11388
|
+
args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff);
|
|
11254
11389
|
if (!useColors) return;
|
|
11255
11390
|
var c = 'color: ' + this.color;
|
|
11256
11391
|
args.splice(1, 0, c, 'color: inherit');
|
|
@@ -11295,9 +11430,9 @@ function requireBrowser$3() {
|
|
|
11295
11430
|
function save(namespaces) {
|
|
11296
11431
|
try {
|
|
11297
11432
|
if (null == namespaces) {
|
|
11298
|
-
exports
|
|
11433
|
+
exports.storage.removeItem('debug');
|
|
11299
11434
|
} else {
|
|
11300
|
-
exports
|
|
11435
|
+
exports.storage.debug = namespaces;
|
|
11301
11436
|
}
|
|
11302
11437
|
} catch (e) {}
|
|
11303
11438
|
}
|
|
@@ -11312,7 +11447,7 @@ function requireBrowser$3() {
|
|
|
11312
11447
|
function load() {
|
|
11313
11448
|
var r;
|
|
11314
11449
|
try {
|
|
11315
|
-
r = exports
|
|
11450
|
+
r = exports.storage.debug;
|
|
11316
11451
|
} catch (e) {}
|
|
11317
11452
|
|
|
11318
11453
|
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
@@ -11326,7 +11461,7 @@ function requireBrowser$3() {
|
|
|
11326
11461
|
* Enable namespaces listed in `localStorage.debug` initially.
|
|
11327
11462
|
*/
|
|
11328
11463
|
|
|
11329
|
-
exports
|
|
11464
|
+
exports.enable(load());
|
|
11330
11465
|
|
|
11331
11466
|
/**
|
|
11332
11467
|
* Localstorage attempts to return the localstorage.
|
|
@@ -11357,7 +11492,7 @@ var hasRequiredNode$3;
|
|
|
11357
11492
|
function requireNode$3() {
|
|
11358
11493
|
if (hasRequiredNode$3) return node$3.exports;
|
|
11359
11494
|
hasRequiredNode$3 = 1;
|
|
11360
|
-
(function (module, exports
|
|
11495
|
+
(function (module, exports) {
|
|
11361
11496
|
var tty = require$$0$5;
|
|
11362
11497
|
var util = require$$1$1;
|
|
11363
11498
|
|
|
@@ -11367,19 +11502,19 @@ function requireNode$3() {
|
|
|
11367
11502
|
* Expose `debug()` as the module.
|
|
11368
11503
|
*/
|
|
11369
11504
|
|
|
11370
|
-
exports
|
|
11371
|
-
exports
|
|
11372
|
-
exports
|
|
11373
|
-
exports
|
|
11374
|
-
exports
|
|
11375
|
-
exports
|
|
11376
|
-
exports
|
|
11505
|
+
exports = module.exports = requireDebug$3();
|
|
11506
|
+
exports.init = init;
|
|
11507
|
+
exports.log = log;
|
|
11508
|
+
exports.formatArgs = formatArgs;
|
|
11509
|
+
exports.save = save;
|
|
11510
|
+
exports.load = load;
|
|
11511
|
+
exports.useColors = useColors;
|
|
11377
11512
|
|
|
11378
11513
|
/**
|
|
11379
11514
|
* Colors.
|
|
11380
11515
|
*/
|
|
11381
11516
|
|
|
11382
|
-
exports
|
|
11517
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
11383
11518
|
|
|
11384
11519
|
/**
|
|
11385
11520
|
* Build up the default `inspectOpts` object from the environment variables.
|
|
@@ -11387,7 +11522,7 @@ function requireNode$3() {
|
|
|
11387
11522
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
11388
11523
|
*/
|
|
11389
11524
|
|
|
11390
|
-
exports
|
|
11525
|
+
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
|
11391
11526
|
return /^debug_/i.test(key);
|
|
11392
11527
|
}).reduce(function (obj, key) {
|
|
11393
11528
|
// camel-case
|
|
@@ -11420,14 +11555,14 @@ function requireNode$3() {
|
|
|
11420
11555
|
*/
|
|
11421
11556
|
|
|
11422
11557
|
function useColors() {
|
|
11423
|
-
return 'colors' in exports
|
|
11558
|
+
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(fd);
|
|
11424
11559
|
}
|
|
11425
11560
|
|
|
11426
11561
|
/**
|
|
11427
11562
|
* Map %o to `util.inspect()`, all on a single line.
|
|
11428
11563
|
*/
|
|
11429
11564
|
|
|
11430
|
-
exports
|
|
11565
|
+
exports.formatters.o = function (v) {
|
|
11431
11566
|
this.inspectOpts.colors = this.useColors;
|
|
11432
11567
|
return util.inspect(v, this.inspectOpts).split('\n').map(function (str) {
|
|
11433
11568
|
return str.trim();
|
|
@@ -11438,7 +11573,7 @@ function requireNode$3() {
|
|
|
11438
11573
|
* Map %o to `util.inspect()`, allowing multiple lines if needed.
|
|
11439
11574
|
*/
|
|
11440
11575
|
|
|
11441
|
-
exports
|
|
11576
|
+
exports.formatters.O = function (v) {
|
|
11442
11577
|
this.inspectOpts.colors = this.useColors;
|
|
11443
11578
|
return util.inspect(v, this.inspectOpts);
|
|
11444
11579
|
};
|
|
@@ -11456,7 +11591,7 @@ function requireNode$3() {
|
|
|
11456
11591
|
var c = this.color;
|
|
11457
11592
|
var prefix = " \x1B[3" + c + ';1m' + name + ' ' + "\x1B[0m";
|
|
11458
11593
|
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
|
11459
|
-
args.push("\x1B[3" + c + 'm+' + exports
|
|
11594
|
+
args.push("\x1B[3" + c + 'm+' + exports.humanize(this.diff) + "\x1B[0m");
|
|
11460
11595
|
} else {
|
|
11461
11596
|
args[0] = new Date().toUTCString() + ' ' + name + ' ' + args[0];
|
|
11462
11597
|
}
|
|
@@ -11572,9 +11707,9 @@ function requireNode$3() {
|
|
|
11572
11707
|
|
|
11573
11708
|
function init(debug) {
|
|
11574
11709
|
debug.inspectOpts = {};
|
|
11575
|
-
var keys = Object.keys(exports
|
|
11710
|
+
var keys = Object.keys(exports.inspectOpts);
|
|
11576
11711
|
for (var i = 0; i < keys.length; i++) {
|
|
11577
|
-
debug.inspectOpts[keys[i]] = exports
|
|
11712
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
11578
11713
|
}
|
|
11579
11714
|
}
|
|
11580
11715
|
|
|
@@ -11582,7 +11717,7 @@ function requireNode$3() {
|
|
|
11582
11717
|
* Enable namespaces listed in `process.env.DEBUG` initially.
|
|
11583
11718
|
*/
|
|
11584
11719
|
|
|
11585
|
-
exports
|
|
11720
|
+
exports.enable(load());
|
|
11586
11721
|
})(node$3, node$3.exports);
|
|
11587
11722
|
return node$3.exports;
|
|
11588
11723
|
}
|
|
@@ -11617,7 +11752,7 @@ function requireSrc() {
|
|
|
11617
11752
|
|
|
11618
11753
|
var EventEmitter = require$$1$2.EventEmitter;
|
|
11619
11754
|
var ReadStream = require$$3$2.ReadStream;
|
|
11620
|
-
var Stream$1 = require$$1$
|
|
11755
|
+
var Stream$1 = require$$1$5;
|
|
11621
11756
|
var Zlib = require$$3$3;
|
|
11622
11757
|
|
|
11623
11758
|
/**
|
|
@@ -11981,7 +12116,7 @@ function requireInternal() {
|
|
|
11981
12116
|
//------------------------------------------------------------------------------
|
|
11982
12117
|
|
|
11983
12118
|
// We use node.js internal decoder. Its signature is the same as ours.
|
|
11984
|
-
var StringDecoder = require$$1$
|
|
12119
|
+
var StringDecoder = require$$1$6.StringDecoder;
|
|
11985
12120
|
if (!StringDecoder.prototype.end)
|
|
11986
12121
|
// Node v0.8 doesn't have this method.
|
|
11987
12122
|
StringDecoder.prototype.end = function () {};
|
|
@@ -22160,7 +22295,7 @@ var hasRequiredEncodings;
|
|
|
22160
22295
|
function requireEncodings() {
|
|
22161
22296
|
if (hasRequiredEncodings) return encodings;
|
|
22162
22297
|
hasRequiredEncodings = 1;
|
|
22163
|
-
(function (exports
|
|
22298
|
+
(function (exports) {
|
|
22164
22299
|
|
|
22165
22300
|
// Update this array if you add/rename/remove files in this directory.
|
|
22166
22301
|
// We support Browserify by skipping automatic module discovery and requiring modules directly.
|
|
@@ -22169,7 +22304,7 @@ function requireEncodings() {
|
|
|
22169
22304
|
// Put all encoding/alias/codec definitions to single object and export it.
|
|
22170
22305
|
for (var i = 0; i < modules.length; i++) {
|
|
22171
22306
|
var module = modules[i];
|
|
22172
|
-
for (var enc in module) if (Object.prototype.hasOwnProperty.call(module, enc)) exports
|
|
22307
|
+
for (var enc in module) if (Object.prototype.hasOwnProperty.call(module, enc)) exports[enc] = module[enc];
|
|
22173
22308
|
}
|
|
22174
22309
|
})(encodings);
|
|
22175
22310
|
return encodings;
|
|
@@ -22181,7 +22316,7 @@ function requireStreams() {
|
|
|
22181
22316
|
if (hasRequiredStreams) return streams;
|
|
22182
22317
|
hasRequiredStreams = 1;
|
|
22183
22318
|
var Buffer = require$$0$6.Buffer,
|
|
22184
|
-
Transform = require$$1$
|
|
22319
|
+
Transform = require$$1$5.Transform;
|
|
22185
22320
|
|
|
22186
22321
|
// == Exports ==================================================================
|
|
22187
22322
|
streams = function streams(iconv) {
|
|
@@ -22456,7 +22591,7 @@ function requireExtendNode() {
|
|
|
22456
22591
|
|
|
22457
22592
|
// -- Readable -------------------------------------------------------------
|
|
22458
22593
|
if (iconv.supportsStreams) {
|
|
22459
|
-
var Readable = require$$1$
|
|
22594
|
+
var Readable = require$$1$5.Readable;
|
|
22460
22595
|
original.ReadableSetEncoding = Readable.prototype.setEncoding;
|
|
22461
22596
|
Readable.prototype.setEncoding = function setEncoding(enc, options) {
|
|
22462
22597
|
// Use our own decoder, it has the same interface.
|
|
@@ -22481,7 +22616,7 @@ function requireExtendNode() {
|
|
|
22481
22616
|
Buffer.prototype.toString = original.BufferToString;
|
|
22482
22617
|
Buffer.prototype.write = original.BufferWrite;
|
|
22483
22618
|
if (iconv.supportsStreams) {
|
|
22484
|
-
var Readable = require$$1$
|
|
22619
|
+
var Readable = require$$1$5.Readable;
|
|
22485
22620
|
Readable.prototype.setEncoding = original.ReadableSetEncoding;
|
|
22486
22621
|
delete Readable.prototype.collect;
|
|
22487
22622
|
}
|
|
@@ -34446,7 +34581,7 @@ var mimeDb = require$$0;
|
|
|
34446
34581
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
34447
34582
|
* MIT Licensed
|
|
34448
34583
|
*/
|
|
34449
|
-
(function (exports
|
|
34584
|
+
(function (exports) {
|
|
34450
34585
|
|
|
34451
34586
|
/**
|
|
34452
34587
|
* Module dependencies.
|
|
@@ -34468,18 +34603,18 @@ var mimeDb = require$$0;
|
|
|
34468
34603
|
* @public
|
|
34469
34604
|
*/
|
|
34470
34605
|
|
|
34471
|
-
exports
|
|
34472
|
-
exports
|
|
34606
|
+
exports.charset = charset;
|
|
34607
|
+
exports.charsets = {
|
|
34473
34608
|
lookup: charset
|
|
34474
34609
|
};
|
|
34475
|
-
exports
|
|
34476
|
-
exports
|
|
34477
|
-
exports
|
|
34478
|
-
exports
|
|
34479
|
-
exports
|
|
34610
|
+
exports.contentType = contentType;
|
|
34611
|
+
exports.extension = extension;
|
|
34612
|
+
exports.extensions = Object.create(null);
|
|
34613
|
+
exports.lookup = lookup;
|
|
34614
|
+
exports.types = Object.create(null);
|
|
34480
34615
|
|
|
34481
34616
|
// Populate the extensions/types maps
|
|
34482
|
-
populateMaps(exports
|
|
34617
|
+
populateMaps(exports.extensions, exports.types);
|
|
34483
34618
|
|
|
34484
34619
|
/**
|
|
34485
34620
|
* Get the default charset for a MIME type.
|
|
@@ -34519,14 +34654,14 @@ var mimeDb = require$$0;
|
|
|
34519
34654
|
if (!str || typeof str !== 'string') {
|
|
34520
34655
|
return false;
|
|
34521
34656
|
}
|
|
34522
|
-
var mime = str.indexOf('/') === -1 ? exports
|
|
34657
|
+
var mime = str.indexOf('/') === -1 ? exports.lookup(str) : str;
|
|
34523
34658
|
if (!mime) {
|
|
34524
34659
|
return false;
|
|
34525
34660
|
}
|
|
34526
34661
|
|
|
34527
34662
|
// TODO: use content-type or other module
|
|
34528
34663
|
if (mime.indexOf('charset') === -1) {
|
|
34529
|
-
var charset = exports
|
|
34664
|
+
var charset = exports.charset(mime);
|
|
34530
34665
|
if (charset) mime += '; charset=' + charset.toLowerCase();
|
|
34531
34666
|
}
|
|
34532
34667
|
return mime;
|
|
@@ -34548,7 +34683,7 @@ var mimeDb = require$$0;
|
|
|
34548
34683
|
var match = EXTRACT_TYPE_REGEXP.exec(type);
|
|
34549
34684
|
|
|
34550
34685
|
// get extensions
|
|
34551
|
-
var exts = match && exports
|
|
34686
|
+
var exts = match && exports.extensions[match[1].toLowerCase()];
|
|
34552
34687
|
if (!exts || !exts.length) {
|
|
34553
34688
|
return false;
|
|
34554
34689
|
}
|
|
@@ -34572,7 +34707,7 @@ var mimeDb = require$$0;
|
|
|
34572
34707
|
if (!extension) {
|
|
34573
34708
|
return false;
|
|
34574
34709
|
}
|
|
34575
|
-
return exports
|
|
34710
|
+
return exports.types[extension] || false;
|
|
34576
34711
|
}
|
|
34577
34712
|
|
|
34578
34713
|
/**
|
|
@@ -35341,7 +35476,7 @@ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
|
35341
35476
|
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
35342
35477
|
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
35343
35478
|
var booleanValueOf = Boolean.prototype.valueOf;
|
|
35344
|
-
var objectToString = Object.prototype.toString;
|
|
35479
|
+
var objectToString$1 = Object.prototype.toString;
|
|
35345
35480
|
var functionToString = Function.prototype.toString;
|
|
35346
35481
|
var $match = String.prototype.match;
|
|
35347
35482
|
var $slice = String.prototype.slice;
|
|
@@ -35646,7 +35781,7 @@ function has$3(obj, key) {
|
|
|
35646
35781
|
return hasOwn$1.call(obj, key);
|
|
35647
35782
|
}
|
|
35648
35783
|
function toStr(obj) {
|
|
35649
|
-
return objectToString.call(obj);
|
|
35784
|
+
return objectToString$1.call(obj);
|
|
35650
35785
|
}
|
|
35651
35786
|
function nameOf(f) {
|
|
35652
35787
|
if (f.name) {
|
|
@@ -36934,14 +37069,14 @@ var formats$3 = {
|
|
|
36934
37069
|
};
|
|
36935
37070
|
|
|
36936
37071
|
var formats$2 = formats$3;
|
|
36937
|
-
var getSideChannel$
|
|
37072
|
+
var getSideChannel$2 = sideChannel;
|
|
36938
37073
|
var defineProperty = esDefineProperty;
|
|
36939
37074
|
var has$2 = Object.prototype.hasOwnProperty;
|
|
36940
37075
|
var isArray$2 = Array.isArray;
|
|
36941
37076
|
|
|
36942
37077
|
// Track objects created from arrayLimit overflow using side-channel
|
|
36943
37078
|
// Stores the current max numeric index for O(1) lookup
|
|
36944
|
-
var overflowChannel = getSideChannel$
|
|
37079
|
+
var overflowChannel = getSideChannel$2();
|
|
36945
37080
|
var markOverflow = function markOverflow(obj, maxIndex) {
|
|
36946
37081
|
overflowChannel.set(obj, maxIndex);
|
|
36947
37082
|
return obj;
|
|
@@ -36955,6 +37090,20 @@ var getMaxIndex = function getMaxIndex(obj) {
|
|
|
36955
37090
|
var setMaxIndex = function setMaxIndex(obj, maxIndex) {
|
|
36956
37091
|
overflowChannel.set(obj, maxIndex);
|
|
36957
37092
|
};
|
|
37093
|
+
|
|
37094
|
+
// Track containers produced by a `strictMerge` conflict wrap, and their current max numeric index,
|
|
37095
|
+
// so repeated conflicts on one path append instead of nesting a new wrapper each time
|
|
37096
|
+
var conflictChannel = getSideChannel$2();
|
|
37097
|
+
var markConflict = function markConflict(obj, maxIndex) {
|
|
37098
|
+
conflictChannel.set(obj, maxIndex);
|
|
37099
|
+
return obj;
|
|
37100
|
+
};
|
|
37101
|
+
var isConflict = function isConflict(obj) {
|
|
37102
|
+
return conflictChannel.has(obj);
|
|
37103
|
+
};
|
|
37104
|
+
var getConflictIndex = function getConflictIndex(obj) {
|
|
37105
|
+
return conflictChannel.get(obj);
|
|
37106
|
+
};
|
|
36958
37107
|
var hexTable = function () {
|
|
36959
37108
|
var array = [];
|
|
36960
37109
|
for (var i = 0; i < 256; ++i) {
|
|
@@ -37000,6 +37149,27 @@ var setProperty = function setProperty(obj, key, value) {
|
|
|
37000
37149
|
obj[key] = value;
|
|
37001
37150
|
}
|
|
37002
37151
|
};
|
|
37152
|
+
var maxNumericIndex = function maxNumericIndex(obj, min) {
|
|
37153
|
+
var max = min;
|
|
37154
|
+
var keys = Object.keys(obj);
|
|
37155
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
37156
|
+
var num = parseInt(keys[i], 10);
|
|
37157
|
+
if (String(num) === keys[i] && num > max) {
|
|
37158
|
+
max = num;
|
|
37159
|
+
}
|
|
37160
|
+
}
|
|
37161
|
+
return max;
|
|
37162
|
+
};
|
|
37163
|
+
var limitedPair = function limitedPair(first, second, options) {
|
|
37164
|
+
var pair = [first, second];
|
|
37165
|
+
if (options && typeof options.arrayLimit === 'number' && pair.length > options.arrayLimit) {
|
|
37166
|
+
if (options.throwOnLimitExceeded) {
|
|
37167
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
37168
|
+
}
|
|
37169
|
+
return markOverflow(arrayToObject(pair, options), 1);
|
|
37170
|
+
}
|
|
37171
|
+
return pair;
|
|
37172
|
+
};
|
|
37003
37173
|
var merge$2 = function merge(target, source, options) {
|
|
37004
37174
|
/* eslint no-param-reassign: 0 */
|
|
37005
37175
|
if (!source) {
|
|
@@ -37021,13 +37191,21 @@ var merge$2 = function merge(target, source, options) {
|
|
|
37021
37191
|
var newIndex = getMaxIndex(target) + 1;
|
|
37022
37192
|
target[newIndex] = source;
|
|
37023
37193
|
setMaxIndex(target, newIndex);
|
|
37194
|
+
} else if (options && options.strictMerge && isConflict(target)) {
|
|
37195
|
+
var nextConflict = getConflictIndex(target) + 1;
|
|
37196
|
+
if (options.throwOnLimitExceeded && typeof options.arrayLimit === 'number' && nextConflict >= options.arrayLimit) {
|
|
37197
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
37198
|
+
}
|
|
37199
|
+
target[nextConflict] = source;
|
|
37200
|
+
markConflict(target, nextConflict);
|
|
37024
37201
|
} else if (options && options.strictMerge) {
|
|
37025
|
-
|
|
37202
|
+
var conflict = limitedPair(target, source, options);
|
|
37203
|
+
return isArray$2(conflict) ? markConflict(conflict, 1) : conflict;
|
|
37026
37204
|
} else if (options && (options.plainObjects || options.allowPrototypes) || !has$2.call(Object.prototype, source)) {
|
|
37027
37205
|
target[source] = true;
|
|
37028
37206
|
}
|
|
37029
37207
|
} else {
|
|
37030
|
-
return
|
|
37208
|
+
return limitedPair(target, source, options);
|
|
37031
37209
|
}
|
|
37032
37210
|
return target;
|
|
37033
37211
|
}
|
|
@@ -37059,6 +37237,10 @@ var merge$2 = function merge(target, source, options) {
|
|
|
37059
37237
|
var mergeTarget = target;
|
|
37060
37238
|
if (isArray$2(target) && !isArray$2(source)) {
|
|
37061
37239
|
mergeTarget = arrayToObject(target, options);
|
|
37240
|
+
if (isConflict(target)) {
|
|
37241
|
+
// the array may have grown past its last conflict, so continue after its last index
|
|
37242
|
+
markConflict(mergeTarget, target.length - 1);
|
|
37243
|
+
}
|
|
37062
37244
|
}
|
|
37063
37245
|
if (isArray$2(target) && isArray$2(source)) {
|
|
37064
37246
|
source.forEach(function (item, i) {
|
|
@@ -37089,7 +37271,7 @@ var merge$2 = function merge(target, source, options) {
|
|
|
37089
37271
|
setProperty(acc, key, value);
|
|
37090
37272
|
}
|
|
37091
37273
|
if (isOverflow(source) && !isOverflow(acc)) {
|
|
37092
|
-
markOverflow(acc, getMaxIndex(source));
|
|
37274
|
+
markOverflow(acc, maxNumericIndex(acc, getMaxIndex(source)));
|
|
37093
37275
|
}
|
|
37094
37276
|
if (isOverflow(acc)) {
|
|
37095
37277
|
var keyNum = parseInt(key, 10);
|
|
@@ -37097,6 +37279,12 @@ var merge$2 = function merge(target, source, options) {
|
|
|
37097
37279
|
setMaxIndex(acc, keyNum);
|
|
37098
37280
|
}
|
|
37099
37281
|
}
|
|
37282
|
+
if (isConflict(acc)) {
|
|
37283
|
+
var conflictKey = parseInt(key, 10);
|
|
37284
|
+
if (String(conflictKey) === key && conflictKey > getConflictIndex(acc)) {
|
|
37285
|
+
markConflict(acc, conflictKey);
|
|
37286
|
+
}
|
|
37287
|
+
}
|
|
37100
37288
|
return acc;
|
|
37101
37289
|
}, mergeTarget);
|
|
37102
37290
|
};
|
|
@@ -37107,6 +37295,12 @@ var assign = function assignSingleSource(target, source) {
|
|
|
37107
37295
|
}, target);
|
|
37108
37296
|
};
|
|
37109
37297
|
var decode$2 = function decode(str, defaultDecoder, charset) {
|
|
37298
|
+
// With no `%` there is no escape to expand, in either charset: `unescape` has
|
|
37299
|
+
// nothing to match, and `decodeURIComponent` is the identity on such a string
|
|
37300
|
+
// (and cannot throw). So only `+` -> ' ' remains, and often not even that.
|
|
37301
|
+
if (typeof str === 'string' && str.indexOf('%') === -1) {
|
|
37302
|
+
return str.indexOf('+') === -1 ? str : str.replace(/\+/g, ' ');
|
|
37303
|
+
}
|
|
37110
37304
|
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
37111
37305
|
if (charset === 'iso-8859-1') {
|
|
37112
37306
|
// unescape never throws, no try...catch needed:
|
|
@@ -37119,6 +37313,56 @@ var decode$2 = function decode(str, defaultDecoder, charset) {
|
|
|
37119
37313
|
return strWithoutPlus;
|
|
37120
37314
|
}
|
|
37121
37315
|
};
|
|
37316
|
+
var hasToPrimitive = typeof Symbol === 'function' && _typeof(Symbol.toPrimitive) === 'symbol';
|
|
37317
|
+
var arrayJoin = Array.prototype.join;
|
|
37318
|
+
var arrayToString = Array.prototype.toString;
|
|
37319
|
+
var objectToString = Object.prototype.toString;
|
|
37320
|
+
|
|
37321
|
+
// an object with no callable toString (eg, from JSON, or null-prototype) would make String() or join() throw,
|
|
37322
|
+
// so it becomes its primitive valueOf or else Object.prototype.toString; arrays are walked like join walks them,
|
|
37323
|
+
// copied only once an element changes, with an array already being joined becoming '' as engines do for cycles
|
|
37324
|
+
var toCoercible = function toCoercible(value, joining) {
|
|
37325
|
+
if (!value || _typeof(value) !== 'object' && typeof value !== 'function') {
|
|
37326
|
+
return value;
|
|
37327
|
+
}
|
|
37328
|
+
if (hasToPrimitive && value[Symbol.toPrimitive] != null) {
|
|
37329
|
+
return value;
|
|
37330
|
+
}
|
|
37331
|
+
if (isArray$2(value) && value.toString === arrayToString && value.join === arrayJoin) {
|
|
37332
|
+
var ancestors = joining || getSideChannel$2();
|
|
37333
|
+
if (ancestors.has(value)) {
|
|
37334
|
+
return '';
|
|
37335
|
+
}
|
|
37336
|
+
ancestors.set(value, true);
|
|
37337
|
+
var copy;
|
|
37338
|
+
for (var i = 0; i < value.length; i += 1) {
|
|
37339
|
+
var item = value[i];
|
|
37340
|
+
var coerced = toCoercible(item, ancestors);
|
|
37341
|
+
if (!copy && coerced !== item) {
|
|
37342
|
+
copy = [];
|
|
37343
|
+
for (var j = 0; j < i; j += 1) {
|
|
37344
|
+
copy[j] = value[j];
|
|
37345
|
+
}
|
|
37346
|
+
}
|
|
37347
|
+
if (copy) {
|
|
37348
|
+
copy[i] = coerced;
|
|
37349
|
+
}
|
|
37350
|
+
}
|
|
37351
|
+
ancestors['delete'](value);
|
|
37352
|
+
return copy || value;
|
|
37353
|
+
}
|
|
37354
|
+
if (typeof value.toString === 'function') {
|
|
37355
|
+
return value;
|
|
37356
|
+
}
|
|
37357
|
+
var valueOf = value.valueOf;
|
|
37358
|
+
if (typeof valueOf === 'function') {
|
|
37359
|
+
var primitive = valueOf.call(value);
|
|
37360
|
+
if (!primitive || _typeof(primitive) !== 'object' && typeof primitive !== 'function') {
|
|
37361
|
+
return String(primitive);
|
|
37362
|
+
}
|
|
37363
|
+
}
|
|
37364
|
+
return objectToString.call(value);
|
|
37365
|
+
};
|
|
37122
37366
|
var limit = 1024;
|
|
37123
37367
|
|
|
37124
37368
|
/* eslint operator-linebreak: [2, "before"] */
|
|
@@ -37133,12 +37377,14 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
|
37133
37377
|
if (_typeof(str) === 'symbol') {
|
|
37134
37378
|
string = Symbol.prototype.toString.call(str);
|
|
37135
37379
|
} else if (typeof str !== 'string') {
|
|
37136
|
-
string = String(str);
|
|
37380
|
+
string = String(toCoercible(str));
|
|
37137
37381
|
}
|
|
37138
37382
|
if (charset === 'iso-8859-1') {
|
|
37383
|
+
// `escape` leaves `+` untouched, but a literal `+` is decoded back to a space,
|
|
37384
|
+
// so it must be percent-encoded to round-trip (the utf-8 path already does this).
|
|
37139
37385
|
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
37140
37386
|
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
37141
|
-
});
|
|
37387
|
+
}).replace(/\+/g, '%2B');
|
|
37142
37388
|
}
|
|
37143
37389
|
var out = '';
|
|
37144
37390
|
for (var j = 0; j < string.length; j += limit) {
|
|
@@ -37192,7 +37438,7 @@ var compact = function compact(value) {
|
|
|
37192
37438
|
},
|
|
37193
37439
|
prop: 'o'
|
|
37194
37440
|
}];
|
|
37195
|
-
var refs = getSideChannel$
|
|
37441
|
+
var refs = getSideChannel$2();
|
|
37196
37442
|
for (var i = 0; i < queue.length; ++i) {
|
|
37197
37443
|
var item = queue[i];
|
|
37198
37444
|
var obj = item.obj[item.prop];
|
|
@@ -37272,10 +37518,11 @@ var utils$3 = {
|
|
|
37272
37518
|
isRegExp: isRegExp,
|
|
37273
37519
|
markOverflow: markOverflow,
|
|
37274
37520
|
maybeMap: maybeMap,
|
|
37275
|
-
merge: merge$2
|
|
37521
|
+
merge: merge$2,
|
|
37522
|
+
toCoercible: toCoercible
|
|
37276
37523
|
};
|
|
37277
37524
|
|
|
37278
|
-
var getSideChannel = sideChannel;
|
|
37525
|
+
var getSideChannel$1 = sideChannel;
|
|
37279
37526
|
var utils$2 = utils$3;
|
|
37280
37527
|
var formats$1 = formats$3;
|
|
37281
37528
|
var has$1 = Object.prototype.hasOwnProperty;
|
|
@@ -37383,11 +37630,11 @@ var stringify$2 = function stringify(object, prefix, generateArrayPrefix, commaR
|
|
|
37383
37630
|
// we need to join elements in
|
|
37384
37631
|
if (encodeValuesOnly && encoder) {
|
|
37385
37632
|
obj = utils$2.maybeMap(obj, function (v) {
|
|
37386
|
-
return v == null ? v : encoder(v);
|
|
37633
|
+
return v == null ? v : encoder(v, defaults$1.encoder, charset, 'value', format);
|
|
37387
37634
|
});
|
|
37388
37635
|
}
|
|
37389
37636
|
objKeys = [{
|
|
37390
|
-
value: obj.length > 0 ? obj.join(',') || null : void undefined
|
|
37637
|
+
value: obj.length > 0 ? utils$2.toCoercible(obj).join(',') || null : void undefined
|
|
37391
37638
|
}];
|
|
37392
37639
|
} else if (isArray$1(filter)) {
|
|
37393
37640
|
objKeys = filter;
|
|
@@ -37395,7 +37642,7 @@ var stringify$2 = function stringify(object, prefix, generateArrayPrefix, commaR
|
|
|
37395
37642
|
var keys = Object.keys(obj);
|
|
37396
37643
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
37397
37644
|
}
|
|
37398
|
-
var encodedPrefix =
|
|
37645
|
+
var encodedPrefix = String(prefix);
|
|
37399
37646
|
var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
37400
37647
|
if (allowEmptyArrays && isArray$1(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
|
|
37401
37648
|
return adjustedPrefix + '[]';
|
|
@@ -37409,7 +37656,7 @@ var stringify$2 = function stringify(object, prefix, generateArrayPrefix, commaR
|
|
|
37409
37656
|
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
|
|
37410
37657
|
var keyPrefix = isArray$1(obj) ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
|
|
37411
37658
|
sideChannel.set(object, step);
|
|
37412
|
-
var valueSideChannel = getSideChannel();
|
|
37659
|
+
var valueSideChannel = getSideChannel$1();
|
|
37413
37660
|
valueSideChannel.set(sentinel, sideChannel);
|
|
37414
37661
|
pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel, depth, currentDepth + 1));
|
|
37415
37662
|
}
|
|
@@ -37445,7 +37692,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
37445
37692
|
filter = opts.filter;
|
|
37446
37693
|
}
|
|
37447
37694
|
var arrayFormat;
|
|
37448
|
-
if (opts.arrayFormat
|
|
37695
|
+
if (has$1.call(arrayPrefixGenerators, opts.arrayFormat)) {
|
|
37449
37696
|
arrayFormat = opts.arrayFormat;
|
|
37450
37697
|
} else if ('indices' in opts) {
|
|
37451
37698
|
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
@@ -37503,7 +37750,7 @@ var stringify_1 = function stringify_1(object, opts) {
|
|
|
37503
37750
|
if (options.sort) {
|
|
37504
37751
|
objKeys.sort(options.sort);
|
|
37505
37752
|
}
|
|
37506
|
-
var sideChannel = getSideChannel();
|
|
37753
|
+
var sideChannel = getSideChannel$1();
|
|
37507
37754
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
37508
37755
|
var key = objKeys[i];
|
|
37509
37756
|
if (typeof key === 'undefined' || key === null) {
|
|
@@ -37530,9 +37777,63 @@ var stringify_1 = function stringify_1(object, opts) {
|
|
|
37530
37777
|
return joined.length > 0 ? prefix + joined : '';
|
|
37531
37778
|
};
|
|
37532
37779
|
|
|
37780
|
+
var getSideChannel = sideChannel;
|
|
37533
37781
|
var utils$1 = utils$3;
|
|
37534
37782
|
var has = Object.prototype.hasOwnProperty;
|
|
37535
37783
|
var isArray = Array.isArray;
|
|
37784
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
37785
|
+
var isPlainContainer = function isPlainContainer(value) {
|
|
37786
|
+
if (!value || _typeof(value) !== 'object') {
|
|
37787
|
+
return false;
|
|
37788
|
+
}
|
|
37789
|
+
if (isArray(value)) {
|
|
37790
|
+
return true;
|
|
37791
|
+
}
|
|
37792
|
+
var proto = getPrototypeOf(value);
|
|
37793
|
+
return proto === Object.prototype || proto === null;
|
|
37794
|
+
};
|
|
37795
|
+
var emptyCopyOf = function emptyCopyOf(value) {
|
|
37796
|
+
if (isArray(value)) {
|
|
37797
|
+
var arr = [];
|
|
37798
|
+
arr.length = value.length;
|
|
37799
|
+
return arr;
|
|
37800
|
+
}
|
|
37801
|
+
return getPrototypeOf(value) === null ? {
|
|
37802
|
+
__proto__: null
|
|
37803
|
+
} : {};
|
|
37804
|
+
};
|
|
37805
|
+
|
|
37806
|
+
// `merge` and `compact` modify the containers they are given, so copy the caller's arrays and plain objects first
|
|
37807
|
+
var copyInput = function copyInput(input) {
|
|
37808
|
+
var copies = getSideChannel();
|
|
37809
|
+
var result = {};
|
|
37810
|
+
var queue = [{
|
|
37811
|
+
source: input,
|
|
37812
|
+
target: result
|
|
37813
|
+
}];
|
|
37814
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
37815
|
+
var source = queue[i].source;
|
|
37816
|
+
var target = queue[i].target;
|
|
37817
|
+
var keys = Object.keys(source);
|
|
37818
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
37819
|
+
var value = source[keys[j]];
|
|
37820
|
+
if (isPlainContainer(value)) {
|
|
37821
|
+
if (!copies.has(value)) {
|
|
37822
|
+
var copy = emptyCopyOf(value);
|
|
37823
|
+
copies.set(value, copy);
|
|
37824
|
+
queue[queue.length] = {
|
|
37825
|
+
source: value,
|
|
37826
|
+
target: copy
|
|
37827
|
+
};
|
|
37828
|
+
}
|
|
37829
|
+
target[keys[j]] = copies.get(value);
|
|
37830
|
+
} else {
|
|
37831
|
+
target[keys[j]] = value;
|
|
37832
|
+
}
|
|
37833
|
+
}
|
|
37834
|
+
}
|
|
37835
|
+
return result;
|
|
37836
|
+
};
|
|
37536
37837
|
var defaults = {
|
|
37537
37838
|
allowDots: false,
|
|
37538
37839
|
allowEmptyArrays: false,
|
|
@@ -37627,6 +37928,9 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
37627
37928
|
var part = parts[i];
|
|
37628
37929
|
var bracketEqualsPos = part.indexOf(']=');
|
|
37629
37930
|
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
37931
|
+
|
|
37932
|
+
// `[]` belongs to the key, so look for it at the split point, not anywhere in the part
|
|
37933
|
+
var isEmptyBracketKey = pos > 1 && part.slice(pos - 2, pos) === '[]';
|
|
37630
37934
|
var key;
|
|
37631
37935
|
var val;
|
|
37632
37936
|
if (pos === -1) {
|
|
@@ -37643,7 +37947,7 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
37643
37947
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
37644
37948
|
val = interpretNumericEntities(String(val));
|
|
37645
37949
|
}
|
|
37646
|
-
if (
|
|
37950
|
+
if (isEmptyBracketKey) {
|
|
37647
37951
|
val = isArray(val) ? [val] : val;
|
|
37648
37952
|
}
|
|
37649
37953
|
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
@@ -37651,7 +37955,7 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
37651
37955
|
}
|
|
37652
37956
|
if (key !== null) {
|
|
37653
37957
|
var existing = has.call(obj, key);
|
|
37654
|
-
if (existing && (options.duplicates === 'combine' ||
|
|
37958
|
+
if (existing && (options.duplicates === 'combine' || isEmptyBracketKey)) {
|
|
37655
37959
|
obj[key] = utils$1.combine(obj[key], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
|
|
37656
37960
|
} else if (!existing || options.duplicates === 'last') {
|
|
37657
37961
|
obj[key] = val;
|
|
@@ -37706,10 +38010,46 @@ var parseObject = function parseObject(chain, val, options, valuesParsed) {
|
|
|
37706
38010
|
return leaf;
|
|
37707
38011
|
};
|
|
37708
38012
|
|
|
38013
|
+
// Behaves like `key.replace(/\.([^.[]+)/g, '[$1]')`, but only rewrites a dot
|
|
38014
|
+
// that sits at bracket depth 0. A literal dot already inside a `[...]` segment
|
|
38015
|
+
// is left untouched instead of corrupting the key (e.g. "outer[a.b]"). (#617)
|
|
38016
|
+
var topLevelDotsToBrackets = function topLevelDotsToBrackets(key) {
|
|
38017
|
+
var result = '';
|
|
38018
|
+
var depth = 0;
|
|
38019
|
+
for (var i = 0; i < key.length; i += 1) {
|
|
38020
|
+
var cu = key.charCodeAt(i);
|
|
38021
|
+
if (cu === 0x5B) {
|
|
38022
|
+
// '['
|
|
38023
|
+
depth += 1;
|
|
38024
|
+
result += '[';
|
|
38025
|
+
} else if (cu === 0x5D) {
|
|
38026
|
+
// ']'
|
|
38027
|
+
if (depth > 0) {
|
|
38028
|
+
depth -= 1;
|
|
38029
|
+
}
|
|
38030
|
+
result += ']';
|
|
38031
|
+
} else if (cu === 0x2E // '.'
|
|
38032
|
+
&& depth === 0 && i + 1 < key.length && key.charCodeAt(i + 1) !== 0x2E // not another '.'
|
|
38033
|
+
&& key.charCodeAt(i + 1) !== 0x5B // not '['
|
|
38034
|
+
) {
|
|
38035
|
+
var start = i + 1;
|
|
38036
|
+
var j = start;
|
|
38037
|
+
while (j < key.length && key.charCodeAt(j) !== 0x2E && key.charCodeAt(j) !== 0x5B) {
|
|
38038
|
+
j += 1;
|
|
38039
|
+
}
|
|
38040
|
+
result += '[' + key.slice(start, j) + ']';
|
|
38041
|
+
i = j - 1;
|
|
38042
|
+
} else {
|
|
38043
|
+
result += key.charAt(i);
|
|
38044
|
+
}
|
|
38045
|
+
}
|
|
38046
|
+
return result;
|
|
38047
|
+
};
|
|
38048
|
+
|
|
37709
38049
|
// Split a key like "a[b][c[]]" into ['a', '[b]', '[c[]]'] while preserving
|
|
37710
38050
|
// qs parse semantics for depth/prototype guards.
|
|
37711
38051
|
var splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) {
|
|
37712
|
-
var key = options.allowDots ? originalKey
|
|
38052
|
+
var key = options.allowDots ? topLevelDotsToBrackets(originalKey) : originalKey;
|
|
37713
38053
|
|
|
37714
38054
|
// depth <= 0 keeps the whole key as one segment
|
|
37715
38055
|
if (options.depth <= 0) {
|
|
@@ -37850,7 +38190,7 @@ var parse$7 = function parse(str, opts) {
|
|
|
37850
38190
|
__proto__: null
|
|
37851
38191
|
} : {};
|
|
37852
38192
|
}
|
|
37853
|
-
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
38193
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : copyInput(str);
|
|
37854
38194
|
var obj = options.plainObjects ? {
|
|
37855
38195
|
__proto__: null
|
|
37856
38196
|
} : {};
|
|
@@ -38160,7 +38500,7 @@ function requireUrlencoded() {
|
|
|
38160
38500
|
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
38161
38501
|
* MIT Licensed
|
|
38162
38502
|
*/
|
|
38163
|
-
(function (module, exports
|
|
38503
|
+
(function (module, exports) {
|
|
38164
38504
|
|
|
38165
38505
|
/**
|
|
38166
38506
|
* Module dependencies.
|
|
@@ -38189,14 +38529,14 @@ function requireUrlencoded() {
|
|
|
38189
38529
|
* @type {Parsers}
|
|
38190
38530
|
*/
|
|
38191
38531
|
|
|
38192
|
-
exports
|
|
38532
|
+
exports = module.exports = deprecate["function"](bodyParser, 'bodyParser: use individual json/urlencoded middlewares');
|
|
38193
38533
|
|
|
38194
38534
|
/**
|
|
38195
38535
|
* JSON parser.
|
|
38196
38536
|
* @public
|
|
38197
38537
|
*/
|
|
38198
38538
|
|
|
38199
|
-
Object.defineProperty(exports
|
|
38539
|
+
Object.defineProperty(exports, 'json', {
|
|
38200
38540
|
configurable: true,
|
|
38201
38541
|
enumerable: true,
|
|
38202
38542
|
get: createParserGetter('json')
|
|
@@ -38207,7 +38547,7 @@ function requireUrlencoded() {
|
|
|
38207
38547
|
* @public
|
|
38208
38548
|
*/
|
|
38209
38549
|
|
|
38210
|
-
Object.defineProperty(exports
|
|
38550
|
+
Object.defineProperty(exports, 'raw', {
|
|
38211
38551
|
configurable: true,
|
|
38212
38552
|
enumerable: true,
|
|
38213
38553
|
get: createParserGetter('raw')
|
|
@@ -38218,7 +38558,7 @@ function requireUrlencoded() {
|
|
|
38218
38558
|
* @public
|
|
38219
38559
|
*/
|
|
38220
38560
|
|
|
38221
|
-
Object.defineProperty(exports
|
|
38561
|
+
Object.defineProperty(exports, 'text', {
|
|
38222
38562
|
configurable: true,
|
|
38223
38563
|
enumerable: true,
|
|
38224
38564
|
get: createParserGetter('text')
|
|
@@ -38229,7 +38569,7 @@ function requireUrlencoded() {
|
|
|
38229
38569
|
* @public
|
|
38230
38570
|
*/
|
|
38231
38571
|
|
|
38232
|
-
Object.defineProperty(exports
|
|
38572
|
+
Object.defineProperty(exports, 'urlencoded', {
|
|
38233
38573
|
configurable: true,
|
|
38234
38574
|
enumerable: true,
|
|
38235
38575
|
get: createParserGetter('urlencoded')
|
|
@@ -38254,8 +38594,8 @@ function requireUrlencoded() {
|
|
|
38254
38594
|
writable: true
|
|
38255
38595
|
}
|
|
38256
38596
|
});
|
|
38257
|
-
var _urlencoded = exports
|
|
38258
|
-
var _json = exports
|
|
38597
|
+
var _urlencoded = exports.urlencoded(opts);
|
|
38598
|
+
var _json = exports.json(opts);
|
|
38259
38599
|
return function bodyParser(req, res, next) {
|
|
38260
38600
|
_json(req, res, function (err) {
|
|
38261
38601
|
if (err) return next(err);
|
|
@@ -38522,7 +38862,7 @@ var hasRequiredDebug$2;
|
|
|
38522
38862
|
function requireDebug$2() {
|
|
38523
38863
|
if (hasRequiredDebug$2) return debug$8.exports;
|
|
38524
38864
|
hasRequiredDebug$2 = 1;
|
|
38525
|
-
(function (module, exports
|
|
38865
|
+
(function (module, exports) {
|
|
38526
38866
|
/**
|
|
38527
38867
|
* This is the common logic for both the Node.js and web browser
|
|
38528
38868
|
* implementations of `debug()`.
|
|
@@ -38530,19 +38870,19 @@ function requireDebug$2() {
|
|
|
38530
38870
|
* Expose `debug()` as the module.
|
|
38531
38871
|
*/
|
|
38532
38872
|
|
|
38533
|
-
exports
|
|
38534
|
-
exports
|
|
38535
|
-
exports
|
|
38536
|
-
exports
|
|
38537
|
-
exports
|
|
38538
|
-
exports
|
|
38873
|
+
exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
|
|
38874
|
+
exports.coerce = coerce;
|
|
38875
|
+
exports.disable = disable;
|
|
38876
|
+
exports.enable = enable;
|
|
38877
|
+
exports.enabled = enabled;
|
|
38878
|
+
exports.humanize = requireMs$2();
|
|
38539
38879
|
|
|
38540
38880
|
/**
|
|
38541
38881
|
* The currently active debug mode names, and names to skip.
|
|
38542
38882
|
*/
|
|
38543
38883
|
|
|
38544
|
-
exports
|
|
38545
|
-
exports
|
|
38884
|
+
exports.names = [];
|
|
38885
|
+
exports.skips = [];
|
|
38546
38886
|
|
|
38547
38887
|
/**
|
|
38548
38888
|
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
@@ -38550,7 +38890,7 @@ function requireDebug$2() {
|
|
|
38550
38890
|
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
38551
38891
|
*/
|
|
38552
38892
|
|
|
38553
|
-
exports
|
|
38893
|
+
exports.formatters = {};
|
|
38554
38894
|
|
|
38555
38895
|
/**
|
|
38556
38896
|
* Previous log timestamp.
|
|
@@ -38572,7 +38912,7 @@ function requireDebug$2() {
|
|
|
38572
38912
|
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
38573
38913
|
hash |= 0; // Convert to 32bit integer
|
|
38574
38914
|
}
|
|
38575
|
-
return exports
|
|
38915
|
+
return exports.colors[Math.abs(hash) % exports.colors.length];
|
|
38576
38916
|
}
|
|
38577
38917
|
|
|
38578
38918
|
/**
|
|
@@ -38602,7 +38942,7 @@ function requireDebug$2() {
|
|
|
38602
38942
|
for (var i = 0; i < args.length; i++) {
|
|
38603
38943
|
args[i] = arguments[i];
|
|
38604
38944
|
}
|
|
38605
|
-
args[0] = exports
|
|
38945
|
+
args[0] = exports.coerce(args[0]);
|
|
38606
38946
|
if ('string' !== typeof args[0]) {
|
|
38607
38947
|
// anything else let's inspect with %O
|
|
38608
38948
|
args.unshift('%O');
|
|
@@ -38614,7 +38954,7 @@ function requireDebug$2() {
|
|
|
38614
38954
|
// if we encounter an escaped % then don't increase the array index
|
|
38615
38955
|
if (match === '%%') return match;
|
|
38616
38956
|
index++;
|
|
38617
|
-
var formatter = exports
|
|
38957
|
+
var formatter = exports.formatters[format];
|
|
38618
38958
|
if ('function' === typeof formatter) {
|
|
38619
38959
|
var val = args[index];
|
|
38620
38960
|
match = formatter.call(self, val);
|
|
@@ -38627,18 +38967,18 @@ function requireDebug$2() {
|
|
|
38627
38967
|
});
|
|
38628
38968
|
|
|
38629
38969
|
// apply env-specific formatting (colors, etc.)
|
|
38630
|
-
exports
|
|
38631
|
-
var logFn = debug.log || exports
|
|
38970
|
+
exports.formatArgs.call(self, args);
|
|
38971
|
+
var logFn = debug.log || exports.log || console.log.bind(console);
|
|
38632
38972
|
logFn.apply(self, args);
|
|
38633
38973
|
}
|
|
38634
38974
|
debug.namespace = namespace;
|
|
38635
|
-
debug.enabled = exports
|
|
38636
|
-
debug.useColors = exports
|
|
38975
|
+
debug.enabled = exports.enabled(namespace);
|
|
38976
|
+
debug.useColors = exports.useColors();
|
|
38637
38977
|
debug.color = selectColor(namespace);
|
|
38638
38978
|
|
|
38639
38979
|
// env-specific initialization logic for debug instances
|
|
38640
|
-
if ('function' === typeof exports
|
|
38641
|
-
exports
|
|
38980
|
+
if ('function' === typeof exports.init) {
|
|
38981
|
+
exports.init(debug);
|
|
38642
38982
|
}
|
|
38643
38983
|
return debug;
|
|
38644
38984
|
}
|
|
@@ -38652,18 +38992,18 @@ function requireDebug$2() {
|
|
|
38652
38992
|
*/
|
|
38653
38993
|
|
|
38654
38994
|
function enable(namespaces) {
|
|
38655
|
-
exports
|
|
38656
|
-
exports
|
|
38657
|
-
exports
|
|
38995
|
+
exports.save(namespaces);
|
|
38996
|
+
exports.names = [];
|
|
38997
|
+
exports.skips = [];
|
|
38658
38998
|
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
|
38659
38999
|
var len = split.length;
|
|
38660
39000
|
for (var i = 0; i < len; i++) {
|
|
38661
39001
|
if (!split[i]) continue; // ignore empty strings
|
|
38662
39002
|
namespaces = split[i].replace(/\*/g, '.*?');
|
|
38663
39003
|
if (namespaces[0] === '-') {
|
|
38664
|
-
exports
|
|
39004
|
+
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
38665
39005
|
} else {
|
|
38666
|
-
exports
|
|
39006
|
+
exports.names.push(new RegExp('^' + namespaces + '$'));
|
|
38667
39007
|
}
|
|
38668
39008
|
}
|
|
38669
39009
|
}
|
|
@@ -38675,7 +39015,7 @@ function requireDebug$2() {
|
|
|
38675
39015
|
*/
|
|
38676
39016
|
|
|
38677
39017
|
function disable() {
|
|
38678
|
-
exports
|
|
39018
|
+
exports.enable('');
|
|
38679
39019
|
}
|
|
38680
39020
|
|
|
38681
39021
|
/**
|
|
@@ -38688,13 +39028,13 @@ function requireDebug$2() {
|
|
|
38688
39028
|
|
|
38689
39029
|
function enabled(name) {
|
|
38690
39030
|
var i, len;
|
|
38691
|
-
for (i = 0, len = exports
|
|
38692
|
-
if (exports
|
|
39031
|
+
for (i = 0, len = exports.skips.length; i < len; i++) {
|
|
39032
|
+
if (exports.skips[i].test(name)) {
|
|
38693
39033
|
return false;
|
|
38694
39034
|
}
|
|
38695
39035
|
}
|
|
38696
|
-
for (i = 0, len = exports
|
|
38697
|
-
if (exports
|
|
39036
|
+
for (i = 0, len = exports.names.length; i < len; i++) {
|
|
39037
|
+
if (exports.names[i].test(name)) {
|
|
38698
39038
|
return true;
|
|
38699
39039
|
}
|
|
38700
39040
|
}
|
|
@@ -38721,20 +39061,20 @@ var hasRequiredBrowser$2;
|
|
|
38721
39061
|
function requireBrowser$2() {
|
|
38722
39062
|
if (hasRequiredBrowser$2) return browser$2.exports;
|
|
38723
39063
|
hasRequiredBrowser$2 = 1;
|
|
38724
|
-
(function (module, exports
|
|
38725
|
-
exports
|
|
38726
|
-
exports
|
|
38727
|
-
exports
|
|
38728
|
-
exports
|
|
38729
|
-
exports
|
|
38730
|
-
exports
|
|
38731
|
-
exports
|
|
39064
|
+
(function (module, exports) {
|
|
39065
|
+
exports = module.exports = requireDebug$2();
|
|
39066
|
+
exports.log = log;
|
|
39067
|
+
exports.formatArgs = formatArgs;
|
|
39068
|
+
exports.save = save;
|
|
39069
|
+
exports.load = load;
|
|
39070
|
+
exports.useColors = useColors;
|
|
39071
|
+
exports.storage = 'undefined' != typeof chrome && 'undefined' != typeof chrome.storage ? chrome.storage.local : localstorage();
|
|
38732
39072
|
|
|
38733
39073
|
/**
|
|
38734
39074
|
* Colors.
|
|
38735
39075
|
*/
|
|
38736
39076
|
|
|
38737
|
-
exports
|
|
39077
|
+
exports.colors = ['lightseagreen', 'forestgreen', 'goldenrod', 'dodgerblue', 'darkorchid', 'crimson'];
|
|
38738
39078
|
|
|
38739
39079
|
/**
|
|
38740
39080
|
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
@@ -38768,7 +39108,7 @@ function requireBrowser$2() {
|
|
|
38768
39108
|
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
38769
39109
|
*/
|
|
38770
39110
|
|
|
38771
|
-
exports
|
|
39111
|
+
exports.formatters.j = function (v) {
|
|
38772
39112
|
try {
|
|
38773
39113
|
return JSON.stringify(v);
|
|
38774
39114
|
} catch (err) {
|
|
@@ -38784,7 +39124,7 @@ function requireBrowser$2() {
|
|
|
38784
39124
|
|
|
38785
39125
|
function formatArgs(args) {
|
|
38786
39126
|
var useColors = this.useColors;
|
|
38787
|
-
args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports
|
|
39127
|
+
args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff);
|
|
38788
39128
|
if (!useColors) return;
|
|
38789
39129
|
var c = 'color: ' + this.color;
|
|
38790
39130
|
args.splice(1, 0, c, 'color: inherit');
|
|
@@ -38829,9 +39169,9 @@ function requireBrowser$2() {
|
|
|
38829
39169
|
function save(namespaces) {
|
|
38830
39170
|
try {
|
|
38831
39171
|
if (null == namespaces) {
|
|
38832
|
-
exports
|
|
39172
|
+
exports.storage.removeItem('debug');
|
|
38833
39173
|
} else {
|
|
38834
|
-
exports
|
|
39174
|
+
exports.storage.debug = namespaces;
|
|
38835
39175
|
}
|
|
38836
39176
|
} catch (e) {}
|
|
38837
39177
|
}
|
|
@@ -38846,7 +39186,7 @@ function requireBrowser$2() {
|
|
|
38846
39186
|
function load() {
|
|
38847
39187
|
var r;
|
|
38848
39188
|
try {
|
|
38849
|
-
r = exports
|
|
39189
|
+
r = exports.storage.debug;
|
|
38850
39190
|
} catch (e) {}
|
|
38851
39191
|
|
|
38852
39192
|
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
@@ -38860,7 +39200,7 @@ function requireBrowser$2() {
|
|
|
38860
39200
|
* Enable namespaces listed in `localStorage.debug` initially.
|
|
38861
39201
|
*/
|
|
38862
39202
|
|
|
38863
|
-
exports
|
|
39203
|
+
exports.enable(load());
|
|
38864
39204
|
|
|
38865
39205
|
/**
|
|
38866
39206
|
* Localstorage attempts to return the localstorage.
|
|
@@ -38891,7 +39231,7 @@ var hasRequiredNode$2;
|
|
|
38891
39231
|
function requireNode$2() {
|
|
38892
39232
|
if (hasRequiredNode$2) return node$2.exports;
|
|
38893
39233
|
hasRequiredNode$2 = 1;
|
|
38894
|
-
(function (module, exports
|
|
39234
|
+
(function (module, exports) {
|
|
38895
39235
|
var tty = require$$0$5;
|
|
38896
39236
|
var util = require$$1$1;
|
|
38897
39237
|
|
|
@@ -38901,19 +39241,19 @@ function requireNode$2() {
|
|
|
38901
39241
|
* Expose `debug()` as the module.
|
|
38902
39242
|
*/
|
|
38903
39243
|
|
|
38904
|
-
exports
|
|
38905
|
-
exports
|
|
38906
|
-
exports
|
|
38907
|
-
exports
|
|
38908
|
-
exports
|
|
38909
|
-
exports
|
|
38910
|
-
exports
|
|
39244
|
+
exports = module.exports = requireDebug$2();
|
|
39245
|
+
exports.init = init;
|
|
39246
|
+
exports.log = log;
|
|
39247
|
+
exports.formatArgs = formatArgs;
|
|
39248
|
+
exports.save = save;
|
|
39249
|
+
exports.load = load;
|
|
39250
|
+
exports.useColors = useColors;
|
|
38911
39251
|
|
|
38912
39252
|
/**
|
|
38913
39253
|
* Colors.
|
|
38914
39254
|
*/
|
|
38915
39255
|
|
|
38916
|
-
exports
|
|
39256
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
38917
39257
|
|
|
38918
39258
|
/**
|
|
38919
39259
|
* Build up the default `inspectOpts` object from the environment variables.
|
|
@@ -38921,7 +39261,7 @@ function requireNode$2() {
|
|
|
38921
39261
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
38922
39262
|
*/
|
|
38923
39263
|
|
|
38924
|
-
exports
|
|
39264
|
+
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
|
38925
39265
|
return /^debug_/i.test(key);
|
|
38926
39266
|
}).reduce(function (obj, key) {
|
|
38927
39267
|
// camel-case
|
|
@@ -38954,14 +39294,14 @@ function requireNode$2() {
|
|
|
38954
39294
|
*/
|
|
38955
39295
|
|
|
38956
39296
|
function useColors() {
|
|
38957
|
-
return 'colors' in exports
|
|
39297
|
+
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(fd);
|
|
38958
39298
|
}
|
|
38959
39299
|
|
|
38960
39300
|
/**
|
|
38961
39301
|
* Map %o to `util.inspect()`, all on a single line.
|
|
38962
39302
|
*/
|
|
38963
39303
|
|
|
38964
|
-
exports
|
|
39304
|
+
exports.formatters.o = function (v) {
|
|
38965
39305
|
this.inspectOpts.colors = this.useColors;
|
|
38966
39306
|
return util.inspect(v, this.inspectOpts).split('\n').map(function (str) {
|
|
38967
39307
|
return str.trim();
|
|
@@ -38972,7 +39312,7 @@ function requireNode$2() {
|
|
|
38972
39312
|
* Map %o to `util.inspect()`, allowing multiple lines if needed.
|
|
38973
39313
|
*/
|
|
38974
39314
|
|
|
38975
|
-
exports
|
|
39315
|
+
exports.formatters.O = function (v) {
|
|
38976
39316
|
this.inspectOpts.colors = this.useColors;
|
|
38977
39317
|
return util.inspect(v, this.inspectOpts);
|
|
38978
39318
|
};
|
|
@@ -38990,7 +39330,7 @@ function requireNode$2() {
|
|
|
38990
39330
|
var c = this.color;
|
|
38991
39331
|
var prefix = " \x1B[3" + c + ';1m' + name + ' ' + "\x1B[0m";
|
|
38992
39332
|
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
|
38993
|
-
args.push("\x1B[3" + c + 'm+' + exports
|
|
39333
|
+
args.push("\x1B[3" + c + 'm+' + exports.humanize(this.diff) + "\x1B[0m");
|
|
38994
39334
|
} else {
|
|
38995
39335
|
args[0] = new Date().toUTCString() + ' ' + name + ' ' + args[0];
|
|
38996
39336
|
}
|
|
@@ -39106,9 +39446,9 @@ function requireNode$2() {
|
|
|
39106
39446
|
|
|
39107
39447
|
function init(debug) {
|
|
39108
39448
|
debug.inspectOpts = {};
|
|
39109
|
-
var keys = Object.keys(exports
|
|
39449
|
+
var keys = Object.keys(exports.inspectOpts);
|
|
39110
39450
|
for (var i = 0; i < keys.length; i++) {
|
|
39111
|
-
debug.inspectOpts[keys[i]] = exports
|
|
39451
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
39112
39452
|
}
|
|
39113
39453
|
}
|
|
39114
39454
|
|
|
@@ -39116,7 +39456,7 @@ function requireNode$2() {
|
|
|
39116
39456
|
* Enable namespaces listed in `process.env.DEBUG` initially.
|
|
39117
39457
|
*/
|
|
39118
39458
|
|
|
39119
|
-
exports
|
|
39459
|
+
exports.enable(load());
|
|
39120
39460
|
})(node$2, node$2.exports);
|
|
39121
39461
|
return node$2.exports;
|
|
39122
39462
|
}
|
|
@@ -39863,7 +40203,7 @@ var hasRequiredDebug$1;
|
|
|
39863
40203
|
function requireDebug$1() {
|
|
39864
40204
|
if (hasRequiredDebug$1) return debug$6.exports;
|
|
39865
40205
|
hasRequiredDebug$1 = 1;
|
|
39866
|
-
(function (module, exports
|
|
40206
|
+
(function (module, exports) {
|
|
39867
40207
|
/**
|
|
39868
40208
|
* This is the common logic for both the Node.js and web browser
|
|
39869
40209
|
* implementations of `debug()`.
|
|
@@ -39871,19 +40211,19 @@ function requireDebug$1() {
|
|
|
39871
40211
|
* Expose `debug()` as the module.
|
|
39872
40212
|
*/
|
|
39873
40213
|
|
|
39874
|
-
exports
|
|
39875
|
-
exports
|
|
39876
|
-
exports
|
|
39877
|
-
exports
|
|
39878
|
-
exports
|
|
39879
|
-
exports
|
|
40214
|
+
exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
|
|
40215
|
+
exports.coerce = coerce;
|
|
40216
|
+
exports.disable = disable;
|
|
40217
|
+
exports.enable = enable;
|
|
40218
|
+
exports.enabled = enabled;
|
|
40219
|
+
exports.humanize = requireMs$1();
|
|
39880
40220
|
|
|
39881
40221
|
/**
|
|
39882
40222
|
* The currently active debug mode names, and names to skip.
|
|
39883
40223
|
*/
|
|
39884
40224
|
|
|
39885
|
-
exports
|
|
39886
|
-
exports
|
|
40225
|
+
exports.names = [];
|
|
40226
|
+
exports.skips = [];
|
|
39887
40227
|
|
|
39888
40228
|
/**
|
|
39889
40229
|
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
@@ -39891,7 +40231,7 @@ function requireDebug$1() {
|
|
|
39891
40231
|
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
39892
40232
|
*/
|
|
39893
40233
|
|
|
39894
|
-
exports
|
|
40234
|
+
exports.formatters = {};
|
|
39895
40235
|
|
|
39896
40236
|
/**
|
|
39897
40237
|
* Previous log timestamp.
|
|
@@ -39913,7 +40253,7 @@ function requireDebug$1() {
|
|
|
39913
40253
|
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
39914
40254
|
hash |= 0; // Convert to 32bit integer
|
|
39915
40255
|
}
|
|
39916
|
-
return exports
|
|
40256
|
+
return exports.colors[Math.abs(hash) % exports.colors.length];
|
|
39917
40257
|
}
|
|
39918
40258
|
|
|
39919
40259
|
/**
|
|
@@ -39943,7 +40283,7 @@ function requireDebug$1() {
|
|
|
39943
40283
|
for (var i = 0; i < args.length; i++) {
|
|
39944
40284
|
args[i] = arguments[i];
|
|
39945
40285
|
}
|
|
39946
|
-
args[0] = exports
|
|
40286
|
+
args[0] = exports.coerce(args[0]);
|
|
39947
40287
|
if ('string' !== typeof args[0]) {
|
|
39948
40288
|
// anything else let's inspect with %O
|
|
39949
40289
|
args.unshift('%O');
|
|
@@ -39955,7 +40295,7 @@ function requireDebug$1() {
|
|
|
39955
40295
|
// if we encounter an escaped % then don't increase the array index
|
|
39956
40296
|
if (match === '%%') return match;
|
|
39957
40297
|
index++;
|
|
39958
|
-
var formatter = exports
|
|
40298
|
+
var formatter = exports.formatters[format];
|
|
39959
40299
|
if ('function' === typeof formatter) {
|
|
39960
40300
|
var val = args[index];
|
|
39961
40301
|
match = formatter.call(self, val);
|
|
@@ -39968,18 +40308,18 @@ function requireDebug$1() {
|
|
|
39968
40308
|
});
|
|
39969
40309
|
|
|
39970
40310
|
// apply env-specific formatting (colors, etc.)
|
|
39971
|
-
exports
|
|
39972
|
-
var logFn = debug.log || exports
|
|
40311
|
+
exports.formatArgs.call(self, args);
|
|
40312
|
+
var logFn = debug.log || exports.log || console.log.bind(console);
|
|
39973
40313
|
logFn.apply(self, args);
|
|
39974
40314
|
}
|
|
39975
40315
|
debug.namespace = namespace;
|
|
39976
|
-
debug.enabled = exports
|
|
39977
|
-
debug.useColors = exports
|
|
40316
|
+
debug.enabled = exports.enabled(namespace);
|
|
40317
|
+
debug.useColors = exports.useColors();
|
|
39978
40318
|
debug.color = selectColor(namespace);
|
|
39979
40319
|
|
|
39980
40320
|
// env-specific initialization logic for debug instances
|
|
39981
|
-
if ('function' === typeof exports
|
|
39982
|
-
exports
|
|
40321
|
+
if ('function' === typeof exports.init) {
|
|
40322
|
+
exports.init(debug);
|
|
39983
40323
|
}
|
|
39984
40324
|
return debug;
|
|
39985
40325
|
}
|
|
@@ -39993,18 +40333,18 @@ function requireDebug$1() {
|
|
|
39993
40333
|
*/
|
|
39994
40334
|
|
|
39995
40335
|
function enable(namespaces) {
|
|
39996
|
-
exports
|
|
39997
|
-
exports
|
|
39998
|
-
exports
|
|
40336
|
+
exports.save(namespaces);
|
|
40337
|
+
exports.names = [];
|
|
40338
|
+
exports.skips = [];
|
|
39999
40339
|
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
|
40000
40340
|
var len = split.length;
|
|
40001
40341
|
for (var i = 0; i < len; i++) {
|
|
40002
40342
|
if (!split[i]) continue; // ignore empty strings
|
|
40003
40343
|
namespaces = split[i].replace(/\*/g, '.*?');
|
|
40004
40344
|
if (namespaces[0] === '-') {
|
|
40005
|
-
exports
|
|
40345
|
+
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
40006
40346
|
} else {
|
|
40007
|
-
exports
|
|
40347
|
+
exports.names.push(new RegExp('^' + namespaces + '$'));
|
|
40008
40348
|
}
|
|
40009
40349
|
}
|
|
40010
40350
|
}
|
|
@@ -40016,7 +40356,7 @@ function requireDebug$1() {
|
|
|
40016
40356
|
*/
|
|
40017
40357
|
|
|
40018
40358
|
function disable() {
|
|
40019
|
-
exports
|
|
40359
|
+
exports.enable('');
|
|
40020
40360
|
}
|
|
40021
40361
|
|
|
40022
40362
|
/**
|
|
@@ -40029,13 +40369,13 @@ function requireDebug$1() {
|
|
|
40029
40369
|
|
|
40030
40370
|
function enabled(name) {
|
|
40031
40371
|
var i, len;
|
|
40032
|
-
for (i = 0, len = exports
|
|
40033
|
-
if (exports
|
|
40372
|
+
for (i = 0, len = exports.skips.length; i < len; i++) {
|
|
40373
|
+
if (exports.skips[i].test(name)) {
|
|
40034
40374
|
return false;
|
|
40035
40375
|
}
|
|
40036
40376
|
}
|
|
40037
|
-
for (i = 0, len = exports
|
|
40038
|
-
if (exports
|
|
40377
|
+
for (i = 0, len = exports.names.length; i < len; i++) {
|
|
40378
|
+
if (exports.names[i].test(name)) {
|
|
40039
40379
|
return true;
|
|
40040
40380
|
}
|
|
40041
40381
|
}
|
|
@@ -40062,20 +40402,20 @@ var hasRequiredBrowser$1;
|
|
|
40062
40402
|
function requireBrowser$1() {
|
|
40063
40403
|
if (hasRequiredBrowser$1) return browser$1.exports;
|
|
40064
40404
|
hasRequiredBrowser$1 = 1;
|
|
40065
|
-
(function (module, exports
|
|
40066
|
-
exports
|
|
40067
|
-
exports
|
|
40068
|
-
exports
|
|
40069
|
-
exports
|
|
40070
|
-
exports
|
|
40071
|
-
exports
|
|
40072
|
-
exports
|
|
40405
|
+
(function (module, exports) {
|
|
40406
|
+
exports = module.exports = requireDebug$1();
|
|
40407
|
+
exports.log = log;
|
|
40408
|
+
exports.formatArgs = formatArgs;
|
|
40409
|
+
exports.save = save;
|
|
40410
|
+
exports.load = load;
|
|
40411
|
+
exports.useColors = useColors;
|
|
40412
|
+
exports.storage = 'undefined' != typeof chrome && 'undefined' != typeof chrome.storage ? chrome.storage.local : localstorage();
|
|
40073
40413
|
|
|
40074
40414
|
/**
|
|
40075
40415
|
* Colors.
|
|
40076
40416
|
*/
|
|
40077
40417
|
|
|
40078
|
-
exports
|
|
40418
|
+
exports.colors = ['lightseagreen', 'forestgreen', 'goldenrod', 'dodgerblue', 'darkorchid', 'crimson'];
|
|
40079
40419
|
|
|
40080
40420
|
/**
|
|
40081
40421
|
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
@@ -40109,7 +40449,7 @@ function requireBrowser$1() {
|
|
|
40109
40449
|
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
40110
40450
|
*/
|
|
40111
40451
|
|
|
40112
|
-
exports
|
|
40452
|
+
exports.formatters.j = function (v) {
|
|
40113
40453
|
try {
|
|
40114
40454
|
return JSON.stringify(v);
|
|
40115
40455
|
} catch (err) {
|
|
@@ -40125,7 +40465,7 @@ function requireBrowser$1() {
|
|
|
40125
40465
|
|
|
40126
40466
|
function formatArgs(args) {
|
|
40127
40467
|
var useColors = this.useColors;
|
|
40128
|
-
args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports
|
|
40468
|
+
args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff);
|
|
40129
40469
|
if (!useColors) return;
|
|
40130
40470
|
var c = 'color: ' + this.color;
|
|
40131
40471
|
args.splice(1, 0, c, 'color: inherit');
|
|
@@ -40170,9 +40510,9 @@ function requireBrowser$1() {
|
|
|
40170
40510
|
function save(namespaces) {
|
|
40171
40511
|
try {
|
|
40172
40512
|
if (null == namespaces) {
|
|
40173
|
-
exports
|
|
40513
|
+
exports.storage.removeItem('debug');
|
|
40174
40514
|
} else {
|
|
40175
|
-
exports
|
|
40515
|
+
exports.storage.debug = namespaces;
|
|
40176
40516
|
}
|
|
40177
40517
|
} catch (e) {}
|
|
40178
40518
|
}
|
|
@@ -40187,7 +40527,7 @@ function requireBrowser$1() {
|
|
|
40187
40527
|
function load() {
|
|
40188
40528
|
var r;
|
|
40189
40529
|
try {
|
|
40190
|
-
r = exports
|
|
40530
|
+
r = exports.storage.debug;
|
|
40191
40531
|
} catch (e) {}
|
|
40192
40532
|
|
|
40193
40533
|
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
@@ -40201,7 +40541,7 @@ function requireBrowser$1() {
|
|
|
40201
40541
|
* Enable namespaces listed in `localStorage.debug` initially.
|
|
40202
40542
|
*/
|
|
40203
40543
|
|
|
40204
|
-
exports
|
|
40544
|
+
exports.enable(load());
|
|
40205
40545
|
|
|
40206
40546
|
/**
|
|
40207
40547
|
* Localstorage attempts to return the localstorage.
|
|
@@ -40232,7 +40572,7 @@ var hasRequiredNode$1;
|
|
|
40232
40572
|
function requireNode$1() {
|
|
40233
40573
|
if (hasRequiredNode$1) return node$1.exports;
|
|
40234
40574
|
hasRequiredNode$1 = 1;
|
|
40235
|
-
(function (module, exports
|
|
40575
|
+
(function (module, exports) {
|
|
40236
40576
|
var tty = require$$0$5;
|
|
40237
40577
|
var util = require$$1$1;
|
|
40238
40578
|
|
|
@@ -40242,19 +40582,19 @@ function requireNode$1() {
|
|
|
40242
40582
|
* Expose `debug()` as the module.
|
|
40243
40583
|
*/
|
|
40244
40584
|
|
|
40245
|
-
exports
|
|
40246
|
-
exports
|
|
40247
|
-
exports
|
|
40248
|
-
exports
|
|
40249
|
-
exports
|
|
40250
|
-
exports
|
|
40251
|
-
exports
|
|
40585
|
+
exports = module.exports = requireDebug$1();
|
|
40586
|
+
exports.init = init;
|
|
40587
|
+
exports.log = log;
|
|
40588
|
+
exports.formatArgs = formatArgs;
|
|
40589
|
+
exports.save = save;
|
|
40590
|
+
exports.load = load;
|
|
40591
|
+
exports.useColors = useColors;
|
|
40252
40592
|
|
|
40253
40593
|
/**
|
|
40254
40594
|
* Colors.
|
|
40255
40595
|
*/
|
|
40256
40596
|
|
|
40257
|
-
exports
|
|
40597
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
40258
40598
|
|
|
40259
40599
|
/**
|
|
40260
40600
|
* Build up the default `inspectOpts` object from the environment variables.
|
|
@@ -40262,7 +40602,7 @@ function requireNode$1() {
|
|
|
40262
40602
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
40263
40603
|
*/
|
|
40264
40604
|
|
|
40265
|
-
exports
|
|
40605
|
+
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
|
40266
40606
|
return /^debug_/i.test(key);
|
|
40267
40607
|
}).reduce(function (obj, key) {
|
|
40268
40608
|
// camel-case
|
|
@@ -40295,14 +40635,14 @@ function requireNode$1() {
|
|
|
40295
40635
|
*/
|
|
40296
40636
|
|
|
40297
40637
|
function useColors() {
|
|
40298
|
-
return 'colors' in exports
|
|
40638
|
+
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(fd);
|
|
40299
40639
|
}
|
|
40300
40640
|
|
|
40301
40641
|
/**
|
|
40302
40642
|
* Map %o to `util.inspect()`, all on a single line.
|
|
40303
40643
|
*/
|
|
40304
40644
|
|
|
40305
|
-
exports
|
|
40645
|
+
exports.formatters.o = function (v) {
|
|
40306
40646
|
this.inspectOpts.colors = this.useColors;
|
|
40307
40647
|
return util.inspect(v, this.inspectOpts).split('\n').map(function (str) {
|
|
40308
40648
|
return str.trim();
|
|
@@ -40313,7 +40653,7 @@ function requireNode$1() {
|
|
|
40313
40653
|
* Map %o to `util.inspect()`, allowing multiple lines if needed.
|
|
40314
40654
|
*/
|
|
40315
40655
|
|
|
40316
|
-
exports
|
|
40656
|
+
exports.formatters.O = function (v) {
|
|
40317
40657
|
this.inspectOpts.colors = this.useColors;
|
|
40318
40658
|
return util.inspect(v, this.inspectOpts);
|
|
40319
40659
|
};
|
|
@@ -40331,7 +40671,7 @@ function requireNode$1() {
|
|
|
40331
40671
|
var c = this.color;
|
|
40332
40672
|
var prefix = " \x1B[3" + c + ';1m' + name + ' ' + "\x1B[0m";
|
|
40333
40673
|
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
|
40334
|
-
args.push("\x1B[3" + c + 'm+' + exports
|
|
40674
|
+
args.push("\x1B[3" + c + 'm+' + exports.humanize(this.diff) + "\x1B[0m");
|
|
40335
40675
|
} else {
|
|
40336
40676
|
args[0] = new Date().toUTCString() + ' ' + name + ' ' + args[0];
|
|
40337
40677
|
}
|
|
@@ -40447,9 +40787,9 @@ function requireNode$1() {
|
|
|
40447
40787
|
|
|
40448
40788
|
function init(debug) {
|
|
40449
40789
|
debug.inspectOpts = {};
|
|
40450
|
-
var keys = Object.keys(exports
|
|
40790
|
+
var keys = Object.keys(exports.inspectOpts);
|
|
40451
40791
|
for (var i = 0; i < keys.length; i++) {
|
|
40452
|
-
debug.inspectOpts[keys[i]] = exports
|
|
40792
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
40453
40793
|
}
|
|
40454
40794
|
}
|
|
40455
40795
|
|
|
@@ -40457,7 +40797,7 @@ function requireNode$1() {
|
|
|
40457
40797
|
* Enable namespaces listed in `process.env.DEBUG` initially.
|
|
40458
40798
|
*/
|
|
40459
40799
|
|
|
40460
|
-
exports
|
|
40800
|
+
exports.enable(load());
|
|
40461
40801
|
})(node$1, node$1.exports);
|
|
40462
40802
|
return node$1.exports;
|
|
40463
40803
|
}
|
|
@@ -41087,7 +41427,7 @@ var utilsMerge = {exports: {}};
|
|
|
41087
41427
|
* @return {Object}
|
|
41088
41428
|
* @api public
|
|
41089
41429
|
*/
|
|
41090
|
-
(function (module, exports
|
|
41430
|
+
(function (module, exports) {
|
|
41091
41431
|
module.exports = function (a, b) {
|
|
41092
41432
|
if (a && b) {
|
|
41093
41433
|
for (var key in b) {
|
|
@@ -41961,7 +42301,7 @@ var utils = {};
|
|
|
41961
42301
|
var safeBuffer = {exports: {}};
|
|
41962
42302
|
|
|
41963
42303
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
41964
|
-
(function (module, exports
|
|
42304
|
+
(function (module, exports) {
|
|
41965
42305
|
/* eslint-disable node/no-deprecated-api */
|
|
41966
42306
|
var buffer = require$$0$6;
|
|
41967
42307
|
var Buffer = buffer.Buffer;
|
|
@@ -41976,8 +42316,8 @@ var safeBuffer = {exports: {}};
|
|
|
41976
42316
|
module.exports = buffer;
|
|
41977
42317
|
} else {
|
|
41978
42318
|
// Copy properties from require('buffer')
|
|
41979
|
-
copyProps(buffer, exports
|
|
41980
|
-
exports
|
|
42319
|
+
copyProps(buffer, exports);
|
|
42320
|
+
exports.Buffer = SafeBuffer;
|
|
41981
42321
|
}
|
|
41982
42322
|
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
41983
42323
|
return Buffer(arg, encodingOrOffset, length);
|
|
@@ -42594,7 +42934,7 @@ var hasRequiredDebug;
|
|
|
42594
42934
|
function requireDebug() {
|
|
42595
42935
|
if (hasRequiredDebug) return debug$1.exports;
|
|
42596
42936
|
hasRequiredDebug = 1;
|
|
42597
|
-
(function (module, exports
|
|
42937
|
+
(function (module, exports) {
|
|
42598
42938
|
/**
|
|
42599
42939
|
* This is the common logic for both the Node.js and web browser
|
|
42600
42940
|
* implementations of `debug()`.
|
|
@@ -42602,19 +42942,19 @@ function requireDebug() {
|
|
|
42602
42942
|
* Expose `debug()` as the module.
|
|
42603
42943
|
*/
|
|
42604
42944
|
|
|
42605
|
-
exports
|
|
42606
|
-
exports
|
|
42607
|
-
exports
|
|
42608
|
-
exports
|
|
42609
|
-
exports
|
|
42610
|
-
exports
|
|
42945
|
+
exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
|
|
42946
|
+
exports.coerce = coerce;
|
|
42947
|
+
exports.disable = disable;
|
|
42948
|
+
exports.enable = enable;
|
|
42949
|
+
exports.enabled = enabled;
|
|
42950
|
+
exports.humanize = requireMs();
|
|
42611
42951
|
|
|
42612
42952
|
/**
|
|
42613
42953
|
* The currently active debug mode names, and names to skip.
|
|
42614
42954
|
*/
|
|
42615
42955
|
|
|
42616
|
-
exports
|
|
42617
|
-
exports
|
|
42956
|
+
exports.names = [];
|
|
42957
|
+
exports.skips = [];
|
|
42618
42958
|
|
|
42619
42959
|
/**
|
|
42620
42960
|
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
@@ -42622,7 +42962,7 @@ function requireDebug() {
|
|
|
42622
42962
|
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
42623
42963
|
*/
|
|
42624
42964
|
|
|
42625
|
-
exports
|
|
42965
|
+
exports.formatters = {};
|
|
42626
42966
|
|
|
42627
42967
|
/**
|
|
42628
42968
|
* Previous log timestamp.
|
|
@@ -42644,7 +42984,7 @@ function requireDebug() {
|
|
|
42644
42984
|
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
42645
42985
|
hash |= 0; // Convert to 32bit integer
|
|
42646
42986
|
}
|
|
42647
|
-
return exports
|
|
42987
|
+
return exports.colors[Math.abs(hash) % exports.colors.length];
|
|
42648
42988
|
}
|
|
42649
42989
|
|
|
42650
42990
|
/**
|
|
@@ -42674,7 +43014,7 @@ function requireDebug() {
|
|
|
42674
43014
|
for (var i = 0; i < args.length; i++) {
|
|
42675
43015
|
args[i] = arguments[i];
|
|
42676
43016
|
}
|
|
42677
|
-
args[0] = exports
|
|
43017
|
+
args[0] = exports.coerce(args[0]);
|
|
42678
43018
|
if ('string' !== typeof args[0]) {
|
|
42679
43019
|
// anything else let's inspect with %O
|
|
42680
43020
|
args.unshift('%O');
|
|
@@ -42686,7 +43026,7 @@ function requireDebug() {
|
|
|
42686
43026
|
// if we encounter an escaped % then don't increase the array index
|
|
42687
43027
|
if (match === '%%') return match;
|
|
42688
43028
|
index++;
|
|
42689
|
-
var formatter = exports
|
|
43029
|
+
var formatter = exports.formatters[format];
|
|
42690
43030
|
if ('function' === typeof formatter) {
|
|
42691
43031
|
var val = args[index];
|
|
42692
43032
|
match = formatter.call(self, val);
|
|
@@ -42699,18 +43039,18 @@ function requireDebug() {
|
|
|
42699
43039
|
});
|
|
42700
43040
|
|
|
42701
43041
|
// apply env-specific formatting (colors, etc.)
|
|
42702
|
-
exports
|
|
42703
|
-
var logFn = debug.log || exports
|
|
43042
|
+
exports.formatArgs.call(self, args);
|
|
43043
|
+
var logFn = debug.log || exports.log || console.log.bind(console);
|
|
42704
43044
|
logFn.apply(self, args);
|
|
42705
43045
|
}
|
|
42706
43046
|
debug.namespace = namespace;
|
|
42707
|
-
debug.enabled = exports
|
|
42708
|
-
debug.useColors = exports
|
|
43047
|
+
debug.enabled = exports.enabled(namespace);
|
|
43048
|
+
debug.useColors = exports.useColors();
|
|
42709
43049
|
debug.color = selectColor(namespace);
|
|
42710
43050
|
|
|
42711
43051
|
// env-specific initialization logic for debug instances
|
|
42712
|
-
if ('function' === typeof exports
|
|
42713
|
-
exports
|
|
43052
|
+
if ('function' === typeof exports.init) {
|
|
43053
|
+
exports.init(debug);
|
|
42714
43054
|
}
|
|
42715
43055
|
return debug;
|
|
42716
43056
|
}
|
|
@@ -42724,18 +43064,18 @@ function requireDebug() {
|
|
|
42724
43064
|
*/
|
|
42725
43065
|
|
|
42726
43066
|
function enable(namespaces) {
|
|
42727
|
-
exports
|
|
42728
|
-
exports
|
|
42729
|
-
exports
|
|
43067
|
+
exports.save(namespaces);
|
|
43068
|
+
exports.names = [];
|
|
43069
|
+
exports.skips = [];
|
|
42730
43070
|
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
|
42731
43071
|
var len = split.length;
|
|
42732
43072
|
for (var i = 0; i < len; i++) {
|
|
42733
43073
|
if (!split[i]) continue; // ignore empty strings
|
|
42734
43074
|
namespaces = split[i].replace(/\*/g, '.*?');
|
|
42735
43075
|
if (namespaces[0] === '-') {
|
|
42736
|
-
exports
|
|
43076
|
+
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
42737
43077
|
} else {
|
|
42738
|
-
exports
|
|
43078
|
+
exports.names.push(new RegExp('^' + namespaces + '$'));
|
|
42739
43079
|
}
|
|
42740
43080
|
}
|
|
42741
43081
|
}
|
|
@@ -42747,7 +43087,7 @@ function requireDebug() {
|
|
|
42747
43087
|
*/
|
|
42748
43088
|
|
|
42749
43089
|
function disable() {
|
|
42750
|
-
exports
|
|
43090
|
+
exports.enable('');
|
|
42751
43091
|
}
|
|
42752
43092
|
|
|
42753
43093
|
/**
|
|
@@ -42760,13 +43100,13 @@ function requireDebug() {
|
|
|
42760
43100
|
|
|
42761
43101
|
function enabled(name) {
|
|
42762
43102
|
var i, len;
|
|
42763
|
-
for (i = 0, len = exports
|
|
42764
|
-
if (exports
|
|
43103
|
+
for (i = 0, len = exports.skips.length; i < len; i++) {
|
|
43104
|
+
if (exports.skips[i].test(name)) {
|
|
42765
43105
|
return false;
|
|
42766
43106
|
}
|
|
42767
43107
|
}
|
|
42768
|
-
for (i = 0, len = exports
|
|
42769
|
-
if (exports
|
|
43108
|
+
for (i = 0, len = exports.names.length; i < len; i++) {
|
|
43109
|
+
if (exports.names[i].test(name)) {
|
|
42770
43110
|
return true;
|
|
42771
43111
|
}
|
|
42772
43112
|
}
|
|
@@ -42793,20 +43133,20 @@ var hasRequiredBrowser;
|
|
|
42793
43133
|
function requireBrowser() {
|
|
42794
43134
|
if (hasRequiredBrowser) return browser.exports;
|
|
42795
43135
|
hasRequiredBrowser = 1;
|
|
42796
|
-
(function (module, exports
|
|
42797
|
-
exports
|
|
42798
|
-
exports
|
|
42799
|
-
exports
|
|
42800
|
-
exports
|
|
42801
|
-
exports
|
|
42802
|
-
exports
|
|
42803
|
-
exports
|
|
43136
|
+
(function (module, exports) {
|
|
43137
|
+
exports = module.exports = requireDebug();
|
|
43138
|
+
exports.log = log;
|
|
43139
|
+
exports.formatArgs = formatArgs;
|
|
43140
|
+
exports.save = save;
|
|
43141
|
+
exports.load = load;
|
|
43142
|
+
exports.useColors = useColors;
|
|
43143
|
+
exports.storage = 'undefined' != typeof chrome && 'undefined' != typeof chrome.storage ? chrome.storage.local : localstorage();
|
|
42804
43144
|
|
|
42805
43145
|
/**
|
|
42806
43146
|
* Colors.
|
|
42807
43147
|
*/
|
|
42808
43148
|
|
|
42809
|
-
exports
|
|
43149
|
+
exports.colors = ['lightseagreen', 'forestgreen', 'goldenrod', 'dodgerblue', 'darkorchid', 'crimson'];
|
|
42810
43150
|
|
|
42811
43151
|
/**
|
|
42812
43152
|
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
@@ -42840,7 +43180,7 @@ function requireBrowser() {
|
|
|
42840
43180
|
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
42841
43181
|
*/
|
|
42842
43182
|
|
|
42843
|
-
exports
|
|
43183
|
+
exports.formatters.j = function (v) {
|
|
42844
43184
|
try {
|
|
42845
43185
|
return JSON.stringify(v);
|
|
42846
43186
|
} catch (err) {
|
|
@@ -42856,7 +43196,7 @@ function requireBrowser() {
|
|
|
42856
43196
|
|
|
42857
43197
|
function formatArgs(args) {
|
|
42858
43198
|
var useColors = this.useColors;
|
|
42859
|
-
args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports
|
|
43199
|
+
args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff);
|
|
42860
43200
|
if (!useColors) return;
|
|
42861
43201
|
var c = 'color: ' + this.color;
|
|
42862
43202
|
args.splice(1, 0, c, 'color: inherit');
|
|
@@ -42901,9 +43241,9 @@ function requireBrowser() {
|
|
|
42901
43241
|
function save(namespaces) {
|
|
42902
43242
|
try {
|
|
42903
43243
|
if (null == namespaces) {
|
|
42904
|
-
exports
|
|
43244
|
+
exports.storage.removeItem('debug');
|
|
42905
43245
|
} else {
|
|
42906
|
-
exports
|
|
43246
|
+
exports.storage.debug = namespaces;
|
|
42907
43247
|
}
|
|
42908
43248
|
} catch (e) {}
|
|
42909
43249
|
}
|
|
@@ -42918,7 +43258,7 @@ function requireBrowser() {
|
|
|
42918
43258
|
function load() {
|
|
42919
43259
|
var r;
|
|
42920
43260
|
try {
|
|
42921
|
-
r = exports
|
|
43261
|
+
r = exports.storage.debug;
|
|
42922
43262
|
} catch (e) {}
|
|
42923
43263
|
|
|
42924
43264
|
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
@@ -42932,7 +43272,7 @@ function requireBrowser() {
|
|
|
42932
43272
|
* Enable namespaces listed in `localStorage.debug` initially.
|
|
42933
43273
|
*/
|
|
42934
43274
|
|
|
42935
|
-
exports
|
|
43275
|
+
exports.enable(load());
|
|
42936
43276
|
|
|
42937
43277
|
/**
|
|
42938
43278
|
* Localstorage attempts to return the localstorage.
|
|
@@ -42963,7 +43303,7 @@ var hasRequiredNode;
|
|
|
42963
43303
|
function requireNode() {
|
|
42964
43304
|
if (hasRequiredNode) return node.exports;
|
|
42965
43305
|
hasRequiredNode = 1;
|
|
42966
|
-
(function (module, exports
|
|
43306
|
+
(function (module, exports) {
|
|
42967
43307
|
var tty = require$$0$5;
|
|
42968
43308
|
var util = require$$1$1;
|
|
42969
43309
|
|
|
@@ -42973,19 +43313,19 @@ function requireNode() {
|
|
|
42973
43313
|
* Expose `debug()` as the module.
|
|
42974
43314
|
*/
|
|
42975
43315
|
|
|
42976
|
-
exports
|
|
42977
|
-
exports
|
|
42978
|
-
exports
|
|
42979
|
-
exports
|
|
42980
|
-
exports
|
|
42981
|
-
exports
|
|
42982
|
-
exports
|
|
43316
|
+
exports = module.exports = requireDebug();
|
|
43317
|
+
exports.init = init;
|
|
43318
|
+
exports.log = log;
|
|
43319
|
+
exports.formatArgs = formatArgs;
|
|
43320
|
+
exports.save = save;
|
|
43321
|
+
exports.load = load;
|
|
43322
|
+
exports.useColors = useColors;
|
|
42983
43323
|
|
|
42984
43324
|
/**
|
|
42985
43325
|
* Colors.
|
|
42986
43326
|
*/
|
|
42987
43327
|
|
|
42988
|
-
exports
|
|
43328
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
42989
43329
|
|
|
42990
43330
|
/**
|
|
42991
43331
|
* Build up the default `inspectOpts` object from the environment variables.
|
|
@@ -42993,7 +43333,7 @@ function requireNode() {
|
|
|
42993
43333
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
42994
43334
|
*/
|
|
42995
43335
|
|
|
42996
|
-
exports
|
|
43336
|
+
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
|
42997
43337
|
return /^debug_/i.test(key);
|
|
42998
43338
|
}).reduce(function (obj, key) {
|
|
42999
43339
|
// camel-case
|
|
@@ -43026,14 +43366,14 @@ function requireNode() {
|
|
|
43026
43366
|
*/
|
|
43027
43367
|
|
|
43028
43368
|
function useColors() {
|
|
43029
|
-
return 'colors' in exports
|
|
43369
|
+
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(fd);
|
|
43030
43370
|
}
|
|
43031
43371
|
|
|
43032
43372
|
/**
|
|
43033
43373
|
* Map %o to `util.inspect()`, all on a single line.
|
|
43034
43374
|
*/
|
|
43035
43375
|
|
|
43036
|
-
exports
|
|
43376
|
+
exports.formatters.o = function (v) {
|
|
43037
43377
|
this.inspectOpts.colors = this.useColors;
|
|
43038
43378
|
return util.inspect(v, this.inspectOpts).split('\n').map(function (str) {
|
|
43039
43379
|
return str.trim();
|
|
@@ -43044,7 +43384,7 @@ function requireNode() {
|
|
|
43044
43384
|
* Map %o to `util.inspect()`, allowing multiple lines if needed.
|
|
43045
43385
|
*/
|
|
43046
43386
|
|
|
43047
|
-
exports
|
|
43387
|
+
exports.formatters.O = function (v) {
|
|
43048
43388
|
this.inspectOpts.colors = this.useColors;
|
|
43049
43389
|
return util.inspect(v, this.inspectOpts);
|
|
43050
43390
|
};
|
|
@@ -43062,7 +43402,7 @@ function requireNode() {
|
|
|
43062
43402
|
var c = this.color;
|
|
43063
43403
|
var prefix = " \x1B[3" + c + ';1m' + name + ' ' + "\x1B[0m";
|
|
43064
43404
|
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
|
43065
|
-
args.push("\x1B[3" + c + 'm+' + exports
|
|
43405
|
+
args.push("\x1B[3" + c + 'm+' + exports.humanize(this.diff) + "\x1B[0m");
|
|
43066
43406
|
} else {
|
|
43067
43407
|
args[0] = new Date().toUTCString() + ' ' + name + ' ' + args[0];
|
|
43068
43408
|
}
|
|
@@ -43178,9 +43518,9 @@ function requireNode() {
|
|
|
43178
43518
|
|
|
43179
43519
|
function init(debug) {
|
|
43180
43520
|
debug.inspectOpts = {};
|
|
43181
|
-
var keys = Object.keys(exports
|
|
43521
|
+
var keys = Object.keys(exports.inspectOpts);
|
|
43182
43522
|
for (var i = 0; i < keys.length; i++) {
|
|
43183
|
-
debug.inspectOpts[keys[i]] = exports
|
|
43523
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
43184
43524
|
}
|
|
43185
43525
|
}
|
|
43186
43526
|
|
|
@@ -43188,7 +43528,7 @@ function requireNode() {
|
|
|
43188
43528
|
* Enable namespaces listed in `process.env.DEBUG` initially.
|
|
43189
43529
|
*/
|
|
43190
43530
|
|
|
43191
|
-
exports
|
|
43531
|
+
exports.enable(load());
|
|
43192
43532
|
})(node, node.exports);
|
|
43193
43533
|
return node.exports;
|
|
43194
43534
|
}
|
|
@@ -46632,7 +46972,7 @@ var onFinished$1 = onFinishedExports;
|
|
|
46632
46972
|
var parseRange$1 = rangeParser_1;
|
|
46633
46973
|
var path$1 = require$$1$3;
|
|
46634
46974
|
var statuses$1 = statuses$3;
|
|
46635
|
-
var Stream = require$$1$
|
|
46975
|
+
var Stream = require$$1$5;
|
|
46636
46976
|
var util = require$$1$1;
|
|
46637
46977
|
|
|
46638
46978
|
/**
|
|
@@ -48646,7 +48986,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48646
48986
|
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
48647
48987
|
* MIT Licensed
|
|
48648
48988
|
*/
|
|
48649
|
-
(function (exports
|
|
48989
|
+
(function (exports) {
|
|
48650
48990
|
|
|
48651
48991
|
/**
|
|
48652
48992
|
* Module dependencies.
|
|
@@ -48672,7 +49012,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48672
49012
|
* @api private
|
|
48673
49013
|
*/
|
|
48674
49014
|
|
|
48675
|
-
exports
|
|
49015
|
+
exports.etag = createETagGenerator({
|
|
48676
49016
|
weak: false
|
|
48677
49017
|
});
|
|
48678
49018
|
|
|
@@ -48685,7 +49025,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48685
49025
|
* @api private
|
|
48686
49026
|
*/
|
|
48687
49027
|
|
|
48688
|
-
exports
|
|
49028
|
+
exports.wetag = createETagGenerator({
|
|
48689
49029
|
weak: true
|
|
48690
49030
|
});
|
|
48691
49031
|
|
|
@@ -48697,7 +49037,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48697
49037
|
* @api private
|
|
48698
49038
|
*/
|
|
48699
49039
|
|
|
48700
|
-
exports
|
|
49040
|
+
exports.isAbsolute = function (path) {
|
|
48701
49041
|
if ('/' === path[0]) return true;
|
|
48702
49042
|
if (':' === path[1] && ('\\' === path[2] || '/' === path[2])) return true; // Windows device path
|
|
48703
49043
|
if ('\\\\' === path.substring(0, 2)) return true; // Microsoft Azure absolute path
|
|
@@ -48711,7 +49051,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48711
49051
|
* @api private
|
|
48712
49052
|
*/
|
|
48713
49053
|
|
|
48714
|
-
exports
|
|
49054
|
+
exports.flatten = deprecate["function"](flatten, 'utils.flatten: use array-flatten npm module instead');
|
|
48715
49055
|
|
|
48716
49056
|
/**
|
|
48717
49057
|
* Normalize the given `type`, for example "html" becomes "text/html".
|
|
@@ -48721,7 +49061,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48721
49061
|
* @api private
|
|
48722
49062
|
*/
|
|
48723
49063
|
|
|
48724
|
-
exports
|
|
49064
|
+
exports.normalizeType = function (type) {
|
|
48725
49065
|
return ~type.indexOf('/') ? acceptParams(type) : {
|
|
48726
49066
|
value: mime.lookup(type),
|
|
48727
49067
|
params: {}
|
|
@@ -48736,10 +49076,10 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48736
49076
|
* @api private
|
|
48737
49077
|
*/
|
|
48738
49078
|
|
|
48739
|
-
exports
|
|
49079
|
+
exports.normalizeTypes = function (types) {
|
|
48740
49080
|
var ret = [];
|
|
48741
49081
|
for (var i = 0; i < types.length; ++i) {
|
|
48742
|
-
ret.push(exports
|
|
49082
|
+
ret.push(exports.normalizeType(types[i]));
|
|
48743
49083
|
}
|
|
48744
49084
|
return ret;
|
|
48745
49085
|
};
|
|
@@ -48753,7 +49093,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48753
49093
|
* @api private
|
|
48754
49094
|
*/
|
|
48755
49095
|
|
|
48756
|
-
exports
|
|
49096
|
+
exports.contentDisposition = deprecate["function"](contentDisposition, 'utils.contentDisposition: use content-disposition npm module instead');
|
|
48757
49097
|
|
|
48758
49098
|
/**
|
|
48759
49099
|
* Parse accept params `str` returning an
|
|
@@ -48790,7 +49130,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48790
49130
|
* @api private
|
|
48791
49131
|
*/
|
|
48792
49132
|
|
|
48793
|
-
exports
|
|
49133
|
+
exports.compileETag = function (val) {
|
|
48794
49134
|
var fn;
|
|
48795
49135
|
if (typeof val === 'function') {
|
|
48796
49136
|
return val;
|
|
@@ -48798,12 +49138,12 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48798
49138
|
switch (val) {
|
|
48799
49139
|
case true:
|
|
48800
49140
|
case 'weak':
|
|
48801
|
-
fn = exports
|
|
49141
|
+
fn = exports.wetag;
|
|
48802
49142
|
break;
|
|
48803
49143
|
case false:
|
|
48804
49144
|
break;
|
|
48805
49145
|
case 'strong':
|
|
48806
|
-
fn = exports
|
|
49146
|
+
fn = exports.etag;
|
|
48807
49147
|
break;
|
|
48808
49148
|
default:
|
|
48809
49149
|
throw new TypeError('unknown value for etag function: ' + val);
|
|
@@ -48819,7 +49159,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48819
49159
|
* @api private
|
|
48820
49160
|
*/
|
|
48821
49161
|
|
|
48822
|
-
exports
|
|
49162
|
+
exports.compileQueryParser = function compileQueryParser(val) {
|
|
48823
49163
|
var fn;
|
|
48824
49164
|
if (typeof val === 'function') {
|
|
48825
49165
|
return val;
|
|
@@ -48849,7 +49189,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48849
49189
|
* @api private
|
|
48850
49190
|
*/
|
|
48851
49191
|
|
|
48852
|
-
exports
|
|
49192
|
+
exports.compileTrust = function (val) {
|
|
48853
49193
|
if (typeof val === 'function') return val;
|
|
48854
49194
|
if (val === true) {
|
|
48855
49195
|
// Support plain true/false
|
|
@@ -48881,7 +49221,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48881
49221
|
* @api private
|
|
48882
49222
|
*/
|
|
48883
49223
|
|
|
48884
|
-
exports
|
|
49224
|
+
exports.setCharset = function setCharset(type, charset) {
|
|
48885
49225
|
if (!type || !charset) {
|
|
48886
49226
|
return type;
|
|
48887
49227
|
}
|
|
@@ -48946,7 +49286,7 @@ var proxyAddrExports = proxyAddr.exports;
|
|
|
48946
49286
|
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
48947
49287
|
* MIT Licensed
|
|
48948
49288
|
*/
|
|
48949
|
-
(function (module, exports
|
|
49289
|
+
(function (module, exports) {
|
|
48950
49290
|
|
|
48951
49291
|
/**
|
|
48952
49292
|
* Module dependencies.
|
|
@@ -51123,7 +51463,7 @@ var cookieSignature = {};
|
|
|
51123
51463
|
/**
|
|
51124
51464
|
* Module dependencies.
|
|
51125
51465
|
*/
|
|
51126
|
-
(function (exports
|
|
51466
|
+
(function (exports) {
|
|
51127
51467
|
var crypto = require$$0$7;
|
|
51128
51468
|
|
|
51129
51469
|
/**
|
|
@@ -51135,7 +51475,7 @@ var cookieSignature = {};
|
|
|
51135
51475
|
* @api private
|
|
51136
51476
|
*/
|
|
51137
51477
|
|
|
51138
|
-
exports
|
|
51478
|
+
exports.sign = function (val, secret) {
|
|
51139
51479
|
if ('string' !== typeof val) throw new TypeError("Cookie value must be provided as a string.");
|
|
51140
51480
|
if (null == secret) throw new TypeError("Secret key must be provided.");
|
|
51141
51481
|
return val + '.' + crypto.createHmac('sha256', secret).update(val).digest('base64').replace(/\=+$/, '');
|
|
@@ -51151,11 +51491,11 @@ var cookieSignature = {};
|
|
|
51151
51491
|
* @api private
|
|
51152
51492
|
*/
|
|
51153
51493
|
|
|
51154
|
-
exports
|
|
51494
|
+
exports.unsign = function (val, secret) {
|
|
51155
51495
|
if ('string' !== typeof val) throw new TypeError("Signed cookie string must be provided.");
|
|
51156
51496
|
if (null == secret) throw new TypeError("Secret key must be provided.");
|
|
51157
51497
|
var str = val.slice(0, val.lastIndexOf('.')),
|
|
51158
|
-
mac = exports
|
|
51498
|
+
mac = exports.sign(str, secret);
|
|
51159
51499
|
return sha1(mac) == sha1(val) ? str : false;
|
|
51160
51500
|
};
|
|
51161
51501
|
|
|
@@ -52778,7 +53118,7 @@ function requireServeStatic() {
|
|
|
52778
53118
|
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
52779
53119
|
* MIT Licensed
|
|
52780
53120
|
*/
|
|
52781
|
-
(function (module, exports
|
|
53121
|
+
(function (module, exports) {
|
|
52782
53122
|
|
|
52783
53123
|
/**
|
|
52784
53124
|
* Module dependencies.
|
|
@@ -52796,7 +53136,7 @@ function requireServeStatic() {
|
|
|
52796
53136
|
* Expose `createApplication()`.
|
|
52797
53137
|
*/
|
|
52798
53138
|
|
|
52799
|
-
exports
|
|
53139
|
+
exports = module.exports = createApplication;
|
|
52800
53140
|
|
|
52801
53141
|
/**
|
|
52802
53142
|
* Create an express application.
|
|
@@ -52806,60 +53146,60 @@ function requireServeStatic() {
|
|
|
52806
53146
|
*/
|
|
52807
53147
|
|
|
52808
53148
|
function createApplication() {
|
|
52809
|
-
var
|
|
52810
|
-
|
|
53149
|
+
var _app = function app(req, res, next) {
|
|
53150
|
+
_app.handle(req, res, next);
|
|
52811
53151
|
};
|
|
52812
|
-
mixin(
|
|
52813
|
-
mixin(
|
|
53152
|
+
mixin(_app, EventEmitter.prototype, false);
|
|
53153
|
+
mixin(_app, proto, false);
|
|
52814
53154
|
|
|
52815
53155
|
// expose the prototype that will get set on requests
|
|
52816
|
-
|
|
53156
|
+
_app.request = Object.create(req, {
|
|
52817
53157
|
app: {
|
|
52818
53158
|
configurable: true,
|
|
52819
53159
|
enumerable: true,
|
|
52820
53160
|
writable: true,
|
|
52821
|
-
value:
|
|
53161
|
+
value: _app
|
|
52822
53162
|
}
|
|
52823
53163
|
});
|
|
52824
53164
|
|
|
52825
53165
|
// expose the prototype that will get set on responses
|
|
52826
|
-
|
|
53166
|
+
_app.response = Object.create(res, {
|
|
52827
53167
|
app: {
|
|
52828
53168
|
configurable: true,
|
|
52829
53169
|
enumerable: true,
|
|
52830
53170
|
writable: true,
|
|
52831
|
-
value:
|
|
53171
|
+
value: _app
|
|
52832
53172
|
}
|
|
52833
53173
|
});
|
|
52834
|
-
|
|
52835
|
-
return
|
|
53174
|
+
_app.init();
|
|
53175
|
+
return _app;
|
|
52836
53176
|
}
|
|
52837
53177
|
|
|
52838
53178
|
/**
|
|
52839
53179
|
* Expose the prototypes.
|
|
52840
53180
|
*/
|
|
52841
53181
|
|
|
52842
|
-
exports
|
|
52843
|
-
exports
|
|
52844
|
-
exports
|
|
53182
|
+
exports.application = proto;
|
|
53183
|
+
exports.request = req;
|
|
53184
|
+
exports.response = res;
|
|
52845
53185
|
|
|
52846
53186
|
/**
|
|
52847
53187
|
* Expose constructors.
|
|
52848
53188
|
*/
|
|
52849
53189
|
|
|
52850
|
-
exports
|
|
52851
|
-
exports
|
|
53190
|
+
exports.Route = Route;
|
|
53191
|
+
exports.Router = Router;
|
|
52852
53192
|
|
|
52853
53193
|
/**
|
|
52854
53194
|
* Expose middleware
|
|
52855
53195
|
*/
|
|
52856
53196
|
|
|
52857
|
-
exports
|
|
52858
|
-
exports
|
|
52859
|
-
exports
|
|
52860
|
-
exports
|
|
52861
|
-
exports
|
|
52862
|
-
exports
|
|
53197
|
+
exports.json = bodyParser.json;
|
|
53198
|
+
exports.query = requireQuery();
|
|
53199
|
+
exports.raw = bodyParser.raw;
|
|
53200
|
+
exports["static"] = requireServeStatic();
|
|
53201
|
+
exports.text = bodyParser.text;
|
|
53202
|
+
exports.urlencoded = bodyParser.urlencoded;
|
|
52863
53203
|
|
|
52864
53204
|
/**
|
|
52865
53205
|
* Replace removed middleware with an appropriate error message.
|
|
@@ -52867,7 +53207,7 @@ function requireServeStatic() {
|
|
|
52867
53207
|
|
|
52868
53208
|
var removedMiddlewares = ['bodyParser', 'compress', 'cookieSession', 'session', 'logger', 'cookieParser', 'favicon', 'responseTime', 'errorHandler', 'timeout', 'methodOverride', 'vhost', 'csrf', 'directory', 'limit', 'multipart', 'staticCache'];
|
|
52869
53209
|
removedMiddlewares.forEach(function (name) {
|
|
52870
|
-
Object.defineProperty(exports
|
|
53210
|
+
Object.defineProperty(exports, name, {
|
|
52871
53211
|
get: function get() {
|
|
52872
53212
|
throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.');
|
|
52873
53213
|
},
|