lebai_sdk 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lebai_sdk_bg.js +93 -93
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk_bg.js
CHANGED
@@ -53,28 +53,6 @@ function getStringFromWasm0(ptr, len) {
|
|
53
53
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
54
54
|
}
|
55
55
|
|
56
|
-
function isLikeNone(x) {
|
57
|
-
return x === undefined || x === null;
|
58
|
-
}
|
59
|
-
|
60
|
-
let cachedFloat64Memory0 = null;
|
61
|
-
|
62
|
-
function getFloat64Memory0() {
|
63
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
64
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
65
|
-
}
|
66
|
-
return cachedFloat64Memory0;
|
67
|
-
}
|
68
|
-
|
69
|
-
let cachedInt32Memory0 = null;
|
70
|
-
|
71
|
-
function getInt32Memory0() {
|
72
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
73
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
74
|
-
}
|
75
|
-
return cachedInt32Memory0;
|
76
|
-
}
|
77
|
-
|
78
56
|
let WASM_VECTOR_LEN = 0;
|
79
57
|
|
80
58
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
@@ -132,6 +110,28 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
132
110
|
return ptr;
|
133
111
|
}
|
134
112
|
|
113
|
+
function isLikeNone(x) {
|
114
|
+
return x === undefined || x === null;
|
115
|
+
}
|
116
|
+
|
117
|
+
let cachedInt32Memory0 = null;
|
118
|
+
|
119
|
+
function getInt32Memory0() {
|
120
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
121
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
122
|
+
}
|
123
|
+
return cachedInt32Memory0;
|
124
|
+
}
|
125
|
+
|
126
|
+
let cachedFloat64Memory0 = null;
|
127
|
+
|
128
|
+
function getFloat64Memory0() {
|
129
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
130
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
131
|
+
}
|
132
|
+
return cachedFloat64Memory0;
|
133
|
+
}
|
134
|
+
|
135
135
|
let cachedBigInt64Memory0 = null;
|
136
136
|
|
137
137
|
function getBigInt64Memory0() {
|
@@ -231,19 +231,19 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
231
231
|
return real;
|
232
232
|
}
|
233
233
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
234
|
-
wasm.
|
234
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h27e381c749d61c08(arg0, arg1, addHeapObject(arg2));
|
235
235
|
}
|
236
236
|
|
237
|
-
function
|
238
|
-
wasm.
|
237
|
+
function __wbg_adapter_51(arg0, arg1) {
|
238
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8b6bda0df7f357e6(arg0, arg1);
|
239
239
|
}
|
240
240
|
|
241
241
|
function __wbg_adapter_58(arg0, arg1, arg2) {
|
242
|
-
wasm.
|
242
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h44e91d37c0c4620b(arg0, arg1, addHeapObject(arg2));
|
243
243
|
}
|
244
244
|
|
245
245
|
function __wbg_adapter_61(arg0, arg1) {
|
246
|
-
wasm.
|
246
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18d3ed00ea62e483(arg0, arg1);
|
247
247
|
}
|
248
248
|
|
249
249
|
let cachedUint32Memory0 = null;
|
@@ -323,7 +323,7 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
323
323
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
324
324
|
}
|
325
325
|
function __wbg_adapter_229(arg0, arg1, arg2, arg3) {
|
326
|
-
wasm.
|
326
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h39e9730626d21c64(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
327
327
|
}
|
328
328
|
|
329
329
|
/**
|
@@ -1185,14 +1185,9 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
1185
1185
|
takeObject(arg0);
|
1186
1186
|
};
|
1187
1187
|
|
1188
|
-
export function
|
1189
|
-
const
|
1190
|
-
|
1191
|
-
obj.a = 0;
|
1192
|
-
return true;
|
1193
|
-
}
|
1194
|
-
const ret = false;
|
1195
|
-
return ret;
|
1188
|
+
export function __wbg_robotsubscription_new(arg0) {
|
1189
|
+
const ret = RobotSubscription.__wrap(arg0);
|
1190
|
+
return addHeapObject(ret);
|
1196
1191
|
};
|
1197
1192
|
|
1198
1193
|
export function __wbindgen_number_new(arg0) {
|
@@ -1210,24 +1205,6 @@ export function __wbg_robot_new(arg0) {
|
|
1210
1205
|
return addHeapObject(ret);
|
1211
1206
|
};
|
1212
1207
|
|
1213
|
-
export function __wbg_robotsubscription_new(arg0) {
|
1214
|
-
const ret = RobotSubscription.__wrap(arg0);
|
1215
|
-
return addHeapObject(ret);
|
1216
|
-
};
|
1217
|
-
|
1218
|
-
export function __wbindgen_number_get(arg0, arg1) {
|
1219
|
-
const obj = getObject(arg1);
|
1220
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1221
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1222
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1223
|
-
};
|
1224
|
-
|
1225
|
-
export function __wbindgen_boolean_get(arg0) {
|
1226
|
-
const v = getObject(arg0);
|
1227
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1228
|
-
return ret;
|
1229
|
-
};
|
1230
|
-
|
1231
1208
|
export function __wbindgen_string_get(arg0, arg1) {
|
1232
1209
|
const obj = getObject(arg1);
|
1233
1210
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
@@ -1243,11 +1220,44 @@ export function __wbindgen_is_object(arg0) {
|
|
1243
1220
|
return ret;
|
1244
1221
|
};
|
1245
1222
|
|
1223
|
+
export function __wbindgen_cb_drop(arg0) {
|
1224
|
+
const obj = takeObject(arg0).original;
|
1225
|
+
if (obj.cnt-- == 1) {
|
1226
|
+
obj.a = 0;
|
1227
|
+
return true;
|
1228
|
+
}
|
1229
|
+
const ret = false;
|
1230
|
+
return ret;
|
1231
|
+
};
|
1232
|
+
|
1246
1233
|
export function __wbindgen_error_new(arg0, arg1) {
|
1247
1234
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
1248
1235
|
return addHeapObject(ret);
|
1249
1236
|
};
|
1250
1237
|
|
1238
|
+
export function __wbindgen_boolean_get(arg0) {
|
1239
|
+
const v = getObject(arg0);
|
1240
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1241
|
+
return ret;
|
1242
|
+
};
|
1243
|
+
|
1244
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
1245
|
+
const obj = getObject(arg1);
|
1246
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1247
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1248
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1249
|
+
};
|
1250
|
+
|
1251
|
+
export function __wbindgen_is_undefined(arg0) {
|
1252
|
+
const ret = getObject(arg0) === undefined;
|
1253
|
+
return ret;
|
1254
|
+
};
|
1255
|
+
|
1256
|
+
export function __wbindgen_in(arg0, arg1) {
|
1257
|
+
const ret = getObject(arg0) in getObject(arg1);
|
1258
|
+
return ret;
|
1259
|
+
};
|
1260
|
+
|
1251
1261
|
export function __wbindgen_is_bigint(arg0) {
|
1252
1262
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
1253
1263
|
return ret;
|
@@ -1263,21 +1273,11 @@ export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
1263
1273
|
return ret;
|
1264
1274
|
};
|
1265
1275
|
|
1266
|
-
export function __wbindgen_in(arg0, arg1) {
|
1267
|
-
const ret = getObject(arg0) in getObject(arg1);
|
1268
|
-
return ret;
|
1269
|
-
};
|
1270
|
-
|
1271
1276
|
export function __wbindgen_bigint_from_u64(arg0) {
|
1272
1277
|
const ret = BigInt.asUintN(64, arg0);
|
1273
1278
|
return addHeapObject(ret);
|
1274
1279
|
};
|
1275
1280
|
|
1276
|
-
export function __wbindgen_is_undefined(arg0) {
|
1277
|
-
const ret = getObject(arg0) === undefined;
|
1278
|
-
return ret;
|
1279
|
-
};
|
1280
|
-
|
1281
1281
|
export function __wbindgen_is_string(arg0) {
|
1282
1282
|
const ret = typeof(getObject(arg0)) === 'string';
|
1283
1283
|
return ret;
|
@@ -1288,23 +1288,6 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
1288
1288
|
return addHeapObject(ret);
|
1289
1289
|
};
|
1290
1290
|
|
1291
|
-
export function __wbg_addEventListener_5651108fc3ffeb6e() { return handleError(function (arg0, arg1, arg2, arg3) {
|
1292
|
-
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
1293
|
-
}, arguments) };
|
1294
|
-
|
1295
|
-
export function __wbg_addEventListener_a5963e26cd7b176b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
1296
|
-
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
|
1297
|
-
}, arguments) };
|
1298
|
-
|
1299
|
-
export function __wbg_dispatchEvent_a622a6455be582eb() { return handleError(function (arg0, arg1) {
|
1300
|
-
const ret = getObject(arg0).dispatchEvent(getObject(arg1));
|
1301
|
-
return ret;
|
1302
|
-
}, arguments) };
|
1303
|
-
|
1304
|
-
export function __wbg_removeEventListener_5de660c02ed784e4() { return handleError(function (arg0, arg1, arg2, arg3) {
|
1305
|
-
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
1306
|
-
}, arguments) };
|
1307
|
-
|
1308
1291
|
export function __wbg_wasClean_74cf0c4d617e8bf5(arg0) {
|
1309
1292
|
const ret = getObject(arg0).wasClean;
|
1310
1293
|
return ret;
|
@@ -1359,6 +1342,23 @@ export function __wbg_data_ab99ae4a2e1e8bc9(arg0) {
|
|
1359
1342
|
return addHeapObject(ret);
|
1360
1343
|
};
|
1361
1344
|
|
1345
|
+
export function __wbg_addEventListener_5651108fc3ffeb6e() { return handleError(function (arg0, arg1, arg2, arg3) {
|
1346
|
+
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
1347
|
+
}, arguments) };
|
1348
|
+
|
1349
|
+
export function __wbg_addEventListener_a5963e26cd7b176b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
1350
|
+
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
|
1351
|
+
}, arguments) };
|
1352
|
+
|
1353
|
+
export function __wbg_dispatchEvent_a622a6455be582eb() { return handleError(function (arg0, arg1) {
|
1354
|
+
const ret = getObject(arg0).dispatchEvent(getObject(arg1));
|
1355
|
+
return ret;
|
1356
|
+
}, arguments) };
|
1357
|
+
|
1358
|
+
export function __wbg_removeEventListener_5de660c02ed784e4() { return handleError(function (arg0, arg1, arg2, arg3) {
|
1359
|
+
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
1360
|
+
}, arguments) };
|
1361
|
+
|
1362
1362
|
export function __wbg_clearTimeout_76877dbc010e786d(arg0) {
|
1363
1363
|
const ret = clearTimeout(takeObject(arg0));
|
1364
1364
|
return addHeapObject(ret);
|
@@ -1592,33 +1592,33 @@ export function __wbindgen_memory() {
|
|
1592
1592
|
return addHeapObject(ret);
|
1593
1593
|
};
|
1594
1594
|
|
1595
|
-
export function
|
1596
|
-
const ret = makeMutClosure(arg0, arg1,
|
1595
|
+
export function __wbindgen_closure_wrapper1569(arg0, arg1, arg2) {
|
1596
|
+
const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_48);
|
1597
1597
|
return addHeapObject(ret);
|
1598
1598
|
};
|
1599
1599
|
|
1600
|
-
export function
|
1601
|
-
const ret = makeMutClosure(arg0, arg1,
|
1600
|
+
export function __wbindgen_closure_wrapper1571(arg0, arg1, arg2) {
|
1601
|
+
const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_51);
|
1602
1602
|
return addHeapObject(ret);
|
1603
1603
|
};
|
1604
1604
|
|
1605
|
-
export function
|
1606
|
-
const ret = makeMutClosure(arg0, arg1,
|
1605
|
+
export function __wbindgen_closure_wrapper1573(arg0, arg1, arg2) {
|
1606
|
+
const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_48);
|
1607
1607
|
return addHeapObject(ret);
|
1608
1608
|
};
|
1609
1609
|
|
1610
|
-
export function
|
1611
|
-
const ret = makeMutClosure(arg0, arg1,
|
1610
|
+
export function __wbindgen_closure_wrapper1575(arg0, arg1, arg2) {
|
1611
|
+
const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_48);
|
1612
1612
|
return addHeapObject(ret);
|
1613
1613
|
};
|
1614
1614
|
|
1615
|
-
export function
|
1616
|
-
const ret = makeMutClosure(arg0, arg1,
|
1615
|
+
export function __wbindgen_closure_wrapper2320(arg0, arg1, arg2) {
|
1616
|
+
const ret = makeMutClosure(arg0, arg1, 733, __wbg_adapter_58);
|
1617
1617
|
return addHeapObject(ret);
|
1618
1618
|
};
|
1619
1619
|
|
1620
|
-
export function
|
1621
|
-
const ret = makeMutClosure(arg0, arg1,
|
1620
|
+
export function __wbindgen_closure_wrapper2372(arg0, arg1, arg2) {
|
1621
|
+
const ret = makeMutClosure(arg0, arg1, 757, __wbg_adapter_61);
|
1622
1622
|
return addHeapObject(ret);
|
1623
1623
|
};
|
1624
1624
|
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|