tabulark 0.0.4 → 0.1.0

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 (58) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +215 -110
  3. package/THIRD_PARTY_NOTICES.md +37 -0
  4. package/dist/adapters.d.ts +62 -0
  5. package/dist/arrow.d.ts +3 -0
  6. package/dist/arrow.js +2 -0
  7. package/dist/arrow.js.map +7 -0
  8. package/dist/client.d.ts +76 -0
  9. package/dist/errors.d.ts +19 -0
  10. package/dist/excel.d.ts +3 -0
  11. package/dist/excel.js +2 -0
  12. package/dist/excel.js.map +7 -0
  13. package/dist/experimental.d.ts +13 -0
  14. package/dist/experimental.js +2 -0
  15. package/dist/experimental.js.map +7 -0
  16. package/dist/index.d.ts +10 -0
  17. package/dist/index.js +2 -0
  18. package/dist/index.js.map +7 -0
  19. package/dist/model.d.ts +389 -0
  20. package/dist/official-adapter-manifest.d.ts +31 -0
  21. package/dist/parquet.d.ts +3 -0
  22. package/dist/parquet.js +2 -0
  23. package/dist/parquet.js.map +7 -0
  24. package/dist/protocol.d.ts +54 -0
  25. package/dist/range-cache.d.ts +28 -0
  26. package/dist/rpc-client.d.ts +18 -0
  27. package/dist/view/accessible-grid.d.ts +36 -0
  28. package/dist/view/canvas-painter.d.ts +91 -0
  29. package/dist/view/canvas-table-view-public.d.ts +58 -0
  30. package/dist/view/canvas-table-view.d.ts +32 -0
  31. package/dist/view/controller.d.ts +34 -0
  32. package/dist/view/layout.d.ts +34 -0
  33. package/dist/view/selection.d.ts +7 -0
  34. package/dist/view/types.d.ts +184 -0
  35. package/dist/wasm/arrow/tabulark_arrow.d.ts +126 -0
  36. package/dist/wasm/arrow/tabulark_arrow.js +771 -0
  37. package/dist/wasm/arrow/tabulark_arrow_bg.wasm +0 -0
  38. package/dist/wasm/arrow/tabulark_arrow_bg.wasm.d.ts +25 -0
  39. package/dist/wasm/delimited/tabulark_delimited.d.ts +131 -0
  40. package/dist/wasm/delimited/tabulark_delimited.js +845 -0
  41. package/dist/wasm/delimited/tabulark_delimited_bg.wasm +0 -0
  42. package/dist/wasm/delimited/tabulark_delimited_bg.wasm.d.ts +26 -0
  43. package/dist/wasm/excel/tabulark_excel.d.ts +121 -0
  44. package/dist/wasm/excel/tabulark_excel.js +766 -0
  45. package/dist/wasm/excel/tabulark_excel_bg.wasm +0 -0
  46. package/dist/wasm/excel/tabulark_excel_bg.wasm.d.ts +25 -0
  47. package/dist/wasm/parquet/tabulark_parquet.d.ts +121 -0
  48. package/dist/wasm/parquet/tabulark_parquet.js +754 -0
  49. package/dist/wasm/parquet/tabulark_parquet_bg.wasm +0 -0
  50. package/dist/wasm/parquet/tabulark_parquet_bg.wasm.d.ts +25 -0
  51. package/dist/worker/wasm-adapter.d.ts +57 -0
  52. package/dist/worker/worker-errors.d.ts +9 -0
  53. package/dist/worker.d.ts +1 -0
  54. package/dist/worker.js +2 -0
  55. package/dist/worker.js.map +7 -0
  56. package/package.json +55 -12
  57. package/js/index.d.ts +0 -18
  58. package/js/index.js +0 -26
@@ -0,0 +1,766 @@
1
+ let wasm;
2
+
3
+ const heap = new Array(128).fill(undefined);
4
+
5
+ heap.push(undefined, null, true, false);
6
+
7
+ function getObject(idx) { return heap[idx]; }
8
+
9
+ let WASM_VECTOR_LEN = 0;
10
+
11
+ let cachedUint8ArrayMemory0 = null;
12
+
13
+ function getUint8ArrayMemory0() {
14
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
15
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
16
+ }
17
+ return cachedUint8ArrayMemory0;
18
+ }
19
+
20
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
21
+
22
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
23
+ ? function (arg, view) {
24
+ return cachedTextEncoder.encodeInto(arg, view);
25
+ }
26
+ : function (arg, view) {
27
+ const buf = cachedTextEncoder.encode(arg);
28
+ view.set(buf);
29
+ return {
30
+ read: arg.length,
31
+ written: buf.length
32
+ };
33
+ });
34
+
35
+ function passStringToWasm0(arg, malloc, realloc) {
36
+
37
+ if (realloc === undefined) {
38
+ const buf = cachedTextEncoder.encode(arg);
39
+ const ptr = malloc(buf.length, 1) >>> 0;
40
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
41
+ WASM_VECTOR_LEN = buf.length;
42
+ return ptr;
43
+ }
44
+
45
+ let len = arg.length;
46
+ let ptr = malloc(len, 1) >>> 0;
47
+
48
+ const mem = getUint8ArrayMemory0();
49
+
50
+ let offset = 0;
51
+
52
+ for (; offset < len; offset++) {
53
+ const code = arg.charCodeAt(offset);
54
+ if (code > 0x7F) break;
55
+ mem[ptr + offset] = code;
56
+ }
57
+
58
+ if (offset !== len) {
59
+ if (offset !== 0) {
60
+ arg = arg.slice(offset);
61
+ }
62
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
63
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
64
+ const ret = encodeString(arg, view);
65
+
66
+ offset += ret.written;
67
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
68
+ }
69
+
70
+ WASM_VECTOR_LEN = offset;
71
+ return ptr;
72
+ }
73
+
74
+ let cachedDataViewMemory0 = null;
75
+
76
+ function getDataViewMemory0() {
77
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
78
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
79
+ }
80
+ return cachedDataViewMemory0;
81
+ }
82
+
83
+ let heap_next = heap.length;
84
+
85
+ function addHeapObject(obj) {
86
+ if (heap_next === heap.length) heap.push(heap.length + 1);
87
+ const idx = heap_next;
88
+ heap_next = heap[idx];
89
+
90
+ heap[idx] = obj;
91
+ return idx;
92
+ }
93
+
94
+ function dropObject(idx) {
95
+ if (idx < 132) return;
96
+ heap[idx] = heap_next;
97
+ heap_next = idx;
98
+ }
99
+
100
+ function takeObject(idx) {
101
+ const ret = getObject(idx);
102
+ dropObject(idx);
103
+ return ret;
104
+ }
105
+
106
+ function handleError(f, args) {
107
+ try {
108
+ return f.apply(this, args);
109
+ } catch (e) {
110
+ wasm.__wbindgen_export_2(addHeapObject(e));
111
+ }
112
+ }
113
+
114
+ function isLikeNone(x) {
115
+ return x === undefined || x === null;
116
+ }
117
+
118
+ function debugString(val) {
119
+ // primitive types
120
+ const type = typeof val;
121
+ if (type == 'number' || type == 'boolean' || val == null) {
122
+ return `${val}`;
123
+ }
124
+ if (type == 'string') {
125
+ return `"${val}"`;
126
+ }
127
+ if (type == 'symbol') {
128
+ const description = val.description;
129
+ if (description == null) {
130
+ return 'Symbol';
131
+ } else {
132
+ return `Symbol(${description})`;
133
+ }
134
+ }
135
+ if (type == 'function') {
136
+ const name = val.name;
137
+ if (typeof name == 'string' && name.length > 0) {
138
+ return `Function(${name})`;
139
+ } else {
140
+ return 'Function';
141
+ }
142
+ }
143
+ // objects
144
+ if (Array.isArray(val)) {
145
+ const length = val.length;
146
+ let debug = '[';
147
+ if (length > 0) {
148
+ debug += debugString(val[0]);
149
+ }
150
+ for(let i = 1; i < length; i++) {
151
+ debug += ', ' + debugString(val[i]);
152
+ }
153
+ debug += ']';
154
+ return debug;
155
+ }
156
+ // Test for built-in
157
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
158
+ let className;
159
+ if (builtInMatches && builtInMatches.length > 1) {
160
+ className = builtInMatches[1];
161
+ } else {
162
+ // Failed to match the standard '[object ClassName]'
163
+ return toString.call(val);
164
+ }
165
+ if (className == 'Object') {
166
+ // we're a user defined class or Object
167
+ // JSON.stringify avoids problems with cycles, and is generally much
168
+ // easier than looping through ownProperties of `val`.
169
+ try {
170
+ return 'Object(' + JSON.stringify(val) + ')';
171
+ } catch (_) {
172
+ return 'Object';
173
+ }
174
+ }
175
+ // errors
176
+ if (val instanceof Error) {
177
+ return `${val.name}: ${val.message}\n${val.stack}`;
178
+ }
179
+ // TODO we could test for more things here, like `Set`s and `Map`s.
180
+ return className;
181
+ }
182
+
183
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
184
+
185
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
186
+
187
+ function getStringFromWasm0(ptr, len) {
188
+ ptr = ptr >>> 0;
189
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
190
+ }
191
+
192
+ const WasmRuntimeFinalization = (typeof FinalizationRegistry === 'undefined')
193
+ ? { register: () => {}, unregister: () => {} }
194
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmruntime_free(ptr >>> 0, 1));
195
+ /**
196
+ * Dedicated Excel runtime artifact implementing official adapter ABI v2.
197
+ */
198
+ export class WasmRuntime {
199
+
200
+ __destroy_into_raw() {
201
+ const ptr = this.__wbg_ptr;
202
+ this.__wbg_ptr = 0;
203
+ WasmRuntimeFinalization.unregister(this);
204
+ return ptr;
205
+ }
206
+
207
+ free() {
208
+ const ptr = this.__destroy_into_raw();
209
+ wasm.__wbg_wasmruntime_free(ptr, 0);
210
+ }
211
+ /**
212
+ * Returns the frozen official adapter ID.
213
+ * @returns {string}
214
+ */
215
+ adapterId() {
216
+ let deferred1_0;
217
+ let deferred1_1;
218
+ try {
219
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
220
+ wasm.wasmruntime_adapterId(retptr, this.__wbg_ptr);
221
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
222
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
223
+ deferred1_0 = r0;
224
+ deferred1_1 = r1;
225
+ return getStringFromWasm0(r0, r1);
226
+ } finally {
227
+ wasm.__wbindgen_add_to_stack_pointer(16);
228
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
229
+ }
230
+ }
231
+ /**
232
+ * Begins a staged workbook open by requesting the complete source once.
233
+ * @param {any} options
234
+ * @param {number} source_length
235
+ * @returns {any}
236
+ */
237
+ beginOpen(options, source_length) {
238
+ try {
239
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
240
+ wasm.wasmruntime_beginOpen(retptr, this.__wbg_ptr, addHeapObject(options), source_length);
241
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
242
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
243
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
244
+ if (r2) {
245
+ throw takeObject(r1);
246
+ }
247
+ return takeObject(r0);
248
+ } finally {
249
+ wasm.__wbindgen_add_to_stack_pointer(16);
250
+ }
251
+ }
252
+ /**
253
+ * Reads a logical display-string batch and completes synchronously.
254
+ * @param {number} table_handle
255
+ * @param {any} request
256
+ * @returns {any}
257
+ */
258
+ beginRead(table_handle, request) {
259
+ try {
260
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
261
+ wasm.wasmruntime_beginRead(retptr, this.__wbg_ptr, table_handle, addHeapObject(request));
262
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
263
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
264
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
265
+ if (r2) {
266
+ throw takeObject(r1);
267
+ }
268
+ return takeObject(r0);
269
+ } finally {
270
+ wasm.__wbindgen_add_to_stack_pointer(16);
271
+ }
272
+ }
273
+ /**
274
+ * Opens one logical worksheet table.
275
+ * @param {number} source_handle
276
+ * @param {string} table_id
277
+ * @returns {any}
278
+ */
279
+ openTable(source_handle, table_id) {
280
+ try {
281
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
282
+ const ptr0 = passStringToWasm0(table_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
283
+ const len0 = WASM_VECTOR_LEN;
284
+ wasm.wasmruntime_openTable(retptr, this.__wbg_ptr, source_handle, ptr0, len0);
285
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
286
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
287
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
288
+ if (r2) {
289
+ throw takeObject(r1);
290
+ }
291
+ return takeObject(r0);
292
+ } finally {
293
+ wasm.__wbindgen_add_to_stack_pointer(16);
294
+ }
295
+ }
296
+ /**
297
+ * Idempotently closes one worksheet.
298
+ * @param {number} table_handle
299
+ * @returns {boolean}
300
+ */
301
+ closeTable(table_handle) {
302
+ const ret = wasm.wasmruntime_closeTable(this.__wbg_ptr, table_handle);
303
+ return ret !== 0;
304
+ }
305
+ /**
306
+ * Idempotently closes a workbook and every child worksheet.
307
+ * @param {number} source_handle
308
+ * @returns {boolean}
309
+ */
310
+ closeSource(source_handle) {
311
+ const ret = wasm.wasmruntime_closeSource(this.__wbg_ptr, source_handle);
312
+ return ret !== 0;
313
+ }
314
+ /**
315
+ * Returns the worksheet's static presentation envelope.
316
+ * @param {number} table_handle
317
+ * @returns {any}
318
+ */
319
+ presentation(table_handle) {
320
+ try {
321
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
322
+ wasm.wasmruntime_presentation(retptr, this.__wbg_ptr, table_handle);
323
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
324
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
325
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
326
+ if (r2) {
327
+ throw takeObject(r1);
328
+ }
329
+ return takeObject(r0);
330
+ } finally {
331
+ wasm.__wbindgen_add_to_stack_pointer(16);
332
+ }
333
+ }
334
+ /**
335
+ * Cancels and releases a pending staged open.
336
+ * @param {number} operation_handle
337
+ * @returns {boolean}
338
+ */
339
+ cancelOperation(operation_handle) {
340
+ const ret = wasm.wasmruntime_cancelOperation(this.__wbg_ptr, operation_handle);
341
+ return ret !== 0;
342
+ }
343
+ /**
344
+ * Returns the Worker protocol version.
345
+ * @returns {number}
346
+ */
347
+ protocolVersion() {
348
+ const ret = wasm.wasmruntime_protocolVersion(this.__wbg_ptr);
349
+ return ret >>> 0;
350
+ }
351
+ /**
352
+ * Supplies the one requested staged source and completes the open.
353
+ * @param {number} operation_handle
354
+ * @param {number} absolute_offset
355
+ * @param {Uint8Array} bytes
356
+ * @param {boolean} eof
357
+ * @returns {any}
358
+ */
359
+ continueOperation(operation_handle, absolute_offset, bytes, eof) {
360
+ try {
361
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
362
+ wasm.wasmruntime_continueOperation(retptr, this.__wbg_ptr, operation_handle, absolute_offset, addHeapObject(bytes), eof);
363
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
364
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
365
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
366
+ if (r2) {
367
+ throw takeObject(r1);
368
+ }
369
+ return takeObject(r0);
370
+ } finally {
371
+ wasm.__wbindgen_add_to_stack_pointer(16);
372
+ }
373
+ }
374
+ /**
375
+ * Returns the official adapter ABI version.
376
+ * @returns {number}
377
+ */
378
+ adapterApiVersion() {
379
+ const ret = wasm.wasmruntime_adapterApiVersion(this.__wbg_ptr);
380
+ return ret >>> 0;
381
+ }
382
+ /**
383
+ * Returns common typed-buffer layout version one.
384
+ * @returns {number}
385
+ */
386
+ batchLayoutVersion() {
387
+ const ret = wasm.wasmruntime_batchLayoutVersion(this.__wbg_ptr);
388
+ return ret >>> 0;
389
+ }
390
+ /**
391
+ * Returns a range-aligned static style, merge, and sparse layout grid.
392
+ * @param {number} table_handle
393
+ * @param {any} request
394
+ * @returns {any}
395
+ */
396
+ readPresentationRange(table_handle, request) {
397
+ try {
398
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
399
+ wasm.wasmruntime_readPresentationRange(retptr, this.__wbg_ptr, table_handle, addHeapObject(request));
400
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
401
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
402
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
403
+ if (r2) {
404
+ throw takeObject(r1);
405
+ }
406
+ return takeObject(r0);
407
+ } finally {
408
+ wasm.__wbindgen_add_to_stack_pointer(16);
409
+ }
410
+ }
411
+ /**
412
+ * Creates an empty staged Excel adapter runtime.
413
+ * @param {any} config
414
+ */
415
+ constructor(config) {
416
+ try {
417
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
418
+ wasm.wasmruntime_new(retptr, addHeapObject(config));
419
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
420
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
421
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
422
+ if (r2) {
423
+ throw takeObject(r1);
424
+ }
425
+ this.__wbg_ptr = r0 >>> 0;
426
+ WasmRuntimeFinalization.register(this, this.__wbg_ptr, this);
427
+ return this;
428
+ } finally {
429
+ wasm.__wbindgen_add_to_stack_pointer(16);
430
+ }
431
+ }
432
+ /**
433
+ * Returns the exact metadata for an opened worksheet.
434
+ * @param {number} table_handle
435
+ * @returns {any}
436
+ */
437
+ metadata(table_handle) {
438
+ try {
439
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
440
+ wasm.wasmruntime_metadata(retptr, this.__wbg_ptr, table_handle);
441
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
442
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
443
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
444
+ if (r2) {
445
+ throw takeObject(r1);
446
+ }
447
+ return takeObject(r0);
448
+ } finally {
449
+ wasm.__wbindgen_add_to_stack_pointer(16);
450
+ }
451
+ }
452
+ /**
453
+ * Releases every pending operation, source, and table.
454
+ */
455
+ shutdown() {
456
+ wasm.wasmruntime_shutdown(this.__wbg_ptr);
457
+ }
458
+ }
459
+
460
+ async function __wbg_load(module, imports) {
461
+ if (typeof Response === 'function' && module instanceof Response) {
462
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
463
+ try {
464
+ return await WebAssembly.instantiateStreaming(module, imports);
465
+
466
+ } catch (e) {
467
+ if (module.headers.get('Content-Type') != 'application/wasm') {
468
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
469
+
470
+ } else {
471
+ throw e;
472
+ }
473
+ }
474
+ }
475
+
476
+ const bytes = await module.arrayBuffer();
477
+ return await WebAssembly.instantiate(bytes, imports);
478
+
479
+ } else {
480
+ const instance = await WebAssembly.instantiate(module, imports);
481
+
482
+ if (instance instanceof WebAssembly.Instance) {
483
+ return { instance, module };
484
+
485
+ } else {
486
+ return instance;
487
+ }
488
+ }
489
+ }
490
+
491
+ function __wbg_get_imports() {
492
+ const imports = {};
493
+ imports.wbg = {};
494
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
495
+ const ret = String(getObject(arg1));
496
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
497
+ const len1 = WASM_VECTOR_LEN;
498
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
499
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
500
+ };
501
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
502
+ const ret = getObject(arg0).buffer;
503
+ return addHeapObject(ret);
504
+ };
505
+ imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
506
+ const ret = Object.entries(getObject(arg0));
507
+ return addHeapObject(ret);
508
+ };
509
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
510
+ const ret = getObject(arg0)[arg1 >>> 0];
511
+ return addHeapObject(ret);
512
+ };
513
+ imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
514
+ const ret = getObject(arg0)[getObject(arg1)];
515
+ return addHeapObject(ret);
516
+ };
517
+ imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
518
+ let result;
519
+ try {
520
+ result = getObject(arg0) instanceof ArrayBuffer;
521
+ } catch (_) {
522
+ result = false;
523
+ }
524
+ const ret = result;
525
+ return ret;
526
+ };
527
+ imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
528
+ let result;
529
+ try {
530
+ result = getObject(arg0) instanceof Uint8Array;
531
+ } catch (_) {
532
+ result = false;
533
+ }
534
+ const ret = result;
535
+ return ret;
536
+ };
537
+ imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
538
+ const ret = Number.isSafeInteger(getObject(arg0));
539
+ return ret;
540
+ };
541
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
542
+ const ret = getObject(arg0).length;
543
+ return ret;
544
+ };
545
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
546
+ const ret = getObject(arg0).length;
547
+ return ret;
548
+ };
549
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
550
+ const ret = new Object();
551
+ return addHeapObject(ret);
552
+ };
553
+ imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
554
+ const ret = new Map();
555
+ return addHeapObject(ret);
556
+ };
557
+ imports.wbg.__wbg_new_78feb108b6472713 = function() {
558
+ const ret = new Array();
559
+ return addHeapObject(ret);
560
+ };
561
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
562
+ const ret = new Uint8Array(getObject(arg0));
563
+ return addHeapObject(ret);
564
+ };
565
+ imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
566
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
567
+ return addHeapObject(ret);
568
+ };
569
+ imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
570
+ const ret = getObject(arg0).push(getObject(arg1));
571
+ return ret;
572
+ };
573
+ imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
574
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
575
+ };
576
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
577
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
578
+ };
579
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
580
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
581
+ };
582
+ imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
583
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
584
+ return addHeapObject(ret);
585
+ };
586
+ imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
587
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
588
+ return ret;
589
+ }, arguments) };
590
+ imports.wbg.__wbindgen_as_number = function(arg0) {
591
+ const ret = +getObject(arg0);
592
+ return ret;
593
+ };
594
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
595
+ const ret = arg0;
596
+ return addHeapObject(ret);
597
+ };
598
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
599
+ const ret = BigInt.asUintN(64, arg0);
600
+ return addHeapObject(ret);
601
+ };
602
+ imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
603
+ const v = getObject(arg1);
604
+ const ret = typeof(v) === 'bigint' ? v : undefined;
605
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
606
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
607
+ };
608
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
609
+ const v = getObject(arg0);
610
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
611
+ return ret;
612
+ };
613
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
614
+ const ret = debugString(getObject(arg1));
615
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
616
+ const len1 = WASM_VECTOR_LEN;
617
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
618
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
619
+ };
620
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
621
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
622
+ return addHeapObject(ret);
623
+ };
624
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
625
+ const ret = getObject(arg0) in getObject(arg1);
626
+ return ret;
627
+ };
628
+ imports.wbg.__wbindgen_is_bigint = function(arg0) {
629
+ const ret = typeof(getObject(arg0)) === 'bigint';
630
+ return ret;
631
+ };
632
+ imports.wbg.__wbindgen_is_null = function(arg0) {
633
+ const ret = getObject(arg0) === null;
634
+ return ret;
635
+ };
636
+ imports.wbg.__wbindgen_is_object = function(arg0) {
637
+ const val = getObject(arg0);
638
+ const ret = typeof(val) === 'object' && val !== null;
639
+ return ret;
640
+ };
641
+ imports.wbg.__wbindgen_is_string = function(arg0) {
642
+ const ret = typeof(getObject(arg0)) === 'string';
643
+ return ret;
644
+ };
645
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
646
+ const ret = getObject(arg0) === undefined;
647
+ return ret;
648
+ };
649
+ imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
650
+ const ret = getObject(arg0) === getObject(arg1);
651
+ return ret;
652
+ };
653
+ imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
654
+ const ret = getObject(arg0) == getObject(arg1);
655
+ return ret;
656
+ };
657
+ imports.wbg.__wbindgen_memory = function() {
658
+ const ret = wasm.memory;
659
+ return addHeapObject(ret);
660
+ };
661
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
662
+ const obj = getObject(arg1);
663
+ const ret = typeof(obj) === 'number' ? obj : undefined;
664
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
665
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
666
+ };
667
+ imports.wbg.__wbindgen_number_new = function(arg0) {
668
+ const ret = arg0;
669
+ return addHeapObject(ret);
670
+ };
671
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
672
+ const ret = getObject(arg0);
673
+ return addHeapObject(ret);
674
+ };
675
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
676
+ takeObject(arg0);
677
+ };
678
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
679
+ const obj = getObject(arg1);
680
+ const ret = typeof(obj) === 'string' ? obj : undefined;
681
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
682
+ var len1 = WASM_VECTOR_LEN;
683
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
684
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
685
+ };
686
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
687
+ const ret = getStringFromWasm0(arg0, arg1);
688
+ return addHeapObject(ret);
689
+ };
690
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
691
+ throw new Error(getStringFromWasm0(arg0, arg1));
692
+ };
693
+
694
+ return imports;
695
+ }
696
+
697
+ function __wbg_init_memory(imports, memory) {
698
+
699
+ }
700
+
701
+ function __wbg_finalize_init(instance, module) {
702
+ wasm = instance.exports;
703
+ __wbg_init.__wbindgen_wasm_module = module;
704
+ cachedDataViewMemory0 = null;
705
+ cachedUint8ArrayMemory0 = null;
706
+
707
+
708
+
709
+ return wasm;
710
+ }
711
+
712
+ function initSync(module) {
713
+ if (wasm !== undefined) return wasm;
714
+
715
+
716
+ if (typeof module !== 'undefined') {
717
+ if (Object.getPrototypeOf(module) === Object.prototype) {
718
+ ({module} = module)
719
+ } else {
720
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
721
+ }
722
+ }
723
+
724
+ const imports = __wbg_get_imports();
725
+
726
+ __wbg_init_memory(imports);
727
+
728
+ if (!(module instanceof WebAssembly.Module)) {
729
+ module = new WebAssembly.Module(module);
730
+ }
731
+
732
+ const instance = new WebAssembly.Instance(module, imports);
733
+
734
+ return __wbg_finalize_init(instance, module);
735
+ }
736
+
737
+ async function __wbg_init(module_or_path) {
738
+ if (wasm !== undefined) return wasm;
739
+
740
+
741
+ if (typeof module_or_path !== 'undefined') {
742
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
743
+ ({module_or_path} = module_or_path)
744
+ } else {
745
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
746
+ }
747
+ }
748
+
749
+ if (typeof module_or_path === 'undefined') {
750
+ module_or_path = new URL('tabulark_excel_bg.wasm', import.meta.url);
751
+ }
752
+ const imports = __wbg_get_imports();
753
+
754
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
755
+ module_or_path = fetch(module_or_path);
756
+ }
757
+
758
+ __wbg_init_memory(imports);
759
+
760
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
761
+
762
+ return __wbg_finalize_init(instance, module);
763
+ }
764
+
765
+ export { initSync };
766
+ export default __wbg_init;