@authme/engine 2.8.44 → 2.8.46
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/assets/ml_engine_web.js +205 -205
- package/assets/ml_engine_web.simd.js +205 -205
- package/assets/ml_engine_web.simd.wasm +0 -0
- package/assets/ml_engine_web.wasm +0 -0
- package/index.cjs.js +27 -31
- package/index.esm.js +28 -32
- package/package.json +2 -2
- package/index.esm.d.ts +0 -1
- /package/{index.cjs.d.ts → index.d.ts} +0 -0
|
@@ -39,7 +39,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
39
39
|
if (scriptDirectory.indexOf('blob:') !== 0) {
|
|
40
40
|
scriptDirectory = scriptDirectory.substr(
|
|
41
41
|
0,
|
|
42
|
-
scriptDirectory.replace(/[?#].*/, '').lastIndexOf('/') + 1
|
|
42
|
+
scriptDirectory.replace(/[?#].*/, '').lastIndexOf('/') + 1,
|
|
43
43
|
);
|
|
44
44
|
} else {
|
|
45
45
|
scriptDirectory = '';
|
|
@@ -240,7 +240,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
240
240
|
err('falling back to ArrayBuffer instantiation');
|
|
241
241
|
return instantiateArrayBuffer(binaryFile, imports, callback);
|
|
242
242
|
});
|
|
243
|
-
}
|
|
243
|
+
},
|
|
244
244
|
);
|
|
245
245
|
}
|
|
246
246
|
return instantiateArrayBuffer(binaryFile, imports, callback);
|
|
@@ -272,7 +272,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
272
272
|
wasmBinary,
|
|
273
273
|
wasmBinaryFile,
|
|
274
274
|
info,
|
|
275
|
-
receiveInstantiationResult
|
|
275
|
+
receiveInstantiationResult,
|
|
276
276
|
).catch(readyPromiseReject);
|
|
277
277
|
return {};
|
|
278
278
|
}
|
|
@@ -506,7 +506,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
506
506
|
trailingSlash = path.substr(-1) === '/';
|
|
507
507
|
path = PATH.normalizeArray(
|
|
508
508
|
path.split('/').filter((p) => !!p),
|
|
509
|
-
!isAbsolute
|
|
509
|
+
!isAbsolute,
|
|
510
510
|
).join('/');
|
|
511
511
|
if (!path && !isAbsolute) {
|
|
512
512
|
path = '.';
|
|
@@ -567,7 +567,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
567
567
|
}
|
|
568
568
|
resolvedPath = PATH.normalizeArray(
|
|
569
569
|
resolvedPath.split('/').filter((p) => !!p),
|
|
570
|
-
!resolvedAbsolute
|
|
570
|
+
!resolvedAbsolute,
|
|
571
571
|
).join('/');
|
|
572
572
|
return (resolvedAbsolute ? '/' : '') + resolvedPath || '.';
|
|
573
573
|
},
|
|
@@ -702,7 +702,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
702
702
|
stringy,
|
|
703
703
|
u8array,
|
|
704
704
|
0,
|
|
705
|
-
u8array.length
|
|
705
|
+
u8array.length,
|
|
706
706
|
);
|
|
707
707
|
if (dontAddNull) u8array.length = numBytesWritten;
|
|
708
708
|
return u8array;
|
|
@@ -953,7 +953,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
953
953
|
newCapacity,
|
|
954
954
|
(prevCapacity *
|
|
955
955
|
(prevCapacity < CAPACITY_DOUBLING_MAX ? 2 : 1.125)) >>>
|
|
956
|
-
0
|
|
956
|
+
0,
|
|
957
957
|
);
|
|
958
958
|
if (prevCapacity != 0) newCapacity = Math.max(newCapacity, 256);
|
|
959
959
|
var oldContents = node.contents;
|
|
@@ -971,7 +971,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
971
971
|
node.contents = new Uint8Array(newSize);
|
|
972
972
|
if (oldContents) {
|
|
973
973
|
node.contents.set(
|
|
974
|
-
oldContents.subarray(0, Math.min(newSize, node.usedBytes))
|
|
974
|
+
oldContents.subarray(0, Math.min(newSize, node.usedBytes)),
|
|
975
975
|
);
|
|
976
976
|
}
|
|
977
977
|
node.usedBytes = newSize;
|
|
@@ -1102,7 +1102,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1102
1102
|
} else if (position + length <= node.usedBytes) {
|
|
1103
1103
|
node.contents.set(
|
|
1104
1104
|
buffer.subarray(offset, offset + length),
|
|
1105
|
-
position
|
|
1105
|
+
position,
|
|
1106
1106
|
);
|
|
1107
1107
|
return length;
|
|
1108
1108
|
}
|
|
@@ -1111,7 +1111,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1111
1111
|
if (node.contents.subarray && buffer.subarray) {
|
|
1112
1112
|
node.contents.set(
|
|
1113
1113
|
buffer.subarray(offset, offset + length),
|
|
1114
|
-
position
|
|
1114
|
+
position,
|
|
1115
1115
|
);
|
|
1116
1116
|
} else {
|
|
1117
1117
|
for (var i = 0; i < length; i++) {
|
|
@@ -1139,7 +1139,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1139
1139
|
MEMFS.expandFileStorage(stream.node, offset + length);
|
|
1140
1140
|
stream.node.usedBytes = Math.max(
|
|
1141
1141
|
stream.node.usedBytes,
|
|
1142
|
-
offset + length
|
|
1142
|
+
offset + length,
|
|
1143
1143
|
);
|
|
1144
1144
|
},
|
|
1145
1145
|
mmap(stream, length, position, prot, flags) {
|
|
@@ -1160,7 +1160,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1160
1160
|
contents = Array.prototype.slice.call(
|
|
1161
1161
|
contents,
|
|
1162
1162
|
position,
|
|
1163
|
-
position + length
|
|
1163
|
+
position + length,
|
|
1164
1164
|
);
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
@@ -1186,7 +1186,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1186
1186
|
(arrayBuffer) => {
|
|
1187
1187
|
assert(
|
|
1188
1188
|
arrayBuffer,
|
|
1189
|
-
`Loading data file "${url}" failed (no arrayBuffer)
|
|
1189
|
+
`Loading data file "${url}" failed (no arrayBuffer).`,
|
|
1190
1190
|
);
|
|
1191
1191
|
onload(new Uint8Array(arrayBuffer));
|
|
1192
1192
|
if (dep) removeRunDependency(dep);
|
|
@@ -1197,7 +1197,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1197
1197
|
} else {
|
|
1198
1198
|
throw `Loading data file "${url}" failed.`;
|
|
1199
1199
|
}
|
|
1200
|
-
}
|
|
1200
|
+
},
|
|
1201
1201
|
);
|
|
1202
1202
|
if (dep) addRunDependency(dep);
|
|
1203
1203
|
};
|
|
@@ -1207,7 +1207,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1207
1207
|
fileData,
|
|
1208
1208
|
canRead,
|
|
1209
1209
|
canWrite,
|
|
1210
|
-
canOwn
|
|
1210
|
+
canOwn,
|
|
1211
1211
|
) => {
|
|
1212
1212
|
FS.createDataFile(parent, name, fileData, canRead, canWrite, canOwn);
|
|
1213
1213
|
};
|
|
@@ -1234,7 +1234,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1234
1234
|
onerror,
|
|
1235
1235
|
dontCreateFile,
|
|
1236
1236
|
canOwn,
|
|
1237
|
-
preFinish
|
|
1237
|
+
preFinish,
|
|
1238
1238
|
) => {
|
|
1239
1239
|
var fullname = name ? PATH_FS.resolve(PATH.join2(parent, name)) : parent;
|
|
1240
1240
|
var dep = getUniqueRunDependency(`cp ${fullname}`);
|
|
@@ -1248,7 +1248,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1248
1248
|
byteArray,
|
|
1249
1249
|
canRead,
|
|
1250
1250
|
canWrite,
|
|
1251
|
-
canOwn
|
|
1251
|
+
canOwn,
|
|
1252
1252
|
);
|
|
1253
1253
|
}
|
|
1254
1254
|
onload?.();
|
|
@@ -1310,7 +1310,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1310
1310
|
parent,
|
|
1311
1311
|
parts[i],
|
|
1312
1312
|
WORKERFS.DIR_MODE,
|
|
1313
|
-
0
|
|
1313
|
+
0,
|
|
1314
1314
|
);
|
|
1315
1315
|
parent = createdParents[curr];
|
|
1316
1316
|
}
|
|
@@ -1329,9 +1329,9 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1329
1329
|
WORKERFS.FILE_MODE,
|
|
1330
1330
|
0,
|
|
1331
1331
|
file,
|
|
1332
|
-
file.lastModifiedDate
|
|
1332
|
+
file.lastModifiedDate,
|
|
1333
1333
|
);
|
|
1334
|
-
}
|
|
1334
|
+
},
|
|
1335
1335
|
);
|
|
1336
1336
|
(mount.opts['blobs'] || []).forEach(function (obj) {
|
|
1337
1337
|
WORKERFS.createNode(
|
|
@@ -1339,7 +1339,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1339
1339
|
base(obj['name']),
|
|
1340
1340
|
WORKERFS.FILE_MODE,
|
|
1341
1341
|
0,
|
|
1342
|
-
obj['data']
|
|
1342
|
+
obj['data'],
|
|
1343
1343
|
);
|
|
1344
1344
|
});
|
|
1345
1345
|
(mount.opts['packages'] || []).forEach(function (pack) {
|
|
@@ -1350,7 +1350,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1350
1350
|
base(name),
|
|
1351
1351
|
WORKERFS.FILE_MODE,
|
|
1352
1352
|
0,
|
|
1353
|
-
pack['blob'].slice(file.start, file.end)
|
|
1353
|
+
pack['blob'].slice(file.start, file.end),
|
|
1354
1354
|
);
|
|
1355
1355
|
});
|
|
1356
1356
|
});
|
|
@@ -1780,7 +1780,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
1780
1780
|
FS.syncFSRequests++;
|
|
1781
1781
|
if (FS.syncFSRequests > 1) {
|
|
1782
1782
|
err(
|
|
1783
|
-
`warning: ${FS.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work
|
|
1783
|
+
`warning: ${FS.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`,
|
|
1784
1784
|
);
|
|
1785
1785
|
}
|
|
1786
1786
|
var mounts = FS.getMounts(FS.root.mount);
|
|
@@ -2060,7 +2060,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2060
2060
|
}
|
|
2061
2061
|
return PATH_FS.resolve(
|
|
2062
2062
|
FS.getPath(link.parent),
|
|
2063
|
-
link.node_ops.readlink(link)
|
|
2063
|
+
link.node_ops.readlink(link),
|
|
2064
2064
|
);
|
|
2065
2065
|
},
|
|
2066
2066
|
stat(path, dontFollow) {
|
|
@@ -2290,7 +2290,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2290
2290
|
buffer,
|
|
2291
2291
|
offset,
|
|
2292
2292
|
length,
|
|
2293
|
-
position
|
|
2293
|
+
position,
|
|
2294
2294
|
);
|
|
2295
2295
|
if (!seeking) stream.position += bytesRead;
|
|
2296
2296
|
return bytesRead;
|
|
@@ -2326,7 +2326,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2326
2326
|
offset,
|
|
2327
2327
|
length,
|
|
2328
2328
|
position,
|
|
2329
|
-
canOwn
|
|
2329
|
+
canOwn,
|
|
2330
2330
|
);
|
|
2331
2331
|
if (!seeking) stream.position += bytesWritten;
|
|
2332
2332
|
return bytesWritten;
|
|
@@ -2374,7 +2374,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2374
2374
|
buffer,
|
|
2375
2375
|
offset,
|
|
2376
2376
|
length,
|
|
2377
|
-
mmapFlags
|
|
2377
|
+
mmapFlags,
|
|
2378
2378
|
);
|
|
2379
2379
|
},
|
|
2380
2380
|
munmap: (stream) => 0,
|
|
@@ -2487,7 +2487,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2487
2487
|
},
|
|
2488
2488
|
},
|
|
2489
2489
|
{},
|
|
2490
|
-
'/proc/self/fd'
|
|
2490
|
+
'/proc/self/fd',
|
|
2491
2491
|
);
|
|
2492
2492
|
},
|
|
2493
2493
|
createStandardStreams() {
|
|
@@ -2613,7 +2613,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2613
2613
|
createFile(parent, name, properties, canRead, canWrite) {
|
|
2614
2614
|
var path = PATH.join2(
|
|
2615
2615
|
typeof parent == 'string' ? parent : FS.getPath(parent),
|
|
2616
|
-
name
|
|
2616
|
+
name,
|
|
2617
2617
|
);
|
|
2618
2618
|
var mode = FS_getMode(canRead, canWrite);
|
|
2619
2619
|
return FS.create(path, mode);
|
|
@@ -2643,7 +2643,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2643
2643
|
createDevice(parent, name, input, output) {
|
|
2644
2644
|
var path = PATH.join2(
|
|
2645
2645
|
typeof parent == 'string' ? parent : FS.getPath(parent),
|
|
2646
|
-
name
|
|
2646
|
+
name,
|
|
2647
2647
|
);
|
|
2648
2648
|
var mode = FS_getMode(!!input, !!output);
|
|
2649
2649
|
if (!FS.createDevice.major) FS.createDevice.major = 64;
|
|
@@ -2699,7 +2699,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2699
2699
|
return true;
|
|
2700
2700
|
if (typeof XMLHttpRequest != 'undefined') {
|
|
2701
2701
|
throw new Error(
|
|
2702
|
-
'Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.'
|
|
2702
|
+
'Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.',
|
|
2703
2703
|
);
|
|
2704
2704
|
} else if (read_) {
|
|
2705
2705
|
try {
|
|
@@ -2738,7 +2738,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2738
2738
|
!((xhr.status >= 200 && xhr.status < 300) || xhr.status === 304)
|
|
2739
2739
|
)
|
|
2740
2740
|
throw new Error(
|
|
2741
|
-
"Couldn't load " + url + '. Status: ' + xhr.status
|
|
2741
|
+
"Couldn't load " + url + '. Status: ' + xhr.status,
|
|
2742
2742
|
);
|
|
2743
2743
|
var datalength = Number(xhr.getResponseHeader('Content-length'));
|
|
2744
2744
|
var header;
|
|
@@ -2757,11 +2757,11 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2757
2757
|
from +
|
|
2758
2758
|
', ' +
|
|
2759
2759
|
to +
|
|
2760
|
-
') or no bytes requested!'
|
|
2760
|
+
') or no bytes requested!',
|
|
2761
2761
|
);
|
|
2762
2762
|
if (to > datalength - 1)
|
|
2763
2763
|
throw new Error(
|
|
2764
|
-
'only ' + datalength + ' bytes available! programmer error!'
|
|
2764
|
+
'only ' + datalength + ' bytes available! programmer error!',
|
|
2765
2765
|
);
|
|
2766
2766
|
var xhr = new XMLHttpRequest();
|
|
2767
2767
|
xhr.open('GET', url, false);
|
|
@@ -2776,7 +2776,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2776
2776
|
!((xhr.status >= 200 && xhr.status < 300) || xhr.status === 304)
|
|
2777
2777
|
)
|
|
2778
2778
|
throw new Error(
|
|
2779
|
-
"Couldn't load " + url + '. Status: ' + xhr.status
|
|
2779
|
+
"Couldn't load " + url + '. Status: ' + xhr.status,
|
|
2780
2780
|
);
|
|
2781
2781
|
if (xhr.response !== undefined) {
|
|
2782
2782
|
return new Uint8Array(xhr.response || []);
|
|
@@ -2800,7 +2800,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2800
2800
|
datalength = this.getter(0).length;
|
|
2801
2801
|
chunkSize = datalength;
|
|
2802
2802
|
out(
|
|
2803
|
-
'LazyFiles on gzip forces download of the whole file when length is accessed'
|
|
2803
|
+
'LazyFiles on gzip forces download of the whole file when length is accessed',
|
|
2804
2804
|
);
|
|
2805
2805
|
}
|
|
2806
2806
|
this._length = datalength;
|
|
@@ -2930,79 +2930,79 @@ var AuthmeMLEngineLib = (() => {
|
|
|
2930
2930
|
HEAP32[(buf + 12) >> 2] = stat.uid;
|
|
2931
2931
|
HEAP32[(buf + 16) >> 2] = stat.gid;
|
|
2932
2932
|
HEAP32[(buf + 20) >> 2] = stat.rdev;
|
|
2933
|
-
(tempI64 = [
|
|
2933
|
+
((tempI64 = [
|
|
2934
2934
|
stat.size >>> 0,
|
|
2935
2935
|
((tempDouble = stat.size),
|
|
2936
2936
|
+Math.abs(tempDouble) >= 1
|
|
2937
2937
|
? tempDouble > 0
|
|
2938
2938
|
? +Math.floor(tempDouble / 4294967296) >>> 0
|
|
2939
2939
|
: ~~+Math.ceil(
|
|
2940
|
-
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296
|
|
2940
|
+
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296,
|
|
2941
2941
|
) >>> 0
|
|
2942
2942
|
: 0),
|
|
2943
2943
|
]),
|
|
2944
2944
|
(HEAP32[(buf + 24) >> 2] = tempI64[0]),
|
|
2945
|
-
(HEAP32[(buf + 28) >> 2] = tempI64[1]);
|
|
2945
|
+
(HEAP32[(buf + 28) >> 2] = tempI64[1]));
|
|
2946
2946
|
HEAP32[(buf + 32) >> 2] = 4096;
|
|
2947
2947
|
HEAP32[(buf + 36) >> 2] = stat.blocks;
|
|
2948
2948
|
var atime = stat.atime.getTime();
|
|
2949
2949
|
var mtime = stat.mtime.getTime();
|
|
2950
2950
|
var ctime = stat.ctime.getTime();
|
|
2951
|
-
(tempI64 = [
|
|
2951
|
+
((tempI64 = [
|
|
2952
2952
|
Math.floor(atime / 1e3) >>> 0,
|
|
2953
2953
|
((tempDouble = Math.floor(atime / 1e3)),
|
|
2954
2954
|
+Math.abs(tempDouble) >= 1
|
|
2955
2955
|
? tempDouble > 0
|
|
2956
2956
|
? +Math.floor(tempDouble / 4294967296) >>> 0
|
|
2957
2957
|
: ~~+Math.ceil(
|
|
2958
|
-
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296
|
|
2958
|
+
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296,
|
|
2959
2959
|
) >>> 0
|
|
2960
2960
|
: 0),
|
|
2961
2961
|
]),
|
|
2962
2962
|
(HEAP32[(buf + 40) >> 2] = tempI64[0]),
|
|
2963
|
-
(HEAP32[(buf + 44) >> 2] = tempI64[1]);
|
|
2963
|
+
(HEAP32[(buf + 44) >> 2] = tempI64[1]));
|
|
2964
2964
|
HEAPU32[(buf + 48) >> 2] = (atime % 1e3) * 1e3;
|
|
2965
|
-
(tempI64 = [
|
|
2965
|
+
((tempI64 = [
|
|
2966
2966
|
Math.floor(mtime / 1e3) >>> 0,
|
|
2967
2967
|
((tempDouble = Math.floor(mtime / 1e3)),
|
|
2968
2968
|
+Math.abs(tempDouble) >= 1
|
|
2969
2969
|
? tempDouble > 0
|
|
2970
2970
|
? +Math.floor(tempDouble / 4294967296) >>> 0
|
|
2971
2971
|
: ~~+Math.ceil(
|
|
2972
|
-
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296
|
|
2972
|
+
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296,
|
|
2973
2973
|
) >>> 0
|
|
2974
2974
|
: 0),
|
|
2975
2975
|
]),
|
|
2976
2976
|
(HEAP32[(buf + 56) >> 2] = tempI64[0]),
|
|
2977
|
-
(HEAP32[(buf + 60) >> 2] = tempI64[1]);
|
|
2977
|
+
(HEAP32[(buf + 60) >> 2] = tempI64[1]));
|
|
2978
2978
|
HEAPU32[(buf + 64) >> 2] = (mtime % 1e3) * 1e3;
|
|
2979
|
-
(tempI64 = [
|
|
2979
|
+
((tempI64 = [
|
|
2980
2980
|
Math.floor(ctime / 1e3) >>> 0,
|
|
2981
2981
|
((tempDouble = Math.floor(ctime / 1e3)),
|
|
2982
2982
|
+Math.abs(tempDouble) >= 1
|
|
2983
2983
|
? tempDouble > 0
|
|
2984
2984
|
? +Math.floor(tempDouble / 4294967296) >>> 0
|
|
2985
2985
|
: ~~+Math.ceil(
|
|
2986
|
-
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296
|
|
2986
|
+
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296,
|
|
2987
2987
|
) >>> 0
|
|
2988
2988
|
: 0),
|
|
2989
2989
|
]),
|
|
2990
2990
|
(HEAP32[(buf + 72) >> 2] = tempI64[0]),
|
|
2991
|
-
(HEAP32[(buf + 76) >> 2] = tempI64[1]);
|
|
2991
|
+
(HEAP32[(buf + 76) >> 2] = tempI64[1]));
|
|
2992
2992
|
HEAPU32[(buf + 80) >> 2] = (ctime % 1e3) * 1e3;
|
|
2993
|
-
(tempI64 = [
|
|
2993
|
+
((tempI64 = [
|
|
2994
2994
|
stat.ino >>> 0,
|
|
2995
2995
|
((tempDouble = stat.ino),
|
|
2996
2996
|
+Math.abs(tempDouble) >= 1
|
|
2997
2997
|
? tempDouble > 0
|
|
2998
2998
|
? +Math.floor(tempDouble / 4294967296) >>> 0
|
|
2999
2999
|
: ~~+Math.ceil(
|
|
3000
|
-
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296
|
|
3000
|
+
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296,
|
|
3001
3001
|
) >>> 0
|
|
3002
3002
|
: 0),
|
|
3003
3003
|
]),
|
|
3004
3004
|
(HEAP32[(buf + 88) >> 2] = tempI64[0]),
|
|
3005
|
-
(HEAP32[(buf + 92) >> 2] = tempI64[1]);
|
|
3005
|
+
(HEAP32[(buf + 92) >> 2] = tempI64[1]));
|
|
3006
3006
|
return 0;
|
|
3007
3007
|
},
|
|
3008
3008
|
doMsync(addr, stream, len, flags, offset) {
|
|
@@ -3133,37 +3133,37 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3133
3133
|
type = FS.isChrdev(child.mode)
|
|
3134
3134
|
? 2
|
|
3135
3135
|
: FS.isDir(child.mode)
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3136
|
+
? 4
|
|
3137
|
+
: FS.isLink(child.mode)
|
|
3138
|
+
? 10
|
|
3139
|
+
: 8;
|
|
3140
3140
|
}
|
|
3141
|
-
(tempI64 = [
|
|
3141
|
+
((tempI64 = [
|
|
3142
3142
|
id >>> 0,
|
|
3143
3143
|
((tempDouble = id),
|
|
3144
3144
|
+Math.abs(tempDouble) >= 1
|
|
3145
3145
|
? tempDouble > 0
|
|
3146
3146
|
? +Math.floor(tempDouble / 4294967296) >>> 0
|
|
3147
3147
|
: ~~+Math.ceil(
|
|
3148
|
-
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296
|
|
3148
|
+
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296,
|
|
3149
3149
|
) >>> 0
|
|
3150
3150
|
: 0),
|
|
3151
3151
|
]),
|
|
3152
3152
|
(HEAP32[(dirp + pos) >> 2] = tempI64[0]),
|
|
3153
|
-
(HEAP32[(dirp + pos + 4) >> 2] = tempI64[1]);
|
|
3154
|
-
(tempI64 = [
|
|
3153
|
+
(HEAP32[(dirp + pos + 4) >> 2] = tempI64[1]));
|
|
3154
|
+
((tempI64 = [
|
|
3155
3155
|
((idx + 1) * struct_size) >>> 0,
|
|
3156
3156
|
((tempDouble = (idx + 1) * struct_size),
|
|
3157
3157
|
+Math.abs(tempDouble) >= 1
|
|
3158
3158
|
? tempDouble > 0
|
|
3159
3159
|
? +Math.floor(tempDouble / 4294967296) >>> 0
|
|
3160
3160
|
: ~~+Math.ceil(
|
|
3161
|
-
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296
|
|
3161
|
+
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296,
|
|
3162
3162
|
) >>> 0
|
|
3163
3163
|
: 0),
|
|
3164
3164
|
]),
|
|
3165
3165
|
(HEAP32[(dirp + pos + 8) >> 2] = tempI64[0]),
|
|
3166
|
-
(HEAP32[(dirp + pos + 12) >> 2] = tempI64[1]);
|
|
3166
|
+
(HEAP32[(dirp + pos + 12) >> 2] = tempI64[1]));
|
|
3167
3167
|
HEAP16[(dirp + pos + 16) >> 1] = 280;
|
|
3168
3168
|
HEAP8[(dirp + pos + 18) >> 0] = type;
|
|
3169
3169
|
stringToUTF8(name, dirp + pos + 19, 256);
|
|
@@ -3393,7 +3393,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3393
3393
|
var whenDependentTypesAreResolved = (
|
|
3394
3394
|
myTypes,
|
|
3395
3395
|
dependentTypes,
|
|
3396
|
-
getTypeConverters
|
|
3396
|
+
getTypeConverters,
|
|
3397
3397
|
) => {
|
|
3398
3398
|
myTypes.forEach(function (type) {
|
|
3399
3399
|
typeDependencies[type] = dependentTypes;
|
|
@@ -3459,7 +3459,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3459
3459
|
setter(
|
|
3460
3460
|
setterContext,
|
|
3461
3461
|
ptr,
|
|
3462
|
-
setterArgumentType['toWireType'](destructors, o)
|
|
3462
|
+
setterArgumentType['toWireType'](destructors, o),
|
|
3463
3463
|
);
|
|
3464
3464
|
runDestructors(destructors);
|
|
3465
3465
|
};
|
|
@@ -3478,7 +3478,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3478
3478
|
toWireType: (destructors, o) => {
|
|
3479
3479
|
if (elementsLength !== o.length) {
|
|
3480
3480
|
throw new TypeError(
|
|
3481
|
-
`Incorrect number of tuple elements for ${reg.name}: expected=${elementsLength}, actual=${o.length}
|
|
3481
|
+
`Incorrect number of tuple elements for ${reg.name}: expected=${elementsLength}, actual=${o.length}`,
|
|
3482
3482
|
);
|
|
3483
3483
|
}
|
|
3484
3484
|
var ptr = rawConstructor();
|
|
@@ -3495,7 +3495,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3495
3495
|
destructorFunction: rawDestructor,
|
|
3496
3496
|
},
|
|
3497
3497
|
];
|
|
3498
|
-
}
|
|
3498
|
+
},
|
|
3499
3499
|
);
|
|
3500
3500
|
};
|
|
3501
3501
|
var structRegistrations = {};
|
|
@@ -3526,7 +3526,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3526
3526
|
setter(
|
|
3527
3527
|
setterContext,
|
|
3528
3528
|
ptr,
|
|
3529
|
-
setterArgumentType['toWireType'](destructors, o)
|
|
3529
|
+
setterArgumentType['toWireType'](destructors, o),
|
|
3530
3530
|
);
|
|
3531
3531
|
runDestructors(destructors);
|
|
3532
3532
|
},
|
|
@@ -3570,7 +3570,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3570
3570
|
name,
|
|
3571
3571
|
size,
|
|
3572
3572
|
minRange,
|
|
3573
|
-
maxRange
|
|
3573
|
+
maxRange,
|
|
3574
3574
|
) => {};
|
|
3575
3575
|
var embind_init_charCodes = () => {
|
|
3576
3576
|
var codes = new Array(256);
|
|
@@ -3596,7 +3596,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3596
3596
|
var name = registeredInstance.name;
|
|
3597
3597
|
if (!rawType) {
|
|
3598
3598
|
throwBindingError(
|
|
3599
|
-
`type "${name}" must have a positive integer typeid pointer
|
|
3599
|
+
`type "${name}" must have a positive integer typeid pointer`,
|
|
3600
3600
|
);
|
|
3601
3601
|
}
|
|
3602
3602
|
if (registeredTypes.hasOwnProperty(rawType)) {
|
|
@@ -3617,7 +3617,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3617
3617
|
function registerType(rawType, registeredInstance, options = {}) {
|
|
3618
3618
|
if (!('argPackAdvance' in registeredInstance)) {
|
|
3619
3619
|
throw new TypeError(
|
|
3620
|
-
'registerType registeredInstance requires argPackAdvance'
|
|
3620
|
+
'registerType registeredInstance requires argPackAdvance',
|
|
3621
3621
|
);
|
|
3622
3622
|
}
|
|
3623
3623
|
return sharedRegisterType(rawType, registeredInstance, options);
|
|
@@ -3743,7 +3743,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3743
3743
|
}
|
|
3744
3744
|
record.count = { value: 1 };
|
|
3745
3745
|
return attachFinalizer(
|
|
3746
|
-
Object.create(prototype, { $$: { value: record, writable: true } })
|
|
3746
|
+
Object.create(prototype, { $$: { value: record, writable: true } }),
|
|
3747
3747
|
);
|
|
3748
3748
|
};
|
|
3749
3749
|
function RegisteredPointer_fromWireType(ptr) {
|
|
@@ -3754,7 +3754,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3754
3754
|
}
|
|
3755
3755
|
var registeredInstance = getInheritedInstance(
|
|
3756
3756
|
this.registeredClass,
|
|
3757
|
-
rawPointer
|
|
3757
|
+
rawPointer,
|
|
3758
3758
|
);
|
|
3759
3759
|
if (undefined !== registeredInstance) {
|
|
3760
3760
|
if (0 === registeredInstance.$$.count.value) {
|
|
@@ -3796,7 +3796,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3796
3796
|
var dp = downcastPointer(
|
|
3797
3797
|
rawPointer,
|
|
3798
3798
|
this.registeredClass,
|
|
3799
|
-
toType.registeredClass
|
|
3799
|
+
toType.registeredClass,
|
|
3800
3800
|
);
|
|
3801
3801
|
if (dp === null) {
|
|
3802
3802
|
return makeDefaultHandle.call(this);
|
|
@@ -3870,7 +3870,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3870
3870
|
var clone = attachFinalizer(
|
|
3871
3871
|
Object.create(Object.getPrototypeOf(this), {
|
|
3872
3872
|
$$: { value: shallowCopyInternalPointer(this.$$) },
|
|
3873
|
-
})
|
|
3873
|
+
}),
|
|
3874
3874
|
);
|
|
3875
3875
|
clone.$$.count.value += 1;
|
|
3876
3876
|
clone.$$.deleteScheduled = false;
|
|
@@ -3921,12 +3921,12 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3921
3921
|
!proto[methodName].overloadTable.hasOwnProperty(arguments.length)
|
|
3922
3922
|
) {
|
|
3923
3923
|
throwBindingError(
|
|
3924
|
-
`Function '${humanName}' called with an invalid number of arguments (${arguments.length}) - expects one of (${proto[methodName].overloadTable})
|
|
3924
|
+
`Function '${humanName}' called with an invalid number of arguments (${arguments.length}) - expects one of (${proto[methodName].overloadTable})!`,
|
|
3925
3925
|
);
|
|
3926
3926
|
}
|
|
3927
3927
|
return proto[methodName].overloadTable[arguments.length].apply(
|
|
3928
3928
|
this,
|
|
3929
|
-
arguments
|
|
3929
|
+
arguments,
|
|
3930
3930
|
);
|
|
3931
3931
|
};
|
|
3932
3932
|
proto[methodName].overloadTable = [];
|
|
@@ -3945,7 +3945,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3945
3945
|
ensureOverloadTable(Module, name, name);
|
|
3946
3946
|
if (Module.hasOwnProperty(numArguments)) {
|
|
3947
3947
|
throwBindingError(
|
|
3948
|
-
`Cannot register multiple overloads of a function with the same number of arguments (${numArguments})
|
|
3948
|
+
`Cannot register multiple overloads of a function with the same number of arguments (${numArguments})!`,
|
|
3949
3949
|
);
|
|
3950
3950
|
}
|
|
3951
3951
|
Module[name].overloadTable[numArguments] = value;
|
|
@@ -3977,7 +3977,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3977
3977
|
baseClass,
|
|
3978
3978
|
getActualType,
|
|
3979
3979
|
upcast,
|
|
3980
|
-
downcast
|
|
3980
|
+
downcast,
|
|
3981
3981
|
) {
|
|
3982
3982
|
this.name = name;
|
|
3983
3983
|
this.constructor = constructor;
|
|
@@ -3993,7 +3993,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
3993
3993
|
while (ptrClass !== desiredClass) {
|
|
3994
3994
|
if (!ptrClass.upcast) {
|
|
3995
3995
|
throwBindingError(
|
|
3996
|
-
`Expected null or instance of ${desiredClass.name}, got an instance of ${ptrClass.name}
|
|
3996
|
+
`Expected null or instance of ${desiredClass.name}, got an instance of ${ptrClass.name}`,
|
|
3997
3997
|
);
|
|
3998
3998
|
}
|
|
3999
3999
|
ptr = ptrClass.upcast(ptr);
|
|
@@ -4010,12 +4010,12 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4010
4010
|
}
|
|
4011
4011
|
if (!handle.$$) {
|
|
4012
4012
|
throwBindingError(
|
|
4013
|
-
`Cannot pass "${embindRepr(handle)}" as a ${this.name}
|
|
4013
|
+
`Cannot pass "${embindRepr(handle)}" as a ${this.name}`,
|
|
4014
4014
|
);
|
|
4015
4015
|
}
|
|
4016
4016
|
if (!handle.$$.ptr) {
|
|
4017
4017
|
throwBindingError(
|
|
4018
|
-
`Cannot pass deleted object as a pointer of type ${this.name}
|
|
4018
|
+
`Cannot pass deleted object as a pointer of type ${this.name}`,
|
|
4019
4019
|
);
|
|
4020
4020
|
}
|
|
4021
4021
|
var handleClass = handle.$$.ptrType.registeredClass;
|
|
@@ -4040,12 +4040,12 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4040
4040
|
}
|
|
4041
4041
|
if (!handle || !handle.$$) {
|
|
4042
4042
|
throwBindingError(
|
|
4043
|
-
`Cannot pass "${embindRepr(handle)}" as a ${this.name}
|
|
4043
|
+
`Cannot pass "${embindRepr(handle)}" as a ${this.name}`,
|
|
4044
4044
|
);
|
|
4045
4045
|
}
|
|
4046
4046
|
if (!handle.$$.ptr) {
|
|
4047
4047
|
throwBindingError(
|
|
4048
|
-
`Cannot pass deleted object as a pointer of type ${this.name}
|
|
4048
|
+
`Cannot pass deleted object as a pointer of type ${this.name}`,
|
|
4049
4049
|
);
|
|
4050
4050
|
}
|
|
4051
4051
|
if (!this.isConst && handle.$$.ptrType.isConst) {
|
|
@@ -4054,7 +4054,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4054
4054
|
handle.$$.smartPtrType
|
|
4055
4055
|
? handle.$$.smartPtrType.name
|
|
4056
4056
|
: handle.$$.ptrType.name
|
|
4057
|
-
} to parameter type ${this.name}
|
|
4057
|
+
} to parameter type ${this.name}`,
|
|
4058
4058
|
);
|
|
4059
4059
|
}
|
|
4060
4060
|
var handleClass = handle.$$.ptrType.registeredClass;
|
|
@@ -4073,7 +4073,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4073
4073
|
handle.$$.smartPtrType
|
|
4074
4074
|
? handle.$$.smartPtrType.name
|
|
4075
4075
|
: handle.$$.ptrType.name
|
|
4076
|
-
} to parameter type ${this.name}
|
|
4076
|
+
} to parameter type ${this.name}`,
|
|
4077
4077
|
);
|
|
4078
4078
|
}
|
|
4079
4079
|
break;
|
|
@@ -4087,7 +4087,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4087
4087
|
var clonedHandle = handle['clone']();
|
|
4088
4088
|
ptr = this.rawShare(
|
|
4089
4089
|
ptr,
|
|
4090
|
-
Emval.toHandle(() => clonedHandle['delete']())
|
|
4090
|
+
Emval.toHandle(() => clonedHandle['delete']()),
|
|
4091
4091
|
);
|
|
4092
4092
|
if (destructors !== null) {
|
|
4093
4093
|
destructors.push(this.rawDestructor, ptr);
|
|
@@ -4109,17 +4109,17 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4109
4109
|
}
|
|
4110
4110
|
if (!handle.$$) {
|
|
4111
4111
|
throwBindingError(
|
|
4112
|
-
`Cannot pass "${embindRepr(handle)}" as a ${this.name}
|
|
4112
|
+
`Cannot pass "${embindRepr(handle)}" as a ${this.name}`,
|
|
4113
4113
|
);
|
|
4114
4114
|
}
|
|
4115
4115
|
if (!handle.$$.ptr) {
|
|
4116
4116
|
throwBindingError(
|
|
4117
|
-
`Cannot pass deleted object as a pointer of type ${this.name}
|
|
4117
|
+
`Cannot pass deleted object as a pointer of type ${this.name}`,
|
|
4118
4118
|
);
|
|
4119
4119
|
}
|
|
4120
4120
|
if (handle.$$.ptrType.isConst) {
|
|
4121
4121
|
throwBindingError(
|
|
4122
|
-
`Cannot convert argument of type ${handle.$$.ptrType.name} to parameter type ${this.name}
|
|
4122
|
+
`Cannot convert argument of type ${handle.$$.ptrType.name} to parameter type ${this.name}`,
|
|
4123
4123
|
);
|
|
4124
4124
|
}
|
|
4125
4125
|
var handleClass = handle.$$.ptrType.registeredClass;
|
|
@@ -4161,7 +4161,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4161
4161
|
rawGetPointee,
|
|
4162
4162
|
rawConstructor,
|
|
4163
4163
|
rawShare,
|
|
4164
|
-
rawDestructor
|
|
4164
|
+
rawDestructor,
|
|
4165
4165
|
) {
|
|
4166
4166
|
this.name = name;
|
|
4167
4167
|
this.registeredClass = registeredClass;
|
|
@@ -4234,7 +4234,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4234
4234
|
var fp = makeDynCaller();
|
|
4235
4235
|
if (typeof fp != 'function') {
|
|
4236
4236
|
throwBindingError(
|
|
4237
|
-
`unknown function pointer with signature ${signature}: ${rawFunction}
|
|
4237
|
+
`unknown function pointer with signature ${signature}: ${rawFunction}`,
|
|
4238
4238
|
);
|
|
4239
4239
|
}
|
|
4240
4240
|
return fp;
|
|
@@ -4286,7 +4286,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4286
4286
|
}
|
|
4287
4287
|
types.forEach(visit);
|
|
4288
4288
|
throw new UnboundTypeError(
|
|
4289
|
-
`${message}: ` + unboundTypes.map(getTypeName).join([', '])
|
|
4289
|
+
`${message}: ` + unboundTypes.map(getTypeName).join([', ']),
|
|
4290
4290
|
);
|
|
4291
4291
|
};
|
|
4292
4292
|
var __embind_register_class = (
|
|
@@ -4302,18 +4302,18 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4302
4302
|
downcast,
|
|
4303
4303
|
name,
|
|
4304
4304
|
destructorSignature,
|
|
4305
|
-
rawDestructor
|
|
4305
|
+
rawDestructor,
|
|
4306
4306
|
) => {
|
|
4307
4307
|
name = readLatin1String(name);
|
|
4308
4308
|
getActualType = embind__requireFunction(
|
|
4309
4309
|
getActualTypeSignature,
|
|
4310
|
-
getActualType
|
|
4310
|
+
getActualType,
|
|
4311
4311
|
);
|
|
4312
4312
|
upcast &&= embind__requireFunction(upcastSignature, upcast);
|
|
4313
4313
|
downcast &&= embind__requireFunction(downcastSignature, downcast);
|
|
4314
4314
|
rawDestructor = embind__requireFunction(
|
|
4315
4315
|
destructorSignature,
|
|
4316
|
-
rawDestructor
|
|
4316
|
+
rawDestructor,
|
|
4317
4317
|
);
|
|
4318
4318
|
var legalFunctionName = makeLegalFunctionName(name);
|
|
4319
4319
|
exposePublicSymbol(legalFunctionName, function () {
|
|
@@ -4347,8 +4347,8 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4347
4347
|
`Tried to invoke ctor of ${name} with invalid number of parameters (${
|
|
4348
4348
|
arguments.length
|
|
4349
4349
|
}) - expected (${Object.keys(
|
|
4350
|
-
registeredClass.constructor_body
|
|
4351
|
-
).toString()}) parameters instead
|
|
4350
|
+
registeredClass.constructor_body,
|
|
4351
|
+
).toString()}) parameters instead!`,
|
|
4352
4352
|
);
|
|
4353
4353
|
}
|
|
4354
4354
|
return body.apply(this, arguments);
|
|
@@ -4365,7 +4365,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4365
4365
|
baseClass,
|
|
4366
4366
|
getActualType,
|
|
4367
4367
|
upcast,
|
|
4368
|
-
downcast
|
|
4368
|
+
downcast,
|
|
4369
4369
|
);
|
|
4370
4370
|
if (registeredClass.baseClass) {
|
|
4371
4371
|
registeredClass.baseClass.__derivedClasses ??= [];
|
|
@@ -4376,21 +4376,21 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4376
4376
|
registeredClass,
|
|
4377
4377
|
true,
|
|
4378
4378
|
false,
|
|
4379
|
-
false
|
|
4379
|
+
false,
|
|
4380
4380
|
);
|
|
4381
4381
|
var pointerConverter = new RegisteredPointer(
|
|
4382
4382
|
name + '*',
|
|
4383
4383
|
registeredClass,
|
|
4384
4384
|
false,
|
|
4385
4385
|
false,
|
|
4386
|
-
false
|
|
4386
|
+
false,
|
|
4387
4387
|
);
|
|
4388
4388
|
var constPointerConverter = new RegisteredPointer(
|
|
4389
4389
|
name + ' const*',
|
|
4390
4390
|
registeredClass,
|
|
4391
4391
|
false,
|
|
4392
4392
|
true,
|
|
4393
|
-
false
|
|
4393
|
+
false,
|
|
4394
4394
|
);
|
|
4395
4395
|
registeredPointers[rawType] = {
|
|
4396
4396
|
pointerType: pointerConverter,
|
|
@@ -4398,7 +4398,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4398
4398
|
};
|
|
4399
4399
|
replacePublicSymbol(legalFunctionName, constructor);
|
|
4400
4400
|
return [referenceConverter, pointerConverter, constPointerConverter];
|
|
4401
|
-
}
|
|
4401
|
+
},
|
|
4402
4402
|
);
|
|
4403
4403
|
};
|
|
4404
4404
|
function usesDestructorStack(argTypes) {
|
|
@@ -4415,12 +4415,12 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4415
4415
|
function newFunc(constructor, argumentList) {
|
|
4416
4416
|
if (!(constructor instanceof Function)) {
|
|
4417
4417
|
throw new TypeError(
|
|
4418
|
-
`new_ called with constructor type ${typeof constructor} which is not a function
|
|
4418
|
+
`new_ called with constructor type ${typeof constructor} which is not a function`,
|
|
4419
4419
|
);
|
|
4420
4420
|
}
|
|
4421
4421
|
var dummy = createNamedFunction(
|
|
4422
4422
|
constructor.name || 'unknownFunctionName',
|
|
4423
|
-
function () {}
|
|
4423
|
+
function () {},
|
|
4424
4424
|
);
|
|
4425
4425
|
dummy.prototype = constructor.prototype;
|
|
4426
4426
|
var obj = new dummy();
|
|
@@ -4432,7 +4432,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4432
4432
|
argTypes,
|
|
4433
4433
|
isClassMethodFunc,
|
|
4434
4434
|
returns,
|
|
4435
|
-
isAsync
|
|
4435
|
+
isAsync,
|
|
4436
4436
|
) {
|
|
4437
4437
|
var needsDestructorStack = usesDestructorStack(argTypes);
|
|
4438
4438
|
var argCount = argTypes.length;
|
|
@@ -4521,12 +4521,12 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4521
4521
|
classType,
|
|
4522
4522
|
cppInvokerFunc,
|
|
4523
4523
|
cppTargetFunc,
|
|
4524
|
-
isAsync
|
|
4524
|
+
isAsync,
|
|
4525
4525
|
) {
|
|
4526
4526
|
var argCount = argTypes.length;
|
|
4527
4527
|
if (argCount < 2) {
|
|
4528
4528
|
throwBindingError(
|
|
4529
|
-
"argTypes array size mismatch! Must at least get return value and 'this' types!"
|
|
4529
|
+
"argTypes array size mismatch! Must at least get return value and 'this' types!",
|
|
4530
4530
|
);
|
|
4531
4531
|
}
|
|
4532
4532
|
var isClassMethodFunc = argTypes[1] !== null && classType !== null;
|
|
@@ -4555,7 +4555,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4555
4555
|
argTypes,
|
|
4556
4556
|
isClassMethodFunc,
|
|
4557
4557
|
returns,
|
|
4558
|
-
isAsync
|
|
4558
|
+
isAsync,
|
|
4559
4559
|
);
|
|
4560
4560
|
args.push(invokerFnBody);
|
|
4561
4561
|
var invokerFn = newFunc(Function, args).apply(null, closureArgs);
|
|
@@ -4585,7 +4585,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4585
4585
|
invokerSignature,
|
|
4586
4586
|
rawInvoker,
|
|
4587
4587
|
fn,
|
|
4588
|
-
isAsync
|
|
4588
|
+
isAsync,
|
|
4589
4589
|
) => {
|
|
4590
4590
|
var rawArgTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
|
|
4591
4591
|
methodName = readLatin1String(methodName);
|
|
@@ -4597,7 +4597,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4597
4597
|
function unboundTypesHandler() {
|
|
4598
4598
|
throwUnboundTypeError(
|
|
4599
4599
|
`Cannot call ${humanName} due to unbound types`,
|
|
4600
|
-
rawArgTypes
|
|
4600
|
+
rawArgTypes,
|
|
4601
4601
|
);
|
|
4602
4602
|
}
|
|
4603
4603
|
if (methodName.startsWith('@@')) {
|
|
@@ -4619,7 +4619,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4619
4619
|
null,
|
|
4620
4620
|
rawInvoker,
|
|
4621
4621
|
fn,
|
|
4622
|
-
isAsync
|
|
4622
|
+
isAsync,
|
|
4623
4623
|
);
|
|
4624
4624
|
if (undefined === proto[methodName].overloadTable) {
|
|
4625
4625
|
func.argCount = argCount - 1;
|
|
@@ -4646,7 +4646,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4646
4646
|
rawArgTypesAddr,
|
|
4647
4647
|
invokerSignature,
|
|
4648
4648
|
invoker,
|
|
4649
|
-
rawConstructor
|
|
4649
|
+
rawConstructor,
|
|
4650
4650
|
) => {
|
|
4651
4651
|
var rawArgTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
|
|
4652
4652
|
invoker = embind__requireFunction(invokerSignature, invoker);
|
|
@@ -4664,13 +4664,13 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4664
4664
|
argCount - 1
|
|
4665
4665
|
}) for class '${
|
|
4666
4666
|
classType.name
|
|
4667
|
-
}'! Overload resolution is currently only performed using the parameter count, not actual type info
|
|
4667
|
+
}'! Overload resolution is currently only performed using the parameter count, not actual type info!`,
|
|
4668
4668
|
);
|
|
4669
4669
|
}
|
|
4670
4670
|
classType.registeredClass.constructor_body[argCount - 1] = () => {
|
|
4671
4671
|
throwUnboundTypeError(
|
|
4672
4672
|
`Cannot construct ${classType.name} due to unbound types`,
|
|
4673
|
-
rawArgTypes
|
|
4673
|
+
rawArgTypes,
|
|
4674
4674
|
);
|
|
4675
4675
|
};
|
|
4676
4676
|
whenDependentTypesAreResolved([], rawArgTypes, (argTypes) => {
|
|
@@ -4681,7 +4681,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4681
4681
|
argTypes,
|
|
4682
4682
|
null,
|
|
4683
4683
|
invoker,
|
|
4684
|
-
rawConstructor
|
|
4684
|
+
rawConstructor,
|
|
4685
4685
|
);
|
|
4686
4686
|
return [];
|
|
4687
4687
|
});
|
|
@@ -4697,7 +4697,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4697
4697
|
rawInvoker,
|
|
4698
4698
|
context,
|
|
4699
4699
|
isPureVirtual,
|
|
4700
|
-
isAsync
|
|
4700
|
+
isAsync,
|
|
4701
4701
|
) => {
|
|
4702
4702
|
var rawArgTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
|
|
4703
4703
|
methodName = readLatin1String(methodName);
|
|
@@ -4715,7 +4715,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4715
4715
|
function unboundTypesHandler() {
|
|
4716
4716
|
throwUnboundTypeError(
|
|
4717
4717
|
`Cannot call ${humanName} due to unbound types`,
|
|
4718
|
-
rawArgTypes
|
|
4718
|
+
rawArgTypes,
|
|
4719
4719
|
);
|
|
4720
4720
|
}
|
|
4721
4721
|
var proto = classType.registeredClass.instancePrototype;
|
|
@@ -4740,7 +4740,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4740
4740
|
classType,
|
|
4741
4741
|
rawInvoker,
|
|
4742
4742
|
context,
|
|
4743
|
-
isAsync
|
|
4743
|
+
isAsync,
|
|
4744
4744
|
);
|
|
4745
4745
|
if (undefined === proto[methodName].overloadTable) {
|
|
4746
4746
|
memberFunction.argCount = argCount - 2;
|
|
@@ -4759,18 +4759,18 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4759
4759
|
}
|
|
4760
4760
|
if (!(this_ instanceof classType.registeredClass.constructor)) {
|
|
4761
4761
|
throwBindingError(
|
|
4762
|
-
`${humanName} incompatible with "this" of type ${this_.constructor.name}
|
|
4762
|
+
`${humanName} incompatible with "this" of type ${this_.constructor.name}`,
|
|
4763
4763
|
);
|
|
4764
4764
|
}
|
|
4765
4765
|
if (!this_.$$.ptr) {
|
|
4766
4766
|
throwBindingError(
|
|
4767
|
-
`cannot call emscripten binding method ${humanName} on deleted object
|
|
4767
|
+
`cannot call emscripten binding method ${humanName} on deleted object`,
|
|
4768
4768
|
);
|
|
4769
4769
|
}
|
|
4770
4770
|
return upcastPointer(
|
|
4771
4771
|
this_.$$.ptr,
|
|
4772
4772
|
this_.$$.ptrType.registeredClass,
|
|
4773
|
-
classType.registeredClass
|
|
4773
|
+
classType.registeredClass,
|
|
4774
4774
|
);
|
|
4775
4775
|
};
|
|
4776
4776
|
var __embind_register_class_property = (
|
|
@@ -4783,7 +4783,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4783
4783
|
setterArgumentType,
|
|
4784
4784
|
setterSignature,
|
|
4785
4785
|
setter,
|
|
4786
|
-
setterContext
|
|
4786
|
+
setterContext,
|
|
4787
4787
|
) => {
|
|
4788
4788
|
fieldName = readLatin1String(fieldName);
|
|
4789
4789
|
getter = embind__requireFunction(getterSignature, getter);
|
|
@@ -4794,7 +4794,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4794
4794
|
get() {
|
|
4795
4795
|
throwUnboundTypeError(
|
|
4796
4796
|
`Cannot access ${humanName} due to unbound types`,
|
|
4797
|
-
[getterReturnType, setterArgumentType]
|
|
4797
|
+
[getterReturnType, setterArgumentType],
|
|
4798
4798
|
);
|
|
4799
4799
|
},
|
|
4800
4800
|
enumerable: true,
|
|
@@ -4804,7 +4804,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4804
4804
|
desc.set = () =>
|
|
4805
4805
|
throwUnboundTypeError(
|
|
4806
4806
|
`Cannot access ${humanName} due to unbound types`,
|
|
4807
|
-
[getterReturnType, setterArgumentType]
|
|
4807
|
+
[getterReturnType, setterArgumentType],
|
|
4808
4808
|
);
|
|
4809
4809
|
} else {
|
|
4810
4810
|
desc.set = (v) =>
|
|
@@ -4813,7 +4813,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4813
4813
|
Object.defineProperty(
|
|
4814
4814
|
classType.registeredClass.instancePrototype,
|
|
4815
4815
|
fieldName,
|
|
4816
|
-
desc
|
|
4816
|
+
desc,
|
|
4817
4817
|
);
|
|
4818
4818
|
whenDependentTypesAreResolved(
|
|
4819
4819
|
[],
|
|
@@ -4824,7 +4824,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4824
4824
|
get() {
|
|
4825
4825
|
var ptr = validateThis(this, classType, humanName + ' getter');
|
|
4826
4826
|
return getterReturnType['fromWireType'](
|
|
4827
|
-
getter(getterContext, ptr)
|
|
4827
|
+
getter(getterContext, ptr),
|
|
4828
4828
|
);
|
|
4829
4829
|
},
|
|
4830
4830
|
enumerable: true,
|
|
@@ -4838,7 +4838,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4838
4838
|
setter(
|
|
4839
4839
|
setterContext,
|
|
4840
4840
|
ptr,
|
|
4841
|
-
setterArgumentType['toWireType'](destructors, v)
|
|
4841
|
+
setterArgumentType['toWireType'](destructors, v),
|
|
4842
4842
|
);
|
|
4843
4843
|
runDestructors(destructors);
|
|
4844
4844
|
};
|
|
@@ -4846,10 +4846,10 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4846
4846
|
Object.defineProperty(
|
|
4847
4847
|
classType.registeredClass.instancePrototype,
|
|
4848
4848
|
fieldName,
|
|
4849
|
-
desc
|
|
4849
|
+
desc,
|
|
4850
4850
|
);
|
|
4851
4851
|
return [];
|
|
4852
|
-
}
|
|
4852
|
+
},
|
|
4853
4853
|
);
|
|
4854
4854
|
return [];
|
|
4855
4855
|
});
|
|
@@ -4904,7 +4904,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4904
4904
|
{ value: undefined },
|
|
4905
4905
|
{ value: null },
|
|
4906
4906
|
{ value: true },
|
|
4907
|
-
{ value: false }
|
|
4907
|
+
{ value: false },
|
|
4908
4908
|
);
|
|
4909
4909
|
emval_handles.reserved = emval_handles.allocated.length;
|
|
4910
4910
|
Module['count_emval_handles'] = count_emval_handles;
|
|
@@ -4998,7 +4998,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
4998
4998
|
var impl = registeredTypes[rawType];
|
|
4999
4999
|
if (undefined === impl) {
|
|
5000
5000
|
throwBindingError(
|
|
5001
|
-
humanName + ' has unknown type ' + getTypeName(rawType)
|
|
5001
|
+
humanName + ' has unknown type ' + getTypeName(rawType),
|
|
5002
5002
|
);
|
|
5003
5003
|
}
|
|
5004
5004
|
return impl;
|
|
@@ -5012,7 +5012,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5012
5012
|
constructor: {
|
|
5013
5013
|
value: createNamedFunction(
|
|
5014
5014
|
`${enumType.name}_${name}`,
|
|
5015
|
-
function () {}
|
|
5015
|
+
function () {},
|
|
5016
5016
|
),
|
|
5017
5017
|
},
|
|
5018
5018
|
});
|
|
@@ -5062,7 +5062,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5062
5062
|
signature,
|
|
5063
5063
|
rawInvoker,
|
|
5064
5064
|
fn,
|
|
5065
|
-
isAsync
|
|
5065
|
+
isAsync,
|
|
5066
5066
|
) => {
|
|
5067
5067
|
var argTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
|
|
5068
5068
|
name = readLatin1String(name);
|
|
@@ -5073,10 +5073,10 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5073
5073
|
function () {
|
|
5074
5074
|
throwUnboundTypeError(
|
|
5075
5075
|
`Cannot call ${name} due to unbound types`,
|
|
5076
|
-
argTypes
|
|
5076
|
+
argTypes,
|
|
5077
5077
|
);
|
|
5078
5078
|
},
|
|
5079
|
-
argCount - 1
|
|
5079
|
+
argCount - 1,
|
|
5080
5080
|
);
|
|
5081
5081
|
whenDependentTypesAreResolved([], argTypes, function (argTypes) {
|
|
5082
5082
|
var invokerArgsArray = [argTypes[0], null].concat(argTypes.slice(1));
|
|
@@ -5088,9 +5088,9 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5088
5088
|
null,
|
|
5089
5089
|
rawInvoker,
|
|
5090
5090
|
fn,
|
|
5091
|
-
isAsync
|
|
5091
|
+
isAsync,
|
|
5092
5092
|
),
|
|
5093
|
-
argCount - 1
|
|
5093
|
+
argCount - 1,
|
|
5094
5094
|
);
|
|
5095
5095
|
return [];
|
|
5096
5096
|
});
|
|
@@ -5118,7 +5118,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5118
5118
|
name,
|
|
5119
5119
|
size,
|
|
5120
5120
|
minRange,
|
|
5121
|
-
maxRange
|
|
5121
|
+
maxRange,
|
|
5122
5122
|
) => {
|
|
5123
5123
|
name = readLatin1String(name);
|
|
5124
5124
|
if (maxRange === -1) {
|
|
@@ -5151,7 +5151,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5151
5151
|
readValueFromPointer: integerReadValueFromPointer(
|
|
5152
5152
|
name,
|
|
5153
5153
|
size,
|
|
5154
|
-
minRange !== 0
|
|
5154
|
+
minRange !== 0,
|
|
5155
5155
|
),
|
|
5156
5156
|
destructorFunction: null,
|
|
5157
5157
|
});
|
|
@@ -5182,7 +5182,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5182
5182
|
argPackAdvance: GenericWireTypeSize,
|
|
5183
5183
|
readValueFromPointer: decodeMemoryView,
|
|
5184
5184
|
},
|
|
5185
|
-
{ ignoreDuplicateRegistrations: true }
|
|
5185
|
+
{ ignoreDuplicateRegistrations: true },
|
|
5186
5186
|
);
|
|
5187
5187
|
};
|
|
5188
5188
|
var __embind_register_std_string = (rawType, name) => {
|
|
@@ -5253,7 +5253,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5253
5253
|
if (charCode > 255) {
|
|
5254
5254
|
_free(ptr);
|
|
5255
5255
|
throwBindingError(
|
|
5256
|
-
'String has UTF-16 code units that do not fit in 8 bits'
|
|
5256
|
+
'String has UTF-16 code units that do not fit in 8 bits',
|
|
5257
5257
|
);
|
|
5258
5258
|
}
|
|
5259
5259
|
HEAPU8[ptr + i] = charCode;
|
|
@@ -5399,7 +5399,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5399
5399
|
toWireType: (destructors, value) => {
|
|
5400
5400
|
if (!(typeof value == 'string')) {
|
|
5401
5401
|
throwBindingError(
|
|
5402
|
-
`Cannot pass non-string to C++ string type ${name}
|
|
5402
|
+
`Cannot pass non-string to C++ string type ${name}`,
|
|
5403
5403
|
);
|
|
5404
5404
|
}
|
|
5405
5405
|
var length = lengthBytesUTF(value);
|
|
@@ -5424,17 +5424,17 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5424
5424
|
constructorSignature,
|
|
5425
5425
|
rawConstructor,
|
|
5426
5426
|
destructorSignature,
|
|
5427
|
-
rawDestructor
|
|
5427
|
+
rawDestructor,
|
|
5428
5428
|
) => {
|
|
5429
5429
|
tupleRegistrations[rawType] = {
|
|
5430
5430
|
name: readLatin1String(name),
|
|
5431
5431
|
rawConstructor: embind__requireFunction(
|
|
5432
5432
|
constructorSignature,
|
|
5433
|
-
rawConstructor
|
|
5433
|
+
rawConstructor,
|
|
5434
5434
|
),
|
|
5435
5435
|
rawDestructor: embind__requireFunction(
|
|
5436
5436
|
destructorSignature,
|
|
5437
|
-
rawDestructor
|
|
5437
|
+
rawDestructor,
|
|
5438
5438
|
),
|
|
5439
5439
|
elements: [],
|
|
5440
5440
|
};
|
|
@@ -5448,7 +5448,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5448
5448
|
setterArgumentType,
|
|
5449
5449
|
setterSignature,
|
|
5450
5450
|
setter,
|
|
5451
|
-
setterContext
|
|
5451
|
+
setterContext,
|
|
5452
5452
|
) => {
|
|
5453
5453
|
tupleRegistrations[rawTupleType].elements.push({
|
|
5454
5454
|
getterReturnType: getterReturnType,
|
|
@@ -5465,17 +5465,17 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5465
5465
|
constructorSignature,
|
|
5466
5466
|
rawConstructor,
|
|
5467
5467
|
destructorSignature,
|
|
5468
|
-
rawDestructor
|
|
5468
|
+
rawDestructor,
|
|
5469
5469
|
) => {
|
|
5470
5470
|
structRegistrations[rawType] = {
|
|
5471
5471
|
name: readLatin1String(name),
|
|
5472
5472
|
rawConstructor: embind__requireFunction(
|
|
5473
5473
|
constructorSignature,
|
|
5474
|
-
rawConstructor
|
|
5474
|
+
rawConstructor,
|
|
5475
5475
|
),
|
|
5476
5476
|
rawDestructor: embind__requireFunction(
|
|
5477
5477
|
destructorSignature,
|
|
5478
|
-
rawDestructor
|
|
5478
|
+
rawDestructor,
|
|
5479
5479
|
),
|
|
5480
5480
|
fields: [],
|
|
5481
5481
|
};
|
|
@@ -5490,7 +5490,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5490
5490
|
setterArgumentType,
|
|
5491
5491
|
setterSignature,
|
|
5492
5492
|
setter,
|
|
5493
|
-
setterContext
|
|
5493
|
+
setterContext,
|
|
5494
5494
|
) => {
|
|
5495
5495
|
structRegistrations[structType].fields.push({
|
|
5496
5496
|
fieldName: readLatin1String(fieldName),
|
|
@@ -5588,7 +5588,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5588
5588
|
HEAP32[(tmPtr + 8) >> 2],
|
|
5589
5589
|
HEAP32[(tmPtr + 4) >> 2],
|
|
5590
5590
|
HEAP32[tmPtr >> 2],
|
|
5591
|
-
0
|
|
5591
|
+
0,
|
|
5592
5592
|
);
|
|
5593
5593
|
var dst = HEAP32[(tmPtr + 32) >> 2];
|
|
5594
5594
|
var guessedOffset = date.getTimezoneOffset();
|
|
@@ -5596,13 +5596,13 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5596
5596
|
var summerOffset = new Date(
|
|
5597
5597
|
date.getFullYear(),
|
|
5598
5598
|
6,
|
|
5599
|
-
1
|
|
5599
|
+
1,
|
|
5600
5600
|
).getTimezoneOffset();
|
|
5601
5601
|
var winterOffset = start.getTimezoneOffset();
|
|
5602
5602
|
var dstOffset = Math.min(winterOffset, summerOffset);
|
|
5603
5603
|
if (dst < 0) {
|
|
5604
5604
|
HEAP32[(tmPtr + 32) >> 2] = Number(
|
|
5605
|
-
summerOffset != winterOffset && dstOffset == guessedOffset
|
|
5605
|
+
summerOffset != winterOffset && dstOffset == guessedOffset,
|
|
5606
5606
|
);
|
|
5607
5607
|
} else if (dst > 0 != (dstOffset == guessedOffset)) {
|
|
5608
5608
|
var nonDstOffset = Math.max(winterOffset, summerOffset);
|
|
@@ -5632,9 +5632,9 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5632
5632
|
? tempDouble > 0
|
|
5633
5633
|
? +Math.floor(tempDouble / 4294967296) >>> 0
|
|
5634
5634
|
: ~~+Math.ceil(
|
|
5635
|
-
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296
|
|
5635
|
+
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296,
|
|
5636
5636
|
) >>> 0
|
|
5637
|
-
: 0)
|
|
5637
|
+
: 0),
|
|
5638
5638
|
),
|
|
5639
5639
|
ret >>> 0
|
|
5640
5640
|
);
|
|
@@ -5647,7 +5647,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5647
5647
|
offset_low,
|
|
5648
5648
|
offset_high,
|
|
5649
5649
|
allocated,
|
|
5650
|
-
addr
|
|
5650
|
+
addr,
|
|
5651
5651
|
) {
|
|
5652
5652
|
var offset = convertI32PairToI53Checked(offset_low, offset_high);
|
|
5653
5653
|
try {
|
|
@@ -5723,8 +5723,8 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5723
5723
|
ch == 112
|
|
5724
5724
|
? HEAPU32[buf >> 2]
|
|
5725
5725
|
: ch == 105
|
|
5726
|
-
|
|
5727
|
-
|
|
5726
|
+
? HEAP32[buf >> 2]
|
|
5727
|
+
: HEAPF64[buf >> 3],
|
|
5728
5728
|
);
|
|
5729
5729
|
buf += wide ? 8 : 4;
|
|
5730
5730
|
}
|
|
@@ -5765,11 +5765,11 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5765
5765
|
var overGrownHeapSize = oldSize * (1 + 0.2 / cutDown);
|
|
5766
5766
|
overGrownHeapSize = Math.min(
|
|
5767
5767
|
overGrownHeapSize,
|
|
5768
|
-
requestedSize + 100663296
|
|
5768
|
+
requestedSize + 100663296,
|
|
5769
5769
|
);
|
|
5770
5770
|
var newSize = Math.min(
|
|
5771
5771
|
maxHeapSize,
|
|
5772
|
-
alignUp(Math.max(requestedSize, overGrownHeapSize), 65536)
|
|
5772
|
+
alignUp(Math.max(requestedSize, overGrownHeapSize), 65536),
|
|
5773
5773
|
);
|
|
5774
5774
|
var replacement = growMemory(newSize);
|
|
5775
5775
|
if (replacement) {
|
|
@@ -5877,19 +5877,19 @@ var AuthmeMLEngineLib = (() => {
|
|
|
5877
5877
|
if (isNaN(offset)) return 61;
|
|
5878
5878
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
5879
5879
|
FS.llseek(stream, offset, whence);
|
|
5880
|
-
(tempI64 = [
|
|
5880
|
+
((tempI64 = [
|
|
5881
5881
|
stream.position >>> 0,
|
|
5882
5882
|
((tempDouble = stream.position),
|
|
5883
5883
|
+Math.abs(tempDouble) >= 1
|
|
5884
5884
|
? tempDouble > 0
|
|
5885
5885
|
? +Math.floor(tempDouble / 4294967296) >>> 0
|
|
5886
5886
|
: ~~+Math.ceil(
|
|
5887
|
-
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296
|
|
5887
|
+
(tempDouble - +(~~tempDouble >>> 0)) / 4294967296,
|
|
5888
5888
|
) >>> 0
|
|
5889
5889
|
: 0),
|
|
5890
5890
|
]),
|
|
5891
5891
|
(HEAP32[newOffset >> 2] = tempI64[0]),
|
|
5892
|
-
(HEAP32[(newOffset + 4) >> 2] = tempI64[1]);
|
|
5892
|
+
(HEAP32[(newOffset + 4) >> 2] = tempI64[1]));
|
|
5893
5893
|
if (stream.getdents && offset === 0 && whence === 0)
|
|
5894
5894
|
stream.getdents = null;
|
|
5895
5895
|
return 0;
|
|
@@ -6011,7 +6011,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6011
6011
|
for (var rule in EXPANSION_RULES_1) {
|
|
6012
6012
|
pattern = pattern.replace(
|
|
6013
6013
|
new RegExp(rule, 'g'),
|
|
6014
|
-
EXPANSION_RULES_1[rule]
|
|
6014
|
+
EXPANSION_RULES_1[rule],
|
|
6015
6015
|
);
|
|
6016
6016
|
}
|
|
6017
6017
|
var WEEKDAYS = [
|
|
@@ -6080,7 +6080,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6080
6080
|
function getWeekBasedYear(date) {
|
|
6081
6081
|
var thisDate = addDays(
|
|
6082
6082
|
new Date(date.tm_year + 1900, 0, 1),
|
|
6083
|
-
date.tm_yday
|
|
6083
|
+
date.tm_yday,
|
|
6084
6084
|
);
|
|
6085
6085
|
var janFourthThisYear = new Date(thisDate.getFullYear(), 0, 4);
|
|
6086
6086
|
var janFourthNextYear = new Date(thisDate.getFullYear() + 1, 0, 4);
|
|
@@ -6121,9 +6121,9 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6121
6121
|
isLeapYear(date.tm_year + 1900)
|
|
6122
6122
|
? MONTH_DAYS_LEAP
|
|
6123
6123
|
: MONTH_DAYS_REGULAR,
|
|
6124
|
-
date.tm_mon - 1
|
|
6124
|
+
date.tm_mon - 1,
|
|
6125
6125
|
),
|
|
6126
|
-
3
|
|
6126
|
+
3,
|
|
6127
6127
|
),
|
|
6128
6128
|
'%m': (date) => leadingNulls(date.tm_mon + 1, 2),
|
|
6129
6129
|
'%M': (date) => leadingNulls(date.tm_min, 2),
|
|
@@ -6143,7 +6143,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6143
6143
|
},
|
|
6144
6144
|
'%V': (date) => {
|
|
6145
6145
|
var val = Math.floor(
|
|
6146
|
-
(date.tm_yday + 7 - ((date.tm_wday + 6) % 7)) / 7
|
|
6146
|
+
(date.tm_yday + 7 - ((date.tm_wday + 6) % 7)) / 7,
|
|
6147
6147
|
);
|
|
6148
6148
|
if ((date.tm_wday + 371 - date.tm_yday - 2) % 7 <= 2) {
|
|
6149
6149
|
val++;
|
|
@@ -6185,7 +6185,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6185
6185
|
if (pattern.includes(rule)) {
|
|
6186
6186
|
pattern = pattern.replace(
|
|
6187
6187
|
new RegExp(rule, 'g'),
|
|
6188
|
-
EXPANSION_RULES_2[rule](date)
|
|
6188
|
+
EXPANSION_RULES_2[rule](date),
|
|
6189
6189
|
);
|
|
6190
6190
|
}
|
|
6191
6191
|
}
|
|
@@ -6272,7 +6272,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6272
6272
|
init_RegisteredPointer();
|
|
6273
6273
|
UnboundTypeError = Module['UnboundTypeError'] = extendError(
|
|
6274
6274
|
Error,
|
|
6275
|
-
'UnboundTypeError'
|
|
6275
|
+
'UnboundTypeError',
|
|
6276
6276
|
);
|
|
6277
6277
|
handleAllocatorInit();
|
|
6278
6278
|
init_emval();
|
|
@@ -6445,14 +6445,14 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6445
6445
|
a0,
|
|
6446
6446
|
a1,
|
|
6447
6447
|
a2,
|
|
6448
|
-
a3
|
|
6448
|
+
a3,
|
|
6449
6449
|
));
|
|
6450
6450
|
var dynCall_iij = (Module['dynCall_iij'] = (a0, a1, a2, a3) =>
|
|
6451
6451
|
(dynCall_iij = Module['dynCall_iij'] = wasmExports['Pb'])(
|
|
6452
6452
|
a0,
|
|
6453
6453
|
a1,
|
|
6454
6454
|
a2,
|
|
6455
|
-
a3
|
|
6455
|
+
a3,
|
|
6456
6456
|
));
|
|
6457
6457
|
var dynCall_vjii = (Module['dynCall_vjii'] = (a0, a1, a2, a3, a4) =>
|
|
6458
6458
|
(dynCall_vjii = Module['dynCall_vjii'] = wasmExports['Qb'])(
|
|
@@ -6460,14 +6460,14 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6460
6460
|
a1,
|
|
6461
6461
|
a2,
|
|
6462
6462
|
a3,
|
|
6463
|
-
a4
|
|
6463
|
+
a4,
|
|
6464
6464
|
));
|
|
6465
6465
|
var dynCall_vji = (Module['dynCall_vji'] = (a0, a1, a2, a3) =>
|
|
6466
6466
|
(dynCall_vji = Module['dynCall_vji'] = wasmExports['Rb'])(
|
|
6467
6467
|
a0,
|
|
6468
6468
|
a1,
|
|
6469
6469
|
a2,
|
|
6470
|
-
a3
|
|
6470
|
+
a3,
|
|
6471
6471
|
));
|
|
6472
6472
|
var dynCall_jiji = (Module['dynCall_jiji'] = (a0, a1, a2, a3, a4) =>
|
|
6473
6473
|
(dynCall_jiji = Module['dynCall_jiji'] = wasmExports['Sb'])(
|
|
@@ -6475,7 +6475,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6475
6475
|
a1,
|
|
6476
6476
|
a2,
|
|
6477
6477
|
a3,
|
|
6478
|
-
a4
|
|
6478
|
+
a4,
|
|
6479
6479
|
));
|
|
6480
6480
|
var dynCall_jii = (Module['dynCall_jii'] = (a0, a1, a2) =>
|
|
6481
6481
|
(dynCall_jii = Module['dynCall_jii'] = wasmExports['Tb'])(a0, a1, a2));
|
|
@@ -6486,7 +6486,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6486
6486
|
a3,
|
|
6487
6487
|
a4,
|
|
6488
6488
|
a5,
|
|
6489
|
-
a6
|
|
6489
|
+
a6,
|
|
6490
6490
|
) =>
|
|
6491
6491
|
(dynCall_viijii = Module['dynCall_viijii'] = wasmExports['Ub'])(
|
|
6492
6492
|
a0,
|
|
@@ -6495,7 +6495,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6495
6495
|
a3,
|
|
6496
6496
|
a4,
|
|
6497
6497
|
a5,
|
|
6498
|
-
a6
|
|
6498
|
+
a6,
|
|
6499
6499
|
));
|
|
6500
6500
|
var dynCall_iiiiij = (Module['dynCall_iiiiij'] = (
|
|
6501
6501
|
a0,
|
|
@@ -6504,7 +6504,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6504
6504
|
a3,
|
|
6505
6505
|
a4,
|
|
6506
6506
|
a5,
|
|
6507
|
-
a6
|
|
6507
|
+
a6,
|
|
6508
6508
|
) =>
|
|
6509
6509
|
(dynCall_iiiiij = Module['dynCall_iiiiij'] = wasmExports['Vb'])(
|
|
6510
6510
|
a0,
|
|
@@ -6513,7 +6513,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6513
6513
|
a3,
|
|
6514
6514
|
a4,
|
|
6515
6515
|
a5,
|
|
6516
|
-
a6
|
|
6516
|
+
a6,
|
|
6517
6517
|
));
|
|
6518
6518
|
var dynCall_jiiii = (Module['dynCall_jiiii'] = (a0, a1, a2, a3, a4) =>
|
|
6519
6519
|
(dynCall_jiiii = Module['dynCall_jiiii'] = wasmExports['Wb'])(
|
|
@@ -6521,7 +6521,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6521
6521
|
a1,
|
|
6522
6522
|
a2,
|
|
6523
6523
|
a3,
|
|
6524
|
-
a4
|
|
6524
|
+
a4,
|
|
6525
6525
|
));
|
|
6526
6526
|
var dynCall_iiiiijj = (Module['dynCall_iiiiijj'] = (
|
|
6527
6527
|
a0,
|
|
@@ -6532,7 +6532,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6532
6532
|
a5,
|
|
6533
6533
|
a6,
|
|
6534
6534
|
a7,
|
|
6535
|
-
a8
|
|
6535
|
+
a8,
|
|
6536
6536
|
) =>
|
|
6537
6537
|
(dynCall_iiiiijj = Module['dynCall_iiiiijj'] = wasmExports['Xb'])(
|
|
6538
6538
|
a0,
|
|
@@ -6543,7 +6543,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6543
6543
|
a5,
|
|
6544
6544
|
a6,
|
|
6545
6545
|
a7,
|
|
6546
|
-
a8
|
|
6546
|
+
a8,
|
|
6547
6547
|
));
|
|
6548
6548
|
var dynCall_iiiiiijj = (Module['dynCall_iiiiiijj'] = (
|
|
6549
6549
|
a0,
|
|
@@ -6555,7 +6555,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6555
6555
|
a6,
|
|
6556
6556
|
a7,
|
|
6557
6557
|
a8,
|
|
6558
|
-
a9
|
|
6558
|
+
a9,
|
|
6559
6559
|
) =>
|
|
6560
6560
|
(dynCall_iiiiiijj = Module['dynCall_iiiiiijj'] = wasmExports['Yb'])(
|
|
6561
6561
|
a0,
|
|
@@ -6567,7 +6567,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6567
6567
|
a6,
|
|
6568
6568
|
a7,
|
|
6569
6569
|
a8,
|
|
6570
|
-
a9
|
|
6570
|
+
a9,
|
|
6571
6571
|
));
|
|
6572
6572
|
var dynCall_viijj = (Module['dynCall_viijj'] = (
|
|
6573
6573
|
a0,
|
|
@@ -6576,7 +6576,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6576
6576
|
a3,
|
|
6577
6577
|
a4,
|
|
6578
6578
|
a5,
|
|
6579
|
-
a6
|
|
6579
|
+
a6,
|
|
6580
6580
|
) =>
|
|
6581
6581
|
(dynCall_viijj = Module['dynCall_viijj'] = wasmExports['Zb'])(
|
|
6582
6582
|
a0,
|
|
@@ -6585,7 +6585,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6585
6585
|
a3,
|
|
6586
6586
|
a4,
|
|
6587
6587
|
a5,
|
|
6588
|
-
a6
|
|
6588
|
+
a6,
|
|
6589
6589
|
));
|
|
6590
6590
|
var dynCall_jjjjjjj = (Module['dynCall_jjjjjjj'] = (
|
|
6591
6591
|
a0,
|
|
@@ -6600,7 +6600,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6600
6600
|
a9,
|
|
6601
6601
|
a10,
|
|
6602
6602
|
a11,
|
|
6603
|
-
a12
|
|
6603
|
+
a12,
|
|
6604
6604
|
) =>
|
|
6605
6605
|
(dynCall_jjjjjjj = Module['dynCall_jjjjjjj'] = wasmExports['_b'])(
|
|
6606
6606
|
a0,
|
|
@@ -6615,7 +6615,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6615
6615
|
a9,
|
|
6616
6616
|
a10,
|
|
6617
6617
|
a11,
|
|
6618
|
-
a12
|
|
6618
|
+
a12,
|
|
6619
6619
|
));
|
|
6620
6620
|
var dynCall_jjjjjj = (Module['dynCall_jjjjjj'] = (
|
|
6621
6621
|
a0,
|
|
@@ -6628,7 +6628,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6628
6628
|
a7,
|
|
6629
6629
|
a8,
|
|
6630
6630
|
a9,
|
|
6631
|
-
a10
|
|
6631
|
+
a10,
|
|
6632
6632
|
) =>
|
|
6633
6633
|
(dynCall_jjjjjj = Module['dynCall_jjjjjj'] = wasmExports['$b'])(
|
|
6634
6634
|
a0,
|
|
@@ -6641,7 +6641,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6641
6641
|
a7,
|
|
6642
6642
|
a8,
|
|
6643
6643
|
a9,
|
|
6644
|
-
a10
|
|
6644
|
+
a10,
|
|
6645
6645
|
));
|
|
6646
6646
|
var dynCall_iijjii = (Module['dynCall_iijjii'] = (
|
|
6647
6647
|
a0,
|
|
@@ -6651,7 +6651,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6651
6651
|
a4,
|
|
6652
6652
|
a5,
|
|
6653
6653
|
a6,
|
|
6654
|
-
a7
|
|
6654
|
+
a7,
|
|
6655
6655
|
) =>
|
|
6656
6656
|
(dynCall_iijjii = Module['dynCall_iijjii'] = wasmExports['ac'])(
|
|
6657
6657
|
a0,
|
|
@@ -6661,7 +6661,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6661
6661
|
a4,
|
|
6662
6662
|
a5,
|
|
6663
6663
|
a6,
|
|
6664
|
-
a7
|
|
6664
|
+
a7,
|
|
6665
6665
|
));
|
|
6666
6666
|
var dynCall_iiij = (Module['dynCall_iiij'] = (a0, a1, a2, a3, a4) =>
|
|
6667
6667
|
(dynCall_iiij = Module['dynCall_iiij'] = wasmExports['bc'])(
|
|
@@ -6669,7 +6669,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6669
6669
|
a1,
|
|
6670
6670
|
a2,
|
|
6671
6671
|
a3,
|
|
6672
|
-
a4
|
|
6672
|
+
a4,
|
|
6673
6673
|
));
|
|
6674
6674
|
var dynCall_viiijii = (Module['dynCall_viiijii'] = (
|
|
6675
6675
|
a0,
|
|
@@ -6679,7 +6679,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6679
6679
|
a4,
|
|
6680
6680
|
a5,
|
|
6681
6681
|
a6,
|
|
6682
|
-
a7
|
|
6682
|
+
a7,
|
|
6683
6683
|
) =>
|
|
6684
6684
|
(dynCall_viiijii = Module['dynCall_viiijii'] = wasmExports['cc'])(
|
|
6685
6685
|
a0,
|
|
@@ -6689,7 +6689,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6689
6689
|
a4,
|
|
6690
6690
|
a5,
|
|
6691
6691
|
a6,
|
|
6692
|
-
a7
|
|
6692
|
+
a7,
|
|
6693
6693
|
));
|
|
6694
6694
|
var dynCall_viijiiiiiiiii = (Module['dynCall_viijiiiiiiiii'] = (
|
|
6695
6695
|
a0,
|
|
@@ -6705,7 +6705,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6705
6705
|
a10,
|
|
6706
6706
|
a11,
|
|
6707
6707
|
a12,
|
|
6708
|
-
a13
|
|
6708
|
+
a13,
|
|
6709
6709
|
) =>
|
|
6710
6710
|
(dynCall_viijiiiiiiiii = Module['dynCall_viijiiiiiiiii'] =
|
|
6711
6711
|
wasmExports['dc'])(
|
|
@@ -6722,7 +6722,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6722
6722
|
a10,
|
|
6723
6723
|
a11,
|
|
6724
6724
|
a12,
|
|
6725
|
-
a13
|
|
6725
|
+
a13,
|
|
6726
6726
|
));
|
|
6727
6727
|
var dynCall_viiij = (Module['dynCall_viiij'] = (a0, a1, a2, a3, a4, a5) =>
|
|
6728
6728
|
(dynCall_viiij = Module['dynCall_viiij'] = wasmExports['ec'])(
|
|
@@ -6731,7 +6731,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6731
6731
|
a2,
|
|
6732
6732
|
a3,
|
|
6733
6733
|
a4,
|
|
6734
|
-
a5
|
|
6734
|
+
a5,
|
|
6735
6735
|
));
|
|
6736
6736
|
var dynCall_jfi = (Module['dynCall_jfi'] = (a0, a1, a2) =>
|
|
6737
6737
|
(dynCall_jfi = Module['dynCall_jfi'] = wasmExports['fc'])(a0, a1, a2));
|
|
@@ -6741,7 +6741,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6741
6741
|
a1,
|
|
6742
6742
|
a2,
|
|
6743
6743
|
a3,
|
|
6744
|
-
a4
|
|
6744
|
+
a4,
|
|
6745
6745
|
));
|
|
6746
6746
|
var dynCall_jiij = (Module['dynCall_jiij'] = (a0, a1, a2, a3, a4) =>
|
|
6747
6747
|
(dynCall_jiij = Module['dynCall_jiij'] = wasmExports['hc'])(
|
|
@@ -6749,14 +6749,14 @@ var AuthmeMLEngineLib = (() => {
|
|
|
6749
6749
|
a1,
|
|
6750
6750
|
a2,
|
|
6751
6751
|
a3,
|
|
6752
|
-
a4
|
|
6752
|
+
a4,
|
|
6753
6753
|
));
|
|
6754
6754
|
var dynCall_jiii = (Module['dynCall_jiii'] = (a0, a1, a2, a3) =>
|
|
6755
6755
|
(dynCall_jiii = Module['dynCall_jiii'] = wasmExports['ic'])(
|
|
6756
6756
|
a0,
|
|
6757
6757
|
a1,
|
|
6758
6758
|
a2,
|
|
6759
|
-
a3
|
|
6759
|
+
a3,
|
|
6760
6760
|
));
|
|
6761
6761
|
function invoke_vii(index, a1, a2) {
|
|
6762
6762
|
var sp = stackSave();
|
|
@@ -7129,7 +7129,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
7129
7129
|
a7,
|
|
7130
7130
|
a8,
|
|
7131
7131
|
a9,
|
|
7132
|
-
a10
|
|
7132
|
+
a10,
|
|
7133
7133
|
) {
|
|
7134
7134
|
var sp = stackSave();
|
|
7135
7135
|
try {
|
|
@@ -7262,7 +7262,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
7262
7262
|
a8,
|
|
7263
7263
|
a9,
|
|
7264
7264
|
a10,
|
|
7265
|
-
a11
|
|
7265
|
+
a11,
|
|
7266
7266
|
) {
|
|
7267
7267
|
var sp = stackSave();
|
|
7268
7268
|
try {
|
|
@@ -7277,7 +7277,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
7277
7277
|
a8,
|
|
7278
7278
|
a9,
|
|
7279
7279
|
a10,
|
|
7280
|
-
a11
|
|
7280
|
+
a11,
|
|
7281
7281
|
);
|
|
7282
7282
|
} catch (e) {
|
|
7283
7283
|
stackRestore(sp);
|
|
@@ -7301,7 +7301,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
7301
7301
|
a12,
|
|
7302
7302
|
a13,
|
|
7303
7303
|
a14,
|
|
7304
|
-
a15
|
|
7304
|
+
a15,
|
|
7305
7305
|
) {
|
|
7306
7306
|
var sp = stackSave();
|
|
7307
7307
|
try {
|
|
@@ -7320,7 +7320,7 @@ var AuthmeMLEngineLib = (() => {
|
|
|
7320
7320
|
a12,
|
|
7321
7321
|
a13,
|
|
7322
7322
|
a14,
|
|
7323
|
-
a15
|
|
7323
|
+
a15,
|
|
7324
7324
|
);
|
|
7325
7325
|
} catch (e) {
|
|
7326
7326
|
stackRestore(sp);
|