@builderbot/provider-baileys 1.3.13 → 1.3.14-alpha.148
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/bailey.d.ts.map +1 -1
- package/dist/index.cjs +160 -156
- package/dist/index.mjs +166 -162
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1003,7 +1003,7 @@ function retry () {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
|
-
(function (exports) {
|
|
1006
|
+
(function (exports$1) {
|
|
1007
1007
|
// This is adapted from https://github.com/normalize/mz
|
|
1008
1008
|
// Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
|
|
1009
1009
|
const u = universalify$1.fromCallback;
|
|
@@ -1058,16 +1058,16 @@ function retry () {
|
|
|
1058
1058
|
});
|
|
1059
1059
|
|
|
1060
1060
|
// Export cloned fs:
|
|
1061
|
-
Object.assign(exports, fs);
|
|
1061
|
+
Object.assign(exports$1, fs);
|
|
1062
1062
|
|
|
1063
1063
|
// Universalify async methods:
|
|
1064
1064
|
api.forEach(method => {
|
|
1065
|
-
exports[method] = u(fs[method]);
|
|
1065
|
+
exports$1[method] = u(fs[method]);
|
|
1066
1066
|
});
|
|
1067
1067
|
|
|
1068
1068
|
// We differ from mz/fs in that we still ship the old, broken, fs.exists()
|
|
1069
1069
|
// since we are a drop-in replacement for the native module
|
|
1070
|
-
exports.exists = function (filename, callback) {
|
|
1070
|
+
exports$1.exists = function (filename, callback) {
|
|
1071
1071
|
if (typeof callback === 'function') {
|
|
1072
1072
|
return fs.exists(filename, callback)
|
|
1073
1073
|
}
|
|
@@ -1078,7 +1078,7 @@ function retry () {
|
|
|
1078
1078
|
|
|
1079
1079
|
// fs.read(), fs.write(), fs.readv(), & fs.writev() need special treatment due to multiple callback args
|
|
1080
1080
|
|
|
1081
|
-
exports.read = function (fd, buffer, offset, length, position, callback) {
|
|
1081
|
+
exports$1.read = function (fd, buffer, offset, length, position, callback) {
|
|
1082
1082
|
if (typeof callback === 'function') {
|
|
1083
1083
|
return fs.read(fd, buffer, offset, length, position, callback)
|
|
1084
1084
|
}
|
|
@@ -1095,7 +1095,7 @@ function retry () {
|
|
|
1095
1095
|
// OR
|
|
1096
1096
|
// fs.write(fd, string[, position[, encoding]], callback)
|
|
1097
1097
|
// We need to handle both cases, so we use ...args
|
|
1098
|
-
exports.write = function (fd, buffer, ...args) {
|
|
1098
|
+
exports$1.write = function (fd, buffer, ...args) {
|
|
1099
1099
|
if (typeof args[args.length - 1] === 'function') {
|
|
1100
1100
|
return fs.write(fd, buffer, ...args)
|
|
1101
1101
|
}
|
|
@@ -1111,7 +1111,7 @@ function retry () {
|
|
|
1111
1111
|
// Function signature is
|
|
1112
1112
|
// s.readv(fd, buffers[, position], callback)
|
|
1113
1113
|
// We need to handle the optional arg, so we use ...args
|
|
1114
|
-
exports.readv = function (fd, buffers, ...args) {
|
|
1114
|
+
exports$1.readv = function (fd, buffers, ...args) {
|
|
1115
1115
|
if (typeof args[args.length - 1] === 'function') {
|
|
1116
1116
|
return fs.readv(fd, buffers, ...args)
|
|
1117
1117
|
}
|
|
@@ -1127,7 +1127,7 @@ function retry () {
|
|
|
1127
1127
|
// Function signature is
|
|
1128
1128
|
// s.writev(fd, buffers[, position], callback)
|
|
1129
1129
|
// We need to handle the optional arg, so we use ...args
|
|
1130
|
-
exports.writev = function (fd, buffers, ...args) {
|
|
1130
|
+
exports$1.writev = function (fd, buffers, ...args) {
|
|
1131
1131
|
if (typeof args[args.length - 1] === 'function') {
|
|
1132
1132
|
return fs.writev(fd, buffers, ...args)
|
|
1133
1133
|
}
|
|
@@ -1142,7 +1142,7 @@ function retry () {
|
|
|
1142
1142
|
|
|
1143
1143
|
// fs.realpath.native sometimes not available if fs is monkey-patched
|
|
1144
1144
|
if (typeof fs.realpath.native === 'function') {
|
|
1145
|
-
exports.realpath.native = u(fs.realpath.native);
|
|
1145
|
+
exports$1.realpath.native = u(fs.realpath.native);
|
|
1146
1146
|
} else {
|
|
1147
1147
|
process.emitWarning(
|
|
1148
1148
|
'fs.realpath.native is not a function. Is fs being monkey-patched?',
|
|
@@ -14613,7 +14613,7 @@ var mimeDb = require$$0$2;
|
|
|
14613
14613
|
* MIT Licensed
|
|
14614
14614
|
*/
|
|
14615
14615
|
|
|
14616
|
-
(function (exports) {
|
|
14616
|
+
(function (exports$1) {
|
|
14617
14617
|
|
|
14618
14618
|
/**
|
|
14619
14619
|
* Module dependencies.
|
|
@@ -14636,16 +14636,16 @@ var mimeDb = require$$0$2;
|
|
|
14636
14636
|
* @public
|
|
14637
14637
|
*/
|
|
14638
14638
|
|
|
14639
|
-
exports.charset = charset;
|
|
14640
|
-
exports.charsets = { lookup: charset };
|
|
14641
|
-
exports.contentType = contentType;
|
|
14642
|
-
exports.extension = extension;
|
|
14643
|
-
exports.extensions = Object.create(null);
|
|
14644
|
-
exports.lookup = lookup;
|
|
14645
|
-
exports.types = Object.create(null);
|
|
14639
|
+
exports$1.charset = charset;
|
|
14640
|
+
exports$1.charsets = { lookup: charset };
|
|
14641
|
+
exports$1.contentType = contentType;
|
|
14642
|
+
exports$1.extension = extension;
|
|
14643
|
+
exports$1.extensions = Object.create(null);
|
|
14644
|
+
exports$1.lookup = lookup;
|
|
14645
|
+
exports$1.types = Object.create(null);
|
|
14646
14646
|
|
|
14647
14647
|
// Populate the extensions/types maps
|
|
14648
|
-
populateMaps(exports.extensions, exports.types);
|
|
14648
|
+
populateMaps(exports$1.extensions, exports$1.types);
|
|
14649
14649
|
|
|
14650
14650
|
/**
|
|
14651
14651
|
* Get the default charset for a MIME type.
|
|
@@ -14689,7 +14689,7 @@ var mimeDb = require$$0$2;
|
|
|
14689
14689
|
}
|
|
14690
14690
|
|
|
14691
14691
|
var mime = str.indexOf('/') === -1
|
|
14692
|
-
? exports.lookup(str)
|
|
14692
|
+
? exports$1.lookup(str)
|
|
14693
14693
|
: str;
|
|
14694
14694
|
|
|
14695
14695
|
if (!mime) {
|
|
@@ -14698,7 +14698,7 @@ var mimeDb = require$$0$2;
|
|
|
14698
14698
|
|
|
14699
14699
|
// TODO: use content-type or other module
|
|
14700
14700
|
if (mime.indexOf('charset') === -1) {
|
|
14701
|
-
var charset = exports.charset(mime);
|
|
14701
|
+
var charset = exports$1.charset(mime);
|
|
14702
14702
|
if (charset) mime += '; charset=' + charset.toLowerCase();
|
|
14703
14703
|
}
|
|
14704
14704
|
|
|
@@ -14721,7 +14721,7 @@ var mimeDb = require$$0$2;
|
|
|
14721
14721
|
var match = EXTRACT_TYPE_REGEXP.exec(type);
|
|
14722
14722
|
|
|
14723
14723
|
// get extensions
|
|
14724
|
-
var exts = match && exports.extensions[match[1].toLowerCase()];
|
|
14724
|
+
var exts = match && exports$1.extensions[match[1].toLowerCase()];
|
|
14725
14725
|
|
|
14726
14726
|
if (!exts || !exts.length) {
|
|
14727
14727
|
return false
|
|
@@ -14751,7 +14751,7 @@ var mimeDb = require$$0$2;
|
|
|
14751
14751
|
return false
|
|
14752
14752
|
}
|
|
14753
14753
|
|
|
14754
|
-
return exports.types[extension] || false
|
|
14754
|
+
return exports$1.types[extension] || false
|
|
14755
14755
|
}
|
|
14756
14756
|
|
|
14757
14757
|
/**
|
|
@@ -15891,11 +15891,11 @@ function requireNode_cache () {
|
|
|
15891
15891
|
*/
|
|
15892
15892
|
|
|
15893
15893
|
(function() {
|
|
15894
|
-
var exports;
|
|
15894
|
+
var exports$1;
|
|
15895
15895
|
|
|
15896
|
-
exports = nodeCache.exports = requireNode_cache();
|
|
15896
|
+
exports$1 = nodeCache.exports = requireNode_cache();
|
|
15897
15897
|
|
|
15898
|
-
exports.version = '5.1.2';
|
|
15898
|
+
exports$1.version = '5.1.2';
|
|
15899
15899
|
|
|
15900
15900
|
}).call(commonjsGlobal);
|
|
15901
15901
|
|
|
@@ -19439,7 +19439,7 @@ function flush () {
|
|
|
19439
19439
|
|
|
19440
19440
|
var safeStableStringify = {exports: {}};
|
|
19441
19441
|
|
|
19442
|
-
(function (module, exports) {
|
|
19442
|
+
(function (module, exports$1) {
|
|
19443
19443
|
|
|
19444
19444
|
const { hasOwnProperty } = Object.prototype;
|
|
19445
19445
|
|
|
@@ -19454,9 +19454,9 @@ var safeStableStringify = {exports: {}};
|
|
|
19454
19454
|
stringify.default = stringify;
|
|
19455
19455
|
|
|
19456
19456
|
// @ts-expect-error used for named export
|
|
19457
|
-
exports.stringify = stringify;
|
|
19457
|
+
exports$1.stringify = stringify;
|
|
19458
19458
|
// @ts-expect-error used for named export
|
|
19459
|
-
exports.configure = configure;
|
|
19459
|
+
exports$1.configure = configure;
|
|
19460
19460
|
|
|
19461
19461
|
module.exports = stringify;
|
|
19462
19462
|
|
|
@@ -20452,7 +20452,7 @@ var Sticker = {};
|
|
|
20452
20452
|
|
|
20453
20453
|
var fs$k = {};
|
|
20454
20454
|
|
|
20455
|
-
(function (exports) {
|
|
20455
|
+
(function (exports$1) {
|
|
20456
20456
|
// This is adapted from https://github.com/normalize/mz
|
|
20457
20457
|
// Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
|
|
20458
20458
|
const u = universalify$1.fromCallback;
|
|
@@ -20502,16 +20502,16 @@ var fs$k = {};
|
|
|
20502
20502
|
});
|
|
20503
20503
|
|
|
20504
20504
|
// Export cloned fs:
|
|
20505
|
-
Object.assign(exports, fs);
|
|
20505
|
+
Object.assign(exports$1, fs);
|
|
20506
20506
|
|
|
20507
20507
|
// Universalify async methods:
|
|
20508
20508
|
api.forEach(method => {
|
|
20509
|
-
exports[method] = u(fs[method]);
|
|
20509
|
+
exports$1[method] = u(fs[method]);
|
|
20510
20510
|
});
|
|
20511
20511
|
|
|
20512
20512
|
// We differ from mz/fs in that we still ship the old, broken, fs.exists()
|
|
20513
20513
|
// since we are a drop-in replacement for the native module
|
|
20514
|
-
exports.exists = function (filename, callback) {
|
|
20514
|
+
exports$1.exists = function (filename, callback) {
|
|
20515
20515
|
if (typeof callback === 'function') {
|
|
20516
20516
|
return fs.exists(filename, callback)
|
|
20517
20517
|
}
|
|
@@ -20522,7 +20522,7 @@ var fs$k = {};
|
|
|
20522
20522
|
|
|
20523
20523
|
// fs.read(), fs.write(), & fs.writev() need special treatment due to multiple callback args
|
|
20524
20524
|
|
|
20525
|
-
exports.read = function (fd, buffer, offset, length, position, callback) {
|
|
20525
|
+
exports$1.read = function (fd, buffer, offset, length, position, callback) {
|
|
20526
20526
|
if (typeof callback === 'function') {
|
|
20527
20527
|
return fs.read(fd, buffer, offset, length, position, callback)
|
|
20528
20528
|
}
|
|
@@ -20539,7 +20539,7 @@ var fs$k = {};
|
|
|
20539
20539
|
// OR
|
|
20540
20540
|
// fs.write(fd, string[, position[, encoding]], callback)
|
|
20541
20541
|
// We need to handle both cases, so we use ...args
|
|
20542
|
-
exports.write = function (fd, buffer, ...args) {
|
|
20542
|
+
exports$1.write = function (fd, buffer, ...args) {
|
|
20543
20543
|
if (typeof args[args.length - 1] === 'function') {
|
|
20544
20544
|
return fs.write(fd, buffer, ...args)
|
|
20545
20545
|
}
|
|
@@ -20557,7 +20557,7 @@ var fs$k = {};
|
|
|
20557
20557
|
// Function signature is
|
|
20558
20558
|
// s.writev(fd, buffers[, position], callback)
|
|
20559
20559
|
// We need to handle the optional arg, so we use ...args
|
|
20560
|
-
exports.writev = function (fd, buffers, ...args) {
|
|
20560
|
+
exports$1.writev = function (fd, buffers, ...args) {
|
|
20561
20561
|
if (typeof args[args.length - 1] === 'function') {
|
|
20562
20562
|
return fs.writev(fd, buffers, ...args)
|
|
20563
20563
|
}
|
|
@@ -20573,7 +20573,7 @@ var fs$k = {};
|
|
|
20573
20573
|
|
|
20574
20574
|
// fs.realpath.native sometimes not available if fs is monkey-patched
|
|
20575
20575
|
if (typeof fs.realpath.native === 'function') {
|
|
20576
|
-
exports.realpath.native = u(fs.realpath.native);
|
|
20576
|
+
exports$1.realpath.native = u(fs.realpath.native);
|
|
20577
20577
|
} else {
|
|
20578
20578
|
process.emitWarning(
|
|
20579
20579
|
'fs.realpath.native is not a function. Is fs being monkey-patched?',
|
|
@@ -23741,17 +23741,17 @@ var hasRequiredBrowser;
|
|
|
23741
23741
|
function requireBrowser () {
|
|
23742
23742
|
if (hasRequiredBrowser) return browser.exports;
|
|
23743
23743
|
hasRequiredBrowser = 1;
|
|
23744
|
-
(function (module, exports) {
|
|
23744
|
+
(function (module, exports$1) {
|
|
23745
23745
|
/**
|
|
23746
23746
|
* This is the web browser implementation of `debug()`.
|
|
23747
23747
|
*/
|
|
23748
23748
|
|
|
23749
|
-
exports.formatArgs = formatArgs;
|
|
23750
|
-
exports.save = save;
|
|
23751
|
-
exports.load = load;
|
|
23752
|
-
exports.useColors = useColors;
|
|
23753
|
-
exports.storage = localstorage();
|
|
23754
|
-
exports.destroy = (() => {
|
|
23749
|
+
exports$1.formatArgs = formatArgs;
|
|
23750
|
+
exports$1.save = save;
|
|
23751
|
+
exports$1.load = load;
|
|
23752
|
+
exports$1.useColors = useColors;
|
|
23753
|
+
exports$1.storage = localstorage();
|
|
23754
|
+
exports$1.destroy = (() => {
|
|
23755
23755
|
let warned = false;
|
|
23756
23756
|
|
|
23757
23757
|
return () => {
|
|
@@ -23766,7 +23766,7 @@ function requireBrowser () {
|
|
|
23766
23766
|
* Colors.
|
|
23767
23767
|
*/
|
|
23768
23768
|
|
|
23769
|
-
exports.colors = [
|
|
23769
|
+
exports$1.colors = [
|
|
23770
23770
|
'#0000CC',
|
|
23771
23771
|
'#0000FF',
|
|
23772
23772
|
'#0033CC',
|
|
@@ -23931,7 +23931,7 @@ function requireBrowser () {
|
|
|
23931
23931
|
*
|
|
23932
23932
|
* @api public
|
|
23933
23933
|
*/
|
|
23934
|
-
exports.log = console.debug || console.log || (() => {});
|
|
23934
|
+
exports$1.log = console.debug || console.log || (() => {});
|
|
23935
23935
|
|
|
23936
23936
|
/**
|
|
23937
23937
|
* Save `namespaces`.
|
|
@@ -23942,9 +23942,9 @@ function requireBrowser () {
|
|
|
23942
23942
|
function save(namespaces) {
|
|
23943
23943
|
try {
|
|
23944
23944
|
if (namespaces) {
|
|
23945
|
-
exports.storage.setItem('debug', namespaces);
|
|
23945
|
+
exports$1.storage.setItem('debug', namespaces);
|
|
23946
23946
|
} else {
|
|
23947
|
-
exports.storage.removeItem('debug');
|
|
23947
|
+
exports$1.storage.removeItem('debug');
|
|
23948
23948
|
}
|
|
23949
23949
|
} catch (error) {
|
|
23950
23950
|
// Swallow
|
|
@@ -23961,7 +23961,7 @@ function requireBrowser () {
|
|
|
23961
23961
|
function load() {
|
|
23962
23962
|
let r;
|
|
23963
23963
|
try {
|
|
23964
|
-
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
|
|
23964
|
+
r = exports$1.storage.getItem('debug') || exports$1.storage.getItem('DEBUG') ;
|
|
23965
23965
|
} catch (error) {
|
|
23966
23966
|
// Swallow
|
|
23967
23967
|
// XXX (@Qix-) should we be logging these?
|
|
@@ -23997,7 +23997,7 @@ function requireBrowser () {
|
|
|
23997
23997
|
}
|
|
23998
23998
|
}
|
|
23999
23999
|
|
|
24000
|
-
module.exports = requireCommon()(exports);
|
|
24000
|
+
module.exports = requireCommon()(exports$1);
|
|
24001
24001
|
|
|
24002
24002
|
const {formatters} = module.exports;
|
|
24003
24003
|
|
|
@@ -24186,7 +24186,7 @@ var hasRequiredNode;
|
|
|
24186
24186
|
function requireNode () {
|
|
24187
24187
|
if (hasRequiredNode) return node.exports;
|
|
24188
24188
|
hasRequiredNode = 1;
|
|
24189
|
-
(function (module, exports) {
|
|
24189
|
+
(function (module, exports$1) {
|
|
24190
24190
|
const tty = require$$1$4;
|
|
24191
24191
|
const util = require$$1;
|
|
24192
24192
|
|
|
@@ -24194,13 +24194,13 @@ function requireNode () {
|
|
|
24194
24194
|
* This is the Node.js implementation of `debug()`.
|
|
24195
24195
|
*/
|
|
24196
24196
|
|
|
24197
|
-
exports.init = init;
|
|
24198
|
-
exports.log = log;
|
|
24199
|
-
exports.formatArgs = formatArgs;
|
|
24200
|
-
exports.save = save;
|
|
24201
|
-
exports.load = load;
|
|
24202
|
-
exports.useColors = useColors;
|
|
24203
|
-
exports.destroy = util.deprecate(
|
|
24197
|
+
exports$1.init = init;
|
|
24198
|
+
exports$1.log = log;
|
|
24199
|
+
exports$1.formatArgs = formatArgs;
|
|
24200
|
+
exports$1.save = save;
|
|
24201
|
+
exports$1.load = load;
|
|
24202
|
+
exports$1.useColors = useColors;
|
|
24203
|
+
exports$1.destroy = util.deprecate(
|
|
24204
24204
|
() => {},
|
|
24205
24205
|
'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
|
|
24206
24206
|
);
|
|
@@ -24209,7 +24209,7 @@ function requireNode () {
|
|
|
24209
24209
|
* Colors.
|
|
24210
24210
|
*/
|
|
24211
24211
|
|
|
24212
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
24212
|
+
exports$1.colors = [6, 2, 3, 4, 5, 1];
|
|
24213
24213
|
|
|
24214
24214
|
try {
|
|
24215
24215
|
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
@@ -24217,7 +24217,7 @@ function requireNode () {
|
|
|
24217
24217
|
const supportsColor = requireSupportsColor();
|
|
24218
24218
|
|
|
24219
24219
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
24220
|
-
exports.colors = [
|
|
24220
|
+
exports$1.colors = [
|
|
24221
24221
|
20,
|
|
24222
24222
|
21,
|
|
24223
24223
|
26,
|
|
@@ -24306,7 +24306,7 @@ function requireNode () {
|
|
|
24306
24306
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
24307
24307
|
*/
|
|
24308
24308
|
|
|
24309
|
-
exports.inspectOpts = Object.keys(process.env).filter(key => {
|
|
24309
|
+
exports$1.inspectOpts = Object.keys(process.env).filter(key => {
|
|
24310
24310
|
return /^debug_/i.test(key);
|
|
24311
24311
|
}).reduce((obj, key) => {
|
|
24312
24312
|
// Camel-case
|
|
@@ -24338,8 +24338,8 @@ function requireNode () {
|
|
|
24338
24338
|
*/
|
|
24339
24339
|
|
|
24340
24340
|
function useColors() {
|
|
24341
|
-
return 'colors' in exports.inspectOpts ?
|
|
24342
|
-
Boolean(exports.inspectOpts.colors) :
|
|
24341
|
+
return 'colors' in exports$1.inspectOpts ?
|
|
24342
|
+
Boolean(exports$1.inspectOpts.colors) :
|
|
24343
24343
|
tty.isatty(process.stderr.fd);
|
|
24344
24344
|
}
|
|
24345
24345
|
|
|
@@ -24365,7 +24365,7 @@ function requireNode () {
|
|
|
24365
24365
|
}
|
|
24366
24366
|
|
|
24367
24367
|
function getDate() {
|
|
24368
|
-
if (exports.inspectOpts.hideDate) {
|
|
24368
|
+
if (exports$1.inspectOpts.hideDate) {
|
|
24369
24369
|
return '';
|
|
24370
24370
|
}
|
|
24371
24371
|
return new Date().toISOString() + ' ';
|
|
@@ -24376,7 +24376,7 @@ function requireNode () {
|
|
|
24376
24376
|
*/
|
|
24377
24377
|
|
|
24378
24378
|
function log(...args) {
|
|
24379
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
|
|
24379
|
+
return process.stderr.write(util.formatWithOptions(exports$1.inspectOpts, ...args) + '\n');
|
|
24380
24380
|
}
|
|
24381
24381
|
|
|
24382
24382
|
/**
|
|
@@ -24416,13 +24416,13 @@ function requireNode () {
|
|
|
24416
24416
|
function init(debug) {
|
|
24417
24417
|
debug.inspectOpts = {};
|
|
24418
24418
|
|
|
24419
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
24419
|
+
const keys = Object.keys(exports$1.inspectOpts);
|
|
24420
24420
|
for (let i = 0; i < keys.length; i++) {
|
|
24421
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
24421
|
+
debug.inspectOpts[keys[i]] = exports$1.inspectOpts[keys[i]];
|
|
24422
24422
|
}
|
|
24423
24423
|
}
|
|
24424
24424
|
|
|
24425
|
-
module.exports = requireCommon()(exports);
|
|
24425
|
+
module.exports = requireCommon()(exports$1);
|
|
24426
24426
|
|
|
24427
24427
|
const {formatters} = module.exports;
|
|
24428
24428
|
|
|
@@ -24996,7 +24996,7 @@ function requireFollowRedirects () {
|
|
|
24996
24996
|
// Wraps the key/value object of protocols with redirect functionality
|
|
24997
24997
|
function wrap(protocols) {
|
|
24998
24998
|
// Default settings
|
|
24999
|
-
var exports = {
|
|
24999
|
+
var exports$1 = {
|
|
25000
25000
|
maxRedirects: 21,
|
|
25001
25001
|
maxBodyLength: 10 * 1024 * 1024,
|
|
25002
25002
|
};
|
|
@@ -25006,7 +25006,7 @@ function requireFollowRedirects () {
|
|
|
25006
25006
|
Object.keys(protocols).forEach(function (scheme) {
|
|
25007
25007
|
var protocol = scheme + ":";
|
|
25008
25008
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
25009
|
-
var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);
|
|
25009
|
+
var wrappedProtocol = exports$1[scheme] = Object.create(nativeProtocol);
|
|
25010
25010
|
|
|
25011
25011
|
// Executes a request, following redirects
|
|
25012
25012
|
function request(input, options, callback) {
|
|
@@ -25029,8 +25029,8 @@ function requireFollowRedirects () {
|
|
|
25029
25029
|
|
|
25030
25030
|
// Set defaults
|
|
25031
25031
|
options = Object.assign({
|
|
25032
|
-
maxRedirects: exports.maxRedirects,
|
|
25033
|
-
maxBodyLength: exports.maxBodyLength,
|
|
25032
|
+
maxRedirects: exports$1.maxRedirects,
|
|
25033
|
+
maxBodyLength: exports$1.maxBodyLength,
|
|
25034
25034
|
}, input, options);
|
|
25035
25035
|
options.nativeProtocols = nativeProtocols;
|
|
25036
25036
|
if (!isString(options.host) && !isString(options.hostname)) {
|
|
@@ -25055,7 +25055,7 @@ function requireFollowRedirects () {
|
|
|
25055
25055
|
get: { value: get, configurable: true, enumerable: true, writable: true },
|
|
25056
25056
|
});
|
|
25057
25057
|
});
|
|
25058
|
-
return exports;
|
|
25058
|
+
return exports$1;
|
|
25059
25059
|
}
|
|
25060
25060
|
|
|
25061
25061
|
function noop() { /* empty */ }
|
|
@@ -26426,19 +26426,19 @@ var lib$1 = {};
|
|
|
26426
26426
|
|
|
26427
26427
|
var EndOfFileStream = {};
|
|
26428
26428
|
|
|
26429
|
-
(function (exports) {
|
|
26430
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26431
|
-
exports.EndOfStreamError = exports.defaultMessages = void 0;
|
|
26432
|
-
exports.defaultMessages = 'End-Of-Stream';
|
|
26429
|
+
(function (exports$1) {
|
|
26430
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
26431
|
+
exports$1.EndOfStreamError = exports$1.defaultMessages = void 0;
|
|
26432
|
+
exports$1.defaultMessages = 'End-Of-Stream';
|
|
26433
26433
|
/**
|
|
26434
26434
|
* Thrown on read operation of the end of file or stream has been reached
|
|
26435
26435
|
*/
|
|
26436
26436
|
class EndOfStreamError extends Error {
|
|
26437
26437
|
constructor() {
|
|
26438
|
-
super(exports.defaultMessages);
|
|
26438
|
+
super(exports$1.defaultMessages);
|
|
26439
26439
|
}
|
|
26440
26440
|
}
|
|
26441
|
-
exports.EndOfStreamError = EndOfStreamError;
|
|
26441
|
+
exports$1.EndOfStreamError = EndOfStreamError;
|
|
26442
26442
|
} (EndOfFileStream));
|
|
26443
26443
|
|
|
26444
26444
|
var StreamReader = {};
|
|
@@ -26459,13 +26459,13 @@ class Deferred {
|
|
|
26459
26459
|
}
|
|
26460
26460
|
Deferred$1.Deferred = Deferred;
|
|
26461
26461
|
|
|
26462
|
-
(function (exports) {
|
|
26463
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26464
|
-
exports.StreamReader = exports.EndOfStreamError = void 0;
|
|
26462
|
+
(function (exports$1) {
|
|
26463
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
26464
|
+
exports$1.StreamReader = exports$1.EndOfStreamError = void 0;
|
|
26465
26465
|
const EndOfFileStream_1 = EndOfFileStream;
|
|
26466
26466
|
const Deferred_1 = Deferred$1;
|
|
26467
26467
|
var EndOfFileStream_2 = EndOfFileStream;
|
|
26468
|
-
Object.defineProperty(exports, "EndOfStreamError", { enumerable: true, get: function () { return EndOfFileStream_2.EndOfStreamError; } });
|
|
26468
|
+
Object.defineProperty(exports$1, "EndOfStreamError", { enumerable: true, get: function () { return EndOfFileStream_2.EndOfStreamError; } });
|
|
26469
26469
|
const maxStreamReadSize = 1 * 1024 * 1024; // Maximum request length on read-stream operation
|
|
26470
26470
|
class StreamReader {
|
|
26471
26471
|
constructor(s) {
|
|
@@ -26592,16 +26592,16 @@ Deferred$1.Deferred = Deferred;
|
|
|
26592
26592
|
}
|
|
26593
26593
|
}
|
|
26594
26594
|
}
|
|
26595
|
-
exports.StreamReader = StreamReader;
|
|
26595
|
+
exports$1.StreamReader = StreamReader;
|
|
26596
26596
|
} (StreamReader));
|
|
26597
26597
|
|
|
26598
|
-
(function (exports) {
|
|
26599
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26600
|
-
exports.StreamReader = exports.EndOfStreamError = void 0;
|
|
26598
|
+
(function (exports$1) {
|
|
26599
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
26600
|
+
exports$1.StreamReader = exports$1.EndOfStreamError = void 0;
|
|
26601
26601
|
var EndOfFileStream_1 = EndOfFileStream;
|
|
26602
|
-
Object.defineProperty(exports, "EndOfStreamError", { enumerable: true, get: function () { return EndOfFileStream_1.EndOfStreamError; } });
|
|
26602
|
+
Object.defineProperty(exports$1, "EndOfStreamError", { enumerable: true, get: function () { return EndOfFileStream_1.EndOfStreamError; } });
|
|
26603
26603
|
var StreamReader_1 = StreamReader;
|
|
26604
|
-
Object.defineProperty(exports, "StreamReader", { enumerable: true, get: function () { return StreamReader_1.StreamReader; } });
|
|
26604
|
+
Object.defineProperty(exports$1, "StreamReader", { enumerable: true, get: function () { return StreamReader_1.StreamReader; } });
|
|
26605
26605
|
} (lib$1));
|
|
26606
26606
|
|
|
26607
26607
|
Object.defineProperty(AbstractTokenizer$1, "__esModule", { value: true });
|
|
@@ -26863,13 +26863,13 @@ class BufferTokenizer extends AbstractTokenizer_1$1.AbstractTokenizer {
|
|
|
26863
26863
|
}
|
|
26864
26864
|
BufferTokenizer$1.BufferTokenizer = BufferTokenizer;
|
|
26865
26865
|
|
|
26866
|
-
(function (exports) {
|
|
26867
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26868
|
-
exports.fromBuffer = exports.fromStream = exports.EndOfStreamError = void 0;
|
|
26866
|
+
(function (exports$1) {
|
|
26867
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
26868
|
+
exports$1.fromBuffer = exports$1.fromStream = exports$1.EndOfStreamError = void 0;
|
|
26869
26869
|
const ReadStreamTokenizer_1 = ReadStreamTokenizer$1;
|
|
26870
26870
|
const BufferTokenizer_1 = BufferTokenizer$1;
|
|
26871
26871
|
var peek_readable_1 = lib$1;
|
|
26872
|
-
Object.defineProperty(exports, "EndOfStreamError", { enumerable: true, get: function () { return peek_readable_1.EndOfStreamError; } });
|
|
26872
|
+
Object.defineProperty(exports$1, "EndOfStreamError", { enumerable: true, get: function () { return peek_readable_1.EndOfStreamError; } });
|
|
26873
26873
|
/**
|
|
26874
26874
|
* Construct ReadStreamTokenizer from given Stream.
|
|
26875
26875
|
* Will set fileSize, if provided given Stream has set the .path property/
|
|
@@ -26881,7 +26881,7 @@ BufferTokenizer$1.BufferTokenizer = BufferTokenizer;
|
|
|
26881
26881
|
fileInfo = fileInfo ? fileInfo : {};
|
|
26882
26882
|
return new ReadStreamTokenizer_1.ReadStreamTokenizer(stream, fileInfo);
|
|
26883
26883
|
}
|
|
26884
|
-
exports.fromStream = fromStream;
|
|
26884
|
+
exports$1.fromStream = fromStream;
|
|
26885
26885
|
/**
|
|
26886
26886
|
* Construct ReadStreamTokenizer from given Buffer.
|
|
26887
26887
|
* @param uint8Array - Uint8Array to tokenize
|
|
@@ -26891,7 +26891,7 @@ BufferTokenizer$1.BufferTokenizer = BufferTokenizer;
|
|
|
26891
26891
|
function fromBuffer(uint8Array, fileInfo) {
|
|
26892
26892
|
return new BufferTokenizer_1.BufferTokenizer(uint8Array, fileInfo);
|
|
26893
26893
|
}
|
|
26894
|
-
exports.fromBuffer = fromBuffer;
|
|
26894
|
+
exports$1.fromBuffer = fromBuffer;
|
|
26895
26895
|
} (core$2));
|
|
26896
26896
|
|
|
26897
26897
|
var FileTokenizer$1 = {};
|
|
@@ -26951,16 +26951,16 @@ async function fromFile$1(sourceFilePath) {
|
|
|
26951
26951
|
}
|
|
26952
26952
|
FileTokenizer$1.fromFile = fromFile$1;
|
|
26953
26953
|
|
|
26954
|
-
(function (exports) {
|
|
26955
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26956
|
-
exports.fromStream = exports.fromBuffer = exports.EndOfStreamError = exports.fromFile = void 0;
|
|
26954
|
+
(function (exports$1) {
|
|
26955
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
26956
|
+
exports$1.fromStream = exports$1.fromBuffer = exports$1.EndOfStreamError = exports$1.fromFile = void 0;
|
|
26957
26957
|
const fs = FsPromise;
|
|
26958
26958
|
const core = core$2;
|
|
26959
26959
|
var FileTokenizer_1 = FileTokenizer$1;
|
|
26960
|
-
Object.defineProperty(exports, "fromFile", { enumerable: true, get: function () { return FileTokenizer_1.fromFile; } });
|
|
26960
|
+
Object.defineProperty(exports$1, "fromFile", { enumerable: true, get: function () { return FileTokenizer_1.fromFile; } });
|
|
26961
26961
|
var core_1 = core$2;
|
|
26962
|
-
Object.defineProperty(exports, "EndOfStreamError", { enumerable: true, get: function () { return core_1.EndOfStreamError; } });
|
|
26963
|
-
Object.defineProperty(exports, "fromBuffer", { enumerable: true, get: function () { return core_1.fromBuffer; } });
|
|
26962
|
+
Object.defineProperty(exports$1, "EndOfStreamError", { enumerable: true, get: function () { return core_1.EndOfStreamError; } });
|
|
26963
|
+
Object.defineProperty(exports$1, "fromBuffer", { enumerable: true, get: function () { return core_1.fromBuffer; } });
|
|
26964
26964
|
/**
|
|
26965
26965
|
* Construct ReadStreamTokenizer from given Stream.
|
|
26966
26966
|
* Will set fileSize, if provided given Stream has set the .path property.
|
|
@@ -26977,7 +26977,7 @@ FileTokenizer$1.fromFile = fromFile$1;
|
|
|
26977
26977
|
}
|
|
26978
26978
|
return core.fromStream(stream, fileInfo);
|
|
26979
26979
|
}
|
|
26980
|
-
exports.fromStream = fromStream;
|
|
26980
|
+
exports$1.fromStream = fromStream;
|
|
26981
26981
|
} (lib$2));
|
|
26982
26982
|
|
|
26983
26983
|
var lib = {};
|
|
@@ -27071,9 +27071,9 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27071
27071
|
buffer[offset + i - d] |= s * 128;
|
|
27072
27072
|
};
|
|
27073
27073
|
|
|
27074
|
-
(function (exports) {
|
|
27075
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27076
|
-
exports.AnsiStringType = exports.StringType = exports.BufferType = exports.Uint8ArrayType = exports.IgnoreType = exports.Float80_LE = exports.Float80_BE = exports.Float64_LE = exports.Float64_BE = exports.Float32_LE = exports.Float32_BE = exports.Float16_LE = exports.Float16_BE = exports.INT64_BE = exports.UINT64_BE = exports.INT64_LE = exports.UINT64_LE = exports.INT32_LE = exports.INT32_BE = exports.INT24_BE = exports.INT24_LE = exports.INT16_LE = exports.INT16_BE = exports.INT8 = exports.UINT32_BE = exports.UINT32_LE = exports.UINT24_BE = exports.UINT24_LE = exports.UINT16_BE = exports.UINT16_LE = exports.UINT8 = void 0;
|
|
27074
|
+
(function (exports$1) {
|
|
27075
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
27076
|
+
exports$1.AnsiStringType = exports$1.StringType = exports$1.BufferType = exports$1.Uint8ArrayType = exports$1.IgnoreType = exports$1.Float80_LE = exports$1.Float80_BE = exports$1.Float64_LE = exports$1.Float64_BE = exports$1.Float32_LE = exports$1.Float32_BE = exports$1.Float16_LE = exports$1.Float16_BE = exports$1.INT64_BE = exports$1.UINT64_BE = exports$1.INT64_LE = exports$1.UINT64_LE = exports$1.INT32_LE = exports$1.INT32_BE = exports$1.INT24_BE = exports$1.INT24_LE = exports$1.INT16_LE = exports$1.INT16_BE = exports$1.INT8 = exports$1.UINT32_BE = exports$1.UINT32_LE = exports$1.UINT24_BE = exports$1.UINT24_LE = exports$1.UINT16_BE = exports$1.UINT16_LE = exports$1.UINT8 = void 0;
|
|
27077
27077
|
const ieee754$1 = ieee754;
|
|
27078
27078
|
// Primitive types
|
|
27079
27079
|
function dv(array) {
|
|
@@ -27082,7 +27082,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27082
27082
|
/**
|
|
27083
27083
|
* 8-bit unsigned integer
|
|
27084
27084
|
*/
|
|
27085
|
-
exports.UINT8 = {
|
|
27085
|
+
exports$1.UINT8 = {
|
|
27086
27086
|
len: 1,
|
|
27087
27087
|
get(array, offset) {
|
|
27088
27088
|
return dv(array).getUint8(offset);
|
|
@@ -27095,7 +27095,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27095
27095
|
/**
|
|
27096
27096
|
* 16-bit unsigned integer, Little Endian byte order
|
|
27097
27097
|
*/
|
|
27098
|
-
exports.UINT16_LE = {
|
|
27098
|
+
exports$1.UINT16_LE = {
|
|
27099
27099
|
len: 2,
|
|
27100
27100
|
get(array, offset) {
|
|
27101
27101
|
return dv(array).getUint16(offset, true);
|
|
@@ -27108,7 +27108,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27108
27108
|
/**
|
|
27109
27109
|
* 16-bit unsigned integer, Big Endian byte order
|
|
27110
27110
|
*/
|
|
27111
|
-
exports.UINT16_BE = {
|
|
27111
|
+
exports$1.UINT16_BE = {
|
|
27112
27112
|
len: 2,
|
|
27113
27113
|
get(array, offset) {
|
|
27114
27114
|
return dv(array).getUint16(offset);
|
|
@@ -27121,7 +27121,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27121
27121
|
/**
|
|
27122
27122
|
* 24-bit unsigned integer, Little Endian byte order
|
|
27123
27123
|
*/
|
|
27124
|
-
exports.UINT24_LE = {
|
|
27124
|
+
exports$1.UINT24_LE = {
|
|
27125
27125
|
len: 3,
|
|
27126
27126
|
get(array, offset) {
|
|
27127
27127
|
const dataView = dv(array);
|
|
@@ -27137,7 +27137,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27137
27137
|
/**
|
|
27138
27138
|
* 24-bit unsigned integer, Big Endian byte order
|
|
27139
27139
|
*/
|
|
27140
|
-
exports.UINT24_BE = {
|
|
27140
|
+
exports$1.UINT24_BE = {
|
|
27141
27141
|
len: 3,
|
|
27142
27142
|
get(array, offset) {
|
|
27143
27143
|
const dataView = dv(array);
|
|
@@ -27153,7 +27153,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27153
27153
|
/**
|
|
27154
27154
|
* 32-bit unsigned integer, Little Endian byte order
|
|
27155
27155
|
*/
|
|
27156
|
-
exports.UINT32_LE = {
|
|
27156
|
+
exports$1.UINT32_LE = {
|
|
27157
27157
|
len: 4,
|
|
27158
27158
|
get(array, offset) {
|
|
27159
27159
|
return dv(array).getUint32(offset, true);
|
|
@@ -27166,7 +27166,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27166
27166
|
/**
|
|
27167
27167
|
* 32-bit unsigned integer, Big Endian byte order
|
|
27168
27168
|
*/
|
|
27169
|
-
exports.UINT32_BE = {
|
|
27169
|
+
exports$1.UINT32_BE = {
|
|
27170
27170
|
len: 4,
|
|
27171
27171
|
get(array, offset) {
|
|
27172
27172
|
return dv(array).getUint32(offset);
|
|
@@ -27179,7 +27179,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27179
27179
|
/**
|
|
27180
27180
|
* 8-bit signed integer
|
|
27181
27181
|
*/
|
|
27182
|
-
exports.INT8 = {
|
|
27182
|
+
exports$1.INT8 = {
|
|
27183
27183
|
len: 1,
|
|
27184
27184
|
get(array, offset) {
|
|
27185
27185
|
return dv(array).getInt8(offset);
|
|
@@ -27192,7 +27192,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27192
27192
|
/**
|
|
27193
27193
|
* 16-bit signed integer, Big Endian byte order
|
|
27194
27194
|
*/
|
|
27195
|
-
exports.INT16_BE = {
|
|
27195
|
+
exports$1.INT16_BE = {
|
|
27196
27196
|
len: 2,
|
|
27197
27197
|
get(array, offset) {
|
|
27198
27198
|
return dv(array).getInt16(offset);
|
|
@@ -27205,7 +27205,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27205
27205
|
/**
|
|
27206
27206
|
* 16-bit signed integer, Little Endian byte order
|
|
27207
27207
|
*/
|
|
27208
|
-
exports.INT16_LE = {
|
|
27208
|
+
exports$1.INT16_LE = {
|
|
27209
27209
|
len: 2,
|
|
27210
27210
|
get(array, offset) {
|
|
27211
27211
|
return dv(array).getInt16(offset, true);
|
|
@@ -27218,10 +27218,10 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27218
27218
|
/**
|
|
27219
27219
|
* 24-bit signed integer, Little Endian byte order
|
|
27220
27220
|
*/
|
|
27221
|
-
exports.INT24_LE = {
|
|
27221
|
+
exports$1.INT24_LE = {
|
|
27222
27222
|
len: 3,
|
|
27223
27223
|
get(array, offset) {
|
|
27224
|
-
const unsigned = exports.UINT24_LE.get(array, offset);
|
|
27224
|
+
const unsigned = exports$1.UINT24_LE.get(array, offset);
|
|
27225
27225
|
return unsigned > 0x7fffff ? unsigned - 0x1000000 : unsigned;
|
|
27226
27226
|
},
|
|
27227
27227
|
put(array, offset, value) {
|
|
@@ -27234,10 +27234,10 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27234
27234
|
/**
|
|
27235
27235
|
* 24-bit signed integer, Big Endian byte order
|
|
27236
27236
|
*/
|
|
27237
|
-
exports.INT24_BE = {
|
|
27237
|
+
exports$1.INT24_BE = {
|
|
27238
27238
|
len: 3,
|
|
27239
27239
|
get(array, offset) {
|
|
27240
|
-
const unsigned = exports.UINT24_BE.get(array, offset);
|
|
27240
|
+
const unsigned = exports$1.UINT24_BE.get(array, offset);
|
|
27241
27241
|
return unsigned > 0x7fffff ? unsigned - 0x1000000 : unsigned;
|
|
27242
27242
|
},
|
|
27243
27243
|
put(array, offset, value) {
|
|
@@ -27250,7 +27250,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27250
27250
|
/**
|
|
27251
27251
|
* 32-bit signed integer, Big Endian byte order
|
|
27252
27252
|
*/
|
|
27253
|
-
exports.INT32_BE = {
|
|
27253
|
+
exports$1.INT32_BE = {
|
|
27254
27254
|
len: 4,
|
|
27255
27255
|
get(array, offset) {
|
|
27256
27256
|
return dv(array).getInt32(offset);
|
|
@@ -27263,7 +27263,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27263
27263
|
/**
|
|
27264
27264
|
* 32-bit signed integer, Big Endian byte order
|
|
27265
27265
|
*/
|
|
27266
|
-
exports.INT32_LE = {
|
|
27266
|
+
exports$1.INT32_LE = {
|
|
27267
27267
|
len: 4,
|
|
27268
27268
|
get(array, offset) {
|
|
27269
27269
|
return dv(array).getInt32(offset, true);
|
|
@@ -27276,7 +27276,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27276
27276
|
/**
|
|
27277
27277
|
* 64-bit unsigned integer, Little Endian byte order
|
|
27278
27278
|
*/
|
|
27279
|
-
exports.UINT64_LE = {
|
|
27279
|
+
exports$1.UINT64_LE = {
|
|
27280
27280
|
len: 8,
|
|
27281
27281
|
get(array, offset) {
|
|
27282
27282
|
return dv(array).getBigUint64(offset, true);
|
|
@@ -27289,7 +27289,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27289
27289
|
/**
|
|
27290
27290
|
* 64-bit signed integer, Little Endian byte order
|
|
27291
27291
|
*/
|
|
27292
|
-
exports.INT64_LE = {
|
|
27292
|
+
exports$1.INT64_LE = {
|
|
27293
27293
|
len: 8,
|
|
27294
27294
|
get(array, offset) {
|
|
27295
27295
|
return dv(array).getBigInt64(offset, true);
|
|
@@ -27302,7 +27302,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27302
27302
|
/**
|
|
27303
27303
|
* 64-bit unsigned integer, Big Endian byte order
|
|
27304
27304
|
*/
|
|
27305
|
-
exports.UINT64_BE = {
|
|
27305
|
+
exports$1.UINT64_BE = {
|
|
27306
27306
|
len: 8,
|
|
27307
27307
|
get(array, offset) {
|
|
27308
27308
|
return dv(array).getBigUint64(offset);
|
|
@@ -27315,7 +27315,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27315
27315
|
/**
|
|
27316
27316
|
* 64-bit signed integer, Big Endian byte order
|
|
27317
27317
|
*/
|
|
27318
|
-
exports.INT64_BE = {
|
|
27318
|
+
exports$1.INT64_BE = {
|
|
27319
27319
|
len: 8,
|
|
27320
27320
|
get(array, offset) {
|
|
27321
27321
|
return dv(array).getBigInt64(offset);
|
|
@@ -27328,7 +27328,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27328
27328
|
/**
|
|
27329
27329
|
* IEEE 754 16-bit (half precision) float, big endian
|
|
27330
27330
|
*/
|
|
27331
|
-
exports.Float16_BE = {
|
|
27331
|
+
exports$1.Float16_BE = {
|
|
27332
27332
|
len: 2,
|
|
27333
27333
|
get(dataView, offset) {
|
|
27334
27334
|
return ieee754$1.read(dataView, offset, false, 10, this.len);
|
|
@@ -27341,7 +27341,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27341
27341
|
/**
|
|
27342
27342
|
* IEEE 754 16-bit (half precision) float, little endian
|
|
27343
27343
|
*/
|
|
27344
|
-
exports.Float16_LE = {
|
|
27344
|
+
exports$1.Float16_LE = {
|
|
27345
27345
|
len: 2,
|
|
27346
27346
|
get(array, offset) {
|
|
27347
27347
|
return ieee754$1.read(array, offset, true, 10, this.len);
|
|
@@ -27354,7 +27354,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27354
27354
|
/**
|
|
27355
27355
|
* IEEE 754 32-bit (single precision) float, big endian
|
|
27356
27356
|
*/
|
|
27357
|
-
exports.Float32_BE = {
|
|
27357
|
+
exports$1.Float32_BE = {
|
|
27358
27358
|
len: 4,
|
|
27359
27359
|
get(array, offset) {
|
|
27360
27360
|
return dv(array).getFloat32(offset);
|
|
@@ -27367,7 +27367,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27367
27367
|
/**
|
|
27368
27368
|
* IEEE 754 32-bit (single precision) float, little endian
|
|
27369
27369
|
*/
|
|
27370
|
-
exports.Float32_LE = {
|
|
27370
|
+
exports$1.Float32_LE = {
|
|
27371
27371
|
len: 4,
|
|
27372
27372
|
get(array, offset) {
|
|
27373
27373
|
return dv(array).getFloat32(offset, true);
|
|
@@ -27380,7 +27380,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27380
27380
|
/**
|
|
27381
27381
|
* IEEE 754 64-bit (double precision) float, big endian
|
|
27382
27382
|
*/
|
|
27383
|
-
exports.Float64_BE = {
|
|
27383
|
+
exports$1.Float64_BE = {
|
|
27384
27384
|
len: 8,
|
|
27385
27385
|
get(array, offset) {
|
|
27386
27386
|
return dv(array).getFloat64(offset);
|
|
@@ -27393,7 +27393,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27393
27393
|
/**
|
|
27394
27394
|
* IEEE 754 64-bit (double precision) float, little endian
|
|
27395
27395
|
*/
|
|
27396
|
-
exports.Float64_LE = {
|
|
27396
|
+
exports$1.Float64_LE = {
|
|
27397
27397
|
len: 8,
|
|
27398
27398
|
get(array, offset) {
|
|
27399
27399
|
return dv(array).getFloat64(offset, true);
|
|
@@ -27406,7 +27406,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27406
27406
|
/**
|
|
27407
27407
|
* IEEE 754 80-bit (extended precision) float, big endian
|
|
27408
27408
|
*/
|
|
27409
|
-
exports.Float80_BE = {
|
|
27409
|
+
exports$1.Float80_BE = {
|
|
27410
27410
|
len: 10,
|
|
27411
27411
|
get(array, offset) {
|
|
27412
27412
|
return ieee754$1.read(array, offset, false, 63, this.len);
|
|
@@ -27419,7 +27419,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27419
27419
|
/**
|
|
27420
27420
|
* IEEE 754 80-bit (extended precision) float, little endian
|
|
27421
27421
|
*/
|
|
27422
|
-
exports.Float80_LE = {
|
|
27422
|
+
exports$1.Float80_LE = {
|
|
27423
27423
|
len: 10,
|
|
27424
27424
|
get(array, offset) {
|
|
27425
27425
|
return ieee754$1.read(array, offset, true, 63, this.len);
|
|
@@ -27443,7 +27443,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27443
27443
|
get(array, off) {
|
|
27444
27444
|
}
|
|
27445
27445
|
}
|
|
27446
|
-
exports.IgnoreType = IgnoreType;
|
|
27446
|
+
exports$1.IgnoreType = IgnoreType;
|
|
27447
27447
|
class Uint8ArrayType {
|
|
27448
27448
|
constructor(len) {
|
|
27449
27449
|
this.len = len;
|
|
@@ -27452,7 +27452,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27452
27452
|
return array.subarray(offset, offset + this.len);
|
|
27453
27453
|
}
|
|
27454
27454
|
}
|
|
27455
|
-
exports.Uint8ArrayType = Uint8ArrayType;
|
|
27455
|
+
exports$1.Uint8ArrayType = Uint8ArrayType;
|
|
27456
27456
|
class BufferType {
|
|
27457
27457
|
constructor(len) {
|
|
27458
27458
|
this.len = len;
|
|
@@ -27461,7 +27461,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27461
27461
|
return Buffer.from(uint8Array.subarray(off, off + this.len));
|
|
27462
27462
|
}
|
|
27463
27463
|
}
|
|
27464
|
-
exports.BufferType = BufferType;
|
|
27464
|
+
exports$1.BufferType = BufferType;
|
|
27465
27465
|
/**
|
|
27466
27466
|
* Consume a fixed number of bytes from the stream and return a string with a specified encoding.
|
|
27467
27467
|
*/
|
|
@@ -27474,7 +27474,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27474
27474
|
return Buffer.from(uint8Array).toString(this.encoding, offset, offset + this.len);
|
|
27475
27475
|
}
|
|
27476
27476
|
}
|
|
27477
|
-
exports.StringType = StringType;
|
|
27477
|
+
exports$1.StringType = StringType;
|
|
27478
27478
|
/**
|
|
27479
27479
|
* ANSI Latin 1 String
|
|
27480
27480
|
* Using windows-1252 / ISO 8859-1 decoding
|
|
@@ -27516,7 +27516,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27516
27516
|
return AnsiStringType.decode(buffer, offset, offset + this.len);
|
|
27517
27517
|
}
|
|
27518
27518
|
}
|
|
27519
|
-
exports.AnsiStringType = AnsiStringType;
|
|
27519
|
+
exports$1.AnsiStringType = AnsiStringType;
|
|
27520
27520
|
AnsiStringType.windows1252 = [8364, 129, 8218, 402, 8222, 8230, 8224, 8225, 710, 8240, 352,
|
|
27521
27521
|
8249, 338, 141, 381, 143, 144, 8216, 8217, 8220, 8221, 8226, 8211, 8212, 732,
|
|
27522
27522
|
8482, 353, 8250, 339, 157, 382, 376, 160, 161, 162, 163, 164, 165, 166, 167, 168,
|
|
@@ -29426,16 +29426,16 @@ crop$1.default = crop;
|
|
|
29426
29426
|
|
|
29427
29427
|
var StickerTypes = {};
|
|
29428
29428
|
|
|
29429
|
-
(function (exports) {
|
|
29430
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29431
|
-
exports.StickerTypes = void 0;
|
|
29429
|
+
(function (exports$1) {
|
|
29430
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
29431
|
+
exports$1.StickerTypes = void 0;
|
|
29432
29432
|
(function (StickerTypes) {
|
|
29433
29433
|
StickerTypes["DEFAULT"] = "default";
|
|
29434
29434
|
StickerTypes["CROPPED"] = "crop";
|
|
29435
29435
|
StickerTypes["FULL"] = "full";
|
|
29436
29436
|
StickerTypes["CIRCLE"] = "circle";
|
|
29437
29437
|
StickerTypes["ROUNDED"] = "rounded";
|
|
29438
|
-
})(exports.StickerTypes || (exports.StickerTypes = {}));
|
|
29438
|
+
})(exports$1.StickerTypes || (exports$1.StickerTypes = {}));
|
|
29439
29439
|
} (StickerTypes));
|
|
29440
29440
|
|
|
29441
29441
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -29968,7 +29968,7 @@ var hasRequiredLibwebp$1;
|
|
|
29968
29968
|
function requireLibwebp$1 () {
|
|
29969
29969
|
if (hasRequiredLibwebp$1) return libwebp$1.exports;
|
|
29970
29970
|
hasRequiredLibwebp$1 = 1;
|
|
29971
|
-
(function (module, exports) {
|
|
29971
|
+
(function (module, exports$1) {
|
|
29972
29972
|
var LibWebP = (() => {
|
|
29973
29973
|
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
29974
29974
|
if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
|
|
@@ -29976,7 +29976,7 @@ function requireLibwebp$1 () {
|
|
|
29976
29976
|
function(LibWebP) {
|
|
29977
29977
|
LibWebP = LibWebP || {};
|
|
29978
29978
|
|
|
29979
|
-
var Module=typeof LibWebP!="undefined"?LibWebP:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject;});var moduleOverrides=Object.assign({},Module);var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKER=typeof importScripts=="function";var ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary;var fs;var nodePath;var requireNodeFS;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require$$1$1.dirname(scriptDirectory)+"/";}else {scriptDirectory=__dirname+"/";}requireNodeFS=(()=>{if(!nodePath){fs=require$$0$5;nodePath=require$$1$1;}});read_=function shell_read(filename,binary){requireNodeFS();filename=nodePath["normalize"](filename);return fs.readFileSync(filename,binary?undefined:"utf8")};readBinary=(filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret);}return ret});readAsync=((filename,onload,onerror)=>{requireNodeFS();filename=nodePath["normalize"](filename);fs.readFile(filename,function(err,data){if(err)onerror(err);else onload(data.buffer);});});if(process["argv"].length>1){process["argv"][1].replace(/\\/g,"/");}process["argv"].slice(2);process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",function(reason){throw reason});Module["inspect"]=function(){return "[Emscripten Module object]"};}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href;}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src;}if(_scriptDir){scriptDirectory=_scriptDir;}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1);}else {scriptDirectory="";}{read_=(url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText});if(ENVIRONMENT_IS_WORKER){readBinary=(url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)});}readAsync=((url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=(()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror();});xhr.onerror=onerror;xhr.send(null);});}}else;Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])Module["arguments"];if(Module["thisProgram"])Module["thisProgram"];if(Module["quit"])Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];Module["noExitRuntime"]||true;if(typeof WebAssembly!="object"){abort("no native wasm support detected");}var wasmMemory;var ABORT=false;function assert(condition,text){if(!condition){abort(text);}}function getCFunc(ident){var func=Module["_"+ident];return func}function ccall(ident,returnType,argTypes,args,opts){var toC={"string":function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=stackAlloc(len);stringToUTF8(str,ret,len);}return ret},"array":function(arr){var ret=stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}};function convertReturnValue(ret){if(returnType==="string")return UTF8ToString(ret);if(returnType==="boolean")return Boolean(ret);return ret}var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=stackSave();cArgs[i]=converter(args[i]);}else {cArgs[i]=args[i];}}}var ret=func.apply(null,cArgs);function onDone(ret){if(stack!==0)stackRestore(stack);return convertReturnValue(ret)}ret=onDone(ret);return ret}function cwrap(ident,returnType,argTypes,opts){argTypes=argTypes||[];var numericArgs=argTypes.every(function(type){return type==="number"});var numericRet=returnType!=="string";if(numericRet&&numericArgs&&!opts){return getCFunc(ident)}return function(){return ccall(ident,returnType,argTypes,arguments)}}var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(heap,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heap[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else {var str="";while(idx<endPtr){var u0=heap[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heap[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heap[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2;}else {u0=(u0&7)<<18|u1<<12|u2<<6|heap[idx++]&63;}if(u0<65536){str+=String.fromCharCode(u0);}else {var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023);}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023;}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u;}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63;}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;}else {if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4;}return len}var UTF16Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf-16le"):undefined;function UTF16ToString(ptr,maxBytesToRead){var endPtr=ptr;var idx=endPtr>>1;var maxIdx=idx+maxBytesToRead/2;while(!(idx>=maxIdx)&&HEAPU16[idx])++idx;endPtr=idx<<1;if(endPtr-ptr>32&&UTF16Decoder){return UTF16Decoder.decode(HEAPU8.subarray(ptr,endPtr))}else {var str="";for(var i=0;!(i>=maxBytesToRead/2);++i){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)break;str+=String.fromCharCode(codeUnit);}return str}}function stringToUTF16(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647;}if(maxBytesToWrite<2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite<str.length*2?maxBytesToWrite/2:str.length;for(var i=0;i<numCharsToWrite;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr>>1]=codeUnit;outPtr+=2;}HEAP16[outPtr>>1]=0;return outPtr-startPtr}function lengthBytesUTF16(str){return str.length*2}function UTF32ToString(ptr,maxBytesToRead){var i=0;var str="";while(!(i>=maxBytesToRead/4)){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)break;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023);}else {str+=String.fromCharCode(utf32);}}return str}function stringToUTF32(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647;}if(maxBytesToWrite<4)return 0;var startPtr=outPtr;var endPtr=startPtr+maxBytesToWrite-4;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++i);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023;}HEAP32[outPtr>>2]=codeUnit;outPtr+=4;if(outPtr+4>endPtr)break}HEAP32[outPtr>>2]=0;return outPtr-startPtr}function lengthBytesUTF32(str){var len=0;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343)++i;len+=4;}return len}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer);}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf);}Module["INITIAL_MEMORY"]||16777216;var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift());}}callRuntimeCallbacks(__ATPRERUN__);}function initRuntime(){callRuntimeCallbacks(__ATINIT__);}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift());}}callRuntimeCallbacks(__ATPOSTRUN__);}function addOnPreRun(cb){__ATPRERUN__.unshift(cb);}function addOnInit(cb){__ATINIT__.unshift(cb);}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb);}var runDependencies=0;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies);}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies);}if(runDependencies==0){if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback();}}}Module["preloadedImages"]={};Module["preloadedAudios"]={};function abort(what){{if(Module["onAbort"]){Module["onAbort"](what);}}what="Aborted("+what+")";err(what);ABORT=true;what+=". Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith("file://")}var wasmBinaryFile;wasmBinaryFile="libwebp.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile);}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}else {throw "both async and sync fetching of the wasm failed"}}catch(err){abort(err);}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch=="function"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw "failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary(wasmBinaryFile)})}else {if(readAsync){return new Promise(function(resolve,reject){readAsync(wasmBinaryFile,function(response){resolve(new Uint8Array(response));},reject);})}}}return Promise.resolve().then(function(){return getBinary(wasmBinaryFile)})}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmMemory=Module["asm"]["r"];updateGlobalBufferAndViews(wasmMemory.buffer);wasmTable=Module["asm"]["z"];addOnInit(Module["asm"]["s"]);removeRunDependency();}addRunDependency();function receiveInstantiationResult(result){receiveInstance(result["instance"]);}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason);})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiationResult,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiationResult)})})}else {return instantiateArrayBuffer(receiveInstantiationResult)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync().catch(readyPromiseReject);return {}}function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func=="number"){if(callback.arg===undefined){getWasmTableEntry(func)();}else {getWasmTableEntry(func)(callback.arg);}}else {func(callback.arg===undefined?null:callback.arg);}}}var wasmTableMirror=[];function getWasmTableEntry(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr);}return func}function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"]);}function __embind_register_bigint(primitiveType,name,size,minRange,maxRange){}function getShiftFromSize(size){switch(size){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+size)}}function embind_init_charCodes(){var codes=new Array(256);for(var i=0;i<256;++i){codes[i]=String.fromCharCode(i);}embind_charCodes=codes;}var embind_charCodes=undefined;function readLatin1String(ptr){var ret="";var c=ptr;while(HEAPU8[c]){ret+=embind_charCodes[HEAPU8[c++]];}return ret}var awaitingDependencies={};var registeredTypes={};var typeDependencies={};var char_0=48;var char_9=57;function makeLegalFunctionName(name){if(undefined===name){return "_unknown"}name=name.replace(/[^a-zA-Z0-9_]/g,"$");var f=name.charCodeAt(0);if(f>=char_0&&f<=char_9){return "_"+name}else {return name}}function createNamedFunction(name,body){name=makeLegalFunctionName(name);return new Function("body","return function "+name+"() {\n"+' "use strict";'+" return body.apply(this, arguments);\n"+"};\n")(body)}function extendError(baseErrorType,errorName){var errorClass=createNamedFunction(errorName,function(message){this.name=errorName;this.message=message;var stack=new Error(message).stack;if(stack!==undefined){this.stack=this.toString()+"\n"+stack.replace(/^Error(:[^\n]*)?\n/,"");}});errorClass.prototype=Object.create(baseErrorType.prototype);errorClass.prototype.constructor=errorClass;errorClass.prototype.toString=function(){if(this.message===undefined){return this.name}else {return this.name+": "+this.message}};return errorClass}var BindingError=undefined;function throwBindingError(message){throw new BindingError(message)}var InternalError=undefined;function throwInternalError(message){throw new InternalError(message)}function whenDependentTypesAreResolved(myTypes,dependentTypes,getTypeConverters){myTypes.forEach(function(type){typeDependencies[type]=dependentTypes;});function onComplete(typeConverters){var myTypeConverters=getTypeConverters(typeConverters);if(myTypeConverters.length!==myTypes.length){throwInternalError("Mismatched type converter count");}for(var i=0;i<myTypes.length;++i){registerType(myTypes[i],myTypeConverters[i]);}}var typeConverters=new Array(dependentTypes.length);var unregisteredTypes=[];var registered=0;dependentTypes.forEach(function(dt,i){if(registeredTypes.hasOwnProperty(dt)){typeConverters[i]=registeredTypes[dt];}else {unregisteredTypes.push(dt);if(!awaitingDependencies.hasOwnProperty(dt)){awaitingDependencies[dt]=[];}awaitingDependencies[dt].push(function(){typeConverters[i]=registeredTypes[dt];++registered;if(registered===unregisteredTypes.length){onComplete(typeConverters);}});}});if(0===unregisteredTypes.length){onComplete(typeConverters);}}function registerType(rawType,registeredInstance,options={}){if(!("argPackAdvance"in registeredInstance)){throw new TypeError("registerType registeredInstance requires argPackAdvance")}var name=registeredInstance.name;if(!rawType){throwBindingError('type "'+name+'" must have a positive integer typeid pointer');}if(registeredTypes.hasOwnProperty(rawType)){if(options.ignoreDuplicateRegistrations){return}else {throwBindingError("Cannot register type '"+name+"' twice");}}registeredTypes[rawType]=registeredInstance;delete typeDependencies[rawType];if(awaitingDependencies.hasOwnProperty(rawType)){var callbacks=awaitingDependencies[rawType];delete awaitingDependencies[rawType];callbacks.forEach(function(cb){cb();});}}function __embind_register_bool(rawType,name,size,trueValue,falseValue){var shift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(wt){return !!wt},"toWireType":function(destructors,o){return o?trueValue:falseValue},"argPackAdvance":8,"readValueFromPointer":function(pointer){var heap;if(size===1){heap=HEAP8;}else if(size===2){heap=HEAP16;}else if(size===4){heap=HEAP32;}else {throw new TypeError("Unknown boolean type size: "+name)}return this["fromWireType"](heap[pointer>>shift])},destructorFunction:null});}function ClassHandle_isAliasOf(other){if(!(this instanceof ClassHandle)){return false}if(!(other instanceof ClassHandle)){return false}var leftClass=this.$$.ptrType.registeredClass;var left=this.$$.ptr;var rightClass=other.$$.ptrType.registeredClass;var right=other.$$.ptr;while(leftClass.baseClass){left=leftClass.upcast(left);leftClass=leftClass.baseClass;}while(rightClass.baseClass){right=rightClass.upcast(right);rightClass=rightClass.baseClass;}return leftClass===rightClass&&left===right}function shallowCopyInternalPointer(o){return {count:o.count,deleteScheduled:o.deleteScheduled,preservePointerOnDelete:o.preservePointerOnDelete,ptr:o.ptr,ptrType:o.ptrType,smartPtr:o.smartPtr,smartPtrType:o.smartPtrType}}function throwInstanceAlreadyDeleted(obj){function getInstanceTypeName(handle){return handle.$$.ptrType.registeredClass.name}throwBindingError(getInstanceTypeName(obj)+" instance already deleted");}var finalizationRegistry=false;function detachFinalizer(handle){}function runDestructor($$){if($$.smartPtr){$$.smartPtrType.rawDestructor($$.smartPtr);}else {$$.ptrType.registeredClass.rawDestructor($$.ptr);}}function releaseClassHandle($$){$$.count.value-=1;var toDelete=0===$$.count.value;if(toDelete){runDestructor($$);}}function downcastPointer(ptr,ptrClass,desiredClass){if(ptrClass===desiredClass){return ptr}if(undefined===desiredClass.baseClass){return null}var rv=downcastPointer(ptr,ptrClass,desiredClass.baseClass);if(rv===null){return null}return desiredClass.downcast(rv)}var registeredPointers={};function getInheritedInstanceCount(){return Object.keys(registeredInstances).length}function getLiveInheritedInstances(){var rv=[];for(var k in registeredInstances){if(registeredInstances.hasOwnProperty(k)){rv.push(registeredInstances[k]);}}return rv}var deletionQueue=[];function flushPendingDeletes(){while(deletionQueue.length){var obj=deletionQueue.pop();obj.$$.deleteScheduled=false;obj["delete"]();}}var delayFunction=undefined;function setDelayFunction(fn){delayFunction=fn;if(deletionQueue.length&&delayFunction){delayFunction(flushPendingDeletes);}}function init_embind(){Module["getInheritedInstanceCount"]=getInheritedInstanceCount;Module["getLiveInheritedInstances"]=getLiveInheritedInstances;Module["flushPendingDeletes"]=flushPendingDeletes;Module["setDelayFunction"]=setDelayFunction;}var registeredInstances={};function getBasestPointer(class_,ptr){if(ptr===undefined){throwBindingError("ptr should not be undefined");}while(class_.baseClass){ptr=class_.upcast(ptr);class_=class_.baseClass;}return ptr}function getInheritedInstance(class_,ptr){ptr=getBasestPointer(class_,ptr);return registeredInstances[ptr]}function makeClassHandle(prototype,record){if(!record.ptrType||!record.ptr){throwInternalError("makeClassHandle requires ptr and ptrType");}var hasSmartPtrType=!!record.smartPtrType;var hasSmartPtr=!!record.smartPtr;if(hasSmartPtrType!==hasSmartPtr){throwInternalError("Both smartPtrType and smartPtr must be specified");}record.count={value:1};return attachFinalizer(Object.create(prototype,{$$:{value:record}}))}function RegisteredPointer_fromWireType(ptr){var rawPointer=this.getPointee(ptr);if(!rawPointer){this.destructor(ptr);return null}var registeredInstance=getInheritedInstance(this.registeredClass,rawPointer);if(undefined!==registeredInstance){if(0===registeredInstance.$$.count.value){registeredInstance.$$.ptr=rawPointer;registeredInstance.$$.smartPtr=ptr;return registeredInstance["clone"]()}else {var rv=registeredInstance["clone"]();this.destructor(ptr);return rv}}function makeDefaultHandle(){if(this.isSmartPointer){return makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:rawPointer,smartPtrType:this,smartPtr:ptr})}else {return makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:ptr})}}var actualType=this.registeredClass.getActualType(rawPointer);var registeredPointerRecord=registeredPointers[actualType];if(!registeredPointerRecord){return makeDefaultHandle.call(this)}var toType;if(this.isConst){toType=registeredPointerRecord.constPointerType;}else {toType=registeredPointerRecord.pointerType;}var dp=downcastPointer(rawPointer,this.registeredClass,toType.registeredClass);if(dp===null){return makeDefaultHandle.call(this)}if(this.isSmartPointer){return makeClassHandle(toType.registeredClass.instancePrototype,{ptrType:toType,ptr:dp,smartPtrType:this,smartPtr:ptr})}else {return makeClassHandle(toType.registeredClass.instancePrototype,{ptrType:toType,ptr:dp})}}function attachFinalizer(handle){if("undefined"===typeof FinalizationRegistry){attachFinalizer=(handle=>handle);return handle}finalizationRegistry=new FinalizationRegistry(info=>{releaseClassHandle(info.$$);});attachFinalizer=(handle=>{var $$=handle.$$;var hasSmartPtr=!!$$.smartPtr;if(hasSmartPtr){var info={$$:$$};finalizationRegistry.register(handle,info,handle);}return handle});detachFinalizer=(handle=>finalizationRegistry.unregister(handle));return attachFinalizer(handle)}function ClassHandle_clone(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.preservePointerOnDelete){this.$$.count.value+=1;return this}else {var clone=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));clone.$$.count.value+=1;clone.$$.deleteScheduled=false;return clone}}function ClassHandle_delete(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete){throwBindingError("Object already scheduled for deletion");}detachFinalizer(this);releaseClassHandle(this.$$);if(!this.$$.preservePointerOnDelete){this.$$.smartPtr=undefined;this.$$.ptr=undefined;}}function ClassHandle_isDeleted(){return !this.$$.ptr}function ClassHandle_deleteLater(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete){throwBindingError("Object already scheduled for deletion");}deletionQueue.push(this);if(deletionQueue.length===1&&delayFunction){delayFunction(flushPendingDeletes);}this.$$.deleteScheduled=true;return this}function init_ClassHandle(){ClassHandle.prototype["isAliasOf"]=ClassHandle_isAliasOf;ClassHandle.prototype["clone"]=ClassHandle_clone;ClassHandle.prototype["delete"]=ClassHandle_delete;ClassHandle.prototype["isDeleted"]=ClassHandle_isDeleted;ClassHandle.prototype["deleteLater"]=ClassHandle_deleteLater;}function ClassHandle(){}function ensureOverloadTable(proto,methodName,humanName){if(undefined===proto[methodName].overloadTable){var prevFunc=proto[methodName];proto[methodName]=function(){if(!proto[methodName].overloadTable.hasOwnProperty(arguments.length)){throwBindingError("Function '"+humanName+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+proto[methodName].overloadTable+")!");}return proto[methodName].overloadTable[arguments.length].apply(this,arguments)};proto[methodName].overloadTable=[];proto[methodName].overloadTable[prevFunc.argCount]=prevFunc;}}function exposePublicSymbol(name,value,numArguments){if(Module.hasOwnProperty(name)){{throwBindingError("Cannot register public name '"+name+"' twice");}ensureOverloadTable(Module,name,name);if(Module.hasOwnProperty(numArguments)){throwBindingError("Cannot register multiple overloads of a function with the same number of arguments ("+numArguments+")!");}Module[name].overloadTable[numArguments]=value;}else {Module[name]=value;}}function RegisteredClass(name,constructor,instancePrototype,rawDestructor,baseClass,getActualType,upcast,downcast){this.name=name;this.constructor=constructor;this.instancePrototype=instancePrototype;this.rawDestructor=rawDestructor;this.baseClass=baseClass;this.getActualType=getActualType;this.upcast=upcast;this.downcast=downcast;this.pureVirtualFunctions=[];}function upcastPointer(ptr,ptrClass,desiredClass){while(ptrClass!==desiredClass){if(!ptrClass.upcast){throwBindingError("Expected null or instance of "+desiredClass.name+", got an instance of "+ptrClass.name);}ptr=ptrClass.upcast(ptr);ptrClass=ptrClass.baseClass;}return ptr}function constNoSmartPtrRawPointerToWireType(destructors,handle){if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}return 0}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;var ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);return ptr}function genericPointerToWireType(destructors,handle){var ptr;if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}if(this.isSmartPointer){ptr=this.rawConstructor();if(destructors!==null){destructors.push(this.rawDestructor,ptr);}return ptr}else {return 0}}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}if(!this.isConst&&handle.$$.ptrType.isConst){throwBindingError("Cannot convert argument of type "+(handle.$$.smartPtrType?handle.$$.smartPtrType.name:handle.$$.ptrType.name)+" to parameter type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);if(this.isSmartPointer){if(undefined===handle.$$.smartPtr){throwBindingError("Passing raw pointer to smart pointer is illegal");}switch(this.sharingPolicy){case 0:if(handle.$$.smartPtrType===this){ptr=handle.$$.smartPtr;}else {throwBindingError("Cannot convert argument of type "+(handle.$$.smartPtrType?handle.$$.smartPtrType.name:handle.$$.ptrType.name)+" to parameter type "+this.name);}break;case 1:ptr=handle.$$.smartPtr;break;case 2:if(handle.$$.smartPtrType===this){ptr=handle.$$.smartPtr;}else {var clonedHandle=handle["clone"]();ptr=this.rawShare(ptr,Emval.toHandle(function(){clonedHandle["delete"]();}));if(destructors!==null){destructors.push(this.rawDestructor,ptr);}}break;default:throwBindingError("Unsupporting sharing policy");}}return ptr}function nonConstNoSmartPtrRawPointerToWireType(destructors,handle){if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}return 0}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}if(handle.$$.ptrType.isConst){throwBindingError("Cannot convert argument of type "+handle.$$.ptrType.name+" to parameter type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;var ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);return ptr}function simpleReadValueFromPointer(pointer){return this["fromWireType"](HEAPU32[pointer>>2])}function RegisteredPointer_getPointee(ptr){if(this.rawGetPointee){ptr=this.rawGetPointee(ptr);}return ptr}function RegisteredPointer_destructor(ptr){if(this.rawDestructor){this.rawDestructor(ptr);}}function RegisteredPointer_deleteObject(handle){if(handle!==null){handle["delete"]();}}function init_RegisteredPointer(){RegisteredPointer.prototype.getPointee=RegisteredPointer_getPointee;RegisteredPointer.prototype.destructor=RegisteredPointer_destructor;RegisteredPointer.prototype["argPackAdvance"]=8;RegisteredPointer.prototype["readValueFromPointer"]=simpleReadValueFromPointer;RegisteredPointer.prototype["deleteObject"]=RegisteredPointer_deleteObject;RegisteredPointer.prototype["fromWireType"]=RegisteredPointer_fromWireType;}function RegisteredPointer(name,registeredClass,isReference,isConst,isSmartPointer,pointeeType,sharingPolicy,rawGetPointee,rawConstructor,rawShare,rawDestructor){this.name=name;this.registeredClass=registeredClass;this.isReference=isReference;this.isConst=isConst;this.isSmartPointer=isSmartPointer;this.pointeeType=pointeeType;this.sharingPolicy=sharingPolicy;this.rawGetPointee=rawGetPointee;this.rawConstructor=rawConstructor;this.rawShare=rawShare;this.rawDestructor=rawDestructor;if(!isSmartPointer&®isteredClass.baseClass===undefined){if(isConst){this["toWireType"]=constNoSmartPtrRawPointerToWireType;this.destructorFunction=null;}else {this["toWireType"]=nonConstNoSmartPtrRawPointerToWireType;this.destructorFunction=null;}}else {this["toWireType"]=genericPointerToWireType;}}function replacePublicSymbol(name,value,numArguments){if(!Module.hasOwnProperty(name)){throwInternalError("Replacing nonexistant public symbol");}if(undefined!==Module[name].overloadTable&&undefined!==numArguments);else {Module[name]=value;Module[name].argCount=numArguments;}}function dynCallLegacy(sig,ptr,args){var f=Module["dynCall_"+sig];return args&&args.length?f.apply(null,[ptr].concat(args)):f.call(null,ptr)}function dynCall(sig,ptr,args){if(sig.includes("j")){return dynCallLegacy(sig,ptr,args)}return getWasmTableEntry(ptr).apply(null,args)}function getDynCaller(sig,ptr){var argCache=[];return function(){argCache.length=0;Object.assign(argCache,arguments);return dynCall(sig,ptr,argCache)}}function embind__requireFunction(signature,rawFunction){signature=readLatin1String(signature);function makeDynCaller(){if(signature.includes("j")){return getDynCaller(signature,rawFunction)}return getWasmTableEntry(rawFunction)}var fp=makeDynCaller();if(typeof fp!="function"){throwBindingError("unknown function pointer with signature "+signature+": "+rawFunction);}return fp}var UnboundTypeError=undefined;function getTypeName(type){var ptr=___getTypeName(type);var rv=readLatin1String(ptr);_free(ptr);return rv}function throwUnboundTypeError(message,types){var unboundTypes=[];var seen={};function visit(type){if(seen[type]){return}if(registeredTypes[type]){return}if(typeDependencies[type]){typeDependencies[type].forEach(visit);return}unboundTypes.push(type);seen[type]=true;}types.forEach(visit);throw new UnboundTypeError(message+": "+unboundTypes.map(getTypeName).join([", "]))}function __embind_register_class(rawType,rawPointerType,rawConstPointerType,baseClassRawType,getActualTypeSignature,getActualType,upcastSignature,upcast,downcastSignature,downcast,name,destructorSignature,rawDestructor){name=readLatin1String(name);getActualType=embind__requireFunction(getActualTypeSignature,getActualType);if(upcast){upcast=embind__requireFunction(upcastSignature,upcast);}if(downcast){downcast=embind__requireFunction(downcastSignature,downcast);}rawDestructor=embind__requireFunction(destructorSignature,rawDestructor);var legalFunctionName=makeLegalFunctionName(name);exposePublicSymbol(legalFunctionName,function(){throwUnboundTypeError("Cannot construct "+name+" due to unbound types",[baseClassRawType]);});whenDependentTypesAreResolved([rawType,rawPointerType,rawConstPointerType],baseClassRawType?[baseClassRawType]:[],function(base){base=base[0];var baseClass;var basePrototype;if(baseClassRawType){baseClass=base.registeredClass;basePrototype=baseClass.instancePrototype;}else {basePrototype=ClassHandle.prototype;}var constructor=createNamedFunction(legalFunctionName,function(){if(Object.getPrototypeOf(this)!==instancePrototype){throw new BindingError("Use 'new' to construct "+name)}if(undefined===registeredClass.constructor_body){throw new BindingError(name+" has no accessible constructor")}var body=registeredClass.constructor_body[arguments.length];if(undefined===body){throw new BindingError("Tried to invoke ctor of "+name+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(registeredClass.constructor_body).toString()+") parameters instead!")}return body.apply(this,arguments)});var instancePrototype=Object.create(basePrototype,{constructor:{value:constructor}});constructor.prototype=instancePrototype;var registeredClass=new RegisteredClass(name,constructor,instancePrototype,rawDestructor,baseClass,getActualType,upcast,downcast);var referenceConverter=new RegisteredPointer(name,registeredClass,true,false,false);var pointerConverter=new RegisteredPointer(name+"*",registeredClass,false,false,false);var constPointerConverter=new RegisteredPointer(name+" const*",registeredClass,false,true,false);registeredPointers[rawType]={pointerType:pointerConverter,constPointerType:constPointerConverter};replacePublicSymbol(legalFunctionName,constructor);return [referenceConverter,pointerConverter,constPointerConverter]});}function heap32VectorToArray(count,firstElement){var array=[];for(var i=0;i<count;i++){array.push(HEAP32[(firstElement>>2)+i]);}return array}function runDestructors(destructors){while(destructors.length){var ptr=destructors.pop();var del=destructors.pop();del(ptr);}}function __embind_register_class_constructor(rawClassType,argCount,rawArgTypesAddr,invokerSignature,invoker,rawConstructor){assert(argCount>0);var rawArgTypes=heap32VectorToArray(argCount,rawArgTypesAddr);invoker=embind__requireFunction(invokerSignature,invoker);whenDependentTypesAreResolved([],[rawClassType],function(classType){classType=classType[0];var humanName="constructor "+classType.name;if(undefined===classType.registeredClass.constructor_body){classType.registeredClass.constructor_body=[];}if(undefined!==classType.registeredClass.constructor_body[argCount-1]){throw new BindingError("Cannot register multiple constructors with identical number of parameters ("+(argCount-1)+") for class '"+classType.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!")}classType.registeredClass.constructor_body[argCount-1]=(()=>{throwUnboundTypeError("Cannot construct "+classType.name+" due to unbound types",rawArgTypes);});whenDependentTypesAreResolved([],rawArgTypes,function(argTypes){argTypes.splice(1,0,null);classType.registeredClass.constructor_body[argCount-1]=craftInvokerFunction(humanName,argTypes,null,invoker,rawConstructor);return []});return []});}function new_(constructor,argumentList){if(!(constructor instanceof Function)){throw new TypeError("new_ called with constructor type "+typeof constructor+" which is not a function")}var dummy=createNamedFunction(constructor.name||"unknownFunctionName",function(){});dummy.prototype=constructor.prototype;var obj=new dummy;var r=constructor.apply(obj,argumentList);return r instanceof Object?r:obj}function craftInvokerFunction(humanName,argTypes,classType,cppInvokerFunc,cppTargetFunc){var argCount=argTypes.length;if(argCount<2){throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");}var isClassMethodFunc=argTypes[1]!==null&&classType!==null;var needsDestructorStack=false;for(var i=1;i<argTypes.length;++i){if(argTypes[i]!==null&&argTypes[i].destructorFunction===undefined){needsDestructorStack=true;break}}var returns=argTypes[0].name!=="void";var argsList="";var argsListWired="";for(var i=0;i<argCount-2;++i){argsList+=(i!==0?", ":"")+"arg"+i;argsListWired+=(i!==0?", ":"")+"arg"+i+"Wired";}var invokerFnBody="return function "+makeLegalFunctionName(humanName)+"("+argsList+") {\n"+"if (arguments.length !== "+(argCount-2)+") {\n"+"throwBindingError('function "+humanName+" called with ' + arguments.length + ' arguments, expected "+(argCount-2)+" args!');\n"+"}\n";if(needsDestructorStack){invokerFnBody+="var destructors = [];\n";}var dtorStack=needsDestructorStack?"destructors":"null";var args1=["throwBindingError","invoker","fn","runDestructors","retType","classParam"];var args2=[throwBindingError,cppInvokerFunc,cppTargetFunc,runDestructors,argTypes[0],argTypes[1]];if(isClassMethodFunc){invokerFnBody+="var thisWired = classParam.toWireType("+dtorStack+", this);\n";}for(var i=0;i<argCount-2;++i){invokerFnBody+="var arg"+i+"Wired = argType"+i+".toWireType("+dtorStack+", arg"+i+"); // "+argTypes[i+2].name+"\n";args1.push("argType"+i);args2.push(argTypes[i+2]);}if(isClassMethodFunc){argsListWired="thisWired"+(argsListWired.length>0?", ":"")+argsListWired;}invokerFnBody+=(returns?"var rv = ":"")+"invoker(fn"+(argsListWired.length>0?", ":"")+argsListWired+");\n";if(needsDestructorStack){invokerFnBody+="runDestructors(destructors);\n";}else {for(var i=isClassMethodFunc?1:2;i<argTypes.length;++i){var paramName=i===1?"thisWired":"arg"+(i-2)+"Wired";if(argTypes[i].destructorFunction!==null){invokerFnBody+=paramName+"_dtor("+paramName+"); // "+argTypes[i].name+"\n";args1.push(paramName+"_dtor");args2.push(argTypes[i].destructorFunction);}}}if(returns){invokerFnBody+="var ret = retType.fromWireType(rv);\n"+"return ret;\n";}invokerFnBody+="}\n";args1.push(invokerFnBody);var invokerFunction=new_(Function,args1).apply(null,args2);return invokerFunction}function __embind_register_class_function(rawClassType,methodName,argCount,rawArgTypesAddr,invokerSignature,rawInvoker,context,isPureVirtual){var rawArgTypes=heap32VectorToArray(argCount,rawArgTypesAddr);methodName=readLatin1String(methodName);rawInvoker=embind__requireFunction(invokerSignature,rawInvoker);whenDependentTypesAreResolved([],[rawClassType],function(classType){classType=classType[0];var humanName=classType.name+"."+methodName;if(methodName.startsWith("@@")){methodName=Symbol[methodName.substring(2)];}if(isPureVirtual){classType.registeredClass.pureVirtualFunctions.push(methodName);}function unboundTypesHandler(){throwUnboundTypeError("Cannot call "+humanName+" due to unbound types",rawArgTypes);}var proto=classType.registeredClass.instancePrototype;var method=proto[methodName];if(undefined===method||undefined===method.overloadTable&&method.className!==classType.name&&method.argCount===argCount-2){unboundTypesHandler.argCount=argCount-2;unboundTypesHandler.className=classType.name;proto[methodName]=unboundTypesHandler;}else {ensureOverloadTable(proto,methodName,humanName);proto[methodName].overloadTable[argCount-2]=unboundTypesHandler;}whenDependentTypesAreResolved([],rawArgTypes,function(argTypes){var memberFunction=craftInvokerFunction(humanName,argTypes,classType,rawInvoker,context);if(undefined===proto[methodName].overloadTable){memberFunction.argCount=argCount-2;proto[methodName]=memberFunction;}else {proto[methodName].overloadTable[argCount-2]=memberFunction;}return []});return []});}var emval_free_list=[];var emval_handle_array=[{},{value:undefined},{value:null},{value:true},{value:false}];function __emval_decref(handle){if(handle>4&&0===--emval_handle_array[handle].refcount){emval_handle_array[handle]=undefined;emval_free_list.push(handle);}}function count_emval_handles(){var count=0;for(var i=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){++count;}}return count}function get_first_emval(){for(var i=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){return emval_handle_array[i]}}return null}function init_emval(){Module["count_emval_handles"]=count_emval_handles;Module["get_first_emval"]=get_first_emval;}var Emval={toValue:function(handle){if(!handle){throwBindingError("Cannot use deleted val. handle = "+handle);}return emval_handle_array[handle].value},toHandle:function(value){switch(value){case undefined:{return 1}case null:{return 2}case true:{return 3}case false:{return 4}default:{var handle=emval_free_list.length?emval_free_list.pop():emval_handle_array.length;emval_handle_array[handle]={refcount:1,value:value};return handle}}}};function __embind_register_emval(rawType,name){name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(handle){var rv=Emval.toValue(handle);__emval_decref(handle);return rv},"toWireType":function(destructors,value){return Emval.toHandle(value)},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:null});}function _embind_repr(v){if(v===null){return "null"}var t=typeof v;if(t==="object"||t==="array"||t==="function"){return v.toString()}else {return ""+v}}function floatReadValueFromPointer(name,shift){switch(shift){case 2:return function(pointer){return this["fromWireType"](HEAPF32[pointer>>2])};case 3:return function(pointer){return this["fromWireType"](HEAPF64[pointer>>3])};default:throw new TypeError("Unknown float type: "+name)}}function __embind_register_float(rawType,name,size){var shift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(value){return value},"toWireType":function(destructors,value){return value},"argPackAdvance":8,"readValueFromPointer":floatReadValueFromPointer(name,shift),destructorFunction:null});}function integerReadValueFromPointer(name,shift,signed){switch(shift){case 0:return signed?function readS8FromPointer(pointer){return HEAP8[pointer]}:function readU8FromPointer(pointer){return HEAPU8[pointer]};case 1:return signed?function readS16FromPointer(pointer){return HEAP16[pointer>>1]}:function readU16FromPointer(pointer){return HEAPU16[pointer>>1]};case 2:return signed?function readS32FromPointer(pointer){return HEAP32[pointer>>2]}:function readU32FromPointer(pointer){return HEAPU32[pointer>>2]};default:throw new TypeError("Unknown integer type: "+name)}}function __embind_register_integer(primitiveType,name,size,minRange,maxRange){name=readLatin1String(name);var shift=getShiftFromSize(size);var fromWireType=value=>value;if(minRange===0){var bitshift=32-8*size;fromWireType=(value=>value<<bitshift>>>bitshift);}var isUnsignedType=name.includes("unsigned");var checkAssertions=(value,toTypeName)=>{};var toWireType;if(isUnsignedType){toWireType=function(destructors,value){checkAssertions(value,this.name);return value>>>0};}else {toWireType=function(destructors,value){checkAssertions(value,this.name);return value};}registerType(primitiveType,{name:name,"fromWireType":fromWireType,"toWireType":toWireType,"argPackAdvance":8,"readValueFromPointer":integerReadValueFromPointer(name,shift,minRange!==0),destructorFunction:null});}function __embind_register_memory_view(rawType,dataTypeIndex,name){var typeMapping=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];var TA=typeMapping[dataTypeIndex];function decodeMemoryView(handle){handle=handle>>2;var heap=HEAPU32;var size=heap[handle];var data=heap[handle+1];return new TA(buffer,data,size)}name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":decodeMemoryView,"argPackAdvance":8,"readValueFromPointer":decodeMemoryView},{ignoreDuplicateRegistrations:true});}function __embind_register_std_string(rawType,name){name=readLatin1String(name);var stdStringIsUTF8=name==="std::string";registerType(rawType,{name:name,"fromWireType":function(value){var length=HEAPU32[value>>2];var str;if(stdStringIsUTF8){var decodeStartPtr=value+4;for(var i=0;i<=length;++i){var currentBytePtr=value+4+i;if(i==length||HEAPU8[currentBytePtr]==0){var maxRead=currentBytePtr-decodeStartPtr;var stringSegment=UTF8ToString(decodeStartPtr,maxRead);if(str===undefined){str=stringSegment;}else {str+=String.fromCharCode(0);str+=stringSegment;}decodeStartPtr=currentBytePtr+1;}}}else {var a=new Array(length);for(var i=0;i<length;++i){a[i]=String.fromCharCode(HEAPU8[value+4+i]);}str=a.join("");}_free(value);return str},"toWireType":function(destructors,value){if(value instanceof ArrayBuffer){value=new Uint8Array(value);}var getLength;var valueIsOfTypeString=typeof value=="string";if(!(valueIsOfTypeString||value instanceof Uint8Array||value instanceof Uint8ClampedArray||value instanceof Int8Array)){throwBindingError("Cannot pass non-string to std::string");}if(stdStringIsUTF8&&valueIsOfTypeString){getLength=(()=>lengthBytesUTF8(value));}else {getLength=(()=>value.length);}var length=getLength();var ptr=_malloc(4+length+1);HEAPU32[ptr>>2]=length;if(stdStringIsUTF8&&valueIsOfTypeString){stringToUTF8(value,ptr+4,length+1);}else {if(valueIsOfTypeString){for(var i=0;i<length;++i){var charCode=value.charCodeAt(i);if(charCode>255){_free(ptr);throwBindingError("String has UTF-16 code units that do not fit in 8 bits");}HEAPU8[ptr+4+i]=charCode;}}else {for(var i=0;i<length;++i){HEAPU8[ptr+4+i]=value[i];}}}if(destructors!==null){destructors.push(_free,ptr);}return ptr},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:function(ptr){_free(ptr);}});}function __embind_register_std_wstring(rawType,charSize,name){name=readLatin1String(name);var decodeString,encodeString,getHeap,lengthBytesUTF,shift;if(charSize===2){decodeString=UTF16ToString;encodeString=stringToUTF16;lengthBytesUTF=lengthBytesUTF16;getHeap=(()=>HEAPU16);shift=1;}else if(charSize===4){decodeString=UTF32ToString;encodeString=stringToUTF32;lengthBytesUTF=lengthBytesUTF32;getHeap=(()=>HEAPU32);shift=2;}registerType(rawType,{name:name,"fromWireType":function(value){var length=HEAPU32[value>>2];var HEAP=getHeap();var str;var decodeStartPtr=value+4;for(var i=0;i<=length;++i){var currentBytePtr=value+4+i*charSize;if(i==length||HEAP[currentBytePtr>>shift]==0){var maxReadBytes=currentBytePtr-decodeStartPtr;var stringSegment=decodeString(decodeStartPtr,maxReadBytes);if(str===undefined){str=stringSegment;}else {str+=String.fromCharCode(0);str+=stringSegment;}decodeStartPtr=currentBytePtr+charSize;}}_free(value);return str},"toWireType":function(destructors,value){if(!(typeof value=="string")){throwBindingError("Cannot pass non-string to C++ string type "+name);}var length=lengthBytesUTF(value);var ptr=_malloc(4+length+charSize);HEAPU32[ptr>>2]=length>>shift;encodeString(value,ptr+4,length+charSize);if(destructors!==null){destructors.push(_free,ptr);}return ptr},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:function(ptr){_free(ptr);}});}function __embind_register_void(rawType,name){name=readLatin1String(name);registerType(rawType,{isVoid:true,name:name,"argPackAdvance":0,"fromWireType":function(){return undefined},"toWireType":function(destructors,o){return undefined}});}function _abort(){abort("");}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num);}function _emscripten_get_heap_max(){return 2147483648}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){var oldSize=HEAPU8.length;requestedSize=requestedSize>>>0;var maxHeapSize=_emscripten_get_heap_max();if(requestedSize>maxHeapSize){return false}let alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}function _setTempRet0(val){}embind_init_charCodes();BindingError=Module["BindingError"]=extendError(Error,"BindingError");InternalError=Module["InternalError"]=extendError(Error,"InternalError");init_ClassHandle();init_embind();init_RegisteredPointer();UnboundTypeError=Module["UnboundTypeError"]=extendError(Error,"UnboundTypeError");init_emval();var asmLibraryArg={"a":___assert_fail,"k":__embind_register_bigint,"i":__embind_register_bool,"q":__embind_register_class,"p":__embind_register_class_constructor,"b":__embind_register_class_function,"o":__embind_register_emval,"h":__embind_register_float,"d":__embind_register_integer,"c":__embind_register_memory_view,"g":__embind_register_std_string,"e":__embind_register_std_wstring,"j":__embind_register_void,"l":_abort,"n":_emscripten_memcpy_big,"m":_emscripten_resize_heap,"f":_setTempRet0};createWasm();Module["___wasm_call_ctors"]=function(){return (Module["___wasm_call_ctors"]=Module["asm"]["s"]).apply(null,arguments)};Module["_decodeRGBA"]=function(){return (Module["_decodeRGBA"]=Module["asm"]["t"]).apply(null,arguments)};Module["_decodeFree"]=function(){return (Module["_decodeFree"]=Module["asm"]["u"]).apply(null,arguments)};Module["_allocBuffer"]=function(){return (Module["_allocBuffer"]=Module["asm"]["v"]).apply(null,arguments)};var _malloc=Module["_malloc"]=function(){return (_malloc=Module["_malloc"]=Module["asm"]["w"]).apply(null,arguments)};Module["_destroyBuffer"]=function(){return (Module["_destroyBuffer"]=Module["asm"]["x"]).apply(null,arguments)};var _free=Module["_free"]=function(){return (_free=Module["_free"]=Module["asm"]["y"]).apply(null,arguments)};var ___getTypeName=Module["___getTypeName"]=function(){return (___getTypeName=Module["___getTypeName"]=Module["asm"]["A"]).apply(null,arguments)};Module["___embind_register_native_and_builtin_types"]=function(){return (Module["___embind_register_native_and_builtin_types"]=Module["asm"]["B"]).apply(null,arguments)};var stackSave=Module["stackSave"]=function(){return (stackSave=Module["stackSave"]=Module["asm"]["C"]).apply(null,arguments)};var stackRestore=Module["stackRestore"]=function(){return (stackRestore=Module["stackRestore"]=Module["asm"]["D"]).apply(null,arguments)};var stackAlloc=Module["stackAlloc"]=function(){return (stackAlloc=Module["stackAlloc"]=Module["asm"]["E"]).apply(null,arguments)};Module["dynCall_ji"]=function(){return (Module["dynCall_ji"]=Module["asm"]["F"]).apply(null,arguments)};Module["dynCall_jii"]=function(){return (Module["dynCall_jii"]=Module["asm"]["G"]).apply(null,arguments)};Module["dynCall_jiiiii"]=function(){return (Module["dynCall_jiiiii"]=Module["asm"]["H"]).apply(null,arguments)};Module["cwrap"]=cwrap;var calledRun;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status;}dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller;};function run(args){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun();}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("");},1);doRun();},1);}else {doRun();}}Module["run"]=run;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()();}}run();
|
|
29979
|
+
var Module=typeof LibWebP!="undefined"?LibWebP:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject;});var moduleOverrides=Object.assign({},Module);var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKER=typeof importScripts=="function";var ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary;var fs;var nodePath;var requireNodeFS;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require$$1$1.dirname(scriptDirectory)+"/";}else {scriptDirectory=__dirname+"/";}requireNodeFS=(()=>{if(!nodePath){fs=require$$0$5;nodePath=require$$1$1;}});read_=function shell_read(filename,binary){requireNodeFS();filename=nodePath["normalize"](filename);return fs.readFileSync(filename,binary?undefined:"utf8")};readBinary=(filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret);}return ret});readAsync=((filename,onload,onerror)=>{requireNodeFS();filename=nodePath["normalize"](filename);fs.readFile(filename,function(err,data){if(err)onerror(err);else onload(data.buffer);});});if(process["argv"].length>1){process["argv"][1].replace(/\\/g,"/");}process["argv"].slice(2);process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",function(reason){throw reason});Module["inspect"]=function(){return "[Emscripten Module object]"};}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href;}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src;}if(_scriptDir){scriptDirectory=_scriptDir;}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1);}else {scriptDirectory="";}{read_=(url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText});if(ENVIRONMENT_IS_WORKER){readBinary=(url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)});}readAsync=((url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=(()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror();});xhr.onerror=onerror;xhr.send(null);});}}else;Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])Module["arguments"];if(Module["thisProgram"])Module["thisProgram"];if(Module["quit"])Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];Module["noExitRuntime"]||true;if(typeof WebAssembly!="object"){abort("no native wasm support detected");}var wasmMemory;var ABORT=false;function assert(condition,text){if(!condition){abort(text);}}function getCFunc(ident){var func=Module["_"+ident];return func}function ccall(ident,returnType,argTypes,args,opts){var toC={"string":function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=stackAlloc(len);stringToUTF8(str,ret,len);}return ret},"array":function(arr){var ret=stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}};function convertReturnValue(ret){if(returnType==="string")return UTF8ToString(ret);if(returnType==="boolean")return Boolean(ret);return ret}var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=stackSave();cArgs[i]=converter(args[i]);}else {cArgs[i]=args[i];}}}var ret=func.apply(null,cArgs);function onDone(ret){if(stack!==0)stackRestore(stack);return convertReturnValue(ret)}ret=onDone(ret);return ret}function cwrap(ident,returnType,argTypes,opts){argTypes=argTypes||[];var numericArgs=argTypes.every(function(type){return type==="number"});var numericRet=returnType!=="string";if(numericRet&&numericArgs&&!opts){return getCFunc(ident)}return function(){return ccall(ident,returnType,argTypes,arguments)}}var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(heap,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heap[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else {var str="";while(idx<endPtr){var u0=heap[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heap[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heap[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2;}else {u0=(u0&7)<<18|u1<<12|u2<<6|heap[idx++]&63;}if(u0<65536){str+=String.fromCharCode(u0);}else {var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023);}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023;}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u;}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63;}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;}else {if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4;}return len}var UTF16Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf-16le"):undefined;function UTF16ToString(ptr,maxBytesToRead){var endPtr=ptr;var idx=endPtr>>1;var maxIdx=idx+maxBytesToRead/2;while(!(idx>=maxIdx)&&HEAPU16[idx])++idx;endPtr=idx<<1;if(endPtr-ptr>32&&UTF16Decoder){return UTF16Decoder.decode(HEAPU8.subarray(ptr,endPtr))}else {var str="";for(var i=0;!(i>=maxBytesToRead/2);++i){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)break;str+=String.fromCharCode(codeUnit);}return str}}function stringToUTF16(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647;}if(maxBytesToWrite<2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite<str.length*2?maxBytesToWrite/2:str.length;for(var i=0;i<numCharsToWrite;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr>>1]=codeUnit;outPtr+=2;}HEAP16[outPtr>>1]=0;return outPtr-startPtr}function lengthBytesUTF16(str){return str.length*2}function UTF32ToString(ptr,maxBytesToRead){var i=0;var str="";while(!(i>=maxBytesToRead/4)){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)break;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023);}else {str+=String.fromCharCode(utf32);}}return str}function stringToUTF32(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647;}if(maxBytesToWrite<4)return 0;var startPtr=outPtr;var endPtr=startPtr+maxBytesToWrite-4;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++i);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023;}HEAP32[outPtr>>2]=codeUnit;outPtr+=4;if(outPtr+4>endPtr)break}HEAP32[outPtr>>2]=0;return outPtr-startPtr}function lengthBytesUTF32(str){var len=0;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343)++i;len+=4;}return len}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer);}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf);}Module["INITIAL_MEMORY"]||16777216;var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift());}}callRuntimeCallbacks(__ATPRERUN__);}function initRuntime(){callRuntimeCallbacks(__ATINIT__);}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift());}}callRuntimeCallbacks(__ATPOSTRUN__);}function addOnPreRun(cb){__ATPRERUN__.unshift(cb);}function addOnInit(cb){__ATINIT__.unshift(cb);}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb);}var runDependencies=0;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies);}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies);}if(runDependencies==0){if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback();}}}Module["preloadedImages"]={};Module["preloadedAudios"]={};function abort(what){{if(Module["onAbort"]){Module["onAbort"](what);}}what="Aborted("+what+")";err(what);ABORT=true;what+=". Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith("file://")}var wasmBinaryFile;wasmBinaryFile="libwebp.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile);}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}else {throw "both async and sync fetching of the wasm failed"}}catch(err){abort(err);}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch=="function"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw "failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary(wasmBinaryFile)})}else {if(readAsync){return new Promise(function(resolve,reject){readAsync(wasmBinaryFile,function(response){resolve(new Uint8Array(response));},reject);})}}}return Promise.resolve().then(function(){return getBinary(wasmBinaryFile)})}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports$1=instance.exports;Module["asm"]=exports$1;wasmMemory=Module["asm"]["r"];updateGlobalBufferAndViews(wasmMemory.buffer);wasmTable=Module["asm"]["z"];addOnInit(Module["asm"]["s"]);removeRunDependency();}addRunDependency();function receiveInstantiationResult(result){receiveInstance(result["instance"]);}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason);})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiationResult,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiationResult)})})}else {return instantiateArrayBuffer(receiveInstantiationResult)}}if(Module["instantiateWasm"]){try{var exports$1=Module["instantiateWasm"](info,receiveInstance);return exports$1}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync().catch(readyPromiseReject);return {}}function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func=="number"){if(callback.arg===undefined){getWasmTableEntry(func)();}else {getWasmTableEntry(func)(callback.arg);}}else {func(callback.arg===undefined?null:callback.arg);}}}var wasmTableMirror=[];function getWasmTableEntry(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr);}return func}function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"]);}function __embind_register_bigint(primitiveType,name,size,minRange,maxRange){}function getShiftFromSize(size){switch(size){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+size)}}function embind_init_charCodes(){var codes=new Array(256);for(var i=0;i<256;++i){codes[i]=String.fromCharCode(i);}embind_charCodes=codes;}var embind_charCodes=undefined;function readLatin1String(ptr){var ret="";var c=ptr;while(HEAPU8[c]){ret+=embind_charCodes[HEAPU8[c++]];}return ret}var awaitingDependencies={};var registeredTypes={};var typeDependencies={};var char_0=48;var char_9=57;function makeLegalFunctionName(name){if(undefined===name){return "_unknown"}name=name.replace(/[^a-zA-Z0-9_]/g,"$");var f=name.charCodeAt(0);if(f>=char_0&&f<=char_9){return "_"+name}else {return name}}function createNamedFunction(name,body){name=makeLegalFunctionName(name);return new Function("body","return function "+name+"() {\n"+' "use strict";'+" return body.apply(this, arguments);\n"+"};\n")(body)}function extendError(baseErrorType,errorName){var errorClass=createNamedFunction(errorName,function(message){this.name=errorName;this.message=message;var stack=new Error(message).stack;if(stack!==undefined){this.stack=this.toString()+"\n"+stack.replace(/^Error(:[^\n]*)?\n/,"");}});errorClass.prototype=Object.create(baseErrorType.prototype);errorClass.prototype.constructor=errorClass;errorClass.prototype.toString=function(){if(this.message===undefined){return this.name}else {return this.name+": "+this.message}};return errorClass}var BindingError=undefined;function throwBindingError(message){throw new BindingError(message)}var InternalError=undefined;function throwInternalError(message){throw new InternalError(message)}function whenDependentTypesAreResolved(myTypes,dependentTypes,getTypeConverters){myTypes.forEach(function(type){typeDependencies[type]=dependentTypes;});function onComplete(typeConverters){var myTypeConverters=getTypeConverters(typeConverters);if(myTypeConverters.length!==myTypes.length){throwInternalError("Mismatched type converter count");}for(var i=0;i<myTypes.length;++i){registerType(myTypes[i],myTypeConverters[i]);}}var typeConverters=new Array(dependentTypes.length);var unregisteredTypes=[];var registered=0;dependentTypes.forEach(function(dt,i){if(registeredTypes.hasOwnProperty(dt)){typeConverters[i]=registeredTypes[dt];}else {unregisteredTypes.push(dt);if(!awaitingDependencies.hasOwnProperty(dt)){awaitingDependencies[dt]=[];}awaitingDependencies[dt].push(function(){typeConverters[i]=registeredTypes[dt];++registered;if(registered===unregisteredTypes.length){onComplete(typeConverters);}});}});if(0===unregisteredTypes.length){onComplete(typeConverters);}}function registerType(rawType,registeredInstance,options={}){if(!("argPackAdvance"in registeredInstance)){throw new TypeError("registerType registeredInstance requires argPackAdvance")}var name=registeredInstance.name;if(!rawType){throwBindingError('type "'+name+'" must have a positive integer typeid pointer');}if(registeredTypes.hasOwnProperty(rawType)){if(options.ignoreDuplicateRegistrations){return}else {throwBindingError("Cannot register type '"+name+"' twice");}}registeredTypes[rawType]=registeredInstance;delete typeDependencies[rawType];if(awaitingDependencies.hasOwnProperty(rawType)){var callbacks=awaitingDependencies[rawType];delete awaitingDependencies[rawType];callbacks.forEach(function(cb){cb();});}}function __embind_register_bool(rawType,name,size,trueValue,falseValue){var shift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(wt){return !!wt},"toWireType":function(destructors,o){return o?trueValue:falseValue},"argPackAdvance":8,"readValueFromPointer":function(pointer){var heap;if(size===1){heap=HEAP8;}else if(size===2){heap=HEAP16;}else if(size===4){heap=HEAP32;}else {throw new TypeError("Unknown boolean type size: "+name)}return this["fromWireType"](heap[pointer>>shift])},destructorFunction:null});}function ClassHandle_isAliasOf(other){if(!(this instanceof ClassHandle)){return false}if(!(other instanceof ClassHandle)){return false}var leftClass=this.$$.ptrType.registeredClass;var left=this.$$.ptr;var rightClass=other.$$.ptrType.registeredClass;var right=other.$$.ptr;while(leftClass.baseClass){left=leftClass.upcast(left);leftClass=leftClass.baseClass;}while(rightClass.baseClass){right=rightClass.upcast(right);rightClass=rightClass.baseClass;}return leftClass===rightClass&&left===right}function shallowCopyInternalPointer(o){return {count:o.count,deleteScheduled:o.deleteScheduled,preservePointerOnDelete:o.preservePointerOnDelete,ptr:o.ptr,ptrType:o.ptrType,smartPtr:o.smartPtr,smartPtrType:o.smartPtrType}}function throwInstanceAlreadyDeleted(obj){function getInstanceTypeName(handle){return handle.$$.ptrType.registeredClass.name}throwBindingError(getInstanceTypeName(obj)+" instance already deleted");}var finalizationRegistry=false;function detachFinalizer(handle){}function runDestructor($$){if($$.smartPtr){$$.smartPtrType.rawDestructor($$.smartPtr);}else {$$.ptrType.registeredClass.rawDestructor($$.ptr);}}function releaseClassHandle($$){$$.count.value-=1;var toDelete=0===$$.count.value;if(toDelete){runDestructor($$);}}function downcastPointer(ptr,ptrClass,desiredClass){if(ptrClass===desiredClass){return ptr}if(undefined===desiredClass.baseClass){return null}var rv=downcastPointer(ptr,ptrClass,desiredClass.baseClass);if(rv===null){return null}return desiredClass.downcast(rv)}var registeredPointers={};function getInheritedInstanceCount(){return Object.keys(registeredInstances).length}function getLiveInheritedInstances(){var rv=[];for(var k in registeredInstances){if(registeredInstances.hasOwnProperty(k)){rv.push(registeredInstances[k]);}}return rv}var deletionQueue=[];function flushPendingDeletes(){while(deletionQueue.length){var obj=deletionQueue.pop();obj.$$.deleteScheduled=false;obj["delete"]();}}var delayFunction=undefined;function setDelayFunction(fn){delayFunction=fn;if(deletionQueue.length&&delayFunction){delayFunction(flushPendingDeletes);}}function init_embind(){Module["getInheritedInstanceCount"]=getInheritedInstanceCount;Module["getLiveInheritedInstances"]=getLiveInheritedInstances;Module["flushPendingDeletes"]=flushPendingDeletes;Module["setDelayFunction"]=setDelayFunction;}var registeredInstances={};function getBasestPointer(class_,ptr){if(ptr===undefined){throwBindingError("ptr should not be undefined");}while(class_.baseClass){ptr=class_.upcast(ptr);class_=class_.baseClass;}return ptr}function getInheritedInstance(class_,ptr){ptr=getBasestPointer(class_,ptr);return registeredInstances[ptr]}function makeClassHandle(prototype,record){if(!record.ptrType||!record.ptr){throwInternalError("makeClassHandle requires ptr and ptrType");}var hasSmartPtrType=!!record.smartPtrType;var hasSmartPtr=!!record.smartPtr;if(hasSmartPtrType!==hasSmartPtr){throwInternalError("Both smartPtrType and smartPtr must be specified");}record.count={value:1};return attachFinalizer(Object.create(prototype,{$$:{value:record}}))}function RegisteredPointer_fromWireType(ptr){var rawPointer=this.getPointee(ptr);if(!rawPointer){this.destructor(ptr);return null}var registeredInstance=getInheritedInstance(this.registeredClass,rawPointer);if(undefined!==registeredInstance){if(0===registeredInstance.$$.count.value){registeredInstance.$$.ptr=rawPointer;registeredInstance.$$.smartPtr=ptr;return registeredInstance["clone"]()}else {var rv=registeredInstance["clone"]();this.destructor(ptr);return rv}}function makeDefaultHandle(){if(this.isSmartPointer){return makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:rawPointer,smartPtrType:this,smartPtr:ptr})}else {return makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:ptr})}}var actualType=this.registeredClass.getActualType(rawPointer);var registeredPointerRecord=registeredPointers[actualType];if(!registeredPointerRecord){return makeDefaultHandle.call(this)}var toType;if(this.isConst){toType=registeredPointerRecord.constPointerType;}else {toType=registeredPointerRecord.pointerType;}var dp=downcastPointer(rawPointer,this.registeredClass,toType.registeredClass);if(dp===null){return makeDefaultHandle.call(this)}if(this.isSmartPointer){return makeClassHandle(toType.registeredClass.instancePrototype,{ptrType:toType,ptr:dp,smartPtrType:this,smartPtr:ptr})}else {return makeClassHandle(toType.registeredClass.instancePrototype,{ptrType:toType,ptr:dp})}}function attachFinalizer(handle){if("undefined"===typeof FinalizationRegistry){attachFinalizer=(handle=>handle);return handle}finalizationRegistry=new FinalizationRegistry(info=>{releaseClassHandle(info.$$);});attachFinalizer=(handle=>{var $$=handle.$$;var hasSmartPtr=!!$$.smartPtr;if(hasSmartPtr){var info={$$:$$};finalizationRegistry.register(handle,info,handle);}return handle});detachFinalizer=(handle=>finalizationRegistry.unregister(handle));return attachFinalizer(handle)}function ClassHandle_clone(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.preservePointerOnDelete){this.$$.count.value+=1;return this}else {var clone=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));clone.$$.count.value+=1;clone.$$.deleteScheduled=false;return clone}}function ClassHandle_delete(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete){throwBindingError("Object already scheduled for deletion");}detachFinalizer(this);releaseClassHandle(this.$$);if(!this.$$.preservePointerOnDelete){this.$$.smartPtr=undefined;this.$$.ptr=undefined;}}function ClassHandle_isDeleted(){return !this.$$.ptr}function ClassHandle_deleteLater(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete){throwBindingError("Object already scheduled for deletion");}deletionQueue.push(this);if(deletionQueue.length===1&&delayFunction){delayFunction(flushPendingDeletes);}this.$$.deleteScheduled=true;return this}function init_ClassHandle(){ClassHandle.prototype["isAliasOf"]=ClassHandle_isAliasOf;ClassHandle.prototype["clone"]=ClassHandle_clone;ClassHandle.prototype["delete"]=ClassHandle_delete;ClassHandle.prototype["isDeleted"]=ClassHandle_isDeleted;ClassHandle.prototype["deleteLater"]=ClassHandle_deleteLater;}function ClassHandle(){}function ensureOverloadTable(proto,methodName,humanName){if(undefined===proto[methodName].overloadTable){var prevFunc=proto[methodName];proto[methodName]=function(){if(!proto[methodName].overloadTable.hasOwnProperty(arguments.length)){throwBindingError("Function '"+humanName+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+proto[methodName].overloadTable+")!");}return proto[methodName].overloadTable[arguments.length].apply(this,arguments)};proto[methodName].overloadTable=[];proto[methodName].overloadTable[prevFunc.argCount]=prevFunc;}}function exposePublicSymbol(name,value,numArguments){if(Module.hasOwnProperty(name)){{throwBindingError("Cannot register public name '"+name+"' twice");}ensureOverloadTable(Module,name,name);if(Module.hasOwnProperty(numArguments)){throwBindingError("Cannot register multiple overloads of a function with the same number of arguments ("+numArguments+")!");}Module[name].overloadTable[numArguments]=value;}else {Module[name]=value;}}function RegisteredClass(name,constructor,instancePrototype,rawDestructor,baseClass,getActualType,upcast,downcast){this.name=name;this.constructor=constructor;this.instancePrototype=instancePrototype;this.rawDestructor=rawDestructor;this.baseClass=baseClass;this.getActualType=getActualType;this.upcast=upcast;this.downcast=downcast;this.pureVirtualFunctions=[];}function upcastPointer(ptr,ptrClass,desiredClass){while(ptrClass!==desiredClass){if(!ptrClass.upcast){throwBindingError("Expected null or instance of "+desiredClass.name+", got an instance of "+ptrClass.name);}ptr=ptrClass.upcast(ptr);ptrClass=ptrClass.baseClass;}return ptr}function constNoSmartPtrRawPointerToWireType(destructors,handle){if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}return 0}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;var ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);return ptr}function genericPointerToWireType(destructors,handle){var ptr;if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}if(this.isSmartPointer){ptr=this.rawConstructor();if(destructors!==null){destructors.push(this.rawDestructor,ptr);}return ptr}else {return 0}}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}if(!this.isConst&&handle.$$.ptrType.isConst){throwBindingError("Cannot convert argument of type "+(handle.$$.smartPtrType?handle.$$.smartPtrType.name:handle.$$.ptrType.name)+" to parameter type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);if(this.isSmartPointer){if(undefined===handle.$$.smartPtr){throwBindingError("Passing raw pointer to smart pointer is illegal");}switch(this.sharingPolicy){case 0:if(handle.$$.smartPtrType===this){ptr=handle.$$.smartPtr;}else {throwBindingError("Cannot convert argument of type "+(handle.$$.smartPtrType?handle.$$.smartPtrType.name:handle.$$.ptrType.name)+" to parameter type "+this.name);}break;case 1:ptr=handle.$$.smartPtr;break;case 2:if(handle.$$.smartPtrType===this){ptr=handle.$$.smartPtr;}else {var clonedHandle=handle["clone"]();ptr=this.rawShare(ptr,Emval.toHandle(function(){clonedHandle["delete"]();}));if(destructors!==null){destructors.push(this.rawDestructor,ptr);}}break;default:throwBindingError("Unsupporting sharing policy");}}return ptr}function nonConstNoSmartPtrRawPointerToWireType(destructors,handle){if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}return 0}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}if(handle.$$.ptrType.isConst){throwBindingError("Cannot convert argument of type "+handle.$$.ptrType.name+" to parameter type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;var ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);return ptr}function simpleReadValueFromPointer(pointer){return this["fromWireType"](HEAPU32[pointer>>2])}function RegisteredPointer_getPointee(ptr){if(this.rawGetPointee){ptr=this.rawGetPointee(ptr);}return ptr}function RegisteredPointer_destructor(ptr){if(this.rawDestructor){this.rawDestructor(ptr);}}function RegisteredPointer_deleteObject(handle){if(handle!==null){handle["delete"]();}}function init_RegisteredPointer(){RegisteredPointer.prototype.getPointee=RegisteredPointer_getPointee;RegisteredPointer.prototype.destructor=RegisteredPointer_destructor;RegisteredPointer.prototype["argPackAdvance"]=8;RegisteredPointer.prototype["readValueFromPointer"]=simpleReadValueFromPointer;RegisteredPointer.prototype["deleteObject"]=RegisteredPointer_deleteObject;RegisteredPointer.prototype["fromWireType"]=RegisteredPointer_fromWireType;}function RegisteredPointer(name,registeredClass,isReference,isConst,isSmartPointer,pointeeType,sharingPolicy,rawGetPointee,rawConstructor,rawShare,rawDestructor){this.name=name;this.registeredClass=registeredClass;this.isReference=isReference;this.isConst=isConst;this.isSmartPointer=isSmartPointer;this.pointeeType=pointeeType;this.sharingPolicy=sharingPolicy;this.rawGetPointee=rawGetPointee;this.rawConstructor=rawConstructor;this.rawShare=rawShare;this.rawDestructor=rawDestructor;if(!isSmartPointer&®isteredClass.baseClass===undefined){if(isConst){this["toWireType"]=constNoSmartPtrRawPointerToWireType;this.destructorFunction=null;}else {this["toWireType"]=nonConstNoSmartPtrRawPointerToWireType;this.destructorFunction=null;}}else {this["toWireType"]=genericPointerToWireType;}}function replacePublicSymbol(name,value,numArguments){if(!Module.hasOwnProperty(name)){throwInternalError("Replacing nonexistant public symbol");}if(undefined!==Module[name].overloadTable&&undefined!==numArguments);else {Module[name]=value;Module[name].argCount=numArguments;}}function dynCallLegacy(sig,ptr,args){var f=Module["dynCall_"+sig];return args&&args.length?f.apply(null,[ptr].concat(args)):f.call(null,ptr)}function dynCall(sig,ptr,args){if(sig.includes("j")){return dynCallLegacy(sig,ptr,args)}return getWasmTableEntry(ptr).apply(null,args)}function getDynCaller(sig,ptr){var argCache=[];return function(){argCache.length=0;Object.assign(argCache,arguments);return dynCall(sig,ptr,argCache)}}function embind__requireFunction(signature,rawFunction){signature=readLatin1String(signature);function makeDynCaller(){if(signature.includes("j")){return getDynCaller(signature,rawFunction)}return getWasmTableEntry(rawFunction)}var fp=makeDynCaller();if(typeof fp!="function"){throwBindingError("unknown function pointer with signature "+signature+": "+rawFunction);}return fp}var UnboundTypeError=undefined;function getTypeName(type){var ptr=___getTypeName(type);var rv=readLatin1String(ptr);_free(ptr);return rv}function throwUnboundTypeError(message,types){var unboundTypes=[];var seen={};function visit(type){if(seen[type]){return}if(registeredTypes[type]){return}if(typeDependencies[type]){typeDependencies[type].forEach(visit);return}unboundTypes.push(type);seen[type]=true;}types.forEach(visit);throw new UnboundTypeError(message+": "+unboundTypes.map(getTypeName).join([", "]))}function __embind_register_class(rawType,rawPointerType,rawConstPointerType,baseClassRawType,getActualTypeSignature,getActualType,upcastSignature,upcast,downcastSignature,downcast,name,destructorSignature,rawDestructor){name=readLatin1String(name);getActualType=embind__requireFunction(getActualTypeSignature,getActualType);if(upcast){upcast=embind__requireFunction(upcastSignature,upcast);}if(downcast){downcast=embind__requireFunction(downcastSignature,downcast);}rawDestructor=embind__requireFunction(destructorSignature,rawDestructor);var legalFunctionName=makeLegalFunctionName(name);exposePublicSymbol(legalFunctionName,function(){throwUnboundTypeError("Cannot construct "+name+" due to unbound types",[baseClassRawType]);});whenDependentTypesAreResolved([rawType,rawPointerType,rawConstPointerType],baseClassRawType?[baseClassRawType]:[],function(base){base=base[0];var baseClass;var basePrototype;if(baseClassRawType){baseClass=base.registeredClass;basePrototype=baseClass.instancePrototype;}else {basePrototype=ClassHandle.prototype;}var constructor=createNamedFunction(legalFunctionName,function(){if(Object.getPrototypeOf(this)!==instancePrototype){throw new BindingError("Use 'new' to construct "+name)}if(undefined===registeredClass.constructor_body){throw new BindingError(name+" has no accessible constructor")}var body=registeredClass.constructor_body[arguments.length];if(undefined===body){throw new BindingError("Tried to invoke ctor of "+name+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(registeredClass.constructor_body).toString()+") parameters instead!")}return body.apply(this,arguments)});var instancePrototype=Object.create(basePrototype,{constructor:{value:constructor}});constructor.prototype=instancePrototype;var registeredClass=new RegisteredClass(name,constructor,instancePrototype,rawDestructor,baseClass,getActualType,upcast,downcast);var referenceConverter=new RegisteredPointer(name,registeredClass,true,false,false);var pointerConverter=new RegisteredPointer(name+"*",registeredClass,false,false,false);var constPointerConverter=new RegisteredPointer(name+" const*",registeredClass,false,true,false);registeredPointers[rawType]={pointerType:pointerConverter,constPointerType:constPointerConverter};replacePublicSymbol(legalFunctionName,constructor);return [referenceConverter,pointerConverter,constPointerConverter]});}function heap32VectorToArray(count,firstElement){var array=[];for(var i=0;i<count;i++){array.push(HEAP32[(firstElement>>2)+i]);}return array}function runDestructors(destructors){while(destructors.length){var ptr=destructors.pop();var del=destructors.pop();del(ptr);}}function __embind_register_class_constructor(rawClassType,argCount,rawArgTypesAddr,invokerSignature,invoker,rawConstructor){assert(argCount>0);var rawArgTypes=heap32VectorToArray(argCount,rawArgTypesAddr);invoker=embind__requireFunction(invokerSignature,invoker);whenDependentTypesAreResolved([],[rawClassType],function(classType){classType=classType[0];var humanName="constructor "+classType.name;if(undefined===classType.registeredClass.constructor_body){classType.registeredClass.constructor_body=[];}if(undefined!==classType.registeredClass.constructor_body[argCount-1]){throw new BindingError("Cannot register multiple constructors with identical number of parameters ("+(argCount-1)+") for class '"+classType.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!")}classType.registeredClass.constructor_body[argCount-1]=(()=>{throwUnboundTypeError("Cannot construct "+classType.name+" due to unbound types",rawArgTypes);});whenDependentTypesAreResolved([],rawArgTypes,function(argTypes){argTypes.splice(1,0,null);classType.registeredClass.constructor_body[argCount-1]=craftInvokerFunction(humanName,argTypes,null,invoker,rawConstructor);return []});return []});}function new_(constructor,argumentList){if(!(constructor instanceof Function)){throw new TypeError("new_ called with constructor type "+typeof constructor+" which is not a function")}var dummy=createNamedFunction(constructor.name||"unknownFunctionName",function(){});dummy.prototype=constructor.prototype;var obj=new dummy;var r=constructor.apply(obj,argumentList);return r instanceof Object?r:obj}function craftInvokerFunction(humanName,argTypes,classType,cppInvokerFunc,cppTargetFunc){var argCount=argTypes.length;if(argCount<2){throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");}var isClassMethodFunc=argTypes[1]!==null&&classType!==null;var needsDestructorStack=false;for(var i=1;i<argTypes.length;++i){if(argTypes[i]!==null&&argTypes[i].destructorFunction===undefined){needsDestructorStack=true;break}}var returns=argTypes[0].name!=="void";var argsList="";var argsListWired="";for(var i=0;i<argCount-2;++i){argsList+=(i!==0?", ":"")+"arg"+i;argsListWired+=(i!==0?", ":"")+"arg"+i+"Wired";}var invokerFnBody="return function "+makeLegalFunctionName(humanName)+"("+argsList+") {\n"+"if (arguments.length !== "+(argCount-2)+") {\n"+"throwBindingError('function "+humanName+" called with ' + arguments.length + ' arguments, expected "+(argCount-2)+" args!');\n"+"}\n";if(needsDestructorStack){invokerFnBody+="var destructors = [];\n";}var dtorStack=needsDestructorStack?"destructors":"null";var args1=["throwBindingError","invoker","fn","runDestructors","retType","classParam"];var args2=[throwBindingError,cppInvokerFunc,cppTargetFunc,runDestructors,argTypes[0],argTypes[1]];if(isClassMethodFunc){invokerFnBody+="var thisWired = classParam.toWireType("+dtorStack+", this);\n";}for(var i=0;i<argCount-2;++i){invokerFnBody+="var arg"+i+"Wired = argType"+i+".toWireType("+dtorStack+", arg"+i+"); // "+argTypes[i+2].name+"\n";args1.push("argType"+i);args2.push(argTypes[i+2]);}if(isClassMethodFunc){argsListWired="thisWired"+(argsListWired.length>0?", ":"")+argsListWired;}invokerFnBody+=(returns?"var rv = ":"")+"invoker(fn"+(argsListWired.length>0?", ":"")+argsListWired+");\n";if(needsDestructorStack){invokerFnBody+="runDestructors(destructors);\n";}else {for(var i=isClassMethodFunc?1:2;i<argTypes.length;++i){var paramName=i===1?"thisWired":"arg"+(i-2)+"Wired";if(argTypes[i].destructorFunction!==null){invokerFnBody+=paramName+"_dtor("+paramName+"); // "+argTypes[i].name+"\n";args1.push(paramName+"_dtor");args2.push(argTypes[i].destructorFunction);}}}if(returns){invokerFnBody+="var ret = retType.fromWireType(rv);\n"+"return ret;\n";}invokerFnBody+="}\n";args1.push(invokerFnBody);var invokerFunction=new_(Function,args1).apply(null,args2);return invokerFunction}function __embind_register_class_function(rawClassType,methodName,argCount,rawArgTypesAddr,invokerSignature,rawInvoker,context,isPureVirtual){var rawArgTypes=heap32VectorToArray(argCount,rawArgTypesAddr);methodName=readLatin1String(methodName);rawInvoker=embind__requireFunction(invokerSignature,rawInvoker);whenDependentTypesAreResolved([],[rawClassType],function(classType){classType=classType[0];var humanName=classType.name+"."+methodName;if(methodName.startsWith("@@")){methodName=Symbol[methodName.substring(2)];}if(isPureVirtual){classType.registeredClass.pureVirtualFunctions.push(methodName);}function unboundTypesHandler(){throwUnboundTypeError("Cannot call "+humanName+" due to unbound types",rawArgTypes);}var proto=classType.registeredClass.instancePrototype;var method=proto[methodName];if(undefined===method||undefined===method.overloadTable&&method.className!==classType.name&&method.argCount===argCount-2){unboundTypesHandler.argCount=argCount-2;unboundTypesHandler.className=classType.name;proto[methodName]=unboundTypesHandler;}else {ensureOverloadTable(proto,methodName,humanName);proto[methodName].overloadTable[argCount-2]=unboundTypesHandler;}whenDependentTypesAreResolved([],rawArgTypes,function(argTypes){var memberFunction=craftInvokerFunction(humanName,argTypes,classType,rawInvoker,context);if(undefined===proto[methodName].overloadTable){memberFunction.argCount=argCount-2;proto[methodName]=memberFunction;}else {proto[methodName].overloadTable[argCount-2]=memberFunction;}return []});return []});}var emval_free_list=[];var emval_handle_array=[{},{value:undefined},{value:null},{value:true},{value:false}];function __emval_decref(handle){if(handle>4&&0===--emval_handle_array[handle].refcount){emval_handle_array[handle]=undefined;emval_free_list.push(handle);}}function count_emval_handles(){var count=0;for(var i=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){++count;}}return count}function get_first_emval(){for(var i=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){return emval_handle_array[i]}}return null}function init_emval(){Module["count_emval_handles"]=count_emval_handles;Module["get_first_emval"]=get_first_emval;}var Emval={toValue:function(handle){if(!handle){throwBindingError("Cannot use deleted val. handle = "+handle);}return emval_handle_array[handle].value},toHandle:function(value){switch(value){case undefined:{return 1}case null:{return 2}case true:{return 3}case false:{return 4}default:{var handle=emval_free_list.length?emval_free_list.pop():emval_handle_array.length;emval_handle_array[handle]={refcount:1,value:value};return handle}}}};function __embind_register_emval(rawType,name){name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(handle){var rv=Emval.toValue(handle);__emval_decref(handle);return rv},"toWireType":function(destructors,value){return Emval.toHandle(value)},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:null});}function _embind_repr(v){if(v===null){return "null"}var t=typeof v;if(t==="object"||t==="array"||t==="function"){return v.toString()}else {return ""+v}}function floatReadValueFromPointer(name,shift){switch(shift){case 2:return function(pointer){return this["fromWireType"](HEAPF32[pointer>>2])};case 3:return function(pointer){return this["fromWireType"](HEAPF64[pointer>>3])};default:throw new TypeError("Unknown float type: "+name)}}function __embind_register_float(rawType,name,size){var shift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(value){return value},"toWireType":function(destructors,value){return value},"argPackAdvance":8,"readValueFromPointer":floatReadValueFromPointer(name,shift),destructorFunction:null});}function integerReadValueFromPointer(name,shift,signed){switch(shift){case 0:return signed?function readS8FromPointer(pointer){return HEAP8[pointer]}:function readU8FromPointer(pointer){return HEAPU8[pointer]};case 1:return signed?function readS16FromPointer(pointer){return HEAP16[pointer>>1]}:function readU16FromPointer(pointer){return HEAPU16[pointer>>1]};case 2:return signed?function readS32FromPointer(pointer){return HEAP32[pointer>>2]}:function readU32FromPointer(pointer){return HEAPU32[pointer>>2]};default:throw new TypeError("Unknown integer type: "+name)}}function __embind_register_integer(primitiveType,name,size,minRange,maxRange){name=readLatin1String(name);var shift=getShiftFromSize(size);var fromWireType=value=>value;if(minRange===0){var bitshift=32-8*size;fromWireType=(value=>value<<bitshift>>>bitshift);}var isUnsignedType=name.includes("unsigned");var checkAssertions=(value,toTypeName)=>{};var toWireType;if(isUnsignedType){toWireType=function(destructors,value){checkAssertions(value,this.name);return value>>>0};}else {toWireType=function(destructors,value){checkAssertions(value,this.name);return value};}registerType(primitiveType,{name:name,"fromWireType":fromWireType,"toWireType":toWireType,"argPackAdvance":8,"readValueFromPointer":integerReadValueFromPointer(name,shift,minRange!==0),destructorFunction:null});}function __embind_register_memory_view(rawType,dataTypeIndex,name){var typeMapping=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];var TA=typeMapping[dataTypeIndex];function decodeMemoryView(handle){handle=handle>>2;var heap=HEAPU32;var size=heap[handle];var data=heap[handle+1];return new TA(buffer,data,size)}name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":decodeMemoryView,"argPackAdvance":8,"readValueFromPointer":decodeMemoryView},{ignoreDuplicateRegistrations:true});}function __embind_register_std_string(rawType,name){name=readLatin1String(name);var stdStringIsUTF8=name==="std::string";registerType(rawType,{name:name,"fromWireType":function(value){var length=HEAPU32[value>>2];var str;if(stdStringIsUTF8){var decodeStartPtr=value+4;for(var i=0;i<=length;++i){var currentBytePtr=value+4+i;if(i==length||HEAPU8[currentBytePtr]==0){var maxRead=currentBytePtr-decodeStartPtr;var stringSegment=UTF8ToString(decodeStartPtr,maxRead);if(str===undefined){str=stringSegment;}else {str+=String.fromCharCode(0);str+=stringSegment;}decodeStartPtr=currentBytePtr+1;}}}else {var a=new Array(length);for(var i=0;i<length;++i){a[i]=String.fromCharCode(HEAPU8[value+4+i]);}str=a.join("");}_free(value);return str},"toWireType":function(destructors,value){if(value instanceof ArrayBuffer){value=new Uint8Array(value);}var getLength;var valueIsOfTypeString=typeof value=="string";if(!(valueIsOfTypeString||value instanceof Uint8Array||value instanceof Uint8ClampedArray||value instanceof Int8Array)){throwBindingError("Cannot pass non-string to std::string");}if(stdStringIsUTF8&&valueIsOfTypeString){getLength=(()=>lengthBytesUTF8(value));}else {getLength=(()=>value.length);}var length=getLength();var ptr=_malloc(4+length+1);HEAPU32[ptr>>2]=length;if(stdStringIsUTF8&&valueIsOfTypeString){stringToUTF8(value,ptr+4,length+1);}else {if(valueIsOfTypeString){for(var i=0;i<length;++i){var charCode=value.charCodeAt(i);if(charCode>255){_free(ptr);throwBindingError("String has UTF-16 code units that do not fit in 8 bits");}HEAPU8[ptr+4+i]=charCode;}}else {for(var i=0;i<length;++i){HEAPU8[ptr+4+i]=value[i];}}}if(destructors!==null){destructors.push(_free,ptr);}return ptr},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:function(ptr){_free(ptr);}});}function __embind_register_std_wstring(rawType,charSize,name){name=readLatin1String(name);var decodeString,encodeString,getHeap,lengthBytesUTF,shift;if(charSize===2){decodeString=UTF16ToString;encodeString=stringToUTF16;lengthBytesUTF=lengthBytesUTF16;getHeap=(()=>HEAPU16);shift=1;}else if(charSize===4){decodeString=UTF32ToString;encodeString=stringToUTF32;lengthBytesUTF=lengthBytesUTF32;getHeap=(()=>HEAPU32);shift=2;}registerType(rawType,{name:name,"fromWireType":function(value){var length=HEAPU32[value>>2];var HEAP=getHeap();var str;var decodeStartPtr=value+4;for(var i=0;i<=length;++i){var currentBytePtr=value+4+i*charSize;if(i==length||HEAP[currentBytePtr>>shift]==0){var maxReadBytes=currentBytePtr-decodeStartPtr;var stringSegment=decodeString(decodeStartPtr,maxReadBytes);if(str===undefined){str=stringSegment;}else {str+=String.fromCharCode(0);str+=stringSegment;}decodeStartPtr=currentBytePtr+charSize;}}_free(value);return str},"toWireType":function(destructors,value){if(!(typeof value=="string")){throwBindingError("Cannot pass non-string to C++ string type "+name);}var length=lengthBytesUTF(value);var ptr=_malloc(4+length+charSize);HEAPU32[ptr>>2]=length>>shift;encodeString(value,ptr+4,length+charSize);if(destructors!==null){destructors.push(_free,ptr);}return ptr},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:function(ptr){_free(ptr);}});}function __embind_register_void(rawType,name){name=readLatin1String(name);registerType(rawType,{isVoid:true,name:name,"argPackAdvance":0,"fromWireType":function(){return undefined},"toWireType":function(destructors,o){return undefined}});}function _abort(){abort("");}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num);}function _emscripten_get_heap_max(){return 2147483648}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){var oldSize=HEAPU8.length;requestedSize=requestedSize>>>0;var maxHeapSize=_emscripten_get_heap_max();if(requestedSize>maxHeapSize){return false}let alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}function _setTempRet0(val){}embind_init_charCodes();BindingError=Module["BindingError"]=extendError(Error,"BindingError");InternalError=Module["InternalError"]=extendError(Error,"InternalError");init_ClassHandle();init_embind();init_RegisteredPointer();UnboundTypeError=Module["UnboundTypeError"]=extendError(Error,"UnboundTypeError");init_emval();var asmLibraryArg={"a":___assert_fail,"k":__embind_register_bigint,"i":__embind_register_bool,"q":__embind_register_class,"p":__embind_register_class_constructor,"b":__embind_register_class_function,"o":__embind_register_emval,"h":__embind_register_float,"d":__embind_register_integer,"c":__embind_register_memory_view,"g":__embind_register_std_string,"e":__embind_register_std_wstring,"j":__embind_register_void,"l":_abort,"n":_emscripten_memcpy_big,"m":_emscripten_resize_heap,"f":_setTempRet0};createWasm();Module["___wasm_call_ctors"]=function(){return (Module["___wasm_call_ctors"]=Module["asm"]["s"]).apply(null,arguments)};Module["_decodeRGBA"]=function(){return (Module["_decodeRGBA"]=Module["asm"]["t"]).apply(null,arguments)};Module["_decodeFree"]=function(){return (Module["_decodeFree"]=Module["asm"]["u"]).apply(null,arguments)};Module["_allocBuffer"]=function(){return (Module["_allocBuffer"]=Module["asm"]["v"]).apply(null,arguments)};var _malloc=Module["_malloc"]=function(){return (_malloc=Module["_malloc"]=Module["asm"]["w"]).apply(null,arguments)};Module["_destroyBuffer"]=function(){return (Module["_destroyBuffer"]=Module["asm"]["x"]).apply(null,arguments)};var _free=Module["_free"]=function(){return (_free=Module["_free"]=Module["asm"]["y"]).apply(null,arguments)};var ___getTypeName=Module["___getTypeName"]=function(){return (___getTypeName=Module["___getTypeName"]=Module["asm"]["A"]).apply(null,arguments)};Module["___embind_register_native_and_builtin_types"]=function(){return (Module["___embind_register_native_and_builtin_types"]=Module["asm"]["B"]).apply(null,arguments)};var stackSave=Module["stackSave"]=function(){return (stackSave=Module["stackSave"]=Module["asm"]["C"]).apply(null,arguments)};var stackRestore=Module["stackRestore"]=function(){return (stackRestore=Module["stackRestore"]=Module["asm"]["D"]).apply(null,arguments)};var stackAlloc=Module["stackAlloc"]=function(){return (stackAlloc=Module["stackAlloc"]=Module["asm"]["E"]).apply(null,arguments)};Module["dynCall_ji"]=function(){return (Module["dynCall_ji"]=Module["asm"]["F"]).apply(null,arguments)};Module["dynCall_jii"]=function(){return (Module["dynCall_jii"]=Module["asm"]["G"]).apply(null,arguments)};Module["dynCall_jiiiii"]=function(){return (Module["dynCall_jiiiii"]=Module["asm"]["H"]).apply(null,arguments)};Module["cwrap"]=cwrap;var calledRun;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status;}dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller;};function run(args){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun();}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("");},1);doRun();},1);}else {doRun();}}Module["run"]=run;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()();}}run();
|
|
29980
29980
|
|
|
29981
29981
|
|
|
29982
29982
|
return LibWebP.ready
|
|
@@ -30893,7 +30893,7 @@ var hasRequiredDist;
|
|
|
30893
30893
|
function requireDist () {
|
|
30894
30894
|
if (hasRequiredDist) return dist;
|
|
30895
30895
|
hasRequiredDist = 1;
|
|
30896
|
-
(function (exports) {
|
|
30896
|
+
(function (exports$1) {
|
|
30897
30897
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
30898
30898
|
if (k2 === undefined) k2 = k;
|
|
30899
30899
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -30901,24 +30901,24 @@ function requireDist () {
|
|
|
30901
30901
|
if (k2 === undefined) k2 = k;
|
|
30902
30902
|
o[k2] = m[k];
|
|
30903
30903
|
}));
|
|
30904
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
30905
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30904
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports$1) {
|
|
30905
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
|
|
30906
30906
|
};
|
|
30907
30907
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30908
30908
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30909
30909
|
};
|
|
30910
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30911
|
-
exports.Exif = exports.StickerMetadata = void 0;
|
|
30910
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
30911
|
+
exports$1.Exif = exports$1.StickerMetadata = void 0;
|
|
30912
30912
|
const Sticker_1 = requireSticker();
|
|
30913
|
-
__exportStar(requireSticker(), exports);
|
|
30914
|
-
__exportStar(extractMetadata$1, exports);
|
|
30915
|
-
__exportStar(Types, exports);
|
|
30913
|
+
__exportStar(requireSticker(), exports$1);
|
|
30914
|
+
__exportStar(extractMetadata$1, exports$1);
|
|
30915
|
+
__exportStar(Types, exports$1);
|
|
30916
30916
|
var StickerMetadata_1 = StickerMetadata$1;
|
|
30917
|
-
Object.defineProperty(exports, "StickerMetadata", { enumerable: true, get: function () { return __importDefault(StickerMetadata_1).default; } });
|
|
30917
|
+
Object.defineProperty(exports$1, "StickerMetadata", { enumerable: true, get: function () { return __importDefault(StickerMetadata_1).default; } });
|
|
30918
30918
|
var Exif_1 = Exif$1;
|
|
30919
|
-
Object.defineProperty(exports, "Exif", { enumerable: true, get: function () { return __importDefault(Exif_1).default; } });
|
|
30920
|
-
__exportStar(StickerTypes, exports);
|
|
30921
|
-
exports.default = Sticker_1.Sticker;
|
|
30919
|
+
Object.defineProperty(exports$1, "Exif", { enumerable: true, get: function () { return __importDefault(Exif_1).default; } });
|
|
30920
|
+
__exportStar(StickerTypes, exports$1);
|
|
30921
|
+
exports$1.default = Sticker_1.Sticker;
|
|
30922
30922
|
} (dist));
|
|
30923
30923
|
return dist;
|
|
30924
30924
|
}
|
|
@@ -31249,11 +31249,15 @@ class BaileysProvider extends bot.ProviderClass {
|
|
|
31249
31249
|
this.logger.log(`[${new Date().toISOString()}] Message received from phone, id=${messageCtx.requestId}`, messageCtx);
|
|
31250
31250
|
}
|
|
31251
31251
|
}
|
|
31252
|
+
// Buscar siempre el que tenga formato @s.whatsapp.net (puede estar en remoteJid o remoteJidAlt)
|
|
31253
|
+
const remoteJid = messageCtx?.key?.remoteJid;
|
|
31254
|
+
const remoteJidAlt = messageCtx?.key?.remoteJidAlt;
|
|
31255
|
+
const fromParse = remoteJid?.includes('@lid') ? remoteJidAlt : remoteJid;
|
|
31252
31256
|
let payload = {
|
|
31253
31257
|
...messageCtx,
|
|
31254
31258
|
body: textToBody,
|
|
31255
31259
|
name: messageCtx?.pushName,
|
|
31256
|
-
from:
|
|
31260
|
+
from: baileyCleanNumber(fromParse),
|
|
31257
31261
|
};
|
|
31258
31262
|
if (messageCtx.message?.locationMessage) {
|
|
31259
31263
|
const { degreesLatitude, degreesLongitude } = messageCtx.message.locationMessage;
|