Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@automerge/automerge-wasm

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automerge/automerge-wasm - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

627

bundler/bindgen_bg.js

@@ -9,24 +9,2 @@ import * as wasm from './bindgen_bg.wasm';

function isLikeNone(x) {
return x === undefined || x === null;
}
let cachedFloat64Memory0 = new Float64Array();
function getFloat64Memory0() {
if (cachedFloat64Memory0.byteLength === 0) {
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
}
return cachedFloat64Memory0;
}
let cachedInt32Memory0 = new Int32Array();
function getInt32Memory0() {
if (cachedInt32Memory0.byteLength === 0) {
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachedInt32Memory0;
}
let WASM_VECTOR_LEN = 0;

@@ -62,2 +40,4 @@

if (typeof(arg) !== 'string') throw new Error('expected a string argument');
if (realloc === undefined) {

@@ -91,3 +71,3 @@ const buf = cachedTextEncoder.encode(arg);

const ret = encodeString(arg, view);
if (ret.read !== arg.length) throw new Error('failed to pass whole string');
offset += ret.written;

@@ -100,12 +80,34 @@ }

const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
let cachedInt32Memory0 = new Int32Array();
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
function getInt32Memory0() {
if (cachedInt32Memory0.byteLength === 0) {
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachedInt32Memory0;
}
cachedTextDecoder.decode();
function _assertBoolean(n) {
if (typeof(n) !== 'boolean') {
throw new Error('expected a boolean argument');
}
}
function getStringFromWasm0(ptr, len) {
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
function isLikeNone(x) {
return x === undefined || x === null;
}
function _assertNum(n) {
if (typeof(n) !== 'number') throw new Error('expected a number argument');
}
let cachedFloat64Memory0 = new Float64Array();
function getFloat64Memory0() {
if (cachedFloat64Memory0.byteLength === 0) {
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
}
return cachedFloat64Memory0;
}
let heap_next = heap.length;

@@ -118,2 +120,4 @@

if (typeof(heap_next) !== 'number') throw new Error('corrupt heap');
heap[idx] = obj;

@@ -123,2 +127,12 @@ return idx;

const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
function getStringFromWasm0(ptr, len) {
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
function dropObject(idx) {

@@ -326,2 +340,5 @@ if (idx < 36) return;

_assertClass(state, SyncState);
if (state.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
var ptr0 = state.ptr;

@@ -381,2 +398,5 @@ state.ptr = 0;

_assertClass(state, SyncState);
if (state.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
var ptr0 = state.ptr;

@@ -417,2 +437,18 @@ state.ptr = 0;

function logError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
let error = (function () {
try {
return e instanceof Error ? `${e.message}\n\nStack:\n${e.stack}` : e.toString();
} catch(_) {
return "<failed to stringify thrown value>";
}
}());
console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
throw e;
}
}
function handleError(f, args) {

@@ -433,2 +469,6 @@ try {

constructor() {
throw new Error('cannot invoke `new` directly');
}
static __wrap(ptr) {

@@ -479,3 +519,5 @@ const obj = Object.create(Automerge.prototype);

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
var ptr0 = isLikeNone(actor) ? 0 : passStringToWasm0(actor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -501,3 +543,5 @@ var len0 = WASM_VECTOR_LEN;

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
var ptr0 = isLikeNone(actor) ? 0 : passStringToWasm0(actor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -524,3 +568,5 @@ var len0 = WASM_VECTOR_LEN;

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
var ptr0 = isLikeNone(actor) ? 0 : passStringToWasm0(actor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -543,3 +589,5 @@ var len0 = WASM_VECTOR_LEN;

free() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const ptr = this.__destroy_into_raw();
_assertNum(ptr);
wasm.automerge_free(ptr);

@@ -551,2 +599,4 @@ }

pendingOps() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.automerge_pendingOps(this.ptr);

@@ -561,4 +611,9 @@ return takeObject(ret);

commit(message, time) {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
var ptr0 = isLikeNone(message) ? 0 : passStringToWasm0(message, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
if (!isLikeNone(time)) {
_assertNum(time);
}
const ret = wasm.automerge_commit(this.ptr, ptr0, len0, !isLikeNone(time), isLikeNone(time) ? 0 : time);

@@ -573,4 +628,9 @@ return takeObject(ret);

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
_assertClass(other, Automerge);
if (other.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
wasm.automerge_merge(retptr, this.ptr, other.ptr);

@@ -592,2 +652,4 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

rollback() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.automerge_rollback(this.ptr);

@@ -603,3 +665,5 @@ return ret;

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_keys(retptr, this.ptr, addHeapObject(obj), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -624,3 +688,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_text(retptr, this.ptr, addHeapObject(obj), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -651,3 +717,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_splice(retptr, this.ptr, addHeapObject(obj), start, delete_count, addHeapObject(text));

@@ -670,3 +738,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_push(retptr, this.ptr, addHeapObject(obj), addHeapObject(value), addHeapObject(datatype));

@@ -689,3 +759,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_pushObject(retptr, this.ptr, addHeapObject(obj), addHeapObject(value));

@@ -717,3 +789,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_insert(retptr, this.ptr, addHeapObject(obj), index, addHeapObject(value), addHeapObject(datatype));

@@ -737,3 +811,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_insertObject(retptr, this.ptr, addHeapObject(obj), index, addHeapObject(value));

@@ -765,3 +841,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_put(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop), addHeapObject(value), addHeapObject(datatype));

@@ -785,3 +863,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_putObject(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop), addHeapObject(value));

@@ -806,3 +886,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_increment(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop), addHeapObject(value));

@@ -826,3 +908,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_get(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -848,3 +932,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getWithType(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -870,3 +956,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getAll(retptr, this.ptr, addHeapObject(obj), addHeapObject(arg), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -889,3 +977,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_enablePatches(retptr, this.ptr, addHeapObject(enable));

@@ -907,3 +997,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_registerDatatype(retptr, this.ptr, addHeapObject(datatype), addHeapObject(_function));

@@ -927,3 +1019,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_applyPatches(retptr, this.ptr, addHeapObject(object), addHeapObject(meta), addHeapObject(callback));

@@ -946,3 +1040,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_popPatches(retptr, this.ptr);

@@ -967,3 +1063,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_length(retptr, this.ptr, addHeapObject(obj), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -987,3 +1085,5 @@ var r0 = getFloat64Memory0()[retptr / 8 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_delete(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop));

@@ -1003,2 +1103,4 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

save() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.automerge_save(this.ptr);

@@ -1011,2 +1113,4 @@ return takeObject(ret);

saveIncremental() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.automerge_saveIncremental(this.ptr);

@@ -1021,3 +1125,5 @@ return takeObject(ret);

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_loadIncremental(retptr, this.ptr, addHeapObject(data));

@@ -1040,3 +1146,5 @@ var r0 = getFloat64Memory0()[retptr / 8 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_applyChanges(retptr, this.ptr, addHeapObject(changes));

@@ -1058,3 +1166,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getChanges(retptr, this.ptr, addHeapObject(have_deps));

@@ -1078,3 +1188,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getChangeByHash(retptr, this.ptr, addHeapObject(hash));

@@ -1098,4 +1210,9 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
_assertClass(other, Automerge);
if (other.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
wasm.automerge_getChangesAdded(retptr, this.ptr, other.ptr);

@@ -1117,2 +1234,4 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

getHeads() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.automerge_getHeads(this.ptr);

@@ -1126,3 +1245,5 @@ return takeObject(ret);

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getActorId(retptr, this.ptr);

@@ -1142,3 +1263,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getLastLocalChange(retptr, this.ptr);

@@ -1159,2 +1282,4 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

dump() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
wasm.automerge_dump(this.ptr);

@@ -1168,3 +1293,5 @@ }

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getMissingDeps(retptr, this.ptr, isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -1188,4 +1315,9 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
_assertClass(state, SyncState);
if (state.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
wasm.automerge_receiveSyncMessage(retptr, this.ptr, state.ptr, addHeapObject(message));

@@ -1207,4 +1339,9 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
_assertClass(state, SyncState);
if (state.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
wasm.automerge_generateSyncMessage(retptr, this.ptr, state.ptr);

@@ -1228,3 +1365,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_toJS(retptr, this.ptr, addHeapObject(meta));

@@ -1250,3 +1389,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_materialize(retptr, this.ptr, addHeapObject(obj), isLikeNone(heads) ? 0 : addHeapObject(heads), addHeapObject(meta));

@@ -1269,2 +1410,6 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

constructor() {
throw new Error('cannot invoke `new` directly');
}
static __wrap(ptr) {

@@ -1292,2 +1437,4 @@ const obj = Object.create(SyncState.prototype);

get sharedHeads() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.syncstate_sharedHeads(this.ptr);

@@ -1300,2 +1447,4 @@ return takeObject(ret);

get lastSentHeads() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.syncstate_lastSentHeads(this.ptr);

@@ -1309,3 +1458,5 @@ return takeObject(ret);

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.syncstate_set_lastSentHeads(retptr, this.ptr, addHeapObject(heads));

@@ -1326,3 +1477,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.syncstate_set_sentHashes(retptr, this.ptr, addHeapObject(hashes));

@@ -1342,2 +1495,4 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

clone() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.syncstate_clone(this.ptr);

@@ -1348,4 +1503,14 @@ return SyncState.__wrap(ret);

export function __wbindgen_json_serialize(arg0, arg1) {
const obj = getObject(arg1);
const ret = JSON.stringify(obj === undefined ? null : obj);
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
export function __wbindgen_is_undefined(arg0) {
const ret = getObject(arg0) === undefined;
_assertBoolean(ret);
return ret;

@@ -1357,2 +1522,5 @@ };

const ret = typeof(obj) === 'number' ? obj : undefined;
if (!isLikeNone(ret)) {
_assertNum(ret);
}
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;

@@ -1365,30 +1533,9 @@ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);

const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
_assertNum(ret);
return ret;
};
export function __wbindgen_string_get(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'string' ? obj : undefined;
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
export function __wbindgen_string_new(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
export function __wbindgen_object_drop_ref(arg0) {
takeObject(arg0);
};
export function __wbindgen_object_clone_ref(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
export function __wbindgen_is_null(arg0) {
const ret = getObject(arg0) === null;
_assertBoolean(ret);
return ret;

@@ -1402,7 +1549,12 @@ };

export function __wbindgen_json_serialize(arg0, arg1) {
export function __wbindgen_string_new(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
export function __wbindgen_string_get(arg0, arg1) {
const obj = getObject(arg1);
const ret = JSON.stringify(obj === undefined ? null : obj);
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ret = typeof(obj) === 'string' ? obj : undefined;
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;

@@ -1412,16 +1564,8 @@ getInt32Memory0()[arg0 / 4 + 0] = ptr0;

export function __wbg_new_abda76e883ba8a5f() {
const ret = new Error();
export function __wbindgen_object_clone_ref(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
const ret = getObject(arg1).stack;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
export function __wbg_error_f851667af71bcfc6() { return logError(function (arg0, arg1) {
try {

@@ -1432,27 +1576,15 @@ console.error(getStringFromWasm0(arg0, arg1));

}
};
}, arguments) };
export function __wbindgen_bigint_from_i64(arg0) {
const ret = arg0;
return addHeapObject(ret);
export function __wbindgen_object_drop_ref(arg0) {
takeObject(arg0);
};
export function __wbindgen_bigint_from_u64(arg0) {
const ret = BigInt.asUintN(64, arg0);
export function __wbg_new_abda76e883ba8a5f() { return logError(function () {
const ret = new Error();
return addHeapObject(ret);
};
}, arguments) };
export function __wbindgen_is_object(arg0) {
const val = getObject(arg0);
const ret = typeof(val) === 'object' && val !== null;
return ret;
};
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
const ret = getObject(arg0) == getObject(arg1);
return ret;
};
export function __wbg_String_91fba7ded13ba54c(arg0, arg1) {
const ret = String(getObject(arg1));
export function __wbg_stack_658279fe44541cf6() { return logError(function (arg0, arg1) {
const ret = getObject(arg1).stack;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -1462,3 +1594,3 @@ const len0 = WASM_VECTOR_LEN;

getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
}, arguments) };

@@ -1470,41 +1602,47 @@ export function __wbindgen_error_new(arg0, arg1) {

export function __wbg_set_20cbc34131e76824(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
const ret = getObject(arg0) == getObject(arg1);
_assertBoolean(ret);
return ret;
};
export function __wbg_process_0cc2ada8524d6f83(arg0) {
const ret = getObject(arg0).process;
return addHeapObject(ret);
export function __wbindgen_is_object(arg0) {
const val = getObject(arg0);
const ret = typeof(val) === 'object' && val !== null;
_assertBoolean(ret);
return ret;
};
export function __wbg_versions_c11acceab27a6c87(arg0) {
const ret = getObject(arg0).versions;
export function __wbindgen_bigint_from_i64(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
export function __wbg_node_7ff1ce49caf23815(arg0) {
const ret = getObject(arg0).node;
export function __wbindgen_bigint_from_u64(arg0) {
const ret = BigInt.asUintN(64, arg0);
return addHeapObject(ret);
};
export function __wbindgen_is_string(arg0) {
const ret = typeof(getObject(arg0)) === 'string';
return ret;
};
export function __wbg_set_20cbc34131e76824() { return logError(function (arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
}, arguments) };
export function __wbg_require_a746e79b322b9336() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
export function __wbg_String_91fba7ded13ba54c() { return logError(function (arg0, arg1) {
const ret = String(getObject(arg1));
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
export function __wbg_msCrypto_a21fc88caf1ecdc8() { return logError(function (arg0) {
const ret = getObject(arg0).msCrypto;
return addHeapObject(ret);
}, arguments) };
export function __wbg_crypto_2036bed7c44c25e7(arg0) {
export function __wbg_crypto_2036bed7c44c25e7() { return logError(function (arg0) {
const ret = getObject(arg0).crypto;
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_msCrypto_a21fc88caf1ecdc8(arg0) {
const ret = getObject(arg0).msCrypto;
return addHeapObject(ret);
};
export function __wbg_getRandomValues_b99eec4244a475bb() { return handleError(function (arg0, arg1) {

@@ -1514,7 +1652,12 @@ getObject(arg0).getRandomValues(getObject(arg1));

export function __wbg_static_accessor_NODE_MODULE_cf6401cc1091279e() {
export function __wbg_static_accessor_NODE_MODULE_cf6401cc1091279e() { return logError(function () {
const ret = module;
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_require_a746e79b322b9336() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);
}, arguments) };
export function __wbg_randomFillSync_065afffde01daa66() { return handleError(function (arg0, arg1, arg2) {

@@ -1524,100 +1667,75 @@ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));

export function __wbg_log_ed32fbdd3c7f149c(arg0) {
console.log(getObject(arg0));
};
export function __wbg_log_4272138a1f9be847(arg0, arg1) {
console.log(getObject(arg0), getObject(arg1));
};
export function __wbg_new_bfd57da4d3b6c976() {
const ret = new Array();
export function __wbg_process_0cc2ada8524d6f83() { return logError(function (arg0) {
const ret = getObject(arg0).process;
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_newnoargs_e1ddb03293334932(arg0, arg1) {
const ret = new Function(getStringFromWasm0(arg0, arg1));
export function __wbg_versions_c11acceab27a6c87() { return logError(function (arg0) {
const ret = getObject(arg0).versions;
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_next_d5788befa145533f(arg0) {
const ret = getObject(arg0).next;
export function __wbg_node_7ff1ce49caf23815() { return logError(function (arg0) {
const ret = getObject(arg0).node;
return addHeapObject(ret);
};
}, arguments) };
export function __wbindgen_is_function(arg0) {
const ret = typeof(getObject(arg0)) === 'function';
export function __wbindgen_is_string(arg0) {
const ret = typeof(getObject(arg0)) === 'string';
_assertBoolean(ret);
return ret;
};
export function __wbg_value_a81c9882b1329c07(arg0) {
const ret = getObject(arg0).value;
return addHeapObject(ret);
};
export function __wbg_iterator_911e8ffa32a68f2d() {
const ret = Symbol.iterator;
return addHeapObject(ret);
};
export function __wbg_new_08b60aea8ab679bc() {
const ret = new Object();
return addHeapObject(ret);
};
export function __wbg_self_14408afdb5c69451() { return handleError(function () {
const ret = self.self;
return addHeapObject(ret);
export function __wbg_log_4b5638ad60bdc54a() { return logError(function (arg0) {
console.log(getObject(arg0));
}, arguments) };
export function __wbg_window_75b1f6151d589837() { return handleError(function () {
const ret = window.window;
return addHeapObject(ret);
export function __wbg_log_89ca282a8a49b121() { return logError(function (arg0, arg1) {
console.log(getObject(arg0), getObject(arg1));
}, arguments) };
export function __wbg_globalThis_e2d2385b94c810da() { return handleError(function () {
const ret = globalThis.globalThis;
export function __wbg_new_1d9a920c6bfc44a8() { return logError(function () {
const ret = new Array();
return addHeapObject(ret);
}, arguments) };
export function __wbg_global_3c19477360f9b641() { return handleError(function () {
const ret = global.global;
export function __wbg_get_57245cc7d7c7619d() { return logError(function (arg0, arg1) {
const ret = getObject(arg0)[arg1 >>> 0];
return addHeapObject(ret);
}, arguments) };
export function __wbg_get_5c7997f237e97429(arg0, arg1) {
const ret = getObject(arg0)[arg1 >>> 0];
return addHeapObject(ret);
};
export function __wbg_set_e8f26e21e55fa998(arg0, arg1, arg2) {
export function __wbg_set_a68214f35c417fa9() { return logError(function (arg0, arg1, arg2) {
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
};
}, arguments) };
export function __wbg_from_cfdf43632aee49dc(arg0) {
export function __wbg_from_7ce3cb27cb258569() { return logError(function (arg0) {
const ret = Array.from(getObject(arg0));
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_isArray_8d3ac415a656d809(arg0) {
export function __wbg_isArray_27c46c67f498e15d() { return logError(function (arg0) {
const ret = Array.isArray(getObject(arg0));
_assertBoolean(ret);
return ret;
};
}, arguments) };
export function __wbg_length_c71e7a4e0f91ff23(arg0) {
export function __wbg_length_6e3bbe7c8bd4dbd8() { return logError(function (arg0) {
const ret = getObject(arg0).length;
_assertNum(ret);
return ret;
};
}, arguments) };
export function __wbg_push_92eb92b6550bd402(arg0, arg1) {
export function __wbg_push_740e4b286702d964() { return logError(function (arg0, arg1) {
const ret = getObject(arg0).push(getObject(arg1));
_assertNum(ret);
return ret;
};
}, arguments) };
export function __wbg_unshift_00a7fd970d7e1e63(arg0, arg1) {
export function __wbg_unshift_1bf718f5eb23ad8a() { return logError(function (arg0, arg1) {
const ret = getObject(arg0).unshift(getObject(arg1));
_assertNum(ret);
return ret;
};
}, arguments) };
export function __wbg_instanceof_ArrayBuffer_02bbeeb60438c785(arg0) {
export function __wbg_instanceof_ArrayBuffer_e5e48f4762c5610b() { return logError(function (arg0) {
let result;

@@ -1630,11 +1748,17 @@ try {

const ret = result;
_assertBoolean(ret);
return ret;
};
}, arguments) };
export function __wbg_new_43eb8504a307460f(arg0, arg1) {
export function __wbg_new_8d2af00bc1e329ee() { return logError(function (arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_call_a6fa88c3302e8ad5() { return handleError(function (arg0, arg1) {
export function __wbg_newnoargs_b5b063fc6c2f0376() { return logError(function (arg0, arg1) {
const ret = new Function(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
export function __wbg_call_97ae9d8645dc388b() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).call(getObject(arg1));

@@ -1644,3 +1768,3 @@ return addHeapObject(ret);

export function __wbg_call_fe4813ad4076f5ef() { return handleError(function (arg0, arg1, arg2) {
export function __wbg_call_168da88779e35f61() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));

@@ -1650,3 +1774,3 @@ return addHeapObject(ret);

export function __wbg_call_15051f75cc194d03() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
export function __wbg_call_e1f72c051cdab859() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));

@@ -1656,3 +1780,3 @@ return addHeapObject(ret);

export function __wbg_next_340569d73e765cd9() { return handleError(function (arg0) {
export function __wbg_next_aaef7c8aa5e212ac() { return handleError(function (arg0) {
const ret = getObject(arg0).next();

@@ -1662,8 +1786,19 @@ return addHeapObject(ret);

export function __wbg_done_61149b6f01c9d837(arg0) {
export function __wbg_next_579e583d33566a86() { return logError(function (arg0) {
const ret = getObject(arg0).next;
return addHeapObject(ret);
}, arguments) };
export function __wbg_done_1b73b0672e15f234() { return logError(function (arg0) {
const ret = getObject(arg0).done;
_assertBoolean(ret);
return ret;
};
}, arguments) };
export function __wbg_instanceof_Date_e6740d0c5d60fd86(arg0) {
export function __wbg_value_1ccc36bc03462d71() { return logError(function (arg0) {
const ret = getObject(arg0).value;
return addHeapObject(ret);
}, arguments) };
export function __wbg_instanceof_Date_b979044f17219415() { return logError(function (arg0) {
let result;

@@ -1676,16 +1811,17 @@ try {

const ret = result;
_assertBoolean(ret);
return ret;
};
}, arguments) };
export function __wbg_getTime_def258a47d72ac06(arg0) {
export function __wbg_getTime_cb82adb2556ed13e() { return logError(function (arg0) {
const ret = getObject(arg0).getTime();
return ret;
};
}, arguments) };
export function __wbg_new_aa0f6f30ea91a95b(arg0) {
export function __wbg_new_c8631234f931e1c4() { return logError(function (arg0) {
const ret = new Date(getObject(arg0));
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_instanceof_Object_9657a9e91b05959b(arg0) {
export function __wbg_instanceof_Object_595a1007518cbea3() { return logError(function (arg0) {
let result;

@@ -1698,51 +1834,67 @@ try {

const ret = result;
_assertBoolean(ret);
return ret;
};
}, arguments) };
export function __wbg_assign_a258c7e1b580da02(arg0, arg1) {
export function __wbg_assign_e3deabdbb7f0913d() { return logError(function (arg0, arg1) {
const ret = Object.assign(getObject(arg0), getObject(arg1));
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_defineProperty_9552c9cf2473c7ac(arg0, arg1, arg2) {
export function __wbg_defineProperty_e47dcaf04849e02c() { return logError(function (arg0, arg1, arg2) {
const ret = Object.defineProperty(getObject(arg0), getObject(arg1), getObject(arg2));
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_entries_cd0d36416cbaf078(arg0) {
export function __wbg_entries_65a76a413fc91037() { return logError(function (arg0) {
const ret = Object.entries(getObject(arg0));
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_keys_9cbdf76026fce1f3(arg0) {
export function __wbg_keys_0702294afaeb6044() { return logError(function (arg0) {
const ret = Object.keys(getObject(arg0));
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_values_d9e962c6432ac1ad(arg0) {
export function __wbg_new_0b9bfdd97583284e() { return logError(function () {
const ret = new Object();
return addHeapObject(ret);
}, arguments) };
export function __wbg_values_f72d246067c121fe() { return logError(function (arg0) {
const ret = Object.values(getObject(arg0));
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_for_ca76df8d65bf1e60(arg0, arg1) {
export function __wbg_iterator_6f9d4f28845f426c() { return logError(function () {
const ret = Symbol.iterator;
return addHeapObject(ret);
}, arguments) };
export function __wbg_for_5dcca67bf52b18ca() { return logError(function (arg0, arg1) {
const ret = Symbol.for(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_buffer_e8e1791d59230f6e(arg0) {
const ret = getObject(arg0).buffer;
export function __wbg_globalThis_7f206bda628d5286() { return handleError(function () {
const ret = globalThis.globalThis;
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_newwithbyteoffsetandlength_62fab8cdca7b6db0(arg0, arg1, arg2) {
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
export function __wbg_self_6d479506f72c6a71() { return handleError(function () {
const ret = self.self;
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_new_d256fd368dc8455c(arg0) {
const ret = new Uint8Array(getObject(arg0));
export function __wbg_window_f2557cc78490aceb() { return handleError(function () {
const ret = window.window;
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_instanceof_Uint8Array_36c37b9ca15e3e0a(arg0) {
export function __wbg_global_ba75c50d1cf384f4() { return handleError(function () {
const ret = global.global;
return addHeapObject(ret);
}, arguments) };
export function __wbg_instanceof_Uint8Array_971eeda69eb75003() { return logError(function (arg0) {
let result;

@@ -1755,25 +1907,48 @@ try {

const ret = result;
_assertBoolean(ret);
return ret;
};
}, arguments) };
export function __wbg_newwithlength_dc0752ff6d0d8cc2(arg0) {
export function __wbg_new_8c3f0052272a457a() { return logError(function (arg0) {
const ret = new Uint8Array(getObject(arg0));
return addHeapObject(ret);
}, arguments) };
export function __wbg_newwithlength_f5933855e4f48a19() { return logError(function (arg0) {
const ret = new Uint8Array(arg0 >>> 0);
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_subarray_fbf3eb17f25d3dd4(arg0, arg1, arg2) {
export function __wbg_newwithbyteoffsetandlength_d9aa266703cb98be() { return logError(function (arg0, arg1, arg2) {
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
return addHeapObject(ret);
}, arguments) };
export function __wbg_subarray_58ad4efbb5bcb886() { return logError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
return addHeapObject(ret);
};
}, arguments) };
export function __wbg_length_8c589b0fd9987662(arg0) {
export function __wbg_length_9e1ae1900cb0fbd5() { return logError(function (arg0) {
const ret = getObject(arg0).length;
_assertNum(ret);
return ret;
};
}, arguments) };
export function __wbg_set_ff6a229de2633e38(arg0, arg1, arg2) {
export function __wbg_set_83db9690f9353e79() { return logError(function (arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
}, arguments) };
export function __wbindgen_is_function(arg0) {
const ret = typeof(getObject(arg0)) === 'function';
_assertBoolean(ret);
return ret;
};
export function __wbg_apply_60d1002f454683e2() { return handleError(function (arg0, arg1, arg2) {
export function __wbg_buffer_3f3d764d4747d564() { return logError(function (arg0) {
const ret = getObject(arg0).buffer;
return addHeapObject(ret);
}, arguments) };
export function __wbg_apply_75f7334893eef4ad() { return handleError(function (arg0, arg1, arg2) {
const ret = Reflect.apply(getObject(arg0), getObject(arg1), getObject(arg2));

@@ -1783,8 +1958,9 @@ return addHeapObject(ret);

export function __wbg_deleteProperty_5379f04a5056323a() { return handleError(function (arg0, arg1) {
export function __wbg_deleteProperty_424563545efc9635() { return handleError(function (arg0, arg1) {
const ret = Reflect.deleteProperty(getObject(arg0), getObject(arg1));
_assertBoolean(ret);
return ret;
}, arguments) };
export function __wbg_get_556a4c57efe02bcd() { return handleError(function (arg0, arg1) {
export function __wbg_get_765201544a2b6869() { return handleError(function (arg0, arg1) {
const ret = Reflect.get(getObject(arg0), getObject(arg1));

@@ -1794,3 +1970,3 @@ return addHeapObject(ret);

export function __wbg_ownKeys_2f16a923cdb48273() { return handleError(function (arg0) {
export function __wbg_ownKeys_bf24e1178641d9f0() { return handleError(function (arg0) {
const ret = Reflect.ownKeys(getObject(arg0));

@@ -1800,4 +1976,5 @@ return addHeapObject(ret);

export function __wbg_set_d43020530506f215() { return handleError(function (arg0, arg1, arg2) {
export function __wbg_set_bf3f89b92d5a34bf() { return handleError(function (arg0, arg1, arg2) {
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
_assertBoolean(ret);
return ret;

@@ -1804,0 +1981,0 @@ }, arguments) };

@@ -12,24 +12,2 @@ let imports = {};

function isLikeNone(x) {
return x === undefined || x === null;
}
let cachedFloat64Memory0 = new Float64Array();
function getFloat64Memory0() {
if (cachedFloat64Memory0.byteLength === 0) {
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
}
return cachedFloat64Memory0;
}
let cachedInt32Memory0 = new Int32Array();
function getInt32Memory0() {
if (cachedInt32Memory0.byteLength === 0) {
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachedInt32Memory0;
}
let WASM_VECTOR_LEN = 0;

@@ -63,2 +41,4 @@

if (typeof(arg) !== 'string') throw new Error('expected a string argument');
if (realloc === undefined) {

@@ -92,3 +72,3 @@ const buf = cachedTextEncoder.encode(arg);

const ret = encodeString(arg, view);
if (ret.read !== arg.length) throw new Error('failed to pass whole string');
offset += ret.written;

@@ -101,10 +81,34 @@ }

let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
let cachedInt32Memory0 = new Int32Array();
cachedTextDecoder.decode();
function getInt32Memory0() {
if (cachedInt32Memory0.byteLength === 0) {
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachedInt32Memory0;
}
function getStringFromWasm0(ptr, len) {
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
function _assertBoolean(n) {
if (typeof(n) !== 'boolean') {
throw new Error('expected a boolean argument');
}
}
function isLikeNone(x) {
return x === undefined || x === null;
}
function _assertNum(n) {
if (typeof(n) !== 'number') throw new Error('expected a number argument');
}
let cachedFloat64Memory0 = new Float64Array();
function getFloat64Memory0() {
if (cachedFloat64Memory0.byteLength === 0) {
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
}
return cachedFloat64Memory0;
}
let heap_next = heap.length;

@@ -117,2 +121,4 @@

if (typeof(heap_next) !== 'number') throw new Error('corrupt heap');
heap[idx] = obj;

@@ -122,2 +128,10 @@ return idx;

let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
function getStringFromWasm0(ptr, len) {
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
function dropObject(idx) {

@@ -325,2 +339,5 @@ if (idx < 36) return;

_assertClass(state, SyncState);
if (state.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
var ptr0 = state.ptr;

@@ -380,2 +397,5 @@ state.ptr = 0;

_assertClass(state, SyncState);
if (state.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
var ptr0 = state.ptr;

@@ -416,2 +436,18 @@ state.ptr = 0;

function logError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
let error = (function () {
try {
return e instanceof Error ? `${e.message}\n\nStack:\n${e.stack}` : e.toString();
} catch(_) {
return "<failed to stringify thrown value>";
}
}());
console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
throw e;
}
}
function handleError(f, args) {

@@ -432,2 +468,6 @@ try {

constructor() {
throw new Error('cannot invoke `new` directly');
}
static __wrap(ptr) {

@@ -478,3 +518,5 @@ const obj = Object.create(Automerge.prototype);

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
var ptr0 = isLikeNone(actor) ? 0 : passStringToWasm0(actor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -500,3 +542,5 @@ var len0 = WASM_VECTOR_LEN;

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
var ptr0 = isLikeNone(actor) ? 0 : passStringToWasm0(actor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -523,3 +567,5 @@ var len0 = WASM_VECTOR_LEN;

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
var ptr0 = isLikeNone(actor) ? 0 : passStringToWasm0(actor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -542,3 +588,5 @@ var len0 = WASM_VECTOR_LEN;

free() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const ptr = this.__destroy_into_raw();
_assertNum(ptr);
wasm.automerge_free(ptr);

@@ -550,2 +598,4 @@ }

pendingOps() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.automerge_pendingOps(this.ptr);

@@ -560,4 +610,9 @@ return takeObject(ret);

commit(message, time) {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
var ptr0 = isLikeNone(message) ? 0 : passStringToWasm0(message, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
if (!isLikeNone(time)) {
_assertNum(time);
}
const ret = wasm.automerge_commit(this.ptr, ptr0, len0, !isLikeNone(time), isLikeNone(time) ? 0 : time);

@@ -572,4 +627,9 @@ return takeObject(ret);

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
_assertClass(other, Automerge);
if (other.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
wasm.automerge_merge(retptr, this.ptr, other.ptr);

@@ -591,2 +651,4 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

rollback() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.automerge_rollback(this.ptr);

@@ -602,3 +664,5 @@ return ret;

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_keys(retptr, this.ptr, addHeapObject(obj), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -623,3 +687,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_text(retptr, this.ptr, addHeapObject(obj), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -650,3 +716,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_splice(retptr, this.ptr, addHeapObject(obj), start, delete_count, addHeapObject(text));

@@ -669,3 +737,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_push(retptr, this.ptr, addHeapObject(obj), addHeapObject(value), addHeapObject(datatype));

@@ -688,3 +758,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_pushObject(retptr, this.ptr, addHeapObject(obj), addHeapObject(value));

@@ -716,3 +788,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_insert(retptr, this.ptr, addHeapObject(obj), index, addHeapObject(value), addHeapObject(datatype));

@@ -736,3 +810,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_insertObject(retptr, this.ptr, addHeapObject(obj), index, addHeapObject(value));

@@ -764,3 +840,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_put(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop), addHeapObject(value), addHeapObject(datatype));

@@ -784,3 +862,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_putObject(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop), addHeapObject(value));

@@ -805,3 +885,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_increment(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop), addHeapObject(value));

@@ -825,3 +907,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_get(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -847,3 +931,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getWithType(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -869,3 +955,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getAll(retptr, this.ptr, addHeapObject(obj), addHeapObject(arg), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -888,3 +976,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_enablePatches(retptr, this.ptr, addHeapObject(enable));

@@ -906,3 +996,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_registerDatatype(retptr, this.ptr, addHeapObject(datatype), addHeapObject(_function));

@@ -926,3 +1018,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_applyPatches(retptr, this.ptr, addHeapObject(object), addHeapObject(meta), addHeapObject(callback));

@@ -945,3 +1039,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_popPatches(retptr, this.ptr);

@@ -966,3 +1062,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_length(retptr, this.ptr, addHeapObject(obj), isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -986,3 +1084,5 @@ var r0 = getFloat64Memory0()[retptr / 8 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_delete(retptr, this.ptr, addHeapObject(obj), addHeapObject(prop));

@@ -1002,2 +1102,4 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

save() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.automerge_save(this.ptr);

@@ -1010,2 +1112,4 @@ return takeObject(ret);

saveIncremental() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.automerge_saveIncremental(this.ptr);

@@ -1020,3 +1124,5 @@ return takeObject(ret);

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_loadIncremental(retptr, this.ptr, addHeapObject(data));

@@ -1039,3 +1145,5 @@ var r0 = getFloat64Memory0()[retptr / 8 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_applyChanges(retptr, this.ptr, addHeapObject(changes));

@@ -1057,3 +1165,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getChanges(retptr, this.ptr, addHeapObject(have_deps));

@@ -1077,3 +1187,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getChangeByHash(retptr, this.ptr, addHeapObject(hash));

@@ -1097,4 +1209,9 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
_assertClass(other, Automerge);
if (other.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
wasm.automerge_getChangesAdded(retptr, this.ptr, other.ptr);

@@ -1116,2 +1233,4 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

getHeads() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.automerge_getHeads(this.ptr);

@@ -1125,3 +1244,5 @@ return takeObject(ret);

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getActorId(retptr, this.ptr);

@@ -1141,3 +1262,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getLastLocalChange(retptr, this.ptr);

@@ -1158,2 +1281,4 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

dump() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
wasm.automerge_dump(this.ptr);

@@ -1167,3 +1292,5 @@ }

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_getMissingDeps(retptr, this.ptr, isLikeNone(heads) ? 0 : addHeapObject(heads));

@@ -1187,4 +1314,9 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
_assertClass(state, SyncState);
if (state.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
wasm.automerge_receiveSyncMessage(retptr, this.ptr, state.ptr, addHeapObject(message));

@@ -1206,4 +1338,9 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
_assertClass(state, SyncState);
if (state.ptr === 0) {
throw new Error('Attempt to use a moved value');
}
wasm.automerge_generateSyncMessage(retptr, this.ptr, state.ptr);

@@ -1227,3 +1364,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_toJS(retptr, this.ptr, addHeapObject(meta));

@@ -1249,3 +1388,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.automerge_materialize(retptr, this.ptr, addHeapObject(obj), isLikeNone(heads) ? 0 : addHeapObject(heads), addHeapObject(meta));

@@ -1269,2 +1410,6 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

constructor() {
throw new Error('cannot invoke `new` directly');
}
static __wrap(ptr) {

@@ -1292,2 +1437,4 @@ const obj = Object.create(SyncState.prototype);

get sharedHeads() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.syncstate_sharedHeads(this.ptr);

@@ -1300,2 +1447,4 @@ return takeObject(ret);

get lastSentHeads() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.syncstate_lastSentHeads(this.ptr);

@@ -1309,3 +1458,5 @@ return takeObject(ret);

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.syncstate_set_lastSentHeads(retptr, this.ptr, addHeapObject(heads));

@@ -1326,3 +1477,5 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

try {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertNum(this.ptr);
wasm.syncstate_set_sentHashes(retptr, this.ptr, addHeapObject(hashes));

@@ -1342,2 +1495,4 @@ var r0 = getInt32Memory0()[retptr / 4 + 0];

clone() {
if (this.ptr == 0) throw new Error('Attempt to use a moved value');
_assertNum(this.ptr);
const ret = wasm.syncstate_clone(this.ptr);

@@ -1349,4 +1504,14 @@ return SyncState.__wrap(ret);

module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = JSON.stringify(obj === undefined ? null : obj);
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
module.exports.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
_assertBoolean(ret);
return ret;

@@ -1358,2 +1523,5 @@ };

const ret = typeof(obj) === 'number' ? obj : undefined;
if (!isLikeNone(ret)) {
_assertNum(ret);
}
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;

@@ -1366,30 +1534,9 @@ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);

const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
_assertNum(ret);
return ret;
};
module.exports.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'string' ? obj : undefined;
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
module.exports.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbindgen_object_clone_ref = function(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
module.exports.__wbindgen_is_null = function(arg0) {
const ret = getObject(arg0) === null;
_assertBoolean(ret);
return ret;

@@ -1403,7 +1550,12 @@ };

module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
module.exports.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
module.exports.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = JSON.stringify(obj === undefined ? null : obj);
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ret = typeof(obj) === 'string' ? obj : undefined;
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;

@@ -1413,16 +1565,8 @@ getInt32Memory0()[arg0 / 4 + 0] = ptr0;

module.exports.__wbg_new_abda76e883ba8a5f = function() {
const ret = new Error();
module.exports.__wbindgen_object_clone_ref = function(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
const ret = getObject(arg1).stack;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
module.exports.__wbg_error_f851667af71bcfc6 = function() { return logError(function (arg0, arg1) {
try {

@@ -1433,27 +1577,15 @@ console.error(getStringFromWasm0(arg0, arg1));

}
};
}, arguments) };
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
const ret = BigInt.asUintN(64, arg0);
module.exports.__wbg_new_abda76e883ba8a5f = function() { return logError(function () {
const ret = new Error();
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbindgen_is_object = function(arg0) {
const val = getObject(arg0);
const ret = typeof(val) === 'object' && val !== null;
return ret;
};
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
const ret = getObject(arg0) == getObject(arg1);
return ret;
};
module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
const ret = String(getObject(arg1));
module.exports.__wbg_stack_658279fe44541cf6 = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg1).stack;
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -1463,3 +1595,3 @@ const len0 = WASM_VECTOR_LEN;

getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
}, arguments) };

@@ -1471,41 +1603,47 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {

module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
const ret = getObject(arg0) == getObject(arg1);
_assertBoolean(ret);
return ret;
};
module.exports.__wbg_process_0cc2ada8524d6f83 = function(arg0) {
const ret = getObject(arg0).process;
return addHeapObject(ret);
module.exports.__wbindgen_is_object = function(arg0) {
const val = getObject(arg0);
const ret = typeof(val) === 'object' && val !== null;
_assertBoolean(ret);
return ret;
};
module.exports.__wbg_versions_c11acceab27a6c87 = function(arg0) {
const ret = getObject(arg0).versions;
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
module.exports.__wbg_node_7ff1ce49caf23815 = function(arg0) {
const ret = getObject(arg0).node;
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
const ret = BigInt.asUintN(64, arg0);
return addHeapObject(ret);
};
module.exports.__wbindgen_is_string = function(arg0) {
const ret = typeof(getObject(arg0)) === 'string';
return ret;
};
module.exports.__wbg_set_20cbc34131e76824 = function() { return logError(function (arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
}, arguments) };
module.exports.__wbg_require_a746e79b322b9336 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
module.exports.__wbg_String_91fba7ded13ba54c = function() { return logError(function (arg0, arg1) {
const ret = String(getObject(arg1));
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
module.exports.__wbg_msCrypto_a21fc88caf1ecdc8 = function() { return logError(function (arg0) {
const ret = getObject(arg0).msCrypto;
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_crypto_2036bed7c44c25e7 = function(arg0) {
module.exports.__wbg_crypto_2036bed7c44c25e7 = function() { return logError(function (arg0) {
const ret = getObject(arg0).crypto;
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_msCrypto_a21fc88caf1ecdc8 = function(arg0) {
const ret = getObject(arg0).msCrypto;
return addHeapObject(ret);
};
module.exports.__wbg_getRandomValues_b99eec4244a475bb = function() { return handleError(function (arg0, arg1) {

@@ -1515,7 +1653,12 @@ getObject(arg0).getRandomValues(getObject(arg1));

module.exports.__wbg_static_accessor_NODE_MODULE_cf6401cc1091279e = function() {
module.exports.__wbg_static_accessor_NODE_MODULE_cf6401cc1091279e = function() { return logError(function () {
const ret = module;
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_require_a746e79b322b9336 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_randomFillSync_065afffde01daa66 = function() { return handleError(function (arg0, arg1, arg2) {

@@ -1525,100 +1668,75 @@ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));

module.exports.__wbg_log_ed32fbdd3c7f149c = function(arg0) {
console.log(getObject(arg0));
};
module.exports.__wbg_log_4272138a1f9be847 = function(arg0, arg1) {
console.log(getObject(arg0), getObject(arg1));
};
module.exports.__wbg_new_bfd57da4d3b6c976 = function() {
const ret = new Array();
module.exports.__wbg_process_0cc2ada8524d6f83 = function() { return logError(function (arg0) {
const ret = getObject(arg0).process;
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_newnoargs_e1ddb03293334932 = function(arg0, arg1) {
const ret = new Function(getStringFromWasm0(arg0, arg1));
module.exports.__wbg_versions_c11acceab27a6c87 = function() { return logError(function (arg0) {
const ret = getObject(arg0).versions;
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_next_d5788befa145533f = function(arg0) {
const ret = getObject(arg0).next;
module.exports.__wbg_node_7ff1ce49caf23815 = function() { return logError(function (arg0) {
const ret = getObject(arg0).node;
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbindgen_is_function = function(arg0) {
const ret = typeof(getObject(arg0)) === 'function';
module.exports.__wbindgen_is_string = function(arg0) {
const ret = typeof(getObject(arg0)) === 'string';
_assertBoolean(ret);
return ret;
};
module.exports.__wbg_value_a81c9882b1329c07 = function(arg0) {
const ret = getObject(arg0).value;
return addHeapObject(ret);
};
module.exports.__wbg_iterator_911e8ffa32a68f2d = function() {
const ret = Symbol.iterator;
return addHeapObject(ret);
};
module.exports.__wbg_new_08b60aea8ab679bc = function() {
const ret = new Object();
return addHeapObject(ret);
};
module.exports.__wbg_self_14408afdb5c69451 = function() { return handleError(function () {
const ret = self.self;
return addHeapObject(ret);
module.exports.__wbg_log_4b5638ad60bdc54a = function() { return logError(function (arg0) {
console.log(getObject(arg0));
}, arguments) };
module.exports.__wbg_window_75b1f6151d589837 = function() { return handleError(function () {
const ret = window.window;
return addHeapObject(ret);
module.exports.__wbg_log_89ca282a8a49b121 = function() { return logError(function (arg0, arg1) {
console.log(getObject(arg0), getObject(arg1));
}, arguments) };
module.exports.__wbg_globalThis_e2d2385b94c810da = function() { return handleError(function () {
const ret = globalThis.globalThis;
module.exports.__wbg_new_1d9a920c6bfc44a8 = function() { return logError(function () {
const ret = new Array();
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_global_3c19477360f9b641 = function() { return handleError(function () {
const ret = global.global;
module.exports.__wbg_get_57245cc7d7c7619d = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg0)[arg1 >>> 0];
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_get_5c7997f237e97429 = function(arg0, arg1) {
const ret = getObject(arg0)[arg1 >>> 0];
return addHeapObject(ret);
};
module.exports.__wbg_set_e8f26e21e55fa998 = function(arg0, arg1, arg2) {
module.exports.__wbg_set_a68214f35c417fa9 = function() { return logError(function (arg0, arg1, arg2) {
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
};
}, arguments) };
module.exports.__wbg_from_cfdf43632aee49dc = function(arg0) {
module.exports.__wbg_from_7ce3cb27cb258569 = function() { return logError(function (arg0) {
const ret = Array.from(getObject(arg0));
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_isArray_8d3ac415a656d809 = function(arg0) {
module.exports.__wbg_isArray_27c46c67f498e15d = function() { return logError(function (arg0) {
const ret = Array.isArray(getObject(arg0));
_assertBoolean(ret);
return ret;
};
}, arguments) };
module.exports.__wbg_length_c71e7a4e0f91ff23 = function(arg0) {
module.exports.__wbg_length_6e3bbe7c8bd4dbd8 = function() { return logError(function (arg0) {
const ret = getObject(arg0).length;
_assertNum(ret);
return ret;
};
}, arguments) };
module.exports.__wbg_push_92eb92b6550bd402 = function(arg0, arg1) {
module.exports.__wbg_push_740e4b286702d964 = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg0).push(getObject(arg1));
_assertNum(ret);
return ret;
};
}, arguments) };
module.exports.__wbg_unshift_00a7fd970d7e1e63 = function(arg0, arg1) {
module.exports.__wbg_unshift_1bf718f5eb23ad8a = function() { return logError(function (arg0, arg1) {
const ret = getObject(arg0).unshift(getObject(arg1));
_assertNum(ret);
return ret;
};
}, arguments) };
module.exports.__wbg_instanceof_ArrayBuffer_02bbeeb60438c785 = function(arg0) {
module.exports.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b = function() { return logError(function (arg0) {
let result;

@@ -1631,11 +1749,17 @@ try {

const ret = result;
_assertBoolean(ret);
return ret;
};
}, arguments) };
module.exports.__wbg_new_43eb8504a307460f = function(arg0, arg1) {
module.exports.__wbg_new_8d2af00bc1e329ee = function() { return logError(function (arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_call_a6fa88c3302e8ad5 = function() { return handleError(function (arg0, arg1) {
module.exports.__wbg_newnoargs_b5b063fc6c2f0376 = function() { return logError(function (arg0, arg1) {
const ret = new Function(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).call(getObject(arg1));

@@ -1645,3 +1769,3 @@ return addHeapObject(ret);

module.exports.__wbg_call_fe4813ad4076f5ef = function() { return handleError(function (arg0, arg1, arg2) {
module.exports.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));

@@ -1651,3 +1775,3 @@ return addHeapObject(ret);

module.exports.__wbg_call_15051f75cc194d03 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
module.exports.__wbg_call_e1f72c051cdab859 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));

@@ -1657,3 +1781,3 @@ return addHeapObject(ret);

module.exports.__wbg_next_340569d73e765cd9 = function() { return handleError(function (arg0) {
module.exports.__wbg_next_aaef7c8aa5e212ac = function() { return handleError(function (arg0) {
const ret = getObject(arg0).next();

@@ -1663,8 +1787,19 @@ return addHeapObject(ret);

module.exports.__wbg_done_61149b6f01c9d837 = function(arg0) {
module.exports.__wbg_next_579e583d33566a86 = function() { return logError(function (arg0) {
const ret = getObject(arg0).next;
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_done_1b73b0672e15f234 = function() { return logError(function (arg0) {
const ret = getObject(arg0).done;
_assertBoolean(ret);
return ret;
};
}, arguments) };
module.exports.__wbg_instanceof_Date_e6740d0c5d60fd86 = function(arg0) {
module.exports.__wbg_value_1ccc36bc03462d71 = function() { return logError(function (arg0) {
const ret = getObject(arg0).value;
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_instanceof_Date_b979044f17219415 = function() { return logError(function (arg0) {
let result;

@@ -1677,16 +1812,17 @@ try {

const ret = result;
_assertBoolean(ret);
return ret;
};
}, arguments) };
module.exports.__wbg_getTime_def258a47d72ac06 = function(arg0) {
module.exports.__wbg_getTime_cb82adb2556ed13e = function() { return logError(function (arg0) {
const ret = getObject(arg0).getTime();
return ret;
};
}, arguments) };
module.exports.__wbg_new_aa0f6f30ea91a95b = function(arg0) {
module.exports.__wbg_new_c8631234f931e1c4 = function() { return logError(function (arg0) {
const ret = new Date(getObject(arg0));
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_instanceof_Object_9657a9e91b05959b = function(arg0) {
module.exports.__wbg_instanceof_Object_595a1007518cbea3 = function() { return logError(function (arg0) {
let result;

@@ -1699,51 +1835,67 @@ try {

const ret = result;
_assertBoolean(ret);
return ret;
};
}, arguments) };
module.exports.__wbg_assign_a258c7e1b580da02 = function(arg0, arg1) {
module.exports.__wbg_assign_e3deabdbb7f0913d = function() { return logError(function (arg0, arg1) {
const ret = Object.assign(getObject(arg0), getObject(arg1));
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_defineProperty_9552c9cf2473c7ac = function(arg0, arg1, arg2) {
module.exports.__wbg_defineProperty_e47dcaf04849e02c = function() { return logError(function (arg0, arg1, arg2) {
const ret = Object.defineProperty(getObject(arg0), getObject(arg1), getObject(arg2));
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_entries_cd0d36416cbaf078 = function(arg0) {
module.exports.__wbg_entries_65a76a413fc91037 = function() { return logError(function (arg0) {
const ret = Object.entries(getObject(arg0));
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_keys_9cbdf76026fce1f3 = function(arg0) {
module.exports.__wbg_keys_0702294afaeb6044 = function() { return logError(function (arg0) {
const ret = Object.keys(getObject(arg0));
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_values_d9e962c6432ac1ad = function(arg0) {
module.exports.__wbg_new_0b9bfdd97583284e = function() { return logError(function () {
const ret = new Object();
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_values_f72d246067c121fe = function() { return logError(function (arg0) {
const ret = Object.values(getObject(arg0));
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_for_ca76df8d65bf1e60 = function(arg0, arg1) {
module.exports.__wbg_iterator_6f9d4f28845f426c = function() { return logError(function () {
const ret = Symbol.iterator;
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_for_5dcca67bf52b18ca = function() { return logError(function (arg0, arg1) {
const ret = Symbol.for(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_buffer_e8e1791d59230f6e = function(arg0) {
const ret = getObject(arg0).buffer;
module.exports.__wbg_globalThis_7f206bda628d5286 = function() { return handleError(function () {
const ret = globalThis.globalThis;
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_newwithbyteoffsetandlength_62fab8cdca7b6db0 = function(arg0, arg1, arg2) {
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
module.exports.__wbg_self_6d479506f72c6a71 = function() { return handleError(function () {
const ret = self.self;
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_new_d256fd368dc8455c = function(arg0) {
const ret = new Uint8Array(getObject(arg0));
module.exports.__wbg_window_f2557cc78490aceb = function() { return handleError(function () {
const ret = window.window;
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_instanceof_Uint8Array_36c37b9ca15e3e0a = function(arg0) {
module.exports.__wbg_global_ba75c50d1cf384f4 = function() { return handleError(function () {
const ret = global.global;
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function() { return logError(function (arg0) {
let result;

@@ -1756,25 +1908,48 @@ try {

const ret = result;
_assertBoolean(ret);
return ret;
};
}, arguments) };
module.exports.__wbg_newwithlength_dc0752ff6d0d8cc2 = function(arg0) {
module.exports.__wbg_new_8c3f0052272a457a = function() { return logError(function (arg0) {
const ret = new Uint8Array(getObject(arg0));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_newwithlength_f5933855e4f48a19 = function() { return logError(function (arg0) {
const ret = new Uint8Array(arg0 >>> 0);
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_subarray_fbf3eb17f25d3dd4 = function(arg0, arg1, arg2) {
module.exports.__wbg_newwithbyteoffsetandlength_d9aa266703cb98be = function() { return logError(function (arg0, arg1, arg2) {
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_subarray_58ad4efbb5bcb886 = function() { return logError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
return addHeapObject(ret);
};
}, arguments) };
module.exports.__wbg_length_8c589b0fd9987662 = function(arg0) {
module.exports.__wbg_length_9e1ae1900cb0fbd5 = function() { return logError(function (arg0) {
const ret = getObject(arg0).length;
_assertNum(ret);
return ret;
};
}, arguments) };
module.exports.__wbg_set_ff6a229de2633e38 = function(arg0, arg1, arg2) {
module.exports.__wbg_set_83db9690f9353e79 = function() { return logError(function (arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
}, arguments) };
module.exports.__wbindgen_is_function = function(arg0) {
const ret = typeof(getObject(arg0)) === 'function';
_assertBoolean(ret);
return ret;
};
module.exports.__wbg_apply_60d1002f454683e2 = function() { return handleError(function (arg0, arg1, arg2) {
module.exports.__wbg_buffer_3f3d764d4747d564 = function() { return logError(function (arg0) {
const ret = getObject(arg0).buffer;
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_apply_75f7334893eef4ad = function() { return handleError(function (arg0, arg1, arg2) {
const ret = Reflect.apply(getObject(arg0), getObject(arg1), getObject(arg2));

@@ -1784,8 +1959,9 @@ return addHeapObject(ret);

module.exports.__wbg_deleteProperty_5379f04a5056323a = function() { return handleError(function (arg0, arg1) {
module.exports.__wbg_deleteProperty_424563545efc9635 = function() { return handleError(function (arg0, arg1) {
const ret = Reflect.deleteProperty(getObject(arg0), getObject(arg1));
_assertBoolean(ret);
return ret;
}, arguments) };
module.exports.__wbg_get_556a4c57efe02bcd = function() { return handleError(function (arg0, arg1) {
module.exports.__wbg_get_765201544a2b6869 = function() { return handleError(function (arg0, arg1) {
const ret = Reflect.get(getObject(arg0), getObject(arg1));

@@ -1795,3 +1971,3 @@ return addHeapObject(ret);

module.exports.__wbg_ownKeys_2f16a923cdb48273 = function() { return handleError(function (arg0) {
module.exports.__wbg_ownKeys_bf24e1178641d9f0 = function() { return handleError(function (arg0) {
const ret = Reflect.ownKeys(getObject(arg0));

@@ -1801,4 +1977,5 @@ return addHeapObject(ret);

module.exports.__wbg_set_d43020530506f215 = function() { return handleError(function (arg0, arg1, arg2) {
module.exports.__wbg_set_bf3f89b92d5a34bf = function() { return handleError(function (arg0, arg1, arg2) {
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
_assertBoolean(ret);
return ret;

@@ -1805,0 +1982,0 @@ }, arguments) };

@@ -11,3 +11,3 @@ {

"repository": "github:automerge/automerge-rs",
"version": "0.1.9",
"version": "0.1.10",
"license": "MIT",

@@ -14,0 +14,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc