lebai_sdk 0.2.3 → 0.2.5
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/lebai_sdk_bg.js +94 -94
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk_bg.js
CHANGED
@@ -8,10 +8,19 @@ const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
9
9
|
heap.push(undefined, null, true, false);
|
10
10
|
|
11
|
-
function getObject(idx) { return heap[idx]; }
|
12
|
-
|
13
11
|
let heap_next = heap.length;
|
14
12
|
|
13
|
+
function addHeapObject(obj) {
|
14
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
15
|
+
const idx = heap_next;
|
16
|
+
heap_next = heap[idx];
|
17
|
+
|
18
|
+
heap[idx] = obj;
|
19
|
+
return idx;
|
20
|
+
}
|
21
|
+
|
22
|
+
function getObject(idx) { return heap[idx]; }
|
23
|
+
|
15
24
|
function dropObject(idx) {
|
16
25
|
if (idx < 132) return;
|
17
26
|
heap[idx] = heap_next;
|
@@ -24,11 +33,7 @@ function takeObject(idx) {
|
|
24
33
|
return ret;
|
25
34
|
}
|
26
35
|
|
27
|
-
|
28
|
-
|
29
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
30
|
-
|
31
|
-
cachedTextDecoder.decode();
|
36
|
+
let WASM_VECTOR_LEN = 0;
|
32
37
|
|
33
38
|
let cachedUint8Memory0 = null;
|
34
39
|
|
@@ -39,22 +44,6 @@ function getUint8Memory0() {
|
|
39
44
|
return cachedUint8Memory0;
|
40
45
|
}
|
41
46
|
|
42
|
-
function getStringFromWasm0(ptr, len) {
|
43
|
-
ptr = ptr >>> 0;
|
44
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
45
|
-
}
|
46
|
-
|
47
|
-
function addHeapObject(obj) {
|
48
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
49
|
-
const idx = heap_next;
|
50
|
-
heap_next = heap[idx];
|
51
|
-
|
52
|
-
heap[idx] = obj;
|
53
|
-
return idx;
|
54
|
-
}
|
55
|
-
|
56
|
-
let WASM_VECTOR_LEN = 0;
|
57
|
-
|
58
47
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
59
48
|
|
60
49
|
let cachedTextEncoder = new lTextEncoder('utf-8');
|
@@ -123,6 +112,17 @@ function getInt32Memory0() {
|
|
123
112
|
return cachedInt32Memory0;
|
124
113
|
}
|
125
114
|
|
115
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
116
|
+
|
117
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
118
|
+
|
119
|
+
cachedTextDecoder.decode();
|
120
|
+
|
121
|
+
function getStringFromWasm0(ptr, len) {
|
122
|
+
ptr = ptr >>> 0;
|
123
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
124
|
+
}
|
125
|
+
|
126
126
|
let cachedFloat64Memory0 = null;
|
127
127
|
|
128
128
|
function getFloat64Memory0() {
|
@@ -230,20 +230,20 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
230
230
|
|
231
231
|
return real;
|
232
232
|
}
|
233
|
-
function __wbg_adapter_50(arg0, arg1
|
234
|
-
wasm.
|
233
|
+
function __wbg_adapter_50(arg0, arg1) {
|
234
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6ec8fc04c2a6203d(arg0, arg1);
|
235
235
|
}
|
236
236
|
|
237
|
-
function
|
238
|
-
wasm.
|
237
|
+
function __wbg_adapter_53(arg0, arg1, arg2) {
|
238
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h325fa89650025c24(arg0, arg1, addHeapObject(arg2));
|
239
239
|
}
|
240
240
|
|
241
241
|
function __wbg_adapter_60(arg0, arg1, arg2) {
|
242
|
-
wasm.
|
242
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdddd44ffff5953d7(arg0, arg1, addHeapObject(arg2));
|
243
243
|
}
|
244
244
|
|
245
245
|
function __wbg_adapter_63(arg0, arg1) {
|
246
|
-
wasm.
|
246
|
+
wasm.wasm_bindgen__convert__closures__invoke0_mut__h3f8d714827ea705e(arg0, arg1);
|
247
247
|
}
|
248
248
|
|
249
249
|
let cachedUint32Memory0 = null;
|
@@ -351,7 +351,7 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
351
351
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
352
352
|
}
|
353
353
|
function __wbg_adapter_251(arg0, arg1, arg2, arg3) {
|
354
|
-
wasm.
|
354
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__hec2b27bf71d5ba83(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
355
355
|
}
|
356
356
|
|
357
357
|
/**
|
@@ -1312,13 +1312,13 @@ export class RobotSubscription {
|
|
1312
1312
|
}
|
1313
1313
|
}
|
1314
1314
|
|
1315
|
-
export function
|
1316
|
-
|
1315
|
+
export function __wbindgen_number_new(arg0) {
|
1316
|
+
const ret = arg0;
|
1317
|
+
return addHeapObject(ret);
|
1317
1318
|
};
|
1318
1319
|
|
1319
|
-
export function
|
1320
|
-
|
1321
|
-
return addHeapObject(ret);
|
1320
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
1321
|
+
takeObject(arg0);
|
1322
1322
|
};
|
1323
1323
|
|
1324
1324
|
export function __wbindgen_string_get(arg0, arg1) {
|
@@ -1330,8 +1330,8 @@ export function __wbindgen_string_get(arg0, arg1) {
|
|
1330
1330
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
1331
1331
|
};
|
1332
1332
|
|
1333
|
-
export function
|
1334
|
-
const ret = arg0;
|
1333
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
1334
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
1335
1335
|
return addHeapObject(ret);
|
1336
1336
|
};
|
1337
1337
|
|
@@ -1345,28 +1345,12 @@ export function __wbg_robot_new(arg0) {
|
|
1345
1345
|
return addHeapObject(ret);
|
1346
1346
|
};
|
1347
1347
|
|
1348
|
-
export function __wbindgen_boolean_get(arg0) {
|
1349
|
-
const v = getObject(arg0);
|
1350
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1351
|
-
return ret;
|
1352
|
-
};
|
1353
|
-
|
1354
1348
|
export function __wbindgen_is_object(arg0) {
|
1355
1349
|
const val = getObject(arg0);
|
1356
1350
|
const ret = typeof(val) === 'object' && val !== null;
|
1357
1351
|
return ret;
|
1358
1352
|
};
|
1359
1353
|
|
1360
|
-
export function __wbindgen_as_number(arg0) {
|
1361
|
-
const ret = +getObject(arg0);
|
1362
|
-
return ret;
|
1363
|
-
};
|
1364
|
-
|
1365
|
-
export function __wbindgen_object_clone_ref(arg0) {
|
1366
|
-
const ret = getObject(arg0);
|
1367
|
-
return addHeapObject(ret);
|
1368
|
-
};
|
1369
|
-
|
1370
1354
|
export function __wbindgen_cb_drop(arg0) {
|
1371
1355
|
const obj = takeObject(arg0).original;
|
1372
1356
|
if (obj.cnt-- == 1) {
|
@@ -1382,13 +1366,9 @@ export function __wbindgen_error_new(arg0, arg1) {
|
|
1382
1366
|
return addHeapObject(ret);
|
1383
1367
|
};
|
1384
1368
|
|
1385
|
-
export function
|
1386
|
-
const
|
1387
|
-
|
1388
|
-
};
|
1389
|
-
|
1390
|
-
export function __wbindgen_in(arg0, arg1) {
|
1391
|
-
const ret = getObject(arg0) in getObject(arg1);
|
1369
|
+
export function __wbindgen_boolean_get(arg0) {
|
1370
|
+
const v = getObject(arg0);
|
1371
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1392
1372
|
return ret;
|
1393
1373
|
};
|
1394
1374
|
|
@@ -1399,6 +1379,26 @@ export function __wbindgen_number_get(arg0, arg1) {
|
|
1399
1379
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1400
1380
|
};
|
1401
1381
|
|
1382
|
+
export function __wbindgen_as_number(arg0) {
|
1383
|
+
const ret = +getObject(arg0);
|
1384
|
+
return ret;
|
1385
|
+
};
|
1386
|
+
|
1387
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
1388
|
+
const ret = getObject(arg0);
|
1389
|
+
return addHeapObject(ret);
|
1390
|
+
};
|
1391
|
+
|
1392
|
+
export function __wbindgen_is_undefined(arg0) {
|
1393
|
+
const ret = getObject(arg0) === undefined;
|
1394
|
+
return ret;
|
1395
|
+
};
|
1396
|
+
|
1397
|
+
export function __wbindgen_in(arg0, arg1) {
|
1398
|
+
const ret = getObject(arg0) in getObject(arg1);
|
1399
|
+
return ret;
|
1400
|
+
};
|
1401
|
+
|
1402
1402
|
export function __wbindgen_is_bigint(arg0) {
|
1403
1403
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
1404
1404
|
return ret;
|
@@ -1424,6 +1424,28 @@ export function __wbindgen_is_string(arg0) {
|
|
1424
1424
|
return ret;
|
1425
1425
|
};
|
1426
1426
|
|
1427
|
+
export function __wbg_data_ba3ea616b5392abf(arg0) {
|
1428
|
+
const ret = getObject(arg0).data;
|
1429
|
+
return addHeapObject(ret);
|
1430
|
+
};
|
1431
|
+
|
1432
|
+
export function __wbg_addEventListener_9bf60ea8a362e5e4() { return handleError(function (arg0, arg1, arg2, arg3) {
|
1433
|
+
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
1434
|
+
}, arguments) };
|
1435
|
+
|
1436
|
+
export function __wbg_addEventListener_374cbfd2bbc19ccf() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
1437
|
+
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
|
1438
|
+
}, arguments) };
|
1439
|
+
|
1440
|
+
export function __wbg_dispatchEvent_40c3472e9e4dcf5e() { return handleError(function (arg0, arg1) {
|
1441
|
+
const ret = getObject(arg0).dispatchEvent(getObject(arg1));
|
1442
|
+
return ret;
|
1443
|
+
}, arguments) };
|
1444
|
+
|
1445
|
+
export function __wbg_removeEventListener_66ee1536a0b32c11() { return handleError(function (arg0, arg1, arg2, arg3) {
|
1446
|
+
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
1447
|
+
}, arguments) };
|
1448
|
+
|
1427
1449
|
export function __wbg_wasClean_1efd9561c5671b45(arg0) {
|
1428
1450
|
const ret = getObject(arg0).wasClean;
|
1429
1451
|
return ret;
|
@@ -1447,23 +1469,6 @@ export function __wbg_newwitheventinitdict_744eb6eb61245b7c() { return handleErr
|
|
1447
1469
|
return addHeapObject(ret);
|
1448
1470
|
}, arguments) };
|
1449
1471
|
|
1450
|
-
export function __wbg_addEventListener_9bf60ea8a362e5e4() { return handleError(function (arg0, arg1, arg2, arg3) {
|
1451
|
-
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
1452
|
-
}, arguments) };
|
1453
|
-
|
1454
|
-
export function __wbg_addEventListener_374cbfd2bbc19ccf() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
1455
|
-
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
|
1456
|
-
}, arguments) };
|
1457
|
-
|
1458
|
-
export function __wbg_dispatchEvent_40c3472e9e4dcf5e() { return handleError(function (arg0, arg1) {
|
1459
|
-
const ret = getObject(arg0).dispatchEvent(getObject(arg1));
|
1460
|
-
return ret;
|
1461
|
-
}, arguments) };
|
1462
|
-
|
1463
|
-
export function __wbg_removeEventListener_66ee1536a0b32c11() { return handleError(function (arg0, arg1, arg2, arg3) {
|
1464
|
-
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
1465
|
-
}, arguments) };
|
1466
|
-
|
1467
1472
|
export function __wbg_readyState_c8f9a5deaec3bb41(arg0) {
|
1468
1473
|
const ret = getObject(arg0).readyState;
|
1469
1474
|
return ret;
|
@@ -1490,11 +1495,6 @@ export function __wbg_send_2ba7d32fcb03b9a4() { return handleError(function (arg
|
|
1490
1495
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
1491
1496
|
}, arguments) };
|
1492
1497
|
|
1493
|
-
export function __wbg_data_ba3ea616b5392abf(arg0) {
|
1494
|
-
const ret = getObject(arg0).data;
|
1495
|
-
return addHeapObject(ret);
|
1496
|
-
};
|
1497
|
-
|
1498
1498
|
export function __wbg_queueMicrotask_4d890031a6a5a50c(arg0) {
|
1499
1499
|
queueMicrotask(getObject(arg0));
|
1500
1500
|
};
|
@@ -1762,33 +1762,33 @@ export function __wbindgen_memory() {
|
|
1762
1762
|
return addHeapObject(ret);
|
1763
1763
|
};
|
1764
1764
|
|
1765
|
-
export function
|
1766
|
-
const ret = makeMutClosure(arg0, arg1,
|
1765
|
+
export function __wbindgen_closure_wrapper1758(arg0, arg1, arg2) {
|
1766
|
+
const ret = makeMutClosure(arg0, arg1, 739, __wbg_adapter_50);
|
1767
1767
|
return addHeapObject(ret);
|
1768
1768
|
};
|
1769
1769
|
|
1770
|
-
export function
|
1771
|
-
const ret = makeMutClosure(arg0, arg1,
|
1770
|
+
export function __wbindgen_closure_wrapper1760(arg0, arg1, arg2) {
|
1771
|
+
const ret = makeMutClosure(arg0, arg1, 739, __wbg_adapter_53);
|
1772
1772
|
return addHeapObject(ret);
|
1773
1773
|
};
|
1774
1774
|
|
1775
|
-
export function
|
1776
|
-
const ret = makeMutClosure(arg0, arg1,
|
1775
|
+
export function __wbindgen_closure_wrapper1762(arg0, arg1, arg2) {
|
1776
|
+
const ret = makeMutClosure(arg0, arg1, 739, __wbg_adapter_53);
|
1777
1777
|
return addHeapObject(ret);
|
1778
1778
|
};
|
1779
1779
|
|
1780
|
-
export function
|
1781
|
-
const ret = makeMutClosure(arg0, arg1,
|
1780
|
+
export function __wbindgen_closure_wrapper1764(arg0, arg1, arg2) {
|
1781
|
+
const ret = makeMutClosure(arg0, arg1, 739, __wbg_adapter_53);
|
1782
1782
|
return addHeapObject(ret);
|
1783
1783
|
};
|
1784
1784
|
|
1785
|
-
export function
|
1786
|
-
const ret = makeMutClosure(arg0, arg1,
|
1785
|
+
export function __wbindgen_closure_wrapper2423(arg0, arg1, arg2) {
|
1786
|
+
const ret = makeMutClosure(arg0, arg1, 849, __wbg_adapter_60);
|
1787
1787
|
return addHeapObject(ret);
|
1788
1788
|
};
|
1789
1789
|
|
1790
|
-
export function
|
1791
|
-
const ret = makeMutClosure(arg0, arg1,
|
1790
|
+
export function __wbindgen_closure_wrapper2463(arg0, arg1, arg2) {
|
1791
|
+
const ret = makeMutClosure(arg0, arg1, 866, __wbg_adapter_63);
|
1792
1792
|
return addHeapObject(ret);
|
1793
1793
|
};
|
1794
1794
|
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|