isar_plus 1.0.28 → 1.1.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/isar.js +972 -0
- package/isar.wasm +0 -0
- package/package.json +3 -2
package/isar.js
ADDED
|
@@ -0,0 +1,972 @@
|
|
|
1
|
+
window.wasm_bindgen = undefined;
|
|
2
|
+
(function() {
|
|
3
|
+
const __exports = {};
|
|
4
|
+
let script_src;
|
|
5
|
+
if (typeof document !== 'undefined' && document.currentScript !== null) {
|
|
6
|
+
script_src = new URL(document.currentScript.src, location.href).toString();
|
|
7
|
+
}
|
|
8
|
+
let wasm = undefined;
|
|
9
|
+
|
|
10
|
+
let heap = new Array(128).fill(undefined);
|
|
11
|
+
|
|
12
|
+
heap.push(undefined, null, true, false);
|
|
13
|
+
|
|
14
|
+
function getObject(idx) { return heap[idx]; }
|
|
15
|
+
|
|
16
|
+
let heap_next = heap.length;
|
|
17
|
+
|
|
18
|
+
function addHeapObject(obj) {
|
|
19
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
20
|
+
const idx = heap_next;
|
|
21
|
+
heap_next = heap[idx];
|
|
22
|
+
|
|
23
|
+
heap[idx] = obj;
|
|
24
|
+
return idx;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function handleError(f, args) {
|
|
28
|
+
try {
|
|
29
|
+
return f.apply(this, args);
|
|
30
|
+
} catch (e) {
|
|
31
|
+
wasm.__wbindgen_export_0(addHeapObject(e));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
let cachedUint8ArrayMemory0 = null;
|
|
36
|
+
|
|
37
|
+
function getUint8ArrayMemory0() {
|
|
38
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
39
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
40
|
+
}
|
|
41
|
+
return cachedUint8ArrayMemory0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
45
|
+
|
|
46
|
+
cachedTextDecoder.decode();
|
|
47
|
+
|
|
48
|
+
function decodeText(ptr, len) {
|
|
49
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function getStringFromWasm0(ptr, len) {
|
|
53
|
+
ptr = ptr >>> 0;
|
|
54
|
+
return decodeText(ptr, len);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function isLikeNone(x) {
|
|
58
|
+
return x === undefined || x === null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
let WASM_VECTOR_LEN = 0;
|
|
62
|
+
|
|
63
|
+
const cachedTextEncoder = new TextEncoder();
|
|
64
|
+
|
|
65
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
66
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
67
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
68
|
+
view.set(buf);
|
|
69
|
+
return {
|
|
70
|
+
read: arg.length,
|
|
71
|
+
written: buf.length
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
77
|
+
|
|
78
|
+
if (realloc === undefined) {
|
|
79
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
80
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
81
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
82
|
+
WASM_VECTOR_LEN = buf.length;
|
|
83
|
+
return ptr;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
let len = arg.length;
|
|
87
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
88
|
+
|
|
89
|
+
const mem = getUint8ArrayMemory0();
|
|
90
|
+
|
|
91
|
+
let offset = 0;
|
|
92
|
+
|
|
93
|
+
for (; offset < len; offset++) {
|
|
94
|
+
const code = arg.charCodeAt(offset);
|
|
95
|
+
if (code > 0x7F) break;
|
|
96
|
+
mem[ptr + offset] = code;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (offset !== len) {
|
|
100
|
+
if (offset !== 0) {
|
|
101
|
+
arg = arg.slice(offset);
|
|
102
|
+
}
|
|
103
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
104
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
105
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
106
|
+
|
|
107
|
+
offset += ret.written;
|
|
108
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
WASM_VECTOR_LEN = offset;
|
|
112
|
+
return ptr;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
let cachedDataViewMemory0 = null;
|
|
116
|
+
|
|
117
|
+
function getDataViewMemory0() {
|
|
118
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
119
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
120
|
+
}
|
|
121
|
+
return cachedDataViewMemory0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
125
|
+
ptr = ptr >>> 0;
|
|
126
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function debugString(val) {
|
|
130
|
+
// primitive types
|
|
131
|
+
const type = typeof val;
|
|
132
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
133
|
+
return `${val}`;
|
|
134
|
+
}
|
|
135
|
+
if (type == 'string') {
|
|
136
|
+
return `"${val}"`;
|
|
137
|
+
}
|
|
138
|
+
if (type == 'symbol') {
|
|
139
|
+
const description = val.description;
|
|
140
|
+
if (description == null) {
|
|
141
|
+
return 'Symbol';
|
|
142
|
+
} else {
|
|
143
|
+
return `Symbol(${description})`;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
if (type == 'function') {
|
|
147
|
+
const name = val.name;
|
|
148
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
149
|
+
return `Function(${name})`;
|
|
150
|
+
} else {
|
|
151
|
+
return 'Function';
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
// objects
|
|
155
|
+
if (Array.isArray(val)) {
|
|
156
|
+
const length = val.length;
|
|
157
|
+
let debug = '[';
|
|
158
|
+
if (length > 0) {
|
|
159
|
+
debug += debugString(val[0]);
|
|
160
|
+
}
|
|
161
|
+
for(let i = 1; i < length; i++) {
|
|
162
|
+
debug += ', ' + debugString(val[i]);
|
|
163
|
+
}
|
|
164
|
+
debug += ']';
|
|
165
|
+
return debug;
|
|
166
|
+
}
|
|
167
|
+
// Test for built-in
|
|
168
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
169
|
+
let className;
|
|
170
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
171
|
+
className = builtInMatches[1];
|
|
172
|
+
} else {
|
|
173
|
+
// Failed to match the standard '[object ClassName]'
|
|
174
|
+
return toString.call(val);
|
|
175
|
+
}
|
|
176
|
+
if (className == 'Object') {
|
|
177
|
+
// we're a user defined class or Object
|
|
178
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
179
|
+
// easier than looping through ownProperties of `val`.
|
|
180
|
+
try {
|
|
181
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
182
|
+
} catch (_) {
|
|
183
|
+
return 'Object';
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
// errors
|
|
187
|
+
if (val instanceof Error) {
|
|
188
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
189
|
+
}
|
|
190
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
191
|
+
return className;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
195
|
+
? { register: () => {}, unregister: () => {} }
|
|
196
|
+
: new FinalizationRegistry(
|
|
197
|
+
state => {
|
|
198
|
+
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b);
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
203
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
204
|
+
const real = (...args) => {
|
|
205
|
+
|
|
206
|
+
// First up with a closure we increment the internal reference
|
|
207
|
+
// count. This ensures that the Rust closure environment won't
|
|
208
|
+
// be deallocated while we're invoking it.
|
|
209
|
+
state.cnt++;
|
|
210
|
+
const a = state.a;
|
|
211
|
+
state.a = 0;
|
|
212
|
+
try {
|
|
213
|
+
return f(a, state.b, ...args);
|
|
214
|
+
} finally {
|
|
215
|
+
if (--state.cnt === 0) {
|
|
216
|
+
wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
|
|
217
|
+
CLOSURE_DTORS.unregister(state);
|
|
218
|
+
} else {
|
|
219
|
+
state.a = a;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
real.original = state;
|
|
224
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
225
|
+
return real;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
function dropObject(idx) {
|
|
229
|
+
if (idx < 132) return;
|
|
230
|
+
heap[idx] = heap_next;
|
|
231
|
+
heap_next = idx;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function takeObject(idx) {
|
|
235
|
+
const ret = getObject(idx);
|
|
236
|
+
dropObject(idx);
|
|
237
|
+
return ret;
|
|
238
|
+
}
|
|
239
|
+
function __wbg_adapter_6(arg0, arg1, arg2) {
|
|
240
|
+
wasm.__wbindgen_export_4(arg0, arg1, addHeapObject(arg2));
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
function __wbg_adapter_9(arg0, arg1) {
|
|
244
|
+
wasm.__wbindgen_export_5(arg0, arg1);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function __wbg_adapter_16(arg0, arg1, arg2) {
|
|
248
|
+
try {
|
|
249
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
250
|
+
wasm.__wbindgen_export_6(retptr, arg0, arg1, addHeapObject(arg2));
|
|
251
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
252
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
253
|
+
if (r1) {
|
|
254
|
+
throw takeObject(r0);
|
|
255
|
+
}
|
|
256
|
+
} finally {
|
|
257
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const __wbindgen_enum_IdbRequestReadyState = ["pending", "done"];
|
|
262
|
+
|
|
263
|
+
const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
|
264
|
+
|
|
265
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
266
|
+
|
|
267
|
+
async function __wbg_load(module, imports) {
|
|
268
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
269
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
270
|
+
try {
|
|
271
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
272
|
+
|
|
273
|
+
} catch (e) {
|
|
274
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
275
|
+
|
|
276
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
277
|
+
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);
|
|
278
|
+
|
|
279
|
+
} else {
|
|
280
|
+
throw e;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
const bytes = await module.arrayBuffer();
|
|
286
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
287
|
+
|
|
288
|
+
} else {
|
|
289
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
290
|
+
|
|
291
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
292
|
+
return { instance, module };
|
|
293
|
+
|
|
294
|
+
} else {
|
|
295
|
+
return instance;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function __wbg_get_imports() {
|
|
301
|
+
const imports = {};
|
|
302
|
+
imports.wbg = {};
|
|
303
|
+
imports.wbg.__wbg_Window_41559019033ede94 = function(arg0) {
|
|
304
|
+
const ret = getObject(arg0).Window;
|
|
305
|
+
return addHeapObject(ret);
|
|
306
|
+
};
|
|
307
|
+
imports.wbg.__wbg_WorkerGlobalScope_d324bffbeaef9f3a = function(arg0) {
|
|
308
|
+
const ret = getObject(arg0).WorkerGlobalScope;
|
|
309
|
+
return addHeapObject(ret);
|
|
310
|
+
};
|
|
311
|
+
imports.wbg.__wbg_abort_48fad284f76f23cd = function() { return handleError(function (arg0) {
|
|
312
|
+
getObject(arg0).abort();
|
|
313
|
+
}, arguments) };
|
|
314
|
+
imports.wbg.__wbg_add_bd7fa428f539a577 = function(arg0, arg1) {
|
|
315
|
+
const ret = getObject(arg0).add(getObject(arg1));
|
|
316
|
+
return addHeapObject(ret);
|
|
317
|
+
};
|
|
318
|
+
imports.wbg.__wbg_bound_99d0883606949696 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
319
|
+
const ret = IDBKeyRange.bound(getObject(arg0), getObject(arg1), arg2 !== 0, arg3 !== 0);
|
|
320
|
+
return addHeapObject(ret);
|
|
321
|
+
}, arguments) };
|
|
322
|
+
imports.wbg.__wbg_buffer_8d40b1d762fb3c66 = function(arg0) {
|
|
323
|
+
const ret = getObject(arg0).buffer;
|
|
324
|
+
return addHeapObject(ret);
|
|
325
|
+
};
|
|
326
|
+
imports.wbg.__wbg_byteLength_331a6b5545834024 = function(arg0) {
|
|
327
|
+
const ret = getObject(arg0).byteLength;
|
|
328
|
+
return ret;
|
|
329
|
+
};
|
|
330
|
+
imports.wbg.__wbg_byteOffset_49a5b5608000358b = function(arg0) {
|
|
331
|
+
const ret = getObject(arg0).byteOffset;
|
|
332
|
+
return ret;
|
|
333
|
+
};
|
|
334
|
+
imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
|
|
335
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
336
|
+
return addHeapObject(ret);
|
|
337
|
+
}, arguments) };
|
|
338
|
+
imports.wbg.__wbg_clear_cb0b847e7ab689c8 = function() { return handleError(function (arg0) {
|
|
339
|
+
const ret = getObject(arg0).clear();
|
|
340
|
+
return addHeapObject(ret);
|
|
341
|
+
}, arguments) };
|
|
342
|
+
imports.wbg.__wbg_commit_a54edce65f3858f2 = function() { return handleError(function (arg0) {
|
|
343
|
+
getObject(arg0).commit();
|
|
344
|
+
}, arguments) };
|
|
345
|
+
imports.wbg.__wbg_createObjectStore_2112aa8eea18ea9d = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
346
|
+
const ret = getObject(arg0).createObjectStore(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
347
|
+
return addHeapObject(ret);
|
|
348
|
+
}, arguments) };
|
|
349
|
+
imports.wbg.__wbg_createSyncAccessHandle_d06aab2e41a339b2 = function(arg0) {
|
|
350
|
+
const ret = getObject(arg0).createSyncAccessHandle();
|
|
351
|
+
return addHeapObject(ret);
|
|
352
|
+
};
|
|
353
|
+
imports.wbg.__wbg_delete_33e805b6d49fa644 = function() { return handleError(function (arg0, arg1) {
|
|
354
|
+
const ret = getObject(arg0).delete(getObject(arg1));
|
|
355
|
+
return addHeapObject(ret);
|
|
356
|
+
}, arguments) };
|
|
357
|
+
imports.wbg.__wbg_delete_34b4d9b89634f0c0 = function(arg0, arg1) {
|
|
358
|
+
const ret = getObject(arg0).delete(getObject(arg1));
|
|
359
|
+
return ret;
|
|
360
|
+
};
|
|
361
|
+
imports.wbg.__wbg_delete_ded22f5899363180 = function(arg0, arg1) {
|
|
362
|
+
const ret = getObject(arg0).delete(getObject(arg1));
|
|
363
|
+
return ret;
|
|
364
|
+
};
|
|
365
|
+
imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
|
|
366
|
+
const ret = getObject(arg0).done;
|
|
367
|
+
return ret;
|
|
368
|
+
};
|
|
369
|
+
imports.wbg.__wbg_entries_1a3c3b9544532397 = function(arg0) {
|
|
370
|
+
const ret = getObject(arg0).entries();
|
|
371
|
+
return addHeapObject(ret);
|
|
372
|
+
};
|
|
373
|
+
imports.wbg.__wbg_error_118f1b830b6ccf22 = function() { return handleError(function (arg0) {
|
|
374
|
+
const ret = getObject(arg0).error;
|
|
375
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
376
|
+
}, arguments) };
|
|
377
|
+
imports.wbg.__wbg_fill_c8751cf67b766c70 = function(arg0, arg1, arg2, arg3) {
|
|
378
|
+
const ret = getObject(arg0).fill(arg1, arg2 >>> 0, arg3 >>> 0);
|
|
379
|
+
return addHeapObject(ret);
|
|
380
|
+
};
|
|
381
|
+
imports.wbg.__wbg_flush_d2487a24f3bc3cf4 = function() { return handleError(function (arg0) {
|
|
382
|
+
getObject(arg0).flush();
|
|
383
|
+
}, arguments) };
|
|
384
|
+
imports.wbg.__wbg_from_88bc52ce20ba6318 = function(arg0) {
|
|
385
|
+
const ret = Array.from(getObject(arg0));
|
|
386
|
+
return addHeapObject(ret);
|
|
387
|
+
};
|
|
388
|
+
imports.wbg.__wbg_getAll_2783028eb1814671 = function() { return handleError(function (arg0) {
|
|
389
|
+
const ret = getObject(arg0).getAll();
|
|
390
|
+
return addHeapObject(ret);
|
|
391
|
+
}, arguments) };
|
|
392
|
+
imports.wbg.__wbg_getAll_ff5bd24743b1031a = function() { return handleError(function (arg0, arg1) {
|
|
393
|
+
const ret = getObject(arg0).getAll(getObject(arg1));
|
|
394
|
+
return addHeapObject(ret);
|
|
395
|
+
}, arguments) };
|
|
396
|
+
imports.wbg.__wbg_getDate_9615e288fc892247 = function(arg0) {
|
|
397
|
+
const ret = getObject(arg0).getDate();
|
|
398
|
+
return ret;
|
|
399
|
+
};
|
|
400
|
+
imports.wbg.__wbg_getDay_c9c4f57fb4ef6fef = function(arg0) {
|
|
401
|
+
const ret = getObject(arg0).getDay();
|
|
402
|
+
return ret;
|
|
403
|
+
};
|
|
404
|
+
imports.wbg.__wbg_getDirectoryHandle_0fb26677897f1e21 = function(arg0, arg1, arg2, arg3) {
|
|
405
|
+
const ret = getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
406
|
+
return addHeapObject(ret);
|
|
407
|
+
};
|
|
408
|
+
imports.wbg.__wbg_getDirectory_8564f4b4ae7ee35c = function(arg0) {
|
|
409
|
+
const ret = getObject(arg0).getDirectory();
|
|
410
|
+
return addHeapObject(ret);
|
|
411
|
+
};
|
|
412
|
+
imports.wbg.__wbg_getFileHandle_9f23d09c2497fa5f = function(arg0, arg1, arg2, arg3) {
|
|
413
|
+
const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
414
|
+
return addHeapObject(ret);
|
|
415
|
+
};
|
|
416
|
+
imports.wbg.__wbg_getFullYear_e351a9fa7d2fab83 = function(arg0) {
|
|
417
|
+
const ret = getObject(arg0).getFullYear();
|
|
418
|
+
return ret;
|
|
419
|
+
};
|
|
420
|
+
imports.wbg.__wbg_getHours_4cc14de357c9e723 = function(arg0) {
|
|
421
|
+
const ret = getObject(arg0).getHours();
|
|
422
|
+
return ret;
|
|
423
|
+
};
|
|
424
|
+
imports.wbg.__wbg_getMinutes_6cde8fdd08b0c2ec = function(arg0) {
|
|
425
|
+
const ret = getObject(arg0).getMinutes();
|
|
426
|
+
return ret;
|
|
427
|
+
};
|
|
428
|
+
imports.wbg.__wbg_getMonth_8cc234bce5c8bcac = function(arg0) {
|
|
429
|
+
const ret = getObject(arg0).getMonth();
|
|
430
|
+
return ret;
|
|
431
|
+
};
|
|
432
|
+
imports.wbg.__wbg_getSeconds_c2f02452d804ece0 = function(arg0) {
|
|
433
|
+
const ret = getObject(arg0).getSeconds();
|
|
434
|
+
return ret;
|
|
435
|
+
};
|
|
436
|
+
imports.wbg.__wbg_getSize_56a06761973a6cd7 = function() { return handleError(function (arg0) {
|
|
437
|
+
const ret = getObject(arg0).getSize();
|
|
438
|
+
return ret;
|
|
439
|
+
}, arguments) };
|
|
440
|
+
imports.wbg.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
|
|
441
|
+
const ret = getObject(arg0).getTime();
|
|
442
|
+
return ret;
|
|
443
|
+
};
|
|
444
|
+
imports.wbg.__wbg_getTimezoneOffset_1e3ddc1382e7c8b0 = function(arg0) {
|
|
445
|
+
const ret = getObject(arg0).getTimezoneOffset();
|
|
446
|
+
return ret;
|
|
447
|
+
};
|
|
448
|
+
imports.wbg.__wbg_getUint32_2dc0ed17b0324774 = function(arg0, arg1) {
|
|
449
|
+
const ret = getObject(arg0).getUint32(arg1 >>> 0);
|
|
450
|
+
return ret;
|
|
451
|
+
};
|
|
452
|
+
imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
|
|
453
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
454
|
+
return addHeapObject(ret);
|
|
455
|
+
};
|
|
456
|
+
imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
|
|
457
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
458
|
+
return addHeapObject(ret);
|
|
459
|
+
}, arguments) };
|
|
460
|
+
imports.wbg.__wbg_get_5ee3191755594360 = function(arg0, arg1) {
|
|
461
|
+
const ret = getObject(arg0).get(getObject(arg1));
|
|
462
|
+
return addHeapObject(ret);
|
|
463
|
+
};
|
|
464
|
+
imports.wbg.__wbg_getindex_61bb13d19869849b = function(arg0, arg1) {
|
|
465
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
466
|
+
return ret;
|
|
467
|
+
};
|
|
468
|
+
imports.wbg.__wbg_global_f5c2926e57ba457f = function(arg0) {
|
|
469
|
+
const ret = getObject(arg0).global;
|
|
470
|
+
return addHeapObject(ret);
|
|
471
|
+
};
|
|
472
|
+
imports.wbg.__wbg_has_6a9bff5f4208cfca = function(arg0, arg1) {
|
|
473
|
+
const ret = getObject(arg0).has(getObject(arg1));
|
|
474
|
+
return ret;
|
|
475
|
+
};
|
|
476
|
+
imports.wbg.__wbg_indexedDB_003e3d885edf75fc = function() { return handleError(function (arg0) {
|
|
477
|
+
const ret = getObject(arg0).indexedDB;
|
|
478
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
479
|
+
}, arguments) };
|
|
480
|
+
imports.wbg.__wbg_indexedDB_1956995e4297311c = function() { return handleError(function (arg0) {
|
|
481
|
+
const ret = getObject(arg0).indexedDB;
|
|
482
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
483
|
+
}, arguments) };
|
|
484
|
+
imports.wbg.__wbg_indexedDB_54f01430b1e194e8 = function() { return handleError(function (arg0) {
|
|
485
|
+
const ret = getObject(arg0).indexedDB;
|
|
486
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
487
|
+
}, arguments) };
|
|
488
|
+
imports.wbg.__wbg_instanceof_DomException_bd63c2a0e0b53ed5 = function(arg0) {
|
|
489
|
+
let result;
|
|
490
|
+
try {
|
|
491
|
+
result = getObject(arg0) instanceof DOMException;
|
|
492
|
+
} catch (_) {
|
|
493
|
+
result = false;
|
|
494
|
+
}
|
|
495
|
+
const ret = result;
|
|
496
|
+
return ret;
|
|
497
|
+
};
|
|
498
|
+
imports.wbg.__wbg_instanceof_Error_76149ae9b431750e = function(arg0) {
|
|
499
|
+
let result;
|
|
500
|
+
try {
|
|
501
|
+
result = getObject(arg0) instanceof Error;
|
|
502
|
+
} catch (_) {
|
|
503
|
+
result = false;
|
|
504
|
+
}
|
|
505
|
+
const ret = result;
|
|
506
|
+
return ret;
|
|
507
|
+
};
|
|
508
|
+
imports.wbg.__wbg_instanceof_IdbDatabase_6e6efef94c4a355d = function(arg0) {
|
|
509
|
+
let result;
|
|
510
|
+
try {
|
|
511
|
+
result = getObject(arg0) instanceof IDBDatabase;
|
|
512
|
+
} catch (_) {
|
|
513
|
+
result = false;
|
|
514
|
+
}
|
|
515
|
+
const ret = result;
|
|
516
|
+
return ret;
|
|
517
|
+
};
|
|
518
|
+
imports.wbg.__wbg_instanceof_IdbRequest_a4a68ff63181a915 = function(arg0) {
|
|
519
|
+
let result;
|
|
520
|
+
try {
|
|
521
|
+
result = getObject(arg0) instanceof IDBRequest;
|
|
522
|
+
} catch (_) {
|
|
523
|
+
result = false;
|
|
524
|
+
}
|
|
525
|
+
const ret = result;
|
|
526
|
+
return ret;
|
|
527
|
+
};
|
|
528
|
+
imports.wbg.__wbg_instanceof_WorkerGlobalScope_85d487cc157fd065 = function(arg0) {
|
|
529
|
+
let result;
|
|
530
|
+
try {
|
|
531
|
+
result = getObject(arg0) instanceof WorkerGlobalScope;
|
|
532
|
+
} catch (_) {
|
|
533
|
+
result = false;
|
|
534
|
+
}
|
|
535
|
+
const ret = result;
|
|
536
|
+
return ret;
|
|
537
|
+
};
|
|
538
|
+
imports.wbg.__wbg_isArray_030cce220591fb41 = function(arg0) {
|
|
539
|
+
const ret = Array.isArray(getObject(arg0));
|
|
540
|
+
return ret;
|
|
541
|
+
};
|
|
542
|
+
imports.wbg.__wbg_keys_200bc2675df61794 = function(arg0) {
|
|
543
|
+
const ret = getObject(arg0).keys();
|
|
544
|
+
return addHeapObject(ret);
|
|
545
|
+
};
|
|
546
|
+
imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) {
|
|
547
|
+
const ret = getObject(arg0).length;
|
|
548
|
+
return ret;
|
|
549
|
+
};
|
|
550
|
+
imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
551
|
+
const ret = getObject(arg0).length;
|
|
552
|
+
return ret;
|
|
553
|
+
};
|
|
554
|
+
imports.wbg.__wbg_length_9d771c54845e987f = function(arg0) {
|
|
555
|
+
const ret = getObject(arg0).length;
|
|
556
|
+
return ret;
|
|
557
|
+
};
|
|
558
|
+
imports.wbg.__wbg_lowerBound_5a50c0a9f6e7db91 = function() { return handleError(function (arg0, arg1) {
|
|
559
|
+
const ret = IDBKeyRange.lowerBound(getObject(arg0), arg1 !== 0);
|
|
560
|
+
return addHeapObject(ret);
|
|
561
|
+
}, arguments) };
|
|
562
|
+
imports.wbg.__wbg_message_125a1b2998b3552a = function(arg0) {
|
|
563
|
+
const ret = getObject(arg0).message;
|
|
564
|
+
return addHeapObject(ret);
|
|
565
|
+
};
|
|
566
|
+
imports.wbg.__wbg_message_5481231e71ccaf7b = function(arg0, arg1) {
|
|
567
|
+
const ret = getObject(arg1).message;
|
|
568
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
569
|
+
const len1 = WASM_VECTOR_LEN;
|
|
570
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
571
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
572
|
+
};
|
|
573
|
+
imports.wbg.__wbg_name_f75f535832c8ea6b = function(arg0, arg1) {
|
|
574
|
+
const ret = getObject(arg1).name;
|
|
575
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
576
|
+
const len1 = WASM_VECTOR_LEN;
|
|
577
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
578
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
579
|
+
};
|
|
580
|
+
imports.wbg.__wbg_navigator_bfaf1b0b0eb48da2 = function(arg0) {
|
|
581
|
+
const ret = getObject(arg0).navigator;
|
|
582
|
+
return addHeapObject(ret);
|
|
583
|
+
};
|
|
584
|
+
imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
|
|
585
|
+
const ret = new Date();
|
|
586
|
+
return addHeapObject(ret);
|
|
587
|
+
};
|
|
588
|
+
imports.wbg.__wbg_new_0dc86f3faa8a3b53 = function(arg0) {
|
|
589
|
+
const ret = new Set(getObject(arg0));
|
|
590
|
+
return addHeapObject(ret);
|
|
591
|
+
};
|
|
592
|
+
imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() {
|
|
593
|
+
const ret = new Object();
|
|
594
|
+
return addHeapObject(ret);
|
|
595
|
+
};
|
|
596
|
+
imports.wbg.__wbg_new_1f3a344cf3123716 = function() {
|
|
597
|
+
const ret = new Array();
|
|
598
|
+
return addHeapObject(ret);
|
|
599
|
+
};
|
|
600
|
+
imports.wbg.__wbg_new_2ff1f68f3676ea53 = function() {
|
|
601
|
+
const ret = new Map();
|
|
602
|
+
return addHeapObject(ret);
|
|
603
|
+
};
|
|
604
|
+
imports.wbg.__wbg_new_5a2ae4557f92b50e = function(arg0) {
|
|
605
|
+
const ret = new Date(getObject(arg0));
|
|
606
|
+
return addHeapObject(ret);
|
|
607
|
+
};
|
|
608
|
+
imports.wbg.__wbg_new_da9dc54c5db29dfa = function(arg0, arg1) {
|
|
609
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
610
|
+
return addHeapObject(ret);
|
|
611
|
+
};
|
|
612
|
+
imports.wbg.__wbg_new_f60d6f09990bdb99 = function(arg0, arg1, arg2) {
|
|
613
|
+
const ret = new DataView(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
614
|
+
return addHeapObject(ret);
|
|
615
|
+
};
|
|
616
|
+
imports.wbg.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
|
|
617
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
618
|
+
return addHeapObject(ret);
|
|
619
|
+
};
|
|
620
|
+
imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
|
|
621
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
622
|
+
return addHeapObject(ret);
|
|
623
|
+
};
|
|
624
|
+
imports.wbg.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
|
|
625
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
626
|
+
return addHeapObject(ret);
|
|
627
|
+
};
|
|
628
|
+
imports.wbg.__wbg_newwithyearmonthday_9d5466a369f2521d = function(arg0, arg1, arg2) {
|
|
629
|
+
const ret = new Date(arg0 >>> 0, arg1, arg2);
|
|
630
|
+
return addHeapObject(ret);
|
|
631
|
+
};
|
|
632
|
+
imports.wbg.__wbg_next_1142e1658f75ec63 = function() { return handleError(function (arg0) {
|
|
633
|
+
const ret = getObject(arg0).next();
|
|
634
|
+
return addHeapObject(ret);
|
|
635
|
+
}, arguments) };
|
|
636
|
+
imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
|
|
637
|
+
const ret = getObject(arg0).next();
|
|
638
|
+
return addHeapObject(ret);
|
|
639
|
+
}, arguments) };
|
|
640
|
+
imports.wbg.__wbg_objectStore_b2a5b80b2e5c5f8b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
641
|
+
const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
|
|
642
|
+
return addHeapObject(ret);
|
|
643
|
+
}, arguments) };
|
|
644
|
+
imports.wbg.__wbg_open_7281831ed8ff7bd2 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
645
|
+
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
646
|
+
return addHeapObject(ret);
|
|
647
|
+
}, arguments) };
|
|
648
|
+
imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
|
|
649
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
650
|
+
};
|
|
651
|
+
imports.wbg.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
|
|
652
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
653
|
+
return ret;
|
|
654
|
+
};
|
|
655
|
+
imports.wbg.__wbg_put_f777be76774b073e = function() { return handleError(function (arg0, arg1) {
|
|
656
|
+
const ret = getObject(arg0).put(getObject(arg1));
|
|
657
|
+
return addHeapObject(ret);
|
|
658
|
+
}, arguments) };
|
|
659
|
+
imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
|
|
660
|
+
queueMicrotask(getObject(arg0));
|
|
661
|
+
};
|
|
662
|
+
imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
|
|
663
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
664
|
+
return addHeapObject(ret);
|
|
665
|
+
};
|
|
666
|
+
imports.wbg.__wbg_random_7ed63a0b38ee3b75 = function() {
|
|
667
|
+
const ret = Math.random();
|
|
668
|
+
return ret;
|
|
669
|
+
};
|
|
670
|
+
imports.wbg.__wbg_read_a43bb46027f02ee9 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
671
|
+
const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
|
|
672
|
+
return ret;
|
|
673
|
+
}, arguments) };
|
|
674
|
+
imports.wbg.__wbg_read_e271e94623077591 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
675
|
+
const ret = getObject(arg0).read(getObject(arg1), getObject(arg2));
|
|
676
|
+
return ret;
|
|
677
|
+
}, arguments) };
|
|
678
|
+
imports.wbg.__wbg_readyState_a2853902a50c6d54 = function(arg0) {
|
|
679
|
+
const ret = getObject(arg0).readyState;
|
|
680
|
+
return (__wbindgen_enum_IdbRequestReadyState.indexOf(ret) + 1 || 3) - 1;
|
|
681
|
+
};
|
|
682
|
+
imports.wbg.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
|
|
683
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
684
|
+
return addHeapObject(ret);
|
|
685
|
+
};
|
|
686
|
+
imports.wbg.__wbg_result_825a6aeeb31189d2 = function() { return handleError(function (arg0) {
|
|
687
|
+
const ret = getObject(arg0).result;
|
|
688
|
+
return addHeapObject(ret);
|
|
689
|
+
}, arguments) };
|
|
690
|
+
imports.wbg.__wbg_setUint32_8a9564ae127df4c5 = function(arg0, arg1, arg2) {
|
|
691
|
+
getObject(arg0).setUint32(arg1 >>> 0, arg2 >>> 0);
|
|
692
|
+
};
|
|
693
|
+
imports.wbg.__wbg_set_1353b2a5e96bc48c = function(arg0, arg1, arg2) {
|
|
694
|
+
getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
|
|
695
|
+
};
|
|
696
|
+
imports.wbg.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
697
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
698
|
+
return ret;
|
|
699
|
+
}, arguments) };
|
|
700
|
+
imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
|
|
701
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
702
|
+
return addHeapObject(ret);
|
|
703
|
+
};
|
|
704
|
+
imports.wbg.__wbg_setat_f8fc70f546036b10 = function(arg0, arg1) {
|
|
705
|
+
getObject(arg0).at = arg1;
|
|
706
|
+
};
|
|
707
|
+
imports.wbg.__wbg_setcreate_1eb73f4ea713c1ad = function(arg0, arg1) {
|
|
708
|
+
getObject(arg0).create = arg1 !== 0;
|
|
709
|
+
};
|
|
710
|
+
imports.wbg.__wbg_setcreate_2d32aa4bbcd1d7af = function(arg0, arg1) {
|
|
711
|
+
getObject(arg0).create = arg1 !== 0;
|
|
712
|
+
};
|
|
713
|
+
imports.wbg.__wbg_setkeypath_3a5536ae3a5f612c = function(arg0, arg1) {
|
|
714
|
+
getObject(arg0).keyPath = getObject(arg1);
|
|
715
|
+
};
|
|
716
|
+
imports.wbg.__wbg_setonabort_4edac498cf4576fe = function(arg0, arg1) {
|
|
717
|
+
getObject(arg0).onabort = getObject(arg1);
|
|
718
|
+
};
|
|
719
|
+
imports.wbg.__wbg_setoncomplete_8a32ad2d1ca4f49b = function(arg0, arg1) {
|
|
720
|
+
getObject(arg0).oncomplete = getObject(arg1);
|
|
721
|
+
};
|
|
722
|
+
imports.wbg.__wbg_setonerror_4b0c685c365f600d = function(arg0, arg1) {
|
|
723
|
+
getObject(arg0).onerror = getObject(arg1);
|
|
724
|
+
};
|
|
725
|
+
imports.wbg.__wbg_setonerror_bcdbd7f3921ffb1f = function(arg0, arg1) {
|
|
726
|
+
getObject(arg0).onerror = getObject(arg1);
|
|
727
|
+
};
|
|
728
|
+
imports.wbg.__wbg_setonsuccess_ffb2ddb27ce681d8 = function(arg0, arg1) {
|
|
729
|
+
getObject(arg0).onsuccess = getObject(arg1);
|
|
730
|
+
};
|
|
731
|
+
imports.wbg.__wbg_setonupgradeneeded_4e32d1c6a08c4257 = function(arg0, arg1) {
|
|
732
|
+
getObject(arg0).onupgradeneeded = getObject(arg1);
|
|
733
|
+
};
|
|
734
|
+
imports.wbg.__wbg_size_af8602b0b838d49e = function(arg0) {
|
|
735
|
+
const ret = getObject(arg0).size;
|
|
736
|
+
return ret;
|
|
737
|
+
};
|
|
738
|
+
imports.wbg.__wbg_slice_974daea329f5c01d = function(arg0, arg1, arg2) {
|
|
739
|
+
const ret = getObject(arg0).slice(arg1 >>> 0, arg2 >>> 0);
|
|
740
|
+
return addHeapObject(ret);
|
|
741
|
+
};
|
|
742
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
|
|
743
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
744
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
745
|
+
};
|
|
746
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
|
|
747
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
748
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
749
|
+
};
|
|
750
|
+
imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
|
|
751
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
752
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
753
|
+
};
|
|
754
|
+
imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
|
|
755
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
756
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
757
|
+
};
|
|
758
|
+
imports.wbg.__wbg_storage_32b4ac688c114c3d = function(arg0) {
|
|
759
|
+
const ret = getObject(arg0).storage;
|
|
760
|
+
return addHeapObject(ret);
|
|
761
|
+
};
|
|
762
|
+
imports.wbg.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
|
|
763
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
764
|
+
return addHeapObject(ret);
|
|
765
|
+
};
|
|
766
|
+
imports.wbg.__wbg_target_f2c963b447be6283 = function(arg0) {
|
|
767
|
+
const ret = getObject(arg0).target;
|
|
768
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
769
|
+
};
|
|
770
|
+
imports.wbg.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
|
|
771
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
772
|
+
return addHeapObject(ret);
|
|
773
|
+
};
|
|
774
|
+
imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) {
|
|
775
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
776
|
+
return addHeapObject(ret);
|
|
777
|
+
};
|
|
778
|
+
imports.wbg.__wbg_toString_2ca967683e5874bc = function() { return handleError(function (arg0, arg1) {
|
|
779
|
+
const ret = getObject(arg0).toString(arg1);
|
|
780
|
+
return addHeapObject(ret);
|
|
781
|
+
}, arguments) };
|
|
782
|
+
imports.wbg.__wbg_toString_78df35411a4fd40c = function(arg0) {
|
|
783
|
+
const ret = getObject(arg0).toString();
|
|
784
|
+
return addHeapObject(ret);
|
|
785
|
+
};
|
|
786
|
+
imports.wbg.__wbg_transaction_553a104dd139f032 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
787
|
+
const ret = getObject(arg0).transaction(getStringFromWasm0(arg1, arg2), __wbindgen_enum_IdbTransactionMode[arg3]);
|
|
788
|
+
return addHeapObject(ret);
|
|
789
|
+
}, arguments) };
|
|
790
|
+
imports.wbg.__wbg_transaction_b51dc7b903eb86c1 = function(arg0) {
|
|
791
|
+
const ret = getObject(arg0).transaction;
|
|
792
|
+
return addHeapObject(ret);
|
|
793
|
+
};
|
|
794
|
+
imports.wbg.__wbg_truncate_0fe935591188a14c = function() { return handleError(function (arg0, arg1) {
|
|
795
|
+
getObject(arg0).truncate(arg1 >>> 0);
|
|
796
|
+
}, arguments) };
|
|
797
|
+
imports.wbg.__wbg_truncate_7cddd971e3cf0a8c = function() { return handleError(function (arg0, arg1) {
|
|
798
|
+
getObject(arg0).truncate(arg1);
|
|
799
|
+
}, arguments) };
|
|
800
|
+
imports.wbg.__wbg_upperBound_884e6dbf6030d98b = function() { return handleError(function (arg0, arg1) {
|
|
801
|
+
const ret = IDBKeyRange.upperBound(getObject(arg0), arg1 !== 0);
|
|
802
|
+
return addHeapObject(ret);
|
|
803
|
+
}, arguments) };
|
|
804
|
+
imports.wbg.__wbg_value_dd9372230531eade = function(arg0) {
|
|
805
|
+
const ret = getObject(arg0).value;
|
|
806
|
+
return addHeapObject(ret);
|
|
807
|
+
};
|
|
808
|
+
imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
|
|
809
|
+
const obj = getObject(arg0).original;
|
|
810
|
+
if (obj.cnt-- == 1) {
|
|
811
|
+
obj.a = 0;
|
|
812
|
+
return true;
|
|
813
|
+
}
|
|
814
|
+
const ret = false;
|
|
815
|
+
return ret;
|
|
816
|
+
};
|
|
817
|
+
imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
|
|
818
|
+
const ret = debugString(getObject(arg1));
|
|
819
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
820
|
+
const len1 = WASM_VECTOR_LEN;
|
|
821
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
822
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
823
|
+
};
|
|
824
|
+
imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
|
|
825
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
826
|
+
return ret;
|
|
827
|
+
};
|
|
828
|
+
imports.wbg.__wbg_wbindgenisnull_f3037694abe4d97a = function(arg0) {
|
|
829
|
+
const ret = getObject(arg0) === null;
|
|
830
|
+
return ret;
|
|
831
|
+
};
|
|
832
|
+
imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
|
|
833
|
+
const ret = getObject(arg0) === undefined;
|
|
834
|
+
return ret;
|
|
835
|
+
};
|
|
836
|
+
imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
|
|
837
|
+
const obj = getObject(arg1);
|
|
838
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
839
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
840
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
841
|
+
};
|
|
842
|
+
imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
|
|
843
|
+
const obj = getObject(arg1);
|
|
844
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
845
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
846
|
+
var len1 = WASM_VECTOR_LEN;
|
|
847
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
848
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
849
|
+
};
|
|
850
|
+
imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
851
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
852
|
+
};
|
|
853
|
+
imports.wbg.__wbg_write_9ac6a5f58a8c835c = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
854
|
+
const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
|
|
855
|
+
return ret;
|
|
856
|
+
}, arguments) };
|
|
857
|
+
imports.wbg.__wbg_write_c0e234eeb0039d0d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
858
|
+
const ret = getObject(arg0).write(getObject(arg1), getObject(arg2));
|
|
859
|
+
return ret;
|
|
860
|
+
}, arguments) };
|
|
861
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
862
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
863
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
864
|
+
return addHeapObject(ret);
|
|
865
|
+
};
|
|
866
|
+
imports.wbg.__wbindgen_cast_2753a612dd9418b8 = function(arg0, arg1) {
|
|
867
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 30, function: Function { arguments: [Externref], shim_idx: 31, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
868
|
+
const ret = makeMutClosure(arg0, arg1, 30, __wbg_adapter_6);
|
|
869
|
+
return addHeapObject(ret);
|
|
870
|
+
};
|
|
871
|
+
imports.wbg.__wbindgen_cast_b2f86a9123567793 = function(arg0, arg1) {
|
|
872
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 30, function: Function { arguments: [NamedExternref("Event")], shim_idx: 31, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
873
|
+
const ret = makeMutClosure(arg0, arg1, 30, __wbg_adapter_6);
|
|
874
|
+
return addHeapObject(ret);
|
|
875
|
+
};
|
|
876
|
+
imports.wbg.__wbindgen_cast_c48efcbaf1edd8f2 = function(arg0, arg1) {
|
|
877
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 30, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 64, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
878
|
+
const ret = makeMutClosure(arg0, arg1, 30, __wbg_adapter_16);
|
|
879
|
+
return addHeapObject(ret);
|
|
880
|
+
};
|
|
881
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
882
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
883
|
+
const ret = arg0;
|
|
884
|
+
return addHeapObject(ret);
|
|
885
|
+
};
|
|
886
|
+
imports.wbg.__wbindgen_cast_dd34a6ccfe0dd713 = function(arg0, arg1) {
|
|
887
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 30, function: Function { arguments: [], shim_idx: 34, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
888
|
+
const ret = makeMutClosure(arg0, arg1, 30, __wbg_adapter_9);
|
|
889
|
+
return addHeapObject(ret);
|
|
890
|
+
};
|
|
891
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
892
|
+
const ret = getObject(arg0);
|
|
893
|
+
return addHeapObject(ret);
|
|
894
|
+
};
|
|
895
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
896
|
+
takeObject(arg0);
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
return imports;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
function __wbg_init_memory(imports, memory) {
|
|
903
|
+
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
function __wbg_finalize_init(instance, module) {
|
|
907
|
+
wasm = instance.exports;
|
|
908
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
909
|
+
cachedDataViewMemory0 = null;
|
|
910
|
+
cachedUint8ArrayMemory0 = null;
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
return wasm;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
function initSync(module) {
|
|
918
|
+
if (wasm !== undefined) return wasm;
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
if (typeof module !== 'undefined') {
|
|
922
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
923
|
+
({module} = module)
|
|
924
|
+
} else {
|
|
925
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
const imports = __wbg_get_imports();
|
|
930
|
+
|
|
931
|
+
__wbg_init_memory(imports);
|
|
932
|
+
|
|
933
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
934
|
+
module = new WebAssembly.Module(module);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
938
|
+
|
|
939
|
+
return __wbg_finalize_init(instance, module);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
async function __wbg_init(module_or_path) {
|
|
943
|
+
if (wasm !== undefined) return wasm;
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
if (typeof module_or_path !== 'undefined') {
|
|
947
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
948
|
+
({module_or_path} = module_or_path)
|
|
949
|
+
} else {
|
|
950
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
if (typeof module_or_path === 'undefined' && typeof script_src !== 'undefined') {
|
|
955
|
+
module_or_path = script_src.replace(/\.js$/, '_bg.wasm');
|
|
956
|
+
}
|
|
957
|
+
const imports = __wbg_get_imports();
|
|
958
|
+
|
|
959
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
960
|
+
module_or_path = fetch(module_or_path);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
__wbg_init_memory(imports);
|
|
964
|
+
|
|
965
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
966
|
+
|
|
967
|
+
return __wbg_finalize_init(instance, module);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
window.wasm_bindgen = Object.assign(__wbg_init, { initSync }, __exports);
|
|
971
|
+
|
|
972
|
+
})();
|
package/isar.wasm
CHANGED
|
Binary file
|