@builderbot/provider-sherpa 1.3.13 → 1.3.14
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/index.cjs +588 -1363
- package/dist/index.mjs +588 -1363
- package/dist/sherpa.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -18,13 +18,13 @@ var require$$7 = require('url');
|
|
|
18
18
|
var require$$0$9 = require('buffer');
|
|
19
19
|
var require$$4$1 = require('http');
|
|
20
20
|
var require$$5$1 = require('https');
|
|
21
|
-
var require$$
|
|
22
|
-
var require$$1$
|
|
23
|
-
var require$$0$
|
|
24
|
-
var require$$0$
|
|
21
|
+
var require$$1$2 = require('tty');
|
|
22
|
+
var require$$1$3 = require('crypto');
|
|
23
|
+
var require$$0$c = require('sharp');
|
|
24
|
+
var require$$0$b = require('fluent-ffmpeg');
|
|
25
25
|
var require$$8 = require('qrcode-terminal');
|
|
26
|
-
var require$$1$
|
|
27
|
-
var require$$1$
|
|
26
|
+
var require$$1$5 = require('child_process');
|
|
27
|
+
var require$$1$4 = require('string_decoder');
|
|
28
28
|
var require$$4$2 = require('timers');
|
|
29
29
|
var require$$3$1 = require('readline');
|
|
30
30
|
var require$$3$2 = require('net');
|
|
@@ -16499,7 +16499,7 @@ function specialSet (store, o, k, path, afterPath, censor, isCensorFct, censorFc
|
|
|
16499
16499
|
wcov = n[wck];
|
|
16500
16500
|
kIsWc = k === '*';
|
|
16501
16501
|
if (consecutive) {
|
|
16502
|
-
redactPathCurrent = node$
|
|
16502
|
+
redactPathCurrent = node$1(redactPathCurrent, wck, depth);
|
|
16503
16503
|
level = i;
|
|
16504
16504
|
ov = iterateNthLevel(wcov, level - 1, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, o[originalKey], depth + 1);
|
|
16505
16505
|
} else {
|
|
@@ -16515,15 +16515,15 @@ function specialSet (store, o, k, path, afterPath, censor, isCensorFct, censorFc
|
|
|
16515
16515
|
? (censorFctTakesPath ? censor(ov, [...path, originalKey, ...afterPath]) : censor(ov))
|
|
16516
16516
|
: censor);
|
|
16517
16517
|
if (kIsWc) {
|
|
16518
|
-
const rv = restoreInstr(node$
|
|
16518
|
+
const rv = restoreInstr(node$1(redactPathCurrent, wck, depth), ov, o[originalKey]);
|
|
16519
16519
|
store.push(rv);
|
|
16520
16520
|
n[wck] = nv;
|
|
16521
16521
|
} else {
|
|
16522
16522
|
if (wcov[k] === nv) ; else if ((nv === undefined && censor !== undefined) || (has(wcov, k) && nv === ov)) {
|
|
16523
|
-
redactPathCurrent = node$
|
|
16523
|
+
redactPathCurrent = node$1(redactPathCurrent, wck, depth);
|
|
16524
16524
|
} else {
|
|
16525
|
-
redactPathCurrent = node$
|
|
16526
|
-
const rv = restoreInstr(node$
|
|
16525
|
+
redactPathCurrent = node$1(redactPathCurrent, wck, depth);
|
|
16526
|
+
const rv = restoreInstr(node$1(redactPathCurrent, k, depth + 1), ov, o[originalKey]);
|
|
16527
16527
|
store.push(rv);
|
|
16528
16528
|
wcov[k] = nv;
|
|
16529
16529
|
}
|
|
@@ -16534,7 +16534,7 @@ function specialSet (store, o, k, path, afterPath, censor, isCensorFct, censorFc
|
|
|
16534
16534
|
wc = null;
|
|
16535
16535
|
} else {
|
|
16536
16536
|
ov = n[k];
|
|
16537
|
-
redactPathCurrent = node$
|
|
16537
|
+
redactPathCurrent = node$1(redactPathCurrent, k, depth);
|
|
16538
16538
|
nv = (i !== lastPathIndex)
|
|
16539
16539
|
? ov
|
|
16540
16540
|
: (isCensorFct
|
|
@@ -16580,7 +16580,7 @@ function iterateNthLevel (wcov, level, k, path, afterPath, censor, isCensorFct,
|
|
|
16580
16580
|
n[wck] = nv;
|
|
16581
16581
|
} else {
|
|
16582
16582
|
if (wcov[k] === nv) ; else if ((nv === undefined && censor !== undefined) || (has(wcov, k) && nv === ov)) ; else {
|
|
16583
|
-
const rv = restoreInstr(node$
|
|
16583
|
+
const rv = restoreInstr(node$1(redactPathCurrent, k, depth + 1), ov, parent);
|
|
16584
16584
|
store.push(rv);
|
|
16585
16585
|
wcov[k] = nv;
|
|
16586
16586
|
}
|
|
@@ -16589,7 +16589,7 @@ function iterateNthLevel (wcov, level, k, path, afterPath, censor, isCensorFct,
|
|
|
16589
16589
|
}
|
|
16590
16590
|
for (const key in wcov) {
|
|
16591
16591
|
if (typeof wcov[key] === 'object') {
|
|
16592
|
-
redactPathCurrent = node$
|
|
16592
|
+
redactPathCurrent = node$1(redactPathCurrent, key, depth);
|
|
16593
16593
|
iterateNthLevel(wcov[key], level - 1, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth + 1);
|
|
16594
16594
|
}
|
|
16595
16595
|
}
|
|
@@ -16619,9 +16619,9 @@ function tree () {
|
|
|
16619
16619
|
* @param {number} depth the depth of the new node in the tree - used to determing whether to add the new node as a child or sibling of the provided `parent` node
|
|
16620
16620
|
* @returns {TreeNode} a reference to the newly created node in the tree
|
|
16621
16621
|
*/
|
|
16622
|
-
function node$
|
|
16622
|
+
function node$1 (parent, key, depth) {
|
|
16623
16623
|
if (parent.depth === depth) {
|
|
16624
|
-
return node$
|
|
16624
|
+
return node$1(parent.parent, key, depth)
|
|
16625
16625
|
}
|
|
16626
16626
|
|
|
16627
16627
|
var child = {
|
|
@@ -23291,9 +23291,9 @@ function requireXhr$1 () {
|
|
|
23291
23291
|
|
|
23292
23292
|
var followRedirects = {exports: {}};
|
|
23293
23293
|
|
|
23294
|
-
var src$
|
|
23294
|
+
var src$1 = {exports: {}};
|
|
23295
23295
|
|
|
23296
|
-
var browser
|
|
23296
|
+
var browser = {exports: {}};
|
|
23297
23297
|
|
|
23298
23298
|
/**
|
|
23299
23299
|
* Helpers.
|
|
@@ -23466,12 +23466,12 @@ function requireMs () {
|
|
|
23466
23466
|
return ms;
|
|
23467
23467
|
}
|
|
23468
23468
|
|
|
23469
|
-
var common$
|
|
23470
|
-
var hasRequiredCommon$
|
|
23469
|
+
var common$1;
|
|
23470
|
+
var hasRequiredCommon$1;
|
|
23471
23471
|
|
|
23472
|
-
function requireCommon$
|
|
23473
|
-
if (hasRequiredCommon$
|
|
23474
|
-
hasRequiredCommon$
|
|
23472
|
+
function requireCommon$1 () {
|
|
23473
|
+
if (hasRequiredCommon$1) return common$1;
|
|
23474
|
+
hasRequiredCommon$1 = 1;
|
|
23475
23475
|
/**
|
|
23476
23476
|
* This is the common logic for both the Node.js and web browser
|
|
23477
23477
|
* implementations of `debug()`.
|
|
@@ -23762,17 +23762,17 @@ function requireCommon$2 () {
|
|
|
23762
23762
|
return createDebug;
|
|
23763
23763
|
}
|
|
23764
23764
|
|
|
23765
|
-
common$
|
|
23766
|
-
return common$
|
|
23765
|
+
common$1 = setup;
|
|
23766
|
+
return common$1;
|
|
23767
23767
|
}
|
|
23768
23768
|
|
|
23769
23769
|
/* eslint-env browser */
|
|
23770
23770
|
|
|
23771
|
-
var hasRequiredBrowser
|
|
23771
|
+
var hasRequiredBrowser;
|
|
23772
23772
|
|
|
23773
|
-
function requireBrowser
|
|
23774
|
-
if (hasRequiredBrowser
|
|
23775
|
-
hasRequiredBrowser
|
|
23773
|
+
function requireBrowser () {
|
|
23774
|
+
if (hasRequiredBrowser) return browser.exports;
|
|
23775
|
+
hasRequiredBrowser = 1;
|
|
23776
23776
|
(function (module, exports$1) {
|
|
23777
23777
|
/**
|
|
23778
23778
|
* This is the web browser implementation of `debug()`.
|
|
@@ -24029,7 +24029,7 @@ function requireBrowser$1 () {
|
|
|
24029
24029
|
}
|
|
24030
24030
|
}
|
|
24031
24031
|
|
|
24032
|
-
module.exports = requireCommon$
|
|
24032
|
+
module.exports = requireCommon$1()(exports$1);
|
|
24033
24033
|
|
|
24034
24034
|
const {formatters} = module.exports;
|
|
24035
24035
|
|
|
@@ -24044,11 +24044,11 @@ function requireBrowser$1 () {
|
|
|
24044
24044
|
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
24045
24045
|
}
|
|
24046
24046
|
};
|
|
24047
|
-
} (browser
|
|
24048
|
-
return browser
|
|
24047
|
+
} (browser, browser.exports));
|
|
24048
|
+
return browser.exports;
|
|
24049
24049
|
}
|
|
24050
24050
|
|
|
24051
|
-
var node
|
|
24051
|
+
var node = {exports: {}};
|
|
24052
24052
|
|
|
24053
24053
|
var hasFlag;
|
|
24054
24054
|
var hasRequiredHasFlag;
|
|
@@ -24073,7 +24073,7 @@ function requireSupportsColor () {
|
|
|
24073
24073
|
if (hasRequiredSupportsColor) return supportsColor_1;
|
|
24074
24074
|
hasRequiredSupportsColor = 1;
|
|
24075
24075
|
const os = require$$2;
|
|
24076
|
-
const tty = require$$
|
|
24076
|
+
const tty = require$$1$2;
|
|
24077
24077
|
const hasFlag = requireHasFlag();
|
|
24078
24078
|
|
|
24079
24079
|
const {env} = process;
|
|
@@ -24213,13 +24213,13 @@ function requireSupportsColor () {
|
|
|
24213
24213
|
* Module dependencies.
|
|
24214
24214
|
*/
|
|
24215
24215
|
|
|
24216
|
-
var hasRequiredNode
|
|
24216
|
+
var hasRequiredNode;
|
|
24217
24217
|
|
|
24218
|
-
function requireNode
|
|
24219
|
-
if (hasRequiredNode
|
|
24220
|
-
hasRequiredNode
|
|
24218
|
+
function requireNode () {
|
|
24219
|
+
if (hasRequiredNode) return node.exports;
|
|
24220
|
+
hasRequiredNode = 1;
|
|
24221
24221
|
(function (module, exports$1) {
|
|
24222
|
-
const tty = require$$
|
|
24222
|
+
const tty = require$$1$2;
|
|
24223
24223
|
const util = require$$0$6;
|
|
24224
24224
|
|
|
24225
24225
|
/**
|
|
@@ -24454,7 +24454,7 @@ function requireNode$1 () {
|
|
|
24454
24454
|
}
|
|
24455
24455
|
}
|
|
24456
24456
|
|
|
24457
|
-
module.exports = requireCommon$
|
|
24457
|
+
module.exports = requireCommon$1()(exports$1);
|
|
24458
24458
|
|
|
24459
24459
|
const {formatters} = module.exports;
|
|
24460
24460
|
|
|
@@ -24478,8 +24478,8 @@ function requireNode$1 () {
|
|
|
24478
24478
|
this.inspectOpts.colors = this.useColors;
|
|
24479
24479
|
return util.inspect(v, this.inspectOpts);
|
|
24480
24480
|
};
|
|
24481
|
-
} (node
|
|
24482
|
-
return node
|
|
24481
|
+
} (node, node.exports));
|
|
24482
|
+
return node.exports;
|
|
24483
24483
|
}
|
|
24484
24484
|
|
|
24485
24485
|
/**
|
|
@@ -24487,17 +24487,17 @@ function requireNode$1 () {
|
|
|
24487
24487
|
* treat as a browser.
|
|
24488
24488
|
*/
|
|
24489
24489
|
|
|
24490
|
-
var hasRequiredSrc$
|
|
24490
|
+
var hasRequiredSrc$1;
|
|
24491
24491
|
|
|
24492
|
-
function requireSrc$
|
|
24493
|
-
if (hasRequiredSrc$
|
|
24494
|
-
hasRequiredSrc$
|
|
24492
|
+
function requireSrc$1 () {
|
|
24493
|
+
if (hasRequiredSrc$1) return src$1.exports;
|
|
24494
|
+
hasRequiredSrc$1 = 1;
|
|
24495
24495
|
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
24496
|
-
src$
|
|
24496
|
+
src$1.exports = requireBrowser();
|
|
24497
24497
|
} else {
|
|
24498
|
-
src$
|
|
24498
|
+
src$1.exports = requireNode();
|
|
24499
24499
|
}
|
|
24500
|
-
return src$
|
|
24500
|
+
return src$1.exports;
|
|
24501
24501
|
}
|
|
24502
24502
|
|
|
24503
24503
|
var debug_1;
|
|
@@ -24512,7 +24512,7 @@ function requireDebug () {
|
|
|
24512
24512
|
if (!debug) {
|
|
24513
24513
|
try {
|
|
24514
24514
|
/* eslint global-require: off */
|
|
24515
|
-
debug = requireSrc$
|
|
24515
|
+
debug = requireSrc$1()("follow-redirects");
|
|
24516
24516
|
}
|
|
24517
24517
|
catch (error) { /* */ }
|
|
24518
24518
|
if (typeof debug !== "function") {
|
|
@@ -26353,7 +26353,7 @@ var Utils$5 = {};
|
|
|
26353
26353
|
|
|
26354
26354
|
Object.defineProperty(Utils$5, "__esModule", { value: true });
|
|
26355
26355
|
Utils$5.defaultBg = void 0;
|
|
26356
|
-
const crypto_1$2 = require$$1$
|
|
26356
|
+
const crypto_1$2 = require$$1$3;
|
|
26357
26357
|
let Utils$4 = class Utils {
|
|
26358
26358
|
};
|
|
26359
26359
|
Utils$5.default = Utils$4;
|
|
@@ -29414,7 +29414,7 @@ var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
29414
29414
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29415
29415
|
};
|
|
29416
29416
|
Object.defineProperty(videoToGif$1, "__esModule", { value: true });
|
|
29417
|
-
const fluent_ffmpeg_1$1 = __importDefault$b(require$$0$
|
|
29417
|
+
const fluent_ffmpeg_1$1 = __importDefault$b(require$$0$b);
|
|
29418
29418
|
const fs_extra_1$2 = lib$a;
|
|
29419
29419
|
const os_1$2 = require$$2;
|
|
29420
29420
|
/** https://stackoverflow.com/questions/52156713/fluent-ffmpeg-h264-to-gif-throwing-error-1 */
|
|
@@ -29446,7 +29446,7 @@ var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
29446
29446
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29447
29447
|
};
|
|
29448
29448
|
Object.defineProperty(crop$1, "__esModule", { value: true });
|
|
29449
|
-
const fluent_ffmpeg_1 = __importDefault$a(require$$0$
|
|
29449
|
+
const fluent_ffmpeg_1 = __importDefault$a(require$$0$b);
|
|
29450
29450
|
const fs_extra_1$1 = lib$a;
|
|
29451
29451
|
const os_1$1 = require$$2;
|
|
29452
29452
|
const crop = (filename) => __awaiter$3(void 0, void 0, void 0, function* () {
|
|
@@ -29523,7 +29523,7 @@ var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
29523
29523
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29524
29524
|
};
|
|
29525
29525
|
Object.defineProperty(convert$1, "__esModule", { value: true });
|
|
29526
|
-
const sharp_1 = __importStar(require$$0$
|
|
29526
|
+
const sharp_1 = __importStar(require$$0$c);
|
|
29527
29527
|
const videoToGif_1 = __importDefault$9(videoToGif$1);
|
|
29528
29528
|
const fs_extra_1 = lib$a;
|
|
29529
29529
|
const os_1 = require$$2;
|
|
@@ -212202,7 +212202,7 @@ Object.defineProperty(types$4, "__esModule", { value: true });
|
|
|
212202
212202
|
exports$1.bytesToCrockford = exports$1.trimUndefineds = exports$1.isWABusinessPlatform = exports$1.getCodeFromWSError = exports$1.getCallStatusFromNode = exports$1.getErrorCodeFromStreamError = exports$1.getStatusFromReceiptType = exports$1.generateMdTagPrefix = exports$1.fetchLatestWaWebVersion = exports$1.fetchLatestBaileysVersion = exports$1.printQRIfNecessaryListener = exports$1.bindWaitForConnectionUpdate = exports$1.bindWaitForEvent = exports$1.generateMessageID = exports$1.generateMessageIDV2 = exports$1.promiseTimeout = exports$1.delayCancellable = exports$1.delay = exports$1.debouncedTimeout = exports$1.unixTimestampSeconds = exports$1.toNumber = exports$1.encodeBigEndian = exports$1.generateRegistrationId = exports$1.encodeWAMessage = exports$1.unpadRandomMax16 = exports$1.writeRandomPadMax16 = exports$1.BufferJSON = exports$1.Browsers = void 0;
|
|
212203
212203
|
const boom_1 = lib$5;
|
|
212204
212204
|
const axios_1 = __importDefault(axios);
|
|
212205
|
-
const crypto_1 = require$$1$
|
|
212205
|
+
const crypto_1 = require$$1$3;
|
|
212206
212206
|
const os_1 = require$$2;
|
|
212207
212207
|
const WAProto_1 = WAProto;
|
|
212208
212208
|
const baileys_version_json_1 = require$$4;
|
|
@@ -212616,7 +212616,7 @@ var signal = {};
|
|
|
212616
212616
|
|
|
212617
212617
|
var libsignal = {};
|
|
212618
212618
|
|
|
212619
|
-
const nodeCrypto$3 = require$$1$
|
|
212619
|
+
const nodeCrypto$3 = require$$1$3;
|
|
212620
212620
|
const assert = require$$5;
|
|
212621
212621
|
|
|
212622
212622
|
|
|
@@ -214383,7 +214383,7 @@ lib$3.generateKeyPair = generateKeyPair;
|
|
|
214383
214383
|
lib$3.default = {};
|
|
214384
214384
|
|
|
214385
214385
|
const curveJs = lib$3;
|
|
214386
|
-
const nodeCrypto$2 = require$$1$
|
|
214386
|
+
const nodeCrypto$2 = require$$1$3;
|
|
214387
214387
|
// from: https://github.com/digitalbazaar/x25519-key-agreement-key-2019/blob/master/lib/crypto.js
|
|
214388
214388
|
const PUBLIC_KEY_DER_PREFIX = Buffer.from([
|
|
214389
214389
|
48, 42, 48, 5, 6, 3, 43, 101, 110, 3, 33, 0
|
|
@@ -214505,7 +214505,7 @@ var keyhelper$2 = {};
|
|
|
214505
214505
|
// vim: ts=4:sw=4:expandtab
|
|
214506
214506
|
|
|
214507
214507
|
const curve$4 = curve$5;
|
|
214508
|
-
const nodeCrypto$1 = require$$1$
|
|
214508
|
+
const nodeCrypto$1 = require$$1$3;
|
|
214509
214509
|
|
|
214510
214510
|
function isNonNegativeInteger(n) {
|
|
214511
214511
|
return (typeof n === 'number' && (n % 1) === 0 && n >= 0);
|
|
@@ -237298,7 +237298,7 @@ var sender_key_distribution_message = SenderKeyDistributionMessage$1;
|
|
|
237298
237298
|
var keyhelper$1 = {};
|
|
237299
237299
|
|
|
237300
237300
|
const curve$1 = curve$5;
|
|
237301
|
-
const nodeCrypto = require$$1$
|
|
237301
|
+
const nodeCrypto = require$$1$3;
|
|
237302
237302
|
|
|
237303
237303
|
keyhelper$1.generateSenderKey = function() {
|
|
237304
237304
|
return nodeCrypto.randomBytes(32);
|
|
@@ -237941,7 +237941,7 @@ var crypto = {};
|
|
|
237941
237941
|
*/
|
|
237942
237942
|
|
|
237943
237943
|
const { Buffer: Buffer$1 } = require$$0$9;
|
|
237944
|
-
const { createHash: createHash$2, createHmac } = require$$1$
|
|
237944
|
+
const { createHash: createHash$2, createHmac } = require$$1$3;
|
|
237945
237945
|
|
|
237946
237946
|
const g_digestLenCache = {};
|
|
237947
237947
|
|
|
@@ -238129,7 +238129,7 @@ function requireCrypto () {
|
|
|
238129
238129
|
};
|
|
238130
238130
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
238131
238131
|
exports$1.aesDecryptCTR = exports$1.aesEncryptCTR = exports$1.derivePairingCodeKey = exports$1.hkdf = exports$1.sha256 = exports$1.hmacSign = exports$1.aesEncrypWithIV = exports$1.aesEncrypt = exports$1.aesDecryptWithIV = exports$1.aesDecrypt = exports$1.aesDecryptGCM = exports$1.aesEncryptGCM = exports$1.signedKeyPair = exports$1.Curve = exports$1.generateSignalPubKey = void 0;
|
|
238132
|
-
const crypto_1 = require$$1$
|
|
238132
|
+
const crypto_1 = require$$1$3;
|
|
238133
238133
|
const futoin_hkdf_1 = __importDefault(hkdf_1);
|
|
238134
238134
|
const libsignal$1 = __importStar(libsignal);
|
|
238135
238135
|
const Defaults_1 = requireDefaults();
|
|
@@ -246165,12 +246165,12 @@ function requireGifcodec () {
|
|
|
246165
246165
|
return gifcodec;
|
|
246166
246166
|
}
|
|
246167
246167
|
|
|
246168
|
-
var src
|
|
246169
|
-
var hasRequiredSrc
|
|
246168
|
+
var src;
|
|
246169
|
+
var hasRequiredSrc;
|
|
246170
246170
|
|
|
246171
|
-
function requireSrc
|
|
246172
|
-
if (hasRequiredSrc
|
|
246173
|
-
hasRequiredSrc
|
|
246171
|
+
function requireSrc () {
|
|
246172
|
+
if (hasRequiredSrc) return src;
|
|
246173
|
+
hasRequiredSrc = 1;
|
|
246174
246174
|
|
|
246175
246175
|
const BitmapImage = requireBitmapimage();
|
|
246176
246176
|
const { Gif, GifError } = requireGif();
|
|
@@ -246178,7 +246178,7 @@ function requireSrc$1 () {
|
|
|
246178
246178
|
const { GifFrame } = requireGifframe();
|
|
246179
246179
|
const GifUtil = requireGifutil();
|
|
246180
246180
|
|
|
246181
|
-
src
|
|
246181
|
+
src = {
|
|
246182
246182
|
BitmapImage,
|
|
246183
246183
|
Gif,
|
|
246184
246184
|
GifCodec,
|
|
@@ -246186,7 +246186,7 @@ function requireSrc$1 () {
|
|
|
246186
246186
|
GifUtil,
|
|
246187
246187
|
GifError
|
|
246188
246188
|
};
|
|
246189
|
-
return src
|
|
246189
|
+
return src;
|
|
246190
246190
|
}
|
|
246191
246191
|
|
|
246192
246192
|
var hasRequiredCommonjs$q;
|
|
@@ -246200,7 +246200,7 @@ function requireCommonjs$q () {
|
|
|
246200
246200
|
Object.defineProperty(commonjs$p, "__esModule", { value: true });
|
|
246201
246201
|
commonjs$p.default = gif;
|
|
246202
246202
|
const omggif_1 = __importDefault(requireOmggif());
|
|
246203
|
-
const gifwrap_1 = requireSrc
|
|
246203
|
+
const gifwrap_1 = requireSrc();
|
|
246204
246204
|
function gif() {
|
|
246205
246205
|
return {
|
|
246206
246206
|
mime: "image/gif",
|
|
@@ -251025,13 +251025,13 @@ function commonjsRequire(path) {
|
|
|
251025
251025
|
|
|
251026
251026
|
var UTIF = {exports: {}};
|
|
251027
251027
|
|
|
251028
|
-
var common
|
|
251028
|
+
var common = {};
|
|
251029
251029
|
|
|
251030
|
-
var hasRequiredCommon
|
|
251030
|
+
var hasRequiredCommon;
|
|
251031
251031
|
|
|
251032
|
-
function requireCommon
|
|
251033
|
-
if (hasRequiredCommon
|
|
251034
|
-
hasRequiredCommon
|
|
251032
|
+
function requireCommon () {
|
|
251033
|
+
if (hasRequiredCommon) return common;
|
|
251034
|
+
hasRequiredCommon = 1;
|
|
251035
251035
|
(function (exports$1) {
|
|
251036
251036
|
|
|
251037
251037
|
|
|
@@ -251137,8 +251137,8 @@ function requireCommon$1 () {
|
|
|
251137
251137
|
};
|
|
251138
251138
|
|
|
251139
251139
|
exports$1.setTyped(TYPED_OK);
|
|
251140
|
-
} (common
|
|
251141
|
-
return common
|
|
251140
|
+
} (common));
|
|
251141
|
+
return common;
|
|
251142
251142
|
}
|
|
251143
251143
|
|
|
251144
251144
|
var deflate$1 = {};
|
|
@@ -251174,7 +251174,7 @@ function requireTrees () {
|
|
|
251174
251174
|
|
|
251175
251175
|
/* eslint-disable space-unary-ops */
|
|
251176
251176
|
|
|
251177
|
-
var utils = requireCommon
|
|
251177
|
+
var utils = requireCommon();
|
|
251178
251178
|
|
|
251179
251179
|
/* Public constants ==========================================================*/
|
|
251180
251180
|
/* ===========================================================================*/
|
|
@@ -252567,7 +252567,7 @@ function requireDeflate$1 () {
|
|
|
252567
252567
|
// misrepresented as being the original software.
|
|
252568
252568
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
252569
252569
|
|
|
252570
|
-
var utils = requireCommon
|
|
252570
|
+
var utils = requireCommon();
|
|
252571
252571
|
var trees = requireTrees();
|
|
252572
252572
|
var adler32 = requireAdler32();
|
|
252573
252573
|
var crc32 = requireCrc32();
|
|
@@ -254432,7 +254432,7 @@ function requireStrings () {
|
|
|
254432
254432
|
hasRequiredStrings = 1;
|
|
254433
254433
|
|
|
254434
254434
|
|
|
254435
|
-
var utils = requireCommon
|
|
254435
|
+
var utils = requireCommon();
|
|
254436
254436
|
|
|
254437
254437
|
|
|
254438
254438
|
// Quick check if we can use fast array to bin string conversion
|
|
@@ -254681,7 +254681,7 @@ function requireDeflate () {
|
|
|
254681
254681
|
|
|
254682
254682
|
|
|
254683
254683
|
var zlib_deflate = requireDeflate$1();
|
|
254684
|
-
var utils = requireCommon
|
|
254684
|
+
var utils = requireCommon();
|
|
254685
254685
|
var strings = requireStrings();
|
|
254686
254686
|
var msg = requireMessages$1();
|
|
254687
254687
|
var ZStream = requireZstream();
|
|
@@ -255463,7 +255463,7 @@ function requireInftrees () {
|
|
|
255463
255463
|
// misrepresented as being the original software.
|
|
255464
255464
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
255465
255465
|
|
|
255466
|
-
var utils = requireCommon
|
|
255466
|
+
var utils = requireCommon();
|
|
255467
255467
|
|
|
255468
255468
|
var MAXBITS = 15;
|
|
255469
255469
|
var ENOUGH_LENS = 852;
|
|
@@ -255813,7 +255813,7 @@ function requireInflate$1 () {
|
|
|
255813
255813
|
// misrepresented as being the original software.
|
|
255814
255814
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
255815
255815
|
|
|
255816
|
-
var utils = requireCommon
|
|
255816
|
+
var utils = requireCommon();
|
|
255817
255817
|
var adler32 = requireAdler32();
|
|
255818
255818
|
var crc32 = requireCrc32();
|
|
255819
255819
|
var inflate_fast = requireInffast();
|
|
@@ -257498,7 +257498,7 @@ function requireInflate () {
|
|
|
257498
257498
|
|
|
257499
257499
|
|
|
257500
257500
|
var zlib_inflate = requireInflate$1();
|
|
257501
|
-
var utils = requireCommon
|
|
257501
|
+
var utils = requireCommon();
|
|
257502
257502
|
var strings = requireStrings();
|
|
257503
257503
|
var c = requireConstants$2();
|
|
257504
257504
|
var msg = requireMessages$1();
|
|
@@ -257927,7 +257927,7 @@ function requirePako () {
|
|
|
257927
257927
|
if (hasRequiredPako) return pako_1;
|
|
257928
257928
|
hasRequiredPako = 1;
|
|
257929
257929
|
|
|
257930
|
-
var assign = requireCommon
|
|
257930
|
+
var assign = requireCommon().assign;
|
|
257931
257931
|
|
|
257932
257932
|
var deflate = requireDeflate();
|
|
257933
257933
|
var inflate = requireInflate();
|
|
@@ -275208,8 +275208,11 @@ function requireSax () {
|
|
|
275208
275208
|
if (hasRequiredSax) return sax;
|
|
275209
275209
|
hasRequiredSax = 1;
|
|
275210
275210
|
(function (exports$1) {
|
|
275211
|
-
(function (sax) {
|
|
275212
|
-
|
|
275211
|
+
(function (sax) {
|
|
275212
|
+
// wrapper for non-node envs
|
|
275213
|
+
sax.parser = function (strict, opt) {
|
|
275214
|
+
return new SAXParser(strict, opt)
|
|
275215
|
+
};
|
|
275213
275216
|
sax.SAXParser = SAXParser;
|
|
275214
275217
|
sax.SAXStream = SAXStream;
|
|
275215
275218
|
sax.createStream = createStream;
|
|
@@ -275226,9 +275229,18 @@ function requireSax () {
|
|
|
275226
275229
|
sax.MAX_BUFFER_LENGTH = 64 * 1024;
|
|
275227
275230
|
|
|
275228
275231
|
var buffers = [
|
|
275229
|
-
'comment',
|
|
275230
|
-
'
|
|
275231
|
-
'
|
|
275232
|
+
'comment',
|
|
275233
|
+
'sgmlDecl',
|
|
275234
|
+
'textNode',
|
|
275235
|
+
'tagName',
|
|
275236
|
+
'doctype',
|
|
275237
|
+
'procInstName',
|
|
275238
|
+
'procInstBody',
|
|
275239
|
+
'entity',
|
|
275240
|
+
'attribName',
|
|
275241
|
+
'attribValue',
|
|
275242
|
+
'cdata',
|
|
275243
|
+
'script',
|
|
275232
275244
|
];
|
|
275233
275245
|
|
|
275234
275246
|
sax.EVENTS = [
|
|
@@ -275249,10 +275261,10 @@ function requireSax () {
|
|
|
275249
275261
|
'ready',
|
|
275250
275262
|
'script',
|
|
275251
275263
|
'opennamespace',
|
|
275252
|
-
'closenamespace'
|
|
275264
|
+
'closenamespace',
|
|
275253
275265
|
];
|
|
275254
275266
|
|
|
275255
|
-
function SAXParser
|
|
275267
|
+
function SAXParser(strict, opt) {
|
|
275256
275268
|
if (!(this instanceof SAXParser)) {
|
|
275257
275269
|
return new SAXParser(strict, opt)
|
|
275258
275270
|
}
|
|
@@ -275271,7 +275283,10 @@ function requireSax () {
|
|
|
275271
275283
|
parser.noscript = !!(strict || parser.opt.noscript);
|
|
275272
275284
|
parser.state = S.BEGIN;
|
|
275273
275285
|
parser.strictEntities = parser.opt.strictEntities;
|
|
275274
|
-
parser.ENTITIES =
|
|
275286
|
+
parser.ENTITIES =
|
|
275287
|
+
parser.strictEntities ?
|
|
275288
|
+
Object.create(sax.XML_ENTITIES)
|
|
275289
|
+
: Object.create(sax.ENTITIES);
|
|
275275
275290
|
parser.attribList = [];
|
|
275276
275291
|
|
|
275277
275292
|
// namespaces form a prototype chain.
|
|
@@ -275297,7 +275312,7 @@ function requireSax () {
|
|
|
275297
275312
|
|
|
275298
275313
|
if (!Object.create) {
|
|
275299
275314
|
Object.create = function (o) {
|
|
275300
|
-
function F
|
|
275315
|
+
function F() {}
|
|
275301
275316
|
F.prototype = o;
|
|
275302
275317
|
var newf = new F();
|
|
275303
275318
|
return newf
|
|
@@ -275312,7 +275327,7 @@ function requireSax () {
|
|
|
275312
275327
|
};
|
|
275313
275328
|
}
|
|
275314
275329
|
|
|
275315
|
-
function checkBufferLength
|
|
275330
|
+
function checkBufferLength(parser) {
|
|
275316
275331
|
var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10);
|
|
275317
275332
|
var maxActual = 0;
|
|
275318
275333
|
for (var i = 0, l = buffers.length; i < l; i++) {
|
|
@@ -275348,13 +275363,13 @@ function requireSax () {
|
|
|
275348
275363
|
parser.bufferCheckPosition = m + parser.position;
|
|
275349
275364
|
}
|
|
275350
275365
|
|
|
275351
|
-
function clearBuffers
|
|
275366
|
+
function clearBuffers(parser) {
|
|
275352
275367
|
for (var i = 0, l = buffers.length; i < l; i++) {
|
|
275353
275368
|
parser[buffers[i]] = '';
|
|
275354
275369
|
}
|
|
275355
275370
|
}
|
|
275356
275371
|
|
|
275357
|
-
function flushBuffers
|
|
275372
|
+
function flushBuffers(parser) {
|
|
275358
275373
|
closeText(parser);
|
|
275359
275374
|
if (parser.cdata !== '') {
|
|
275360
275375
|
emitNode(parser, 'oncdata', parser.cdata);
|
|
@@ -275367,11 +275382,20 @@ function requireSax () {
|
|
|
275367
275382
|
}
|
|
275368
275383
|
|
|
275369
275384
|
SAXParser.prototype = {
|
|
275370
|
-
end: function () {
|
|
275385
|
+
end: function () {
|
|
275386
|
+
end(this);
|
|
275387
|
+
},
|
|
275371
275388
|
write: write,
|
|
275372
|
-
resume: function () {
|
|
275373
|
-
|
|
275374
|
-
|
|
275389
|
+
resume: function () {
|
|
275390
|
+
this.error = null;
|
|
275391
|
+
return this
|
|
275392
|
+
},
|
|
275393
|
+
close: function () {
|
|
275394
|
+
return this.write(null)
|
|
275395
|
+
},
|
|
275396
|
+
flush: function () {
|
|
275397
|
+
flushBuffers(this);
|
|
275398
|
+
},
|
|
275375
275399
|
};
|
|
275376
275400
|
|
|
275377
275401
|
var Stream;
|
|
@@ -275386,11 +275410,11 @@ function requireSax () {
|
|
|
275386
275410
|
return ev !== 'error' && ev !== 'end'
|
|
275387
275411
|
});
|
|
275388
275412
|
|
|
275389
|
-
function createStream
|
|
275413
|
+
function createStream(strict, opt) {
|
|
275390
275414
|
return new SAXStream(strict, opt)
|
|
275391
275415
|
}
|
|
275392
275416
|
|
|
275393
|
-
function SAXStream
|
|
275417
|
+
function SAXStream(strict, opt) {
|
|
275394
275418
|
if (!(this instanceof SAXStream)) {
|
|
275395
275419
|
return new SAXStream(strict, opt)
|
|
275396
275420
|
}
|
|
@@ -275431,23 +275455,25 @@ function requireSax () {
|
|
|
275431
275455
|
me.on(ev, h);
|
|
275432
275456
|
},
|
|
275433
275457
|
enumerable: true,
|
|
275434
|
-
configurable: false
|
|
275458
|
+
configurable: false,
|
|
275435
275459
|
});
|
|
275436
275460
|
});
|
|
275437
275461
|
}
|
|
275438
275462
|
|
|
275439
275463
|
SAXStream.prototype = Object.create(Stream.prototype, {
|
|
275440
275464
|
constructor: {
|
|
275441
|
-
value: SAXStream
|
|
275442
|
-
}
|
|
275465
|
+
value: SAXStream,
|
|
275466
|
+
},
|
|
275443
275467
|
});
|
|
275444
275468
|
|
|
275445
275469
|
SAXStream.prototype.write = function (data) {
|
|
275446
|
-
if (
|
|
275470
|
+
if (
|
|
275471
|
+
typeof Buffer === 'function' &&
|
|
275447
275472
|
typeof Buffer.isBuffer === 'function' &&
|
|
275448
|
-
Buffer.isBuffer(data)
|
|
275473
|
+
Buffer.isBuffer(data)
|
|
275474
|
+
) {
|
|
275449
275475
|
if (!this._decoder) {
|
|
275450
|
-
var SD = require$$1$
|
|
275476
|
+
var SD = require$$1$4.StringDecoder;
|
|
275451
275477
|
this._decoder = new SD('utf8');
|
|
275452
275478
|
}
|
|
275453
275479
|
data = this._decoder.write(data);
|
|
@@ -275470,7 +275496,10 @@ function requireSax () {
|
|
|
275470
275496
|
var me = this;
|
|
275471
275497
|
if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
275472
275498
|
me._parser['on' + ev] = function () {
|
|
275473
|
-
var args =
|
|
275499
|
+
var args =
|
|
275500
|
+
arguments.length === 1 ?
|
|
275501
|
+
[arguments[0]]
|
|
275502
|
+
: Array.apply(null, arguments);
|
|
275474
275503
|
args.splice(0, 0, ev);
|
|
275475
275504
|
me.emit.apply(me, args);
|
|
275476
275505
|
};
|
|
@@ -275493,30 +275522,34 @@ function requireSax () {
|
|
|
275493
275522
|
// without a significant breaking change to either this parser, or the
|
|
275494
275523
|
// JavaScript language. Implementation of an emoji-capable xml parser
|
|
275495
275524
|
// is left as an exercise for the reader.
|
|
275496
|
-
var nameStart =
|
|
275525
|
+
var nameStart =
|
|
275526
|
+
/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
|
|
275497
275527
|
|
|
275498
|
-
var nameBody =
|
|
275528
|
+
var nameBody =
|
|
275529
|
+
/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
275499
275530
|
|
|
275500
|
-
var entityStart =
|
|
275501
|
-
|
|
275531
|
+
var entityStart =
|
|
275532
|
+
/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
|
|
275533
|
+
var entityBody =
|
|
275534
|
+
/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
275502
275535
|
|
|
275503
|
-
function isWhitespace
|
|
275536
|
+
function isWhitespace(c) {
|
|
275504
275537
|
return c === ' ' || c === '\n' || c === '\r' || c === '\t'
|
|
275505
275538
|
}
|
|
275506
275539
|
|
|
275507
|
-
function isQuote
|
|
275508
|
-
return c === '"' || c === '
|
|
275540
|
+
function isQuote(c) {
|
|
275541
|
+
return c === '"' || c === "'"
|
|
275509
275542
|
}
|
|
275510
275543
|
|
|
275511
|
-
function isAttribEnd
|
|
275544
|
+
function isAttribEnd(c) {
|
|
275512
275545
|
return c === '>' || isWhitespace(c)
|
|
275513
275546
|
}
|
|
275514
275547
|
|
|
275515
|
-
function isMatch
|
|
275548
|
+
function isMatch(regex, c) {
|
|
275516
275549
|
return regex.test(c)
|
|
275517
275550
|
}
|
|
275518
275551
|
|
|
275519
|
-
function notMatch
|
|
275552
|
+
function notMatch(regex, c) {
|
|
275520
275553
|
return !isMatch(regex, c)
|
|
275521
275554
|
}
|
|
275522
275555
|
|
|
@@ -275557,271 +275590,271 @@ function requireSax () {
|
|
|
275557
275590
|
CLOSE_TAG: S++, // </a
|
|
275558
275591
|
CLOSE_TAG_SAW_WHITE: S++, // </a >
|
|
275559
275592
|
SCRIPT: S++, // <script> ...
|
|
275560
|
-
SCRIPT_ENDING: S
|
|
275593
|
+
SCRIPT_ENDING: S++, // <script> ... <
|
|
275561
275594
|
};
|
|
275562
275595
|
|
|
275563
275596
|
sax.XML_ENTITIES = {
|
|
275564
|
-
|
|
275565
|
-
|
|
275566
|
-
|
|
275567
|
-
|
|
275568
|
-
|
|
275597
|
+
amp: '&',
|
|
275598
|
+
gt: '>',
|
|
275599
|
+
lt: '<',
|
|
275600
|
+
quot: '"',
|
|
275601
|
+
apos: "'",
|
|
275569
275602
|
};
|
|
275570
275603
|
|
|
275571
275604
|
sax.ENTITIES = {
|
|
275572
|
-
|
|
275573
|
-
|
|
275574
|
-
|
|
275575
|
-
|
|
275576
|
-
|
|
275577
|
-
|
|
275578
|
-
|
|
275579
|
-
|
|
275580
|
-
|
|
275581
|
-
|
|
275582
|
-
|
|
275583
|
-
|
|
275584
|
-
|
|
275585
|
-
|
|
275586
|
-
|
|
275587
|
-
|
|
275588
|
-
|
|
275589
|
-
|
|
275590
|
-
|
|
275591
|
-
|
|
275592
|
-
|
|
275593
|
-
|
|
275594
|
-
|
|
275595
|
-
|
|
275596
|
-
|
|
275597
|
-
|
|
275598
|
-
|
|
275599
|
-
|
|
275600
|
-
|
|
275601
|
-
|
|
275602
|
-
|
|
275603
|
-
|
|
275604
|
-
|
|
275605
|
-
|
|
275606
|
-
|
|
275607
|
-
|
|
275608
|
-
|
|
275609
|
-
|
|
275610
|
-
|
|
275611
|
-
|
|
275612
|
-
|
|
275613
|
-
|
|
275614
|
-
|
|
275615
|
-
|
|
275616
|
-
|
|
275617
|
-
|
|
275618
|
-
|
|
275619
|
-
|
|
275620
|
-
|
|
275621
|
-
|
|
275622
|
-
|
|
275623
|
-
|
|
275624
|
-
|
|
275625
|
-
|
|
275626
|
-
|
|
275627
|
-
|
|
275628
|
-
|
|
275629
|
-
|
|
275630
|
-
|
|
275631
|
-
|
|
275632
|
-
|
|
275633
|
-
|
|
275634
|
-
|
|
275635
|
-
|
|
275636
|
-
|
|
275637
|
-
|
|
275638
|
-
|
|
275639
|
-
|
|
275640
|
-
|
|
275641
|
-
|
|
275642
|
-
|
|
275643
|
-
|
|
275644
|
-
|
|
275645
|
-
|
|
275646
|
-
|
|
275647
|
-
|
|
275648
|
-
|
|
275649
|
-
|
|
275650
|
-
|
|
275651
|
-
|
|
275652
|
-
|
|
275653
|
-
|
|
275654
|
-
|
|
275655
|
-
|
|
275656
|
-
|
|
275657
|
-
|
|
275658
|
-
|
|
275659
|
-
|
|
275660
|
-
|
|
275661
|
-
|
|
275662
|
-
|
|
275663
|
-
|
|
275664
|
-
|
|
275665
|
-
|
|
275666
|
-
|
|
275667
|
-
|
|
275668
|
-
|
|
275669
|
-
|
|
275670
|
-
|
|
275671
|
-
|
|
275672
|
-
|
|
275673
|
-
|
|
275674
|
-
|
|
275675
|
-
|
|
275676
|
-
|
|
275677
|
-
|
|
275678
|
-
|
|
275679
|
-
|
|
275680
|
-
|
|
275681
|
-
|
|
275682
|
-
|
|
275683
|
-
|
|
275684
|
-
|
|
275685
|
-
|
|
275686
|
-
|
|
275687
|
-
|
|
275688
|
-
|
|
275689
|
-
|
|
275690
|
-
|
|
275691
|
-
|
|
275692
|
-
|
|
275693
|
-
|
|
275694
|
-
|
|
275695
|
-
|
|
275696
|
-
|
|
275697
|
-
|
|
275698
|
-
|
|
275699
|
-
|
|
275700
|
-
|
|
275701
|
-
|
|
275702
|
-
|
|
275703
|
-
|
|
275704
|
-
|
|
275705
|
-
|
|
275706
|
-
|
|
275707
|
-
|
|
275708
|
-
|
|
275709
|
-
|
|
275710
|
-
|
|
275711
|
-
|
|
275712
|
-
|
|
275713
|
-
|
|
275714
|
-
|
|
275715
|
-
|
|
275716
|
-
|
|
275717
|
-
|
|
275718
|
-
|
|
275719
|
-
|
|
275720
|
-
|
|
275721
|
-
|
|
275722
|
-
|
|
275723
|
-
|
|
275724
|
-
|
|
275725
|
-
|
|
275726
|
-
|
|
275727
|
-
|
|
275728
|
-
|
|
275729
|
-
|
|
275730
|
-
|
|
275731
|
-
|
|
275732
|
-
|
|
275733
|
-
|
|
275734
|
-
|
|
275735
|
-
|
|
275736
|
-
|
|
275737
|
-
|
|
275738
|
-
|
|
275739
|
-
|
|
275740
|
-
|
|
275741
|
-
|
|
275742
|
-
|
|
275743
|
-
|
|
275744
|
-
|
|
275745
|
-
|
|
275746
|
-
|
|
275747
|
-
|
|
275748
|
-
|
|
275749
|
-
|
|
275750
|
-
|
|
275751
|
-
|
|
275752
|
-
|
|
275753
|
-
|
|
275754
|
-
|
|
275755
|
-
|
|
275756
|
-
|
|
275757
|
-
|
|
275758
|
-
|
|
275759
|
-
|
|
275760
|
-
|
|
275761
|
-
|
|
275762
|
-
|
|
275763
|
-
|
|
275764
|
-
|
|
275765
|
-
|
|
275766
|
-
|
|
275767
|
-
|
|
275768
|
-
|
|
275769
|
-
|
|
275770
|
-
|
|
275771
|
-
|
|
275772
|
-
|
|
275773
|
-
|
|
275774
|
-
|
|
275775
|
-
|
|
275776
|
-
|
|
275777
|
-
|
|
275778
|
-
|
|
275779
|
-
|
|
275780
|
-
|
|
275781
|
-
|
|
275782
|
-
|
|
275783
|
-
|
|
275784
|
-
|
|
275785
|
-
|
|
275786
|
-
|
|
275787
|
-
|
|
275788
|
-
|
|
275789
|
-
|
|
275790
|
-
|
|
275791
|
-
|
|
275792
|
-
|
|
275793
|
-
|
|
275794
|
-
|
|
275795
|
-
|
|
275796
|
-
|
|
275797
|
-
|
|
275798
|
-
|
|
275799
|
-
|
|
275800
|
-
|
|
275801
|
-
|
|
275802
|
-
|
|
275803
|
-
|
|
275804
|
-
|
|
275805
|
-
|
|
275806
|
-
|
|
275807
|
-
|
|
275808
|
-
|
|
275809
|
-
|
|
275810
|
-
|
|
275811
|
-
|
|
275812
|
-
|
|
275813
|
-
|
|
275814
|
-
|
|
275815
|
-
|
|
275816
|
-
|
|
275817
|
-
|
|
275818
|
-
|
|
275819
|
-
|
|
275820
|
-
|
|
275821
|
-
|
|
275822
|
-
|
|
275823
|
-
|
|
275824
|
-
|
|
275605
|
+
amp: '&',
|
|
275606
|
+
gt: '>',
|
|
275607
|
+
lt: '<',
|
|
275608
|
+
quot: '"',
|
|
275609
|
+
apos: "'",
|
|
275610
|
+
AElig: 198,
|
|
275611
|
+
Aacute: 193,
|
|
275612
|
+
Acirc: 194,
|
|
275613
|
+
Agrave: 192,
|
|
275614
|
+
Aring: 197,
|
|
275615
|
+
Atilde: 195,
|
|
275616
|
+
Auml: 196,
|
|
275617
|
+
Ccedil: 199,
|
|
275618
|
+
ETH: 208,
|
|
275619
|
+
Eacute: 201,
|
|
275620
|
+
Ecirc: 202,
|
|
275621
|
+
Egrave: 200,
|
|
275622
|
+
Euml: 203,
|
|
275623
|
+
Iacute: 205,
|
|
275624
|
+
Icirc: 206,
|
|
275625
|
+
Igrave: 204,
|
|
275626
|
+
Iuml: 207,
|
|
275627
|
+
Ntilde: 209,
|
|
275628
|
+
Oacute: 211,
|
|
275629
|
+
Ocirc: 212,
|
|
275630
|
+
Ograve: 210,
|
|
275631
|
+
Oslash: 216,
|
|
275632
|
+
Otilde: 213,
|
|
275633
|
+
Ouml: 214,
|
|
275634
|
+
THORN: 222,
|
|
275635
|
+
Uacute: 218,
|
|
275636
|
+
Ucirc: 219,
|
|
275637
|
+
Ugrave: 217,
|
|
275638
|
+
Uuml: 220,
|
|
275639
|
+
Yacute: 221,
|
|
275640
|
+
aacute: 225,
|
|
275641
|
+
acirc: 226,
|
|
275642
|
+
aelig: 230,
|
|
275643
|
+
agrave: 224,
|
|
275644
|
+
aring: 229,
|
|
275645
|
+
atilde: 227,
|
|
275646
|
+
auml: 228,
|
|
275647
|
+
ccedil: 231,
|
|
275648
|
+
eacute: 233,
|
|
275649
|
+
ecirc: 234,
|
|
275650
|
+
egrave: 232,
|
|
275651
|
+
eth: 240,
|
|
275652
|
+
euml: 235,
|
|
275653
|
+
iacute: 237,
|
|
275654
|
+
icirc: 238,
|
|
275655
|
+
igrave: 236,
|
|
275656
|
+
iuml: 239,
|
|
275657
|
+
ntilde: 241,
|
|
275658
|
+
oacute: 243,
|
|
275659
|
+
ocirc: 244,
|
|
275660
|
+
ograve: 242,
|
|
275661
|
+
oslash: 248,
|
|
275662
|
+
otilde: 245,
|
|
275663
|
+
ouml: 246,
|
|
275664
|
+
szlig: 223,
|
|
275665
|
+
thorn: 254,
|
|
275666
|
+
uacute: 250,
|
|
275667
|
+
ucirc: 251,
|
|
275668
|
+
ugrave: 249,
|
|
275669
|
+
uuml: 252,
|
|
275670
|
+
yacute: 253,
|
|
275671
|
+
yuml: 255,
|
|
275672
|
+
copy: 169,
|
|
275673
|
+
reg: 174,
|
|
275674
|
+
nbsp: 160,
|
|
275675
|
+
iexcl: 161,
|
|
275676
|
+
cent: 162,
|
|
275677
|
+
pound: 163,
|
|
275678
|
+
curren: 164,
|
|
275679
|
+
yen: 165,
|
|
275680
|
+
brvbar: 166,
|
|
275681
|
+
sect: 167,
|
|
275682
|
+
uml: 168,
|
|
275683
|
+
ordf: 170,
|
|
275684
|
+
laquo: 171,
|
|
275685
|
+
not: 172,
|
|
275686
|
+
shy: 173,
|
|
275687
|
+
macr: 175,
|
|
275688
|
+
deg: 176,
|
|
275689
|
+
plusmn: 177,
|
|
275690
|
+
sup1: 185,
|
|
275691
|
+
sup2: 178,
|
|
275692
|
+
sup3: 179,
|
|
275693
|
+
acute: 180,
|
|
275694
|
+
micro: 181,
|
|
275695
|
+
para: 182,
|
|
275696
|
+
middot: 183,
|
|
275697
|
+
cedil: 184,
|
|
275698
|
+
ordm: 186,
|
|
275699
|
+
raquo: 187,
|
|
275700
|
+
frac14: 188,
|
|
275701
|
+
frac12: 189,
|
|
275702
|
+
frac34: 190,
|
|
275703
|
+
iquest: 191,
|
|
275704
|
+
times: 215,
|
|
275705
|
+
divide: 247,
|
|
275706
|
+
OElig: 338,
|
|
275707
|
+
oelig: 339,
|
|
275708
|
+
Scaron: 352,
|
|
275709
|
+
scaron: 353,
|
|
275710
|
+
Yuml: 376,
|
|
275711
|
+
fnof: 402,
|
|
275712
|
+
circ: 710,
|
|
275713
|
+
tilde: 732,
|
|
275714
|
+
Alpha: 913,
|
|
275715
|
+
Beta: 914,
|
|
275716
|
+
Gamma: 915,
|
|
275717
|
+
Delta: 916,
|
|
275718
|
+
Epsilon: 917,
|
|
275719
|
+
Zeta: 918,
|
|
275720
|
+
Eta: 919,
|
|
275721
|
+
Theta: 920,
|
|
275722
|
+
Iota: 921,
|
|
275723
|
+
Kappa: 922,
|
|
275724
|
+
Lambda: 923,
|
|
275725
|
+
Mu: 924,
|
|
275726
|
+
Nu: 925,
|
|
275727
|
+
Xi: 926,
|
|
275728
|
+
Omicron: 927,
|
|
275729
|
+
Pi: 928,
|
|
275730
|
+
Rho: 929,
|
|
275731
|
+
Sigma: 931,
|
|
275732
|
+
Tau: 932,
|
|
275733
|
+
Upsilon: 933,
|
|
275734
|
+
Phi: 934,
|
|
275735
|
+
Chi: 935,
|
|
275736
|
+
Psi: 936,
|
|
275737
|
+
Omega: 937,
|
|
275738
|
+
alpha: 945,
|
|
275739
|
+
beta: 946,
|
|
275740
|
+
gamma: 947,
|
|
275741
|
+
delta: 948,
|
|
275742
|
+
epsilon: 949,
|
|
275743
|
+
zeta: 950,
|
|
275744
|
+
eta: 951,
|
|
275745
|
+
theta: 952,
|
|
275746
|
+
iota: 953,
|
|
275747
|
+
kappa: 954,
|
|
275748
|
+
lambda: 955,
|
|
275749
|
+
mu: 956,
|
|
275750
|
+
nu: 957,
|
|
275751
|
+
xi: 958,
|
|
275752
|
+
omicron: 959,
|
|
275753
|
+
pi: 960,
|
|
275754
|
+
rho: 961,
|
|
275755
|
+
sigmaf: 962,
|
|
275756
|
+
sigma: 963,
|
|
275757
|
+
tau: 964,
|
|
275758
|
+
upsilon: 965,
|
|
275759
|
+
phi: 966,
|
|
275760
|
+
chi: 967,
|
|
275761
|
+
psi: 968,
|
|
275762
|
+
omega: 969,
|
|
275763
|
+
thetasym: 977,
|
|
275764
|
+
upsih: 978,
|
|
275765
|
+
piv: 982,
|
|
275766
|
+
ensp: 8194,
|
|
275767
|
+
emsp: 8195,
|
|
275768
|
+
thinsp: 8201,
|
|
275769
|
+
zwnj: 8204,
|
|
275770
|
+
zwj: 8205,
|
|
275771
|
+
lrm: 8206,
|
|
275772
|
+
rlm: 8207,
|
|
275773
|
+
ndash: 8211,
|
|
275774
|
+
mdash: 8212,
|
|
275775
|
+
lsquo: 8216,
|
|
275776
|
+
rsquo: 8217,
|
|
275777
|
+
sbquo: 8218,
|
|
275778
|
+
ldquo: 8220,
|
|
275779
|
+
rdquo: 8221,
|
|
275780
|
+
bdquo: 8222,
|
|
275781
|
+
dagger: 8224,
|
|
275782
|
+
Dagger: 8225,
|
|
275783
|
+
bull: 8226,
|
|
275784
|
+
hellip: 8230,
|
|
275785
|
+
permil: 8240,
|
|
275786
|
+
prime: 8242,
|
|
275787
|
+
Prime: 8243,
|
|
275788
|
+
lsaquo: 8249,
|
|
275789
|
+
rsaquo: 8250,
|
|
275790
|
+
oline: 8254,
|
|
275791
|
+
frasl: 8260,
|
|
275792
|
+
euro: 8364,
|
|
275793
|
+
image: 8465,
|
|
275794
|
+
weierp: 8472,
|
|
275795
|
+
real: 8476,
|
|
275796
|
+
trade: 8482,
|
|
275797
|
+
alefsym: 8501,
|
|
275798
|
+
larr: 8592,
|
|
275799
|
+
uarr: 8593,
|
|
275800
|
+
rarr: 8594,
|
|
275801
|
+
darr: 8595,
|
|
275802
|
+
harr: 8596,
|
|
275803
|
+
crarr: 8629,
|
|
275804
|
+
lArr: 8656,
|
|
275805
|
+
uArr: 8657,
|
|
275806
|
+
rArr: 8658,
|
|
275807
|
+
dArr: 8659,
|
|
275808
|
+
hArr: 8660,
|
|
275809
|
+
forall: 8704,
|
|
275810
|
+
part: 8706,
|
|
275811
|
+
exist: 8707,
|
|
275812
|
+
empty: 8709,
|
|
275813
|
+
nabla: 8711,
|
|
275814
|
+
isin: 8712,
|
|
275815
|
+
notin: 8713,
|
|
275816
|
+
ni: 8715,
|
|
275817
|
+
prod: 8719,
|
|
275818
|
+
sum: 8721,
|
|
275819
|
+
minus: 8722,
|
|
275820
|
+
lowast: 8727,
|
|
275821
|
+
radic: 8730,
|
|
275822
|
+
prop: 8733,
|
|
275823
|
+
infin: 8734,
|
|
275824
|
+
ang: 8736,
|
|
275825
|
+
and: 8743,
|
|
275826
|
+
or: 8744,
|
|
275827
|
+
cap: 8745,
|
|
275828
|
+
cup: 8746,
|
|
275829
|
+
int: 8747,
|
|
275830
|
+
there4: 8756,
|
|
275831
|
+
sim: 8764,
|
|
275832
|
+
cong: 8773,
|
|
275833
|
+
asymp: 8776,
|
|
275834
|
+
ne: 8800,
|
|
275835
|
+
equiv: 8801,
|
|
275836
|
+
le: 8804,
|
|
275837
|
+
ge: 8805,
|
|
275838
|
+
sub: 8834,
|
|
275839
|
+
sup: 8835,
|
|
275840
|
+
nsub: 8836,
|
|
275841
|
+
sube: 8838,
|
|
275842
|
+
supe: 8839,
|
|
275843
|
+
oplus: 8853,
|
|
275844
|
+
otimes: 8855,
|
|
275845
|
+
perp: 8869,
|
|
275846
|
+
sdot: 8901,
|
|
275847
|
+
lceil: 8968,
|
|
275848
|
+
rceil: 8969,
|
|
275849
|
+
lfloor: 8970,
|
|
275850
|
+
rfloor: 8971,
|
|
275851
|
+
lang: 9001,
|
|
275852
|
+
rang: 9002,
|
|
275853
|
+
loz: 9674,
|
|
275854
|
+
spades: 9824,
|
|
275855
|
+
clubs: 9827,
|
|
275856
|
+
hearts: 9829,
|
|
275857
|
+
diams: 9830,
|
|
275825
275858
|
};
|
|
275826
275859
|
|
|
275827
275860
|
Object.keys(sax.ENTITIES).forEach(function (key) {
|
|
@@ -275837,33 +275870,37 @@ function requireSax () {
|
|
|
275837
275870
|
// shorthand
|
|
275838
275871
|
S = sax.STATE;
|
|
275839
275872
|
|
|
275840
|
-
function emit
|
|
275873
|
+
function emit(parser, event, data) {
|
|
275841
275874
|
parser[event] && parser[event](data);
|
|
275842
275875
|
}
|
|
275843
275876
|
|
|
275844
|
-
function emitNode
|
|
275877
|
+
function emitNode(parser, nodeType, data) {
|
|
275845
275878
|
if (parser.textNode) closeText(parser);
|
|
275846
275879
|
emit(parser, nodeType, data);
|
|
275847
275880
|
}
|
|
275848
275881
|
|
|
275849
|
-
function closeText
|
|
275882
|
+
function closeText(parser) {
|
|
275850
275883
|
parser.textNode = textopts(parser.opt, parser.textNode);
|
|
275851
275884
|
if (parser.textNode) emit(parser, 'ontext', parser.textNode);
|
|
275852
275885
|
parser.textNode = '';
|
|
275853
275886
|
}
|
|
275854
275887
|
|
|
275855
|
-
function textopts
|
|
275888
|
+
function textopts(opt, text) {
|
|
275856
275889
|
if (opt.trim) text = text.trim();
|
|
275857
275890
|
if (opt.normalize) text = text.replace(/\s+/g, ' ');
|
|
275858
275891
|
return text
|
|
275859
275892
|
}
|
|
275860
275893
|
|
|
275861
|
-
function error
|
|
275894
|
+
function error(parser, er) {
|
|
275862
275895
|
closeText(parser);
|
|
275863
275896
|
if (parser.trackPosition) {
|
|
275864
|
-
er +=
|
|
275865
|
-
'\
|
|
275866
|
-
|
|
275897
|
+
er +=
|
|
275898
|
+
'\nLine: ' +
|
|
275899
|
+
parser.line +
|
|
275900
|
+
'\nColumn: ' +
|
|
275901
|
+
parser.column +
|
|
275902
|
+
'\nChar: ' +
|
|
275903
|
+
parser.c;
|
|
275867
275904
|
}
|
|
275868
275905
|
er = new Error(er);
|
|
275869
275906
|
parser.error = er;
|
|
@@ -275871,11 +275908,14 @@ function requireSax () {
|
|
|
275871
275908
|
return parser
|
|
275872
275909
|
}
|
|
275873
275910
|
|
|
275874
|
-
function end
|
|
275875
|
-
if (parser.sawRoot && !parser.closedRoot)
|
|
275876
|
-
|
|
275877
|
-
|
|
275878
|
-
|
|
275911
|
+
function end(parser) {
|
|
275912
|
+
if (parser.sawRoot && !parser.closedRoot)
|
|
275913
|
+
strictFail(parser, 'Unclosed root tag');
|
|
275914
|
+
if (
|
|
275915
|
+
parser.state !== S.BEGIN &&
|
|
275916
|
+
parser.state !== S.BEGIN_WHITESPACE &&
|
|
275917
|
+
parser.state !== S.TEXT
|
|
275918
|
+
) {
|
|
275879
275919
|
error(parser, 'Unexpected end');
|
|
275880
275920
|
}
|
|
275881
275921
|
closeText(parser);
|
|
@@ -275886,7 +275926,7 @@ function requireSax () {
|
|
|
275886
275926
|
return parser
|
|
275887
275927
|
}
|
|
275888
275928
|
|
|
275889
|
-
function strictFail
|
|
275929
|
+
function strictFail(parser, message) {
|
|
275890
275930
|
if (typeof parser !== 'object' || !(parser instanceof SAXParser)) {
|
|
275891
275931
|
throw new Error('bad call to strictFail')
|
|
275892
275932
|
}
|
|
@@ -275895,10 +275935,10 @@ function requireSax () {
|
|
|
275895
275935
|
}
|
|
275896
275936
|
}
|
|
275897
275937
|
|
|
275898
|
-
function newTag
|
|
275938
|
+
function newTag(parser) {
|
|
275899
275939
|
if (!parser.strict) parser.tagName = parser.tagName[parser.looseCase]();
|
|
275900
275940
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
275901
|
-
var tag = parser.tag = { name: parser.tagName, attributes: {} };
|
|
275941
|
+
var tag = (parser.tag = { name: parser.tagName, attributes: {} });
|
|
275902
275942
|
|
|
275903
275943
|
// will be overridden if tag contails an xmlns="foo" or xmlns:foo="bar"
|
|
275904
275944
|
if (parser.opt.xmlns) {
|
|
@@ -275908,9 +275948,9 @@ function requireSax () {
|
|
|
275908
275948
|
emitNode(parser, 'onopentagstart', tag);
|
|
275909
275949
|
}
|
|
275910
275950
|
|
|
275911
|
-
function qname
|
|
275951
|
+
function qname(name, attribute) {
|
|
275912
275952
|
var i = name.indexOf(':');
|
|
275913
|
-
var qualName = i < 0 ? [
|
|
275953
|
+
var qualName = i < 0 ? ['', name] : name.split(':');
|
|
275914
275954
|
var prefix = qualName[0];
|
|
275915
275955
|
var local = qualName[1];
|
|
275916
275956
|
|
|
@@ -275923,13 +275963,15 @@ function requireSax () {
|
|
|
275923
275963
|
return { prefix: prefix, local: local }
|
|
275924
275964
|
}
|
|
275925
275965
|
|
|
275926
|
-
function attrib
|
|
275966
|
+
function attrib(parser) {
|
|
275927
275967
|
if (!parser.strict) {
|
|
275928
275968
|
parser.attribName = parser.attribName[parser.looseCase]();
|
|
275929
275969
|
}
|
|
275930
275970
|
|
|
275931
|
-
if (
|
|
275932
|
-
parser.
|
|
275971
|
+
if (
|
|
275972
|
+
parser.attribList.indexOf(parser.attribName) !== -1 ||
|
|
275973
|
+
parser.tag.attributes.hasOwnProperty(parser.attribName)
|
|
275974
|
+
) {
|
|
275933
275975
|
parser.attribName = parser.attribValue = '';
|
|
275934
275976
|
return
|
|
275935
275977
|
}
|
|
@@ -275942,13 +275984,26 @@ function requireSax () {
|
|
|
275942
275984
|
if (prefix === 'xmlns') {
|
|
275943
275985
|
// namespace binding attribute. push the binding into scope
|
|
275944
275986
|
if (local === 'xml' && parser.attribValue !== XML_NAMESPACE) {
|
|
275945
|
-
strictFail(
|
|
275946
|
-
|
|
275947
|
-
'
|
|
275948
|
-
|
|
275949
|
-
|
|
275950
|
-
|
|
275951
|
-
|
|
275987
|
+
strictFail(
|
|
275988
|
+
parser,
|
|
275989
|
+
'xml: prefix must be bound to ' +
|
|
275990
|
+
XML_NAMESPACE +
|
|
275991
|
+
'\n' +
|
|
275992
|
+
'Actual: ' +
|
|
275993
|
+
parser.attribValue
|
|
275994
|
+
);
|
|
275995
|
+
} else if (
|
|
275996
|
+
local === 'xmlns' &&
|
|
275997
|
+
parser.attribValue !== XMLNS_NAMESPACE
|
|
275998
|
+
) {
|
|
275999
|
+
strictFail(
|
|
276000
|
+
parser,
|
|
276001
|
+
'xmlns: prefix must be bound to ' +
|
|
276002
|
+
XMLNS_NAMESPACE +
|
|
276003
|
+
'\n' +
|
|
276004
|
+
'Actual: ' +
|
|
276005
|
+
parser.attribValue
|
|
276006
|
+
);
|
|
275952
276007
|
} else {
|
|
275953
276008
|
var tag = parser.tag;
|
|
275954
276009
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
@@ -275968,14 +276023,14 @@ function requireSax () {
|
|
|
275968
276023
|
parser.tag.attributes[parser.attribName] = parser.attribValue;
|
|
275969
276024
|
emitNode(parser, 'onattribute', {
|
|
275970
276025
|
name: parser.attribName,
|
|
275971
|
-
value: parser.attribValue
|
|
276026
|
+
value: parser.attribValue,
|
|
275972
276027
|
});
|
|
275973
276028
|
}
|
|
275974
276029
|
|
|
275975
276030
|
parser.attribName = parser.attribValue = '';
|
|
275976
276031
|
}
|
|
275977
276032
|
|
|
275978
|
-
function openTag
|
|
276033
|
+
function openTag(parser, selfClosing) {
|
|
275979
276034
|
if (parser.opt.xmlns) {
|
|
275980
276035
|
// emit namespace binding events
|
|
275981
276036
|
var tag = parser.tag;
|
|
@@ -275987,8 +276042,10 @@ function requireSax () {
|
|
|
275987
276042
|
tag.uri = tag.ns[qn.prefix] || '';
|
|
275988
276043
|
|
|
275989
276044
|
if (tag.prefix && !tag.uri) {
|
|
275990
|
-
strictFail(
|
|
275991
|
-
|
|
276045
|
+
strictFail(
|
|
276046
|
+
parser,
|
|
276047
|
+
'Unbound namespace prefix: ' + JSON.stringify(parser.tagName)
|
|
276048
|
+
);
|
|
275992
276049
|
tag.uri = qn.prefix;
|
|
275993
276050
|
}
|
|
275994
276051
|
|
|
@@ -275997,7 +276054,7 @@ function requireSax () {
|
|
|
275997
276054
|
Object.keys(tag.ns).forEach(function (p) {
|
|
275998
276055
|
emitNode(parser, 'onopennamespace', {
|
|
275999
276056
|
prefix: p,
|
|
276000
|
-
uri: tag.ns[p]
|
|
276057
|
+
uri: tag.ns[p],
|
|
276001
276058
|
});
|
|
276002
276059
|
});
|
|
276003
276060
|
}
|
|
@@ -276012,20 +276069,22 @@ function requireSax () {
|
|
|
276012
276069
|
var qualName = qname(name, true);
|
|
276013
276070
|
var prefix = qualName.prefix;
|
|
276014
276071
|
var local = qualName.local;
|
|
276015
|
-
var uri = prefix === '' ? '' :
|
|
276072
|
+
var uri = prefix === '' ? '' : tag.ns[prefix] || '';
|
|
276016
276073
|
var a = {
|
|
276017
276074
|
name: name,
|
|
276018
276075
|
value: value,
|
|
276019
276076
|
prefix: prefix,
|
|
276020
276077
|
local: local,
|
|
276021
|
-
uri: uri
|
|
276078
|
+
uri: uri,
|
|
276022
276079
|
};
|
|
276023
276080
|
|
|
276024
276081
|
// if there's any attributes with an undefined namespace,
|
|
276025
276082
|
// then fail on them now.
|
|
276026
276083
|
if (prefix && prefix !== 'xmlns' && !uri) {
|
|
276027
|
-
strictFail(
|
|
276028
|
-
|
|
276084
|
+
strictFail(
|
|
276085
|
+
parser,
|
|
276086
|
+
'Unbound namespace prefix: ' + JSON.stringify(prefix)
|
|
276087
|
+
);
|
|
276029
276088
|
a.uri = prefix;
|
|
276030
276089
|
}
|
|
276031
276090
|
parser.tag.attributes[name] = a;
|
|
@@ -276054,7 +276113,7 @@ function requireSax () {
|
|
|
276054
276113
|
parser.attribList.length = 0;
|
|
276055
276114
|
}
|
|
276056
276115
|
|
|
276057
|
-
function closeTag
|
|
276116
|
+
function closeTag(parser) {
|
|
276058
276117
|
if (!parser.tagName) {
|
|
276059
276118
|
strictFail(parser, 'Weird empty close tag.');
|
|
276060
276119
|
parser.textNode += '</>';
|
|
@@ -276101,7 +276160,7 @@ function requireSax () {
|
|
|
276101
276160
|
parser.tagName = tagName;
|
|
276102
276161
|
var s = parser.tags.length;
|
|
276103
276162
|
while (s-- > t) {
|
|
276104
|
-
var tag = parser.tag = parser.tags.pop();
|
|
276163
|
+
var tag = (parser.tag = parser.tags.pop());
|
|
276105
276164
|
parser.tagName = parser.tag.name;
|
|
276106
276165
|
emitNode(parser, 'onclosetag', parser.tagName);
|
|
276107
276166
|
|
|
@@ -276125,7 +276184,7 @@ function requireSax () {
|
|
|
276125
276184
|
parser.state = S.TEXT;
|
|
276126
276185
|
}
|
|
276127
276186
|
|
|
276128
|
-
function parseEntity
|
|
276187
|
+
function parseEntity(parser) {
|
|
276129
276188
|
var entity = parser.entity;
|
|
276130
276189
|
var entityLC = entity.toLowerCase();
|
|
276131
276190
|
var num;
|
|
@@ -276150,7 +276209,12 @@ function requireSax () {
|
|
|
276150
276209
|
}
|
|
276151
276210
|
}
|
|
276152
276211
|
entity = entity.replace(/^0+/, '');
|
|
276153
|
-
if (
|
|
276212
|
+
if (
|
|
276213
|
+
isNaN(num) ||
|
|
276214
|
+
numStr.toLowerCase() !== entity ||
|
|
276215
|
+
num < 0 ||
|
|
276216
|
+
num > 0x10ffff
|
|
276217
|
+
) {
|
|
276154
276218
|
strictFail(parser, 'Invalid character entity');
|
|
276155
276219
|
return '&' + parser.entity + ';'
|
|
276156
276220
|
}
|
|
@@ -276158,7 +276222,7 @@ function requireSax () {
|
|
|
276158
276222
|
return String.fromCodePoint(num)
|
|
276159
276223
|
}
|
|
276160
276224
|
|
|
276161
|
-
function beginWhiteSpace
|
|
276225
|
+
function beginWhiteSpace(parser, c) {
|
|
276162
276226
|
if (c === '<') {
|
|
276163
276227
|
parser.state = S.OPEN_WAKA;
|
|
276164
276228
|
parser.startTagPosition = parser.position;
|
|
@@ -276171,7 +276235,7 @@ function requireSax () {
|
|
|
276171
276235
|
}
|
|
276172
276236
|
}
|
|
276173
276237
|
|
|
276174
|
-
function charAt
|
|
276238
|
+
function charAt(chunk, i) {
|
|
276175
276239
|
var result = '';
|
|
276176
276240
|
if (i < chunk.length) {
|
|
276177
276241
|
result = chunk.charAt(i);
|
|
@@ -276179,14 +276243,16 @@ function requireSax () {
|
|
|
276179
276243
|
return result
|
|
276180
276244
|
}
|
|
276181
276245
|
|
|
276182
|
-
function write
|
|
276246
|
+
function write(chunk) {
|
|
276183
276247
|
var parser = this;
|
|
276184
276248
|
if (this.error) {
|
|
276185
276249
|
throw this.error
|
|
276186
276250
|
}
|
|
276187
276251
|
if (parser.closed) {
|
|
276188
|
-
return error(
|
|
276189
|
-
|
|
276252
|
+
return error(
|
|
276253
|
+
parser,
|
|
276254
|
+
'Cannot write after close. Assign an onready handler.'
|
|
276255
|
+
)
|
|
276190
276256
|
}
|
|
276191
276257
|
if (chunk === null) {
|
|
276192
276258
|
return end(parser)
|
|
@@ -276244,11 +276310,17 @@ function requireSax () {
|
|
|
276244
276310
|
}
|
|
276245
276311
|
parser.textNode += chunk.substring(starti, i - 1);
|
|
276246
276312
|
}
|
|
276247
|
-
if (
|
|
276313
|
+
if (
|
|
276314
|
+
c === '<' &&
|
|
276315
|
+
!(parser.sawRoot && parser.closedRoot && !parser.strict)
|
|
276316
|
+
) {
|
|
276248
276317
|
parser.state = S.OPEN_WAKA;
|
|
276249
276318
|
parser.startTagPosition = parser.position;
|
|
276250
276319
|
} else {
|
|
276251
|
-
if (
|
|
276320
|
+
if (
|
|
276321
|
+
!isWhitespace(c) &&
|
|
276322
|
+
(!parser.sawRoot || parser.closedRoot)
|
|
276323
|
+
) {
|
|
276252
276324
|
strictFail(parser, 'Text data outside of root node.');
|
|
276253
276325
|
}
|
|
276254
276326
|
if (c === '&') {
|
|
@@ -276308,10 +276380,14 @@ function requireSax () {
|
|
|
276308
276380
|
parser.state = S.COMMENT;
|
|
276309
276381
|
parser.comment = '';
|
|
276310
276382
|
parser.sgmlDecl = '';
|
|
276311
|
-
continue
|
|
276383
|
+
continue
|
|
276312
276384
|
}
|
|
276313
276385
|
|
|
276314
|
-
if (
|
|
276386
|
+
if (
|
|
276387
|
+
parser.doctype &&
|
|
276388
|
+
parser.doctype !== true &&
|
|
276389
|
+
parser.sgmlDecl
|
|
276390
|
+
) {
|
|
276315
276391
|
parser.state = S.DOCTYPE_DTD;
|
|
276316
276392
|
parser.doctype += '<!' + parser.sgmlDecl + c;
|
|
276317
276393
|
parser.sgmlDecl = '';
|
|
@@ -276323,8 +276399,10 @@ function requireSax () {
|
|
|
276323
276399
|
} else if ((parser.sgmlDecl + c).toUpperCase() === DOCTYPE) {
|
|
276324
276400
|
parser.state = S.DOCTYPE;
|
|
276325
276401
|
if (parser.doctype || parser.sawRoot) {
|
|
276326
|
-
strictFail(
|
|
276327
|
-
|
|
276402
|
+
strictFail(
|
|
276403
|
+
parser,
|
|
276404
|
+
'Inappropriately located doctype declaration'
|
|
276405
|
+
);
|
|
276328
276406
|
}
|
|
276329
276407
|
parser.doctype = '';
|
|
276330
276408
|
parser.sgmlDecl = '';
|
|
@@ -276433,10 +276511,22 @@ function requireSax () {
|
|
|
276433
276511
|
continue
|
|
276434
276512
|
|
|
276435
276513
|
case S.CDATA:
|
|
276514
|
+
var starti = i - 1;
|
|
276515
|
+
while (c && c !== ']') {
|
|
276516
|
+
c = charAt(chunk, i++);
|
|
276517
|
+
if (c && parser.trackPosition) {
|
|
276518
|
+
parser.position++;
|
|
276519
|
+
if (c === '\n') {
|
|
276520
|
+
parser.line++;
|
|
276521
|
+
parser.column = 0;
|
|
276522
|
+
} else {
|
|
276523
|
+
parser.column++;
|
|
276524
|
+
}
|
|
276525
|
+
}
|
|
276526
|
+
}
|
|
276527
|
+
parser.cdata += chunk.substring(starti, i - 1);
|
|
276436
276528
|
if (c === ']') {
|
|
276437
276529
|
parser.state = S.CDATA_ENDING;
|
|
276438
|
-
} else {
|
|
276439
|
-
parser.cdata += c;
|
|
276440
276530
|
}
|
|
276441
276531
|
continue
|
|
276442
276532
|
|
|
@@ -276489,7 +276579,7 @@ function requireSax () {
|
|
|
276489
276579
|
if (c === '>') {
|
|
276490
276580
|
emitNode(parser, 'onprocessinginstruction', {
|
|
276491
276581
|
name: parser.procInstName,
|
|
276492
|
-
body: parser.procInstBody
|
|
276582
|
+
body: parser.procInstBody,
|
|
276493
276583
|
});
|
|
276494
276584
|
parser.procInstName = parser.procInstBody = '';
|
|
276495
276585
|
parser.state = S.TEXT;
|
|
@@ -276522,7 +276612,10 @@ function requireSax () {
|
|
|
276522
276612
|
openTag(parser, true);
|
|
276523
276613
|
closeTag(parser);
|
|
276524
276614
|
} else {
|
|
276525
|
-
strictFail(
|
|
276615
|
+
strictFail(
|
|
276616
|
+
parser,
|
|
276617
|
+
'Forward-slash in opening tag not followed by >'
|
|
276618
|
+
);
|
|
276526
276619
|
parser.state = S.ATTRIB;
|
|
276527
276620
|
}
|
|
276528
276621
|
continue
|
|
@@ -276572,7 +276665,7 @@ function requireSax () {
|
|
|
276572
276665
|
parser.attribValue = '';
|
|
276573
276666
|
emitNode(parser, 'onattribute', {
|
|
276574
276667
|
name: parser.attribName,
|
|
276575
|
-
value: ''
|
|
276668
|
+
value: '',
|
|
276576
276669
|
});
|
|
276577
276670
|
parser.attribName = '';
|
|
276578
276671
|
if (c === '>') {
|
|
@@ -276715,7 +276808,10 @@ function requireSax () {
|
|
|
276715
276808
|
|
|
276716
276809
|
if (c === ';') {
|
|
276717
276810
|
var parsedEntity = parseEntity(parser);
|
|
276718
|
-
if (
|
|
276811
|
+
if (
|
|
276812
|
+
parser.opt.unparsedEntities &&
|
|
276813
|
+
!Object.values(sax.XML_ENTITIES).includes(parsedEntity)
|
|
276814
|
+
) {
|
|
276719
276815
|
parser.entity = '';
|
|
276720
276816
|
parser.state = returnState;
|
|
276721
276817
|
parser.write(parsedEntity);
|
|
@@ -276724,7 +276820,9 @@ function requireSax () {
|
|
|
276724
276820
|
parser.entity = '';
|
|
276725
276821
|
parser.state = returnState;
|
|
276726
276822
|
}
|
|
276727
|
-
} else if (
|
|
276823
|
+
} else if (
|
|
276824
|
+
isMatch(parser.entity.length ? entityBody : entityStart, c)
|
|
276825
|
+
) {
|
|
276728
276826
|
parser.entity += c;
|
|
276729
276827
|
} else {
|
|
276730
276828
|
strictFail(parser, 'Invalid character in entity name');
|
|
@@ -276750,7 +276848,7 @@ function requireSax () {
|
|
|
276750
276848
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
276751
276849
|
/* istanbul ignore next */
|
|
276752
276850
|
if (!String.fromCodePoint) {
|
|
276753
|
-
|
|
276851
|
+
(function () {
|
|
276754
276852
|
var stringFromCharCode = String.fromCharCode;
|
|
276755
276853
|
var floor = Math.floor;
|
|
276756
276854
|
var fromCodePoint = function () {
|
|
@@ -276769,18 +276867,20 @@ function requireSax () {
|
|
|
276769
276867
|
if (
|
|
276770
276868
|
!isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity`
|
|
276771
276869
|
codePoint < 0 || // not a valid Unicode code point
|
|
276772
|
-
codePoint >
|
|
276870
|
+
codePoint > 0x10ffff || // not a valid Unicode code point
|
|
276773
276871
|
floor(codePoint) !== codePoint // not an integer
|
|
276774
276872
|
) {
|
|
276775
276873
|
throw RangeError('Invalid code point: ' + codePoint)
|
|
276776
276874
|
}
|
|
276777
|
-
if (codePoint <=
|
|
276875
|
+
if (codePoint <= 0xffff) {
|
|
276876
|
+
// BMP code point
|
|
276778
276877
|
codeUnits.push(codePoint);
|
|
276779
|
-
} else {
|
|
276878
|
+
} else {
|
|
276879
|
+
// Astral code point; split in surrogate halves
|
|
276780
276880
|
// http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
|
|
276781
276881
|
codePoint -= 0x10000;
|
|
276782
|
-
highSurrogate = (codePoint >> 10) +
|
|
276783
|
-
lowSurrogate = (codePoint % 0x400) +
|
|
276882
|
+
highSurrogate = (codePoint >> 10) + 0xd800;
|
|
276883
|
+
lowSurrogate = (codePoint % 0x400) + 0xdc00;
|
|
276784
276884
|
codeUnits.push(highSurrogate, lowSurrogate);
|
|
276785
276885
|
}
|
|
276786
276886
|
if (index + 1 === length || codeUnits.length > MAX_SIZE) {
|
|
@@ -276795,12 +276895,12 @@ function requireSax () {
|
|
|
276795
276895
|
Object.defineProperty(String, 'fromCodePoint', {
|
|
276796
276896
|
value: fromCodePoint,
|
|
276797
276897
|
configurable: true,
|
|
276798
|
-
writable: true
|
|
276898
|
+
writable: true,
|
|
276799
276899
|
});
|
|
276800
276900
|
} else {
|
|
276801
276901
|
String.fromCodePoint = fromCodePoint;
|
|
276802
276902
|
}
|
|
276803
|
-
}()
|
|
276903
|
+
})();
|
|
276804
276904
|
}
|
|
276805
276905
|
})(exports$1);
|
|
276806
276906
|
} (sax));
|
|
@@ -278665,885 +278765,6 @@ function requireMediaTyper () {
|
|
|
278665
278765
|
return mediaTyper;
|
|
278666
278766
|
}
|
|
278667
278767
|
|
|
278668
|
-
var src = {exports: {}};
|
|
278669
|
-
|
|
278670
|
-
var browser = {exports: {}};
|
|
278671
|
-
|
|
278672
|
-
var common;
|
|
278673
|
-
var hasRequiredCommon;
|
|
278674
|
-
|
|
278675
|
-
function requireCommon () {
|
|
278676
|
-
if (hasRequiredCommon) return common;
|
|
278677
|
-
hasRequiredCommon = 1;
|
|
278678
|
-
/**
|
|
278679
|
-
* This is the common logic for both the Node.js and web browser
|
|
278680
|
-
* implementations of `debug()`.
|
|
278681
|
-
*/
|
|
278682
|
-
|
|
278683
|
-
function setup(env) {
|
|
278684
|
-
createDebug.debug = createDebug;
|
|
278685
|
-
createDebug.default = createDebug;
|
|
278686
|
-
createDebug.coerce = coerce;
|
|
278687
|
-
createDebug.disable = disable;
|
|
278688
|
-
createDebug.enable = enable;
|
|
278689
|
-
createDebug.enabled = enabled;
|
|
278690
|
-
createDebug.humanize = requireMs();
|
|
278691
|
-
createDebug.destroy = destroy;
|
|
278692
|
-
|
|
278693
|
-
Object.keys(env).forEach(key => {
|
|
278694
|
-
createDebug[key] = env[key];
|
|
278695
|
-
});
|
|
278696
|
-
|
|
278697
|
-
/**
|
|
278698
|
-
* The currently active debug mode names, and names to skip.
|
|
278699
|
-
*/
|
|
278700
|
-
|
|
278701
|
-
createDebug.names = [];
|
|
278702
|
-
createDebug.skips = [];
|
|
278703
|
-
|
|
278704
|
-
/**
|
|
278705
|
-
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
278706
|
-
*
|
|
278707
|
-
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
278708
|
-
*/
|
|
278709
|
-
createDebug.formatters = {};
|
|
278710
|
-
|
|
278711
|
-
/**
|
|
278712
|
-
* Selects a color for a debug namespace
|
|
278713
|
-
* @param {String} namespace The namespace string for the debug instance to be colored
|
|
278714
|
-
* @return {Number|String} An ANSI color code for the given namespace
|
|
278715
|
-
* @api private
|
|
278716
|
-
*/
|
|
278717
|
-
function selectColor(namespace) {
|
|
278718
|
-
let hash = 0;
|
|
278719
|
-
|
|
278720
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
278721
|
-
hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
|
|
278722
|
-
hash |= 0; // Convert to 32bit integer
|
|
278723
|
-
}
|
|
278724
|
-
|
|
278725
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
278726
|
-
}
|
|
278727
|
-
createDebug.selectColor = selectColor;
|
|
278728
|
-
|
|
278729
|
-
/**
|
|
278730
|
-
* Create a debugger with the given `namespace`.
|
|
278731
|
-
*
|
|
278732
|
-
* @param {String} namespace
|
|
278733
|
-
* @return {Function}
|
|
278734
|
-
* @api public
|
|
278735
|
-
*/
|
|
278736
|
-
function createDebug(namespace) {
|
|
278737
|
-
let prevTime;
|
|
278738
|
-
let enableOverride = null;
|
|
278739
|
-
let namespacesCache;
|
|
278740
|
-
let enabledCache;
|
|
278741
|
-
|
|
278742
|
-
function debug(...args) {
|
|
278743
|
-
// Disabled?
|
|
278744
|
-
if (!debug.enabled) {
|
|
278745
|
-
return;
|
|
278746
|
-
}
|
|
278747
|
-
|
|
278748
|
-
const self = debug;
|
|
278749
|
-
|
|
278750
|
-
// Set `diff` timestamp
|
|
278751
|
-
const curr = Number(new Date());
|
|
278752
|
-
const ms = curr - (prevTime || curr);
|
|
278753
|
-
self.diff = ms;
|
|
278754
|
-
self.prev = prevTime;
|
|
278755
|
-
self.curr = curr;
|
|
278756
|
-
prevTime = curr;
|
|
278757
|
-
|
|
278758
|
-
args[0] = createDebug.coerce(args[0]);
|
|
278759
|
-
|
|
278760
|
-
if (typeof args[0] !== 'string') {
|
|
278761
|
-
// Anything else let's inspect with %O
|
|
278762
|
-
args.unshift('%O');
|
|
278763
|
-
}
|
|
278764
|
-
|
|
278765
|
-
// Apply any `formatters` transformations
|
|
278766
|
-
let index = 0;
|
|
278767
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
278768
|
-
// If we encounter an escaped % then don't increase the array index
|
|
278769
|
-
if (match === '%%') {
|
|
278770
|
-
return '%';
|
|
278771
|
-
}
|
|
278772
|
-
index++;
|
|
278773
|
-
const formatter = createDebug.formatters[format];
|
|
278774
|
-
if (typeof formatter === 'function') {
|
|
278775
|
-
const val = args[index];
|
|
278776
|
-
match = formatter.call(self, val);
|
|
278777
|
-
|
|
278778
|
-
// Now we need to remove `args[index]` since it's inlined in the `format`
|
|
278779
|
-
args.splice(index, 1);
|
|
278780
|
-
index--;
|
|
278781
|
-
}
|
|
278782
|
-
return match;
|
|
278783
|
-
});
|
|
278784
|
-
|
|
278785
|
-
// Apply env-specific formatting (colors, etc.)
|
|
278786
|
-
createDebug.formatArgs.call(self, args);
|
|
278787
|
-
|
|
278788
|
-
const logFn = self.log || createDebug.log;
|
|
278789
|
-
logFn.apply(self, args);
|
|
278790
|
-
}
|
|
278791
|
-
|
|
278792
|
-
debug.namespace = namespace;
|
|
278793
|
-
debug.useColors = createDebug.useColors();
|
|
278794
|
-
debug.color = createDebug.selectColor(namespace);
|
|
278795
|
-
debug.extend = extend;
|
|
278796
|
-
debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
|
|
278797
|
-
|
|
278798
|
-
Object.defineProperty(debug, 'enabled', {
|
|
278799
|
-
enumerable: true,
|
|
278800
|
-
configurable: false,
|
|
278801
|
-
get: () => {
|
|
278802
|
-
if (enableOverride !== null) {
|
|
278803
|
-
return enableOverride;
|
|
278804
|
-
}
|
|
278805
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
278806
|
-
namespacesCache = createDebug.namespaces;
|
|
278807
|
-
enabledCache = createDebug.enabled(namespace);
|
|
278808
|
-
}
|
|
278809
|
-
|
|
278810
|
-
return enabledCache;
|
|
278811
|
-
},
|
|
278812
|
-
set: v => {
|
|
278813
|
-
enableOverride = v;
|
|
278814
|
-
}
|
|
278815
|
-
});
|
|
278816
|
-
|
|
278817
|
-
// Env-specific initialization logic for debug instances
|
|
278818
|
-
if (typeof createDebug.init === 'function') {
|
|
278819
|
-
createDebug.init(debug);
|
|
278820
|
-
}
|
|
278821
|
-
|
|
278822
|
-
return debug;
|
|
278823
|
-
}
|
|
278824
|
-
|
|
278825
|
-
function extend(namespace, delimiter) {
|
|
278826
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
|
278827
|
-
newDebug.log = this.log;
|
|
278828
|
-
return newDebug;
|
|
278829
|
-
}
|
|
278830
|
-
|
|
278831
|
-
/**
|
|
278832
|
-
* Enables a debug mode by namespaces. This can include modes
|
|
278833
|
-
* separated by a colon and wildcards.
|
|
278834
|
-
*
|
|
278835
|
-
* @param {String} namespaces
|
|
278836
|
-
* @api public
|
|
278837
|
-
*/
|
|
278838
|
-
function enable(namespaces) {
|
|
278839
|
-
createDebug.save(namespaces);
|
|
278840
|
-
createDebug.namespaces = namespaces;
|
|
278841
|
-
|
|
278842
|
-
createDebug.names = [];
|
|
278843
|
-
createDebug.skips = [];
|
|
278844
|
-
|
|
278845
|
-
const split = (typeof namespaces === 'string' ? namespaces : '')
|
|
278846
|
-
.trim()
|
|
278847
|
-
.replace(/\s+/g, ',')
|
|
278848
|
-
.split(',')
|
|
278849
|
-
.filter(Boolean);
|
|
278850
|
-
|
|
278851
|
-
for (const ns of split) {
|
|
278852
|
-
if (ns[0] === '-') {
|
|
278853
|
-
createDebug.skips.push(ns.slice(1));
|
|
278854
|
-
} else {
|
|
278855
|
-
createDebug.names.push(ns);
|
|
278856
|
-
}
|
|
278857
|
-
}
|
|
278858
|
-
}
|
|
278859
|
-
|
|
278860
|
-
/**
|
|
278861
|
-
* Checks if the given string matches a namespace template, honoring
|
|
278862
|
-
* asterisks as wildcards.
|
|
278863
|
-
*
|
|
278864
|
-
* @param {String} search
|
|
278865
|
-
* @param {String} template
|
|
278866
|
-
* @return {Boolean}
|
|
278867
|
-
*/
|
|
278868
|
-
function matchesTemplate(search, template) {
|
|
278869
|
-
let searchIndex = 0;
|
|
278870
|
-
let templateIndex = 0;
|
|
278871
|
-
let starIndex = -1;
|
|
278872
|
-
let matchIndex = 0;
|
|
278873
|
-
|
|
278874
|
-
while (searchIndex < search.length) {
|
|
278875
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
|
|
278876
|
-
// Match character or proceed with wildcard
|
|
278877
|
-
if (template[templateIndex] === '*') {
|
|
278878
|
-
starIndex = templateIndex;
|
|
278879
|
-
matchIndex = searchIndex;
|
|
278880
|
-
templateIndex++; // Skip the '*'
|
|
278881
|
-
} else {
|
|
278882
|
-
searchIndex++;
|
|
278883
|
-
templateIndex++;
|
|
278884
|
-
}
|
|
278885
|
-
} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
|
|
278886
|
-
// Backtrack to the last '*' and try to match more characters
|
|
278887
|
-
templateIndex = starIndex + 1;
|
|
278888
|
-
matchIndex++;
|
|
278889
|
-
searchIndex = matchIndex;
|
|
278890
|
-
} else {
|
|
278891
|
-
return false; // No match
|
|
278892
|
-
}
|
|
278893
|
-
}
|
|
278894
|
-
|
|
278895
|
-
// Handle trailing '*' in template
|
|
278896
|
-
while (templateIndex < template.length && template[templateIndex] === '*') {
|
|
278897
|
-
templateIndex++;
|
|
278898
|
-
}
|
|
278899
|
-
|
|
278900
|
-
return templateIndex === template.length;
|
|
278901
|
-
}
|
|
278902
|
-
|
|
278903
|
-
/**
|
|
278904
|
-
* Disable debug output.
|
|
278905
|
-
*
|
|
278906
|
-
* @return {String} namespaces
|
|
278907
|
-
* @api public
|
|
278908
|
-
*/
|
|
278909
|
-
function disable() {
|
|
278910
|
-
const namespaces = [
|
|
278911
|
-
...createDebug.names,
|
|
278912
|
-
...createDebug.skips.map(namespace => '-' + namespace)
|
|
278913
|
-
].join(',');
|
|
278914
|
-
createDebug.enable('');
|
|
278915
|
-
return namespaces;
|
|
278916
|
-
}
|
|
278917
|
-
|
|
278918
|
-
/**
|
|
278919
|
-
* Returns true if the given mode name is enabled, false otherwise.
|
|
278920
|
-
*
|
|
278921
|
-
* @param {String} name
|
|
278922
|
-
* @return {Boolean}
|
|
278923
|
-
* @api public
|
|
278924
|
-
*/
|
|
278925
|
-
function enabled(name) {
|
|
278926
|
-
for (const skip of createDebug.skips) {
|
|
278927
|
-
if (matchesTemplate(name, skip)) {
|
|
278928
|
-
return false;
|
|
278929
|
-
}
|
|
278930
|
-
}
|
|
278931
|
-
|
|
278932
|
-
for (const ns of createDebug.names) {
|
|
278933
|
-
if (matchesTemplate(name, ns)) {
|
|
278934
|
-
return true;
|
|
278935
|
-
}
|
|
278936
|
-
}
|
|
278937
|
-
|
|
278938
|
-
return false;
|
|
278939
|
-
}
|
|
278940
|
-
|
|
278941
|
-
/**
|
|
278942
|
-
* Coerce `val`.
|
|
278943
|
-
*
|
|
278944
|
-
* @param {Mixed} val
|
|
278945
|
-
* @return {Mixed}
|
|
278946
|
-
* @api private
|
|
278947
|
-
*/
|
|
278948
|
-
function coerce(val) {
|
|
278949
|
-
if (val instanceof Error) {
|
|
278950
|
-
return val.stack || val.message;
|
|
278951
|
-
}
|
|
278952
|
-
return val;
|
|
278953
|
-
}
|
|
278954
|
-
|
|
278955
|
-
/**
|
|
278956
|
-
* XXX DO NOT USE. This is a temporary stub function.
|
|
278957
|
-
* XXX It WILL be removed in the next major release.
|
|
278958
|
-
*/
|
|
278959
|
-
function destroy() {
|
|
278960
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
278961
|
-
}
|
|
278962
|
-
|
|
278963
|
-
createDebug.enable(createDebug.load());
|
|
278964
|
-
|
|
278965
|
-
return createDebug;
|
|
278966
|
-
}
|
|
278967
|
-
|
|
278968
|
-
common = setup;
|
|
278969
|
-
return common;
|
|
278970
|
-
}
|
|
278971
|
-
|
|
278972
|
-
/* eslint-env browser */
|
|
278973
|
-
|
|
278974
|
-
var hasRequiredBrowser;
|
|
278975
|
-
|
|
278976
|
-
function requireBrowser () {
|
|
278977
|
-
if (hasRequiredBrowser) return browser.exports;
|
|
278978
|
-
hasRequiredBrowser = 1;
|
|
278979
|
-
(function (module, exports$1) {
|
|
278980
|
-
/**
|
|
278981
|
-
* This is the web browser implementation of `debug()`.
|
|
278982
|
-
*/
|
|
278983
|
-
|
|
278984
|
-
exports$1.formatArgs = formatArgs;
|
|
278985
|
-
exports$1.save = save;
|
|
278986
|
-
exports$1.load = load;
|
|
278987
|
-
exports$1.useColors = useColors;
|
|
278988
|
-
exports$1.storage = localstorage();
|
|
278989
|
-
exports$1.destroy = (() => {
|
|
278990
|
-
let warned = false;
|
|
278991
|
-
|
|
278992
|
-
return () => {
|
|
278993
|
-
if (!warned) {
|
|
278994
|
-
warned = true;
|
|
278995
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
278996
|
-
}
|
|
278997
|
-
};
|
|
278998
|
-
})();
|
|
278999
|
-
|
|
279000
|
-
/**
|
|
279001
|
-
* Colors.
|
|
279002
|
-
*/
|
|
279003
|
-
|
|
279004
|
-
exports$1.colors = [
|
|
279005
|
-
'#0000CC',
|
|
279006
|
-
'#0000FF',
|
|
279007
|
-
'#0033CC',
|
|
279008
|
-
'#0033FF',
|
|
279009
|
-
'#0066CC',
|
|
279010
|
-
'#0066FF',
|
|
279011
|
-
'#0099CC',
|
|
279012
|
-
'#0099FF',
|
|
279013
|
-
'#00CC00',
|
|
279014
|
-
'#00CC33',
|
|
279015
|
-
'#00CC66',
|
|
279016
|
-
'#00CC99',
|
|
279017
|
-
'#00CCCC',
|
|
279018
|
-
'#00CCFF',
|
|
279019
|
-
'#3300CC',
|
|
279020
|
-
'#3300FF',
|
|
279021
|
-
'#3333CC',
|
|
279022
|
-
'#3333FF',
|
|
279023
|
-
'#3366CC',
|
|
279024
|
-
'#3366FF',
|
|
279025
|
-
'#3399CC',
|
|
279026
|
-
'#3399FF',
|
|
279027
|
-
'#33CC00',
|
|
279028
|
-
'#33CC33',
|
|
279029
|
-
'#33CC66',
|
|
279030
|
-
'#33CC99',
|
|
279031
|
-
'#33CCCC',
|
|
279032
|
-
'#33CCFF',
|
|
279033
|
-
'#6600CC',
|
|
279034
|
-
'#6600FF',
|
|
279035
|
-
'#6633CC',
|
|
279036
|
-
'#6633FF',
|
|
279037
|
-
'#66CC00',
|
|
279038
|
-
'#66CC33',
|
|
279039
|
-
'#9900CC',
|
|
279040
|
-
'#9900FF',
|
|
279041
|
-
'#9933CC',
|
|
279042
|
-
'#9933FF',
|
|
279043
|
-
'#99CC00',
|
|
279044
|
-
'#99CC33',
|
|
279045
|
-
'#CC0000',
|
|
279046
|
-
'#CC0033',
|
|
279047
|
-
'#CC0066',
|
|
279048
|
-
'#CC0099',
|
|
279049
|
-
'#CC00CC',
|
|
279050
|
-
'#CC00FF',
|
|
279051
|
-
'#CC3300',
|
|
279052
|
-
'#CC3333',
|
|
279053
|
-
'#CC3366',
|
|
279054
|
-
'#CC3399',
|
|
279055
|
-
'#CC33CC',
|
|
279056
|
-
'#CC33FF',
|
|
279057
|
-
'#CC6600',
|
|
279058
|
-
'#CC6633',
|
|
279059
|
-
'#CC9900',
|
|
279060
|
-
'#CC9933',
|
|
279061
|
-
'#CCCC00',
|
|
279062
|
-
'#CCCC33',
|
|
279063
|
-
'#FF0000',
|
|
279064
|
-
'#FF0033',
|
|
279065
|
-
'#FF0066',
|
|
279066
|
-
'#FF0099',
|
|
279067
|
-
'#FF00CC',
|
|
279068
|
-
'#FF00FF',
|
|
279069
|
-
'#FF3300',
|
|
279070
|
-
'#FF3333',
|
|
279071
|
-
'#FF3366',
|
|
279072
|
-
'#FF3399',
|
|
279073
|
-
'#FF33CC',
|
|
279074
|
-
'#FF33FF',
|
|
279075
|
-
'#FF6600',
|
|
279076
|
-
'#FF6633',
|
|
279077
|
-
'#FF9900',
|
|
279078
|
-
'#FF9933',
|
|
279079
|
-
'#FFCC00',
|
|
279080
|
-
'#FFCC33'
|
|
279081
|
-
];
|
|
279082
|
-
|
|
279083
|
-
/**
|
|
279084
|
-
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
279085
|
-
* and the Firebug extension (any Firefox version) are known
|
|
279086
|
-
* to support "%c" CSS customizations.
|
|
279087
|
-
*
|
|
279088
|
-
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
|
279089
|
-
*/
|
|
279090
|
-
|
|
279091
|
-
// eslint-disable-next-line complexity
|
|
279092
|
-
function useColors() {
|
|
279093
|
-
// NB: In an Electron preload script, document will be defined but not fully
|
|
279094
|
-
// initialized. Since we know we're in Chrome, we'll just detect this case
|
|
279095
|
-
// explicitly
|
|
279096
|
-
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
|
279097
|
-
return true;
|
|
279098
|
-
}
|
|
279099
|
-
|
|
279100
|
-
// Internet Explorer and Edge do not support colors.
|
|
279101
|
-
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
279102
|
-
return false;
|
|
279103
|
-
}
|
|
279104
|
-
|
|
279105
|
-
let m;
|
|
279106
|
-
|
|
279107
|
-
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
279108
|
-
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
279109
|
-
// eslint-disable-next-line no-return-assign
|
|
279110
|
-
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
279111
|
-
// Is firebug? http://stackoverflow.com/a/398120/376773
|
|
279112
|
-
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
279113
|
-
// Is firefox >= v31?
|
|
279114
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
279115
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
|
|
279116
|
-
// Double check webkit in userAgent just in case we are in a worker
|
|
279117
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
|
279118
|
-
}
|
|
279119
|
-
|
|
279120
|
-
/**
|
|
279121
|
-
* Colorize log arguments if enabled.
|
|
279122
|
-
*
|
|
279123
|
-
* @api public
|
|
279124
|
-
*/
|
|
279125
|
-
|
|
279126
|
-
function formatArgs(args) {
|
|
279127
|
-
args[0] = (this.useColors ? '%c' : '') +
|
|
279128
|
-
this.namespace +
|
|
279129
|
-
(this.useColors ? ' %c' : ' ') +
|
|
279130
|
-
args[0] +
|
|
279131
|
-
(this.useColors ? '%c ' : ' ') +
|
|
279132
|
-
'+' + module.exports.humanize(this.diff);
|
|
279133
|
-
|
|
279134
|
-
if (!this.useColors) {
|
|
279135
|
-
return;
|
|
279136
|
-
}
|
|
279137
|
-
|
|
279138
|
-
const c = 'color: ' + this.color;
|
|
279139
|
-
args.splice(1, 0, c, 'color: inherit');
|
|
279140
|
-
|
|
279141
|
-
// The final "%c" is somewhat tricky, because there could be other
|
|
279142
|
-
// arguments passed either before or after the %c, so we need to
|
|
279143
|
-
// figure out the correct index to insert the CSS into
|
|
279144
|
-
let index = 0;
|
|
279145
|
-
let lastC = 0;
|
|
279146
|
-
args[0].replace(/%[a-zA-Z%]/g, match => {
|
|
279147
|
-
if (match === '%%') {
|
|
279148
|
-
return;
|
|
279149
|
-
}
|
|
279150
|
-
index++;
|
|
279151
|
-
if (match === '%c') {
|
|
279152
|
-
// We only are interested in the *last* %c
|
|
279153
|
-
// (the user may have provided their own)
|
|
279154
|
-
lastC = index;
|
|
279155
|
-
}
|
|
279156
|
-
});
|
|
279157
|
-
|
|
279158
|
-
args.splice(lastC, 0, c);
|
|
279159
|
-
}
|
|
279160
|
-
|
|
279161
|
-
/**
|
|
279162
|
-
* Invokes `console.debug()` when available.
|
|
279163
|
-
* No-op when `console.debug` is not a "function".
|
|
279164
|
-
* If `console.debug` is not available, falls back
|
|
279165
|
-
* to `console.log`.
|
|
279166
|
-
*
|
|
279167
|
-
* @api public
|
|
279168
|
-
*/
|
|
279169
|
-
exports$1.log = console.debug || console.log || (() => {});
|
|
279170
|
-
|
|
279171
|
-
/**
|
|
279172
|
-
* Save `namespaces`.
|
|
279173
|
-
*
|
|
279174
|
-
* @param {String} namespaces
|
|
279175
|
-
* @api private
|
|
279176
|
-
*/
|
|
279177
|
-
function save(namespaces) {
|
|
279178
|
-
try {
|
|
279179
|
-
if (namespaces) {
|
|
279180
|
-
exports$1.storage.setItem('debug', namespaces);
|
|
279181
|
-
} else {
|
|
279182
|
-
exports$1.storage.removeItem('debug');
|
|
279183
|
-
}
|
|
279184
|
-
} catch (error) {
|
|
279185
|
-
// Swallow
|
|
279186
|
-
// XXX (@Qix-) should we be logging these?
|
|
279187
|
-
}
|
|
279188
|
-
}
|
|
279189
|
-
|
|
279190
|
-
/**
|
|
279191
|
-
* Load `namespaces`.
|
|
279192
|
-
*
|
|
279193
|
-
* @return {String} returns the previously persisted debug modes
|
|
279194
|
-
* @api private
|
|
279195
|
-
*/
|
|
279196
|
-
function load() {
|
|
279197
|
-
let r;
|
|
279198
|
-
try {
|
|
279199
|
-
r = exports$1.storage.getItem('debug') || exports$1.storage.getItem('DEBUG') ;
|
|
279200
|
-
} catch (error) {
|
|
279201
|
-
// Swallow
|
|
279202
|
-
// XXX (@Qix-) should we be logging these?
|
|
279203
|
-
}
|
|
279204
|
-
|
|
279205
|
-
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
279206
|
-
if (!r && typeof process !== 'undefined' && 'env' in process) {
|
|
279207
|
-
r = process.env.DEBUG;
|
|
279208
|
-
}
|
|
279209
|
-
|
|
279210
|
-
return r;
|
|
279211
|
-
}
|
|
279212
|
-
|
|
279213
|
-
/**
|
|
279214
|
-
* Localstorage attempts to return the localstorage.
|
|
279215
|
-
*
|
|
279216
|
-
* This is necessary because safari throws
|
|
279217
|
-
* when a user disables cookies/localstorage
|
|
279218
|
-
* and you attempt to access it.
|
|
279219
|
-
*
|
|
279220
|
-
* @return {LocalStorage}
|
|
279221
|
-
* @api private
|
|
279222
|
-
*/
|
|
279223
|
-
|
|
279224
|
-
function localstorage() {
|
|
279225
|
-
try {
|
|
279226
|
-
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
|
279227
|
-
// The Browser also has localStorage in the global context.
|
|
279228
|
-
return localStorage;
|
|
279229
|
-
} catch (error) {
|
|
279230
|
-
// Swallow
|
|
279231
|
-
// XXX (@Qix-) should we be logging these?
|
|
279232
|
-
}
|
|
279233
|
-
}
|
|
279234
|
-
|
|
279235
|
-
module.exports = requireCommon()(exports$1);
|
|
279236
|
-
|
|
279237
|
-
const {formatters} = module.exports;
|
|
279238
|
-
|
|
279239
|
-
/**
|
|
279240
|
-
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
279241
|
-
*/
|
|
279242
|
-
|
|
279243
|
-
formatters.j = function (v) {
|
|
279244
|
-
try {
|
|
279245
|
-
return JSON.stringify(v);
|
|
279246
|
-
} catch (error) {
|
|
279247
|
-
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
279248
|
-
}
|
|
279249
|
-
};
|
|
279250
|
-
} (browser, browser.exports));
|
|
279251
|
-
return browser.exports;
|
|
279252
|
-
}
|
|
279253
|
-
|
|
279254
|
-
var node = {exports: {}};
|
|
279255
|
-
|
|
279256
|
-
/**
|
|
279257
|
-
* Module dependencies.
|
|
279258
|
-
*/
|
|
279259
|
-
|
|
279260
|
-
var hasRequiredNode;
|
|
279261
|
-
|
|
279262
|
-
function requireNode () {
|
|
279263
|
-
if (hasRequiredNode) return node.exports;
|
|
279264
|
-
hasRequiredNode = 1;
|
|
279265
|
-
(function (module, exports$1) {
|
|
279266
|
-
const tty = require$$0$b;
|
|
279267
|
-
const util = require$$0$6;
|
|
279268
|
-
|
|
279269
|
-
/**
|
|
279270
|
-
* This is the Node.js implementation of `debug()`.
|
|
279271
|
-
*/
|
|
279272
|
-
|
|
279273
|
-
exports$1.init = init;
|
|
279274
|
-
exports$1.log = log;
|
|
279275
|
-
exports$1.formatArgs = formatArgs;
|
|
279276
|
-
exports$1.save = save;
|
|
279277
|
-
exports$1.load = load;
|
|
279278
|
-
exports$1.useColors = useColors;
|
|
279279
|
-
exports$1.destroy = util.deprecate(
|
|
279280
|
-
() => {},
|
|
279281
|
-
'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
|
|
279282
|
-
);
|
|
279283
|
-
|
|
279284
|
-
/**
|
|
279285
|
-
* Colors.
|
|
279286
|
-
*/
|
|
279287
|
-
|
|
279288
|
-
exports$1.colors = [6, 2, 3, 4, 5, 1];
|
|
279289
|
-
|
|
279290
|
-
try {
|
|
279291
|
-
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
279292
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
279293
|
-
const supportsColor = requireSupportsColor();
|
|
279294
|
-
|
|
279295
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
279296
|
-
exports$1.colors = [
|
|
279297
|
-
20,
|
|
279298
|
-
21,
|
|
279299
|
-
26,
|
|
279300
|
-
27,
|
|
279301
|
-
32,
|
|
279302
|
-
33,
|
|
279303
|
-
38,
|
|
279304
|
-
39,
|
|
279305
|
-
40,
|
|
279306
|
-
41,
|
|
279307
|
-
42,
|
|
279308
|
-
43,
|
|
279309
|
-
44,
|
|
279310
|
-
45,
|
|
279311
|
-
56,
|
|
279312
|
-
57,
|
|
279313
|
-
62,
|
|
279314
|
-
63,
|
|
279315
|
-
68,
|
|
279316
|
-
69,
|
|
279317
|
-
74,
|
|
279318
|
-
75,
|
|
279319
|
-
76,
|
|
279320
|
-
77,
|
|
279321
|
-
78,
|
|
279322
|
-
79,
|
|
279323
|
-
80,
|
|
279324
|
-
81,
|
|
279325
|
-
92,
|
|
279326
|
-
93,
|
|
279327
|
-
98,
|
|
279328
|
-
99,
|
|
279329
|
-
112,
|
|
279330
|
-
113,
|
|
279331
|
-
128,
|
|
279332
|
-
129,
|
|
279333
|
-
134,
|
|
279334
|
-
135,
|
|
279335
|
-
148,
|
|
279336
|
-
149,
|
|
279337
|
-
160,
|
|
279338
|
-
161,
|
|
279339
|
-
162,
|
|
279340
|
-
163,
|
|
279341
|
-
164,
|
|
279342
|
-
165,
|
|
279343
|
-
166,
|
|
279344
|
-
167,
|
|
279345
|
-
168,
|
|
279346
|
-
169,
|
|
279347
|
-
170,
|
|
279348
|
-
171,
|
|
279349
|
-
172,
|
|
279350
|
-
173,
|
|
279351
|
-
178,
|
|
279352
|
-
179,
|
|
279353
|
-
184,
|
|
279354
|
-
185,
|
|
279355
|
-
196,
|
|
279356
|
-
197,
|
|
279357
|
-
198,
|
|
279358
|
-
199,
|
|
279359
|
-
200,
|
|
279360
|
-
201,
|
|
279361
|
-
202,
|
|
279362
|
-
203,
|
|
279363
|
-
204,
|
|
279364
|
-
205,
|
|
279365
|
-
206,
|
|
279366
|
-
207,
|
|
279367
|
-
208,
|
|
279368
|
-
209,
|
|
279369
|
-
214,
|
|
279370
|
-
215,
|
|
279371
|
-
220,
|
|
279372
|
-
221
|
|
279373
|
-
];
|
|
279374
|
-
}
|
|
279375
|
-
} catch (error) {
|
|
279376
|
-
// Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
|
279377
|
-
}
|
|
279378
|
-
|
|
279379
|
-
/**
|
|
279380
|
-
* Build up the default `inspectOpts` object from the environment variables.
|
|
279381
|
-
*
|
|
279382
|
-
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
279383
|
-
*/
|
|
279384
|
-
|
|
279385
|
-
exports$1.inspectOpts = Object.keys(process.env).filter(key => {
|
|
279386
|
-
return /^debug_/i.test(key);
|
|
279387
|
-
}).reduce((obj, key) => {
|
|
279388
|
-
// Camel-case
|
|
279389
|
-
const prop = key
|
|
279390
|
-
.substring(6)
|
|
279391
|
-
.toLowerCase()
|
|
279392
|
-
.replace(/_([a-z])/g, (_, k) => {
|
|
279393
|
-
return k.toUpperCase();
|
|
279394
|
-
});
|
|
279395
|
-
|
|
279396
|
-
// Coerce string value into JS value
|
|
279397
|
-
let val = process.env[key];
|
|
279398
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
279399
|
-
val = true;
|
|
279400
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
279401
|
-
val = false;
|
|
279402
|
-
} else if (val === 'null') {
|
|
279403
|
-
val = null;
|
|
279404
|
-
} else {
|
|
279405
|
-
val = Number(val);
|
|
279406
|
-
}
|
|
279407
|
-
|
|
279408
|
-
obj[prop] = val;
|
|
279409
|
-
return obj;
|
|
279410
|
-
}, {});
|
|
279411
|
-
|
|
279412
|
-
/**
|
|
279413
|
-
* Is stdout a TTY? Colored output is enabled when `true`.
|
|
279414
|
-
*/
|
|
279415
|
-
|
|
279416
|
-
function useColors() {
|
|
279417
|
-
return 'colors' in exports$1.inspectOpts ?
|
|
279418
|
-
Boolean(exports$1.inspectOpts.colors) :
|
|
279419
|
-
tty.isatty(process.stderr.fd);
|
|
279420
|
-
}
|
|
279421
|
-
|
|
279422
|
-
/**
|
|
279423
|
-
* Adds ANSI color escape codes if enabled.
|
|
279424
|
-
*
|
|
279425
|
-
* @api public
|
|
279426
|
-
*/
|
|
279427
|
-
|
|
279428
|
-
function formatArgs(args) {
|
|
279429
|
-
const {namespace: name, useColors} = this;
|
|
279430
|
-
|
|
279431
|
-
if (useColors) {
|
|
279432
|
-
const c = this.color;
|
|
279433
|
-
const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
|
|
279434
|
-
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
|
|
279435
|
-
|
|
279436
|
-
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
|
279437
|
-
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
|
|
279438
|
-
} else {
|
|
279439
|
-
args[0] = getDate() + name + ' ' + args[0];
|
|
279440
|
-
}
|
|
279441
|
-
}
|
|
279442
|
-
|
|
279443
|
-
function getDate() {
|
|
279444
|
-
if (exports$1.inspectOpts.hideDate) {
|
|
279445
|
-
return '';
|
|
279446
|
-
}
|
|
279447
|
-
return new Date().toISOString() + ' ';
|
|
279448
|
-
}
|
|
279449
|
-
|
|
279450
|
-
/**
|
|
279451
|
-
* Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
|
|
279452
|
-
*/
|
|
279453
|
-
|
|
279454
|
-
function log(...args) {
|
|
279455
|
-
return process.stderr.write(util.formatWithOptions(exports$1.inspectOpts, ...args) + '\n');
|
|
279456
|
-
}
|
|
279457
|
-
|
|
279458
|
-
/**
|
|
279459
|
-
* Save `namespaces`.
|
|
279460
|
-
*
|
|
279461
|
-
* @param {String} namespaces
|
|
279462
|
-
* @api private
|
|
279463
|
-
*/
|
|
279464
|
-
function save(namespaces) {
|
|
279465
|
-
if (namespaces) {
|
|
279466
|
-
process.env.DEBUG = namespaces;
|
|
279467
|
-
} else {
|
|
279468
|
-
// If you set a process.env field to null or undefined, it gets cast to the
|
|
279469
|
-
// string 'null' or 'undefined'. Just delete instead.
|
|
279470
|
-
delete process.env.DEBUG;
|
|
279471
|
-
}
|
|
279472
|
-
}
|
|
279473
|
-
|
|
279474
|
-
/**
|
|
279475
|
-
* Load `namespaces`.
|
|
279476
|
-
*
|
|
279477
|
-
* @return {String} returns the previously persisted debug modes
|
|
279478
|
-
* @api private
|
|
279479
|
-
*/
|
|
279480
|
-
|
|
279481
|
-
function load() {
|
|
279482
|
-
return process.env.DEBUG;
|
|
279483
|
-
}
|
|
279484
|
-
|
|
279485
|
-
/**
|
|
279486
|
-
* Init logic for `debug` instances.
|
|
279487
|
-
*
|
|
279488
|
-
* Create a new `inspectOpts` object in case `useColors` is set
|
|
279489
|
-
* differently for a particular `debug` instance.
|
|
279490
|
-
*/
|
|
279491
|
-
|
|
279492
|
-
function init(debug) {
|
|
279493
|
-
debug.inspectOpts = {};
|
|
279494
|
-
|
|
279495
|
-
const keys = Object.keys(exports$1.inspectOpts);
|
|
279496
|
-
for (let i = 0; i < keys.length; i++) {
|
|
279497
|
-
debug.inspectOpts[keys[i]] = exports$1.inspectOpts[keys[i]];
|
|
279498
|
-
}
|
|
279499
|
-
}
|
|
279500
|
-
|
|
279501
|
-
module.exports = requireCommon()(exports$1);
|
|
279502
|
-
|
|
279503
|
-
const {formatters} = module.exports;
|
|
279504
|
-
|
|
279505
|
-
/**
|
|
279506
|
-
* Map %o to `util.inspect()`, all on a single line.
|
|
279507
|
-
*/
|
|
279508
|
-
|
|
279509
|
-
formatters.o = function (v) {
|
|
279510
|
-
this.inspectOpts.colors = this.useColors;
|
|
279511
|
-
return util.inspect(v, this.inspectOpts)
|
|
279512
|
-
.split('\n')
|
|
279513
|
-
.map(str => str.trim())
|
|
279514
|
-
.join(' ');
|
|
279515
|
-
};
|
|
279516
|
-
|
|
279517
|
-
/**
|
|
279518
|
-
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
|
279519
|
-
*/
|
|
279520
|
-
|
|
279521
|
-
formatters.O = function (v) {
|
|
279522
|
-
this.inspectOpts.colors = this.useColors;
|
|
279523
|
-
return util.inspect(v, this.inspectOpts);
|
|
279524
|
-
};
|
|
279525
|
-
} (node, node.exports));
|
|
279526
|
-
return node.exports;
|
|
279527
|
-
}
|
|
279528
|
-
|
|
279529
|
-
/**
|
|
279530
|
-
* Detect Electron renderer / nwjs process, which is node, but we should
|
|
279531
|
-
* treat as a browser.
|
|
279532
|
-
*/
|
|
279533
|
-
|
|
279534
|
-
var hasRequiredSrc;
|
|
279535
|
-
|
|
279536
|
-
function requireSrc () {
|
|
279537
|
-
if (hasRequiredSrc) return src.exports;
|
|
279538
|
-
hasRequiredSrc = 1;
|
|
279539
|
-
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
279540
|
-
src.exports = requireBrowser();
|
|
279541
|
-
} else {
|
|
279542
|
-
src.exports = requireNode();
|
|
279543
|
-
}
|
|
279544
|
-
return src.exports;
|
|
279545
|
-
}
|
|
279546
|
-
|
|
279547
278768
|
var MetadataCollector = {};
|
|
279548
278769
|
|
|
279549
278770
|
var type = {};
|
|
@@ -280990,7 +280211,7 @@ function requireMetadataCollector () {
|
|
|
280990
280211
|
Object.defineProperty(MetadataCollector, "__esModule", { value: true });
|
|
280991
280212
|
MetadataCollector.joinArtists = MetadataCollector.MetadataCollector = void 0;
|
|
280992
280213
|
const type_1 = requireType();
|
|
280993
|
-
const debug_1 = requireSrc();
|
|
280214
|
+
const debug_1 = requireSrc$1();
|
|
280994
280215
|
const GenericTagTypes_1 = requireGenericTagTypes();
|
|
280995
280216
|
const CombinedTagMapper_1 = requireCombinedTagMapper();
|
|
280996
280217
|
const GenericTagMapper_1 = requireGenericTagMapper();
|
|
@@ -281594,7 +280815,7 @@ function requireAPEv2Parser () {
|
|
|
281594
280815
|
hasRequiredAPEv2Parser = 1;
|
|
281595
280816
|
Object.defineProperty(APEv2Parser, "__esModule", { value: true });
|
|
281596
280817
|
APEv2Parser.APEv2Parser = void 0;
|
|
281597
|
-
const debug_1 = requireSrc();
|
|
280818
|
+
const debug_1 = requireSrc$1();
|
|
281598
280819
|
const strtok3 = requireCore$1();
|
|
281599
280820
|
const token_types_1 = lib$7;
|
|
281600
280821
|
const util = requireUtil();
|
|
@@ -281766,7 +280987,7 @@ function requireID3v1Parser () {
|
|
|
281766
280987
|
(function (exports$1) {
|
|
281767
280988
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
281768
280989
|
exports$1.hasID3v1Header = exports$1.ID3v1Parser = exports$1.Genres = void 0;
|
|
281769
|
-
const debug_1 = requireSrc();
|
|
280990
|
+
const debug_1 = requireSrc$1();
|
|
281770
280991
|
const token_types_1 = lib$7;
|
|
281771
280992
|
const util = requireUtil();
|
|
281772
280993
|
const BasicParser_1 = requireBasicParser();
|
|
@@ -281908,7 +281129,7 @@ function requireFrameParser () {
|
|
|
281908
281129
|
hasRequiredFrameParser = 1;
|
|
281909
281130
|
Object.defineProperty(FrameParser, "__esModule", { value: true });
|
|
281910
281131
|
FrameParser.FrameParser = FrameParser.parseGenre = void 0;
|
|
281911
|
-
const debug_1 = requireSrc();
|
|
281132
|
+
const debug_1 = requireSrc$1();
|
|
281912
281133
|
const Token = lib$7;
|
|
281913
281134
|
const util = requireUtil();
|
|
281914
281135
|
const ID3v2Token_1 = requireID3v2Token();
|
|
@@ -282519,7 +281740,7 @@ function requireAiffParser () {
|
|
|
282519
281740
|
Object.defineProperty(AiffParser, "__esModule", { value: true });
|
|
282520
281741
|
AiffParser.AIFFParser = void 0;
|
|
282521
281742
|
const Token = lib$7;
|
|
282522
|
-
const debug_1 = requireSrc();
|
|
281743
|
+
const debug_1 = requireSrc$1();
|
|
282523
281744
|
const strtok3 = requireCore$1();
|
|
282524
281745
|
const ID3v2Parser_1 = requireID3v2Parser();
|
|
282525
281746
|
const FourCC_1 = requireFourCC();
|
|
@@ -283200,7 +282421,7 @@ function requireAsfParser () {
|
|
|
283200
282421
|
hasRequiredAsfParser = 1;
|
|
283201
282422
|
Object.defineProperty(AsfParser, "__esModule", { value: true });
|
|
283202
282423
|
AsfParser.AsfParser = void 0;
|
|
283203
|
-
const debug_1 = requireSrc();
|
|
282424
|
+
const debug_1 = requireSrc$1();
|
|
283204
282425
|
const type_1 = requireType();
|
|
283205
282426
|
const GUID_1 = requireGUID();
|
|
283206
282427
|
const AsfObject = requireAsfObject();
|
|
@@ -283434,7 +282655,7 @@ function requireAbstractID3Parser () {
|
|
|
283434
282655
|
Object.defineProperty(AbstractID3Parser, "__esModule", { value: true });
|
|
283435
282656
|
AbstractID3Parser.AbstractID3Parser = void 0;
|
|
283436
282657
|
const core_1 = requireCore$1();
|
|
283437
|
-
const debug_1 = requireSrc();
|
|
282658
|
+
const debug_1 = requireSrc$1();
|
|
283438
282659
|
const ID3v2Token_1 = requireID3v2Token();
|
|
283439
282660
|
const ID3v2Parser_1 = requireID3v2Parser();
|
|
283440
282661
|
const ID3v1Parser_1 = requireID3v1Parser();
|
|
@@ -283544,7 +282765,7 @@ function requireVorbisParser () {
|
|
|
283544
282765
|
Object.defineProperty(VorbisParser, "__esModule", { value: true });
|
|
283545
282766
|
VorbisParser.VorbisParser = void 0;
|
|
283546
282767
|
const Token = lib$7;
|
|
283547
|
-
const debug_1 = requireSrc();
|
|
282768
|
+
const debug_1 = requireSrc$1();
|
|
283548
282769
|
const VorbisDecoder_1 = requireVorbisDecoder();
|
|
283549
282770
|
const Vorbis_1 = requireVorbis();
|
|
283550
282771
|
const debug = (0, debug_1.default)('music-metadata:parser:ogg:vorbis1');
|
|
@@ -283676,7 +282897,7 @@ function requireFlacParser () {
|
|
|
283676
282897
|
Object.defineProperty(FlacParser, "__esModule", { value: true });
|
|
283677
282898
|
FlacParser.FlacParser = void 0;
|
|
283678
282899
|
const token_types_1 = lib$7;
|
|
283679
|
-
const debug_1 = requireSrc();
|
|
282900
|
+
const debug_1 = requireSrc$1();
|
|
283680
282901
|
const util = requireUtil();
|
|
283681
282902
|
const Vorbis_1 = requireVorbis();
|
|
283682
282903
|
const AbstractID3Parser_1 = requireAbstractID3Parser();
|
|
@@ -283865,7 +283086,7 @@ function requireAtomToken () {
|
|
|
283865
283086
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
283866
283087
|
exports$1.ChapterText = exports$1.StcoAtom = exports$1.StszAtom = exports$1.StscAtom = exports$1.SampleToChunkToken = exports$1.SttsAtom = exports$1.TimeToSampleToken = exports$1.SoundSampleDescriptionV0 = exports$1.SoundSampleDescriptionVersion = exports$1.StsdAtom = exports$1.TrackHeaderAtom = exports$1.NameAtom = exports$1.DataAtom = exports$1.MvhdAtom = exports$1.MdhdAtom = exports$1.FixedLengthAtom = exports$1.mhdr = exports$1.tkhd = exports$1.ftyp = exports$1.ExtendedSize = exports$1.Header = void 0;
|
|
283867
283088
|
const Token = lib$7;
|
|
283868
|
-
const debug_1 = requireSrc();
|
|
283089
|
+
const debug_1 = requireSrc$1();
|
|
283869
283090
|
const FourCC_1 = requireFourCC();
|
|
283870
283091
|
const debug = (0, debug_1.default)('music-metadata:parser:MP4:atom');
|
|
283871
283092
|
exports$1.Header = {
|
|
@@ -284278,7 +283499,7 @@ function requireAtom () {
|
|
|
284278
283499
|
hasRequiredAtom = 1;
|
|
284279
283500
|
Object.defineProperty(Atom, "__esModule", { value: true });
|
|
284280
283501
|
Atom.Atom = void 0;
|
|
284281
|
-
const debug_1 = requireSrc();
|
|
283502
|
+
const debug_1 = requireSrc$1();
|
|
284282
283503
|
const AtomToken = requireAtomToken();
|
|
284283
283504
|
const debug = (0, debug_1.default)('music-metadata:parser:MP4:Atom');
|
|
284284
283505
|
let Atom$1 = class Atom {
|
|
@@ -284357,7 +283578,7 @@ function requireMP4Parser () {
|
|
|
284357
283578
|
hasRequiredMP4Parser = 1;
|
|
284358
283579
|
Object.defineProperty(MP4Parser, "__esModule", { value: true });
|
|
284359
283580
|
MP4Parser.MP4Parser = void 0;
|
|
284360
|
-
const debug_1 = requireSrc();
|
|
283581
|
+
const debug_1 = requireSrc$1();
|
|
284361
283582
|
const Token = lib$7;
|
|
284362
283583
|
const BasicParser_1 = requireBasicParser();
|
|
284363
283584
|
const ID3v1Parser_1 = requireID3v1Parser();
|
|
@@ -285086,7 +284307,7 @@ function requireMpegParser () {
|
|
|
285086
284307
|
MpegParser.MpegParser = void 0;
|
|
285087
284308
|
const Token = lib$7;
|
|
285088
284309
|
const core_1 = requireCore$1();
|
|
285089
|
-
const debug_1 = requireSrc();
|
|
284310
|
+
const debug_1 = requireSrc$1();
|
|
285090
284311
|
const common = requireUtil();
|
|
285091
284312
|
const AbstractID3Parser_1 = requireAbstractID3Parser();
|
|
285092
284313
|
const XingTag_1 = requireXingTag();
|
|
@@ -285622,7 +284843,7 @@ function requireStreamVersion8 () {
|
|
|
285622
284843
|
Object.defineProperty(StreamVersion8, "__esModule", { value: true });
|
|
285623
284844
|
StreamVersion8.StreamReader = void 0;
|
|
285624
284845
|
const Token = lib$7;
|
|
285625
|
-
const debug_1 = requireSrc();
|
|
284846
|
+
const debug_1 = requireSrc$1();
|
|
285626
284847
|
const util = requireUtil();
|
|
285627
284848
|
const debug = (0, debug_1.default)('music-metadata:parser:musepack:sv8');
|
|
285628
284849
|
const PacketKey = new Token.StringType(2, 'binary');
|
|
@@ -285708,7 +284929,7 @@ function requireMpcSv8Parser () {
|
|
|
285708
284929
|
hasRequiredMpcSv8Parser = 1;
|
|
285709
284930
|
Object.defineProperty(MpcSv8Parser, "__esModule", { value: true });
|
|
285710
284931
|
MpcSv8Parser.MpcSv8Parser = void 0;
|
|
285711
|
-
const debug_1 = requireSrc();
|
|
284932
|
+
const debug_1 = requireSrc$1();
|
|
285712
284933
|
const BasicParser_1 = requireBasicParser();
|
|
285713
284934
|
const APEv2Parser_1 = requireAPEv2Parser();
|
|
285714
284935
|
const FourCC_1 = requireFourCC();
|
|
@@ -285885,7 +285106,7 @@ function requireMpcSv7Parser () {
|
|
|
285885
285106
|
hasRequiredMpcSv7Parser = 1;
|
|
285886
285107
|
Object.defineProperty(MpcSv7Parser, "__esModule", { value: true });
|
|
285887
285108
|
MpcSv7Parser.MpcSv7Parser = void 0;
|
|
285888
|
-
const debug_1 = requireSrc();
|
|
285109
|
+
const debug_1 = requireSrc$1();
|
|
285889
285110
|
const BasicParser_1 = requireBasicParser();
|
|
285890
285111
|
const APEv2Parser_1 = requireAPEv2Parser();
|
|
285891
285112
|
const BitReader_1 = requireBitReader();
|
|
@@ -285937,7 +285158,7 @@ function requireMusepack () {
|
|
|
285937
285158
|
if (hasRequiredMusepack) return musepack;
|
|
285938
285159
|
hasRequiredMusepack = 1;
|
|
285939
285160
|
Object.defineProperty(musepack, "__esModule", { value: true });
|
|
285940
|
-
const debug_1 = requireSrc();
|
|
285161
|
+
const debug_1 = requireSrc$1();
|
|
285941
285162
|
const Token = lib$7;
|
|
285942
285163
|
const AbstractID3Parser_1 = requireAbstractID3Parser();
|
|
285943
285164
|
const MpcSv8Parser_1 = requireMpcSv8Parser();
|
|
@@ -286121,7 +285342,7 @@ function requireSpeexParser () {
|
|
|
286121
285342
|
hasRequiredSpeexParser = 1;
|
|
286122
285343
|
Object.defineProperty(SpeexParser, "__esModule", { value: true });
|
|
286123
285344
|
SpeexParser.SpeexParser = void 0;
|
|
286124
|
-
const debug_1 = requireSrc();
|
|
285345
|
+
const debug_1 = requireSrc$1();
|
|
286125
285346
|
const VorbisParser_1 = requireVorbisParser();
|
|
286126
285347
|
const Speex = requireSpeex();
|
|
286127
285348
|
const debug = (0, debug_1.default)('music-metadata:parser:ogg:speex');
|
|
@@ -286197,7 +285418,7 @@ function requireTheoraParser () {
|
|
|
286197
285418
|
hasRequiredTheoraParser = 1;
|
|
286198
285419
|
Object.defineProperty(TheoraParser, "__esModule", { value: true });
|
|
286199
285420
|
TheoraParser.TheoraParser = void 0;
|
|
286200
|
-
const debug_1 = requireSrc();
|
|
285421
|
+
const debug_1 = requireSrc$1();
|
|
286201
285422
|
const Theora_1 = requireTheora();
|
|
286202
285423
|
const debug = (0, debug_1.default)('music-metadata:parser:ogg:theora');
|
|
286203
285424
|
/**
|
|
@@ -286250,7 +285471,7 @@ function requireOggParser () {
|
|
|
286250
285471
|
OggParser.OggParser = OggParser.SegmentTable = void 0;
|
|
286251
285472
|
const Token = lib$7;
|
|
286252
285473
|
const core_1 = requireCore$1();
|
|
286253
|
-
const debug_1 = requireSrc();
|
|
285474
|
+
const debug_1 = requireSrc$1();
|
|
286254
285475
|
const util = requireUtil();
|
|
286255
285476
|
const FourCC_1 = requireFourCC();
|
|
286256
285477
|
const BasicParser_1 = requireBasicParser();
|
|
@@ -286536,7 +285757,7 @@ function requireWaveParser () {
|
|
|
286536
285757
|
WaveParser.WaveParser = void 0;
|
|
286537
285758
|
const strtok3 = requireCore$1();
|
|
286538
285759
|
const Token = lib$7;
|
|
286539
|
-
const debug_1 = requireSrc();
|
|
285760
|
+
const debug_1 = requireSrc$1();
|
|
286540
285761
|
const riff = requireRiffChunk();
|
|
286541
285762
|
const WaveChunk = requireWaveChunk();
|
|
286542
285763
|
const ID3v2Parser_1 = requireID3v2Parser();
|
|
@@ -286796,7 +286017,7 @@ function requireWavPackParser () {
|
|
|
286796
286017
|
const FourCC_1 = requireFourCC();
|
|
286797
286018
|
const BasicParser_1 = requireBasicParser();
|
|
286798
286019
|
const WavPackToken_1 = requireWavPackToken();
|
|
286799
|
-
const debug_1 = requireSrc();
|
|
286020
|
+
const debug_1 = requireSrc$1();
|
|
286800
286021
|
const debug = (0, debug_1.default)('music-metadata:parser:WavPack');
|
|
286801
286022
|
/**
|
|
286802
286023
|
* WavPack Parser
|
|
@@ -286963,7 +286184,7 @@ function requireDsfParser () {
|
|
|
286963
286184
|
hasRequiredDsfParser = 1;
|
|
286964
286185
|
Object.defineProperty(DsfParser, "__esModule", { value: true });
|
|
286965
286186
|
DsfParser.DsfParser = void 0;
|
|
286966
|
-
const debug_1 = requireSrc();
|
|
286187
|
+
const debug_1 = requireSrc$1();
|
|
286967
286188
|
const AbstractID3Parser_1 = requireAbstractID3Parser();
|
|
286968
286189
|
const DsfChunk_1 = requireDsfChunk();
|
|
286969
286190
|
const ID3v2Parser_1 = requireID3v2Parser();
|
|
@@ -287059,7 +286280,7 @@ function requireDsdiffParser () {
|
|
|
287059
286280
|
Object.defineProperty(DsdiffParser, "__esModule", { value: true });
|
|
287060
286281
|
DsdiffParser.DsdiffParser = void 0;
|
|
287061
286282
|
const Token = lib$7;
|
|
287062
|
-
const debug_1 = requireSrc();
|
|
286283
|
+
const debug_1 = requireSrc$1();
|
|
287063
286284
|
const strtok3 = requireCore$1();
|
|
287064
286285
|
const FourCC_1 = requireFourCC();
|
|
287065
286286
|
const BasicParser_1 = requireBasicParser();
|
|
@@ -287499,7 +286720,7 @@ function requireMatroskaParser () {
|
|
|
287499
286720
|
Object.defineProperty(MatroskaParser, "__esModule", { value: true });
|
|
287500
286721
|
MatroskaParser.MatroskaParser = void 0;
|
|
287501
286722
|
const token_types_1 = lib$7;
|
|
287502
|
-
const debug_1 = requireSrc();
|
|
286723
|
+
const debug_1 = requireSrc$1();
|
|
287503
286724
|
const BasicParser_1 = requireBasicParser();
|
|
287504
286725
|
const types_1 = requireTypes();
|
|
287505
286726
|
const matroskaDtd = requireMatroskaDtd();
|
|
@@ -287745,7 +286966,7 @@ function requireParserFactory () {
|
|
|
287745
286966
|
const FileType = core$2;
|
|
287746
286967
|
const ContentType = requireContentType();
|
|
287747
286968
|
const MimeType = requireMediaTyper();
|
|
287748
|
-
const debug_1 = requireSrc();
|
|
286969
|
+
const debug_1 = requireSrc$1();
|
|
287749
286970
|
const MetadataCollector_1 = requireMetadataCollector();
|
|
287750
286971
|
const AiffParser_1 = requireAiffParser();
|
|
287751
286972
|
const APEv2Parser_1 = requireAPEv2Parser();
|
|
@@ -288207,7 +287428,7 @@ function requireLib () {
|
|
|
288207
287428
|
const strtok3 = lib$9;
|
|
288208
287429
|
const Core = requireCore();
|
|
288209
287430
|
const ParserFactory_1 = requireParserFactory();
|
|
288210
|
-
const debug_1 = requireSrc();
|
|
287431
|
+
const debug_1 = requireSrc$1();
|
|
288211
287432
|
const RandomFileReader_1 = requireRandomFileReader();
|
|
288212
287433
|
const debug = (0, debug_1.default)("music-metadata:parser");
|
|
288213
287434
|
var core_1 = requireCore();
|
|
@@ -288311,8 +287532,8 @@ function requireMessagesMedia () {
|
|
|
288311
287532
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
288312
287533
|
exports$1.getStatusCodeForMediaRetry = exports$1.decryptMediaRetryData = exports$1.decodeMediaRetryNode = exports$1.encryptMediaRetryRequest = exports$1.getWAUploadToServer = exports$1.extensionForMediaMessage = exports$1.downloadEncryptedContent = exports$1.downloadContentFromMessage = exports$1.getUrlFromDirectPath = exports$1.encryptedStream = exports$1.getHttpStream = exports$1.generateThumbnail = exports$1.getStream = exports$1.toBuffer = exports$1.toReadable = exports$1.getAudioDuration = exports$1.mediaMessageSHA256B64 = exports$1.generateProfilePicture = exports$1.encodeBase64EncodedStringForUpload = exports$1.extractImageThumb = exports$1.getMediaKeys = exports$1.hkdfInfoKey = void 0;
|
|
288313
287534
|
const boom_1 = lib$5;
|
|
288314
|
-
const child_process_1 = require$$1$
|
|
288315
|
-
const Crypto = __importStar(require$$1$
|
|
287535
|
+
const child_process_1 = require$$1$5;
|
|
287536
|
+
const Crypto = __importStar(require$$1$3);
|
|
288316
287537
|
const events_1 = require$$0$8;
|
|
288317
287538
|
const fs_1 = require$$0$5;
|
|
288318
287539
|
const os_1 = require$$2;
|
|
@@ -288331,7 +287552,7 @@ function requireMessagesMedia () {
|
|
|
288331
287552
|
return jimp;
|
|
288332
287553
|
})(),
|
|
288333
287554
|
(async () => {
|
|
288334
|
-
const sharp = await Promise.resolve().then(() => __importStar(require$$0$
|
|
287555
|
+
const sharp = await Promise.resolve().then(() => __importStar(require$$0$c)).catch(() => { });
|
|
288335
287556
|
return sharp;
|
|
288336
287557
|
})()
|
|
288337
287558
|
]);
|
|
@@ -289643,7 +288864,7 @@ function requireValidateConnection () {
|
|
|
289643
288864
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
289644
288865
|
exports$1.encodeSignedDeviceIdentity = exports$1.configureSuccessfulPairing = exports$1.generateRegistrationNode = exports$1.generateLoginNode = void 0;
|
|
289645
288866
|
const boom_1 = lib$5;
|
|
289646
|
-
const crypto_1 = require$$1$
|
|
288867
|
+
const crypto_1 = require$$1$3;
|
|
289647
288868
|
const WAProto_1 = WAProto;
|
|
289648
288869
|
const Defaults_1 = requireDefaults();
|
|
289649
288870
|
const WABinary_1 = WABinary;
|
|
@@ -290846,7 +290067,7 @@ function requireAuthUtils () {
|
|
|
290846
290067
|
};
|
|
290847
290068
|
Object.defineProperty(authUtils, "__esModule", { value: true });
|
|
290848
290069
|
authUtils.initAuthCreds = authUtils.addTransactionCapability = authUtils.makeCacheableSignalKeyStore = void 0;
|
|
290849
|
-
const crypto_1 = require$$1$
|
|
290070
|
+
const crypto_1 = require$$1$3;
|
|
290850
290071
|
const node_cache_1 = __importDefault(nodeCacheExports);
|
|
290851
290072
|
const crypto_2 = requireCrypto();
|
|
290852
290073
|
const generics_1 = generics;
|
|
@@ -292351,7 +291572,7 @@ var business = {};
|
|
|
292351
291572
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
292352
291573
|
exports$1.uploadingNecessaryImages = exports$1.uploadingNecessaryImagesOfProduct = exports$1.parseProductNode = exports$1.toProductNode = exports$1.parseOrderDetailsNode = exports$1.parseCollectionsNode = exports$1.parseCatalogNode = void 0;
|
|
292353
291574
|
const boom_1 = lib$5;
|
|
292354
|
-
const crypto_1 = require$$1$
|
|
291575
|
+
const crypto_1 = require$$1$3;
|
|
292355
291576
|
const os_1 = require$$2;
|
|
292356
291577
|
const path_1 = require$$1;
|
|
292357
291578
|
const fs_1 = require$$0$5;
|
|
@@ -294573,7 +293794,7 @@ var receiver = Receiver$1;
|
|
|
294573
293794
|
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^Duplex" }] */
|
|
294574
293795
|
|
|
294575
293796
|
const { Duplex: Duplex$3 } = require$$0$4;
|
|
294576
|
-
const { randomFillSync } = require$$1$
|
|
293797
|
+
const { randomFillSync } = require$$1$3;
|
|
294577
293798
|
|
|
294578
293799
|
const PerMessageDeflate$2 = permessageDeflate;
|
|
294579
293800
|
const { EMPTY_BUFFER: EMPTY_BUFFER$1, kWebSocket: kWebSocket$2, NOOP: NOOP$1 } = constants;
|
|
@@ -295666,7 +294887,7 @@ const https = require$$5$1;
|
|
|
295666
294887
|
const http$1 = require$$4$1;
|
|
295667
294888
|
const net = require$$3$2;
|
|
295668
294889
|
const tls = require$$4$3;
|
|
295669
|
-
const { randomBytes, createHash: createHash$1 } = require$$1$
|
|
294890
|
+
const { randomBytes, createHash: createHash$1 } = require$$1$3;
|
|
295670
294891
|
const { Duplex: Duplex$2, Readable } = require$$0$4;
|
|
295671
294892
|
const { URL: URL$1 } = require$$7;
|
|
295672
294893
|
|
|
@@ -297271,7 +296492,7 @@ var subprotocol$1 = { parse };
|
|
|
297271
296492
|
const EventEmitter = require$$0$8;
|
|
297272
296493
|
const http = require$$4$1;
|
|
297273
296494
|
const { Duplex } = require$$0$4;
|
|
297274
|
-
const { createHash } = require$$1$
|
|
296495
|
+
const { createHash } = require$$1$3;
|
|
297275
296496
|
|
|
297276
296497
|
const extension = extension$1;
|
|
297277
296498
|
const PerMessageDeflate = permessageDeflate;
|
|
@@ -297841,7 +297062,7 @@ const Types_1$2 = Types;
|
|
|
297841
297062
|
const Utils_1$3 = requireUtils();
|
|
297842
297063
|
const event_buffer_1 = requireEventBuffer();
|
|
297843
297064
|
const WABinary_1$4 = WABinary;
|
|
297844
|
-
const crypto_1$1 = require$$1$
|
|
297065
|
+
const crypto_1$1 = require$$1$3;
|
|
297845
297066
|
/**
|
|
297846
297067
|
* Connects to WA servers and performs:
|
|
297847
297068
|
* - simple queries (no retry mechanism, wait for connection establishment)
|
|
@@ -300133,7 +299354,7 @@ const process_message_1 = requireProcessMessage();
|
|
|
300133
299354
|
const WABinary_1$1 = WABinary;
|
|
300134
299355
|
const groups_1 = groups;
|
|
300135
299356
|
const messages_send_1 = messagesSend;
|
|
300136
|
-
const crypto_1 = require$$1$
|
|
299357
|
+
const crypto_1 = require$$1$3;
|
|
300137
299358
|
const makeMessagesRecvSocket = (config) => {
|
|
300138
299359
|
const { logger, retryRequestDelayMs, getMessage, sentMessagesCache, shouldIgnoreJid } = config;
|
|
300139
299360
|
const sock = (0, messages_send_1.makeMessagesSocket)(config);
|
|
@@ -301870,11 +301091,15 @@ class SherpaProvider extends bot.ProviderClass {
|
|
|
301870
301091
|
this.logger.log(`[${new Date().toISOString()}] Message received from phone, id=${messageCtx.requestId}`, messageCtx);
|
|
301871
301092
|
}
|
|
301872
301093
|
}
|
|
301094
|
+
// Buscar siempre el que tenga formato @s.whatsapp.net (puede estar en remoteJid o remoteJidAlt)
|
|
301095
|
+
const remoteJid = messageCtx?.key?.remoteJid;
|
|
301096
|
+
const remoteJidAlt = messageCtx?.key?.remoteJidAlt;
|
|
301097
|
+
const fromParse = remoteJid?.includes('@lid') ? remoteJidAlt : remoteJid;
|
|
301873
301098
|
let payload = {
|
|
301874
301099
|
...messageCtx,
|
|
301875
301100
|
body: textToBody,
|
|
301876
301101
|
name: messageCtx?.pushName,
|
|
301877
|
-
from:
|
|
301102
|
+
from: baileyCleanNumber(fromParse),
|
|
301878
301103
|
};
|
|
301879
301104
|
if (messageCtx.message?.locationMessage) {
|
|
301880
301105
|
const { degreesLatitude, degreesLongitude } = messageCtx.message.locationMessage;
|