@dreamlake/dreamdb 0.5.1 → 0.5.3

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.
@@ -1,3 +1,64 @@
1
+ export class GeometryReader {
2
+ static __wrap(ptr) {
3
+ const obj = Object.create(GeometryReader.prototype);
4
+ obj.__wbg_ptr = ptr;
5
+ GeometryReaderFinalization.register(obj, obj.__wbg_ptr, obj);
6
+ return obj;
7
+ }
8
+ __destroy_into_raw() {
9
+ const ptr = this.__wbg_ptr;
10
+ this.__wbg_ptr = 0;
11
+ GeometryReaderFinalization.unregister(this);
12
+ return ptr;
13
+ }
14
+ free() {
15
+ const ptr = this.__destroy_into_raw();
16
+ wasm.__wbg_geometryreader_free(ptr, 0);
17
+ }
18
+ /**
19
+ * Returns only the new suffix at this total logical byte budget.
20
+ * @param {any} key
21
+ * @param {any} budget
22
+ * @returns {Promise<Uint8Array>}
23
+ */
24
+ extendCellPrefix(key, budget) {
25
+ const ret = wasm.geometryreader_extendCellPrefix(this.__wbg_ptr, key, budget);
26
+ return ret;
27
+ }
28
+ /**
29
+ * Declaration plus cells/LODs; no payload transfer. u64 values are BigInt.
30
+ * @returns {any}
31
+ */
32
+ metadata() {
33
+ const ret = wasm.geometryreader_metadata(this.__wbg_ptr);
34
+ if (ret[2]) {
35
+ throw takeFromExternrefTable0(ret[1]);
36
+ }
37
+ return takeFromExternrefTable0(ret[0]);
38
+ }
39
+ /**
40
+ * @param {any} level
41
+ * @returns {Promise<Uint8Array>}
42
+ */
43
+ readMeshLod(level) {
44
+ const ret = wasm.geometryreader_readMeshLod(this.__wbg_ptr, level);
45
+ return ret;
46
+ }
47
+ /**
48
+ * @param {any} min
49
+ * @param {any} max
50
+ * @returns {Array<any>}
51
+ */
52
+ selectCells(min, max) {
53
+ const ret = wasm.geometryreader_selectCells(this.__wbg_ptr, min, max);
54
+ if (ret[2]) {
55
+ throw takeFromExternrefTable0(ret[1]);
56
+ }
57
+ return takeFromExternrefTable0(ret[0]);
58
+ }
59
+ }
60
+ if (Symbol.dispose) GeometryReader.prototype[Symbol.dispose] = GeometryReader.prototype.free;
61
+
1
62
  /**
2
63
  * A `fetch`-backed backend rooted at a base URL.
3
64
  */
@@ -26,6 +87,22 @@ export class S3Backend {
26
87
  const ret = wasm.s3backend_get(this.__wbg_ptr, ptr0, len0, _opts);
27
88
  return ret;
28
89
  }
90
+ /**
91
+ * Stream `path` without first aggregating the response in wasm memory.
92
+ *
93
+ * Returning the length beside the browser stream satisfies the optional
94
+ * `Backend.getStream` contract. Older injected backends that implement
95
+ * only [`Self::get`] remain compatible, but cannot claim bounded memory
96
+ * for historical oversized inline Track reads.
97
+ * @param {string} path
98
+ * @returns {Promise<any>}
99
+ */
100
+ getStream(path) {
101
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
102
+ const len0 = WASM_VECTOR_LEN;
103
+ const ret = wasm.s3backend_getStream(this.__wbg_ptr, ptr0, len0);
104
+ return ret;
105
+ }
29
106
  /**
30
107
  * List object paths under `prefix`. Stub (returns empty); the current
31
108
  * consumer read paths don't require listing.
@@ -70,6 +147,29 @@ export class Space {
70
147
  const ptr = this.__destroy_into_raw();
71
148
  wasm.__wbg_space_free(ptr, 0);
72
149
  }
150
+ /**
151
+ * Validate all referenced Items, including tombstoned payloads.
152
+ * @param {string} field
153
+ * @returns {Promise<bigint>}
154
+ */
155
+ auditArrayField(field) {
156
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
157
+ const len0 = WASM_VECTOR_LEN;
158
+ const ret = wasm.space_auditArrayField(this.__wbg_ptr, ptr0, len0);
159
+ return ret;
160
+ }
161
+ /**
162
+ * Validate all graph pages and, when declared, exact-source correspondence.
163
+ * The returned count is exactly representable (GraphIndex node_count is u32).
164
+ * @param {string} field
165
+ * @returns {Promise<number>}
166
+ */
167
+ auditGraphIndex(field) {
168
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
169
+ const len0 = WASM_VECTOR_LEN;
170
+ const ret = wasm.space_auditGraphIndex(this.__wbg_ptr, ptr0, len0);
171
+ return ret;
172
+ }
73
173
  /**
74
174
  * The base URL objects are fetched relative to (consumers build their own
75
175
  * object URLs from this — e.g. `dreamdb-demo`'s track readers).
@@ -87,6 +187,36 @@ export class Space {
87
187
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
88
188
  }
89
189
  }
190
+ /**
191
+ * The Space's human-readable description, or `undefined` when none is set.
192
+ *
193
+ * The read half of `Authoring.setDescription` (#129). It lives here rather
194
+ * than on `Authoring` because that type is `write-full` and so exists only
195
+ * in the Node build — a description is metadata a READER wants, and
196
+ * `Space` is the surface all three build targets share.
197
+ *
198
+ * `async` although `Dataset::description` is not: the value comes from the
199
+ * Dataset this Space opens lazily at the Manifest hash already pinned by
200
+ * this Space, so the first call may perform that open without re-resolving
201
+ * a source Ref.
202
+ *
203
+ * Deliberately routed through `Dataset::description` rather than read out
204
+ * of `self.manifest`'s registry, which would be shorter and would also
205
+ * serve the cached decoded Manifest. `Dataset::recover_meta` is not a prefix
206
+ * filter: it accepts the legacy `vortex.*` namespace as well as
207
+ * `dreamdb.*`, canonicalises, and drops structural keys. Matching
208
+ * `dreamdb.description` here would silently return nothing for a legacy
209
+ * Space whose description is on disk and readable from Rust — the exact
210
+ * defect `recover_meta`'s own comment records.
211
+ *
212
+ * `Option<String>` marshals to `string | undefined`, NOT to `""`. An unset
213
+ * description and an empty one stay distinguishable across the boundary.
214
+ * @returns {Promise<string | undefined>}
215
+ */
216
+ description() {
217
+ const ret = wasm.space_description(this.__wbg_ptr);
218
+ return ret;
219
+ }
90
220
  /**
91
221
  * Open a Space from a `.../refs/<name>` or `.../manifests/<hash>` URI,
92
222
  * resolving the ref (if any) and loading the manifest. If `backend` is
@@ -103,6 +233,17 @@ export class Space {
103
233
  const ret = wasm.space_fromUri(ptr0, len0, backend);
104
234
  return ret;
105
235
  }
236
+ /**
237
+ * Read at this pinned Manifest. Returns null for never-created keys;
238
+ * deleted keys retain metadata with sample=null. Integer keys and anchors
239
+ * are BigInt; sample values use the Writer's tagged field shapes.
240
+ * @param {any} key
241
+ * @returns {Promise<any>}
242
+ */
243
+ getEntity(key) {
244
+ const ret = wasm.space_getEntity(this.__wbg_ptr, key);
245
+ return ret;
246
+ }
106
247
  /**
107
248
  * Walk the manifest DAG from HEAD, up to `max_depth` entries. Each entry:
108
249
  * `{ manifestHash, ts, writer, tracks: [{modality, address}] }`.
@@ -129,6 +270,18 @@ export class Space {
129
270
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
130
271
  }
131
272
  }
273
+ /**
274
+ * Open one pinned geometry Item. Missing/deleted anchors return undefined.
275
+ * @param {string} field
276
+ * @param {any} anchor
277
+ * @returns {Promise<GeometryReader | undefined>}
278
+ */
279
+ openGeometryItem(field, anchor) {
280
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
281
+ const len0 = WASM_VECTOR_LEN;
282
+ const ret = wasm.space_openGeometryItem(this.__wbg_ptr, ptr0, len0, anchor);
283
+ return ret;
284
+ }
132
285
  /**
133
286
  * Hybrid search fusing a lexical (BM25) sub-query and a dense (vector)
134
287
  * sub-query per spec/0015 §5/§6. Returns the fused `[{ anchor, score }]`
@@ -151,8 +304,8 @@ export class Space {
151
304
  * ```
152
305
  *
153
306
  * Delegates to the real (tested) `dreamdb-dataset::Dataset::query_hybrid`.
154
- * (v0 does not expose the optional scalar pre/post-filter; it runs with no
155
- * scalar gate.)
307
+ * Optional `scalarField` / `scalarOp` / `scalarValue` properties select
308
+ * the same scalar pre/post-filter planner used by the native API.
156
309
  * @param {Float32Array} vector
157
310
  * @param {any} opts
158
311
  * @returns {Promise<Array<any>>}
@@ -163,6 +316,21 @@ export class Space {
163
316
  const ret = wasm.space_queryHybrid(this.__wbg_ptr, ptr0, len0, opts);
164
317
  return ret;
165
318
  }
319
+ /**
320
+ * Hybrid query with an observable `{hits, trace}` result. `opts` accepts
321
+ * `maxLatencyMs`, `costModel`, and the optional scalar triple
322
+ * `scalarField`/`scalarOp`/`scalarValue` in addition to `queryHybrid`'s
323
+ * existing properties.
324
+ * @param {Float32Array} vector
325
+ * @param {any} opts
326
+ * @returns {Promise<any>}
327
+ */
328
+ queryHybridPlanned(vector, opts) {
329
+ const ptr0 = passArrayF32ToWasm0(vector, wasm.__wbindgen_malloc);
330
+ const len0 = WASM_VECTOR_LEN;
331
+ const ret = wasm.space_queryHybridPlanned(this.__wbg_ptr, ptr0, len0, opts);
332
+ return ret;
333
+ }
166
334
  /**
167
335
  * Scalar-index lookup: every anchor whose `field` satisfies `op value`
168
336
  * (spec/0011). Returns a `BigUint64Array`-style `Array` of anchors,
@@ -236,6 +404,43 @@ export class Space {
236
404
  const ret = wasm.space_queryVector(this.__wbg_ptr, ptr0, len0, ptr1, len1, opts);
237
405
  return ret;
238
406
  }
407
+ /**
408
+ * Read an Event/Unbucketed or Continuous/TimeBatch typed-array field as
409
+ * `Map<anchorString, {values, shape, ...}>`.
410
+ * @param {string} field
411
+ * @returns {Promise<Map<any, any>>}
412
+ */
413
+ readArrayColumn(field) {
414
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
415
+ const len0 = WASM_VECTOR_LEN;
416
+ const ret = wasm.space_readArrayColumn(this.__wbg_ptr, ptr0, len0);
417
+ return ret;
418
+ }
419
+ /**
420
+ * Read a typed-array Constant and decode it to a JS TypedArray plus its
421
+ * authoritative shape and semantic metadata.
422
+ * @param {string} field
423
+ * @returns {Promise<any>}
424
+ */
425
+ readArrayConstant(field) {
426
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
427
+ const len0 = WASM_VECTOR_LEN;
428
+ const ret = wasm.space_readArrayConstant(this.__wbg_ptr, ptr0, len0);
429
+ return ret;
430
+ }
431
+ /**
432
+ * Point read; full-u64 BigInt anchors are supported. Returned components
433
+ * are owned typed arrays (one Item's bytes), never unaligned aliases.
434
+ * @param {string} field
435
+ * @param {any} anchor
436
+ * @returns {Promise<any>}
437
+ */
438
+ readArrayItem(field, anchor) {
439
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
440
+ const len0 = WASM_VECTOR_LEN;
441
+ const ret = wasm.space_readArrayItem(this.__wbg_ptr, ptr0, len0, anchor);
442
+ return ret;
443
+ }
239
444
  /**
240
445
  * Read a scalar track as a `Map<anchorString, value>`. Single-anchor
241
446
  * entries resolve from the track index; multi-anchor entries fetch (and
@@ -248,6 +453,22 @@ export class Space {
248
453
  const ret = wasm.space_readScalarColumn(this.__wbg_ptr, track, _opts);
249
454
  return ret;
250
455
  }
456
+ /**
457
+ * Fetch verified initialization and complete Fragments overlapping one
458
+ * item-relative half-open range. This materializes the selected bytes; it
459
+ * is not a streaming API.
460
+ * @param {string} field
461
+ * @param {Uint8Array} item_key
462
+ * @param {any} relative_start_ns
463
+ * @param {any} relative_end_ns
464
+ * @returns {Promise<any>}
465
+ */
466
+ readVideoItemRange(field, item_key, relative_start_ns, relative_end_ns) {
467
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
468
+ const len0 = WASM_VECTOR_LEN;
469
+ const ret = wasm.space_readVideoItemRange(this.__wbg_ptr, ptr0, len0, item_key, relative_start_ns, relative_end_ns);
470
+ return ret;
471
+ }
251
472
  /**
252
473
  * Fetch a track object and return its `object_index` (array of CBOR
253
474
  * entries). Inline indexes only — paged indexes are not resolved (matching
@@ -259,6 +480,40 @@ export class Space {
259
480
  const ret = wasm.space_resolveObjectIndex(this.__wbg_ptr, track);
260
481
  return ret;
261
482
  }
483
+ /**
484
+ * Semantic-cache capacity in bytes (spec/0006 §3.6). Default 1 GiB.
485
+ * @returns {Promise<number>}
486
+ */
487
+ semanticCacheCapacity() {
488
+ const ret = wasm.space_semanticCacheCapacity(this.__wbg_ptr);
489
+ return ret;
490
+ }
491
+ /**
492
+ * Semantic-cache occupancy as `{ entries, bytesUsed, maxBytes }`.
493
+ * @returns {Promise<object>}
494
+ */
495
+ semanticCacheStats() {
496
+ const ret = wasm.space_semanticCacheStats(this.__wbg_ptr);
497
+ return ret;
498
+ }
499
+ /**
500
+ * Set the semantic-cache capacity in bytes, evicting down to it before
501
+ * returning. Returns the bytes evicted. `0` disables the cache.
502
+ *
503
+ * An index whose accounted size exceeds the cap is not cached and is
504
+ * re-fetched on every query, reported honestly as a miss. The default is
505
+ * not raised globally to suit one corpus.
506
+ *
507
+ * Sizing is workload- and architecture-dependent, and figures measured on
508
+ * a 64-bit host do NOT carry over here: `usize` is 32 bits on `wasm32`, so
509
+ * every offset and length inside a decoded index accounts differently.
510
+ * @param {number} n_bytes
511
+ * @returns {Promise<number>}
512
+ */
513
+ setSemanticCacheCapacity(n_bytes) {
514
+ const ret = wasm.space_setSemanticCacheCapacity(this.__wbg_ptr, n_bytes);
515
+ return ret;
516
+ }
262
517
  /**
263
518
  * Base32 hash of the manifest's first timeline.
264
519
  * @returns {string}
@@ -290,7 +545,10 @@ export class Space {
290
545
  const ptr0 = passStringToWasm0(key_or_modality, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
291
546
  const len0 = WASM_VECTOR_LEN;
292
547
  const ret = wasm.space_trackFor(this.__wbg_ptr, ptr0, len0);
293
- return ret;
548
+ if (ret[2]) {
549
+ throw takeFromExternrefTable0(ret[1]);
550
+ }
551
+ return takeFromExternrefTable0(ret[0]);
294
552
  }
295
553
  /**
296
554
  * List resolved tracks from this manifest.
@@ -298,6 +556,35 @@ export class Space {
298
556
  */
299
557
  tracks() {
300
558
  const ret = wasm.space_tracks(this.__wbg_ptr);
559
+ if (ret[2]) {
560
+ throw takeFromExternrefTable0(ret[1]);
561
+ }
562
+ return takeFromExternrefTable0(ret[0]);
563
+ }
564
+ /**
565
+ * Look up the logical VideoItem containing one absolute Timeline anchor
566
+ * without fetching media. Exact nanosecond values are returned as bigint.
567
+ * @param {string} field
568
+ * @param {any} anchor_ns
569
+ * @returns {Promise<any>}
570
+ */
571
+ videoItemAt(field, anchor_ns) {
572
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
573
+ const len0 = WASM_VECTOR_LEN;
574
+ const ret = wasm.space_videoItemAt(this.__wbg_ptr, ptr0, len0, anchor_ns);
575
+ return ret;
576
+ }
577
+ /**
578
+ * Look up one logical VideoItem by its stable opaque key without fetching
579
+ * initialization or Fragment bytes.
580
+ * @param {string} field
581
+ * @param {Uint8Array} item_key
582
+ * @returns {Promise<any>}
583
+ */
584
+ videoItemByKey(field, item_key) {
585
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
586
+ const len0 = WASM_VECTOR_LEN;
587
+ const ret = wasm.space_videoItemByKey(this.__wbg_ptr, ptr0, len0, item_key);
301
588
  return ret;
302
589
  }
303
590
  }
@@ -323,6 +610,17 @@ export class Writer {
323
610
  const ptr = this.__destroy_into_raw();
324
611
  wasm.__wbg_writer_free(ptr, 0);
325
612
  }
613
+ /**
614
+ * Atomically hot-append a complete Sample batch. Embeddings retain v1;
615
+ * scalar/text values use v2. Identified embeddings require embeddingSpecs.
616
+ * @param {Array<any>} samples
617
+ * @param {object | null} [embedding_specs]
618
+ * @returns {Promise<number>}
619
+ */
620
+ appendHot(samples, embedding_specs) {
621
+ const ret = wasm.writer_appendHot(this.__wbg_ptr, samples, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
622
+ return ret;
623
+ }
326
624
  /**
327
625
  * Append records and commit in one call.
328
626
  *
@@ -341,6 +639,17 @@ export class Writer {
341
639
  const ret = wasm.writer_appendMany(this.__wbg_ptr, samples);
342
640
  return ret;
343
641
  }
642
+ /**
643
+ * Append records with a field-to-`spec_id` map for identified embeddings.
644
+ * Values are full canonical base32 multihashes.
645
+ * @param {Array<any>} samples
646
+ * @param {object} embedding_specs
647
+ * @returns {Promise<number>}
648
+ */
649
+ appendManyWithSpecs(samples, embedding_specs) {
650
+ const ret = wasm.writer_appendManyWithSpecs(this.__wbg_ptr, samples, embedding_specs);
651
+ return ret;
652
+ }
344
653
  /**
345
654
  * Flush staged entries and publish a new manifest.
346
655
  *
@@ -354,6 +663,38 @@ export class Writer {
354
663
  const ret = wasm.writer_commit(this.__wbg_ptr);
355
664
  return ret;
356
665
  }
666
+ /**
667
+ * Producer policy only: TTL is evaluated on append, not by a timer.
668
+ * @param {number} flush_threshold
669
+ * @param {number} ttl_seconds
670
+ */
671
+ configureHotShard(flush_threshold, ttl_seconds) {
672
+ const ret = wasm.writer_configureHotShard(this.__wbg_ptr, flush_threshold, ttl_seconds);
673
+ if (ret[1]) {
674
+ throw takeFromExternrefTable0(ret[0]);
675
+ }
676
+ }
677
+ /**
678
+ * Create a never-used key. Sample uses appendMany's tagged fields, no anchor.
679
+ * @param {any} key
680
+ * @param {object} sample
681
+ * @param {object | null} [embedding_specs]
682
+ * @returns {Promise<object>}
683
+ */
684
+ createEntity(key, sample, embedding_specs) {
685
+ const ret = wasm.writer_createEntity(this.__wbg_ptr, key, sample, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
686
+ return ret;
687
+ }
688
+ /**
689
+ * Delete exactly a live revision, retaining its key and stable identity.
690
+ * @param {any} key
691
+ * @param {Uint8Array} expected
692
+ * @returns {Promise<object>}
693
+ */
694
+ deleteEntity(key, expected) {
695
+ const ret = wasm.writer_deleteEntity(this.__wbg_ptr, key, expected);
696
+ return ret;
697
+ }
357
698
  /**
358
699
  * Tombstone records by anchor. Returns the new manifest hash.
359
700
  * @param {BigUint64Array} anchors
@@ -368,6 +709,25 @@ export class Writer {
368
709
  const ret = wasm.writer_deleteRecords(this.__wbg_ptr, ptr0, len0, ptr1, len1);
369
710
  return ret;
370
711
  }
712
+ /**
713
+ * Enable one exact typed entity namespace: string, bytes or int.
714
+ * @param {string} key_kind
715
+ * @returns {Promise<void>}
716
+ */
717
+ enableEntityKeys(key_kind) {
718
+ const ptr0 = passStringToWasm0(key_kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
719
+ const len0 = WASM_VECTOR_LEN;
720
+ const ret = wasm.writer_enableEntityKeys(this.__wbg_ptr, ptr0, len0);
721
+ return ret;
722
+ }
723
+ /**
724
+ * Explicitly fold every pending hot field into cold Tracks in one publish.
725
+ * @returns {Promise<void>}
726
+ */
727
+ flushHot() {
728
+ const ret = wasm.writer_flushHot(this.__wbg_ptr);
729
+ return ret;
730
+ }
371
731
  /**
372
732
  * Current manifest hash, base32.
373
733
  * @returns {string}
@@ -412,6 +772,36 @@ export class Writer {
412
772
  const ret = wasm.writer_open(ptr0, len0, backend);
413
773
  return ret;
414
774
  }
775
+ /**
776
+ * Publish prequantized fixed-stride records. Coordinates is
777
+ * {origin:[x,y,z],step:[x,y,z],units:string}; depth is 0..16.
778
+ * @param {string} field
779
+ * @param {any} anchor
780
+ * @param {any} coordinates
781
+ * @param {any} depth
782
+ * @param {Uint8Array} records
783
+ * @returns {Promise<string>}
784
+ */
785
+ publishGeometryCells(field, anchor, coordinates, depth, records) {
786
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
787
+ const len0 = WASM_VECTOR_LEN;
788
+ const ret = wasm.writer_publishGeometryCells(this.__wbg_ptr, ptr0, len0, anchor, coordinates, depth, records);
789
+ return ret;
790
+ }
791
+ /**
792
+ * Each level is {errorGrid,vertices,triangles,bytes:Uint8Array}.
793
+ * @param {string} field
794
+ * @param {any} anchor
795
+ * @param {any} coordinates
796
+ * @param {Array<any>} levels
797
+ * @returns {Promise<string>}
798
+ */
799
+ publishGeometryMesh(field, anchor, coordinates, levels) {
800
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
801
+ const len0 = WASM_VECTOR_LEN;
802
+ const ret = wasm.writer_publishGeometryMesh(this.__wbg_ptr, ptr0, len0, anchor, coordinates, levels);
803
+ return ret;
804
+ }
415
805
  /**
416
806
  * The ref this writer advances.
417
807
  * @returns {string}
@@ -439,6 +829,30 @@ export class Writer {
439
829
  const ret = wasm.writer_snapshot(this.__wbg_ptr, ptr0, len0);
440
830
  return ret;
441
831
  }
832
+ /**
833
+ * Replace only a live revision, atomically hiding its old physical row.
834
+ * @param {any} key
835
+ * @param {object} sample
836
+ * @param {Uint8Array} expected
837
+ * @param {object | null} [embedding_specs]
838
+ * @returns {Promise<object>}
839
+ */
840
+ supersedeEntity(key, sample, expected, embedding_specs) {
841
+ const ret = wasm.writer_supersedeEntity(this.__wbg_ptr, key, sample, expected, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
842
+ return ret;
843
+ }
844
+ /**
845
+ * Create with no expected token, or replace/restore exactly that revision.
846
+ * @param {any} key
847
+ * @param {object} sample
848
+ * @param {Uint8Array | null} [expected]
849
+ * @param {object | null} [embedding_specs]
850
+ * @returns {Promise<object>}
851
+ */
852
+ upsertEntity(key, sample, expected, embedding_specs) {
853
+ const ret = wasm.writer_upsertEntity(this.__wbg_ptr, key, sample, isLikeNone(expected) ? 0 : addToExternrefTable0(expected), isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
854
+ return ret;
855
+ }
442
856
  }
443
857
  if (Symbol.dispose) Writer.prototype[Symbol.dispose] = Writer.prototype.free;
444
858
 
@@ -747,6 +1161,24 @@ export function timeBucket(t_start, duration) {
747
1161
  return BigInt.asUintN(64, ret[0]);
748
1162
  }
749
1163
 
1164
+ /**
1165
+ * Decode one spec/0025 item using the same declaration and payload path as
1166
+ * `Space.readArrayColumn`, without requiring storage IO. This is the SDK's
1167
+ * pure conformance entry point for language-neutral vectors.
1168
+ * @param {any} item_type
1169
+ * @param {Uint8Array} payload
1170
+ * @returns {any}
1171
+ */
1172
+ export function typedArrayDecode(item_type, payload) {
1173
+ const ptr0 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
1174
+ const len0 = WASM_VECTOR_LEN;
1175
+ const ret = wasm.typedArrayDecode(item_type, ptr0, len0);
1176
+ if (ret[2]) {
1177
+ throw takeFromExternrefTable0(ret[1]);
1178
+ }
1179
+ return takeFromExternrefTable0(ret[0]);
1180
+ }
1181
+
750
1182
  /**
751
1183
  * Package version — useful for consumers to confirm which build is loaded.
752
1184
  * @returns {string}
@@ -831,6 +1263,10 @@ export function __wbg___wbindgen_is_object_b4593df85baada48(arg0) {
831
1263
  const ret = typeof(val) === 'object' && val !== null;
832
1264
  return ret;
833
1265
  }
1266
+ export function __wbg___wbindgen_is_string_dde0fd9020db4434(arg0) {
1267
+ const ret = typeof(arg0) === 'string';
1268
+ return ret;
1269
+ }
834
1270
  export function __wbg___wbindgen_is_undefined_35bb9f4c7fd651d5(arg0) {
835
1271
  const ret = arg0 === undefined;
836
1272
  return ret;
@@ -867,6 +1303,10 @@ export function __wbg_arrayBuffer_cb5d4748b5f3cad5() { return handleError(functi
867
1303
  const ret = arg0.arrayBuffer();
868
1304
  return ret;
869
1305
  }, arguments); }
1306
+ export function __wbg_body_acbb5ec9cd18657f(arg0) {
1307
+ const ret = arg0.body;
1308
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1309
+ }
870
1310
  export function __wbg_call_084ee3e860ee9f92() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
871
1311
  const ret = arg0.call(arg1, arg2, arg3, arg4);
872
1312
  return ret;
@@ -883,6 +1323,10 @@ export function __wbg_call_faa0a261f288f846() { return handleError(function (arg
883
1323
  const ret = arg0.call(arg1, arg2, arg3);
884
1324
  return ret;
885
1325
  }, arguments); }
1326
+ export function __wbg_crypto_38df2bab126b63dc(arg0) {
1327
+ const ret = arg0.crypto;
1328
+ return ret;
1329
+ }
886
1330
  export function __wbg_done_54b8da57023b7ed2(arg0) {
887
1331
  const ret = arg0.done;
888
1332
  return ret;
@@ -894,6 +1338,28 @@ export function __wbg_entries_564a7e8b1e54ede5(arg0) {
894
1338
  export function __wbg_error_f085d7e62279b703(arg0) {
895
1339
  console.error(arg0);
896
1340
  }
1341
+ export function __wbg_from_fa561fa561dc8031(arg0) {
1342
+ const ret = Array.from(arg0);
1343
+ return ret;
1344
+ }
1345
+ export function __wbg_geometryreader_new(arg0) {
1346
+ const ret = GeometryReader.__wrap(arg0);
1347
+ return ret;
1348
+ }
1349
+ export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
1350
+ arg0.getRandomValues(arg1);
1351
+ }, arguments); }
1352
+ export function __wbg_getReader_c8a7370df46b86f6(arg0) {
1353
+ const ret = arg0.getReader();
1354
+ return ret;
1355
+ }
1356
+ export function __wbg_get_0b3f3bb74d16b7ad() { return handleError(function (arg0, arg1, arg2, arg3) {
1357
+ const ret = arg1.get(getStringFromWasm0(arg2, arg3));
1358
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1359
+ var len1 = WASM_VECTOR_LEN;
1360
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1361
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1362
+ }, arguments); }
897
1363
  export function __wbg_get_3e9a707ab7d352eb() { return handleError(function (arg0, arg1) {
898
1364
  const ret = Reflect.get(arg0, arg1);
899
1365
  return ret;
@@ -910,6 +1376,10 @@ export function __wbg_get_unchecked_1dfe6d05ad91d9b7(arg0, arg1) {
910
1376
  const ret = arg0[arg1 >>> 0];
911
1377
  return ret;
912
1378
  }
1379
+ export function __wbg_headers_18f39f24d3837dc1(arg0) {
1380
+ const ret = arg0.headers;
1381
+ return ret;
1382
+ }
913
1383
  export function __wbg_headers_4cfb0c75793d7a8d(arg0) {
914
1384
  const ret = arg0.headers;
915
1385
  return ret;
@@ -964,6 +1434,16 @@ export function __wbg_instanceof_Promise_09012cfa9708520a(arg0) {
964
1434
  const ret = result;
965
1435
  return ret;
966
1436
  }
1437
+ export function __wbg_instanceof_ReadableStream_9a3d74fc91aa9c55(arg0) {
1438
+ let result;
1439
+ try {
1440
+ result = arg0 instanceof ReadableStream;
1441
+ } catch (_) {
1442
+ result = false;
1443
+ }
1444
+ const ret = result;
1445
+ return ret;
1446
+ }
967
1447
  export function __wbg_instanceof_Response_ecfc823e8fb354e2(arg0) {
968
1448
  let result;
969
1449
  try {
@@ -996,18 +1476,58 @@ export function __wbg_iterator_1441b47f341dc34f() {
996
1476
  const ret = Symbol.iterator;
997
1477
  return ret;
998
1478
  }
1479
+ export function __wbg_keys_682010b680c9b1f8(arg0) {
1480
+ const ret = Object.keys(arg0);
1481
+ return ret;
1482
+ }
1483
+ export function __wbg_length_0adf2f3c5da33087(arg0) {
1484
+ const ret = arg0.length;
1485
+ return ret;
1486
+ }
999
1487
  export function __wbg_length_13e61aa81636ec86(arg0) {
1000
1488
  const ret = arg0.length;
1001
1489
  return ret;
1002
1490
  }
1491
+ export function __wbg_length_1c094f6c75753f5f(arg0) {
1492
+ const ret = arg0.length;
1493
+ return ret;
1494
+ }
1003
1495
  export function __wbg_length_2591a0f4f659a55c(arg0) {
1004
1496
  const ret = arg0.length;
1005
1497
  return ret;
1006
1498
  }
1499
+ export function __wbg_length_3a1b902b6cde9e2c(arg0) {
1500
+ const ret = arg0.length;
1501
+ return ret;
1502
+ }
1007
1503
  export function __wbg_length_56fcd3e2b7e0299d(arg0) {
1008
1504
  const ret = arg0.length;
1009
1505
  return ret;
1010
1506
  }
1507
+ export function __wbg_length_911750a64e2f4f88(arg0) {
1508
+ const ret = arg0.length;
1509
+ return ret;
1510
+ }
1511
+ export function __wbg_length_a4365e969857a2c9(arg0) {
1512
+ const ret = arg0.length;
1513
+ return ret;
1514
+ }
1515
+ export function __wbg_length_c7ce929623e7a230(arg0) {
1516
+ const ret = arg0.length;
1517
+ return ret;
1518
+ }
1519
+ export function __wbg_length_dc239675ea61db1b(arg0) {
1520
+ const ret = arg0.length;
1521
+ return ret;
1522
+ }
1523
+ export function __wbg_length_efe2271ed86b56cc(arg0) {
1524
+ const ret = arg0.length;
1525
+ return ret;
1526
+ }
1527
+ export function __wbg_msCrypto_bd5a034af96bcba6(arg0) {
1528
+ const ret = arg0.msCrypto;
1529
+ return ret;
1530
+ }
1011
1531
  export function __wbg_new_02d162bc6cf02f60() {
1012
1532
  const ret = new Object();
1013
1533
  return ret;
@@ -1028,6 +1548,10 @@ export function __wbg_new_from_slice_269e35316ed2d061(arg0, arg1) {
1028
1548
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1029
1549
  return ret;
1030
1550
  }
1551
+ export function __wbg_new_from_slice_7a419f18ea6472bf(arg0, arg1) {
1552
+ const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
1553
+ return ret;
1554
+ }
1031
1555
  export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
1032
1556
  try {
1033
1557
  var state0 = {a: arg0, b: arg1};
@@ -1046,6 +1570,46 @@ export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
1046
1570
  state0.a = 0;
1047
1571
  }
1048
1572
  }
1573
+ export function __wbg_new_with_length_1278c16a5c5b497f(arg0) {
1574
+ const ret = new Float64Array(arg0 >>> 0);
1575
+ return ret;
1576
+ }
1577
+ export function __wbg_new_with_length_22e34f6824b87f53(arg0) {
1578
+ const ret = new BigUint64Array(arg0 >>> 0);
1579
+ return ret;
1580
+ }
1581
+ export function __wbg_new_with_length_58dc420af34edb59(arg0) {
1582
+ const ret = new Float32Array(arg0 >>> 0);
1583
+ return ret;
1584
+ }
1585
+ export function __wbg_new_with_length_662ce8fda8456c6c(arg0) {
1586
+ const ret = new Uint16Array(arg0 >>> 0);
1587
+ return ret;
1588
+ }
1589
+ export function __wbg_new_with_length_6ab0b677ba8ffdc4(arg0) {
1590
+ const ret = new BigInt64Array(arg0 >>> 0);
1591
+ return ret;
1592
+ }
1593
+ export function __wbg_new_with_length_78398b95fa59feae(arg0) {
1594
+ const ret = new Int32Array(arg0 >>> 0);
1595
+ return ret;
1596
+ }
1597
+ export function __wbg_new_with_length_96785292f4aab914(arg0) {
1598
+ const ret = new Int8Array(arg0 >>> 0);
1599
+ return ret;
1600
+ }
1601
+ export function __wbg_new_with_length_99887c91eae4abab(arg0) {
1602
+ const ret = new Uint8Array(arg0 >>> 0);
1603
+ return ret;
1604
+ }
1605
+ export function __wbg_new_with_length_bab0ddb25b1a2cc7(arg0) {
1606
+ const ret = new Int16Array(arg0 >>> 0);
1607
+ return ret;
1608
+ }
1609
+ export function __wbg_new_with_length_f128f2c16ad4f906(arg0) {
1610
+ const ret = new Uint32Array(arg0 >>> 0);
1611
+ return ret;
1612
+ }
1049
1613
  export function __wbg_new_with_str_and_init_ffe9977c986ea039() { return handleError(function (arg0, arg1, arg2) {
1050
1614
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1051
1615
  return ret;
@@ -1058,6 +1622,10 @@ export function __wbg_next_6429a146bf756f93() { return handleError(function (arg
1058
1622
  const ret = arg0.next();
1059
1623
  return ret;
1060
1624
  }, arguments); }
1625
+ export function __wbg_node_84ea875411254db1(arg0) {
1626
+ const ret = arg0.node;
1627
+ return ret;
1628
+ }
1061
1629
  export function __wbg_now_81363d44c96dd239() {
1062
1630
  const ret = Date.now();
1063
1631
  return ret;
@@ -1066,6 +1634,10 @@ export function __wbg_ok_556a55299dd238ba(arg0) {
1066
1634
  const ret = arg0.ok;
1067
1635
  return ret;
1068
1636
  }
1637
+ export function __wbg_process_44c7a14e11e9f69e(arg0) {
1638
+ const ret = arg0.process;
1639
+ return ret;
1640
+ }
1069
1641
  export function __wbg_prototypesetcall_5f9bdc8d75e07276(arg0, arg1, arg2) {
1070
1642
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1071
1643
  }
@@ -1083,14 +1655,45 @@ export function __wbg_queueMicrotask_78d584b53af520f5(arg0) {
1083
1655
  export function __wbg_queueMicrotask_b39ea83c7f01971a(arg0) {
1084
1656
  queueMicrotask(arg0);
1085
1657
  }
1658
+ export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
1659
+ arg0.randomFillSync(arg1);
1660
+ }, arguments); }
1661
+ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function () {
1662
+ const ret = module.require;
1663
+ return ret;
1664
+ }, arguments); }
1086
1665
  export function __wbg_resolve_d17db9352f5a220e(arg0) {
1087
1666
  const ret = Promise.resolve(arg0);
1088
1667
  return ret;
1089
1668
  }
1669
+ export function __wbg_set_517261bc500078e6(arg0, arg1, arg2) {
1670
+ arg0.set(getArrayI16FromWasm0(arg1, arg2));
1671
+ }
1672
+ export function __wbg_set_5bffd0c00e65c280(arg0, arg1, arg2) {
1673
+ arg0.set(getArrayF64FromWasm0(arg1, arg2));
1674
+ }
1675
+ export function __wbg_set_5d860a0c0949a838(arg0, arg1, arg2) {
1676
+ arg0.set(getArrayF32FromWasm0(arg1, arg2));
1677
+ }
1678
+ export function __wbg_set_8c4bf3c22a64e1df(arg0, arg1, arg2) {
1679
+ arg0.set(getArrayI8FromWasm0(arg1, arg2));
1680
+ }
1681
+ export function __wbg_set_90474108ec025ba3(arg0, arg1, arg2) {
1682
+ arg0.set(getArrayU32FromWasm0(arg1, arg2));
1683
+ }
1684
+ export function __wbg_set_943e5a384dda27eb(arg0, arg1, arg2) {
1685
+ arg0.set(getArrayI32FromWasm0(arg1, arg2));
1686
+ }
1090
1687
  export function __wbg_set_a0e911be3da02782() { return handleError(function (arg0, arg1, arg2) {
1091
1688
  const ret = Reflect.set(arg0, arg1, arg2);
1092
1689
  return ret;
1093
1690
  }, arguments); }
1691
+ export function __wbg_set_c9acd362199fe8b8(arg0, arg1, arg2) {
1692
+ arg0.set(getArrayI64FromWasm0(arg1, arg2));
1693
+ }
1694
+ export function __wbg_set_d4121491cc61da07(arg0, arg1, arg2) {
1695
+ arg0.set(getArrayU16FromWasm0(arg1, arg2));
1696
+ }
1094
1697
  export function __wbg_set_d57e5106f0271787() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1095
1698
  arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1096
1699
  }, arguments); }
@@ -1098,6 +1701,9 @@ export function __wbg_set_facb7a5914e0fa39(arg0, arg1, arg2) {
1098
1701
  const ret = arg0.set(arg1, arg2);
1099
1702
  return ret;
1100
1703
  }
1704
+ export function __wbg_set_fb3115a057014152(arg0, arg1, arg2) {
1705
+ arg0.set(getArrayU64FromWasm0(arg1, arg2));
1706
+ }
1101
1707
  export function __wbg_space_new(arg0) {
1102
1708
  const ret = Space.__wrap(arg0);
1103
1709
  return ret;
@@ -1122,6 +1728,10 @@ export function __wbg_status_0853c9f5752c7ee2(arg0) {
1122
1728
  const ret = arg0.status;
1123
1729
  return ret;
1124
1730
  }
1731
+ export function __wbg_subarray_7c6a0da8f3b4a1ba(arg0, arg1, arg2) {
1732
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1733
+ return ret;
1734
+ }
1125
1735
  export function __wbg_then_837494e384b37459(arg0, arg1) {
1126
1736
  const ret = arg0.then(arg1);
1127
1737
  return ret;
@@ -1134,12 +1744,16 @@ export function __wbg_value_9cc0518af87a489c(arg0) {
1134
1744
  const ret = arg0.value;
1135
1745
  return ret;
1136
1746
  }
1747
+ export function __wbg_versions_276b2795b1c6a219(arg0) {
1748
+ const ret = arg0.versions;
1749
+ return ret;
1750
+ }
1137
1751
  export function __wbg_writer_new(arg0) {
1138
1752
  const ret = Writer.__wrap(arg0);
1139
1753
  return ret;
1140
1754
  }
1141
1755
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
1142
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 488, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1756
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 819, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1143
1757
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_);
1144
1758
  return ret;
1145
1759
  }
@@ -1159,11 +1773,16 @@ export function __wbindgen_cast_0000000000000004(arg0) {
1159
1773
  return ret;
1160
1774
  }
1161
1775
  export function __wbindgen_cast_0000000000000005(arg0, arg1) {
1776
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1777
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1778
+ return ret;
1779
+ }
1780
+ export function __wbindgen_cast_0000000000000006(arg0, arg1) {
1162
1781
  // Cast intrinsic for `Ref(String) -> Externref`.
1163
1782
  const ret = getStringFromWasm0(arg0, arg1);
1164
1783
  return ret;
1165
1784
  }
1166
- export function __wbindgen_cast_0000000000000006(arg0) {
1785
+ export function __wbindgen_cast_0000000000000007(arg0) {
1167
1786
  // Cast intrinsic for `U64 -> Externref`.
1168
1787
  const ret = BigInt.asUintN(64, arg0);
1169
1788
  return ret;
@@ -1188,6 +1807,9 @@ function wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_a
1188
1807
  wasm.wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_ac40961855821e8e___Function_fn_wasm_bindgen_f7c54996eb9137d9___JsValue_____wasm_bindgen_f7c54996eb9137d9___sys__Undefined___js_sys_ac40961855821e8e___Function_fn_wasm_bindgen_f7c54996eb9137d9___JsValue_____wasm_bindgen_f7c54996eb9137d9___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
1189
1808
  }
1190
1809
 
1810
+ const GeometryReaderFinalization = (typeof FinalizationRegistry === 'undefined')
1811
+ ? { register: () => {}, unregister: () => {} }
1812
+ : new FinalizationRegistry(ptr => wasm.__wbg_geometryreader_free(ptr, 1));
1191
1813
  const S3BackendFinalization = (typeof FinalizationRegistry === 'undefined')
1192
1814
  ? { register: () => {}, unregister: () => {} }
1193
1815
  : new FinalizationRegistry(ptr => wasm.__wbg_s3backend_free(ptr, 1));
@@ -1278,11 +1900,59 @@ function getArrayF32FromWasm0(ptr, len) {
1278
1900
  return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1279
1901
  }
1280
1902
 
1903
+ function getArrayF64FromWasm0(ptr, len) {
1904
+ ptr = ptr >>> 0;
1905
+ return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1906
+ }
1907
+
1908
+ function getArrayI16FromWasm0(ptr, len) {
1909
+ ptr = ptr >>> 0;
1910
+ return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
1911
+ }
1912
+
1913
+ function getArrayI32FromWasm0(ptr, len) {
1914
+ ptr = ptr >>> 0;
1915
+ return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1916
+ }
1917
+
1918
+ function getArrayI64FromWasm0(ptr, len) {
1919
+ ptr = ptr >>> 0;
1920
+ return getBigInt64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1921
+ }
1922
+
1923
+ function getArrayI8FromWasm0(ptr, len) {
1924
+ ptr = ptr >>> 0;
1925
+ return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1926
+ }
1927
+
1928
+ function getArrayU16FromWasm0(ptr, len) {
1929
+ ptr = ptr >>> 0;
1930
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
1931
+ }
1932
+
1933
+ function getArrayU32FromWasm0(ptr, len) {
1934
+ ptr = ptr >>> 0;
1935
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1936
+ }
1937
+
1938
+ function getArrayU64FromWasm0(ptr, len) {
1939
+ ptr = ptr >>> 0;
1940
+ return getBigUint64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1941
+ }
1942
+
1281
1943
  function getArrayU8FromWasm0(ptr, len) {
1282
1944
  ptr = ptr >>> 0;
1283
1945
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1284
1946
  }
1285
1947
 
1948
+ let cachedBigInt64ArrayMemory0 = null;
1949
+ function getBigInt64ArrayMemory0() {
1950
+ if (cachedBigInt64ArrayMemory0 === null || cachedBigInt64ArrayMemory0.byteLength === 0) {
1951
+ cachedBigInt64ArrayMemory0 = new BigInt64Array(wasm.memory.buffer);
1952
+ }
1953
+ return cachedBigInt64ArrayMemory0;
1954
+ }
1955
+
1286
1956
  let cachedBigUint64ArrayMemory0 = null;
1287
1957
  function getBigUint64ArrayMemory0() {
1288
1958
  if (cachedBigUint64ArrayMemory0 === null || cachedBigUint64ArrayMemory0.byteLength === 0) {
@@ -1307,10 +1977,58 @@ function getFloat32ArrayMemory0() {
1307
1977
  return cachedFloat32ArrayMemory0;
1308
1978
  }
1309
1979
 
1980
+ let cachedFloat64ArrayMemory0 = null;
1981
+ function getFloat64ArrayMemory0() {
1982
+ if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
1983
+ cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
1984
+ }
1985
+ return cachedFloat64ArrayMemory0;
1986
+ }
1987
+
1988
+ let cachedInt16ArrayMemory0 = null;
1989
+ function getInt16ArrayMemory0() {
1990
+ if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
1991
+ cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
1992
+ }
1993
+ return cachedInt16ArrayMemory0;
1994
+ }
1995
+
1996
+ let cachedInt32ArrayMemory0 = null;
1997
+ function getInt32ArrayMemory0() {
1998
+ if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
1999
+ cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
2000
+ }
2001
+ return cachedInt32ArrayMemory0;
2002
+ }
2003
+
2004
+ let cachedInt8ArrayMemory0 = null;
2005
+ function getInt8ArrayMemory0() {
2006
+ if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
2007
+ cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
2008
+ }
2009
+ return cachedInt8ArrayMemory0;
2010
+ }
2011
+
1310
2012
  function getStringFromWasm0(ptr, len) {
1311
2013
  return decodeText(ptr >>> 0, len);
1312
2014
  }
1313
2015
 
2016
+ let cachedUint16ArrayMemory0 = null;
2017
+ function getUint16ArrayMemory0() {
2018
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
2019
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
2020
+ }
2021
+ return cachedUint16ArrayMemory0;
2022
+ }
2023
+
2024
+ let cachedUint32ArrayMemory0 = null;
2025
+ function getUint32ArrayMemory0() {
2026
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
2027
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
2028
+ }
2029
+ return cachedUint32ArrayMemory0;
2030
+ }
2031
+
1314
2032
  let cachedUint8ArrayMemory0 = null;
1315
2033
  function getUint8ArrayMemory0() {
1316
2034
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {