@unyt/datex 0.0.4 → 0.0.6

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.
Files changed (97) hide show
  1. package/esm/_dnt.shims.d.ts +1 -2
  2. package/esm/_dnt.shims.d.ts.map +1 -1
  3. package/esm/datex-core/datex_core_js.d.ts.map +1 -0
  4. package/esm/{src/datex-core → datex-core}/datex_core_js.internal.d.ts +79 -116
  5. package/esm/datex-core/datex_core_js.internal.d.ts.map +1 -0
  6. package/esm/{src/datex-core → datex-core}/datex_core_js.internal.js +245 -344
  7. package/esm/{src/datex-core → datex-core}/datex_core_js.js +2 -2
  8. package/esm/datex-core/datex_core_js.wasm +0 -0
  9. package/esm/datex-core.d.ts.map +1 -0
  10. package/esm/deno.json +3 -3
  11. package/esm/{src/mod.d.ts → mod.d.ts} +2 -2
  12. package/esm/mod.d.ts.map +1 -0
  13. package/esm/mod.js +29 -0
  14. package/esm/network/com-hub.d.ts +21 -0
  15. package/esm/network/com-hub.d.ts.map +1 -0
  16. package/esm/network/com-hub.js +74 -0
  17. package/esm/network/com-interface.d.ts +17 -0
  18. package/esm/network/com-interface.d.ts.map +1 -0
  19. package/esm/network/com-interface.js +62 -0
  20. package/esm/runtime/runtime.d.ts +38 -0
  21. package/esm/runtime/runtime.d.ts.map +1 -0
  22. package/esm/{src/runtime → runtime}/runtime.js +21 -6
  23. package/package.json +5 -9
  24. package/esm/_dnt.test_polyfills.d.ts.map +0 -1
  25. package/esm/_dnt.test_shims.d.ts.map +0 -1
  26. package/esm/deps/jsr.io/@std/assert/1.0.13/almost_equals.d.ts.map +0 -1
  27. package/esm/deps/jsr.io/@std/assert/1.0.13/array_includes.d.ts.map +0 -1
  28. package/esm/deps/jsr.io/@std/assert/1.0.13/assert.d.ts.map +0 -1
  29. package/esm/deps/jsr.io/@std/assert/1.0.13/assertion_error.d.ts.map +0 -1
  30. package/esm/deps/jsr.io/@std/assert/1.0.13/equal.d.ts.map +0 -1
  31. package/esm/deps/jsr.io/@std/assert/1.0.13/equals.d.ts.map +0 -1
  32. package/esm/deps/jsr.io/@std/assert/1.0.13/exists.d.ts.map +0 -1
  33. package/esm/deps/jsr.io/@std/assert/1.0.13/fail.d.ts.map +0 -1
  34. package/esm/deps/jsr.io/@std/assert/1.0.13/false.d.ts.map +0 -1
  35. package/esm/deps/jsr.io/@std/assert/1.0.13/greater.d.ts.map +0 -1
  36. package/esm/deps/jsr.io/@std/assert/1.0.13/greater_or_equal.d.ts.map +0 -1
  37. package/esm/deps/jsr.io/@std/assert/1.0.13/instance_of.d.ts.map +0 -1
  38. package/esm/deps/jsr.io/@std/assert/1.0.13/is_error.d.ts.map +0 -1
  39. package/esm/deps/jsr.io/@std/assert/1.0.13/less.d.ts.map +0 -1
  40. package/esm/deps/jsr.io/@std/assert/1.0.13/less_or_equal.d.ts.map +0 -1
  41. package/esm/deps/jsr.io/@std/assert/1.0.13/match.d.ts.map +0 -1
  42. package/esm/deps/jsr.io/@std/assert/1.0.13/mod.d.ts.map +0 -1
  43. package/esm/deps/jsr.io/@std/assert/1.0.13/not_equals.d.ts.map +0 -1
  44. package/esm/deps/jsr.io/@std/assert/1.0.13/not_instance_of.d.ts.map +0 -1
  45. package/esm/deps/jsr.io/@std/assert/1.0.13/not_match.d.ts.map +0 -1
  46. package/esm/deps/jsr.io/@std/assert/1.0.13/not_strict_equals.d.ts.map +0 -1
  47. package/esm/deps/jsr.io/@std/assert/1.0.13/object_match.d.ts.map +0 -1
  48. package/esm/deps/jsr.io/@std/assert/1.0.13/rejects.d.ts.map +0 -1
  49. package/esm/deps/jsr.io/@std/assert/1.0.13/strict_equals.d.ts.map +0 -1
  50. package/esm/deps/jsr.io/@std/assert/1.0.13/string_includes.d.ts.map +0 -1
  51. package/esm/deps/jsr.io/@std/assert/1.0.13/throws.d.ts.map +0 -1
  52. package/esm/deps/jsr.io/@std/assert/1.0.13/unimplemented.d.ts.map +0 -1
  53. package/esm/deps/jsr.io/@std/assert/1.0.13/unreachable.d.ts.map +0 -1
  54. package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +0 -1
  55. package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +0 -1
  56. package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.d.ts +0 -2
  57. package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.d.ts.map +0 -1
  58. package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.internal.d.ts +0 -69
  59. package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.internal.d.ts.map +0 -1
  60. package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/mod.d.ts.map +0 -1
  61. package/esm/deps/jsr.io/@std/crypto/1.0.5/crypto.d.ts.map +0 -1
  62. package/esm/deps/jsr.io/@std/internal/1.0.9/build_message.d.ts.map +0 -1
  63. package/esm/deps/jsr.io/@std/internal/1.0.9/diff.d.ts.map +0 -1
  64. package/esm/deps/jsr.io/@std/internal/1.0.9/diff_str.d.ts.map +0 -1
  65. package/esm/deps/jsr.io/@std/internal/1.0.9/format.d.ts.map +0 -1
  66. package/esm/deps/jsr.io/@std/internal/1.0.9/styles.d.ts.map +0 -1
  67. package/esm/deps/jsr.io/@std/internal/1.0.9/types.d.ts.map +0 -1
  68. package/esm/deps/jsr.io/@std/uuid/1.0.9/_common.d.ts.map +0 -1
  69. package/esm/deps/jsr.io/@std/uuid/1.0.9/common.d.ts.map +0 -1
  70. package/esm/deps/jsr.io/@std/uuid/1.0.9/constants.d.ts.map +0 -1
  71. package/esm/deps/jsr.io/@std/uuid/1.0.9/mod.d.ts.map +0 -1
  72. package/esm/deps/jsr.io/@std/uuid/1.0.9/v1.d.ts.map +0 -1
  73. package/esm/deps/jsr.io/@std/uuid/1.0.9/v3.d.ts.map +0 -1
  74. package/esm/deps/jsr.io/@std/uuid/1.0.9/v4.d.ts.map +0 -1
  75. package/esm/deps/jsr.io/@std/uuid/1.0.9/v5.d.ts.map +0 -1
  76. package/esm/rs-lib/datex-core/Cargo.toml +0 -169
  77. package/esm/src/datex-core/datex_core_js.d.ts.map +0 -1
  78. package/esm/src/datex-core/datex_core_js.internal.d.ts.map +0 -1
  79. package/esm/src/datex-core/datex_core_js.wasm +0 -0
  80. package/esm/src/datex-core.d.ts.map +0 -1
  81. package/esm/src/mod.d.ts.map +0 -1
  82. package/esm/src/mod.js +0 -11
  83. package/esm/src/runtime/runtime.d.ts +0 -25
  84. package/esm/src/runtime/runtime.d.ts.map +0 -1
  85. package/esm/test/compiler/execute.test.d.ts.map +0 -1
  86. package/esm/test/crypto.test.d.ts.map +0 -1
  87. package/esm/test/init.test.d.ts.map +0 -1
  88. package/esm/test/is-node.d.ts.map +0 -1
  89. package/esm/test/network/BaseInterface.test.d.ts.map +0 -1
  90. package/esm/test/network/ComHub.test.d.ts.map +0 -1
  91. package/esm/test/network/WebsocketClientInterface.test.d.ts.map +0 -1
  92. package/esm/test/network/WebsocketMockupServer.d.ts.map +0 -1
  93. package/esm/test/network/WebsocketServerInterface.test.d.ts.map +0 -1
  94. package/esm/test/utils.d.ts.map +0 -1
  95. /package/esm/{src/datex-core → datex-core}/datex_core_js.d.ts +0 -0
  96. /package/esm/{src/datex-core.d.ts → datex-core.d.ts} +0 -0
  97. /package/esm/{src/datex-core.js → datex-core.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  // @generated file from wasmbuild -- do not edit
2
- import * as dntShim from "../../_dnt.shims.js";
2
+ import * as dntShim from "../_dnt.shims.js";
3
3
  // @ts-nocheck: generated
4
4
  // deno-lint-ignore-file
5
5
  // deno-fmt-ignore-file
@@ -216,34 +216,15 @@ function takeFromExternrefTable0(idx) {
216
216
  wasm.__externref_table_dealloc(idx);
217
217
  return value;
218
218
  }
219
- function getArrayJsValueFromWasm0(ptr, len) {
220
- ptr = ptr >>> 0;
221
- const mem = getDataViewMemory0();
222
- const result = [];
223
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
224
- result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
225
- }
226
- wasm.__externref_drop_slice(ptr, len);
227
- return result;
228
- }
229
- function passArrayJsValueToWasm0(array, malloc) {
230
- const ptr = malloc(array.length * 4, 4) >>> 0;
231
- for (let i = 0; i < array.length; i++) {
232
- const add = addToExternrefTable0(array[i]);
233
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
234
- }
235
- WASM_VECTOR_LEN = array.length;
236
- return ptr;
237
- }
238
219
  /**
239
- * @param {string} endpoint
220
+ * @param {string} config
240
221
  * @param {any} debug_flags
241
222
  * @returns {JSRuntime}
242
223
  */
243
- export function init_runtime(endpoint, debug_flags) {
244
- const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
224
+ export function create_runtime(config, debug_flags) {
225
+ const ptr0 = passStringToWasm0(config, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
245
226
  const len0 = WASM_VECTOR_LEN;
246
- const ret = wasm.init_runtime(ptr0, len0, debug_flags);
227
+ const ret = wasm.create_runtime(ptr0, len0, debug_flags);
247
228
  return JSRuntime.__wrap(ret);
248
229
  }
249
230
  /**
@@ -287,28 +268,41 @@ export function execute_internal(datex_script) {
287
268
  const ret = wasm.execute_internal(ptr0, len0);
288
269
  return ret !== 0;
289
270
  }
271
+ function getArrayJsValueFromWasm0(ptr, len) {
272
+ ptr = ptr >>> 0;
273
+ const mem = getDataViewMemory0();
274
+ const result = [];
275
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
276
+ result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
277
+ }
278
+ wasm.__externref_drop_slice(ptr, len);
279
+ return result;
280
+ }
290
281
  function _assertClass(instance, klass) {
291
282
  if (!(instance instanceof klass)) {
292
283
  throw new Error(`expected instance of ${klass.name}`);
293
284
  }
294
285
  }
295
- function __wbg_adapter_52(arg0, arg1, arg2) {
296
- wasm.closure490_externref_shim(arg0, arg1, arg2);
297
- }
298
- function __wbg_adapter_57(arg0, arg1) {
299
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hab851cbeb73a172f(arg0, arg1);
286
+ function passArrayJsValueToWasm0(array, malloc) {
287
+ const ptr = malloc(array.length * 4, 4) >>> 0;
288
+ for (let i = 0; i < array.length; i++) {
289
+ const add = addToExternrefTable0(array[i]);
290
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
291
+ }
292
+ WASM_VECTOR_LEN = array.length;
293
+ return ptr;
300
294
  }
301
- function __wbg_adapter_60(arg0, arg1, arg2) {
302
- wasm.closure887_externref_shim(arg0, arg1, arg2);
295
+ function __wbg_adapter_40(arg0, arg1, arg2) {
296
+ wasm.closure237_externref_shim(arg0, arg1, arg2);
303
297
  }
304
- function __wbg_adapter_63(arg0, arg1, arg2) {
305
- wasm.closure891_externref_shim(arg0, arg1, arg2);
298
+ function __wbg_adapter_49(arg0, arg1, arg2) {
299
+ wasm.closure1038_externref_shim(arg0, arg1, arg2);
306
300
  }
307
- function __wbg_adapter_66(arg0, arg1, arg2) {
308
- wasm.closure895_externref_shim(arg0, arg1, arg2);
301
+ function __wbg_adapter_52(arg0, arg1) {
302
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc8a7d0aeea5060d1(arg0, arg1);
309
303
  }
310
- function __wbg_adapter_310(arg0, arg1, arg2, arg3) {
311
- wasm.closure1796_externref_shim(arg0, arg1, arg2, arg3);
304
+ function __wbg_adapter_280(arg0, arg1, arg2, arg3) {
305
+ wasm.closure1984_externref_shim(arg0, arg1, arg2, arg3);
312
306
  }
313
307
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
314
308
  const __wbindgen_enum_RtcIceConnectionState = [
@@ -343,71 +337,40 @@ export class BaseJSInterface {
343
337
  const ptr = this.__destroy_into_raw();
344
338
  wasm.__wbg_basejsinterface_free(ptr, 0);
345
339
  }
346
- /**
347
- * @param {JSComHub} com_hub
348
- * @param {InterfaceProperties | string} name_or_properties
349
- */
350
- constructor(com_hub, name_or_properties) {
351
- _assertClass(com_hub, JSComHub);
352
- var ptr0 = com_hub.__destroy_into_raw();
353
- const ret = wasm.basejsinterface_new(ptr0, name_or_properties);
354
- this.__wbg_ptr = ret >>> 0;
355
- BaseJSInterfaceFinalization.register(this, this.__wbg_ptr, this);
356
- return this;
357
- }
358
- /**
359
- * @returns {InterfaceProperties}
360
- */
361
- get properties() {
362
- const ret = wasm.basejsinterface_properties(this.__wbg_ptr);
363
- return ret;
364
- }
365
- /**
366
- * @returns {string}
367
- */
368
- get uuid() {
369
- let deferred1_0;
370
- let deferred1_1;
371
- try {
372
- const ret = wasm.basejsinterface_uuid(this.__wbg_ptr);
373
- deferred1_0 = ret[0];
374
- deferred1_1 = ret[1];
375
- return getStringFromWasm0(ret[0], ret[1]);
376
- }
377
- finally {
378
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
379
- }
340
+ }
341
+ const JSComHubFinalization = (typeof FinalizationRegistry === "undefined")
342
+ ? { register: () => { }, unregister: () => { } }
343
+ : new FinalizationRegistry((ptr) => wasm.__wbg_jscomhub_free(ptr >>> 0, 1));
344
+ export class JSComHub {
345
+ static __wrap(ptr) {
346
+ ptr = ptr >>> 0;
347
+ const obj = Object.create(JSComHub.prototype);
348
+ obj.__wbg_ptr = ptr;
349
+ JSComHubFinalization.register(obj, obj.__wbg_ptr, obj);
350
+ return obj;
380
351
  }
381
- /**
382
- * @param {string} socket_uuid
383
- * @param {Uint8Array} data
384
- * @returns {Promise<boolean>}
385
- */
386
- test_send_block(socket_uuid, data) {
387
- const ptr0 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
388
- const len0 = WASM_VECTOR_LEN;
389
- const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
390
- const len1 = WASM_VECTOR_LEN;
391
- const ret = wasm.basejsinterface_test_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
392
- return ret;
352
+ __destroy_into_raw() {
353
+ const ptr = this.__wbg_ptr;
354
+ this.__wbg_ptr = 0;
355
+ JSComHubFinalization.unregister(this);
356
+ return ptr;
393
357
  }
394
- /**
395
- * @param {Function} func
396
- */
397
- on_send(func) {
398
- wasm.basejsinterface_on_send(this.__wbg_ptr, func);
358
+ free() {
359
+ const ptr = this.__destroy_into_raw();
360
+ wasm.__wbg_jscomhub_free(ptr, 0);
399
361
  }
400
362
  /**
401
- * @param {string} direction
363
+ * @param {string} interface_uuid
364
+ * @param {WebSocket} websocket
402
365
  * @returns {string}
403
366
  */
404
- register_socket(direction) {
367
+ websocket_server_interface_add_socket(interface_uuid, websocket) {
405
368
  let deferred3_0;
406
369
  let deferred3_1;
407
370
  try {
408
- const ptr0 = passStringToWasm0(direction, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
371
+ const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
409
372
  const len0 = WASM_VECTOR_LEN;
410
- const ret = wasm.basejsinterface_register_socket(this.__wbg_ptr, ptr0, len0);
373
+ const ret = wasm.jscomhub_websocket_server_interface_add_socket(this.__wbg_ptr, ptr0, len0, websocket);
411
374
  var ptr2 = ret[0];
412
375
  var len2 = ret[1];
413
376
  if (ret[3]) {
@@ -424,50 +387,108 @@ export class BaseJSInterface {
424
387
  }
425
388
  }
426
389
  /**
390
+ * @param {string} uuid
391
+ * @param {string} direction
392
+ * @returns {string}
393
+ */
394
+ base_interface_register_socket(uuid, direction) {
395
+ let deferred4_0;
396
+ let deferred4_1;
397
+ try {
398
+ const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
399
+ const len0 = WASM_VECTOR_LEN;
400
+ const ptr1 = passStringToWasm0(direction, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
401
+ const len1 = WASM_VECTOR_LEN;
402
+ const ret = wasm.jscomhub_base_interface_register_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
403
+ var ptr3 = ret[0];
404
+ var len3 = ret[1];
405
+ if (ret[3]) {
406
+ ptr3 = 0;
407
+ len3 = 0;
408
+ throw takeFromExternrefTable0(ret[2]);
409
+ }
410
+ deferred4_0 = ptr3;
411
+ deferred4_1 = len3;
412
+ return getStringFromWasm0(ptr3, len3);
413
+ }
414
+ finally {
415
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
416
+ }
417
+ }
418
+ /**
419
+ * @param {string} uuid
427
420
  * @param {string} socket_uuid
421
+ * @param {Uint8Array} data
428
422
  */
429
- destroy_socket(socket_uuid) {
430
- const ptr0 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
423
+ base_interface_receive(uuid, socket_uuid, data) {
424
+ const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
431
425
  const len0 = WASM_VECTOR_LEN;
432
- const ret = wasm.basejsinterface_destroy_socket(this.__wbg_ptr, ptr0, len0);
426
+ const ptr1 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
427
+ const len1 = WASM_VECTOR_LEN;
428
+ const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
429
+ const len2 = WASM_VECTOR_LEN;
430
+ const ret = wasm.jscomhub_base_interface_receive(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
433
431
  if (ret[1]) {
434
432
  throw takeFromExternrefTable0(ret[0]);
435
433
  }
436
434
  }
437
435
  /**
436
+ * @param {string} uuid
437
+ * @param {string} socket_uuid
438
+ */
439
+ base_interface_destroy_socket(uuid, socket_uuid) {
440
+ const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
441
+ const len0 = WASM_VECTOR_LEN;
442
+ const ptr1 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
443
+ const len1 = WASM_VECTOR_LEN;
444
+ const ret = wasm.jscomhub_base_interface_destroy_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
445
+ if (ret[1]) {
446
+ throw takeFromExternrefTable0(ret[0]);
447
+ }
448
+ }
449
+ /**
450
+ * @param {string} uuid
451
+ * @param {Function} func
452
+ */
453
+ base_interface_on_send(uuid, func) {
454
+ const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
455
+ const len0 = WASM_VECTOR_LEN;
456
+ const ret = wasm.jscomhub_base_interface_on_send(this.__wbg_ptr, ptr0, len0, func);
457
+ if (ret[1]) {
458
+ throw takeFromExternrefTable0(ret[0]);
459
+ }
460
+ }
461
+ /**
462
+ * @param {string} uuid
438
463
  * @param {string} socket_uuid
439
464
  * @param {Uint8Array} data
440
- * @returns {Promise<void>}
465
+ * @returns {Promise<boolean>}
441
466
  */
442
- receive(socket_uuid, data) {
443
- const ptr0 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
467
+ base_interface_test_send_block(uuid, socket_uuid, data) {
468
+ const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
444
469
  const len0 = WASM_VECTOR_LEN;
445
- const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
470
+ const ptr1 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
446
471
  const len1 = WASM_VECTOR_LEN;
447
- const ret = wasm.basejsinterface_receive(this.__wbg_ptr, ptr0, len0, ptr1, len1);
472
+ const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
473
+ const len2 = WASM_VECTOR_LEN;
474
+ const ret = wasm.jscomhub_base_interface_test_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
448
475
  return ret;
449
476
  }
450
- }
451
- const JSComHubFinalization = (typeof FinalizationRegistry === "undefined")
452
- ? { register: () => { }, unregister: () => { } }
453
- : new FinalizationRegistry((ptr) => wasm.__wbg_jscomhub_free(ptr >>> 0, 1));
454
- export class JSComHub {
455
- static __wrap(ptr) {
456
- ptr = ptr >>> 0;
457
- const obj = Object.create(JSComHub.prototype);
458
- obj.__wbg_ptr = ptr;
459
- JSComHubFinalization.register(obj, obj.__wbg_ptr, obj);
460
- return obj;
477
+ register_default_interface_factories() {
478
+ wasm.jscomhub_register_default_interface_factories(this.__wbg_ptr);
461
479
  }
462
- __destroy_into_raw() {
463
- const ptr = this.__wbg_ptr;
464
- this.__wbg_ptr = 0;
465
- JSComHubFinalization.unregister(this);
466
- return ptr;
467
- }
468
- free() {
469
- const ptr = this.__destroy_into_raw();
470
- wasm.__wbg_jscomhub_free(ptr, 0);
480
+ /**
481
+ * @param {string} interface_type
482
+ * @param {string} properties
483
+ * @returns {Promise<any>}
484
+ */
485
+ create_interface(interface_type, properties) {
486
+ const ptr0 = passStringToWasm0(interface_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
487
+ const len0 = WASM_VECTOR_LEN;
488
+ const ptr1 = passStringToWasm0(properties, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
489
+ const len1 = WASM_VECTOR_LEN;
490
+ const ret = wasm.jscomhub_create_interface(this.__wbg_ptr, ptr0, len0, ptr1, len1);
491
+ return ret;
471
492
  }
472
493
  /**
473
494
  * @param {string} interface_uuid
@@ -479,16 +500,6 @@ export class JSComHub {
479
500
  const ret = wasm.jscomhub_close_interface(this.__wbg_ptr, ptr0, len0);
480
501
  return ret;
481
502
  }
482
- start_update_loop() {
483
- wasm.jscomhub_start_update_loop(this.__wbg_ptr);
484
- }
485
- /**
486
- * @returns {Promise<void>}
487
- */
488
- stop_update_loop() {
489
- const ret = wasm.jscomhub_stop_update_loop(this.__wbg_ptr);
490
- return ret;
491
- }
492
503
  /**
493
504
  * @returns {Promise<void>}
494
505
  */
@@ -496,34 +507,6 @@ export class JSComHub {
496
507
  const ret = wasm.jscomhub_update(this.__wbg_ptr);
497
508
  return ret;
498
509
  }
499
- /**
500
- * @returns {WebSocketServerRegistry}
501
- */
502
- get websocket_server() {
503
- const ret = wasm.jscomhub_serial(this.__wbg_ptr);
504
- return WebSocketServerRegistry.__wrap(ret);
505
- }
506
- /**
507
- * @returns {WebSocketClientRegistry}
508
- */
509
- get websocket_client() {
510
- const ret = wasm.jscomhub_serial(this.__wbg_ptr);
511
- return WebSocketClientRegistry.__wrap(ret);
512
- }
513
- /**
514
- * @returns {SerialRegistry}
515
- */
516
- get serial() {
517
- const ret = wasm.jscomhub_serial(this.__wbg_ptr);
518
- return SerialRegistry.__wrap(ret);
519
- }
520
- /**
521
- * @returns {WebRTCRegistry}
522
- */
523
- get webrtc() {
524
- const ret = wasm.jscomhub_serial(this.__wbg_ptr);
525
- return WebRTCRegistry.__wrap(ret);
526
- }
527
510
  /**
528
511
  * Send a block to the given interface and socket
529
512
  * This does not involve the routing on the ComHub level.
@@ -553,6 +536,32 @@ export class JSComHub {
553
536
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
554
537
  return v1;
555
538
  }
539
+ /**
540
+ * @returns {string}
541
+ */
542
+ get_metadata_string() {
543
+ let deferred1_0;
544
+ let deferred1_1;
545
+ try {
546
+ const ret = wasm.jscomhub_get_metadata_string(this.__wbg_ptr);
547
+ deferred1_0 = ret[0];
548
+ deferred1_1 = ret[1];
549
+ return getStringFromWasm0(ret[0], ret[1]);
550
+ }
551
+ finally {
552
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
553
+ }
554
+ }
555
+ /**
556
+ * @param {string} endpoint
557
+ * @returns {Promise<string | undefined>}
558
+ */
559
+ get_trace_string(endpoint) {
560
+ const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
561
+ const len0 = WASM_VECTOR_LEN;
562
+ const ret = wasm.jscomhub_get_trace_string(this.__wbg_ptr, ptr0, len0);
563
+ return ret;
564
+ }
556
565
  }
557
566
  const JSMemoryFinalization = (typeof FinalizationRegistry === "undefined")
558
567
  ? { register: () => { }, unregister: () => { } }
@@ -636,6 +645,36 @@ export class JSRuntime {
636
645
  const ptr = this.__destroy_into_raw();
637
646
  wasm.__wbg_jsruntime_free(ptr, 0);
638
647
  }
648
+ /**
649
+ * @returns {JSComHub}
650
+ */
651
+ get com_hub() {
652
+ const ret = wasm.__wbg_get_jsruntime_com_hub(this.__wbg_ptr);
653
+ return JSComHub.__wrap(ret);
654
+ }
655
+ /**
656
+ * @param {JSComHub} arg0
657
+ */
658
+ set com_hub(arg0) {
659
+ _assertClass(arg0, JSComHub);
660
+ var ptr0 = arg0.__destroy_into_raw();
661
+ wasm.__wbg_set_jsruntime_com_hub(this.__wbg_ptr, ptr0);
662
+ }
663
+ /**
664
+ * @returns {JSMemory}
665
+ */
666
+ get memory() {
667
+ const ret = wasm.__wbg_get_jsruntime_memory(this.__wbg_ptr);
668
+ return JSMemory.__wrap(ret);
669
+ }
670
+ /**
671
+ * @param {JSMemory} arg0
672
+ */
673
+ set memory(arg0) {
674
+ _assertClass(arg0, JSMemory);
675
+ var ptr0 = arg0.__destroy_into_raw();
676
+ wasm.__wbg_set_jsruntime_memory(this.__wbg_ptr, ptr0);
677
+ }
639
678
  /**
640
679
  * @returns {Promise<Promise<any>>}
641
680
  */
@@ -659,13 +698,6 @@ export class JSRuntime {
659
698
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
660
699
  }
661
700
  }
662
- /**
663
- * @returns {JSMemory}
664
- */
665
- get memory() {
666
- const ret = wasm.jsruntime_memory(this.__wbg_ptr);
667
- return JSMemory.__wrap(ret);
668
- }
669
701
  /**
670
702
  * @returns {string}
671
703
  */
@@ -682,13 +714,6 @@ export class JSRuntime {
682
714
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
683
715
  }
684
716
  }
685
- /**
686
- * @returns {JSComHub}
687
- */
688
- get com_hub() {
689
- const ret = wasm.jsruntime_com_hub(this.__wbg_ptr);
690
- return JSComHub.__wrap(ret);
691
- }
692
717
  /**
693
718
  * @param {Uint8Array | null | undefined} body
694
719
  * @param {string[]} receivers
@@ -706,58 +731,56 @@ export class JSRuntime {
706
731
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
707
732
  return v3;
708
733
  }
709
- }
710
- const SerialRegistryFinalization = (typeof FinalizationRegistry === "undefined")
711
- ? { register: () => { }, unregister: () => { } }
712
- : new FinalizationRegistry((ptr) => wasm.__wbg_serialregistry_free(ptr >>> 0, 1));
713
- export class SerialRegistry {
714
- static __wrap(ptr) {
715
- ptr = ptr >>> 0;
716
- const obj = Object.create(SerialRegistry.prototype);
717
- obj.__wbg_ptr = ptr;
718
- SerialRegistryFinalization.register(obj, obj.__wbg_ptr, obj);
719
- return obj;
720
- }
721
- __destroy_into_raw() {
722
- const ptr = this.__wbg_ptr;
723
- this.__wbg_ptr = 0;
724
- SerialRegistryFinalization.unregister(this);
725
- return ptr;
726
- }
727
- free() {
728
- const ptr = this.__destroy_into_raw();
729
- wasm.__wbg_serialregistry_free(ptr, 0);
734
+ /**
735
+ * @returns {Promise<void>}
736
+ */
737
+ start() {
738
+ const ret = wasm.jsruntime_start(this.__wbg_ptr);
739
+ return ret;
730
740
  }
731
741
  /**
732
- * @param {string} interface_uuid
733
- * @returns {Promise<any>}
742
+ * @returns {Promise<void>}
734
743
  */
735
- close(interface_uuid) {
736
- const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
737
- const len0 = WASM_VECTOR_LEN;
738
- const ret = wasm.serialregistry_close(this.__wbg_ptr, ptr0, len0);
744
+ _stop() {
745
+ const ret = wasm.jsruntime__stop(this.__wbg_ptr);
739
746
  return ret;
740
747
  }
741
748
  /**
742
- * @param {number} baud_rate
749
+ * @param {string} script
750
+ * @param {boolean} formatted
743
751
  * @returns {Promise<string>}
744
752
  */
745
- register(baud_rate) {
746
- const ret = wasm.serialregistry_register(this.__wbg_ptr, baud_rate);
753
+ execute(script, formatted) {
754
+ const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
755
+ const len0 = WASM_VECTOR_LEN;
756
+ const ret = wasm.jsruntime_execute(this.__wbg_ptr, ptr0, len0, formatted);
747
757
  return ret;
748
758
  }
759
+ /**
760
+ * @param {string} script
761
+ * @param {boolean} formatted
762
+ * @returns {string}
763
+ */
764
+ execute_sync(script, formatted) {
765
+ let deferred2_0;
766
+ let deferred2_1;
767
+ try {
768
+ const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
769
+ const len0 = WASM_VECTOR_LEN;
770
+ const ret = wasm.jsruntime_execute_sync(this.__wbg_ptr, ptr0, len0, formatted);
771
+ deferred2_0 = ret[0];
772
+ deferred2_1 = ret[1];
773
+ return getStringFromWasm0(ret[0], ret[1]);
774
+ }
775
+ finally {
776
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
777
+ }
778
+ }
749
779
  }
750
780
  const WebRTCRegistryFinalization = (typeof FinalizationRegistry === "undefined")
751
781
  ? { register: () => { }, unregister: () => { } }
752
782
  : new FinalizationRegistry((ptr) => wasm.__wbg_webrtcregistry_free(ptr >>> 0, 1));
753
783
  export class WebRTCRegistry {
754
- static __wrap(ptr) {
755
- ptr = ptr >>> 0;
756
- const obj = Object.create(WebRTCRegistry.prototype);
757
- obj.__wbg_ptr = ptr;
758
- WebRTCRegistryFinalization.register(obj, obj.__wbg_ptr, obj);
759
- return obj;
760
- }
761
784
  __destroy_into_raw() {
762
785
  const ptr = this.__wbg_ptr;
763
786
  this.__wbg_ptr = 0;
@@ -860,59 +883,10 @@ export class WebRTCRegistry {
860
883
  return ret;
861
884
  }
862
885
  }
863
- const WebSocketClientRegistryFinalization = (typeof FinalizationRegistry === "undefined")
864
- ? { register: () => { }, unregister: () => { } }
865
- : new FinalizationRegistry((ptr) => wasm.__wbg_websocketclientregistry_free(ptr >>> 0, 1));
866
- export class WebSocketClientRegistry {
867
- static __wrap(ptr) {
868
- ptr = ptr >>> 0;
869
- const obj = Object.create(WebSocketClientRegistry.prototype);
870
- obj.__wbg_ptr = ptr;
871
- WebSocketClientRegistryFinalization.register(obj, obj.__wbg_ptr, obj);
872
- return obj;
873
- }
874
- __destroy_into_raw() {
875
- const ptr = this.__wbg_ptr;
876
- this.__wbg_ptr = 0;
877
- WebSocketClientRegistryFinalization.unregister(this);
878
- return ptr;
879
- }
880
- free() {
881
- const ptr = this.__destroy_into_raw();
882
- wasm.__wbg_websocketclientregistry_free(ptr, 0);
883
- }
884
- /**
885
- * @param {string} interface_uuid
886
- * @returns {Promise<any>}
887
- */
888
- close(interface_uuid) {
889
- const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
890
- const len0 = WASM_VECTOR_LEN;
891
- const ret = wasm.websocketclientregistry_close(this.__wbg_ptr, ptr0, len0);
892
- return ret;
893
- }
894
- /**
895
- * @param {string} address
896
- * @returns {Promise<string>}
897
- */
898
- register(address) {
899
- const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
900
- const len0 = WASM_VECTOR_LEN;
901
- const ret = wasm.websocketclientregistry_register(this.__wbg_ptr, ptr0, len0);
902
- return ret;
903
- }
904
- }
905
886
  const WebSocketServerRegistryFinalization = (typeof FinalizationRegistry === "undefined")
906
887
  ? { register: () => { }, unregister: () => { } }
907
888
  : new FinalizationRegistry((ptr) => wasm.__wbg_websocketserverregistry_free(ptr >>> 0, 1));
908
889
  export class WebSocketServerRegistry {
909
- static __wrap(ptr) {
910
- ptr = ptr >>> 0;
911
- const obj = Object.create(WebSocketServerRegistry.prototype);
912
- obj.__wbg_ptr = ptr;
913
- WebSocketServerRegistryFinalization.register(obj, obj.__wbg_ptr, obj);
914
- return obj;
915
- }
916
890
  __destroy_into_raw() {
917
891
  const ptr = this.__wbg_ptr;
918
892
  this.__wbg_ptr = 0;
@@ -933,24 +907,6 @@ export class WebSocketServerRegistry {
933
907
  const ret = wasm.websocketserverregistry_close(this.__wbg_ptr, ptr0, len0);
934
908
  return ret;
935
909
  }
936
- /**
937
- * @returns {Promise<string>}
938
- */
939
- register() {
940
- const ret = wasm.websocketserverregistry_register(this.__wbg_ptr);
941
- return ret;
942
- }
943
- /**
944
- * @param {string} interface_uuid
945
- * @param {WebSocket} websocket
946
- * @returns {any}
947
- */
948
- add_socket(interface_uuid, websocket) {
949
- const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
950
- const len0 = WASM_VECTOR_LEN;
951
- const ret = wasm.websocketserverregistry_add_socket(this.__wbg_ptr, ptr0, len0, websocket);
952
- return ret;
953
- }
954
910
  }
955
911
  export function __wbg_addIceCandidate_345f614980db6707(arg0, arg1) {
956
912
  const ret = arg0.addIceCandidate(arg1);
@@ -1040,22 +996,12 @@ export function __wbg_decrypt_f913c8ffec178afe() {
1040
996
  return ret;
1041
997
  }, arguments);
1042
998
  }
1043
- export function __wbg_deleteProperty_96363d4a1d977c97() {
1044
- return handleError(function (arg0, arg1) {
1045
- const ret = Reflect.deleteProperty(arg0, arg1);
1046
- return ret;
1047
- }, arguments);
1048
- }
1049
999
  export function __wbg_encrypt_4d890132dfd8a0a7() {
1050
1000
  return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1051
1001
  const ret = arg0.encrypt(getStringFromWasm0(arg1, arg2), arg3, getArrayU8FromWasm0(arg4, arg5));
1052
1002
  return ret;
1053
1003
  }, arguments);
1054
1004
  }
1055
- export function __wbg_entries_3265d4158b33e5dc(arg0) {
1056
- const ret = Object.entries(arg0);
1057
- return ret;
1058
- }
1059
1005
  export function __wbg_error_524f506f44df1645(arg0) {
1060
1006
  console.error(arg0);
1061
1007
  }
@@ -1105,10 +1051,6 @@ export function __wbg_get_67b2ba62fc30de12() {
1105
1051
  return ret;
1106
1052
  }, arguments);
1107
1053
  }
1108
- export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
1109
- const ret = arg0[arg1 >>> 0];
1110
- return ret;
1111
- }
1112
1054
  export function __wbg_getprivatekey_c03ce2e8935f16db(arg0) {
1113
1055
  const ret = arg0.privateKey;
1114
1056
  return ret;
@@ -1200,10 +1142,6 @@ export function __wbg_instanceof_Window_def73ea0955fc569(arg0) {
1200
1142
  const ret = result;
1201
1143
  return ret;
1202
1144
  }
1203
- export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
1204
- const ret = Number.isSafeInteger(arg0);
1205
- return ret;
1206
- }
1207
1145
  export function __wbg_label_674e88e28b0f69db(arg0, arg1) {
1208
1146
  const ret = arg1.label;
1209
1147
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1215,10 +1153,6 @@ export function __wbg_length_a446193dc22c12f8(arg0) {
1215
1153
  const ret = arg0.length;
1216
1154
  return ret;
1217
1155
  }
1218
- export function __wbg_length_e2d2a49132c1b256(arg0) {
1219
- const ret = arg0.length;
1220
- return ret;
1221
- }
1222
1156
  export function __wbg_log_c222819a41e063d3(arg0) {
1223
1157
  console.log(arg0);
1224
1158
  }
@@ -1240,7 +1174,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
1240
1174
  const a = state0.a;
1241
1175
  state0.a = 0;
1242
1176
  try {
1243
- return __wbg_adapter_310(a, state0.b, arg0, arg1);
1177
+ return __wbg_adapter_280(a, state0.b, arg0, arg1);
1244
1178
  }
1245
1179
  finally {
1246
1180
  state0.a = a;
@@ -1275,10 +1209,6 @@ export function __wbg_new_a12002a7f91c75be(arg0) {
1275
1209
  const ret = new Uint8Array(arg0);
1276
1210
  return ret;
1277
1211
  }
1278
- export function __wbg_new_c68d7209be747379(arg0, arg1) {
1279
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1280
- return ret;
1281
- }
1282
1212
  export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
1283
1213
  const ret = new Function(getStringFromWasm0(arg0, arg1));
1284
1214
  return ret;
@@ -1383,9 +1313,6 @@ export function __wbg_setTimeout_db2dbaeefb6f39c7() {
1383
1313
  return ret;
1384
1314
  }, arguments);
1385
1315
  }
1386
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
1387
- arg0[arg1] = arg2;
1388
- }
1389
1316
  export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
1390
1317
  arg0.set(arg1, arg2 >>> 0);
1391
1318
  }
@@ -1517,20 +1444,6 @@ export function __wbg_write_311434e30ee214e5(arg0, arg1) {
1517
1444
  const ret = arg0.write(arg1);
1518
1445
  return ret;
1519
1446
  }
1520
- export function __wbindgen_as_number(arg0) {
1521
- const ret = +arg0;
1522
- return ret;
1523
- }
1524
- export function __wbindgen_bigint_from_u64(arg0) {
1525
- const ret = BigInt.asUintN(64, arg0);
1526
- return ret;
1527
- }
1528
- export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
1529
- const v = arg1;
1530
- const ret = typeof v === "bigint" ? v : undefined;
1531
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1532
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1533
- }
1534
1447
  export function __wbindgen_boolean_get(arg0) {
1535
1448
  const v = arg0;
1536
1449
  const ret = typeof v === "boolean" ? (v ? 1 : 0) : 2;
@@ -1545,28 +1458,28 @@ export function __wbindgen_cb_drop(arg0) {
1545
1458
  const ret = false;
1546
1459
  return ret;
1547
1460
  }
1548
- export function __wbindgen_closure_wrapper3082(arg0, arg1, arg2) {
1549
- const ret = makeMutClosure(arg0, arg1, 845, __wbg_adapter_57);
1461
+ export function __wbindgen_closure_wrapper3688(arg0, arg1, arg2) {
1462
+ const ret = makeMutClosure(arg0, arg1, 1039, __wbg_adapter_49);
1550
1463
  return ret;
1551
1464
  }
1552
- export function __wbindgen_closure_wrapper3321(arg0, arg1, arg2) {
1553
- const ret = makeMutClosure(arg0, arg1, 888, __wbg_adapter_60);
1465
+ export function __wbindgen_closure_wrapper3721(arg0, arg1, arg2) {
1466
+ const ret = makeMutClosure(arg0, arg1, 1056, __wbg_adapter_52);
1554
1467
  return ret;
1555
1468
  }
1556
- export function __wbindgen_closure_wrapper3326(arg0, arg1, arg2) {
1557
- const ret = makeMutClosure(arg0, arg1, 892, __wbg_adapter_63);
1469
+ export function __wbindgen_closure_wrapper410(arg0, arg1, arg2) {
1470
+ const ret = makeMutClosure(arg0, arg1, 238, __wbg_adapter_40);
1558
1471
  return ret;
1559
1472
  }
1560
- export function __wbindgen_closure_wrapper3826(arg0, arg1, arg2) {
1561
- const ret = makeMutClosure(arg0, arg1, 896, __wbg_adapter_66);
1473
+ export function __wbindgen_closure_wrapper411(arg0, arg1, arg2) {
1474
+ const ret = makeMutClosure(arg0, arg1, 238, __wbg_adapter_40);
1562
1475
  return ret;
1563
1476
  }
1564
- export function __wbindgen_closure_wrapper887(arg0, arg1, arg2) {
1565
- const ret = makeMutClosure(arg0, arg1, 491, __wbg_adapter_52);
1477
+ export function __wbindgen_closure_wrapper412(arg0, arg1, arg2) {
1478
+ const ret = makeMutClosure(arg0, arg1, 238, __wbg_adapter_40);
1566
1479
  return ret;
1567
1480
  }
1568
- export function __wbindgen_closure_wrapper888(arg0, arg1, arg2) {
1569
- const ret = makeMutClosure(arg0, arg1, 491, __wbg_adapter_52);
1481
+ export function __wbindgen_closure_wrapper413(arg0, arg1, arg2) {
1482
+ const ret = makeMutClosure(arg0, arg1, 238, __wbg_adapter_40);
1570
1483
  return ret;
1571
1484
  }
1572
1485
  export function __wbindgen_debug_string(arg0, arg1) {
@@ -1593,10 +1506,6 @@ export function __wbindgen_init_externref_table() {
1593
1506
  table.set(offset + 2, true);
1594
1507
  table.set(offset + 3, false);
1595
1508
  }
1596
- export function __wbindgen_is_bigint(arg0) {
1597
- const ret = typeof arg0 === "bigint";
1598
- return ret;
1599
- }
1600
1509
  export function __wbindgen_is_function(arg0) {
1601
1510
  const ret = typeof arg0 === "function";
1602
1511
  return ret;
@@ -1606,18 +1515,10 @@ export function __wbindgen_is_object(arg0) {
1606
1515
  const ret = typeof val === "object" && val !== null;
1607
1516
  return ret;
1608
1517
  }
1609
- export function __wbindgen_is_string(arg0) {
1610
- const ret = typeof arg0 === "string";
1611
- return ret;
1612
- }
1613
1518
  export function __wbindgen_is_undefined(arg0) {
1614
1519
  const ret = arg0 === undefined;
1615
1520
  return ret;
1616
1521
  }
1617
- export function __wbindgen_jsval_eq(arg0, arg1) {
1618
- const ret = arg0 === arg1;
1619
- return ret;
1620
- }
1621
1522
  export function __wbindgen_jsval_loose_eq(arg0, arg1) {
1622
1523
  const ret = arg0 == arg1;
1623
1524
  return ret;