@trust0/ridb-core 1.7.0-rc.1 → 1.7.0-rc.2

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "1.7.0-rc.1",
8
+ "version": "1.7.0-rc.2",
9
9
  "main": "./pkg/ridb_core.js",
10
10
  "types": "./pkg/ridb_core.d.ts",
11
11
  "sideEffects": [
@@ -38,6 +38,16 @@ export function __wbgtest_console_warn(args: Array<any>): void;
38
38
  */
39
39
  export function __wbgtest_console_error(args: Array<any>): void;
40
40
  /**
41
+ */
42
+ export enum Errors {
43
+ Error = 0,
44
+ HookError = 1,
45
+ QueryError = 2,
46
+ SerializationError = 3,
47
+ ValidationError = 4,
48
+ AuthenticationError = 5,
49
+ }
50
+ /**
41
51
  * Represents the type of operation to be performed on the collection.
42
52
  */
43
53
  export enum OpType {
@@ -62,16 +72,6 @@ export enum OpType {
62
72
  */
63
73
  COUNT = 4,
64
74
  }
65
- /**
66
- */
67
- export enum Errors {
68
- Error = 0,
69
- HookError = 1,
70
- QueryError = 2,
71
- SerializationError = 3,
72
- ValidationError = 4,
73
- AuthenticationError = 5,
74
- }
75
75
 
76
76
  export type Operators<T> = {
77
77
  $gte?: number,
@@ -233,43 +233,6 @@ export class InMemory<T extends SchemaTypeRecord> extends BaseStorage<T> {
233
233
 
234
234
 
235
235
 
236
- export type BaseStorageOptions = {
237
- [name:string]:string | boolean | number
238
- }
239
-
240
- export class BaseStorage<Schemas extends SchemaTypeRecord> extends StorageInternal<Schemas> {
241
- static create<SchemasCreate extends SchemaTypeRecord>(
242
- dbName: string,
243
- schemas: SchemasCreate,
244
- options?: BaseStorageOptions
245
- ): Promise<
246
- BaseStorage<
247
- SchemasCreate
248
- >
249
- >;
250
- constructor(
251
- dbName: string,
252
- schemas: Schemas,
253
- options?: BaseStorageOptions
254
- );
255
- readonly dbName: string;
256
- readonly schemas: Record<keyof Schemas, Schema<Schemas[keyof Schemas]>>;
257
- readonly options: BaseStorageOptions;
258
- readonly core: CoreStorage;
259
- start(): Promise<void>;
260
- close(): Promise<void>;
261
- count(colectionName: keyof Schemas, query: QueryType<Schemas[keyof Schemas]>, options?: QueryOptions): Promise<number>;
262
- findDocumentById(collectionName: keyof Schemas, id: string): Promise<Doc<Schemas[keyof Schemas]> | null>;
263
- find(collectionName: keyof Schemas, query: QueryType<Schemas[keyof Schemas]>, options?: QueryOptions): Promise<Doc<Schemas[keyof Schemas]>[]>;
264
- write(op: Operation<Schemas[keyof Schemas]>): Promise<Doc<Schemas[keyof Schemas]>>;
265
- getOption(name: string): string | boolean | number | undefined;
266
- getSchema(name: string): Schema<any>;
267
- //Call addIndexSchemas if you need extra indexing schemas for your database
268
- addIndexSchemas(): null
269
- }
270
-
271
-
272
-
273
236
  export class CoreStorage {
274
237
  /**
275
238
  * @param {any} document
@@ -283,33 +246,6 @@ export class CoreStorage {
283
246
 
284
247
 
285
248
 
286
- /**
287
- * Represents an operation to be performed on a collection.
288
- *
289
- * @template T - The schema type of the collection.
290
- */
291
- export type Operation<T extends SchemaType = SchemaType> = {
292
- /**
293
- * The name of the collection on which the operation will be performed.
294
- */
295
- collection: string,
296
-
297
- /**
298
- * The type of operation to be performed (e.g., CREATE, UPDATE, DELETE).
299
- */
300
- opType: OpType,
301
-
302
- /**
303
- * The data involved in the operation, conforming to the schema type.
304
- */
305
- data: Doc<T>,
306
-
307
- primaryKeyField?: string,
308
- primaryKey?: string
309
- }
310
-
311
-
312
-
313
249
  /**
314
250
  * Represents a property within a schema, including various constraints and nested properties.
315
251
  */
@@ -505,6 +441,170 @@ export class IndexDB<T extends SchemaTypeRecord> extends BaseStorage<T> {
505
441
 
506
442
 
507
443
 
444
+ export type EnumerateUpTo<
445
+ N extends number,
446
+ Acc extends number[] = []
447
+ > = Acc['length'] extends N ?
448
+ Acc[number]:
449
+ EnumerateUpTo<N, [...Acc, Acc['length']]> ;
450
+
451
+ export type EnumerateFrom1To<
452
+ N extends number
453
+ > = Exclude<EnumerateUpTo<N>,0> | (N extends 0 ? never : N);
454
+
455
+ export type IsVersionGreaterThan0<
456
+ V extends number
457
+ > = V extends 0 ? false : true;
458
+
459
+ export type AnyVersionGreaterThan1<
460
+ T extends Record<string, SchemaType>
461
+ > = true extends {
462
+ [K in keyof T]: IsVersionGreaterThan0<T[K]['version']>;
463
+ } [keyof T] ? true : false;
464
+
465
+ export type MigrationFunction<T extends SchemaType> = (doc: Doc <T> ) => Doc <T>
466
+
467
+ export type MigrationPathsForSchema<
468
+ T extends SchemaType
469
+ > = T['version'] extends 0 ? {}: // No migrations needed for version 1
470
+ {
471
+ [K in EnumerateFrom1To < T['version'] > ]: MigrationFunction<T> ;
472
+ };
473
+
474
+ export type MigrationPathsForSchemas<
475
+ T extends SchemaTypeRecord
476
+ > = {
477
+ [K in keyof T]: MigrationPathsForSchema<T[K]>;
478
+ };
479
+
480
+ export type MigrationsParameter<
481
+ T extends SchemaTypeRecord
482
+ > = AnyVersionGreaterThan1<T> extends true ?
483
+ {
484
+ migrations: MigrationPathsForSchemas<T>
485
+ }:
486
+ {
487
+ migrations?: never
488
+ };
489
+
490
+
491
+
492
+ /**
493
+ * Represents an operation to be performed on a collection.
494
+ *
495
+ * @template T - The schema type of the collection.
496
+ */
497
+ export type Operation<T extends SchemaType = SchemaType> = {
498
+ /**
499
+ * The name of the collection on which the operation will be performed.
500
+ */
501
+ collection: string,
502
+
503
+ /**
504
+ * The type of operation to be performed (e.g., CREATE, UPDATE, DELETE).
505
+ */
506
+ opType: OpType,
507
+
508
+ /**
509
+ * The data involved in the operation, conforming to the schema type.
510
+ */
511
+ data: Doc<T>,
512
+
513
+ primaryKeyField?: string,
514
+ primaryKey?: string
515
+ }
516
+
517
+
518
+
519
+ type Hook = (
520
+ schema: Schema<SchemaType>,
521
+ migration: MigrationPathsForSchema<SchemaType>,
522
+ doc: Doc<SchemaType>
523
+ ) => Doc<SchemaType>
524
+
525
+ type BasePluginOptions = {
526
+ docCreateHook?: Hook,
527
+ docRecoverHook?: Hook
528
+ }
529
+
530
+ export class BasePlugin implements BasePluginOptions {
531
+ docCreateHook?:Hook;
532
+ docRecoverHook?:Hook;
533
+ }
534
+
535
+
536
+
537
+ /**
538
+ * Represents a record of schema types, where each key is a string and the value is a `SchemaType`.
539
+ */
540
+ export type SchemaTypeRecord = {
541
+ [name: string]: SchemaType
542
+ };
543
+
544
+ export abstract class StorageInternal<Schemas extends SchemaTypeRecord> {
545
+ constructor(
546
+ name: string,
547
+ schemas: Schemas
548
+ );
549
+ abstract start(): Promise<void>;
550
+ abstract close(): Promise<void>;
551
+ abstract count(
552
+ colectionName: keyof Schemas,
553
+ query: QueryType<Schemas[keyof Schemas]>,
554
+ options?: QueryOptions
555
+ ): Promise<number>;
556
+ abstract findDocumentById(
557
+ collectionName: keyof Schemas,
558
+ id: string
559
+ ): Promise<Doc<Schemas[keyof Schemas]> | null>;
560
+ abstract find(
561
+ collectionName: keyof Schemas,
562
+ query: QueryType<Schemas[keyof Schemas]>,
563
+ options?: QueryOptions
564
+ ): Promise<Doc<Schemas[keyof Schemas]>[]>;
565
+ abstract write(
566
+ op: Operation<Schemas[keyof Schemas]>
567
+ ): Promise<Doc<Schemas[keyof Schemas]>>;
568
+ }
569
+
570
+
571
+ export type BaseStorageOptions = {
572
+ [name:string]:string | boolean | number
573
+ }
574
+
575
+ export class BaseStorage<Schemas extends SchemaTypeRecord> extends StorageInternal<Schemas> {
576
+ static create<SchemasCreate extends SchemaTypeRecord>(
577
+ dbName: string,
578
+ schemas: SchemasCreate,
579
+ options?: BaseStorageOptions
580
+ ): Promise<
581
+ BaseStorage<
582
+ SchemasCreate
583
+ >
584
+ >;
585
+ constructor(
586
+ dbName: string,
587
+ schemas: Schemas,
588
+ options?: BaseStorageOptions
589
+ );
590
+ readonly dbName: string;
591
+ readonly schemas: Record<keyof Schemas, Schema<Schemas[keyof Schemas]>>;
592
+ readonly options: BaseStorageOptions;
593
+ readonly core: CoreStorage;
594
+ start(): Promise<void>;
595
+ close(): Promise<void>;
596
+ count(colectionName: keyof Schemas, query: QueryType<Schemas[keyof Schemas]>, options?: QueryOptions): Promise<number>;
597
+ findDocumentById(collectionName: keyof Schemas, id: string): Promise<Doc<Schemas[keyof Schemas]> | null>;
598
+ find(collectionName: keyof Schemas, query: QueryType<Schemas[keyof Schemas]>, options?: QueryOptions): Promise<Doc<Schemas[keyof Schemas]>[]>;
599
+ write(op: Operation<Schemas[keyof Schemas]>): Promise<Doc<Schemas[keyof Schemas]>>;
600
+ getOption(name: string): string | boolean | number | undefined;
601
+ getSchema(name: string): Schema<any>;
602
+ //Call addIndexSchemas if you need extra indexing schemas for your database
603
+ addIndexSchemas(): null
604
+ }
605
+
606
+
607
+
508
608
  /**
509
609
  * Represents a database containing collections of documents.
510
610
  * RIDB extends from this class and is used to expose collections.
@@ -608,106 +708,6 @@ export type RIDBModule = {
608
708
  };
609
709
 
610
710
 
611
-
612
- /**
613
- * Represents a record of schema types, where each key is a string and the value is a `SchemaType`.
614
- */
615
- export type SchemaTypeRecord = {
616
- [name: string]: SchemaType
617
- };
618
-
619
- export abstract class StorageInternal<Schemas extends SchemaTypeRecord> {
620
- constructor(
621
- name: string,
622
- schemas: Schemas
623
- );
624
- abstract start(): Promise<void>;
625
- abstract close(): Promise<void>;
626
- abstract count(
627
- colectionName: keyof Schemas,
628
- query: QueryType<Schemas[keyof Schemas]>,
629
- options?: QueryOptions
630
- ): Promise<number>;
631
- abstract findDocumentById(
632
- collectionName: keyof Schemas,
633
- id: string
634
- ): Promise<Doc<Schemas[keyof Schemas]> | null>;
635
- abstract find(
636
- collectionName: keyof Schemas,
637
- query: QueryType<Schemas[keyof Schemas]>,
638
- options?: QueryOptions
639
- ): Promise<Doc<Schemas[keyof Schemas]>[]>;
640
- abstract write(
641
- op: Operation<Schemas[keyof Schemas]>
642
- ): Promise<Doc<Schemas[keyof Schemas]>>;
643
- }
644
-
645
-
646
- export type EnumerateUpTo<
647
- N extends number,
648
- Acc extends number[] = []
649
- > = Acc['length'] extends N ?
650
- Acc[number]:
651
- EnumerateUpTo<N, [...Acc, Acc['length']]> ;
652
-
653
- export type EnumerateFrom1To<
654
- N extends number
655
- > = Exclude<EnumerateUpTo<N>,0> | (N extends 0 ? never : N);
656
-
657
- export type IsVersionGreaterThan0<
658
- V extends number
659
- > = V extends 0 ? false : true;
660
-
661
- export type AnyVersionGreaterThan1<
662
- T extends Record<string, SchemaType>
663
- > = true extends {
664
- [K in keyof T]: IsVersionGreaterThan0<T[K]['version']>;
665
- } [keyof T] ? true : false;
666
-
667
- export type MigrationFunction<T extends SchemaType> = (doc: Doc <T> ) => Doc <T>
668
-
669
- export type MigrationPathsForSchema<
670
- T extends SchemaType
671
- > = T['version'] extends 0 ? {}: // No migrations needed for version 1
672
- {
673
- [K in EnumerateFrom1To < T['version'] > ]: MigrationFunction<T> ;
674
- };
675
-
676
- export type MigrationPathsForSchemas<
677
- T extends SchemaTypeRecord
678
- > = {
679
- [K in keyof T]: MigrationPathsForSchema<T[K]>;
680
- };
681
-
682
- export type MigrationsParameter<
683
- T extends SchemaTypeRecord
684
- > = AnyVersionGreaterThan1<T> extends true ?
685
- {
686
- migrations: MigrationPathsForSchemas<T>
687
- }:
688
- {
689
- migrations?: never
690
- };
691
-
692
-
693
-
694
- type Hook = (
695
- schema: Schema<SchemaType>,
696
- migration: MigrationPathsForSchema<SchemaType>,
697
- doc: Doc<SchemaType>
698
- ) => Doc<SchemaType>
699
-
700
- type BasePluginOptions = {
701
- docCreateHook?: Hook,
702
- docRecoverHook?: Hook
703
- }
704
-
705
- export class BasePlugin implements BasePluginOptions {
706
- docCreateHook?:Hook;
707
- docRecoverHook?:Hook;
708
- }
709
-
710
-
711
711
  /**
712
712
  */
713
713
  export class RIDBError {
@@ -873,14 +873,6 @@ export interface InitOutput {
873
873
  readonly inmemory_count: (a: number, b: number, c: number, d: number, e: number) => number;
874
874
  readonly inmemory_close: (a: number) => number;
875
875
  readonly inmemory_start: (a: number) => number;
876
- readonly __wbg_basestorage_free: (a: number) => void;
877
- readonly basestorage_new: (a: number, b: number, c: number, d: number, e: number) => void;
878
- readonly basestorage_addIndexSchemas: (a: number, b: number) => void;
879
- readonly basestorage_getOption: (a: number, b: number, c: number, d: number) => void;
880
- readonly basestorage_getSchema: (a: number, b: number, c: number, d: number) => void;
881
- readonly basestorage_core: (a: number, b: number) => void;
882
- readonly main_js: () => void;
883
- readonly is_debug_mode: () => number;
884
876
  readonly corestorage_new: () => number;
885
877
  readonly corestorage_getPrimaryKeyTyped: (a: number, b: number, c: number) => void;
886
878
  readonly corestorage_getIndexes: (a: number, b: number, c: number, d: number) => void;
@@ -888,13 +880,6 @@ export interface InitOutput {
888
880
  readonly __wbg_queryoptions_free: (a: number) => void;
889
881
  readonly queryoptions_limit: (a: number, b: number) => void;
890
882
  readonly queryoptions_offset: (a: number, b: number) => void;
891
- readonly __wbg_operation_free: (a: number) => void;
892
- readonly operation_collection: (a: number, b: number) => void;
893
- readonly operation_opType: (a: number) => number;
894
- readonly operation_data: (a: number) => number;
895
- readonly operation_primaryKeyField: (a: number) => number;
896
- readonly operation_primaryKey: (a: number) => number;
897
- readonly operation_primaryKeyIndex: (a: number, b: number) => void;
898
883
  readonly __wbg_corestorage_free: (a: number) => void;
899
884
  readonly __wbg_property_free: (a: number) => void;
900
885
  readonly property_is_valid: (a: number, b: number) => void;
@@ -943,13 +928,13 @@ export interface InitOutput {
943
928
  readonly ridberror_serialisation: (a: number, b: number, c: number) => number;
944
929
  readonly ridberror_validation: (a: number, b: number, c: number) => number;
945
930
  readonly ridberror_hook: (a: number, b: number, c: number) => number;
946
- readonly __wbg_database_free: (a: number) => void;
947
- readonly database_start: (a: number) => number;
948
- readonly database_close: (a: number) => number;
949
- readonly database_started: (a: number) => number;
950
- readonly database_authenticate: (a: number, b: number, c: number) => number;
951
- readonly database_collections: (a: number, b: number) => void;
952
- readonly database_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
931
+ readonly __wbg_operation_free: (a: number) => void;
932
+ readonly operation_collection: (a: number, b: number) => void;
933
+ readonly operation_opType: (a: number) => number;
934
+ readonly operation_data: (a: number) => number;
935
+ readonly operation_primaryKeyField: (a: number) => number;
936
+ readonly operation_primaryKey: (a: number) => number;
937
+ readonly operation_primaryKeyIndex: (a: number, b: number) => void;
953
938
  readonly __wbg_baseplugin_free: (a: number) => void;
954
939
  readonly baseplugin_new: (a: number, b: number, c: number) => void;
955
940
  readonly baseplugin_name: (a: number) => number;
@@ -957,6 +942,21 @@ export interface InitOutput {
957
942
  readonly baseplugin_get_doc_recover_hook: (a: number) => number;
958
943
  readonly baseplugin_set_doc_create_hook: (a: number, b: number) => void;
959
944
  readonly baseplugin_set_doc_recover_hook: (a: number, b: number) => void;
945
+ readonly main_js: () => void;
946
+ readonly is_debug_mode: () => number;
947
+ readonly __wbg_basestorage_free: (a: number) => void;
948
+ readonly basestorage_new: (a: number, b: number, c: number, d: number, e: number) => void;
949
+ readonly basestorage_addIndexSchemas: (a: number, b: number) => void;
950
+ readonly basestorage_getOption: (a: number, b: number, c: number, d: number) => void;
951
+ readonly basestorage_getSchema: (a: number, b: number, c: number, d: number) => void;
952
+ readonly basestorage_core: (a: number, b: number) => void;
953
+ readonly __wbg_database_free: (a: number) => void;
954
+ readonly database_start: (a: number) => number;
955
+ readonly database_close: (a: number) => number;
956
+ readonly database_started: (a: number) => number;
957
+ readonly database_authenticate: (a: number, b: number, c: number) => number;
958
+ readonly database_collections: (a: number, b: number) => void;
959
+ readonly database_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
960
960
  readonly __wbg_wasmbindgentestcontext_free: (a: number) => void;
961
961
  readonly wasmbindgentestcontext_new: () => number;
962
962
  readonly wasmbindgentestcontext_args: (a: number, b: number, c: number) => void;
@@ -969,16 +969,16 @@ export interface InitOutput {
969
969
  readonly __wbindgen_malloc: (a: number, b: number) => number;
970
970
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
971
971
  readonly __wbindgen_export_2: WebAssembly.Table;
972
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8fda0c55cc3a81de: (a: number, b: number, c: number) => void;
972
973
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
973
- readonly _dyn_core__ops__function__Fn__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbbd70d909398e1ba: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
974
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc5f5145da16b26e4: (a: number, b: number, c: number) => number;
975
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbe98bae341e12bb6: (a: number, b: number, c: number) => void;
976
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h80ee32fc34c22e0b: (a: number, b: number, c: number) => void;
974
+ readonly _dyn_core__ops__function__Fn__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd6d7e1645277db8b: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
975
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb8ff6b112b411818: (a: number, b: number, c: number) => number;
976
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha88f7e4598f57d81: (a: number, b: number, c: number) => void;
977
977
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
978
978
  readonly __wbindgen_exn_store: (a: number) => void;
979
- readonly wasm_bindgen__convert__closures__invoke0_mut__h84bd533389574f4d: (a: number, b: number) => void;
980
- readonly wasm_bindgen__convert__closures__invoke3_mut__h3608a0bbf7229368: (a: number, b: number, c: number, d: number, e: number) => void;
981
- readonly wasm_bindgen__convert__closures__invoke2_mut__h0b860a6b6d5d8826: (a: number, b: number, c: number, d: number) => void;
979
+ readonly wasm_bindgen__convert__closures__invoke0_mut__h99a9f0884c9cd22a: (a: number, b: number) => void;
980
+ readonly wasm_bindgen__convert__closures__invoke3_mut__h07c8feee2a4f48f8: (a: number, b: number, c: number, d: number, e: number) => void;
981
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h424d8c39cf909020: (a: number, b: number, c: number, d: number) => void;
982
982
  readonly __wbindgen_start: () => void;
983
983
  }
984
984
 
package/pkg/ridb_core.js CHANGED
@@ -20,15 +20,6 @@ function takeObject(idx) {
20
20
  return ret;
21
21
  }
22
22
 
23
- function addHeapObject(obj) {
24
- if (heap_next === heap.length) heap.push(heap.length + 1);
25
- const idx = heap_next;
26
- heap_next = heap[idx];
27
-
28
- heap[idx] = obj;
29
- return idx;
30
- }
31
-
32
23
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
33
24
 
34
25
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -47,6 +38,15 @@ function getStringFromWasm0(ptr, len) {
47
38
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
48
39
  }
49
40
 
41
+ function addHeapObject(obj) {
42
+ if (heap_next === heap.length) heap.push(heap.length + 1);
43
+ const idx = heap_next;
44
+ heap_next = heap[idx];
45
+
46
+ heap[idx] = obj;
47
+ return idx;
48
+ }
49
+
50
50
  let WASM_VECTOR_LEN = 0;
51
51
 
52
52
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -205,20 +205,23 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
205
205
  wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
206
206
  });
207
207
 
208
- function makeClosure(arg0, arg1, dtor, f) {
208
+ function makeMutClosure(arg0, arg1, dtor, f) {
209
209
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
210
210
  const real = (...args) => {
211
211
  // First up with a closure we increment the internal reference
212
212
  // count. This ensures that the Rust closure environment won't
213
213
  // be deallocated while we're invoking it.
214
214
  state.cnt++;
215
+ const a = state.a;
216
+ state.a = 0;
215
217
  try {
216
- return f(state.a, state.b, ...args);
218
+ return f(a, state.b, ...args);
217
219
  } finally {
218
220
  if (--state.cnt === 0) {
219
- wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
220
- state.a = 0;
221
+ wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
221
222
  CLOSURE_DTORS.unregister(state);
223
+ } else {
224
+ state.a = a;
222
225
  }
223
226
  }
224
227
  };
@@ -226,39 +229,24 @@ function makeClosure(arg0, arg1, dtor, f) {
226
229
  CLOSURE_DTORS.register(real, state, state);
227
230
  return real;
228
231
  }
229
- function __wbg_adapter_56(arg0, arg1, arg2, arg3, arg4) {
230
- try {
231
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
232
- wasm._dyn_core__ops__function__Fn__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbbd70d909398e1ba(retptr, arg0, arg1, addHeapObject(arg2), addHeapObject(arg3), addHeapObject(arg4));
233
- var r0 = getInt32Memory0()[retptr / 4 + 0];
234
- var r1 = getInt32Memory0()[retptr / 4 + 1];
235
- var r2 = getInt32Memory0()[retptr / 4 + 2];
236
- if (r2) {
237
- throw takeObject(r1);
238
- }
239
- return takeObject(r0);
240
- } finally {
241
- wasm.__wbindgen_add_to_stack_pointer(16);
242
- }
232
+ function __wbg_adapter_56(arg0, arg1, arg2) {
233
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8fda0c55cc3a81de(arg0, arg1, addHeapObject(arg2));
243
234
  }
244
235
 
245
- function makeMutClosure(arg0, arg1, dtor, f) {
236
+ function makeClosure(arg0, arg1, dtor, f) {
246
237
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
247
238
  const real = (...args) => {
248
239
  // First up with a closure we increment the internal reference
249
240
  // count. This ensures that the Rust closure environment won't
250
241
  // be deallocated while we're invoking it.
251
242
  state.cnt++;
252
- const a = state.a;
253
- state.a = 0;
254
243
  try {
255
- return f(a, state.b, ...args);
244
+ return f(state.a, state.b, ...args);
256
245
  } finally {
257
246
  if (--state.cnt === 0) {
258
- wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
247
+ wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
248
+ state.a = 0;
259
249
  CLOSURE_DTORS.unregister(state);
260
- } else {
261
- state.a = a;
262
250
  }
263
251
  }
264
252
  };
@@ -266,17 +254,29 @@ function makeMutClosure(arg0, arg1, dtor, f) {
266
254
  CLOSURE_DTORS.register(real, state, state);
267
255
  return real;
268
256
  }
269
- function __wbg_adapter_59(arg0, arg1, arg2) {
270
- const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc5f5145da16b26e4(arg0, arg1, addHeapObject(arg2));
271
- return takeObject(ret);
257
+ function __wbg_adapter_59(arg0, arg1, arg2, arg3, arg4) {
258
+ try {
259
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
260
+ wasm._dyn_core__ops__function__Fn__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd6d7e1645277db8b(retptr, arg0, arg1, addHeapObject(arg2), addHeapObject(arg3), addHeapObject(arg4));
261
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
262
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
263
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
264
+ if (r2) {
265
+ throw takeObject(r1);
266
+ }
267
+ return takeObject(r0);
268
+ } finally {
269
+ wasm.__wbindgen_add_to_stack_pointer(16);
270
+ }
272
271
  }
273
272
 
274
273
  function __wbg_adapter_62(arg0, arg1, arg2) {
275
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbe98bae341e12bb6(arg0, arg1, addHeapObject(arg2));
274
+ const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb8ff6b112b411818(arg0, arg1, addHeapObject(arg2));
275
+ return takeObject(ret);
276
276
  }
277
277
 
278
278
  function __wbg_adapter_65(arg0, arg1, arg2) {
279
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h80ee32fc34c22e0b(arg0, arg1, addHeapObject(arg2));
279
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha88f7e4598f57d81(arg0, arg1, addHeapObject(arg2));
280
280
  }
281
281
 
282
282
  function _assertClass(instance, klass) {
@@ -327,6 +327,14 @@ export function is_debug_mode() {
327
327
  return ret !== 0;
328
328
  }
329
329
 
330
+ function handleError(f, args) {
331
+ try {
332
+ return f.apply(this, args);
333
+ } catch (e) {
334
+ wasm.__wbindgen_exn_store(addHeapObject(e));
335
+ }
336
+ }
337
+
330
338
  function passArrayJsValueToWasm0(array, malloc) {
331
339
  const ptr = malloc(array.length * 4, 4) >>> 0;
332
340
  const mem = getUint32Memory0();
@@ -336,14 +344,6 @@ function passArrayJsValueToWasm0(array, malloc) {
336
344
  WASM_VECTOR_LEN = array.length;
337
345
  return ptr;
338
346
  }
339
-
340
- function handleError(f, args) {
341
- try {
342
- return f.apply(this, args);
343
- } catch (e) {
344
- wasm.__wbindgen_exn_store(addHeapObject(e));
345
- }
346
- }
347
347
  /**
348
348
  * Handler for `console.log` invocations.
349
349
  *
@@ -410,17 +410,20 @@ export function __wbgtest_console_error(args) {
410
410
  }
411
411
 
412
412
  function __wbg_adapter_290(arg0, arg1) {
413
- wasm.wasm_bindgen__convert__closures__invoke0_mut__h84bd533389574f4d(arg0, arg1);
413
+ wasm.wasm_bindgen__convert__closures__invoke0_mut__h99a9f0884c9cd22a(arg0, arg1);
414
414
  }
415
415
 
416
416
  function __wbg_adapter_333(arg0, arg1, arg2, arg3, arg4) {
417
- wasm.wasm_bindgen__convert__closures__invoke3_mut__h3608a0bbf7229368(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
417
+ wasm.wasm_bindgen__convert__closures__invoke3_mut__h07c8feee2a4f48f8(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
418
418
  }
419
419
 
420
420
  function __wbg_adapter_388(arg0, arg1, arg2, arg3) {
421
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h0b860a6b6d5d8826(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
421
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h424d8c39cf909020(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
422
422
  }
423
423
 
424
+ /**
425
+ */
426
+ export const Errors = Object.freeze({ Error:0,"0":"Error",HookError:1,"1":"HookError",QueryError:2,"2":"QueryError",SerializationError:3,"3":"SerializationError",ValidationError:4,"4":"ValidationError",AuthenticationError:5,"5":"AuthenticationError", });
424
427
  /**
425
428
  * Represents the type of operation to be performed on the collection.
426
429
  */
@@ -445,9 +448,6 @@ QUERY:3,"3":"QUERY",
445
448
  * Count Operation.
446
449
  */
447
450
  COUNT:4,"4":"COUNT", });
448
- /**
449
- */
450
- export const Errors = Object.freeze({ Error:0,"0":"Error",HookError:1,"1":"HookError",QueryError:2,"2":"QueryError",SerializationError:3,"3":"SerializationError",ValidationError:4,"4":"ValidationError",AuthenticationError:5,"5":"AuthenticationError", });
451
451
 
452
452
  const BasePluginFinalization = (typeof FinalizationRegistry === 'undefined')
453
453
  ? { register: () => {}, unregister: () => {} }
@@ -2304,42 +2304,30 @@ function __wbg_get_imports() {
2304
2304
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2305
2305
  takeObject(arg0);
2306
2306
  };
2307
- imports.wbg.__wbg_ridberror_new = function(arg0) {
2308
- const ret = RIDBError.__wrap(arg0);
2307
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2308
+ const ret = getStringFromWasm0(arg0, arg1);
2309
2309
  return addHeapObject(ret);
2310
2310
  };
2311
- imports.wbg.__wbg_find_567c5c9f064fe3d2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2312
- const ret = getObject(arg0).find(getStringFromWasm0(arg1, arg2), takeObject(arg3), QueryOptions.__wrap(arg4));
2313
- return addHeapObject(ret);
2314
- }, arguments) };
2315
2311
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2316
2312
  const ret = getObject(arg0);
2317
2313
  return addHeapObject(ret);
2318
2314
  };
2319
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2320
- const ret = getStringFromWasm0(arg0, arg1);
2315
+ imports.wbg.__wbg_ridberror_new = function(arg0) {
2316
+ const ret = RIDBError.__wrap(arg0);
2321
2317
  return addHeapObject(ret);
2322
2318
  };
2323
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
2324
- const ret = getObject(arg0) === undefined;
2325
- return ret;
2319
+ imports.wbg.__wbindgen_number_new = function(arg0) {
2320
+ const ret = arg0;
2321
+ return addHeapObject(ret);
2326
2322
  };
2327
2323
  imports.wbg.__wbindgen_is_null = function(arg0) {
2328
2324
  const ret = getObject(arg0) === null;
2329
2325
  return ret;
2330
2326
  };
2331
- imports.wbg.__wbg_start_76c138c3b73ae6f8 = function() { return handleError(function (arg0) {
2332
- const ret = getObject(arg0).start();
2333
- return addHeapObject(ret);
2334
- }, arguments) };
2335
- imports.wbg.__wbindgen_number_new = function(arg0) {
2336
- const ret = arg0;
2337
- return addHeapObject(ret);
2327
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
2328
+ const ret = getObject(arg0) === undefined;
2329
+ return ret;
2338
2330
  };
2339
- imports.wbg.__wbg_close_6384ed3c27ef25c1 = function() { return handleError(function (arg0) {
2340
- const ret = getObject(arg0).close();
2341
- return addHeapObject(ret);
2342
- }, arguments) };
2343
2331
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2344
2332
  const obj = getObject(arg1);
2345
2333
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2348,6 +2336,18 @@ function __wbg_get_imports() {
2348
2336
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2349
2337
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2350
2338
  };
2339
+ imports.wbg.__wbg_count_19db4c3174d573d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2340
+ const ret = getObject(arg0).count(getStringFromWasm0(arg1, arg2), takeObject(arg3), QueryOptions.__wrap(arg4));
2341
+ return addHeapObject(ret);
2342
+ }, arguments) };
2343
+ imports.wbg.__wbg_start_76c138c3b73ae6f8 = function() { return handleError(function (arg0) {
2344
+ const ret = getObject(arg0).start();
2345
+ return addHeapObject(ret);
2346
+ }, arguments) };
2347
+ imports.wbg.__wbg_close_6384ed3c27ef25c1 = function() { return handleError(function (arg0) {
2348
+ const ret = getObject(arg0).close();
2349
+ return addHeapObject(ret);
2350
+ }, arguments) };
2351
2351
  imports.wbg.__wbg_apply_9f557eba1534d597 = function() { return handleError(function (arg0, arg1, arg2) {
2352
2352
  const ret = getObject(arg1).apply(takeObject(arg2));
2353
2353
  const ptr1 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_malloc);
@@ -2359,8 +2359,8 @@ function __wbg_get_imports() {
2359
2359
  const ret = InMemory.__wrap(arg0);
2360
2360
  return addHeapObject(ret);
2361
2361
  };
2362
- imports.wbg.__wbg_count_19db4c3174d573d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2363
- const ret = getObject(arg0).count(getStringFromWasm0(arg1, arg2), takeObject(arg3), QueryOptions.__wrap(arg4));
2362
+ imports.wbg.__wbg_find_567c5c9f064fe3d2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2363
+ const ret = getObject(arg0).find(getStringFromWasm0(arg1, arg2), takeObject(arg3), QueryOptions.__wrap(arg4));
2364
2364
  return addHeapObject(ret);
2365
2365
  }, arguments) };
2366
2366
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
@@ -2390,12 +2390,20 @@ function __wbg_get_imports() {
2390
2390
  const ret = IndexDB.__wrap(arg0);
2391
2391
  return addHeapObject(ret);
2392
2392
  };
2393
+ imports.wbg.__wbg_database_new = function(arg0) {
2394
+ const ret = Database.__wrap(arg0);
2395
+ return addHeapObject(ret);
2396
+ };
2393
2397
  imports.wbg.__wbg_collection_new = function(arg0) {
2394
2398
  const ret = Collection.__wrap(arg0);
2395
2399
  return addHeapObject(ret);
2396
2400
  };
2397
- imports.wbg.__wbg_database_new = function(arg0) {
2398
- const ret = Database.__wrap(arg0);
2401
+ imports.wbg.__wbindgen_is_string = function(arg0) {
2402
+ const ret = typeof(getObject(arg0)) === 'string';
2403
+ return ret;
2404
+ };
2405
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2406
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2399
2407
  return addHeapObject(ret);
2400
2408
  };
2401
2409
  imports.wbg.__wbindgen_is_array = function(arg0) {
@@ -2407,27 +2415,19 @@ function __wbg_get_imports() {
2407
2415
  const ret = typeof(val) === 'object' && val !== null;
2408
2416
  return ret;
2409
2417
  };
2410
- imports.wbg.__wbindgen_is_string = function(arg0) {
2411
- const ret = typeof(getObject(arg0)) === 'string';
2412
- return ret;
2413
- };
2414
2418
  imports.wbg.__wbindgen_is_falsy = function(arg0) {
2415
2419
  const ret = !getObject(arg0);
2416
2420
  return ret;
2417
2421
  };
2418
- imports.wbg.__wbindgen_is_function = function(arg0) {
2419
- const ret = typeof(getObject(arg0)) === 'function';
2422
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
2423
+ const v = getObject(arg0);
2424
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
2420
2425
  return ret;
2421
2426
  };
2422
2427
  imports.wbg.__wbindgen_is_bigint = function(arg0) {
2423
2428
  const ret = typeof(getObject(arg0)) === 'bigint';
2424
2429
  return ret;
2425
2430
  };
2426
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
2427
- const v = getObject(arg0);
2428
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
2429
- return ret;
2430
- };
2431
2431
  imports.wbg.__wbindgen_in = function(arg0, arg1) {
2432
2432
  const ret = getObject(arg0) in getObject(arg1);
2433
2433
  return ret;
@@ -2444,9 +2444,9 @@ function __wbg_get_imports() {
2444
2444
  const ret = BigInt.asUintN(64, arg0);
2445
2445
  return addHeapObject(ret);
2446
2446
  };
2447
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2448
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2449
- return addHeapObject(ret);
2447
+ imports.wbg.__wbindgen_is_function = function(arg0) {
2448
+ const ret = typeof(getObject(arg0)) === 'function';
2449
+ return ret;
2450
2450
  };
2451
2451
  imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
2452
2452
  const ret = getObject(arg0).crypto;
@@ -2604,8 +2604,8 @@ function __wbg_get_imports() {
2604
2604
  const ret = getObject(arg0).value;
2605
2605
  return addHeapObject(ret);
2606
2606
  }, arguments) };
2607
- imports.wbg.__wbg_open_f0d7259fd7e689ce = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2608
- const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
2607
+ imports.wbg.__wbg_only_cacf767244bdc280 = function() { return handleError(function (arg0) {
2608
+ const ret = IDBKeyRange.only(getObject(arg0));
2609
2609
  return addHeapObject(ret);
2610
2610
  }, arguments) };
2611
2611
  imports.wbg.__wbg_instanceof_IdbOpenDbRequest_3f4a166bc0340578 = function(arg0) {
@@ -2655,13 +2655,13 @@ function __wbg_get_imports() {
2655
2655
  const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
2656
2656
  return addHeapObject(ret);
2657
2657
  }, arguments) };
2658
+ imports.wbg.__wbg_open_f0d7259fd7e689ce = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2659
+ const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
2660
+ return addHeapObject(ret);
2661
+ }, arguments) };
2658
2662
  imports.wbg.__wbg_continue_f1c3e0815924de62 = function() { return handleError(function (arg0) {
2659
2663
  getObject(arg0).continue();
2660
2664
  }, arguments) };
2661
- imports.wbg.__wbg_only_cacf767244bdc280 = function() { return handleError(function (arg0) {
2662
- const ret = IDBKeyRange.only(getObject(arg0));
2663
- return addHeapObject(ret);
2664
- }, arguments) };
2665
2665
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2666
2666
  const ret = getObject(arg0) == getObject(arg1);
2667
2667
  return ret;
@@ -2722,6 +2722,17 @@ function __wbg_get_imports() {
2722
2722
  const ret = document;
2723
2723
  return addHeapObject(ret);
2724
2724
  };
2725
+ imports.wbg.__wbg_textcontent_67e4e811cbdf00fc = function(arg0, arg1) {
2726
+ const ret = getObject(arg1).textContent;
2727
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2728
+ const len1 = WASM_VECTOR_LEN;
2729
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2730
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2731
+ };
2732
+ imports.wbg.__wbg_stack_44743fb7d71926a0 = function(arg0) {
2733
+ const ret = getObject(arg0).stack;
2734
+ return addHeapObject(ret);
2735
+ };
2725
2736
  imports.wbg.__wbg_self_55106357ec10ecd4 = function(arg0) {
2726
2737
  const ret = getObject(arg0).self;
2727
2738
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
@@ -2744,17 +2755,6 @@ function __wbg_get_imports() {
2744
2755
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2745
2756
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2746
2757
  };
2747
- imports.wbg.__wbg_textcontent_67e4e811cbdf00fc = function(arg0, arg1) {
2748
- const ret = getObject(arg1).textContent;
2749
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2750
- const len1 = WASM_VECTOR_LEN;
2751
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2752
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2753
- };
2754
- imports.wbg.__wbg_stack_44743fb7d71926a0 = function(arg0) {
2755
- const ret = getObject(arg0).stack;
2756
- return addHeapObject(ret);
2757
- };
2758
2758
  imports.wbg.__wbg_wbgtestoutputwriteln_4db3bd64914ec955 = function(arg0) {
2759
2759
  __wbg_test_output_writeln(takeObject(arg0));
2760
2760
  };
@@ -3064,20 +3064,20 @@ function __wbg_get_imports() {
3064
3064
  const ret = wasm.memory;
3065
3065
  return addHeapObject(ret);
3066
3066
  };
3067
- imports.wbg.__wbindgen_closure_wrapper514 = function(arg0, arg1, arg2) {
3068
- const ret = makeClosure(arg0, arg1, 188, __wbg_adapter_56);
3067
+ imports.wbg.__wbindgen_closure_wrapper694 = function(arg0, arg1, arg2) {
3068
+ const ret = makeMutClosure(arg0, arg1, 288, __wbg_adapter_56);
3069
3069
  return addHeapObject(ret);
3070
3070
  };
3071
- imports.wbg.__wbindgen_closure_wrapper516 = function(arg0, arg1, arg2) {
3072
- const ret = makeMutClosure(arg0, arg1, 188, __wbg_adapter_59);
3071
+ imports.wbg.__wbindgen_closure_wrapper696 = function(arg0, arg1, arg2) {
3072
+ const ret = makeClosure(arg0, arg1, 288, __wbg_adapter_59);
3073
3073
  return addHeapObject(ret);
3074
3074
  };
3075
- imports.wbg.__wbindgen_closure_wrapper518 = function(arg0, arg1, arg2) {
3076
- const ret = makeMutClosure(arg0, arg1, 188, __wbg_adapter_62);
3075
+ imports.wbg.__wbindgen_closure_wrapper698 = function(arg0, arg1, arg2) {
3076
+ const ret = makeMutClosure(arg0, arg1, 288, __wbg_adapter_62);
3077
3077
  return addHeapObject(ret);
3078
3078
  };
3079
- imports.wbg.__wbindgen_closure_wrapper1620 = function(arg0, arg1, arg2) {
3080
- const ret = makeMutClosure(arg0, arg1, 448, __wbg_adapter_65);
3079
+ imports.wbg.__wbindgen_closure_wrapper1623 = function(arg0, arg1, arg2) {
3080
+ const ret = makeMutClosure(arg0, arg1, 449, __wbg_adapter_65);
3081
3081
  return addHeapObject(ret);
3082
3082
  };
3083
3083
 
Binary file