@rivetkit/rivetkit-wasm 0.0.0-feat-sqlite-sync.32022a9 → 0.0.0-feat-sqlite-sync-3x.a00b07f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pkg/package.json +1 -1
- package/pkg/rivetkit_wasm.d.ts +347 -292
- package/pkg/rivetkit_wasm.js +1517 -1486
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
- package/pkg/rivetkit_wasm_bg.wasm.d.ts +16 -11
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -1,413 +1,221 @@
|
|
|
1
|
-
|
|
1
|
+
/* @ts-self-types="./rivetkit_wasm.d.ts" */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
3
|
+
export class ActorContext {
|
|
4
|
+
static __wrap(ptr) {
|
|
5
|
+
const obj = Object.create(ActorContext.prototype);
|
|
6
|
+
obj.__wbg_ptr = ptr;
|
|
7
|
+
ActorContextFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
8
|
+
return obj;
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
17
|
-
? function (arg, view) {
|
|
18
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
19
|
-
}
|
|
20
|
-
: function (arg, view) {
|
|
21
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
22
|
-
view.set(buf);
|
|
23
|
-
return {
|
|
24
|
-
read: arg.length,
|
|
25
|
-
written: buf.length
|
|
26
|
-
};
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
30
|
-
|
|
31
|
-
if (realloc === undefined) {
|
|
32
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
33
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
34
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
35
|
-
WASM_VECTOR_LEN = buf.length;
|
|
10
|
+
__destroy_into_raw() {
|
|
11
|
+
const ptr = this.__wbg_ptr;
|
|
12
|
+
this.__wbg_ptr = 0;
|
|
13
|
+
ActorContextFinalization.unregister(this);
|
|
36
14
|
return ptr;
|
|
37
15
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const mem = getUint8ArrayMemory0();
|
|
43
|
-
|
|
44
|
-
let offset = 0;
|
|
45
|
-
|
|
46
|
-
for (; offset < len; offset++) {
|
|
47
|
-
const code = arg.charCodeAt(offset);
|
|
48
|
-
if (code > 0x7F) break;
|
|
49
|
-
mem[ptr + offset] = code;
|
|
16
|
+
free() {
|
|
17
|
+
const ptr = this.__destroy_into_raw();
|
|
18
|
+
wasm.__wbg_actorcontext_free(ptr, 0);
|
|
50
19
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @returns {any}
|
|
22
|
+
*/
|
|
23
|
+
abortSignal() {
|
|
24
|
+
const ret = wasm.actorcontext_abortSignal(this.__wbg_ptr);
|
|
25
|
+
if (ret[2]) {
|
|
26
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
55
27
|
}
|
|
56
|
-
|
|
57
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
58
|
-
const ret = encodeString(arg, view);
|
|
59
|
-
|
|
60
|
-
offset += ret.written;
|
|
61
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
WASM_VECTOR_LEN = offset;
|
|
65
|
-
return ptr;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
let cachedDataViewMemory0 = null;
|
|
69
|
-
|
|
70
|
-
function getDataViewMemory0() {
|
|
71
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
72
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
73
|
-
}
|
|
74
|
-
return cachedDataViewMemory0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function addToExternrefTable0(obj) {
|
|
78
|
-
const idx = wasm.__externref_table_alloc();
|
|
79
|
-
wasm.__wbindgen_export_4.set(idx, obj);
|
|
80
|
-
return idx;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function handleError(f, args) {
|
|
84
|
-
try {
|
|
85
|
-
return f.apply(this, args);
|
|
86
|
-
} catch (e) {
|
|
87
|
-
const idx = addToExternrefTable0(e);
|
|
88
|
-
wasm.__wbindgen_exn_store(idx);
|
|
28
|
+
return takeFromExternrefTable0(ret[0]);
|
|
89
29
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
function getStringFromWasm0(ptr, len) {
|
|
97
|
-
ptr = ptr >>> 0;
|
|
98
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
102
|
-
ptr = ptr >>> 0;
|
|
103
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function isLikeNone(x) {
|
|
107
|
-
return x === undefined || x === null;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
111
|
-
? { register: () => {}, unregister: () => {} }
|
|
112
|
-
: new FinalizationRegistry(state => {
|
|
113
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
117
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
118
|
-
const real = (...args) => {
|
|
119
|
-
// First up with a closure we increment the internal reference
|
|
120
|
-
// count. This ensures that the Rust closure environment won't
|
|
121
|
-
// be deallocated while we're invoking it.
|
|
122
|
-
state.cnt++;
|
|
123
|
-
const a = state.a;
|
|
124
|
-
state.a = 0;
|
|
30
|
+
/**
|
|
31
|
+
* @returns {string}
|
|
32
|
+
*/
|
|
33
|
+
actorId() {
|
|
34
|
+
let deferred1_0;
|
|
35
|
+
let deferred1_1;
|
|
125
36
|
try {
|
|
126
|
-
|
|
37
|
+
const ret = wasm.actorcontext_actorId(this.__wbg_ptr);
|
|
38
|
+
deferred1_0 = ret[0];
|
|
39
|
+
deferred1_1 = ret[1];
|
|
40
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
127
41
|
} finally {
|
|
128
|
-
|
|
129
|
-
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
130
|
-
CLOSURE_DTORS.unregister(state);
|
|
131
|
-
} else {
|
|
132
|
-
state.a = a;
|
|
133
|
-
}
|
|
42
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
134
43
|
}
|
|
135
|
-
};
|
|
136
|
-
real.original = state;
|
|
137
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
138
|
-
return real;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function debugString(val) {
|
|
142
|
-
// primitive types
|
|
143
|
-
const type = typeof val;
|
|
144
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
145
|
-
return `${val}`;
|
|
146
44
|
}
|
|
147
|
-
|
|
148
|
-
|
|
45
|
+
/**
|
|
46
|
+
* @returns {number}
|
|
47
|
+
*/
|
|
48
|
+
beginKeepAwake() {
|
|
49
|
+
const ret = wasm.actorcontext_beginKeepAwake(this.__wbg_ptr);
|
|
50
|
+
return ret >>> 0;
|
|
149
51
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
if (description == null) {
|
|
153
|
-
return 'Symbol';
|
|
154
|
-
} else {
|
|
155
|
-
return `Symbol(${description})`;
|
|
156
|
-
}
|
|
52
|
+
beginOnStateChange() {
|
|
53
|
+
wasm.actorcontext_beginOnStateChange(this.__wbg_ptr);
|
|
157
54
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
55
|
+
/**
|
|
56
|
+
* @param {number | null} [timeout_ms]
|
|
57
|
+
* @returns {Promise<ActorStateTransaction>}
|
|
58
|
+
*/
|
|
59
|
+
beginStateTransaction(timeout_ms) {
|
|
60
|
+
const ret = wasm.actorcontext_beginStateTransaction(this.__wbg_ptr, !isLikeNone(timeout_ms), isLikeNone(timeout_ms) ? 0 : timeout_ms);
|
|
61
|
+
return ret;
|
|
165
62
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
for(let i = 1; i < length; i++) {
|
|
174
|
-
debug += ', ' + debugString(val[i]);
|
|
175
|
-
}
|
|
176
|
-
debug += ']';
|
|
177
|
-
return debug;
|
|
63
|
+
/**
|
|
64
|
+
* @returns {number}
|
|
65
|
+
*/
|
|
66
|
+
beginWebsocketCallback() {
|
|
67
|
+
const ret = wasm.actorcontext_beginWebsocketCallback(this.__wbg_ptr);
|
|
68
|
+
return ret >>> 0;
|
|
178
69
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
70
|
+
/**
|
|
71
|
+
* @param {string} name
|
|
72
|
+
* @param {Uint8Array} args
|
|
73
|
+
*/
|
|
74
|
+
broadcast(name, args) {
|
|
75
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
76
|
+
const len0 = WASM_VECTOR_LEN;
|
|
77
|
+
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
78
|
+
const len1 = WASM_VECTOR_LEN;
|
|
79
|
+
wasm.actorcontext_broadcast(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
187
80
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
81
|
+
/**
|
|
82
|
+
* @param {Uint8Array} params
|
|
83
|
+
* @param {any} request
|
|
84
|
+
* @returns {Promise<ConnHandle>}
|
|
85
|
+
*/
|
|
86
|
+
connectConn(params, request) {
|
|
87
|
+
const ptr0 = passArray8ToWasm0(params, wasm.__wbindgen_malloc);
|
|
88
|
+
const len0 = WASM_VECTOR_LEN;
|
|
89
|
+
const ret = wasm.actorcontext_connectConn(this.__wbg_ptr, ptr0, len0, request);
|
|
90
|
+
return ret;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @returns {Array<any>}
|
|
94
|
+
*/
|
|
95
|
+
conns() {
|
|
96
|
+
const ret = wasm.actorcontext_conns(this.__wbg_ptr);
|
|
97
|
+
return ret;
|
|
98
|
+
}
|
|
99
|
+
destroy() {
|
|
100
|
+
const ret = wasm.actorcontext_destroy(this.__wbg_ptr);
|
|
101
|
+
if (ret[1]) {
|
|
102
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
196
103
|
}
|
|
197
104
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export function start() {
|
|
207
|
-
wasm.start();
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* @returns {string}
|
|
212
|
-
*/
|
|
213
|
-
export function bridgeRivetErrorPrefix() {
|
|
214
|
-
let deferred1_0;
|
|
215
|
-
let deferred1_1;
|
|
216
|
-
try {
|
|
217
|
-
const ret = wasm.bridgeRivetErrorPrefix();
|
|
218
|
-
deferred1_0 = ret[0];
|
|
219
|
-
deferred1_1 = ret[1];
|
|
220
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
221
|
-
} finally {
|
|
222
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
227
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
228
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
229
|
-
WASM_VECTOR_LEN = arg.length;
|
|
230
|
-
return ptr;
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* @param {Uint8Array} bytes
|
|
234
|
-
* @returns {Uint8Array}
|
|
235
|
-
*/
|
|
236
|
-
export function roundTripBytes(bytes) {
|
|
237
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
238
|
-
const len0 = WASM_VECTOR_LEN;
|
|
239
|
-
const ret = wasm.roundTripBytes(ptr0, len0);
|
|
240
|
-
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
241
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
242
|
-
return v2;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* @param {Uint8Array} bytes
|
|
247
|
-
* @returns {Uint8Array}
|
|
248
|
-
*/
|
|
249
|
-
export function uint8ArrayFromBytes(bytes) {
|
|
250
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
251
|
-
const len0 = WASM_VECTOR_LEN;
|
|
252
|
-
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
253
|
-
return ret;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* @param {Promise<any>} promise
|
|
258
|
-
* @returns {Promise<any>}
|
|
259
|
-
*/
|
|
260
|
-
export function awaitPromise(promise) {
|
|
261
|
-
const ret = wasm.awaitPromise(promise);
|
|
262
|
-
return ret;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
function _assertClass(instance, klass) {
|
|
266
|
-
if (!(instance instanceof klass)) {
|
|
267
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
function takeFromExternrefTable0(idx) {
|
|
272
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
273
|
-
wasm.__externref_table_dealloc(idx);
|
|
274
|
-
return value;
|
|
275
|
-
}
|
|
276
|
-
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
277
|
-
wasm.closure2000_externref_shim(arg0, arg1, arg2);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
281
|
-
wasm.closure2344_externref_shim(arg0, arg1, arg2);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
function __wbg_adapter_297(arg0, arg1, arg2, arg3) {
|
|
285
|
-
wasm.closure2578_externref_shim(arg0, arg1, arg2, arg3);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
289
|
-
|
|
290
|
-
const ActorContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
291
|
-
? { register: () => {}, unregister: () => {} }
|
|
292
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_actorcontext_free(ptr >>> 0, 1));
|
|
293
|
-
|
|
294
|
-
export class ActorContext {
|
|
295
|
-
|
|
296
|
-
static __wrap(ptr) {
|
|
297
|
-
ptr = ptr >>> 0;
|
|
298
|
-
const obj = Object.create(ActorContext.prototype);
|
|
299
|
-
obj.__wbg_ptr = ptr;
|
|
300
|
-
ActorContextFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
301
|
-
return obj;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
__destroy_into_raw() {
|
|
305
|
-
const ptr = this.__wbg_ptr;
|
|
306
|
-
this.__wbg_ptr = 0;
|
|
307
|
-
ActorContextFinalization.unregister(this);
|
|
308
|
-
return ptr;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
free() {
|
|
312
|
-
const ptr = this.__destroy_into_raw();
|
|
313
|
-
wasm.__wbg_actorcontext_free(ptr, 0);
|
|
105
|
+
/**
|
|
106
|
+
* @returns {Array<any>}
|
|
107
|
+
*/
|
|
108
|
+
dirtyHibernatableConns() {
|
|
109
|
+
const ret = wasm.actorcontext_dirtyHibernatableConns(this.__wbg_ptr);
|
|
110
|
+
return ret;
|
|
314
111
|
}
|
|
315
112
|
/**
|
|
316
|
-
* @param {
|
|
317
|
-
* @returns {Promise<void>}
|
|
113
|
+
* @param {number} region_id
|
|
318
114
|
*/
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
return ret;
|
|
115
|
+
endKeepAwake(region_id) {
|
|
116
|
+
wasm.actorcontext_endKeepAwake(this.__wbg_ptr, region_id);
|
|
322
117
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
* @param {any} request
|
|
326
|
-
* @returns {Promise<ConnHandle>}
|
|
327
|
-
*/
|
|
328
|
-
connectConn(params, request) {
|
|
329
|
-
const ptr0 = passArray8ToWasm0(params, wasm.__wbindgen_malloc);
|
|
330
|
-
const len0 = WASM_VECTOR_LEN;
|
|
331
|
-
const ret = wasm.actorcontext_connectConn(this.__wbg_ptr, ptr0, len0, request);
|
|
332
|
-
return ret;
|
|
118
|
+
endOnStateChange() {
|
|
119
|
+
wasm.actorcontext_endOnStateChange(this.__wbg_ptr);
|
|
333
120
|
}
|
|
334
121
|
/**
|
|
335
|
-
* @param {number
|
|
336
|
-
* @returns {Promise<void>}
|
|
122
|
+
* @param {number} region_id
|
|
337
123
|
*/
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
return ret;
|
|
124
|
+
endWebsocketCallback(region_id) {
|
|
125
|
+
wasm.actorcontext_endWebsocketCallback(this.__wbg_ptr, region_id);
|
|
341
126
|
}
|
|
342
127
|
/**
|
|
343
|
-
* @
|
|
344
|
-
* @returns {Promise<void>}
|
|
128
|
+
* @returns {object}
|
|
345
129
|
*/
|
|
346
|
-
|
|
347
|
-
const ret = wasm.
|
|
348
|
-
|
|
130
|
+
inspectorSnapshot() {
|
|
131
|
+
const ret = wasm.actorcontext_inspectorSnapshot(this.__wbg_ptr);
|
|
132
|
+
if (ret[2]) {
|
|
133
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
134
|
+
}
|
|
135
|
+
return takeFromExternrefTable0(ret[0]);
|
|
349
136
|
}
|
|
350
137
|
/**
|
|
351
|
-
* @param {
|
|
352
|
-
* @returns {Promise<void>}
|
|
138
|
+
* @param {Promise<any>} promise
|
|
353
139
|
*/
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
var len0 = WASM_VECTOR_LEN;
|
|
357
|
-
const ret = wasm.actorcontext_verifyInspectorAuth(this.__wbg_ptr, ptr0, len0);
|
|
358
|
-
return ret;
|
|
140
|
+
keepAwake(promise) {
|
|
141
|
+
wasm.actorcontext_keepAwake(this.__wbg_ptr, promise);
|
|
359
142
|
}
|
|
360
143
|
/**
|
|
361
|
-
* @
|
|
362
|
-
* @returns {Promise<ActorStateTransaction>}
|
|
144
|
+
* @returns {any}
|
|
363
145
|
*/
|
|
364
|
-
|
|
365
|
-
const ret = wasm.
|
|
366
|
-
|
|
146
|
+
key() {
|
|
147
|
+
const ret = wasm.actorcontext_key(this.__wbg_ptr);
|
|
148
|
+
if (ret[2]) {
|
|
149
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
150
|
+
}
|
|
151
|
+
return takeFromExternrefTable0(ret[0]);
|
|
367
152
|
}
|
|
368
153
|
/**
|
|
369
|
-
* @
|
|
370
|
-
* @returns {Promise<void>}
|
|
154
|
+
* @returns {Kv}
|
|
371
155
|
*/
|
|
372
|
-
|
|
373
|
-
const ret = wasm.
|
|
374
|
-
return ret;
|
|
156
|
+
kv() {
|
|
157
|
+
const ret = wasm.actorcontext_kv(this.__wbg_ptr);
|
|
158
|
+
return Kv.__wrap(ret);
|
|
375
159
|
}
|
|
376
160
|
/**
|
|
377
|
-
* @returns {
|
|
161
|
+
* @returns {string}
|
|
378
162
|
*/
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
163
|
+
name() {
|
|
164
|
+
let deferred1_0;
|
|
165
|
+
let deferred1_1;
|
|
166
|
+
try {
|
|
167
|
+
const ret = wasm.actorcontext_name(this.__wbg_ptr);
|
|
168
|
+
deferred1_0 = ret[0];
|
|
169
|
+
deferred1_1 = ret[1];
|
|
170
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
171
|
+
} finally {
|
|
172
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
constructor() {
|
|
176
|
+
const ret = wasm.actorcontext_new();
|
|
177
|
+
if (ret[2]) {
|
|
178
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
179
|
+
}
|
|
180
|
+
this.__wbg_ptr = ret[0];
|
|
181
|
+
ActorContextFinalization.register(this, this.__wbg_ptr, this);
|
|
182
|
+
return this;
|
|
382
183
|
}
|
|
383
184
|
/**
|
|
384
|
-
* @returns {
|
|
185
|
+
* @returns {Queue}
|
|
385
186
|
*/
|
|
386
|
-
|
|
387
|
-
const ret = wasm.
|
|
388
|
-
return ret;
|
|
187
|
+
queue() {
|
|
188
|
+
const ret = wasm.actorcontext_queue(this.__wbg_ptr);
|
|
189
|
+
return Queue.__wrap(ret);
|
|
389
190
|
}
|
|
390
191
|
/**
|
|
391
|
-
* @
|
|
192
|
+
* @returns {string}
|
|
392
193
|
*/
|
|
393
|
-
|
|
394
|
-
|
|
194
|
+
region() {
|
|
195
|
+
let deferred1_0;
|
|
196
|
+
let deferred1_1;
|
|
197
|
+
try {
|
|
198
|
+
const ret = wasm.actorcontext_region(this.__wbg_ptr);
|
|
199
|
+
deferred1_0 = ret[0];
|
|
200
|
+
deferred1_1 = ret[1];
|
|
201
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
202
|
+
} finally {
|
|
203
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
204
|
+
}
|
|
395
205
|
}
|
|
396
206
|
/**
|
|
397
207
|
* @param {Promise<any>} promise
|
|
398
208
|
*/
|
|
399
|
-
|
|
400
|
-
wasm.
|
|
209
|
+
registerTask(promise) {
|
|
210
|
+
wasm.actorcontext_registerTask(this.__wbg_ptr, promise);
|
|
401
211
|
}
|
|
402
212
|
/**
|
|
403
|
-
* @
|
|
213
|
+
* @param {any} opts
|
|
214
|
+
* @returns {Promise<void>}
|
|
404
215
|
*/
|
|
405
|
-
|
|
406
|
-
const ret = wasm.
|
|
407
|
-
|
|
408
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
409
|
-
}
|
|
410
|
-
return takeFromExternrefTable0(ret[0]);
|
|
216
|
+
requestSaveAndWait(opts) {
|
|
217
|
+
const ret = wasm.actorcontext_requestSaveAndWait(this.__wbg_ptr, opts);
|
|
218
|
+
return ret;
|
|
411
219
|
}
|
|
412
220
|
/**
|
|
413
221
|
* @param {any} opts
|
|
@@ -415,11 +223,11 @@ export class ActorContext {
|
|
|
415
223
|
requestSave(opts) {
|
|
416
224
|
wasm.actorcontext_requestSave(this.__wbg_ptr, opts);
|
|
417
225
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
226
|
+
restartRunHandler() {
|
|
227
|
+
const ret = wasm.actorcontext_restartRunHandler(this.__wbg_ptr);
|
|
228
|
+
if (ret[1]) {
|
|
229
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
230
|
+
}
|
|
423
231
|
}
|
|
424
232
|
/**
|
|
425
233
|
* @returns {any}
|
|
@@ -429,92 +237,50 @@ export class ActorContext {
|
|
|
429
237
|
return ret;
|
|
430
238
|
}
|
|
431
239
|
/**
|
|
432
|
-
* @param {
|
|
240
|
+
* @param {any} writes
|
|
241
|
+
* @returns {Promise<void>}
|
|
433
242
|
*/
|
|
434
|
-
|
|
435
|
-
wasm.
|
|
243
|
+
saveStateAndWorkflowBatch(writes) {
|
|
244
|
+
const ret = wasm.actorcontext_saveStateAndWorkflowBatch(this.__wbg_ptr, writes);
|
|
245
|
+
return ret;
|
|
436
246
|
}
|
|
437
247
|
/**
|
|
438
|
-
* @
|
|
248
|
+
* @param {any} payload
|
|
249
|
+
* @returns {Promise<void>}
|
|
439
250
|
*/
|
|
440
|
-
|
|
441
|
-
const ret = wasm.
|
|
442
|
-
return ret
|
|
251
|
+
saveState(payload) {
|
|
252
|
+
const ret = wasm.actorcontext_saveState(this.__wbg_ptr, payload);
|
|
253
|
+
return ret;
|
|
443
254
|
}
|
|
444
255
|
/**
|
|
445
|
-
* @returns {
|
|
256
|
+
* @returns {Schedule}
|
|
446
257
|
*/
|
|
447
|
-
|
|
448
|
-
const ret = wasm.
|
|
449
|
-
|
|
450
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
451
|
-
}
|
|
452
|
-
return takeFromExternrefTable0(ret[0]);
|
|
453
|
-
}
|
|
454
|
-
endOnStateChange() {
|
|
455
|
-
wasm.actorcontext_endOnStateChange(this.__wbg_ptr);
|
|
258
|
+
schedule() {
|
|
259
|
+
const ret = wasm.actorcontext_schedule(this.__wbg_ptr);
|
|
260
|
+
return Schedule.__wrap(ret);
|
|
456
261
|
}
|
|
457
|
-
|
|
458
|
-
|
|
262
|
+
/**
|
|
263
|
+
* @param {number | null} [timestamp_ms]
|
|
264
|
+
*/
|
|
265
|
+
setAlarm(timestamp_ms) {
|
|
266
|
+
const ret = wasm.actorcontext_setAlarm(this.__wbg_ptr, !isLikeNone(timestamp_ms), isLikeNone(timestamp_ms) ? 0 : timestamp_ms);
|
|
459
267
|
if (ret[1]) {
|
|
460
268
|
throw takeFromExternrefTable0(ret[0]);
|
|
461
269
|
}
|
|
462
270
|
}
|
|
463
|
-
beginOnStateChange() {
|
|
464
|
-
wasm.actorcontext_beginOnStateChange(this.__wbg_ptr);
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* @param {number} region_id
|
|
468
|
-
*/
|
|
469
|
-
endWebsocketCallback(region_id) {
|
|
470
|
-
wasm.actorcontext_endWebsocketCallback(this.__wbg_ptr, region_id);
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* @returns {number}
|
|
474
|
-
*/
|
|
475
|
-
beginWebsocketCallback() {
|
|
476
|
-
const ret = wasm.actorcontext_beginWebsocketCallback(this.__wbg_ptr);
|
|
477
|
-
return ret >>> 0;
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* @returns {Array<any>}
|
|
481
|
-
*/
|
|
482
|
-
dirtyHibernatableConns() {
|
|
483
|
-
const ret = wasm.actorcontext_dirtyHibernatableConns(this.__wbg_ptr);
|
|
484
|
-
return ret;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* @returns {Kv}
|
|
488
|
-
*/
|
|
489
|
-
kv() {
|
|
490
|
-
const ret = wasm.actorcontext_kv(this.__wbg_ptr);
|
|
491
|
-
return Kv.__wrap(ret);
|
|
492
|
-
}
|
|
493
271
|
/**
|
|
494
|
-
* @
|
|
272
|
+
* @param {number | null} [timestamp_ms]
|
|
273
|
+
* @returns {Promise<void>}
|
|
495
274
|
*/
|
|
496
|
-
|
|
497
|
-
const ret = wasm.
|
|
275
|
+
setRunWakeAt(timestamp_ms) {
|
|
276
|
+
const ret = wasm.actorcontext_setRunWakeAt(this.__wbg_ptr, !isLikeNone(timestamp_ms), isLikeNone(timestamp_ms) ? 0 : timestamp_ms);
|
|
498
277
|
return ret;
|
|
499
278
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
const ret = wasm.actorcontext_key(this.__wbg_ptr);
|
|
505
|
-
if (ret[2]) {
|
|
506
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
507
|
-
}
|
|
508
|
-
return takeFromExternrefTable0(ret[0]);
|
|
509
|
-
}
|
|
510
|
-
constructor() {
|
|
511
|
-
const ret = wasm.actorcontext_new();
|
|
512
|
-
if (ret[2]) {
|
|
513
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
279
|
+
sleep() {
|
|
280
|
+
const ret = wasm.actorcontext_sleep(this.__wbg_ptr);
|
|
281
|
+
if (ret[1]) {
|
|
282
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
514
283
|
}
|
|
515
|
-
this.__wbg_ptr = ret[0] >>> 0;
|
|
516
|
-
ActorContextFinalization.register(this, this.__wbg_ptr, this);
|
|
517
|
-
return this;
|
|
518
284
|
}
|
|
519
285
|
/**
|
|
520
286
|
* @returns {SqliteDb}
|
|
@@ -523,41 +289,6 @@ export class ActorContext {
|
|
|
523
289
|
const ret = wasm.actorcontext_sql(this.__wbg_ptr);
|
|
524
290
|
return SqliteDb.__wrap(ret);
|
|
525
291
|
}
|
|
526
|
-
/**
|
|
527
|
-
* @returns {string}
|
|
528
|
-
*/
|
|
529
|
-
name() {
|
|
530
|
-
let deferred1_0;
|
|
531
|
-
let deferred1_1;
|
|
532
|
-
try {
|
|
533
|
-
const ret = wasm.actorcontext_name(this.__wbg_ptr);
|
|
534
|
-
deferred1_0 = ret[0];
|
|
535
|
-
deferred1_1 = ret[1];
|
|
536
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
537
|
-
} finally {
|
|
538
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
/**
|
|
542
|
-
* @returns {Array<any>}
|
|
543
|
-
*/
|
|
544
|
-
conns() {
|
|
545
|
-
const ret = wasm.actorcontext_conns(this.__wbg_ptr);
|
|
546
|
-
return ret;
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
* @returns {Queue}
|
|
550
|
-
*/
|
|
551
|
-
queue() {
|
|
552
|
-
const ret = wasm.actorcontext_kv(this.__wbg_ptr);
|
|
553
|
-
return Queue.__wrap(ret);
|
|
554
|
-
}
|
|
555
|
-
sleep() {
|
|
556
|
-
const ret = wasm.actorcontext_sleep(this.__wbg_ptr);
|
|
557
|
-
if (ret[1]) {
|
|
558
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
292
|
/**
|
|
562
293
|
* @returns {Uint8Array}
|
|
563
294
|
*/
|
|
@@ -568,83 +299,52 @@ export class ActorContext {
|
|
|
568
299
|
return v1;
|
|
569
300
|
}
|
|
570
301
|
/**
|
|
571
|
-
* @returns {
|
|
302
|
+
* @returns {Array<any>}
|
|
572
303
|
*/
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
try {
|
|
577
|
-
const ret = wasm.actorcontext_region(this.__wbg_ptr);
|
|
578
|
-
deferred1_0 = ret[0];
|
|
579
|
-
deferred1_1 = ret[1];
|
|
580
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
581
|
-
} finally {
|
|
582
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
destroy() {
|
|
586
|
-
const ret = wasm.actorcontext_destroy(this.__wbg_ptr);
|
|
587
|
-
if (ret[1]) {
|
|
588
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
589
|
-
}
|
|
304
|
+
takePendingHibernationChanges() {
|
|
305
|
+
const ret = wasm.actorcontext_takePendingHibernationChanges(this.__wbg_ptr);
|
|
306
|
+
return ret;
|
|
590
307
|
}
|
|
591
308
|
/**
|
|
592
|
-
* @
|
|
309
|
+
* @param {string | null} [bearer_token]
|
|
310
|
+
* @returns {Promise<void>}
|
|
593
311
|
*/
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
deferred1_0 = ret[0];
|
|
600
|
-
deferred1_1 = ret[1];
|
|
601
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
602
|
-
} finally {
|
|
603
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
604
|
-
}
|
|
312
|
+
verifyInspectorAuth(bearer_token) {
|
|
313
|
+
var ptr0 = isLikeNone(bearer_token) ? 0 : passStringToWasm0(bearer_token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
314
|
+
var len0 = WASM_VECTOR_LEN;
|
|
315
|
+
const ret = wasm.actorcontext_verifyInspectorAuth(this.__wbg_ptr, ptr0, len0);
|
|
316
|
+
return ret;
|
|
605
317
|
}
|
|
606
318
|
/**
|
|
607
|
-
* @returns {
|
|
319
|
+
* @returns {Promise<void>}
|
|
608
320
|
*/
|
|
609
|
-
|
|
610
|
-
const ret = wasm.
|
|
611
|
-
return
|
|
321
|
+
waitForTrackedShutdownWorkUnbounded() {
|
|
322
|
+
const ret = wasm.actorcontext_waitForTrackedShutdownWorkUnbounded(this.__wbg_ptr);
|
|
323
|
+
return ret;
|
|
612
324
|
}
|
|
613
325
|
/**
|
|
614
|
-
* @
|
|
615
|
-
* @param {Uint8Array} args
|
|
326
|
+
* @returns {Promise<boolean>}
|
|
616
327
|
*/
|
|
617
|
-
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
621
|
-
const len1 = WASM_VECTOR_LEN;
|
|
622
|
-
wasm.actorcontext_broadcast(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
328
|
+
waitForTrackedShutdownWork() {
|
|
329
|
+
const ret = wasm.actorcontext_waitForTrackedShutdownWork(this.__wbg_ptr);
|
|
330
|
+
return ret;
|
|
623
331
|
}
|
|
624
332
|
/**
|
|
625
|
-
* @param {
|
|
333
|
+
* @param {Promise<any>} promise
|
|
626
334
|
*/
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
if (ret[1]) {
|
|
630
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
631
|
-
}
|
|
335
|
+
waitUntil(promise) {
|
|
336
|
+
wasm.actorcontext_waitUntil(this.__wbg_ptr, promise);
|
|
632
337
|
}
|
|
633
338
|
}
|
|
634
|
-
|
|
635
|
-
const ActorFactoryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
636
|
-
? { register: () => {}, unregister: () => {} }
|
|
637
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_actorfactory_free(ptr >>> 0, 1));
|
|
339
|
+
if (Symbol.dispose) ActorContext.prototype[Symbol.dispose] = ActorContext.prototype.free;
|
|
638
340
|
|
|
639
341
|
export class ActorFactory {
|
|
640
|
-
|
|
641
342
|
__destroy_into_raw() {
|
|
642
343
|
const ptr = this.__wbg_ptr;
|
|
643
344
|
this.__wbg_ptr = 0;
|
|
644
345
|
ActorFactoryFinalization.unregister(this);
|
|
645
346
|
return ptr;
|
|
646
347
|
}
|
|
647
|
-
|
|
648
348
|
free() {
|
|
649
349
|
const ptr = this.__destroy_into_raw();
|
|
650
350
|
wasm.__wbg_actorfactory_free(ptr, 0);
|
|
@@ -658,33 +358,26 @@ export class ActorFactory {
|
|
|
658
358
|
if (ret[2]) {
|
|
659
359
|
throw takeFromExternrefTable0(ret[1]);
|
|
660
360
|
}
|
|
661
|
-
this.__wbg_ptr = ret[0]
|
|
361
|
+
this.__wbg_ptr = ret[0];
|
|
662
362
|
ActorFactoryFinalization.register(this, this.__wbg_ptr, this);
|
|
663
363
|
return this;
|
|
664
364
|
}
|
|
665
365
|
}
|
|
666
|
-
|
|
667
|
-
const ActorStateTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
668
|
-
? { register: () => {}, unregister: () => {} }
|
|
669
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_actorstatetransaction_free(ptr >>> 0, 1));
|
|
366
|
+
if (Symbol.dispose) ActorFactory.prototype[Symbol.dispose] = ActorFactory.prototype.free;
|
|
670
367
|
|
|
671
368
|
export class ActorStateTransaction {
|
|
672
|
-
|
|
673
369
|
static __wrap(ptr) {
|
|
674
|
-
ptr = ptr >>> 0;
|
|
675
370
|
const obj = Object.create(ActorStateTransaction.prototype);
|
|
676
371
|
obj.__wbg_ptr = ptr;
|
|
677
372
|
ActorStateTransactionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
678
373
|
return obj;
|
|
679
374
|
}
|
|
680
|
-
|
|
681
375
|
__destroy_into_raw() {
|
|
682
376
|
const ptr = this.__wbg_ptr;
|
|
683
377
|
this.__wbg_ptr = 0;
|
|
684
378
|
ActorStateTransactionFinalization.unregister(this);
|
|
685
379
|
return ptr;
|
|
686
380
|
}
|
|
687
|
-
|
|
688
381
|
free() {
|
|
689
382
|
const ptr = this.__destroy_into_raw();
|
|
690
383
|
wasm.__wbg_actorstatetransaction_free(ptr, 0);
|
|
@@ -716,77 +409,97 @@ export class ActorStateTransaction {
|
|
|
716
409
|
return ret;
|
|
717
410
|
}
|
|
718
411
|
}
|
|
412
|
+
if (Symbol.dispose) ActorStateTransaction.prototype[Symbol.dispose] = ActorStateTransaction.prototype.free;
|
|
719
413
|
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
414
|
+
/**
|
|
415
|
+
* Registration returned by `CancellationToken.onCancelled`.
|
|
416
|
+
*/
|
|
417
|
+
export class CancellationListener {
|
|
418
|
+
static __wrap(ptr) {
|
|
419
|
+
const obj = Object.create(CancellationListener.prototype);
|
|
420
|
+
obj.__wbg_ptr = ptr;
|
|
421
|
+
CancellationListenerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
422
|
+
return obj;
|
|
423
|
+
}
|
|
424
|
+
__destroy_into_raw() {
|
|
425
|
+
const ptr = this.__wbg_ptr;
|
|
426
|
+
this.__wbg_ptr = 0;
|
|
427
|
+
CancellationListenerFinalization.unregister(this);
|
|
428
|
+
return ptr;
|
|
429
|
+
}
|
|
430
|
+
free() {
|
|
431
|
+
const ptr = this.__destroy_into_raw();
|
|
432
|
+
wasm.__wbg_cancellationlistener_free(ptr, 0);
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Stops waiting for cancellation without calling the callback.
|
|
436
|
+
*/
|
|
437
|
+
release() {
|
|
438
|
+
wasm.cancellationlistener_release(this.__wbg_ptr);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
if (Symbol.dispose) CancellationListener.prototype[Symbol.dispose] = CancellationListener.prototype.free;
|
|
723
442
|
|
|
724
443
|
export class CancellationToken {
|
|
725
|
-
|
|
726
444
|
static __wrap(ptr) {
|
|
727
|
-
ptr = ptr >>> 0;
|
|
728
445
|
const obj = Object.create(CancellationToken.prototype);
|
|
729
446
|
obj.__wbg_ptr = ptr;
|
|
730
447
|
CancellationTokenFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
731
448
|
return obj;
|
|
732
449
|
}
|
|
733
|
-
|
|
734
450
|
__destroy_into_raw() {
|
|
735
451
|
const ptr = this.__wbg_ptr;
|
|
736
452
|
this.__wbg_ptr = 0;
|
|
737
453
|
CancellationTokenFinalization.unregister(this);
|
|
738
454
|
return ptr;
|
|
739
455
|
}
|
|
740
|
-
|
|
741
456
|
free() {
|
|
742
457
|
const ptr = this.__destroy_into_raw();
|
|
743
458
|
wasm.__wbg_cancellationtoken_free(ptr, 0);
|
|
744
459
|
}
|
|
745
460
|
/**
|
|
746
|
-
* @
|
|
461
|
+
* @returns {boolean}
|
|
747
462
|
*/
|
|
748
|
-
|
|
749
|
-
wasm.
|
|
463
|
+
aborted() {
|
|
464
|
+
const ret = wasm.cancellationtoken_aborted(this.__wbg_ptr);
|
|
465
|
+
return ret !== 0;
|
|
466
|
+
}
|
|
467
|
+
cancel() {
|
|
468
|
+
wasm.cancellationtoken_cancel(this.__wbg_ptr);
|
|
750
469
|
}
|
|
751
470
|
constructor() {
|
|
752
471
|
const ret = wasm.cancellationtoken_new();
|
|
753
|
-
this.__wbg_ptr = ret
|
|
472
|
+
this.__wbg_ptr = ret;
|
|
754
473
|
CancellationTokenFinalization.register(this, this.__wbg_ptr, this);
|
|
755
474
|
return this;
|
|
756
475
|
}
|
|
757
|
-
cancel() {
|
|
758
|
-
wasm.cancellationtoken_cancel(this.__wbg_ptr);
|
|
759
|
-
}
|
|
760
476
|
/**
|
|
761
|
-
*
|
|
477
|
+
* Calls `callback` once when the token is cancelled. Release the returned
|
|
478
|
+
* listener when cancellation no longer matters; otherwise the waiting task
|
|
479
|
+
* and the callback stay alive until the token is cancelled.
|
|
480
|
+
* @param {Function} callback
|
|
481
|
+
* @returns {CancellationListener}
|
|
762
482
|
*/
|
|
763
|
-
|
|
764
|
-
const ret = wasm.
|
|
765
|
-
return ret
|
|
483
|
+
onCancelled(callback) {
|
|
484
|
+
const ret = wasm.cancellationtoken_onCancelled(this.__wbg_ptr, callback);
|
|
485
|
+
return CancellationListener.__wrap(ret);
|
|
766
486
|
}
|
|
767
487
|
}
|
|
768
|
-
|
|
769
|
-
const ConnHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
770
|
-
? { register: () => {}, unregister: () => {} }
|
|
771
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_connhandle_free(ptr >>> 0, 1));
|
|
488
|
+
if (Symbol.dispose) CancellationToken.prototype[Symbol.dispose] = CancellationToken.prototype.free;
|
|
772
489
|
|
|
773
490
|
export class ConnHandle {
|
|
774
|
-
|
|
775
491
|
static __wrap(ptr) {
|
|
776
|
-
ptr = ptr >>> 0;
|
|
777
492
|
const obj = Object.create(ConnHandle.prototype);
|
|
778
493
|
obj.__wbg_ptr = ptr;
|
|
779
494
|
ConnHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
780
495
|
return obj;
|
|
781
496
|
}
|
|
782
|
-
|
|
783
497
|
__destroy_into_raw() {
|
|
784
498
|
const ptr = this.__wbg_ptr;
|
|
785
499
|
this.__wbg_ptr = 0;
|
|
786
500
|
ConnHandleFinalization.unregister(this);
|
|
787
501
|
return ptr;
|
|
788
502
|
}
|
|
789
|
-
|
|
790
503
|
free() {
|
|
791
504
|
const ptr = this.__destroy_into_raw();
|
|
792
505
|
wasm.__wbg_connhandle_free(ptr, 0);
|
|
@@ -801,13 +514,6 @@ export class ConnHandle {
|
|
|
801
514
|
const ret = wasm.connhandle_disconnect(this.__wbg_ptr, ptr0, len0);
|
|
802
515
|
return ret;
|
|
803
516
|
}
|
|
804
|
-
/**
|
|
805
|
-
* @returns {boolean}
|
|
806
|
-
*/
|
|
807
|
-
isHibernatable() {
|
|
808
|
-
const ret = wasm.connhandle_isHibernatable(this.__wbg_ptr);
|
|
809
|
-
return ret !== 0;
|
|
810
|
-
}
|
|
811
517
|
/**
|
|
812
518
|
* @returns {string}
|
|
813
519
|
*/
|
|
@@ -824,24 +530,11 @@ export class ConnHandle {
|
|
|
824
530
|
}
|
|
825
531
|
}
|
|
826
532
|
/**
|
|
827
|
-
* @
|
|
828
|
-
* @param {Uint8Array} args
|
|
533
|
+
* @returns {boolean}
|
|
829
534
|
*/
|
|
830
|
-
|
|
831
|
-
const
|
|
832
|
-
|
|
833
|
-
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
834
|
-
const len1 = WASM_VECTOR_LEN;
|
|
835
|
-
wasm.connhandle_send(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
836
|
-
}
|
|
837
|
-
/**
|
|
838
|
-
* @returns {Uint8Array}
|
|
839
|
-
*/
|
|
840
|
-
state() {
|
|
841
|
-
const ret = wasm.connhandle_state(this.__wbg_ptr);
|
|
842
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
843
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
844
|
-
return v1;
|
|
535
|
+
isHibernatable() {
|
|
536
|
+
const ret = wasm.connhandle_isHibernatable(this.__wbg_ptr);
|
|
537
|
+
return ret !== 0;
|
|
845
538
|
}
|
|
846
539
|
/**
|
|
847
540
|
* @returns {Uint8Array}
|
|
@@ -852,6 +545,17 @@ export class ConnHandle {
|
|
|
852
545
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
853
546
|
return v1;
|
|
854
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* @param {string} name
|
|
550
|
+
* @param {Uint8Array} args
|
|
551
|
+
*/
|
|
552
|
+
send(name, args) {
|
|
553
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
554
|
+
const len0 = WASM_VECTOR_LEN;
|
|
555
|
+
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
556
|
+
const len1 = WASM_VECTOR_LEN;
|
|
557
|
+
wasm.connhandle_send(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
558
|
+
}
|
|
855
559
|
/**
|
|
856
560
|
* @param {Uint8Array} state
|
|
857
561
|
*/
|
|
@@ -860,21 +564,25 @@ export class ConnHandle {
|
|
|
860
564
|
const len0 = WASM_VECTOR_LEN;
|
|
861
565
|
wasm.connhandle_setState(this.__wbg_ptr, ptr0, len0);
|
|
862
566
|
}
|
|
567
|
+
/**
|
|
568
|
+
* @returns {Uint8Array}
|
|
569
|
+
*/
|
|
570
|
+
state() {
|
|
571
|
+
const ret = wasm.connhandle_state(this.__wbg_ptr);
|
|
572
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
573
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
574
|
+
return v1;
|
|
575
|
+
}
|
|
863
576
|
}
|
|
864
|
-
|
|
865
|
-
const CoreRegistryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
866
|
-
? { register: () => {}, unregister: () => {} }
|
|
867
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_coreregistry_free(ptr >>> 0, 1));
|
|
577
|
+
if (Symbol.dispose) ConnHandle.prototype[Symbol.dispose] = ConnHandle.prototype.free;
|
|
868
578
|
|
|
869
579
|
export class CoreRegistry {
|
|
870
|
-
|
|
871
580
|
__destroy_into_raw() {
|
|
872
581
|
const ptr = this.__wbg_ptr;
|
|
873
582
|
this.__wbg_ptr = 0;
|
|
874
583
|
CoreRegistryFinalization.unregister(this);
|
|
875
584
|
return ptr;
|
|
876
585
|
}
|
|
877
|
-
|
|
878
586
|
free() {
|
|
879
587
|
const ptr = this.__destroy_into_raw();
|
|
880
588
|
wasm.__wbg_coreregistry_free(ptr, 0);
|
|
@@ -891,24 +599,9 @@ export class CoreRegistry {
|
|
|
891
599
|
const ret = wasm.coreregistry_handleServerlessRequest(this.__wbg_ptr, req, on_stream_event, cancel_token.__wbg_ptr, config);
|
|
892
600
|
return ret;
|
|
893
601
|
}
|
|
894
|
-
/**
|
|
895
|
-
* @param {any} config
|
|
896
|
-
* @returns {Promise<void>}
|
|
897
|
-
*/
|
|
898
|
-
serve(config) {
|
|
899
|
-
const ret = wasm.coreregistry_serve(this.__wbg_ptr, config);
|
|
900
|
-
return ret;
|
|
901
|
-
}
|
|
902
|
-
/**
|
|
903
|
-
* @returns {Promise<void>}
|
|
904
|
-
*/
|
|
905
|
-
shutdown() {
|
|
906
|
-
const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
|
|
907
|
-
return ret;
|
|
908
|
-
}
|
|
909
602
|
constructor() {
|
|
910
603
|
const ret = wasm.coreregistry_new();
|
|
911
|
-
this.__wbg_ptr = ret
|
|
604
|
+
this.__wbg_ptr = ret;
|
|
912
605
|
CoreRegistryFinalization.register(this, this.__wbg_ptr, this);
|
|
913
606
|
return this;
|
|
914
607
|
}
|
|
@@ -925,74 +618,63 @@ export class CoreRegistry {
|
|
|
925
618
|
throw takeFromExternrefTable0(ret[0]);
|
|
926
619
|
}
|
|
927
620
|
}
|
|
621
|
+
/**
|
|
622
|
+
* @param {any} config
|
|
623
|
+
* @returns {Promise<void>}
|
|
624
|
+
*/
|
|
625
|
+
serve(config) {
|
|
626
|
+
const ret = wasm.coreregistry_serve(this.__wbg_ptr, config);
|
|
627
|
+
return ret;
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* @returns {Promise<void>}
|
|
631
|
+
*/
|
|
632
|
+
shutdown() {
|
|
633
|
+
const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
|
|
634
|
+
return ret;
|
|
635
|
+
}
|
|
928
636
|
}
|
|
929
|
-
|
|
930
|
-
const KvFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
931
|
-
? { register: () => {}, unregister: () => {} }
|
|
932
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_kv_free(ptr >>> 0, 1));
|
|
637
|
+
if (Symbol.dispose) CoreRegistry.prototype[Symbol.dispose] = CoreRegistry.prototype.free;
|
|
933
638
|
|
|
934
639
|
export class Kv {
|
|
935
|
-
|
|
936
640
|
static __wrap(ptr) {
|
|
937
|
-
ptr = ptr >>> 0;
|
|
938
641
|
const obj = Object.create(Kv.prototype);
|
|
939
642
|
obj.__wbg_ptr = ptr;
|
|
940
643
|
KvFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
941
644
|
return obj;
|
|
942
645
|
}
|
|
943
|
-
|
|
944
646
|
__destroy_into_raw() {
|
|
945
647
|
const ptr = this.__wbg_ptr;
|
|
946
648
|
this.__wbg_ptr = 0;
|
|
947
649
|
KvFinalization.unregister(this);
|
|
948
650
|
return ptr;
|
|
949
651
|
}
|
|
950
|
-
|
|
951
652
|
free() {
|
|
952
653
|
const ptr = this.__destroy_into_raw();
|
|
953
654
|
wasm.__wbg_kv_free(ptr, 0);
|
|
954
655
|
}
|
|
955
656
|
/**
|
|
956
|
-
* @param {
|
|
657
|
+
* @param {Array<any>} keys
|
|
957
658
|
* @returns {Promise<void>}
|
|
958
659
|
*/
|
|
959
|
-
|
|
960
|
-
const
|
|
961
|
-
const len0 = WASM_VECTOR_LEN;
|
|
962
|
-
const ret = wasm.kv_delete(this.__wbg_ptr, ptr0, len0);
|
|
963
|
-
return ret;
|
|
964
|
-
}
|
|
965
|
-
/**
|
|
966
|
-
* @param {Uint8Array} start
|
|
967
|
-
* @param {Uint8Array} end
|
|
968
|
-
* @param {any} options
|
|
969
|
-
* @returns {Promise<any>}
|
|
970
|
-
*/
|
|
971
|
-
listRange(start, end, options) {
|
|
972
|
-
const ptr0 = passArray8ToWasm0(start, wasm.__wbindgen_malloc);
|
|
973
|
-
const len0 = WASM_VECTOR_LEN;
|
|
974
|
-
const ptr1 = passArray8ToWasm0(end, wasm.__wbindgen_malloc);
|
|
975
|
-
const len1 = WASM_VECTOR_LEN;
|
|
976
|
-
const ret = wasm.kv_listRange(this.__wbg_ptr, ptr0, len0, ptr1, len1, options);
|
|
660
|
+
batchDelete(keys) {
|
|
661
|
+
const ret = wasm.kv_batchDelete(this.__wbg_ptr, keys);
|
|
977
662
|
return ret;
|
|
978
663
|
}
|
|
979
664
|
/**
|
|
980
|
-
* @param {
|
|
981
|
-
* @param {any} options
|
|
665
|
+
* @param {Array<any>} keys
|
|
982
666
|
* @returns {Promise<any>}
|
|
983
667
|
*/
|
|
984
|
-
|
|
985
|
-
const
|
|
986
|
-
const len0 = WASM_VECTOR_LEN;
|
|
987
|
-
const ret = wasm.kv_listPrefix(this.__wbg_ptr, ptr0, len0, options);
|
|
668
|
+
batchGet(keys) {
|
|
669
|
+
const ret = wasm.kv_batchGet(this.__wbg_ptr, keys);
|
|
988
670
|
return ret;
|
|
989
671
|
}
|
|
990
672
|
/**
|
|
991
|
-
* @param {Array<any>}
|
|
673
|
+
* @param {Array<any>} entries
|
|
992
674
|
* @returns {Promise<void>}
|
|
993
675
|
*/
|
|
994
|
-
|
|
995
|
-
const ret = wasm.
|
|
676
|
+
batchPut(entries) {
|
|
677
|
+
const ret = wasm.kv_batchPut(this.__wbg_ptr, entries);
|
|
996
678
|
return ret;
|
|
997
679
|
}
|
|
998
680
|
/**
|
|
@@ -1008,6 +690,16 @@ export class Kv {
|
|
|
1008
690
|
const ret = wasm.kv_deleteRange(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1009
691
|
return ret;
|
|
1010
692
|
}
|
|
693
|
+
/**
|
|
694
|
+
* @param {Uint8Array} key
|
|
695
|
+
* @returns {Promise<void>}
|
|
696
|
+
*/
|
|
697
|
+
delete(key) {
|
|
698
|
+
const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
|
|
699
|
+
const len0 = WASM_VECTOR_LEN;
|
|
700
|
+
const ret = wasm.kv_delete(this.__wbg_ptr, ptr0, len0);
|
|
701
|
+
return ret;
|
|
702
|
+
}
|
|
1011
703
|
/**
|
|
1012
704
|
* @param {Uint8Array} key
|
|
1013
705
|
* @returns {Promise<any>}
|
|
@@ -1019,88 +711,75 @@ export class Kv {
|
|
|
1019
711
|
return ret;
|
|
1020
712
|
}
|
|
1021
713
|
/**
|
|
1022
|
-
* @param {Uint8Array}
|
|
1023
|
-
* @param {
|
|
1024
|
-
* @returns {Promise<
|
|
714
|
+
* @param {Uint8Array} prefix
|
|
715
|
+
* @param {any} options
|
|
716
|
+
* @returns {Promise<any>}
|
|
1025
717
|
*/
|
|
1026
|
-
|
|
1027
|
-
const ptr0 = passArray8ToWasm0(
|
|
718
|
+
listPrefix(prefix, options) {
|
|
719
|
+
const ptr0 = passArray8ToWasm0(prefix, wasm.__wbindgen_malloc);
|
|
1028
720
|
const len0 = WASM_VECTOR_LEN;
|
|
1029
|
-
const
|
|
1030
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1031
|
-
const ret = wasm.kv_put(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
721
|
+
const ret = wasm.kv_listPrefix(this.__wbg_ptr, ptr0, len0, options);
|
|
1032
722
|
return ret;
|
|
1033
723
|
}
|
|
1034
724
|
/**
|
|
1035
|
-
* @param {
|
|
725
|
+
* @param {Uint8Array} start
|
|
726
|
+
* @param {Uint8Array} end
|
|
727
|
+
* @param {any} options
|
|
1036
728
|
* @returns {Promise<any>}
|
|
1037
729
|
*/
|
|
1038
|
-
|
|
1039
|
-
const
|
|
730
|
+
listRange(start, end, options) {
|
|
731
|
+
const ptr0 = passArray8ToWasm0(start, wasm.__wbindgen_malloc);
|
|
732
|
+
const len0 = WASM_VECTOR_LEN;
|
|
733
|
+
const ptr1 = passArray8ToWasm0(end, wasm.__wbindgen_malloc);
|
|
734
|
+
const len1 = WASM_VECTOR_LEN;
|
|
735
|
+
const ret = wasm.kv_listRange(this.__wbg_ptr, ptr0, len0, ptr1, len1, options);
|
|
1040
736
|
return ret;
|
|
1041
737
|
}
|
|
1042
738
|
/**
|
|
1043
|
-
* @param {
|
|
739
|
+
* @param {Uint8Array} key
|
|
740
|
+
* @param {Uint8Array} value
|
|
1044
741
|
* @returns {Promise<void>}
|
|
1045
742
|
*/
|
|
1046
|
-
|
|
1047
|
-
const
|
|
743
|
+
put(key, value) {
|
|
744
|
+
const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
|
|
745
|
+
const len0 = WASM_VECTOR_LEN;
|
|
746
|
+
const ptr1 = passArray8ToWasm0(value, wasm.__wbindgen_malloc);
|
|
747
|
+
const len1 = WASM_VECTOR_LEN;
|
|
748
|
+
const ret = wasm.kv_put(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1048
749
|
return ret;
|
|
1049
750
|
}
|
|
1050
751
|
}
|
|
1051
|
-
|
|
1052
|
-
const QueueFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1053
|
-
? { register: () => {}, unregister: () => {} }
|
|
1054
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_queue_free(ptr >>> 0, 1));
|
|
752
|
+
if (Symbol.dispose) Kv.prototype[Symbol.dispose] = Kv.prototype.free;
|
|
1055
753
|
|
|
1056
754
|
export class Queue {
|
|
1057
|
-
|
|
1058
755
|
static __wrap(ptr) {
|
|
1059
|
-
ptr = ptr >>> 0;
|
|
1060
756
|
const obj = Object.create(Queue.prototype);
|
|
1061
757
|
obj.__wbg_ptr = ptr;
|
|
1062
758
|
QueueFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1063
759
|
return obj;
|
|
1064
760
|
}
|
|
1065
|
-
|
|
1066
761
|
__destroy_into_raw() {
|
|
1067
762
|
const ptr = this.__wbg_ptr;
|
|
1068
763
|
this.__wbg_ptr = 0;
|
|
1069
764
|
QueueFinalization.unregister(this);
|
|
1070
765
|
return ptr;
|
|
1071
766
|
}
|
|
1072
|
-
|
|
1073
767
|
free() {
|
|
1074
768
|
const ptr = this.__destroy_into_raw();
|
|
1075
769
|
wasm.__wbg_queue_free(ptr, 0);
|
|
1076
770
|
}
|
|
1077
771
|
/**
|
|
1078
|
-
* @param {
|
|
1079
|
-
* @param {
|
|
1080
|
-
* @
|
|
1081
|
-
|
|
1082
|
-
nextBatch(options, signal) {
|
|
1083
|
-
let ptr0 = 0;
|
|
1084
|
-
if (!isLikeNone(signal)) {
|
|
1085
|
-
_assertClass(signal, CancellationToken);
|
|
1086
|
-
ptr0 = signal.__destroy_into_raw();
|
|
1087
|
-
}
|
|
1088
|
-
const ret = wasm.queue_nextBatch(this.__wbg_ptr, options, ptr0);
|
|
1089
|
-
return ret;
|
|
1090
|
-
}
|
|
1091
|
-
/**
|
|
1092
|
-
* @param {any} names
|
|
1093
|
-
* @param {any} options
|
|
1094
|
-
* @param {CancellationToken | null} [signal]
|
|
1095
|
-
* @returns {Promise<QueueMessage>}
|
|
772
|
+
* @param {bigint} message_id
|
|
773
|
+
* @param {string} expected_name
|
|
774
|
+
* @param {Uint8Array | null} [response]
|
|
775
|
+
* @returns {Promise<boolean>}
|
|
1096
776
|
*/
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
const ret = wasm.queue_waitForNames(this.__wbg_ptr, names, options, ptr0);
|
|
777
|
+
completePersisted(message_id, expected_name, response) {
|
|
778
|
+
const ptr0 = passStringToWasm0(expected_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
779
|
+
const len0 = WASM_VECTOR_LEN;
|
|
780
|
+
var ptr1 = isLikeNone(response) ? 0 : passArray8ToWasm0(response, wasm.__wbindgen_malloc);
|
|
781
|
+
var len1 = WASM_VECTOR_LEN;
|
|
782
|
+
const ret = wasm.queue_completePersisted(this.__wbg_ptr, message_id, ptr0, len0, ptr1, len1);
|
|
1104
783
|
return ret;
|
|
1105
784
|
}
|
|
1106
785
|
/**
|
|
@@ -1131,26 +810,31 @@ export class Queue {
|
|
|
1131
810
|
return ret;
|
|
1132
811
|
}
|
|
1133
812
|
/**
|
|
1134
|
-
* @
|
|
1135
|
-
* @param {string} expected_name
|
|
1136
|
-
* @param {Uint8Array | null} [response]
|
|
1137
|
-
* @returns {Promise<boolean>}
|
|
813
|
+
* @returns {number}
|
|
1138
814
|
*/
|
|
1139
|
-
|
|
1140
|
-
const
|
|
1141
|
-
|
|
1142
|
-
var ptr1 = isLikeNone(response) ? 0 : passArray8ToWasm0(response, wasm.__wbindgen_malloc);
|
|
1143
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1144
|
-
const ret = wasm.queue_completePersisted(this.__wbg_ptr, message_id, ptr0, len0, ptr1, len1);
|
|
1145
|
-
return ret;
|
|
815
|
+
maxSize() {
|
|
816
|
+
const ret = wasm.queue_maxSize(this.__wbg_ptr);
|
|
817
|
+
return ret >>> 0;
|
|
1146
818
|
}
|
|
1147
819
|
/**
|
|
1148
|
-
* @param {any} names
|
|
1149
820
|
* @param {any} options
|
|
821
|
+
* @param {CancellationToken | null} [signal]
|
|
822
|
+
* @returns {Promise<Array<any>>}
|
|
823
|
+
*/
|
|
824
|
+
nextBatch(options, signal) {
|
|
825
|
+
let ptr0 = 0;
|
|
826
|
+
if (!isLikeNone(signal)) {
|
|
827
|
+
_assertClass(signal, CancellationToken);
|
|
828
|
+
ptr0 = signal.__destroy_into_raw();
|
|
829
|
+
}
|
|
830
|
+
const ret = wasm.queue_nextBatch(this.__wbg_ptr, options, ptr0);
|
|
831
|
+
return ret;
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
1150
834
|
* @returns {Promise<void>}
|
|
1151
835
|
*/
|
|
1152
|
-
|
|
1153
|
-
const ret = wasm.
|
|
836
|
+
reset() {
|
|
837
|
+
const ret = wasm.queue_reset(this.__wbg_ptr);
|
|
1154
838
|
return ret;
|
|
1155
839
|
}
|
|
1156
840
|
/**
|
|
@@ -1166,13 +850,6 @@ export class Queue {
|
|
|
1166
850
|
const ret = wasm.queue_send(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1167
851
|
return ret;
|
|
1168
852
|
}
|
|
1169
|
-
/**
|
|
1170
|
-
* @returns {Promise<void>}
|
|
1171
|
-
*/
|
|
1172
|
-
reset() {
|
|
1173
|
-
const ret = wasm.queue_reset(this.__wbg_ptr);
|
|
1174
|
-
return ret;
|
|
1175
|
-
}
|
|
1176
853
|
/**
|
|
1177
854
|
* @param {any} options
|
|
1178
855
|
* @returns {Array<any>}
|
|
@@ -1185,39 +862,58 @@ export class Queue {
|
|
|
1185
862
|
return takeFromExternrefTable0(ret[0]);
|
|
1186
863
|
}
|
|
1187
864
|
/**
|
|
1188
|
-
* @
|
|
865
|
+
* @param {any} names
|
|
866
|
+
* @param {any} options
|
|
867
|
+
* @returns {Promise<void>}
|
|
1189
868
|
*/
|
|
1190
|
-
|
|
1191
|
-
const ret = wasm.
|
|
1192
|
-
return ret
|
|
869
|
+
waitForNamesAvailable(names, options) {
|
|
870
|
+
const ret = wasm.queue_waitForNamesAvailable(this.__wbg_ptr, names, options);
|
|
871
|
+
return ret;
|
|
1193
872
|
}
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
873
|
+
/**
|
|
874
|
+
* @param {any} names
|
|
875
|
+
* @param {any} options
|
|
876
|
+
* @param {CancellationToken | null} [signal]
|
|
877
|
+
* @returns {Promise<QueueMessage>}
|
|
878
|
+
*/
|
|
879
|
+
waitForNames(names, options, signal) {
|
|
880
|
+
let ptr0 = 0;
|
|
881
|
+
if (!isLikeNone(signal)) {
|
|
882
|
+
_assertClass(signal, CancellationToken);
|
|
883
|
+
ptr0 = signal.__destroy_into_raw();
|
|
884
|
+
}
|
|
885
|
+
const ret = wasm.queue_waitForNames(this.__wbg_ptr, names, options, ptr0);
|
|
886
|
+
return ret;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
if (Symbol.dispose) Queue.prototype[Symbol.dispose] = Queue.prototype.free;
|
|
890
|
+
|
|
891
|
+
export class QueueMessage {
|
|
892
|
+
static __wrap(ptr) {
|
|
893
|
+
const obj = Object.create(QueueMessage.prototype);
|
|
1205
894
|
obj.__wbg_ptr = ptr;
|
|
1206
895
|
QueueMessageFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1207
896
|
return obj;
|
|
1208
897
|
}
|
|
1209
|
-
|
|
1210
898
|
__destroy_into_raw() {
|
|
1211
899
|
const ptr = this.__wbg_ptr;
|
|
1212
900
|
this.__wbg_ptr = 0;
|
|
1213
901
|
QueueMessageFinalization.unregister(this);
|
|
1214
902
|
return ptr;
|
|
1215
903
|
}
|
|
1216
|
-
|
|
1217
904
|
free() {
|
|
1218
905
|
const ptr = this.__destroy_into_raw();
|
|
1219
906
|
wasm.__wbg_queuemessage_free(ptr, 0);
|
|
1220
907
|
}
|
|
908
|
+
/**
|
|
909
|
+
* @returns {Uint8Array}
|
|
910
|
+
*/
|
|
911
|
+
body() {
|
|
912
|
+
const ret = wasm.queuemessage_body(this.__wbg_ptr);
|
|
913
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
914
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
915
|
+
return v1;
|
|
916
|
+
}
|
|
1221
917
|
/**
|
|
1222
918
|
* @param {any} response
|
|
1223
919
|
* @returns {Promise<void>}
|
|
@@ -1233,13 +929,6 @@ export class QueueMessage {
|
|
|
1233
929
|
const ret = wasm.queuemessage_createdAt(this.__wbg_ptr);
|
|
1234
930
|
return ret;
|
|
1235
931
|
}
|
|
1236
|
-
/**
|
|
1237
|
-
* @returns {boolean}
|
|
1238
|
-
*/
|
|
1239
|
-
isCompletable() {
|
|
1240
|
-
const ret = wasm.queuemessage_isCompletable(this.__wbg_ptr);
|
|
1241
|
-
return ret !== 0;
|
|
1242
|
-
}
|
|
1243
932
|
/**
|
|
1244
933
|
* @returns {bigint}
|
|
1245
934
|
*/
|
|
@@ -1248,13 +937,11 @@ export class QueueMessage {
|
|
|
1248
937
|
return BigInt.asUintN(64, ret);
|
|
1249
938
|
}
|
|
1250
939
|
/**
|
|
1251
|
-
* @returns {
|
|
940
|
+
* @returns {boolean}
|
|
1252
941
|
*/
|
|
1253
|
-
|
|
1254
|
-
const ret = wasm.
|
|
1255
|
-
|
|
1256
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1257
|
-
return v1;
|
|
942
|
+
isCompletable() {
|
|
943
|
+
const ret = wasm.queuemessage_isCompletable(this.__wbg_ptr);
|
|
944
|
+
return ret !== 0;
|
|
1258
945
|
}
|
|
1259
946
|
/**
|
|
1260
947
|
* @returns {string}
|
|
@@ -1272,69 +959,37 @@ export class QueueMessage {
|
|
|
1272
959
|
}
|
|
1273
960
|
}
|
|
1274
961
|
}
|
|
1275
|
-
|
|
1276
|
-
const ScheduleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1277
|
-
? { register: () => {}, unregister: () => {} }
|
|
1278
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_schedule_free(ptr >>> 0, 1));
|
|
962
|
+
if (Symbol.dispose) QueueMessage.prototype[Symbol.dispose] = QueueMessage.prototype.free;
|
|
1279
963
|
|
|
1280
964
|
export class Schedule {
|
|
1281
|
-
|
|
1282
965
|
static __wrap(ptr) {
|
|
1283
|
-
ptr = ptr >>> 0;
|
|
1284
966
|
const obj = Object.create(Schedule.prototype);
|
|
1285
967
|
obj.__wbg_ptr = ptr;
|
|
1286
968
|
ScheduleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1287
969
|
return obj;
|
|
1288
970
|
}
|
|
1289
|
-
|
|
1290
971
|
__destroy_into_raw() {
|
|
1291
972
|
const ptr = this.__wbg_ptr;
|
|
1292
973
|
this.__wbg_ptr = 0;
|
|
1293
974
|
ScheduleFinalization.unregister(this);
|
|
1294
975
|
return ptr;
|
|
1295
976
|
}
|
|
1296
|
-
|
|
1297
977
|
free() {
|
|
1298
978
|
const ptr = this.__destroy_into_raw();
|
|
1299
979
|
wasm.__wbg_schedule_free(ptr, 0);
|
|
1300
980
|
}
|
|
1301
981
|
/**
|
|
1302
|
-
* @param {
|
|
1303
|
-
* @param {number} interval_ms
|
|
982
|
+
* @param {number} duration_ms
|
|
1304
983
|
* @param {string} action_name
|
|
1305
984
|
* @param {Uint8Array} args
|
|
1306
|
-
* @
|
|
1307
|
-
* @returns {Promise<void>}
|
|
985
|
+
* @returns {Promise<string>}
|
|
1308
986
|
*/
|
|
1309
|
-
|
|
1310
|
-
const ptr0 = passStringToWasm0(
|
|
987
|
+
after(duration_ms, action_name, args) {
|
|
988
|
+
const ptr0 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1311
989
|
const len0 = WASM_VECTOR_LEN;
|
|
1312
|
-
const ptr1 =
|
|
990
|
+
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1313
991
|
const len1 = WASM_VECTOR_LEN;
|
|
1314
|
-
const
|
|
1315
|
-
const len2 = WASM_VECTOR_LEN;
|
|
1316
|
-
const ret = wasm.schedule_cronEvery(this.__wbg_ptr, ptr0, len0, interval_ms, ptr1, len1, ptr2, len2, !isLikeNone(max_history), isLikeNone(max_history) ? 0 : max_history);
|
|
1317
|
-
return ret;
|
|
1318
|
-
}
|
|
1319
|
-
/**
|
|
1320
|
-
* @param {string} name
|
|
1321
|
-
* @returns {Promise<boolean>}
|
|
1322
|
-
*/
|
|
1323
|
-
cronDelete(name) {
|
|
1324
|
-
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1325
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1326
|
-
const ret = wasm.schedule_cronDelete(this.__wbg_ptr, ptr0, len0);
|
|
1327
|
-
return ret;
|
|
1328
|
-
}
|
|
1329
|
-
/**
|
|
1330
|
-
* @param {string} name
|
|
1331
|
-
* @param {number | null} [limit]
|
|
1332
|
-
* @returns {Promise<any>}
|
|
1333
|
-
*/
|
|
1334
|
-
cronHistory(name, limit) {
|
|
1335
|
-
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1336
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1337
|
-
const ret = wasm.schedule_cronHistory(this.__wbg_ptr, ptr0, len0, !isLikeNone(limit), isLikeNone(limit) ? 0 : limit);
|
|
992
|
+
const ret = wasm.schedule_after(this.__wbg_ptr, duration_ms, ptr0, len0, ptr1, len1);
|
|
1338
993
|
return ret;
|
|
1339
994
|
}
|
|
1340
995
|
/**
|
|
@@ -1353,53 +1008,68 @@ export class Schedule {
|
|
|
1353
1008
|
}
|
|
1354
1009
|
/**
|
|
1355
1010
|
* @param {string} id
|
|
1356
|
-
* @returns {Promise<
|
|
1011
|
+
* @returns {Promise<boolean>}
|
|
1357
1012
|
*/
|
|
1358
|
-
|
|
1013
|
+
cancel(id) {
|
|
1359
1014
|
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1360
1015
|
const len0 = WASM_VECTOR_LEN;
|
|
1361
|
-
const ret = wasm.
|
|
1016
|
+
const ret = wasm.schedule_cancel(this.__wbg_ptr, ptr0, len0);
|
|
1362
1017
|
return ret;
|
|
1363
1018
|
}
|
|
1364
1019
|
/**
|
|
1365
|
-
* @
|
|
1020
|
+
* @param {string} name
|
|
1021
|
+
* @returns {Promise<boolean>}
|
|
1366
1022
|
*/
|
|
1367
|
-
|
|
1368
|
-
const
|
|
1023
|
+
cronDelete(name) {
|
|
1024
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1025
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1026
|
+
const ret = wasm.schedule_cronDelete(this.__wbg_ptr, ptr0, len0);
|
|
1369
1027
|
return ret;
|
|
1370
1028
|
}
|
|
1371
1029
|
/**
|
|
1372
|
-
* @param {
|
|
1030
|
+
* @param {string} name
|
|
1031
|
+
* @param {number} interval_ms
|
|
1373
1032
|
* @param {string} action_name
|
|
1374
1033
|
* @param {Uint8Array} args
|
|
1375
|
-
* @
|
|
1034
|
+
* @param {number | null} [max_history]
|
|
1035
|
+
* @returns {Promise<void>}
|
|
1376
1036
|
*/
|
|
1377
|
-
|
|
1378
|
-
const ptr0 = passStringToWasm0(
|
|
1037
|
+
cronEvery(name, interval_ms, action_name, args, max_history) {
|
|
1038
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1379
1039
|
const len0 = WASM_VECTOR_LEN;
|
|
1380
|
-
const ptr1 =
|
|
1040
|
+
const ptr1 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1381
1041
|
const len1 = WASM_VECTOR_LEN;
|
|
1382
|
-
const
|
|
1042
|
+
const ptr2 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1043
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1044
|
+
const ret = wasm.schedule_cronEvery(this.__wbg_ptr, ptr0, len0, interval_ms, ptr1, len1, ptr2, len2, !isLikeNone(max_history), isLikeNone(max_history) ? 0 : max_history);
|
|
1383
1045
|
return ret;
|
|
1384
1046
|
}
|
|
1385
1047
|
/**
|
|
1386
|
-
* @param {string}
|
|
1387
|
-
* @returns {Promise<
|
|
1048
|
+
* @param {string} name
|
|
1049
|
+
* @returns {Promise<any>}
|
|
1388
1050
|
*/
|
|
1389
|
-
|
|
1390
|
-
const ptr0 = passStringToWasm0(
|
|
1051
|
+
cronGet(name) {
|
|
1052
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1391
1053
|
const len0 = WASM_VECTOR_LEN;
|
|
1392
|
-
const ret = wasm.
|
|
1054
|
+
const ret = wasm.schedule_cronGet(this.__wbg_ptr, ptr0, len0);
|
|
1393
1055
|
return ret;
|
|
1394
1056
|
}
|
|
1395
1057
|
/**
|
|
1396
1058
|
* @param {string} name
|
|
1059
|
+
* @param {number | null} [limit]
|
|
1397
1060
|
* @returns {Promise<any>}
|
|
1398
1061
|
*/
|
|
1399
|
-
|
|
1062
|
+
cronHistory(name, limit) {
|
|
1400
1063
|
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1401
1064
|
const len0 = WASM_VECTOR_LEN;
|
|
1402
|
-
const ret = wasm.
|
|
1065
|
+
const ret = wasm.schedule_cronHistory(this.__wbg_ptr, ptr0, len0, !isLikeNone(limit), isLikeNone(limit) ? 0 : limit);
|
|
1066
|
+
return ret;
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* @returns {Promise<any>}
|
|
1070
|
+
*/
|
|
1071
|
+
cronList() {
|
|
1072
|
+
const ret = wasm.schedule_cronList(this.__wbg_ptr);
|
|
1403
1073
|
return ret;
|
|
1404
1074
|
}
|
|
1405
1075
|
/**
|
|
@@ -1426,39 +1096,70 @@ export class Schedule {
|
|
|
1426
1096
|
return ret;
|
|
1427
1097
|
}
|
|
1428
1098
|
/**
|
|
1099
|
+
* @param {string} id
|
|
1429
1100
|
* @returns {Promise<any>}
|
|
1430
1101
|
*/
|
|
1431
|
-
|
|
1432
|
-
const
|
|
1102
|
+
get(id) {
|
|
1103
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1104
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1105
|
+
const ret = wasm.schedule_get(this.__wbg_ptr, ptr0, len0);
|
|
1106
|
+
return ret;
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
* @returns {Promise<any>}
|
|
1110
|
+
*/
|
|
1111
|
+
list() {
|
|
1112
|
+
const ret = wasm.schedule_list(this.__wbg_ptr);
|
|
1433
1113
|
return ret;
|
|
1434
1114
|
}
|
|
1435
1115
|
}
|
|
1436
|
-
|
|
1437
|
-
const SqliteDbFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1438
|
-
? { register: () => {}, unregister: () => {} }
|
|
1439
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_sqlitedb_free(ptr >>> 0, 1));
|
|
1116
|
+
if (Symbol.dispose) Schedule.prototype[Symbol.dispose] = Schedule.prototype.free;
|
|
1440
1117
|
|
|
1441
1118
|
export class SqliteDb {
|
|
1442
|
-
|
|
1443
1119
|
static __wrap(ptr) {
|
|
1444
|
-
ptr = ptr >>> 0;
|
|
1445
1120
|
const obj = Object.create(SqliteDb.prototype);
|
|
1446
1121
|
obj.__wbg_ptr = ptr;
|
|
1447
1122
|
SqliteDbFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1448
1123
|
return obj;
|
|
1449
1124
|
}
|
|
1450
|
-
|
|
1451
1125
|
__destroy_into_raw() {
|
|
1452
1126
|
const ptr = this.__wbg_ptr;
|
|
1453
1127
|
this.__wbg_ptr = 0;
|
|
1454
1128
|
SqliteDbFinalization.unregister(this);
|
|
1455
1129
|
return ptr;
|
|
1456
1130
|
}
|
|
1457
|
-
|
|
1458
1131
|
free() {
|
|
1459
1132
|
const ptr = this.__destroy_into_raw();
|
|
1460
1133
|
wasm.__wbg_sqlitedb_free(ptr, 0);
|
|
1461
1134
|
}
|
|
1135
|
+
/**
|
|
1136
|
+
* @param {number | null} [timeout_ms]
|
|
1137
|
+
* @param {string | null} [name]
|
|
1138
|
+
* @returns {Promise<SqliteTransaction>}
|
|
1139
|
+
*/
|
|
1140
|
+
beginTransaction(timeout_ms, name) {
|
|
1141
|
+
var ptr0 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1142
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1143
|
+
const ret = wasm.sqlitedb_beginTransaction(this.__wbg_ptr, !isLikeNone(timeout_ms), isLikeNone(timeout_ms) ? 0 : timeout_ms, ptr0, len0);
|
|
1144
|
+
return ret;
|
|
1145
|
+
}
|
|
1146
|
+
/**
|
|
1147
|
+
* @returns {Promise<void>}
|
|
1148
|
+
*/
|
|
1149
|
+
close() {
|
|
1150
|
+
const ret = wasm.sqlitedb_close(this.__wbg_ptr);
|
|
1151
|
+
return ret;
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* @param {string} sql
|
|
1155
|
+
* @returns {Promise<any>}
|
|
1156
|
+
*/
|
|
1157
|
+
exec(sql) {
|
|
1158
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1159
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1160
|
+
const ret = wasm.sqlitedb_exec(this.__wbg_ptr, ptr0, len0);
|
|
1161
|
+
return ret;
|
|
1162
|
+
}
|
|
1462
1163
|
/**
|
|
1463
1164
|
* @param {any} statements
|
|
1464
1165
|
* @returns {Promise<any>}
|
|
@@ -1468,14 +1169,14 @@ export class SqliteDb {
|
|
|
1468
1169
|
return ret;
|
|
1469
1170
|
}
|
|
1470
1171
|
/**
|
|
1471
|
-
* @param {
|
|
1472
|
-
* @param {
|
|
1473
|
-
* @returns {Promise<
|
|
1172
|
+
* @param {string} sql
|
|
1173
|
+
* @param {any} params
|
|
1174
|
+
* @returns {Promise<any>}
|
|
1474
1175
|
*/
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
const ret = wasm.
|
|
1176
|
+
execute(sql, params) {
|
|
1177
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1178
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1179
|
+
const ret = wasm.sqlitedb_execute(this.__wbg_ptr, ptr0, len0, params);
|
|
1479
1180
|
return ret;
|
|
1480
1181
|
}
|
|
1481
1182
|
/**
|
|
@@ -1483,38 +1184,58 @@ export class SqliteDb {
|
|
|
1483
1184
|
* @param {any} params
|
|
1484
1185
|
* @returns {Promise<any>}
|
|
1485
1186
|
*/
|
|
1486
|
-
|
|
1187
|
+
query(sql, params) {
|
|
1487
1188
|
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1488
1189
|
const len0 = WASM_VECTOR_LEN;
|
|
1489
|
-
const ret = wasm.
|
|
1190
|
+
const ret = wasm.sqlitedb_query(this.__wbg_ptr, ptr0, len0, params);
|
|
1490
1191
|
return ret;
|
|
1491
1192
|
}
|
|
1492
1193
|
/**
|
|
1493
1194
|
* @param {string} sql
|
|
1195
|
+
* @param {any} params
|
|
1494
1196
|
* @returns {Promise<any>}
|
|
1495
1197
|
*/
|
|
1496
|
-
|
|
1198
|
+
run(sql, params) {
|
|
1497
1199
|
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1498
1200
|
const len0 = WASM_VECTOR_LEN;
|
|
1499
|
-
const ret = wasm.
|
|
1201
|
+
const ret = wasm.sqlitedb_run(this.__wbg_ptr, ptr0, len0, params);
|
|
1500
1202
|
return ret;
|
|
1501
1203
|
}
|
|
1204
|
+
}
|
|
1205
|
+
if (Symbol.dispose) SqliteDb.prototype[Symbol.dispose] = SqliteDb.prototype.free;
|
|
1206
|
+
|
|
1207
|
+
export class SqliteTransaction {
|
|
1208
|
+
static __wrap(ptr) {
|
|
1209
|
+
const obj = Object.create(SqliteTransaction.prototype);
|
|
1210
|
+
obj.__wbg_ptr = ptr;
|
|
1211
|
+
SqliteTransactionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1212
|
+
return obj;
|
|
1213
|
+
}
|
|
1214
|
+
__destroy_into_raw() {
|
|
1215
|
+
const ptr = this.__wbg_ptr;
|
|
1216
|
+
this.__wbg_ptr = 0;
|
|
1217
|
+
SqliteTransactionFinalization.unregister(this);
|
|
1218
|
+
return ptr;
|
|
1219
|
+
}
|
|
1220
|
+
free() {
|
|
1221
|
+
const ptr = this.__destroy_into_raw();
|
|
1222
|
+
wasm.__wbg_sqlitetransaction_free(ptr, 0);
|
|
1223
|
+
}
|
|
1502
1224
|
/**
|
|
1503
1225
|
* @returns {Promise<void>}
|
|
1504
1226
|
*/
|
|
1505
|
-
|
|
1506
|
-
const ret = wasm.
|
|
1227
|
+
commit() {
|
|
1228
|
+
const ret = wasm.sqlitetransaction_commit(this.__wbg_ptr);
|
|
1507
1229
|
return ret;
|
|
1508
1230
|
}
|
|
1509
1231
|
/**
|
|
1510
1232
|
* @param {string} sql
|
|
1511
|
-
* @param {any} params
|
|
1512
1233
|
* @returns {Promise<any>}
|
|
1513
1234
|
*/
|
|
1514
|
-
|
|
1235
|
+
exec(sql) {
|
|
1515
1236
|
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1516
1237
|
const len0 = WASM_VECTOR_LEN;
|
|
1517
|
-
const ret = wasm.
|
|
1238
|
+
const ret = wasm.sqlitetransaction_exec(this.__wbg_ptr, ptr0, len0);
|
|
1518
1239
|
return ret;
|
|
1519
1240
|
}
|
|
1520
1241
|
/**
|
|
@@ -1525,722 +1246,1040 @@ export class SqliteDb {
|
|
|
1525
1246
|
execute(sql, params) {
|
|
1526
1247
|
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1527
1248
|
const len0 = WASM_VECTOR_LEN;
|
|
1528
|
-
const ret = wasm.
|
|
1249
|
+
const ret = wasm.sqlitetransaction_execute(this.__wbg_ptr, ptr0, len0, params);
|
|
1250
|
+
return ret;
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
* @returns {Promise<void>}
|
|
1254
|
+
*/
|
|
1255
|
+
rollback() {
|
|
1256
|
+
const ret = wasm.sqlitetransaction_rollback(this.__wbg_ptr);
|
|
1529
1257
|
return ret;
|
|
1530
1258
|
}
|
|
1531
1259
|
}
|
|
1260
|
+
if (Symbol.dispose) SqliteTransaction.prototype[Symbol.dispose] = SqliteTransaction.prototype.free;
|
|
1532
1261
|
|
|
1262
|
+
export class WebSocketHandle {
|
|
1263
|
+
static __wrap(ptr) {
|
|
1264
|
+
const obj = Object.create(WebSocketHandle.prototype);
|
|
1265
|
+
obj.__wbg_ptr = ptr;
|
|
1266
|
+
WebSocketHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1267
|
+
return obj;
|
|
1268
|
+
}
|
|
1269
|
+
__destroy_into_raw() {
|
|
1270
|
+
const ptr = this.__wbg_ptr;
|
|
1271
|
+
this.__wbg_ptr = 0;
|
|
1272
|
+
WebSocketHandleFinalization.unregister(this);
|
|
1273
|
+
return ptr;
|
|
1274
|
+
}
|
|
1275
|
+
free() {
|
|
1276
|
+
const ptr = this.__destroy_into_raw();
|
|
1277
|
+
wasm.__wbg_websockethandle_free(ptr, 0);
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* @param {number | null} [code]
|
|
1281
|
+
* @param {string | null} [reason]
|
|
1282
|
+
* @returns {Promise<void>}
|
|
1283
|
+
*/
|
|
1284
|
+
close(code, reason) {
|
|
1285
|
+
var ptr0 = isLikeNone(reason) ? 0 : passStringToWasm0(reason, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1286
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1287
|
+
const ret = wasm.websockethandle_close(this.__wbg_ptr, isLikeNone(code) ? 0xFFFFFF : code, ptr0, len0);
|
|
1288
|
+
return ret;
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* @param {Uint8Array} data
|
|
1292
|
+
* @param {boolean} binary
|
|
1293
|
+
*/
|
|
1294
|
+
send(data, binary) {
|
|
1295
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
1296
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1297
|
+
const ret = wasm.websockethandle_send(this.__wbg_ptr, ptr0, len0, binary);
|
|
1298
|
+
if (ret[1]) {
|
|
1299
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* @param {Function} callback
|
|
1304
|
+
*/
|
|
1305
|
+
setEventCallback(callback) {
|
|
1306
|
+
wasm.websockethandle_setEventCallback(this.__wbg_ptr, callback);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
if (Symbol.dispose) WebSocketHandle.prototype[Symbol.dispose] = WebSocketHandle.prototype.free;
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* @param {Promise<any>} promise
|
|
1313
|
+
* @returns {Promise<any>}
|
|
1314
|
+
*/
|
|
1315
|
+
export function awaitPromise(promise) {
|
|
1316
|
+
const ret = wasm.awaitPromise(promise);
|
|
1317
|
+
return ret;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* @returns {string}
|
|
1322
|
+
*/
|
|
1323
|
+
export function bridgeRivetErrorPrefix() {
|
|
1324
|
+
let deferred1_0;
|
|
1325
|
+
let deferred1_1;
|
|
1326
|
+
try {
|
|
1327
|
+
const ret = wasm.bridgeRivetErrorPrefix();
|
|
1328
|
+
deferred1_0 = ret[0];
|
|
1329
|
+
deferred1_1 = ret[1];
|
|
1330
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1331
|
+
} finally {
|
|
1332
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* @param {Uint8Array} bytes
|
|
1338
|
+
* @returns {Uint8Array}
|
|
1339
|
+
*/
|
|
1340
|
+
export function roundTripBytes(bytes) {
|
|
1341
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1342
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1343
|
+
const ret = wasm.roundTripBytes(ptr0, len0);
|
|
1344
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1345
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1346
|
+
return v2;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
export function start() {
|
|
1350
|
+
wasm.start();
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* @param {Uint8Array} bytes
|
|
1355
|
+
* @returns {Uint8Array}
|
|
1356
|
+
*/
|
|
1357
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
1358
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1359
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1360
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
1361
|
+
return ret;
|
|
1362
|
+
}
|
|
1363
|
+
function __wbg_get_imports() {
|
|
1364
|
+
const import0 = {
|
|
1365
|
+
__proto__: null,
|
|
1366
|
+
__wbg_Error_30c8987f7c2ed4e2: function(arg0, arg1) {
|
|
1367
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1368
|
+
return ret;
|
|
1369
|
+
},
|
|
1370
|
+
__wbg_Number_14af1003b8dd5ead: function(arg0) {
|
|
1371
|
+
const ret = Number(arg0);
|
|
1372
|
+
return ret;
|
|
1373
|
+
},
|
|
1374
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
1375
|
+
const ret = String(arg1);
|
|
1376
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1377
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1378
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1379
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1380
|
+
},
|
|
1381
|
+
__wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
|
|
1382
|
+
const v = arg0;
|
|
1383
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1384
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1385
|
+
},
|
|
1386
|
+
__wbg___wbindgen_debug_string_4687d8d8c2017d52: function(arg0, arg1) {
|
|
1387
|
+
const ret = debugString(arg1);
|
|
1388
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1389
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1390
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1391
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1392
|
+
},
|
|
1393
|
+
__wbg___wbindgen_in_92f62ee1427d9e49: function(arg0, arg1) {
|
|
1394
|
+
const ret = arg0 in arg1;
|
|
1395
|
+
return ret;
|
|
1396
|
+
},
|
|
1397
|
+
__wbg___wbindgen_is_function_1f9d30630b8b1d3d: function(arg0) {
|
|
1398
|
+
const ret = typeof(arg0) === 'function';
|
|
1399
|
+
return ret;
|
|
1400
|
+
},
|
|
1401
|
+
__wbg___wbindgen_is_null_e343b7d08827ba72: function(arg0) {
|
|
1402
|
+
const ret = arg0 === null;
|
|
1403
|
+
return ret;
|
|
1404
|
+
},
|
|
1405
|
+
__wbg___wbindgen_is_object_3c45d4f2dde4e749: function(arg0) {
|
|
1406
|
+
const val = arg0;
|
|
1407
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1408
|
+
return ret;
|
|
1409
|
+
},
|
|
1410
|
+
__wbg___wbindgen_is_string_90b56bc79aad6f6c: function(arg0) {
|
|
1411
|
+
const ret = typeof(arg0) === 'string';
|
|
1412
|
+
return ret;
|
|
1413
|
+
},
|
|
1414
|
+
__wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
|
|
1415
|
+
const ret = arg0 === undefined;
|
|
1416
|
+
return ret;
|
|
1417
|
+
},
|
|
1418
|
+
__wbg___wbindgen_jsval_loose_eq_677f21e468d6b461: function(arg0, arg1) {
|
|
1419
|
+
const ret = arg0 == arg1;
|
|
1420
|
+
return ret;
|
|
1421
|
+
},
|
|
1422
|
+
__wbg___wbindgen_number_get_2e0e7dee9f701a71: function(arg0, arg1) {
|
|
1423
|
+
const obj = arg1;
|
|
1424
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1425
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1426
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1427
|
+
},
|
|
1428
|
+
__wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
|
|
1429
|
+
const obj = arg1;
|
|
1430
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1431
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1432
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1433
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1434
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1435
|
+
},
|
|
1436
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
1437
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1438
|
+
},
|
|
1439
|
+
__wbg__wbg_cb_unref_dcc1a90847f04c41: function(arg0) {
|
|
1440
|
+
arg0._wbg_cb_unref();
|
|
1441
|
+
},
|
|
1442
|
+
__wbg_actorcontext_new: function(arg0) {
|
|
1443
|
+
const ret = ActorContext.__wrap(arg0);
|
|
1444
|
+
return ret;
|
|
1445
|
+
},
|
|
1446
|
+
__wbg_actorstatetransaction_new: function(arg0) {
|
|
1447
|
+
const ret = ActorStateTransaction.__wrap(arg0);
|
|
1448
|
+
return ret;
|
|
1449
|
+
},
|
|
1450
|
+
__wbg_buffer_56ec2905a66f58b9: function(arg0) {
|
|
1451
|
+
const ret = arg0.buffer;
|
|
1452
|
+
return ret;
|
|
1453
|
+
},
|
|
1454
|
+
__wbg_bufferedAmount_64b8a4229f549d4b: function(arg0) {
|
|
1455
|
+
const ret = arg0.bufferedAmount;
|
|
1456
|
+
return ret;
|
|
1457
|
+
},
|
|
1458
|
+
__wbg_call_1875a20c43a36133: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1459
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
1460
|
+
return ret;
|
|
1461
|
+
}, arguments); },
|
|
1462
|
+
__wbg_call_187d372bd5fdd4aa: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1463
|
+
const ret = arg0.call(arg1, arg2);
|
|
1464
|
+
return ret;
|
|
1465
|
+
}, arguments); },
|
|
1466
|
+
__wbg_call_6137034ef55c9d0f: function() { return handleError(function (arg0, arg1) {
|
|
1467
|
+
const ret = arg0.call(arg1);
|
|
1468
|
+
return ret;
|
|
1469
|
+
}, arguments); },
|
|
1470
|
+
__wbg_cancellationtoken_new: function(arg0) {
|
|
1471
|
+
const ret = CancellationToken.__wrap(arg0);
|
|
1472
|
+
return ret;
|
|
1473
|
+
},
|
|
1474
|
+
__wbg_close_150f701b1a60e0ac: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1475
|
+
arg0.close(arg1, getStringFromWasm0(arg2, arg3));
|
|
1476
|
+
}, arguments); },
|
|
1477
|
+
__wbg_close_d3ed56b5763be5ae: function() { return handleError(function (arg0) {
|
|
1478
|
+
arg0.close();
|
|
1479
|
+
}, arguments); },
|
|
1480
|
+
__wbg_code_4cb6dbcfceec1eac: function(arg0) {
|
|
1481
|
+
const ret = arg0.code;
|
|
1482
|
+
return ret;
|
|
1483
|
+
},
|
|
1484
|
+
__wbg_connhandle_new: function(arg0) {
|
|
1485
|
+
const ret = ConnHandle.__wrap(arg0);
|
|
1486
|
+
return ret;
|
|
1487
|
+
},
|
|
1488
|
+
__wbg_construct_2cc135b78387ed16: function() { return handleError(function (arg0, arg1) {
|
|
1489
|
+
const ret = Reflect.construct(arg0, arg1);
|
|
1490
|
+
return ret;
|
|
1491
|
+
}, arguments); },
|
|
1492
|
+
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
1493
|
+
const ret = arg0.crypto;
|
|
1494
|
+
return ret;
|
|
1495
|
+
},
|
|
1496
|
+
__wbg_data_522f7abc70721269: function(arg0) {
|
|
1497
|
+
const ret = arg0.data;
|
|
1498
|
+
return ret;
|
|
1499
|
+
},
|
|
1500
|
+
__wbg_done_b41a1d26cdb37fb6: function(arg0) {
|
|
1501
|
+
const ret = arg0.done;
|
|
1502
|
+
return ret;
|
|
1503
|
+
},
|
|
1504
|
+
__wbg_error_757e9472f8410341: function(arg0, arg1) {
|
|
1505
|
+
let deferred0_0;
|
|
1506
|
+
let deferred0_1;
|
|
1507
|
+
try {
|
|
1508
|
+
deferred0_0 = arg0;
|
|
1509
|
+
deferred0_1 = arg1;
|
|
1510
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1511
|
+
} finally {
|
|
1512
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1513
|
+
}
|
|
1514
|
+
},
|
|
1515
|
+
__wbg_getRandomValues_973dabfb0ad1769f: function() { return handleError(function (arg0, arg1) {
|
|
1516
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1517
|
+
}, arguments); },
|
|
1518
|
+
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1519
|
+
arg0.getRandomValues(arg1);
|
|
1520
|
+
}, arguments); },
|
|
1521
|
+
__wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
|
|
1522
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1523
|
+
return ret;
|
|
1524
|
+
}, arguments); },
|
|
1525
|
+
__wbg_get_658f6698067d9515: function() { return handleError(function (arg0, arg1) {
|
|
1526
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1527
|
+
return ret;
|
|
1528
|
+
}, arguments); },
|
|
1529
|
+
__wbg_get_6c896e0571ddae51: function(arg0, arg1) {
|
|
1530
|
+
const ret = arg0[arg1 >>> 0];
|
|
1531
|
+
return ret;
|
|
1532
|
+
},
|
|
1533
|
+
__wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
|
|
1534
|
+
const ret = arg0[arg1 >>> 0];
|
|
1535
|
+
return ret;
|
|
1536
|
+
},
|
|
1537
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
1538
|
+
const ret = arg0[arg1];
|
|
1539
|
+
return ret;
|
|
1540
|
+
},
|
|
1541
|
+
__wbg_instanceof_ArrayBuffer_a99f175873e5d9b8: function(arg0) {
|
|
1542
|
+
let result;
|
|
1543
|
+
try {
|
|
1544
|
+
result = arg0 instanceof ArrayBuffer;
|
|
1545
|
+
} catch (_) {
|
|
1546
|
+
result = false;
|
|
1547
|
+
}
|
|
1548
|
+
const ret = result;
|
|
1549
|
+
return ret;
|
|
1550
|
+
},
|
|
1551
|
+
__wbg_instanceof_Error_80a725f81f2e102d: function(arg0) {
|
|
1552
|
+
let result;
|
|
1553
|
+
try {
|
|
1554
|
+
result = arg0 instanceof Error;
|
|
1555
|
+
} catch (_) {
|
|
1556
|
+
result = false;
|
|
1557
|
+
}
|
|
1558
|
+
const ret = result;
|
|
1559
|
+
return ret;
|
|
1560
|
+
},
|
|
1561
|
+
__wbg_instanceof_Object_67a83cdc00c5d141: function(arg0) {
|
|
1562
|
+
let result;
|
|
1563
|
+
try {
|
|
1564
|
+
result = arg0 instanceof Object;
|
|
1565
|
+
} catch (_) {
|
|
1566
|
+
result = false;
|
|
1567
|
+
}
|
|
1568
|
+
const ret = result;
|
|
1569
|
+
return ret;
|
|
1570
|
+
},
|
|
1571
|
+
__wbg_instanceof_Promise_e1dc6893aa1ece28: function(arg0) {
|
|
1572
|
+
let result;
|
|
1573
|
+
try {
|
|
1574
|
+
result = arg0 instanceof Promise;
|
|
1575
|
+
} catch (_) {
|
|
1576
|
+
result = false;
|
|
1577
|
+
}
|
|
1578
|
+
const ret = result;
|
|
1579
|
+
return ret;
|
|
1580
|
+
},
|
|
1581
|
+
__wbg_instanceof_Uint8Array_828cef2aaacafc31: function(arg0) {
|
|
1582
|
+
let result;
|
|
1583
|
+
try {
|
|
1584
|
+
result = arg0 instanceof Uint8Array;
|
|
1585
|
+
} catch (_) {
|
|
1586
|
+
result = false;
|
|
1587
|
+
}
|
|
1588
|
+
const ret = result;
|
|
1589
|
+
return ret;
|
|
1590
|
+
},
|
|
1591
|
+
__wbg_isArray_e15a2ff68ffdbef2: function(arg0) {
|
|
1592
|
+
const ret = Array.isArray(arg0);
|
|
1593
|
+
return ret;
|
|
1594
|
+
},
|
|
1595
|
+
__wbg_isSafeInteger_717808ad6a54bd9e: function(arg0) {
|
|
1596
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1597
|
+
return ret;
|
|
1598
|
+
},
|
|
1599
|
+
__wbg_iterator_e3c31c892080e444: function() {
|
|
1600
|
+
const ret = Symbol.iterator;
|
|
1601
|
+
return ret;
|
|
1602
|
+
},
|
|
1603
|
+
__wbg_keys_440be172f17c0265: function(arg0) {
|
|
1604
|
+
const ret = Object.keys(arg0);
|
|
1605
|
+
return ret;
|
|
1606
|
+
},
|
|
1607
|
+
__wbg_length_7f3c00c40364105e: function(arg0) {
|
|
1608
|
+
const ret = arg0.length;
|
|
1609
|
+
return ret;
|
|
1610
|
+
},
|
|
1611
|
+
__wbg_length_d4bdea10311bd9cf: function(arg0) {
|
|
1612
|
+
const ret = arg0.length;
|
|
1613
|
+
return ret;
|
|
1614
|
+
},
|
|
1615
|
+
__wbg_message_49f5412048473de5: function(arg0, arg1) {
|
|
1616
|
+
const ret = arg1.message;
|
|
1617
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1618
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1619
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1620
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1621
|
+
},
|
|
1622
|
+
__wbg_message_5f8387f0c32b90a7: function(arg0) {
|
|
1623
|
+
const ret = arg0.message;
|
|
1624
|
+
return ret;
|
|
1625
|
+
},
|
|
1626
|
+
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
1627
|
+
const ret = arg0.msCrypto;
|
|
1628
|
+
return ret;
|
|
1629
|
+
},
|
|
1630
|
+
__wbg_new_1dbf7428bba60a42: function(arg0) {
|
|
1631
|
+
const ret = new Uint8Array(arg0);
|
|
1632
|
+
return ret;
|
|
1633
|
+
},
|
|
1634
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
1635
|
+
const ret = new Error();
|
|
1636
|
+
return ret;
|
|
1637
|
+
},
|
|
1638
|
+
__wbg_new_28744009d011f847: function() {
|
|
1639
|
+
const ret = new Map();
|
|
1640
|
+
return ret;
|
|
1641
|
+
},
|
|
1642
|
+
__wbg_new_343a093a3c2ffb4e: function(arg0, arg1) {
|
|
1643
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1644
|
+
return ret;
|
|
1645
|
+
},
|
|
1646
|
+
__wbg_new_5502aad30c185fc8: function(arg0, arg1) {
|
|
1647
|
+
try {
|
|
1648
|
+
var state0 = {a: arg0, b: arg1};
|
|
1649
|
+
var cb0 = (arg0, arg1) => {
|
|
1650
|
+
const a = state0.a;
|
|
1651
|
+
state0.a = 0;
|
|
1652
|
+
try {
|
|
1653
|
+
return wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___js_sys_5398293dff02b043___Function_fn_wasm_bindgen_13e07d6143bb6034___JsValue_____wasm_bindgen_13e07d6143bb6034___sys__Undefined___js_sys_5398293dff02b043___Function_fn_wasm_bindgen_13e07d6143bb6034___JsValue_____wasm_bindgen_13e07d6143bb6034___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1654
|
+
} finally {
|
|
1655
|
+
state0.a = a;
|
|
1656
|
+
}
|
|
1657
|
+
};
|
|
1658
|
+
const ret = new Promise(cb0);
|
|
1659
|
+
return ret;
|
|
1660
|
+
} finally {
|
|
1661
|
+
state0.a = 0;
|
|
1662
|
+
}
|
|
1663
|
+
},
|
|
1664
|
+
__wbg_new_617a8cdb8bb1130e: function() {
|
|
1665
|
+
const ret = new Object();
|
|
1666
|
+
return ret;
|
|
1667
|
+
},
|
|
1668
|
+
__wbg_new_ee2291f50781bf1d: function() {
|
|
1669
|
+
const ret = new Array();
|
|
1670
|
+
return ret;
|
|
1671
|
+
},
|
|
1672
|
+
__wbg_new_from_slice_9a868026ffa4208a: function(arg0, arg1) {
|
|
1673
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1674
|
+
return ret;
|
|
1675
|
+
},
|
|
1676
|
+
__wbg_new_typed_b01cb72a8af741a3: function(arg0, arg1) {
|
|
1677
|
+
try {
|
|
1678
|
+
var state0 = {a: arg0, b: arg1};
|
|
1679
|
+
var cb0 = (arg0, arg1) => {
|
|
1680
|
+
const a = state0.a;
|
|
1681
|
+
state0.a = 0;
|
|
1682
|
+
try {
|
|
1683
|
+
return wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___js_sys_5398293dff02b043___Function_fn_wasm_bindgen_13e07d6143bb6034___JsValue_____wasm_bindgen_13e07d6143bb6034___sys__Undefined___js_sys_5398293dff02b043___Function_fn_wasm_bindgen_13e07d6143bb6034___JsValue_____wasm_bindgen_13e07d6143bb6034___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1684
|
+
} finally {
|
|
1685
|
+
state0.a = a;
|
|
1686
|
+
}
|
|
1687
|
+
};
|
|
1688
|
+
const ret = new Promise(cb0);
|
|
1689
|
+
return ret;
|
|
1690
|
+
} finally {
|
|
1691
|
+
state0.a = 0;
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
__wbg_new_with_length_3da0ad195f6f63ba: function(arg0) {
|
|
1695
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1696
|
+
return ret;
|
|
1697
|
+
},
|
|
1698
|
+
__wbg_new_with_str_sequence_f79e461d58fdeacc: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1699
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
|
|
1700
|
+
return ret;
|
|
1701
|
+
}, arguments); },
|
|
1702
|
+
__wbg_next_33784799010f1bbe: function(arg0) {
|
|
1703
|
+
const ret = arg0.next;
|
|
1704
|
+
return ret;
|
|
1705
|
+
},
|
|
1706
|
+
__wbg_next_f4aac29c42af995c: function() { return handleError(function (arg0) {
|
|
1707
|
+
const ret = arg0.next();
|
|
1708
|
+
return ret;
|
|
1709
|
+
}, arguments); },
|
|
1710
|
+
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1711
|
+
const ret = arg0.node;
|
|
1712
|
+
return ret;
|
|
1713
|
+
},
|
|
1714
|
+
__wbg_now_aa4ccb83129e9e55: function() {
|
|
1715
|
+
const ret = Date.now();
|
|
1716
|
+
return ret;
|
|
1717
|
+
},
|
|
1718
|
+
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
1719
|
+
const ret = arg0.now();
|
|
1720
|
+
return ret;
|
|
1721
|
+
},
|
|
1722
|
+
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
1723
|
+
const ret = arg0.performance;
|
|
1724
|
+
return ret;
|
|
1725
|
+
},
|
|
1726
|
+
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
1727
|
+
const ret = arg0.process;
|
|
1728
|
+
return ret;
|
|
1729
|
+
},
|
|
1730
|
+
__wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
|
|
1731
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1732
|
+
},
|
|
1733
|
+
__wbg_push_2baf45db356cf468: function(arg0, arg1) {
|
|
1734
|
+
const ret = arg0.push(arg1);
|
|
1735
|
+
return ret;
|
|
1736
|
+
},
|
|
1737
|
+
__wbg_queueMicrotask_9833f9a49df95a49: function(arg0) {
|
|
1738
|
+
const ret = arg0.queueMicrotask;
|
|
1739
|
+
return ret;
|
|
1740
|
+
},
|
|
1741
|
+
__wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
|
|
1742
|
+
queueMicrotask(arg0);
|
|
1743
|
+
},
|
|
1744
|
+
__wbg_queuemessage_new: function(arg0) {
|
|
1745
|
+
const ret = QueueMessage.__wrap(arg0);
|
|
1746
|
+
return ret;
|
|
1747
|
+
},
|
|
1748
|
+
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1749
|
+
arg0.randomFillSync(arg1);
|
|
1750
|
+
}, arguments); },
|
|
1751
|
+
__wbg_readyState_d8514376867e415b: function(arg0) {
|
|
1752
|
+
const ret = arg0.readyState;
|
|
1753
|
+
return ret;
|
|
1754
|
+
},
|
|
1755
|
+
__wbg_reason_832acaf5f4083b7b: function(arg0, arg1) {
|
|
1756
|
+
const ret = arg1.reason;
|
|
1757
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1758
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1759
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1760
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1761
|
+
},
|
|
1762
|
+
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1763
|
+
const ret = module.require;
|
|
1764
|
+
return ret;
|
|
1765
|
+
}, arguments); },
|
|
1766
|
+
__wbg_resolve_0076e10020304ede: function(arg0) {
|
|
1767
|
+
const ret = Promise.resolve(arg0);
|
|
1768
|
+
return ret;
|
|
1769
|
+
},
|
|
1770
|
+
__wbg_send_797960c7a6a0270d: function() { return handleError(function (arg0, arg1) {
|
|
1771
|
+
arg0.send(arg1);
|
|
1772
|
+
}, arguments); },
|
|
1773
|
+
__wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1774
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1775
|
+
return ret;
|
|
1776
|
+
}, arguments); },
|
|
1777
|
+
__wbg_set_6ae97e73113c4f0b: function(arg0, arg1, arg2) {
|
|
1778
|
+
const ret = arg0.set(arg1, arg2);
|
|
1779
|
+
return ret;
|
|
1780
|
+
},
|
|
1781
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1782
|
+
arg0[arg1] = arg2;
|
|
1783
|
+
},
|
|
1784
|
+
__wbg_set_bea140a88be9b277: function(arg0, arg1, arg2) {
|
|
1785
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1786
|
+
},
|
|
1787
|
+
__wbg_set_binaryType_21835bf0df8f70aa: function(arg0, arg1) {
|
|
1788
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1789
|
+
},
|
|
1790
|
+
__wbg_set_onclose_a84370531f3d2948: function(arg0, arg1) {
|
|
1791
|
+
arg0.onclose = arg1;
|
|
1792
|
+
},
|
|
1793
|
+
__wbg_set_onerror_94ee307653399172: function(arg0, arg1) {
|
|
1794
|
+
arg0.onerror = arg1;
|
|
1795
|
+
},
|
|
1796
|
+
__wbg_set_onmessage_cb6f77d2d8e0402a: function(arg0, arg1) {
|
|
1797
|
+
arg0.onmessage = arg1;
|
|
1798
|
+
},
|
|
1799
|
+
__wbg_set_onopen_c914147e8a2db4b0: function(arg0, arg1) {
|
|
1800
|
+
arg0.onopen = arg1;
|
|
1801
|
+
},
|
|
1802
|
+
__wbg_sqlitetransaction_new: function(arg0) {
|
|
1803
|
+
const ret = SqliteTransaction.__wrap(arg0);
|
|
1804
|
+
return ret;
|
|
1805
|
+
},
|
|
1806
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
1807
|
+
const ret = arg1.stack;
|
|
1808
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1809
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1810
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1811
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1812
|
+
},
|
|
1813
|
+
__wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
|
|
1814
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1815
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1816
|
+
},
|
|
1817
|
+
__wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
|
|
1818
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1819
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1820
|
+
},
|
|
1821
|
+
__wbg_static_accessor_SELF_0b583911f537483a: function() {
|
|
1822
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1823
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1824
|
+
},
|
|
1825
|
+
__wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
|
|
1826
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1827
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1828
|
+
},
|
|
1829
|
+
__wbg_stringify_52ff602c1cc4fbb6: function() { return handleError(function (arg0) {
|
|
1830
|
+
const ret = JSON.stringify(arg0);
|
|
1831
|
+
return ret;
|
|
1832
|
+
}, arguments); },
|
|
1833
|
+
__wbg_subarray_002b94d5e13d1411: function(arg0, arg1, arg2) {
|
|
1834
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1835
|
+
return ret;
|
|
1836
|
+
},
|
|
1837
|
+
__wbg_then_c949d5a25a4e78f8: function(arg0, arg1, arg2) {
|
|
1838
|
+
const ret = arg0.then(arg1, arg2);
|
|
1839
|
+
return ret;
|
|
1840
|
+
},
|
|
1841
|
+
__wbg_then_e71170d78fcf8954: function(arg0, arg1) {
|
|
1842
|
+
const ret = arg0.then(arg1);
|
|
1843
|
+
return ret;
|
|
1844
|
+
},
|
|
1845
|
+
__wbg_value_f3c585ee8f5ba40c: function(arg0) {
|
|
1846
|
+
const ret = arg0.value;
|
|
1847
|
+
return ret;
|
|
1848
|
+
},
|
|
1849
|
+
__wbg_versions_276b2795b1c6a219: function(arg0) {
|
|
1850
|
+
const ret = arg0.versions;
|
|
1851
|
+
return ret;
|
|
1852
|
+
},
|
|
1853
|
+
__wbg_websockethandle_new: function(arg0) {
|
|
1854
|
+
const ret = WebSocketHandle.__wrap(arg0);
|
|
1855
|
+
return ret;
|
|
1856
|
+
},
|
|
1857
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1858
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2665, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1859
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___wasm_bindgen_13e07d6143bb6034___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_13e07d6143bb6034___JsError___true_);
|
|
1860
|
+
return ret;
|
|
1861
|
+
},
|
|
1862
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1863
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 2079, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1864
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true_);
|
|
1865
|
+
return ret;
|
|
1866
|
+
},
|
|
1867
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1868
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 2079, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1869
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__119);
|
|
1870
|
+
return ret;
|
|
1871
|
+
},
|
|
1872
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1873
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 2079, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1874
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__120);
|
|
1875
|
+
return ret;
|
|
1876
|
+
},
|
|
1877
|
+
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1878
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 2079, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1879
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__121);
|
|
1880
|
+
return ret;
|
|
1881
|
+
},
|
|
1882
|
+
__wbindgen_generic_0000000000000006: function(arg0) {
|
|
1883
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1884
|
+
const ret = arg0;
|
|
1885
|
+
return ret;
|
|
1886
|
+
},
|
|
1887
|
+
__wbindgen_generic_0000000000000007: function(arg0) {
|
|
1888
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1889
|
+
const ret = arg0;
|
|
1890
|
+
return ret;
|
|
1891
|
+
},
|
|
1892
|
+
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
1893
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1894
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1895
|
+
return ret;
|
|
1896
|
+
},
|
|
1897
|
+
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
1898
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1899
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1900
|
+
return ret;
|
|
1901
|
+
},
|
|
1902
|
+
__wbindgen_generic_000000000000000a: function(arg0) {
|
|
1903
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1904
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1905
|
+
return ret;
|
|
1906
|
+
},
|
|
1907
|
+
__wbindgen_generic_000000000000000b: function(arg0, arg1) {
|
|
1908
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1909
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1910
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1911
|
+
const ret = v0;
|
|
1912
|
+
return ret;
|
|
1913
|
+
},
|
|
1914
|
+
__wbindgen_init_externref_table: function() {
|
|
1915
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1916
|
+
const offset = table.grow(4);
|
|
1917
|
+
table.set(0, undefined);
|
|
1918
|
+
table.set(offset + 0, undefined);
|
|
1919
|
+
table.set(offset + 1, null);
|
|
1920
|
+
table.set(offset + 2, true);
|
|
1921
|
+
table.set(offset + 3, false);
|
|
1922
|
+
},
|
|
1923
|
+
};
|
|
1924
|
+
return {
|
|
1925
|
+
__proto__: null,
|
|
1926
|
+
"./rivetkit_wasm_bg.js": import0,
|
|
1927
|
+
};
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
function wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
|
|
1931
|
+
wasm.wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
function wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__119(arg0, arg1, arg2) {
|
|
1935
|
+
wasm.wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__119(arg0, arg1, arg2);
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
function wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__120(arg0, arg1, arg2) {
|
|
1939
|
+
wasm.wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__120(arg0, arg1, arg2);
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
function wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__121(arg0, arg1, arg2) {
|
|
1943
|
+
wasm.wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__121(arg0, arg1, arg2);
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
function wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___wasm_bindgen_13e07d6143bb6034___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_13e07d6143bb6034___JsError___true_(arg0, arg1, arg2) {
|
|
1947
|
+
const ret = wasm.wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___wasm_bindgen_13e07d6143bb6034___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_13e07d6143bb6034___JsError___true_(arg0, arg1, arg2);
|
|
1948
|
+
if (ret[1]) {
|
|
1949
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
function wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___js_sys_5398293dff02b043___Function_fn_wasm_bindgen_13e07d6143bb6034___JsValue_____wasm_bindgen_13e07d6143bb6034___sys__Undefined___js_sys_5398293dff02b043___Function_fn_wasm_bindgen_13e07d6143bb6034___JsValue_____wasm_bindgen_13e07d6143bb6034___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1954
|
+
wasm.wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___js_sys_5398293dff02b043___Function_fn_wasm_bindgen_13e07d6143bb6034___JsValue_____wasm_bindgen_13e07d6143bb6034___sys__Undefined___js_sys_5398293dff02b043___Function_fn_wasm_bindgen_13e07d6143bb6034___JsValue_____wasm_bindgen_13e07d6143bb6034___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
|
|
1958
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
1959
|
+
const ActorContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1960
|
+
? { register: () => {}, unregister: () => {} }
|
|
1961
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_actorcontext_free(ptr, 1));
|
|
1962
|
+
const ActorFactoryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1963
|
+
? { register: () => {}, unregister: () => {} }
|
|
1964
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_actorfactory_free(ptr, 1));
|
|
1965
|
+
const ActorStateTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1966
|
+
? { register: () => {}, unregister: () => {} }
|
|
1967
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_actorstatetransaction_free(ptr, 1));
|
|
1968
|
+
const CancellationListenerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1969
|
+
? { register: () => {}, unregister: () => {} }
|
|
1970
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cancellationlistener_free(ptr, 1));
|
|
1971
|
+
const CancellationTokenFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1972
|
+
? { register: () => {}, unregister: () => {} }
|
|
1973
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cancellationtoken_free(ptr, 1));
|
|
1974
|
+
const ConnHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1975
|
+
? { register: () => {}, unregister: () => {} }
|
|
1976
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_connhandle_free(ptr, 1));
|
|
1977
|
+
const CoreRegistryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1978
|
+
? { register: () => {}, unregister: () => {} }
|
|
1979
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_coreregistry_free(ptr, 1));
|
|
1980
|
+
const KvFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1981
|
+
? { register: () => {}, unregister: () => {} }
|
|
1982
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_kv_free(ptr, 1));
|
|
1983
|
+
const QueueFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1984
|
+
? { register: () => {}, unregister: () => {} }
|
|
1985
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_queue_free(ptr, 1));
|
|
1986
|
+
const QueueMessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1987
|
+
? { register: () => {}, unregister: () => {} }
|
|
1988
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_queuemessage_free(ptr, 1));
|
|
1989
|
+
const ScheduleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1990
|
+
? { register: () => {}, unregister: () => {} }
|
|
1991
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_schedule_free(ptr, 1));
|
|
1992
|
+
const SqliteDbFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1993
|
+
? { register: () => {}, unregister: () => {} }
|
|
1994
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sqlitedb_free(ptr, 1));
|
|
1533
1995
|
const SqliteTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1534
1996
|
? { register: () => {}, unregister: () => {} }
|
|
1535
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_sqlitetransaction_free(ptr
|
|
1997
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sqlitetransaction_free(ptr, 1));
|
|
1998
|
+
const WebSocketHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1999
|
+
? { register: () => {}, unregister: () => {} }
|
|
2000
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_websockethandle_free(ptr, 1));
|
|
1536
2001
|
|
|
1537
|
-
|
|
2002
|
+
function addToExternrefTable0(obj) {
|
|
2003
|
+
const idx = wasm.__externref_table_alloc();
|
|
2004
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
2005
|
+
return idx;
|
|
2006
|
+
}
|
|
1538
2007
|
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
obj.__wbg_ptr = ptr;
|
|
1543
|
-
SqliteTransactionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1544
|
-
return obj;
|
|
2008
|
+
function _assertClass(instance, klass) {
|
|
2009
|
+
if (!(instance instanceof klass)) {
|
|
2010
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
1545
2011
|
}
|
|
2012
|
+
}
|
|
1546
2013
|
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
SqliteTransactionFinalization.unregister(this);
|
|
1551
|
-
return ptr;
|
|
1552
|
-
}
|
|
2014
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2015
|
+
? { register: () => {}, unregister: () => {} }
|
|
2016
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
1553
2017
|
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
2018
|
+
function debugString(val) {
|
|
2019
|
+
// primitive types
|
|
2020
|
+
const type = typeof val;
|
|
2021
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
2022
|
+
return `${val}`;
|
|
1557
2023
|
}
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
* @returns {Promise<any>}
|
|
1561
|
-
*/
|
|
1562
|
-
exec(sql) {
|
|
1563
|
-
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1564
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1565
|
-
const ret = wasm.sqlitetransaction_exec(this.__wbg_ptr, ptr0, len0);
|
|
1566
|
-
return ret;
|
|
2024
|
+
if (type == 'string') {
|
|
2025
|
+
return `"${val}"`;
|
|
1567
2026
|
}
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
2027
|
+
if (type == 'symbol') {
|
|
2028
|
+
const description = val.description;
|
|
2029
|
+
if (description == null) {
|
|
2030
|
+
return 'Symbol';
|
|
2031
|
+
} else {
|
|
2032
|
+
return `Symbol(${description})`;
|
|
2033
|
+
}
|
|
1574
2034
|
}
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1583
|
-
const ret = wasm.sqlitetransaction_execute(this.__wbg_ptr, ptr0, len0, params);
|
|
1584
|
-
return ret;
|
|
2035
|
+
if (type == 'function') {
|
|
2036
|
+
const name = val.name;
|
|
2037
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
2038
|
+
return `Function(${name})`;
|
|
2039
|
+
} else {
|
|
2040
|
+
return 'Function';
|
|
2041
|
+
}
|
|
1585
2042
|
}
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
2043
|
+
// objects
|
|
2044
|
+
if (Array.isArray(val)) {
|
|
2045
|
+
const length = val.length;
|
|
2046
|
+
let debug = '[';
|
|
2047
|
+
if (length > 0) {
|
|
2048
|
+
debug += debugString(val[0]);
|
|
2049
|
+
}
|
|
2050
|
+
for(let i = 1; i < length; i++) {
|
|
2051
|
+
debug += ', ' + debugString(val[i]);
|
|
2052
|
+
}
|
|
2053
|
+
debug += ']';
|
|
2054
|
+
return debug;
|
|
2055
|
+
}
|
|
2056
|
+
// Test for built-in
|
|
2057
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
2058
|
+
let className;
|
|
2059
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
2060
|
+
className = builtInMatches[1];
|
|
2061
|
+
} else {
|
|
2062
|
+
// Failed to match the standard '[object ClassName]'
|
|
2063
|
+
return toString.call(val);
|
|
2064
|
+
}
|
|
2065
|
+
if (className == 'Object') {
|
|
2066
|
+
// we're a user defined class or Object
|
|
2067
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
2068
|
+
// easier than looping through ownProperties of `val`.
|
|
2069
|
+
try {
|
|
2070
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
2071
|
+
} catch (_) {
|
|
2072
|
+
return 'Object';
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
// errors
|
|
2076
|
+
if (val instanceof Error) {
|
|
2077
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1592
2078
|
}
|
|
2079
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
2080
|
+
return className;
|
|
1593
2081
|
}
|
|
1594
2082
|
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
export class WebSocketHandle {
|
|
2083
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
2084
|
+
ptr = ptr >>> 0;
|
|
2085
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
2086
|
+
}
|
|
1600
2087
|
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
WebSocketHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1606
|
-
return obj;
|
|
2088
|
+
let cachedDataViewMemory0 = null;
|
|
2089
|
+
function getDataViewMemory0() {
|
|
2090
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
2091
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1607
2092
|
}
|
|
2093
|
+
return cachedDataViewMemory0;
|
|
2094
|
+
}
|
|
1608
2095
|
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
2096
|
+
function getStringFromWasm0(ptr, len) {
|
|
2097
|
+
return decodeText(ptr >>> 0, len);
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
let cachedUint8ArrayMemory0 = null;
|
|
2101
|
+
function getUint8ArrayMemory0() {
|
|
2102
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
2103
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1614
2104
|
}
|
|
2105
|
+
return cachedUint8ArrayMemory0;
|
|
2106
|
+
}
|
|
1615
2107
|
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
2108
|
+
function handleError(f, args) {
|
|
2109
|
+
try {
|
|
2110
|
+
return f.apply(this, args);
|
|
2111
|
+
} catch (e) {
|
|
2112
|
+
const idx = addToExternrefTable0(e);
|
|
2113
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1619
2114
|
}
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
function isLikeNone(x) {
|
|
2118
|
+
return x === undefined || x === null;
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
2122
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
2123
|
+
const real = (...args) => {
|
|
2124
|
+
|
|
2125
|
+
// First up with a closure we increment the internal reference
|
|
2126
|
+
// count. This ensures that the Rust closure environment won't
|
|
2127
|
+
// be deallocated while we're invoking it.
|
|
2128
|
+
state.cnt++;
|
|
2129
|
+
const a = state.a;
|
|
2130
|
+
state.a = 0;
|
|
2131
|
+
try {
|
|
2132
|
+
return f(a, state.b, ...args);
|
|
2133
|
+
} finally {
|
|
2134
|
+
state.a = a;
|
|
2135
|
+
real._wbg_cb_unref();
|
|
2136
|
+
}
|
|
2137
|
+
};
|
|
2138
|
+
real._wbg_cb_unref = () => {
|
|
2139
|
+
if (--state.cnt === 0) {
|
|
2140
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
2141
|
+
state.a = 0;
|
|
2142
|
+
CLOSURE_DTORS.unregister(state);
|
|
2143
|
+
}
|
|
2144
|
+
};
|
|
2145
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
2146
|
+
return real;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
2150
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
2151
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
2152
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2153
|
+
return ptr;
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
2157
|
+
if (realloc === undefined) {
|
|
2158
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
2159
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
2160
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
2161
|
+
WASM_VECTOR_LEN = buf.length;
|
|
2162
|
+
return ptr;
|
|
1630
2163
|
}
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
2164
|
+
|
|
2165
|
+
let len = arg.length;
|
|
2166
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
2167
|
+
|
|
2168
|
+
const mem = getUint8ArrayMemory0();
|
|
2169
|
+
|
|
2170
|
+
let offset = 0;
|
|
2171
|
+
|
|
2172
|
+
for (; offset < len; offset++) {
|
|
2173
|
+
const code = arg.charCodeAt(offset);
|
|
2174
|
+
if (code > 0x7F) break;
|
|
2175
|
+
mem[ptr + offset] = code;
|
|
1636
2176
|
}
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
*/
|
|
1641
|
-
send(data, binary) {
|
|
1642
|
-
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
1643
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1644
|
-
const ret = wasm.websockethandle_send(this.__wbg_ptr, ptr0, len0, binary);
|
|
1645
|
-
if (ret[1]) {
|
|
1646
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
2177
|
+
if (offset !== len) {
|
|
2178
|
+
if (offset !== 0) {
|
|
2179
|
+
arg = arg.slice(offset);
|
|
1647
2180
|
}
|
|
2181
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
2182
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
2183
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
2184
|
+
|
|
2185
|
+
offset += ret.written;
|
|
2186
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
WASM_VECTOR_LEN = offset;
|
|
2190
|
+
return ptr;
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
function takeFromExternrefTable0(idx) {
|
|
2194
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
2195
|
+
wasm.__externref_table_dealloc(idx);
|
|
2196
|
+
return value;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2200
|
+
cachedTextDecoder.decode();
|
|
2201
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
2202
|
+
let numBytesDecoded = 0;
|
|
2203
|
+
function decodeText(ptr, len) {
|
|
2204
|
+
numBytesDecoded += len;
|
|
2205
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
2206
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2207
|
+
cachedTextDecoder.decode();
|
|
2208
|
+
numBytesDecoded = len;
|
|
1648
2209
|
}
|
|
2210
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
const cachedTextEncoder = new TextEncoder();
|
|
2214
|
+
|
|
2215
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
2216
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
2217
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
2218
|
+
view.set(buf);
|
|
2219
|
+
return {
|
|
2220
|
+
read: arg.length,
|
|
2221
|
+
written: buf.length
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
let WASM_VECTOR_LEN = 0;
|
|
2227
|
+
|
|
2228
|
+
let wasmModule, wasmInstance, wasm;
|
|
2229
|
+
function __wbg_finalize_init(instance, module) {
|
|
2230
|
+
wasmInstance = instance;
|
|
2231
|
+
wasm = instance.exports;
|
|
2232
|
+
wasmModule = module;
|
|
2233
|
+
cachedDataViewMemory0 = null;
|
|
2234
|
+
cachedUint8ArrayMemory0 = null;
|
|
2235
|
+
wasm.__wbindgen_start();
|
|
2236
|
+
return wasm;
|
|
1649
2237
|
}
|
|
1650
2238
|
|
|
1651
2239
|
async function __wbg_load(module, imports) {
|
|
1652
2240
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
2241
|
+
if (!module.ok) {
|
|
2242
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
2243
|
+
}
|
|
2244
|
+
|
|
1653
2245
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1654
2246
|
try {
|
|
1655
2247
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1656
|
-
|
|
1657
2248
|
} catch (e) {
|
|
1658
|
-
|
|
2249
|
+
const validResponse = expectedResponseType(module.type);
|
|
2250
|
+
|
|
2251
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1659
2252
|
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);
|
|
1660
2253
|
|
|
1661
|
-
} else {
|
|
1662
|
-
throw e;
|
|
1663
|
-
}
|
|
2254
|
+
} else { throw e; }
|
|
1664
2255
|
}
|
|
1665
2256
|
}
|
|
1666
2257
|
|
|
1667
2258
|
const bytes = await module.arrayBuffer();
|
|
1668
2259
|
return await WebAssembly.instantiate(bytes, imports);
|
|
1669
|
-
|
|
1670
2260
|
} else {
|
|
1671
2261
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
1672
2262
|
|
|
1673
2263
|
if (instance instanceof WebAssembly.Instance) {
|
|
1674
2264
|
return { instance, module };
|
|
1675
|
-
|
|
1676
2265
|
} else {
|
|
1677
2266
|
return instance;
|
|
1678
2267
|
}
|
|
1679
2268
|
}
|
|
1680
|
-
}
|
|
1681
2269
|
|
|
1682
|
-
function
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
1686
|
-
const ret = String(arg1);
|
|
1687
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1688
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1689
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1690
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1691
|
-
};
|
|
1692
|
-
imports.wbg.__wbg_actorcontext_new = function(arg0) {
|
|
1693
|
-
const ret = ActorContext.__wrap(arg0);
|
|
1694
|
-
return ret;
|
|
1695
|
-
};
|
|
1696
|
-
imports.wbg.__wbg_actorstatetransaction_new = function(arg0) {
|
|
1697
|
-
const ret = ActorStateTransaction.__wrap(arg0);
|
|
1698
|
-
return ret;
|
|
1699
|
-
};
|
|
1700
|
-
imports.wbg.__wbg_buffer_09165b52af8c5237 = function(arg0) {
|
|
1701
|
-
const ret = arg0.buffer;
|
|
1702
|
-
return ret;
|
|
1703
|
-
};
|
|
1704
|
-
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
1705
|
-
const ret = arg0.buffer;
|
|
1706
|
-
return ret;
|
|
1707
|
-
};
|
|
1708
|
-
imports.wbg.__wbg_bufferedAmount_a482960ac51b25e8 = function(arg0) {
|
|
1709
|
-
const ret = arg0.bufferedAmount;
|
|
1710
|
-
return ret;
|
|
1711
|
-
};
|
|
1712
|
-
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
1713
|
-
const ret = arg0.call(arg1);
|
|
1714
|
-
return ret;
|
|
1715
|
-
}, arguments) };
|
|
1716
|
-
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1717
|
-
const ret = arg0.call(arg1, arg2);
|
|
1718
|
-
return ret;
|
|
1719
|
-
}, arguments) };
|
|
1720
|
-
imports.wbg.__wbg_call_833bed5770ea2041 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1721
|
-
const ret = arg0.call(arg1, arg2, arg3);
|
|
1722
|
-
return ret;
|
|
1723
|
-
}, arguments) };
|
|
1724
|
-
imports.wbg.__wbg_cancellationtoken_new = function(arg0) {
|
|
1725
|
-
const ret = CancellationToken.__wrap(arg0);
|
|
1726
|
-
return ret;
|
|
1727
|
-
};
|
|
1728
|
-
imports.wbg.__wbg_close_2893b7d056a0627d = function() { return handleError(function (arg0) {
|
|
1729
|
-
arg0.close();
|
|
1730
|
-
}, arguments) };
|
|
1731
|
-
imports.wbg.__wbg_close_e1253d480ed93ce3 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1732
|
-
arg0.close(arg1, getStringFromWasm0(arg2, arg3));
|
|
1733
|
-
}, arguments) };
|
|
1734
|
-
imports.wbg.__wbg_code_f4ec1e6e2e1b0417 = function(arg0) {
|
|
1735
|
-
const ret = arg0.code;
|
|
1736
|
-
return ret;
|
|
1737
|
-
};
|
|
1738
|
-
imports.wbg.__wbg_connhandle_new = function(arg0) {
|
|
1739
|
-
const ret = ConnHandle.__wrap(arg0);
|
|
1740
|
-
return ret;
|
|
1741
|
-
};
|
|
1742
|
-
imports.wbg.__wbg_construct_b91ff0e53b60c0c3 = function() { return handleError(function (arg0, arg1) {
|
|
1743
|
-
const ret = Reflect.construct(arg0, arg1);
|
|
1744
|
-
return ret;
|
|
1745
|
-
}, arguments) };
|
|
1746
|
-
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
1747
|
-
const ret = arg0.crypto;
|
|
1748
|
-
return ret;
|
|
1749
|
-
};
|
|
1750
|
-
imports.wbg.__wbg_data_432d9c3df2630942 = function(arg0) {
|
|
1751
|
-
const ret = arg0.data;
|
|
1752
|
-
return ret;
|
|
1753
|
-
};
|
|
1754
|
-
imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
1755
|
-
const ret = arg0.done;
|
|
1756
|
-
return ret;
|
|
1757
|
-
};
|
|
1758
|
-
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
1759
|
-
let deferred0_0;
|
|
1760
|
-
let deferred0_1;
|
|
1761
|
-
try {
|
|
1762
|
-
deferred0_0 = arg0;
|
|
1763
|
-
deferred0_1 = arg1;
|
|
1764
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
1765
|
-
} finally {
|
|
1766
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1767
|
-
}
|
|
1768
|
-
};
|
|
1769
|
-
imports.wbg.__wbg_getRandomValues_430b4ece0366b997 = function() { return handleError(function (arg0, arg1) {
|
|
1770
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1771
|
-
}, arguments) };
|
|
1772
|
-
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
1773
|
-
arg0.getRandomValues(arg1);
|
|
1774
|
-
}, arguments) };
|
|
1775
|
-
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
1776
|
-
const ret = Reflect.get(arg0, arg1);
|
|
1777
|
-
return ret;
|
|
1778
|
-
}, arguments) };
|
|
1779
|
-
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
1780
|
-
const ret = arg0[arg1 >>> 0];
|
|
1781
|
-
return ret;
|
|
1782
|
-
};
|
|
1783
|
-
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
1784
|
-
const ret = arg0[arg1];
|
|
1785
|
-
return ret;
|
|
1786
|
-
};
|
|
1787
|
-
imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
1788
|
-
let result;
|
|
1789
|
-
try {
|
|
1790
|
-
result = arg0 instanceof ArrayBuffer;
|
|
1791
|
-
} catch (_) {
|
|
1792
|
-
result = false;
|
|
1793
|
-
}
|
|
1794
|
-
const ret = result;
|
|
1795
|
-
return ret;
|
|
1796
|
-
};
|
|
1797
|
-
imports.wbg.__wbg_instanceof_Error_4d54113b22d20306 = function(arg0) {
|
|
1798
|
-
let result;
|
|
1799
|
-
try {
|
|
1800
|
-
result = arg0 instanceof Error;
|
|
1801
|
-
} catch (_) {
|
|
1802
|
-
result = false;
|
|
1803
|
-
}
|
|
1804
|
-
const ret = result;
|
|
1805
|
-
return ret;
|
|
1806
|
-
};
|
|
1807
|
-
imports.wbg.__wbg_instanceof_Object_7f2dcef8f78644a4 = function(arg0) {
|
|
1808
|
-
let result;
|
|
1809
|
-
try {
|
|
1810
|
-
result = arg0 instanceof Object;
|
|
1811
|
-
} catch (_) {
|
|
1812
|
-
result = false;
|
|
1813
|
-
}
|
|
1814
|
-
const ret = result;
|
|
1815
|
-
return ret;
|
|
1816
|
-
};
|
|
1817
|
-
imports.wbg.__wbg_instanceof_Promise_935168b8f4b49db3 = function(arg0) {
|
|
1818
|
-
let result;
|
|
1819
|
-
try {
|
|
1820
|
-
result = arg0 instanceof Promise;
|
|
1821
|
-
} catch (_) {
|
|
1822
|
-
result = false;
|
|
1823
|
-
}
|
|
1824
|
-
const ret = result;
|
|
1825
|
-
return ret;
|
|
1826
|
-
};
|
|
1827
|
-
imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
1828
|
-
let result;
|
|
1829
|
-
try {
|
|
1830
|
-
result = arg0 instanceof Uint8Array;
|
|
1831
|
-
} catch (_) {
|
|
1832
|
-
result = false;
|
|
1833
|
-
}
|
|
1834
|
-
const ret = result;
|
|
1835
|
-
return ret;
|
|
1836
|
-
};
|
|
1837
|
-
imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
1838
|
-
const ret = Array.isArray(arg0);
|
|
1839
|
-
return ret;
|
|
1840
|
-
};
|
|
1841
|
-
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
1842
|
-
const ret = Number.isSafeInteger(arg0);
|
|
1843
|
-
return ret;
|
|
1844
|
-
};
|
|
1845
|
-
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
1846
|
-
const ret = Symbol.iterator;
|
|
1847
|
-
return ret;
|
|
1848
|
-
};
|
|
1849
|
-
imports.wbg.__wbg_keys_5c77a08ddc2fb8a6 = function(arg0) {
|
|
1850
|
-
const ret = Object.keys(arg0);
|
|
1851
|
-
return ret;
|
|
1852
|
-
};
|
|
1853
|
-
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
1854
|
-
const ret = arg0.length;
|
|
1855
|
-
return ret;
|
|
1856
|
-
};
|
|
1857
|
-
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
1858
|
-
const ret = arg0.length;
|
|
1859
|
-
return ret;
|
|
1860
|
-
};
|
|
1861
|
-
imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
|
|
1862
|
-
const ret = arg0.message;
|
|
1863
|
-
return ret;
|
|
1864
|
-
};
|
|
1865
|
-
imports.wbg.__wbg_message_d1685a448ba00178 = function(arg0, arg1) {
|
|
1866
|
-
const ret = arg1.message;
|
|
1867
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1868
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1869
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1870
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1871
|
-
};
|
|
1872
|
-
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1873
|
-
const ret = arg0.msCrypto;
|
|
1874
|
-
return ret;
|
|
1875
|
-
};
|
|
1876
|
-
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
1877
|
-
try {
|
|
1878
|
-
var state0 = {a: arg0, b: arg1};
|
|
1879
|
-
var cb0 = (arg0, arg1) => {
|
|
1880
|
-
const a = state0.a;
|
|
1881
|
-
state0.a = 0;
|
|
1882
|
-
try {
|
|
1883
|
-
return __wbg_adapter_297(a, state0.b, arg0, arg1);
|
|
1884
|
-
} finally {
|
|
1885
|
-
state0.a = a;
|
|
1886
|
-
}
|
|
1887
|
-
};
|
|
1888
|
-
const ret = new Promise(cb0);
|
|
1889
|
-
return ret;
|
|
1890
|
-
} finally {
|
|
1891
|
-
state0.a = state0.b = 0;
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
|
-
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
1895
|
-
const ret = new Object();
|
|
1896
|
-
return ret;
|
|
1897
|
-
};
|
|
1898
|
-
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
|
1899
|
-
const ret = new Map();
|
|
1900
|
-
return ret;
|
|
1901
|
-
};
|
|
1902
|
-
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
1903
|
-
const ret = new Array();
|
|
1904
|
-
return ret;
|
|
1905
|
-
};
|
|
1906
|
-
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
1907
|
-
const ret = new Error();
|
|
1908
|
-
return ret;
|
|
1909
|
-
};
|
|
1910
|
-
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
1911
|
-
const ret = new Uint8Array(arg0);
|
|
1912
|
-
return ret;
|
|
1913
|
-
};
|
|
1914
|
-
imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
|
|
1915
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1916
|
-
return ret;
|
|
1917
|
-
};
|
|
1918
|
-
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
1919
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1920
|
-
return ret;
|
|
1921
|
-
};
|
|
1922
|
-
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
1923
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1924
|
-
return ret;
|
|
1925
|
-
};
|
|
1926
|
-
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
1927
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
1928
|
-
return ret;
|
|
1929
|
-
};
|
|
1930
|
-
imports.wbg.__wbg_newwithstrsequence_6e9d6479e1cf978d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1931
|
-
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
|
|
1932
|
-
return ret;
|
|
1933
|
-
}, arguments) };
|
|
1934
|
-
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
1935
|
-
const ret = arg0.next;
|
|
1936
|
-
return ret;
|
|
1937
|
-
};
|
|
1938
|
-
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
1939
|
-
const ret = arg0.next();
|
|
1940
|
-
return ret;
|
|
1941
|
-
}, arguments) };
|
|
1942
|
-
imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1943
|
-
const ret = arg0.node;
|
|
1944
|
-
return ret;
|
|
1945
|
-
};
|
|
1946
|
-
imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
|
|
1947
|
-
const ret = arg0.now();
|
|
1948
|
-
return ret;
|
|
1949
|
-
};
|
|
1950
|
-
imports.wbg.__wbg_now_807e54c39636c349 = function() {
|
|
1951
|
-
const ret = Date.now();
|
|
1952
|
-
return ret;
|
|
1953
|
-
};
|
|
1954
|
-
imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
|
|
1955
|
-
const ret = arg0.performance;
|
|
1956
|
-
return ret;
|
|
1957
|
-
};
|
|
1958
|
-
imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1959
|
-
const ret = arg0.process;
|
|
1960
|
-
return ret;
|
|
1961
|
-
};
|
|
1962
|
-
imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
|
|
1963
|
-
const ret = arg0.push(arg1);
|
|
1964
|
-
return ret;
|
|
1965
|
-
};
|
|
1966
|
-
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
1967
|
-
queueMicrotask(arg0);
|
|
1968
|
-
};
|
|
1969
|
-
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
1970
|
-
const ret = arg0.queueMicrotask;
|
|
1971
|
-
return ret;
|
|
1972
|
-
};
|
|
1973
|
-
imports.wbg.__wbg_queuemessage_new = function(arg0) {
|
|
1974
|
-
const ret = QueueMessage.__wrap(arg0);
|
|
1975
|
-
return ret;
|
|
1976
|
-
};
|
|
1977
|
-
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1978
|
-
arg0.randomFillSync(arg1);
|
|
1979
|
-
}, arguments) };
|
|
1980
|
-
imports.wbg.__wbg_readyState_7ef6e63c349899ed = function(arg0) {
|
|
1981
|
-
const ret = arg0.readyState;
|
|
1982
|
-
return ret;
|
|
1983
|
-
};
|
|
1984
|
-
imports.wbg.__wbg_reason_49f1cede8bcf23dd = function(arg0, arg1) {
|
|
1985
|
-
const ret = arg1.reason;
|
|
1986
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1987
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1988
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1989
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1990
|
-
};
|
|
1991
|
-
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1992
|
-
const ret = module.require;
|
|
1993
|
-
return ret;
|
|
1994
|
-
}, arguments) };
|
|
1995
|
-
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
1996
|
-
const ret = Promise.resolve(arg0);
|
|
1997
|
-
return ret;
|
|
1998
|
-
};
|
|
1999
|
-
imports.wbg.__wbg_send_7c4769e24cf1d784 = function() { return handleError(function (arg0, arg1) {
|
|
2000
|
-
arg0.send(arg1);
|
|
2001
|
-
}, arguments) };
|
|
2002
|
-
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
2003
|
-
arg0[arg1 >>> 0] = arg2;
|
|
2004
|
-
};
|
|
2005
|
-
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
2006
|
-
arg0[arg1] = arg2;
|
|
2007
|
-
};
|
|
2008
|
-
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
2009
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
2010
|
-
};
|
|
2011
|
-
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
2012
|
-
const ret = arg0.set(arg1, arg2);
|
|
2013
|
-
return ret;
|
|
2014
|
-
};
|
|
2015
|
-
imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2016
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
2017
|
-
return ret;
|
|
2018
|
-
}, arguments) };
|
|
2019
|
-
imports.wbg.__wbg_setbinaryType_92fa1ffd873b327c = function(arg0, arg1) {
|
|
2020
|
-
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
2021
|
-
};
|
|
2022
|
-
imports.wbg.__wbg_setonclose_14fc475a49d488fc = function(arg0, arg1) {
|
|
2023
|
-
arg0.onclose = arg1;
|
|
2024
|
-
};
|
|
2025
|
-
imports.wbg.__wbg_setonerror_8639efe354b947cd = function(arg0, arg1) {
|
|
2026
|
-
arg0.onerror = arg1;
|
|
2027
|
-
};
|
|
2028
|
-
imports.wbg.__wbg_setonmessage_6eccab530a8fb4c7 = function(arg0, arg1) {
|
|
2029
|
-
arg0.onmessage = arg1;
|
|
2030
|
-
};
|
|
2031
|
-
imports.wbg.__wbg_setonopen_2da654e1f39745d5 = function(arg0, arg1) {
|
|
2032
|
-
arg0.onopen = arg1;
|
|
2033
|
-
};
|
|
2034
|
-
imports.wbg.__wbg_sqlitetransaction_new = function(arg0) {
|
|
2035
|
-
const ret = SqliteTransaction.__wrap(arg0);
|
|
2036
|
-
return ret;
|
|
2037
|
-
};
|
|
2038
|
-
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
2039
|
-
const ret = arg1.stack;
|
|
2040
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2041
|
-
const len1 = WASM_VECTOR_LEN;
|
|
2042
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2043
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2044
|
-
};
|
|
2045
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
2046
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
2047
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2048
|
-
};
|
|
2049
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
2050
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2051
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2052
|
-
};
|
|
2053
|
-
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
2054
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
2055
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2056
|
-
};
|
|
2057
|
-
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
2058
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
2059
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2060
|
-
};
|
|
2061
|
-
imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
|
|
2062
|
-
const ret = JSON.stringify(arg0);
|
|
2063
|
-
return ret;
|
|
2064
|
-
}, arguments) };
|
|
2065
|
-
imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
2066
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2067
|
-
return ret;
|
|
2068
|
-
};
|
|
2069
|
-
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
2070
|
-
const ret = arg0.then(arg1);
|
|
2071
|
-
return ret;
|
|
2072
|
-
};
|
|
2073
|
-
imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
2074
|
-
const ret = arg0.then(arg1, arg2);
|
|
2075
|
-
return ret;
|
|
2076
|
-
};
|
|
2077
|
-
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
2078
|
-
const ret = arg0.value;
|
|
2079
|
-
return ret;
|
|
2080
|
-
};
|
|
2081
|
-
imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
2082
|
-
const ret = arg0.versions;
|
|
2083
|
-
return ret;
|
|
2084
|
-
};
|
|
2085
|
-
imports.wbg.__wbg_websockethandle_new = function(arg0) {
|
|
2086
|
-
const ret = WebSocketHandle.__wrap(arg0);
|
|
2087
|
-
return ret;
|
|
2088
|
-
};
|
|
2089
|
-
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
2090
|
-
const ret = +arg0;
|
|
2091
|
-
return ret;
|
|
2092
|
-
};
|
|
2093
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
2094
|
-
const ret = arg0;
|
|
2095
|
-
return ret;
|
|
2096
|
-
};
|
|
2097
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2098
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2099
|
-
return ret;
|
|
2100
|
-
};
|
|
2101
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
2102
|
-
const v = arg0;
|
|
2103
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
2104
|
-
return ret;
|
|
2105
|
-
};
|
|
2106
|
-
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
2107
|
-
const obj = arg0.original;
|
|
2108
|
-
if (obj.cnt-- == 1) {
|
|
2109
|
-
obj.a = 0;
|
|
2110
|
-
return true;
|
|
2270
|
+
function expectedResponseType(type) {
|
|
2271
|
+
switch (type) {
|
|
2272
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
2111
2273
|
}
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
};
|
|
2115
|
-
imports.wbg.__wbindgen_closure_wrapper5111 = function(arg0, arg1, arg2) {
|
|
2116
|
-
const ret = makeMutClosure(arg0, arg1, 2001, __wbg_adapter_50);
|
|
2117
|
-
return ret;
|
|
2118
|
-
};
|
|
2119
|
-
imports.wbg.__wbindgen_closure_wrapper5113 = function(arg0, arg1, arg2) {
|
|
2120
|
-
const ret = makeMutClosure(arg0, arg1, 2001, __wbg_adapter_50);
|
|
2121
|
-
return ret;
|
|
2122
|
-
};
|
|
2123
|
-
imports.wbg.__wbindgen_closure_wrapper5115 = function(arg0, arg1, arg2) {
|
|
2124
|
-
const ret = makeMutClosure(arg0, arg1, 2001, __wbg_adapter_50);
|
|
2125
|
-
return ret;
|
|
2126
|
-
};
|
|
2127
|
-
imports.wbg.__wbindgen_closure_wrapper5117 = function(arg0, arg1, arg2) {
|
|
2128
|
-
const ret = makeMutClosure(arg0, arg1, 2001, __wbg_adapter_50);
|
|
2129
|
-
return ret;
|
|
2130
|
-
};
|
|
2131
|
-
imports.wbg.__wbindgen_closure_wrapper5692 = function(arg0, arg1, arg2) {
|
|
2132
|
-
const ret = makeMutClosure(arg0, arg1, 2345, __wbg_adapter_59);
|
|
2133
|
-
return ret;
|
|
2134
|
-
};
|
|
2135
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
2136
|
-
const ret = debugString(arg1);
|
|
2137
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2138
|
-
const len1 = WASM_VECTOR_LEN;
|
|
2139
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2140
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2141
|
-
};
|
|
2142
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2143
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2144
|
-
return ret;
|
|
2145
|
-
};
|
|
2146
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2147
|
-
const ret = arg0 in arg1;
|
|
2148
|
-
return ret;
|
|
2149
|
-
};
|
|
2150
|
-
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
2151
|
-
const table = wasm.__wbindgen_export_4;
|
|
2152
|
-
const offset = table.grow(4);
|
|
2153
|
-
table.set(0, undefined);
|
|
2154
|
-
table.set(offset + 0, undefined);
|
|
2155
|
-
table.set(offset + 1, null);
|
|
2156
|
-
table.set(offset + 2, true);
|
|
2157
|
-
table.set(offset + 3, false);
|
|
2158
|
-
;
|
|
2159
|
-
};
|
|
2160
|
-
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
2161
|
-
const ret = typeof(arg0) === 'function';
|
|
2162
|
-
return ret;
|
|
2163
|
-
};
|
|
2164
|
-
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
2165
|
-
const ret = arg0 === null;
|
|
2166
|
-
return ret;
|
|
2167
|
-
};
|
|
2168
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2169
|
-
const val = arg0;
|
|
2170
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2171
|
-
return ret;
|
|
2172
|
-
};
|
|
2173
|
-
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
2174
|
-
const ret = typeof(arg0) === 'string';
|
|
2175
|
-
return ret;
|
|
2176
|
-
};
|
|
2177
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2178
|
-
const ret = arg0 === undefined;
|
|
2179
|
-
return ret;
|
|
2180
|
-
};
|
|
2181
|
-
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2182
|
-
const ret = arg0 == arg1;
|
|
2183
|
-
return ret;
|
|
2184
|
-
};
|
|
2185
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
2186
|
-
const ret = wasm.memory;
|
|
2187
|
-
return ret;
|
|
2188
|
-
};
|
|
2189
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
2190
|
-
const obj = arg1;
|
|
2191
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2192
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2193
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2194
|
-
};
|
|
2195
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
2196
|
-
const ret = arg0;
|
|
2197
|
-
return ret;
|
|
2198
|
-
};
|
|
2199
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2200
|
-
const obj = arg1;
|
|
2201
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2202
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2203
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2204
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2205
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2206
|
-
};
|
|
2207
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2208
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2209
|
-
return ret;
|
|
2210
|
-
};
|
|
2211
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
2212
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2213
|
-
};
|
|
2214
|
-
imports.wbg.__wbindgen_uint8_array_new = function(arg0, arg1) {
|
|
2215
|
-
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2216
|
-
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
2217
|
-
const ret = v0;
|
|
2218
|
-
return ret;
|
|
2219
|
-
};
|
|
2220
|
-
|
|
2221
|
-
return imports;
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
function __wbg_init_memory(imports, memory) {
|
|
2225
|
-
|
|
2226
|
-
}
|
|
2227
|
-
|
|
2228
|
-
function __wbg_finalize_init(instance, module) {
|
|
2229
|
-
wasm = instance.exports;
|
|
2230
|
-
__wbg_init.__wbindgen_wasm_module = module;
|
|
2231
|
-
cachedDataViewMemory0 = null;
|
|
2232
|
-
cachedUint8ArrayMemory0 = null;
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
wasm.__wbindgen_start();
|
|
2236
|
-
return wasm;
|
|
2274
|
+
return false;
|
|
2275
|
+
}
|
|
2237
2276
|
}
|
|
2238
2277
|
|
|
2239
2278
|
function initSync(module) {
|
|
2240
2279
|
if (wasm !== undefined) return wasm;
|
|
2241
2280
|
|
|
2242
2281
|
|
|
2243
|
-
if (
|
|
2282
|
+
if (module !== undefined) {
|
|
2244
2283
|
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2245
2284
|
({module} = module)
|
|
2246
2285
|
} else {
|
|
@@ -2249,15 +2288,10 @@ function initSync(module) {
|
|
|
2249
2288
|
}
|
|
2250
2289
|
|
|
2251
2290
|
const imports = __wbg_get_imports();
|
|
2252
|
-
|
|
2253
|
-
__wbg_init_memory(imports);
|
|
2254
|
-
|
|
2255
2291
|
if (!(module instanceof WebAssembly.Module)) {
|
|
2256
2292
|
module = new WebAssembly.Module(module);
|
|
2257
2293
|
}
|
|
2258
|
-
|
|
2259
2294
|
const instance = new WebAssembly.Instance(module, imports);
|
|
2260
|
-
|
|
2261
2295
|
return __wbg_finalize_init(instance, module);
|
|
2262
2296
|
}
|
|
2263
2297
|
|
|
@@ -2265,7 +2299,7 @@ async function __wbg_init(module_or_path) {
|
|
|
2265
2299
|
if (wasm !== undefined) return wasm;
|
|
2266
2300
|
|
|
2267
2301
|
|
|
2268
|
-
if (
|
|
2302
|
+
if (module_or_path !== undefined) {
|
|
2269
2303
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2270
2304
|
({module_or_path} = module_or_path)
|
|
2271
2305
|
} else {
|
|
@@ -2273,7 +2307,7 @@ async function __wbg_init(module_or_path) {
|
|
|
2273
2307
|
}
|
|
2274
2308
|
}
|
|
2275
2309
|
|
|
2276
|
-
if (
|
|
2310
|
+
if (module_or_path === undefined) {
|
|
2277
2311
|
module_or_path = new URL('rivetkit_wasm_bg.wasm', import.meta.url);
|
|
2278
2312
|
}
|
|
2279
2313
|
const imports = __wbg_get_imports();
|
|
@@ -2282,12 +2316,9 @@ async function __wbg_init(module_or_path) {
|
|
|
2282
2316
|
module_or_path = fetch(module_or_path);
|
|
2283
2317
|
}
|
|
2284
2318
|
|
|
2285
|
-
__wbg_init_memory(imports);
|
|
2286
|
-
|
|
2287
2319
|
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2288
2320
|
|
|
2289
2321
|
return __wbg_finalize_init(instance, module);
|
|
2290
2322
|
}
|
|
2291
2323
|
|
|
2292
|
-
export { initSync };
|
|
2293
|
-
export default __wbg_init;
|
|
2324
|
+
export { initSync, __wbg_init as default };
|