ahqstore-types 0.0.1
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/README.md +5 -0
- package/ahqstore_types.d.ts +254 -0
- package/ahqstore_types.js +5 -0
- package/ahqstore_types_bg.js +1895 -0
- package/ahqstore_types_bg.wasm +0 -0
- package/package.json +24 -0
|
@@ -0,0 +1,1895 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
export function __wbg_set_wasm(val) {
|
|
3
|
+
wasm = val;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
8
|
+
|
|
9
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
10
|
+
|
|
11
|
+
cachedTextDecoder.decode();
|
|
12
|
+
|
|
13
|
+
let cachedUint8ArrayMemory0 = null;
|
|
14
|
+
|
|
15
|
+
function getUint8ArrayMemory0() {
|
|
16
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
17
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
18
|
+
}
|
|
19
|
+
return cachedUint8ArrayMemory0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function getStringFromWasm0(ptr, len) {
|
|
23
|
+
ptr = ptr >>> 0;
|
|
24
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const heap = new Array(128).fill(undefined);
|
|
28
|
+
|
|
29
|
+
heap.push(undefined, null, true, false);
|
|
30
|
+
|
|
31
|
+
let heap_next = heap.length;
|
|
32
|
+
|
|
33
|
+
function addHeapObject(obj) {
|
|
34
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
35
|
+
const idx = heap_next;
|
|
36
|
+
heap_next = heap[idx];
|
|
37
|
+
|
|
38
|
+
if (typeof(heap_next) !== 'number') throw new Error('corrupt heap');
|
|
39
|
+
|
|
40
|
+
heap[idx] = obj;
|
|
41
|
+
return idx;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function getObject(idx) { return heap[idx]; }
|
|
45
|
+
|
|
46
|
+
function dropObject(idx) {
|
|
47
|
+
if (idx < 132) return;
|
|
48
|
+
heap[idx] = heap_next;
|
|
49
|
+
heap_next = idx;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function takeObject(idx) {
|
|
53
|
+
const ret = getObject(idx);
|
|
54
|
+
dropObject(idx);
|
|
55
|
+
return ret;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
let WASM_VECTOR_LEN = 0;
|
|
59
|
+
|
|
60
|
+
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
61
|
+
|
|
62
|
+
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
63
|
+
|
|
64
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
65
|
+
? function (arg, view) {
|
|
66
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
67
|
+
}
|
|
68
|
+
: function (arg, view) {
|
|
69
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
70
|
+
view.set(buf);
|
|
71
|
+
return {
|
|
72
|
+
read: arg.length,
|
|
73
|
+
written: buf.length
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
78
|
+
|
|
79
|
+
if (typeof(arg) !== 'string') throw new Error(`expected a string argument, found ${typeof(arg)}`);
|
|
80
|
+
|
|
81
|
+
if (realloc === undefined) {
|
|
82
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
83
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
84
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
85
|
+
WASM_VECTOR_LEN = buf.length;
|
|
86
|
+
return ptr;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
let len = arg.length;
|
|
90
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
91
|
+
|
|
92
|
+
const mem = getUint8ArrayMemory0();
|
|
93
|
+
|
|
94
|
+
let offset = 0;
|
|
95
|
+
|
|
96
|
+
for (; offset < len; offset++) {
|
|
97
|
+
const code = arg.charCodeAt(offset);
|
|
98
|
+
if (code > 0x7F) break;
|
|
99
|
+
mem[ptr + offset] = code;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (offset !== len) {
|
|
103
|
+
if (offset !== 0) {
|
|
104
|
+
arg = arg.slice(offset);
|
|
105
|
+
}
|
|
106
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
107
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
108
|
+
const ret = encodeString(arg, view);
|
|
109
|
+
if (ret.read !== arg.length) throw new Error('failed to pass whole string');
|
|
110
|
+
offset += ret.written;
|
|
111
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
WASM_VECTOR_LEN = offset;
|
|
115
|
+
return ptr;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function isLikeNone(x) {
|
|
119
|
+
return x === undefined || x === null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
let cachedDataViewMemory0 = null;
|
|
123
|
+
|
|
124
|
+
function getDataViewMemory0() {
|
|
125
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
126
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
127
|
+
}
|
|
128
|
+
return cachedDataViewMemory0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function _assertBoolean(n) {
|
|
132
|
+
if (typeof(n) !== 'boolean') {
|
|
133
|
+
throw new Error(`expected a boolean argument, found ${typeof(n)}`);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function debugString(val) {
|
|
138
|
+
// primitive types
|
|
139
|
+
const type = typeof val;
|
|
140
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
141
|
+
return `${val}`;
|
|
142
|
+
}
|
|
143
|
+
if (type == 'string') {
|
|
144
|
+
return `"${val}"`;
|
|
145
|
+
}
|
|
146
|
+
if (type == 'symbol') {
|
|
147
|
+
const description = val.description;
|
|
148
|
+
if (description == null) {
|
|
149
|
+
return 'Symbol';
|
|
150
|
+
} else {
|
|
151
|
+
return `Symbol(${description})`;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (type == 'function') {
|
|
155
|
+
const name = val.name;
|
|
156
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
157
|
+
return `Function(${name})`;
|
|
158
|
+
} else {
|
|
159
|
+
return 'Function';
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
// objects
|
|
163
|
+
if (Array.isArray(val)) {
|
|
164
|
+
const length = val.length;
|
|
165
|
+
let debug = '[';
|
|
166
|
+
if (length > 0) {
|
|
167
|
+
debug += debugString(val[0]);
|
|
168
|
+
}
|
|
169
|
+
for(let i = 1; i < length; i++) {
|
|
170
|
+
debug += ', ' + debugString(val[i]);
|
|
171
|
+
}
|
|
172
|
+
debug += ']';
|
|
173
|
+
return debug;
|
|
174
|
+
}
|
|
175
|
+
// Test for built-in
|
|
176
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
177
|
+
let className;
|
|
178
|
+
if (builtInMatches.length > 1) {
|
|
179
|
+
className = builtInMatches[1];
|
|
180
|
+
} else {
|
|
181
|
+
// Failed to match the standard '[object ClassName]'
|
|
182
|
+
return toString.call(val);
|
|
183
|
+
}
|
|
184
|
+
if (className == 'Object') {
|
|
185
|
+
// we're a user defined class or Object
|
|
186
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
187
|
+
// easier than looping through ownProperties of `val`.
|
|
188
|
+
try {
|
|
189
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
190
|
+
} catch (_) {
|
|
191
|
+
return 'Object';
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
// errors
|
|
195
|
+
if (val instanceof Error) {
|
|
196
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
197
|
+
}
|
|
198
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
199
|
+
return className;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
203
|
+
ptr = ptr >>> 0;
|
|
204
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
208
|
+
? { register: () => {}, unregister: () => {} }
|
|
209
|
+
: new FinalizationRegistry(state => {
|
|
210
|
+
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b)
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
214
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
215
|
+
const real = (...args) => {
|
|
216
|
+
// First up with a closure we increment the internal reference
|
|
217
|
+
// count. This ensures that the Rust closure environment won't
|
|
218
|
+
// be deallocated while we're invoking it.
|
|
219
|
+
state.cnt++;
|
|
220
|
+
const a = state.a;
|
|
221
|
+
state.a = 0;
|
|
222
|
+
try {
|
|
223
|
+
return f(a, state.b, ...args);
|
|
224
|
+
} finally {
|
|
225
|
+
if (--state.cnt === 0) {
|
|
226
|
+
wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
|
|
227
|
+
CLOSURE_DTORS.unregister(state);
|
|
228
|
+
} else {
|
|
229
|
+
state.a = a;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
real.original = state;
|
|
234
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
235
|
+
return real;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function logError(f, args) {
|
|
239
|
+
try {
|
|
240
|
+
return f.apply(this, args);
|
|
241
|
+
} catch (e) {
|
|
242
|
+
let error = (function () {
|
|
243
|
+
try {
|
|
244
|
+
return e instanceof Error ? `${e.message}\n\nStack:\n${e.stack}` : e.toString();
|
|
245
|
+
} catch(_) {
|
|
246
|
+
return "<failed to stringify thrown value>";
|
|
247
|
+
}
|
|
248
|
+
}());
|
|
249
|
+
console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
|
|
250
|
+
throw e;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
function _assertNum(n) {
|
|
255
|
+
if (typeof(n) !== 'number') throw new Error(`expected a number argument, found ${typeof(n)}`);
|
|
256
|
+
}
|
|
257
|
+
function __wbg_adapter_36(arg0, arg1, arg2) {
|
|
258
|
+
_assertNum(arg0);
|
|
259
|
+
_assertNum(arg1);
|
|
260
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h75064d3f173843cc(arg0, arg1, addHeapObject(arg2));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @param {string | undefined} [token]
|
|
265
|
+
* @returns {Promise<string | undefined>}
|
|
266
|
+
*/
|
|
267
|
+
export function get_commit(token) {
|
|
268
|
+
var ptr0 = isLikeNone(token) ? 0 : passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
269
|
+
var len0 = WASM_VECTOR_LEN;
|
|
270
|
+
const ret = wasm.get_commit(ptr0, len0);
|
|
271
|
+
return takeObject(ret);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @param {string} commit
|
|
276
|
+
* @returns {Promise<number | undefined>}
|
|
277
|
+
*/
|
|
278
|
+
export function get_total_maps(commit) {
|
|
279
|
+
const ptr0 = passStringToWasm0(commit, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
280
|
+
const len0 = WASM_VECTOR_LEN;
|
|
281
|
+
const ret = wasm.get_total_maps(ptr0, len0);
|
|
282
|
+
return takeObject(ret);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @param {string} commit
|
|
287
|
+
* @param {string} id
|
|
288
|
+
* @returns {Promise<(SearchEntry)[] | undefined>}
|
|
289
|
+
*/
|
|
290
|
+
export function get_search(commit, id) {
|
|
291
|
+
const ptr0 = passStringToWasm0(commit, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
292
|
+
const len0 = WASM_VECTOR_LEN;
|
|
293
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
294
|
+
const len1 = WASM_VECTOR_LEN;
|
|
295
|
+
const ret = wasm.get_search(ptr0, len0, ptr1, len1);
|
|
296
|
+
return takeObject(ret);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @param {string} commit
|
|
301
|
+
* @param {string} id
|
|
302
|
+
* @returns {Promise<any | undefined>}
|
|
303
|
+
*/
|
|
304
|
+
export function get_map(commit, id) {
|
|
305
|
+
const ptr0 = passStringToWasm0(commit, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
306
|
+
const len0 = WASM_VECTOR_LEN;
|
|
307
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
308
|
+
const len1 = WASM_VECTOR_LEN;
|
|
309
|
+
const ret = wasm.get_map(ptr0, len0, ptr1, len1);
|
|
310
|
+
return takeObject(ret);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @param {string} commit
|
|
315
|
+
* @param {string} id
|
|
316
|
+
* @returns {Promise<(string)[] | undefined>}
|
|
317
|
+
*/
|
|
318
|
+
export function get_devs_apps(commit, id) {
|
|
319
|
+
const ptr0 = passStringToWasm0(commit, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
320
|
+
const len0 = WASM_VECTOR_LEN;
|
|
321
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
322
|
+
const len1 = WASM_VECTOR_LEN;
|
|
323
|
+
const ret = wasm.get_devs_apps(ptr0, len0, ptr1, len1);
|
|
324
|
+
return takeObject(ret);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @param {string} commit
|
|
329
|
+
* @param {string} id
|
|
330
|
+
* @returns {Promise<DevData | undefined>}
|
|
331
|
+
*/
|
|
332
|
+
export function get_dev_data(commit, id) {
|
|
333
|
+
const ptr0 = passStringToWasm0(commit, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
334
|
+
const len0 = WASM_VECTOR_LEN;
|
|
335
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
336
|
+
const len1 = WASM_VECTOR_LEN;
|
|
337
|
+
const ret = wasm.get_dev_data(ptr0, len0, ptr1, len1);
|
|
338
|
+
return takeObject(ret);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @param {string} commit
|
|
343
|
+
* @param {string} app_id
|
|
344
|
+
* @param {string} asset
|
|
345
|
+
* @returns {Promise<Uint8Array | undefined>}
|
|
346
|
+
*/
|
|
347
|
+
export function get_app_asset(commit, app_id, asset) {
|
|
348
|
+
const ptr0 = passStringToWasm0(commit, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
349
|
+
const len0 = WASM_VECTOR_LEN;
|
|
350
|
+
const ptr1 = passStringToWasm0(app_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
351
|
+
const len1 = WASM_VECTOR_LEN;
|
|
352
|
+
const ptr2 = passStringToWasm0(asset, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
353
|
+
const len2 = WASM_VECTOR_LEN;
|
|
354
|
+
const ret = wasm.get_app_asset(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
355
|
+
return takeObject(ret);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @param {string} commit
|
|
360
|
+
* @param {string} app_id
|
|
361
|
+
* @returns {Promise<any | undefined>}
|
|
362
|
+
*/
|
|
363
|
+
export function get_app(commit, app_id) {
|
|
364
|
+
const ptr0 = passStringToWasm0(commit, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
365
|
+
const len0 = WASM_VECTOR_LEN;
|
|
366
|
+
const ptr1 = passStringToWasm0(app_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
367
|
+
const len1 = WASM_VECTOR_LEN;
|
|
368
|
+
const ret = wasm.get_app(ptr0, len0, ptr1, len1);
|
|
369
|
+
return takeObject(ret);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
function _assertBigInt(n) {
|
|
373
|
+
if (typeof(n) !== 'bigint') throw new Error(`expected a bigint argument, found ${typeof(n)}`);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
function _assertClass(instance, klass) {
|
|
377
|
+
if (!(instance instanceof klass)) {
|
|
378
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
379
|
+
}
|
|
380
|
+
return instance.ptr;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
384
|
+
ptr = ptr >>> 0;
|
|
385
|
+
const mem = getDataViewMemory0();
|
|
386
|
+
const result = [];
|
|
387
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
388
|
+
result.push(takeObject(mem.getUint32(i, true)));
|
|
389
|
+
}
|
|
390
|
+
return result;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
394
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
395
|
+
const mem = getDataViewMemory0();
|
|
396
|
+
for (let i = 0; i < array.length; i++) {
|
|
397
|
+
mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
|
|
398
|
+
}
|
|
399
|
+
WASM_VECTOR_LEN = array.length;
|
|
400
|
+
return ptr;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
function handleError(f, args) {
|
|
404
|
+
try {
|
|
405
|
+
return f.apply(this, args);
|
|
406
|
+
} catch (e) {
|
|
407
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
function __wbg_adapter_171(arg0, arg1, arg2, arg3) {
|
|
411
|
+
_assertNum(arg0);
|
|
412
|
+
_assertNum(arg1);
|
|
413
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h4c03c6331fc271dc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
*/
|
|
418
|
+
export const InstallerFormat = Object.freeze({
|
|
419
|
+
/**
|
|
420
|
+
*🎯 Stable as of v1
|
|
421
|
+
*/
|
|
422
|
+
WindowsZip:0,"0":"WindowsZip",
|
|
423
|
+
/**
|
|
424
|
+
*🎯 Stable as of v2
|
|
425
|
+
*
|
|
426
|
+
*/
|
|
427
|
+
WindowsInstallerMsi:1,"1":"WindowsInstallerMsi",
|
|
428
|
+
/**
|
|
429
|
+
*🔬 Planned as of v2.5 or v3
|
|
430
|
+
*
|
|
431
|
+
*
|
|
432
|
+
* **Doesn't work**
|
|
433
|
+
* **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
|
|
434
|
+
*
|
|
435
|
+
* [^1]: You'll need to provide app's final location
|
|
436
|
+
*/
|
|
437
|
+
WindowsInstallerExe:2,"2":"WindowsInstallerExe",
|
|
438
|
+
/**
|
|
439
|
+
*🔬 Planned as of v3
|
|
440
|
+
*
|
|
441
|
+
*
|
|
442
|
+
* **Doesn't work**
|
|
443
|
+
* **Won't be worked on, until other formats are supported**
|
|
444
|
+
* **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
|
|
445
|
+
*
|
|
446
|
+
* [^1]: You'll need to provide app's final location
|
|
447
|
+
*/
|
|
448
|
+
WindowsUWPMsix:3,"3":"WindowsUWPMsix",
|
|
449
|
+
/**
|
|
450
|
+
*🎯 Stable as of v2
|
|
451
|
+
*
|
|
452
|
+
*/
|
|
453
|
+
LinuxAppImage:4,"4":"LinuxAppImage",
|
|
454
|
+
/**
|
|
455
|
+
*🔬 Planned
|
|
456
|
+
*/
|
|
457
|
+
AndroidApkZip:5,"5":"AndroidApkZip", });
|
|
458
|
+
|
|
459
|
+
const AppRepoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
460
|
+
? { register: () => {}, unregister: () => {} }
|
|
461
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_apprepo_free(ptr >>> 0, 1));
|
|
462
|
+
/**
|
|
463
|
+
*/
|
|
464
|
+
export class AppRepo {
|
|
465
|
+
|
|
466
|
+
constructor() {
|
|
467
|
+
throw new Error('cannot invoke `new` directly');
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
__destroy_into_raw() {
|
|
471
|
+
const ptr = this.__wbg_ptr;
|
|
472
|
+
this.__wbg_ptr = 0;
|
|
473
|
+
AppRepoFinalization.unregister(this);
|
|
474
|
+
return ptr;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
free() {
|
|
478
|
+
const ptr = this.__destroy_into_raw();
|
|
479
|
+
wasm.__wbg_apprepo_free(ptr, 0);
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* author must be your GitHub username or username of an org where you're a "visible" member
|
|
483
|
+
* @returns {string}
|
|
484
|
+
*/
|
|
485
|
+
get author() {
|
|
486
|
+
let deferred1_0;
|
|
487
|
+
let deferred1_1;
|
|
488
|
+
try {
|
|
489
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
490
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
491
|
+
_assertNum(this.__wbg_ptr);
|
|
492
|
+
wasm.__wbg_get_apprepo_author(retptr, this.__wbg_ptr);
|
|
493
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
494
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
495
|
+
deferred1_0 = r0;
|
|
496
|
+
deferred1_1 = r1;
|
|
497
|
+
return getStringFromWasm0(r0, r1);
|
|
498
|
+
} finally {
|
|
499
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
500
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* author must be your GitHub username or username of an org where you're a "visible" member
|
|
505
|
+
* @param {string} arg0
|
|
506
|
+
*/
|
|
507
|
+
set author(arg0) {
|
|
508
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
509
|
+
_assertNum(this.__wbg_ptr);
|
|
510
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
511
|
+
const len0 = WASM_VECTOR_LEN;
|
|
512
|
+
wasm.__wbg_set_apprepo_author(this.__wbg_ptr, ptr0, len0);
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* @returns {string}
|
|
516
|
+
*/
|
|
517
|
+
get repo() {
|
|
518
|
+
let deferred1_0;
|
|
519
|
+
let deferred1_1;
|
|
520
|
+
try {
|
|
521
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
522
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
523
|
+
_assertNum(this.__wbg_ptr);
|
|
524
|
+
wasm.__wbg_get_apprepo_repo(retptr, this.__wbg_ptr);
|
|
525
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
526
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
527
|
+
deferred1_0 = r0;
|
|
528
|
+
deferred1_1 = r1;
|
|
529
|
+
return getStringFromWasm0(r0, r1);
|
|
530
|
+
} finally {
|
|
531
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
532
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* @param {string} arg0
|
|
537
|
+
*/
|
|
538
|
+
set repo(arg0) {
|
|
539
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
540
|
+
_assertNum(this.__wbg_ptr);
|
|
541
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
542
|
+
const len0 = WASM_VECTOR_LEN;
|
|
543
|
+
wasm.__wbg_set_apprepo_repo(this.__wbg_ptr, ptr0, len0);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
const DevDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
548
|
+
? { register: () => {}, unregister: () => {} }
|
|
549
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_devdata_free(ptr >>> 0, 1));
|
|
550
|
+
/**
|
|
551
|
+
*/
|
|
552
|
+
export class DevData {
|
|
553
|
+
|
|
554
|
+
constructor() {
|
|
555
|
+
throw new Error('cannot invoke `new` directly');
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
static __wrap(ptr) {
|
|
559
|
+
ptr = ptr >>> 0;
|
|
560
|
+
const obj = Object.create(DevData.prototype);
|
|
561
|
+
obj.__wbg_ptr = ptr;
|
|
562
|
+
DevDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
563
|
+
return obj;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
__destroy_into_raw() {
|
|
567
|
+
const ptr = this.__wbg_ptr;
|
|
568
|
+
this.__wbg_ptr = 0;
|
|
569
|
+
DevDataFinalization.unregister(this);
|
|
570
|
+
return ptr;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
free() {
|
|
574
|
+
const ptr = this.__destroy_into_raw();
|
|
575
|
+
wasm.__wbg_devdata_free(ptr, 0);
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* @returns {string}
|
|
579
|
+
*/
|
|
580
|
+
get name() {
|
|
581
|
+
let deferred1_0;
|
|
582
|
+
let deferred1_1;
|
|
583
|
+
try {
|
|
584
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
585
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
586
|
+
_assertNum(this.__wbg_ptr);
|
|
587
|
+
wasm.__wbg_get_devdata_name(retptr, this.__wbg_ptr);
|
|
588
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
589
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
590
|
+
deferred1_0 = r0;
|
|
591
|
+
deferred1_1 = r1;
|
|
592
|
+
return getStringFromWasm0(r0, r1);
|
|
593
|
+
} finally {
|
|
594
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
595
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* @param {string} arg0
|
|
600
|
+
*/
|
|
601
|
+
set name(arg0) {
|
|
602
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
603
|
+
_assertNum(this.__wbg_ptr);
|
|
604
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
605
|
+
const len0 = WASM_VECTOR_LEN;
|
|
606
|
+
wasm.__wbg_set_devdata_name(this.__wbg_ptr, ptr0, len0);
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* @returns {string}
|
|
610
|
+
*/
|
|
611
|
+
get id() {
|
|
612
|
+
let deferred1_0;
|
|
613
|
+
let deferred1_1;
|
|
614
|
+
try {
|
|
615
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
616
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
617
|
+
_assertNum(this.__wbg_ptr);
|
|
618
|
+
wasm.__wbg_get_devdata_id(retptr, this.__wbg_ptr);
|
|
619
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
620
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
621
|
+
deferred1_0 = r0;
|
|
622
|
+
deferred1_1 = r1;
|
|
623
|
+
return getStringFromWasm0(r0, r1);
|
|
624
|
+
} finally {
|
|
625
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
626
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* @param {string} arg0
|
|
631
|
+
*/
|
|
632
|
+
set id(arg0) {
|
|
633
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
634
|
+
_assertNum(this.__wbg_ptr);
|
|
635
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
636
|
+
const len0 = WASM_VECTOR_LEN;
|
|
637
|
+
wasm.__wbg_set_devdata_id(this.__wbg_ptr, ptr0, len0);
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* @returns {string}
|
|
641
|
+
*/
|
|
642
|
+
get github() {
|
|
643
|
+
let deferred1_0;
|
|
644
|
+
let deferred1_1;
|
|
645
|
+
try {
|
|
646
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
647
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
648
|
+
_assertNum(this.__wbg_ptr);
|
|
649
|
+
wasm.__wbg_get_devdata_github(retptr, this.__wbg_ptr);
|
|
650
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
651
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
652
|
+
deferred1_0 = r0;
|
|
653
|
+
deferred1_1 = r1;
|
|
654
|
+
return getStringFromWasm0(r0, r1);
|
|
655
|
+
} finally {
|
|
656
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
657
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* @param {string} arg0
|
|
662
|
+
*/
|
|
663
|
+
set github(arg0) {
|
|
664
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
665
|
+
_assertNum(this.__wbg_ptr);
|
|
666
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
667
|
+
const len0 = WASM_VECTOR_LEN;
|
|
668
|
+
wasm.__wbg_set_devdata_github(this.__wbg_ptr, ptr0, len0);
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* @returns {string}
|
|
672
|
+
*/
|
|
673
|
+
get avatar_url() {
|
|
674
|
+
let deferred1_0;
|
|
675
|
+
let deferred1_1;
|
|
676
|
+
try {
|
|
677
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
678
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
679
|
+
_assertNum(this.__wbg_ptr);
|
|
680
|
+
wasm.__wbg_get_devdata_avatar_url(retptr, this.__wbg_ptr);
|
|
681
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
682
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
683
|
+
deferred1_0 = r0;
|
|
684
|
+
deferred1_1 = r1;
|
|
685
|
+
return getStringFromWasm0(r0, r1);
|
|
686
|
+
} finally {
|
|
687
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
688
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* @param {string} arg0
|
|
693
|
+
*/
|
|
694
|
+
set avatar_url(arg0) {
|
|
695
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
696
|
+
_assertNum(this.__wbg_ptr);
|
|
697
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
698
|
+
const len0 = WASM_VECTOR_LEN;
|
|
699
|
+
wasm.__wbg_set_devdata_avatar_url(this.__wbg_ptr, ptr0, len0);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
const DownloadUrlFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
704
|
+
? { register: () => {}, unregister: () => {} }
|
|
705
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_downloadurl_free(ptr >>> 0, 1));
|
|
706
|
+
/**
|
|
707
|
+
*/
|
|
708
|
+
export class DownloadUrl {
|
|
709
|
+
|
|
710
|
+
constructor() {
|
|
711
|
+
throw new Error('cannot invoke `new` directly');
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
__destroy_into_raw() {
|
|
715
|
+
const ptr = this.__wbg_ptr;
|
|
716
|
+
this.__wbg_ptr = 0;
|
|
717
|
+
DownloadUrlFinalization.unregister(this);
|
|
718
|
+
return ptr;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
free() {
|
|
722
|
+
const ptr = this.__destroy_into_raw();
|
|
723
|
+
wasm.__wbg_downloadurl_free(ptr, 0);
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* @returns {InstallerFormat}
|
|
727
|
+
*/
|
|
728
|
+
get installerType() {
|
|
729
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
730
|
+
_assertNum(this.__wbg_ptr);
|
|
731
|
+
const ret = wasm.__wbg_get_downloadurl_installerType(this.__wbg_ptr);
|
|
732
|
+
return ret;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* @param {InstallerFormat} arg0
|
|
736
|
+
*/
|
|
737
|
+
set installerType(arg0) {
|
|
738
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
739
|
+
_assertNum(this.__wbg_ptr);
|
|
740
|
+
_assertNum(arg0);
|
|
741
|
+
wasm.__wbg_set_downloadurl_installerType(this.__wbg_ptr, arg0);
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* @returns {string}
|
|
745
|
+
*/
|
|
746
|
+
get asset() {
|
|
747
|
+
let deferred1_0;
|
|
748
|
+
let deferred1_1;
|
|
749
|
+
try {
|
|
750
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
751
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
752
|
+
_assertNum(this.__wbg_ptr);
|
|
753
|
+
wasm.__wbg_get_downloadurl_asset(retptr, this.__wbg_ptr);
|
|
754
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
755
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
756
|
+
deferred1_0 = r0;
|
|
757
|
+
deferred1_1 = r1;
|
|
758
|
+
return getStringFromWasm0(r0, r1);
|
|
759
|
+
} finally {
|
|
760
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
761
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* @param {string} arg0
|
|
766
|
+
*/
|
|
767
|
+
set asset(arg0) {
|
|
768
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
769
|
+
_assertNum(this.__wbg_ptr);
|
|
770
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
771
|
+
const len0 = WASM_VECTOR_LEN;
|
|
772
|
+
wasm.__wbg_set_downloadurl_asset(this.__wbg_ptr, ptr0, len0);
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* This will be based on asset and releaseId
|
|
776
|
+
* @returns {string}
|
|
777
|
+
*/
|
|
778
|
+
get url() {
|
|
779
|
+
let deferred1_0;
|
|
780
|
+
let deferred1_1;
|
|
781
|
+
try {
|
|
782
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
783
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
784
|
+
_assertNum(this.__wbg_ptr);
|
|
785
|
+
wasm.__wbg_get_downloadurl_url(retptr, this.__wbg_ptr);
|
|
786
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
787
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
788
|
+
deferred1_0 = r0;
|
|
789
|
+
deferred1_1 = r1;
|
|
790
|
+
return getStringFromWasm0(r0, r1);
|
|
791
|
+
} finally {
|
|
792
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
793
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* This will be based on asset and releaseId
|
|
798
|
+
* @param {string} arg0
|
|
799
|
+
*/
|
|
800
|
+
set url(arg0) {
|
|
801
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
802
|
+
_assertNum(this.__wbg_ptr);
|
|
803
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
804
|
+
const len0 = WASM_VECTOR_LEN;
|
|
805
|
+
wasm.__wbg_set_downloadurl_url(this.__wbg_ptr, ptr0, len0);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
const GHRepoCommitFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
810
|
+
? { register: () => {}, unregister: () => {} }
|
|
811
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_ghrepocommit_free(ptr >>> 0, 1));
|
|
812
|
+
/**
|
|
813
|
+
*/
|
|
814
|
+
export class GHRepoCommit {
|
|
815
|
+
|
|
816
|
+
constructor() {
|
|
817
|
+
throw new Error('cannot invoke `new` directly');
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
__destroy_into_raw() {
|
|
821
|
+
const ptr = this.__wbg_ptr;
|
|
822
|
+
this.__wbg_ptr = 0;
|
|
823
|
+
GHRepoCommitFinalization.unregister(this);
|
|
824
|
+
return ptr;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
free() {
|
|
828
|
+
const ptr = this.__destroy_into_raw();
|
|
829
|
+
wasm.__wbg_ghrepocommit_free(ptr, 0);
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* @returns {string}
|
|
833
|
+
*/
|
|
834
|
+
get sha() {
|
|
835
|
+
let deferred1_0;
|
|
836
|
+
let deferred1_1;
|
|
837
|
+
try {
|
|
838
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
839
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
840
|
+
_assertNum(this.__wbg_ptr);
|
|
841
|
+
wasm.__wbg_get_ghrepocommit_sha(retptr, this.__wbg_ptr);
|
|
842
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
843
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
844
|
+
deferred1_0 = r0;
|
|
845
|
+
deferred1_1 = r1;
|
|
846
|
+
return getStringFromWasm0(r0, r1);
|
|
847
|
+
} finally {
|
|
848
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
849
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* @param {string} arg0
|
|
854
|
+
*/
|
|
855
|
+
set sha(arg0) {
|
|
856
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
857
|
+
_assertNum(this.__wbg_ptr);
|
|
858
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
859
|
+
const len0 = WASM_VECTOR_LEN;
|
|
860
|
+
wasm.__wbg_set_ghrepocommit_sha(this.__wbg_ptr, ptr0, len0);
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
const InstallerOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
865
|
+
? { register: () => {}, unregister: () => {} }
|
|
866
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_installeroptions_free(ptr >>> 0, 1));
|
|
867
|
+
/**
|
|
868
|
+
*/
|
|
869
|
+
export class InstallerOptions {
|
|
870
|
+
|
|
871
|
+
constructor() {
|
|
872
|
+
throw new Error('cannot invoke `new` directly');
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
__destroy_into_raw() {
|
|
876
|
+
const ptr = this.__wbg_ptr;
|
|
877
|
+
this.__wbg_ptr = 0;
|
|
878
|
+
InstallerOptionsFinalization.unregister(this);
|
|
879
|
+
return ptr;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
free() {
|
|
883
|
+
const ptr = this.__destroy_into_raw();
|
|
884
|
+
wasm.__wbg_installeroptions_free(ptr, 0);
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
*🎯 Introduced in v1
|
|
888
|
+
*
|
|
889
|
+
* @returns {InstallerOptionsWindows | undefined}
|
|
890
|
+
*/
|
|
891
|
+
get win32() {
|
|
892
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
893
|
+
_assertNum(this.__wbg_ptr);
|
|
894
|
+
const ret = wasm.__wbg_get_installeroptions_win32(this.__wbg_ptr);
|
|
895
|
+
return ret === 0 ? undefined : InstallerOptionsWindows.__wrap(ret);
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
*🎯 Introduced in v1
|
|
899
|
+
*
|
|
900
|
+
* @param {InstallerOptionsWindows | undefined} [arg0]
|
|
901
|
+
*/
|
|
902
|
+
set win32(arg0) {
|
|
903
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
904
|
+
_assertNum(this.__wbg_ptr);
|
|
905
|
+
let ptr0 = 0;
|
|
906
|
+
if (!isLikeNone(arg0)) {
|
|
907
|
+
_assertClass(arg0, InstallerOptionsWindows);
|
|
908
|
+
if (arg0.__wbg_ptr === 0) {
|
|
909
|
+
throw new Error('Attempt to use a moved value');
|
|
910
|
+
}
|
|
911
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
912
|
+
}
|
|
913
|
+
wasm.__wbg_set_installeroptions_win32(this.__wbg_ptr, ptr0);
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
*🎯 Introduced in v2
|
|
917
|
+
*
|
|
918
|
+
* @returns {InstallerOptionsWindows | undefined}
|
|
919
|
+
*/
|
|
920
|
+
get winarm() {
|
|
921
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
922
|
+
_assertNum(this.__wbg_ptr);
|
|
923
|
+
const ret = wasm.__wbg_get_installeroptions_winarm(this.__wbg_ptr);
|
|
924
|
+
return ret === 0 ? undefined : InstallerOptionsWindows.__wrap(ret);
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
*🎯 Introduced in v2
|
|
928
|
+
*
|
|
929
|
+
* @param {InstallerOptionsWindows | undefined} [arg0]
|
|
930
|
+
*/
|
|
931
|
+
set winarm(arg0) {
|
|
932
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
933
|
+
_assertNum(this.__wbg_ptr);
|
|
934
|
+
let ptr0 = 0;
|
|
935
|
+
if (!isLikeNone(arg0)) {
|
|
936
|
+
_assertClass(arg0, InstallerOptionsWindows);
|
|
937
|
+
if (arg0.__wbg_ptr === 0) {
|
|
938
|
+
throw new Error('Attempt to use a moved value');
|
|
939
|
+
}
|
|
940
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
941
|
+
}
|
|
942
|
+
wasm.__wbg_set_installeroptions_winarm(this.__wbg_ptr, ptr0);
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
*🎯 Introduced in v1
|
|
946
|
+
*
|
|
947
|
+
* @returns {InstallerOptionsLinux | undefined}
|
|
948
|
+
*/
|
|
949
|
+
get linux() {
|
|
950
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
951
|
+
_assertNum(this.__wbg_ptr);
|
|
952
|
+
const ret = wasm.__wbg_get_installeroptions_linux(this.__wbg_ptr);
|
|
953
|
+
return ret === 0 ? undefined : InstallerOptionsLinux.__wrap(ret);
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
*🎯 Introduced in v1
|
|
957
|
+
*
|
|
958
|
+
* @param {InstallerOptionsLinux | undefined} [arg0]
|
|
959
|
+
*/
|
|
960
|
+
set linux(arg0) {
|
|
961
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
962
|
+
_assertNum(this.__wbg_ptr);
|
|
963
|
+
let ptr0 = 0;
|
|
964
|
+
if (!isLikeNone(arg0)) {
|
|
965
|
+
_assertClass(arg0, InstallerOptionsLinux);
|
|
966
|
+
if (arg0.__wbg_ptr === 0) {
|
|
967
|
+
throw new Error('Attempt to use a moved value');
|
|
968
|
+
}
|
|
969
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
970
|
+
}
|
|
971
|
+
wasm.__wbg_set_installeroptions_linux(this.__wbg_ptr, ptr0);
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
*🎯 Introduced in v2
|
|
975
|
+
*
|
|
976
|
+
* @returns {InstallerOptionsLinux | undefined}
|
|
977
|
+
*/
|
|
978
|
+
get linuxArm64() {
|
|
979
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
980
|
+
_assertNum(this.__wbg_ptr);
|
|
981
|
+
const ret = wasm.__wbg_get_installeroptions_linuxArm64(this.__wbg_ptr);
|
|
982
|
+
return ret === 0 ? undefined : InstallerOptionsLinux.__wrap(ret);
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
*🎯 Introduced in v2
|
|
986
|
+
*
|
|
987
|
+
* @param {InstallerOptionsLinux | undefined} [arg0]
|
|
988
|
+
*/
|
|
989
|
+
set linuxArm64(arg0) {
|
|
990
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
991
|
+
_assertNum(this.__wbg_ptr);
|
|
992
|
+
let ptr0 = 0;
|
|
993
|
+
if (!isLikeNone(arg0)) {
|
|
994
|
+
_assertClass(arg0, InstallerOptionsLinux);
|
|
995
|
+
if (arg0.__wbg_ptr === 0) {
|
|
996
|
+
throw new Error('Attempt to use a moved value');
|
|
997
|
+
}
|
|
998
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
999
|
+
}
|
|
1000
|
+
wasm.__wbg_set_installeroptions_linuxArm64(this.__wbg_ptr, ptr0);
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
*🎯 Introduced in v2
|
|
1004
|
+
*
|
|
1005
|
+
* @returns {InstallerOptionsLinux | undefined}
|
|
1006
|
+
*/
|
|
1007
|
+
get linuxArm7() {
|
|
1008
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1009
|
+
_assertNum(this.__wbg_ptr);
|
|
1010
|
+
const ret = wasm.__wbg_get_installeroptions_linuxArm7(this.__wbg_ptr);
|
|
1011
|
+
return ret === 0 ? undefined : InstallerOptionsLinux.__wrap(ret);
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
*🎯 Introduced in v2
|
|
1015
|
+
*
|
|
1016
|
+
* @param {InstallerOptionsLinux | undefined} [arg0]
|
|
1017
|
+
*/
|
|
1018
|
+
set linuxArm7(arg0) {
|
|
1019
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1020
|
+
_assertNum(this.__wbg_ptr);
|
|
1021
|
+
let ptr0 = 0;
|
|
1022
|
+
if (!isLikeNone(arg0)) {
|
|
1023
|
+
_assertClass(arg0, InstallerOptionsLinux);
|
|
1024
|
+
if (arg0.__wbg_ptr === 0) {
|
|
1025
|
+
throw new Error('Attempt to use a moved value');
|
|
1026
|
+
}
|
|
1027
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
1028
|
+
}
|
|
1029
|
+
wasm.__wbg_set_installeroptions_linuxArm7(this.__wbg_ptr, ptr0);
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
*🔬 Planned
|
|
1033
|
+
*🎯 Introduced in v2
|
|
1034
|
+
*
|
|
1035
|
+
* @returns {InstallerOptionsAndroid | undefined}
|
|
1036
|
+
*/
|
|
1037
|
+
get android() {
|
|
1038
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1039
|
+
_assertNum(this.__wbg_ptr);
|
|
1040
|
+
const ret = wasm.__wbg_get_installeroptions_android(this.__wbg_ptr);
|
|
1041
|
+
return ret === 0 ? undefined : InstallerOptionsAndroid.__wrap(ret);
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
*🔬 Planned
|
|
1045
|
+
*🎯 Introduced in v2
|
|
1046
|
+
*
|
|
1047
|
+
* @param {InstallerOptionsAndroid | undefined} [arg0]
|
|
1048
|
+
*/
|
|
1049
|
+
set android(arg0) {
|
|
1050
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1051
|
+
_assertNum(this.__wbg_ptr);
|
|
1052
|
+
let ptr0 = 0;
|
|
1053
|
+
if (!isLikeNone(arg0)) {
|
|
1054
|
+
_assertClass(arg0, InstallerOptionsAndroid);
|
|
1055
|
+
if (arg0.__wbg_ptr === 0) {
|
|
1056
|
+
throw new Error('Attempt to use a moved value');
|
|
1057
|
+
}
|
|
1058
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
1059
|
+
}
|
|
1060
|
+
wasm.__wbg_set_installeroptions_android(this.__wbg_ptr, ptr0);
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
const InstallerOptionsAndroidFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1065
|
+
? { register: () => {}, unregister: () => {} }
|
|
1066
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_installeroptionsandroid_free(ptr >>> 0, 1));
|
|
1067
|
+
/**
|
|
1068
|
+
*🔬 Planned
|
|
1069
|
+
*
|
|
1070
|
+
*/
|
|
1071
|
+
export class InstallerOptionsAndroid {
|
|
1072
|
+
|
|
1073
|
+
constructor() {
|
|
1074
|
+
throw new Error('cannot invoke `new` directly');
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
static __wrap(ptr) {
|
|
1078
|
+
ptr = ptr >>> 0;
|
|
1079
|
+
const obj = Object.create(InstallerOptionsAndroid.prototype);
|
|
1080
|
+
obj.__wbg_ptr = ptr;
|
|
1081
|
+
InstallerOptionsAndroidFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1082
|
+
return obj;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
__destroy_into_raw() {
|
|
1086
|
+
const ptr = this.__wbg_ptr;
|
|
1087
|
+
this.__wbg_ptr = 0;
|
|
1088
|
+
InstallerOptionsAndroidFinalization.unregister(this);
|
|
1089
|
+
return ptr;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
free() {
|
|
1093
|
+
const ptr = this.__destroy_into_raw();
|
|
1094
|
+
wasm.__wbg_installeroptionsandroid_free(ptr, 0);
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
*🎯 Introduced in v2
|
|
1098
|
+
*
|
|
1099
|
+
* @returns {number}
|
|
1100
|
+
*/
|
|
1101
|
+
get assetId() {
|
|
1102
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1103
|
+
_assertNum(this.__wbg_ptr);
|
|
1104
|
+
const ret = wasm.__wbg_get_installeroptionsandroid_assetId(this.__wbg_ptr);
|
|
1105
|
+
return ret;
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
*🎯 Introduced in v2
|
|
1109
|
+
*
|
|
1110
|
+
* @param {number} arg0
|
|
1111
|
+
*/
|
|
1112
|
+
set assetId(arg0) {
|
|
1113
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1114
|
+
_assertNum(this.__wbg_ptr);
|
|
1115
|
+
_assertNum(arg0);
|
|
1116
|
+
wasm.__wbg_set_installeroptionsandroid_assetId(this.__wbg_ptr, arg0);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
const InstallerOptionsLinuxFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1121
|
+
? { register: () => {}, unregister: () => {} }
|
|
1122
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_installeroptionslinux_free(ptr >>> 0, 1));
|
|
1123
|
+
/**
|
|
1124
|
+
*🔬 Under Development
|
|
1125
|
+
*
|
|
1126
|
+
*/
|
|
1127
|
+
export class InstallerOptionsLinux {
|
|
1128
|
+
|
|
1129
|
+
constructor() {
|
|
1130
|
+
throw new Error('cannot invoke `new` directly');
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
static __wrap(ptr) {
|
|
1134
|
+
ptr = ptr >>> 0;
|
|
1135
|
+
const obj = Object.create(InstallerOptionsLinux.prototype);
|
|
1136
|
+
obj.__wbg_ptr = ptr;
|
|
1137
|
+
InstallerOptionsLinuxFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1138
|
+
return obj;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
__destroy_into_raw() {
|
|
1142
|
+
const ptr = this.__wbg_ptr;
|
|
1143
|
+
this.__wbg_ptr = 0;
|
|
1144
|
+
InstallerOptionsLinuxFinalization.unregister(this);
|
|
1145
|
+
return ptr;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
free() {
|
|
1149
|
+
const ptr = this.__destroy_into_raw();
|
|
1150
|
+
wasm.__wbg_installeroptionslinux_free(ptr, 0);
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
*🎯 Introduced in v2
|
|
1154
|
+
*
|
|
1155
|
+
* @returns {number}
|
|
1156
|
+
*/
|
|
1157
|
+
get assetId() {
|
|
1158
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1159
|
+
_assertNum(this.__wbg_ptr);
|
|
1160
|
+
const ret = wasm.__wbg_get_installeroptionslinux_assetId(this.__wbg_ptr);
|
|
1161
|
+
return ret;
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
*🎯 Introduced in v2
|
|
1165
|
+
*
|
|
1166
|
+
* @param {number} arg0
|
|
1167
|
+
*/
|
|
1168
|
+
set assetId(arg0) {
|
|
1169
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1170
|
+
_assertNum(this.__wbg_ptr);
|
|
1171
|
+
_assertNum(arg0);
|
|
1172
|
+
wasm.__wbg_set_installeroptionslinux_assetId(this.__wbg_ptr, arg0);
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
const InstallerOptionsWindowsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1177
|
+
? { register: () => {}, unregister: () => {} }
|
|
1178
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_installeroptionswindows_free(ptr >>> 0, 1));
|
|
1179
|
+
/**
|
|
1180
|
+
*/
|
|
1181
|
+
export class InstallerOptionsWindows {
|
|
1182
|
+
|
|
1183
|
+
constructor() {
|
|
1184
|
+
throw new Error('cannot invoke `new` directly');
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
static __wrap(ptr) {
|
|
1188
|
+
ptr = ptr >>> 0;
|
|
1189
|
+
const obj = Object.create(InstallerOptionsWindows.prototype);
|
|
1190
|
+
obj.__wbg_ptr = ptr;
|
|
1191
|
+
InstallerOptionsWindowsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1192
|
+
return obj;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
__destroy_into_raw() {
|
|
1196
|
+
const ptr = this.__wbg_ptr;
|
|
1197
|
+
this.__wbg_ptr = 0;
|
|
1198
|
+
InstallerOptionsWindowsFinalization.unregister(this);
|
|
1199
|
+
return ptr;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
free() {
|
|
1203
|
+
const ptr = this.__destroy_into_raw();
|
|
1204
|
+
wasm.__wbg_installeroptionswindows_free(ptr, 0);
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
*🎯 Introduced in v2
|
|
1208
|
+
*
|
|
1209
|
+
* @returns {number}
|
|
1210
|
+
*/
|
|
1211
|
+
get assetId() {
|
|
1212
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1213
|
+
_assertNum(this.__wbg_ptr);
|
|
1214
|
+
const ret = wasm.__wbg_get_installeroptionswindows_assetId(this.__wbg_ptr);
|
|
1215
|
+
return ret;
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
*🎯 Introduced in v2
|
|
1219
|
+
*
|
|
1220
|
+
* @param {number} arg0
|
|
1221
|
+
*/
|
|
1222
|
+
set assetId(arg0) {
|
|
1223
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1224
|
+
_assertNum(this.__wbg_ptr);
|
|
1225
|
+
_assertNum(arg0);
|
|
1226
|
+
wasm.__wbg_set_installeroptionswindows_assetId(this.__wbg_ptr, arg0);
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* The exe to link as a shortcut[^1]
|
|
1230
|
+
*
|
|
1231
|
+
* [^1]: Only if you choose WindowsZip
|
|
1232
|
+
* @returns {string | undefined}
|
|
1233
|
+
*/
|
|
1234
|
+
get exec() {
|
|
1235
|
+
try {
|
|
1236
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1237
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1238
|
+
_assertNum(this.__wbg_ptr);
|
|
1239
|
+
wasm.__wbg_get_installeroptionswindows_exec(retptr, this.__wbg_ptr);
|
|
1240
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1241
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1242
|
+
let v1;
|
|
1243
|
+
if (r0 !== 0) {
|
|
1244
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1245
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
1246
|
+
}
|
|
1247
|
+
return v1;
|
|
1248
|
+
} finally {
|
|
1249
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
* The exe to link as a shortcut[^1]
|
|
1254
|
+
*
|
|
1255
|
+
* [^1]: Only if you choose WindowsZip
|
|
1256
|
+
* @param {string | undefined} [arg0]
|
|
1257
|
+
*/
|
|
1258
|
+
set exec(arg0) {
|
|
1259
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1260
|
+
_assertNum(this.__wbg_ptr);
|
|
1261
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1262
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1263
|
+
wasm.__wbg_set_installeroptionswindows_exec(this.__wbg_ptr, ptr0, len0);
|
|
1264
|
+
}
|
|
1265
|
+
/**
|
|
1266
|
+
*🔬 Planned
|
|
1267
|
+
*
|
|
1268
|
+
*
|
|
1269
|
+
* Args to pass to the custom exe installer[^1]
|
|
1270
|
+
*
|
|
1271
|
+
* [^1]: Only if you choose WindowsInstallerExe
|
|
1272
|
+
* @returns {(string)[] | undefined}
|
|
1273
|
+
*/
|
|
1274
|
+
get installerArgs() {
|
|
1275
|
+
try {
|
|
1276
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1277
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1278
|
+
_assertNum(this.__wbg_ptr);
|
|
1279
|
+
wasm.__wbg_get_installeroptionswindows_installerArgs(retptr, this.__wbg_ptr);
|
|
1280
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1281
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1282
|
+
let v1;
|
|
1283
|
+
if (r0 !== 0) {
|
|
1284
|
+
v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1285
|
+
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
1286
|
+
}
|
|
1287
|
+
return v1;
|
|
1288
|
+
} finally {
|
|
1289
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
*🔬 Planned
|
|
1294
|
+
*
|
|
1295
|
+
*
|
|
1296
|
+
* Args to pass to the custom exe installer[^1]
|
|
1297
|
+
*
|
|
1298
|
+
* [^1]: Only if you choose WindowsInstallerExe
|
|
1299
|
+
* @param {(string)[] | undefined} [arg0]
|
|
1300
|
+
*/
|
|
1301
|
+
set installerArgs(arg0) {
|
|
1302
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1303
|
+
_assertNum(this.__wbg_ptr);
|
|
1304
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1305
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1306
|
+
wasm.__wbg_set_installeroptionswindows_installerArgs(this.__wbg_ptr, ptr0, len0);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
const SearchEntryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1311
|
+
? { register: () => {}, unregister: () => {} }
|
|
1312
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_searchentry_free(ptr >>> 0, 1));
|
|
1313
|
+
/**
|
|
1314
|
+
*/
|
|
1315
|
+
export class SearchEntry {
|
|
1316
|
+
|
|
1317
|
+
constructor() {
|
|
1318
|
+
throw new Error('cannot invoke `new` directly');
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
static __wrap(ptr) {
|
|
1322
|
+
ptr = ptr >>> 0;
|
|
1323
|
+
const obj = Object.create(SearchEntry.prototype);
|
|
1324
|
+
obj.__wbg_ptr = ptr;
|
|
1325
|
+
SearchEntryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1326
|
+
return obj;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
__destroy_into_raw() {
|
|
1330
|
+
const ptr = this.__wbg_ptr;
|
|
1331
|
+
this.__wbg_ptr = 0;
|
|
1332
|
+
SearchEntryFinalization.unregister(this);
|
|
1333
|
+
return ptr;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
free() {
|
|
1337
|
+
const ptr = this.__destroy_into_raw();
|
|
1338
|
+
wasm.__wbg_searchentry_free(ptr, 0);
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* @returns {string}
|
|
1342
|
+
*/
|
|
1343
|
+
get name() {
|
|
1344
|
+
let deferred1_0;
|
|
1345
|
+
let deferred1_1;
|
|
1346
|
+
try {
|
|
1347
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1348
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1349
|
+
_assertNum(this.__wbg_ptr);
|
|
1350
|
+
wasm.__wbg_get_searchentry_name(retptr, this.__wbg_ptr);
|
|
1351
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1352
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1353
|
+
deferred1_0 = r0;
|
|
1354
|
+
deferred1_1 = r1;
|
|
1355
|
+
return getStringFromWasm0(r0, r1);
|
|
1356
|
+
} finally {
|
|
1357
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1358
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* @param {string} arg0
|
|
1363
|
+
*/
|
|
1364
|
+
set name(arg0) {
|
|
1365
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1366
|
+
_assertNum(this.__wbg_ptr);
|
|
1367
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1368
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1369
|
+
wasm.__wbg_set_searchentry_name(this.__wbg_ptr, ptr0, len0);
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* @returns {string}
|
|
1373
|
+
*/
|
|
1374
|
+
get title() {
|
|
1375
|
+
let deferred1_0;
|
|
1376
|
+
let deferred1_1;
|
|
1377
|
+
try {
|
|
1378
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1379
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1380
|
+
_assertNum(this.__wbg_ptr);
|
|
1381
|
+
wasm.__wbg_get_searchentry_title(retptr, this.__wbg_ptr);
|
|
1382
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1383
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1384
|
+
deferred1_0 = r0;
|
|
1385
|
+
deferred1_1 = r1;
|
|
1386
|
+
return getStringFromWasm0(r0, r1);
|
|
1387
|
+
} finally {
|
|
1388
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1389
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* @param {string} arg0
|
|
1394
|
+
*/
|
|
1395
|
+
set title(arg0) {
|
|
1396
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1397
|
+
_assertNum(this.__wbg_ptr);
|
|
1398
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1399
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1400
|
+
wasm.__wbg_set_searchentry_title(this.__wbg_ptr, ptr0, len0);
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* @returns {string}
|
|
1404
|
+
*/
|
|
1405
|
+
get id() {
|
|
1406
|
+
let deferred1_0;
|
|
1407
|
+
let deferred1_1;
|
|
1408
|
+
try {
|
|
1409
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1410
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1411
|
+
_assertNum(this.__wbg_ptr);
|
|
1412
|
+
wasm.__wbg_get_searchentry_id(retptr, this.__wbg_ptr);
|
|
1413
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1414
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1415
|
+
deferred1_0 = r0;
|
|
1416
|
+
deferred1_1 = r1;
|
|
1417
|
+
return getStringFromWasm0(r0, r1);
|
|
1418
|
+
} finally {
|
|
1419
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1420
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* @param {string} arg0
|
|
1425
|
+
*/
|
|
1426
|
+
set id(arg0) {
|
|
1427
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1428
|
+
_assertNum(this.__wbg_ptr);
|
|
1429
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1430
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1431
|
+
wasm.__wbg_set_searchentry_id(this.__wbg_ptr, ptr0, len0);
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
const ServerJSONRespFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1436
|
+
? { register: () => {}, unregister: () => {} }
|
|
1437
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_serverjsonresp_free(ptr >>> 0, 1));
|
|
1438
|
+
/**
|
|
1439
|
+
*/
|
|
1440
|
+
export class ServerJSONResp {
|
|
1441
|
+
|
|
1442
|
+
constructor() {
|
|
1443
|
+
throw new Error('cannot invoke `new` directly');
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
__destroy_into_raw() {
|
|
1447
|
+
const ptr = this.__wbg_ptr;
|
|
1448
|
+
this.__wbg_ptr = 0;
|
|
1449
|
+
ServerJSONRespFinalization.unregister(this);
|
|
1450
|
+
return ptr;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
free() {
|
|
1454
|
+
const ptr = this.__destroy_into_raw();
|
|
1455
|
+
wasm.__wbg_serverjsonresp_free(ptr, 0);
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* @returns {bigint}
|
|
1459
|
+
*/
|
|
1460
|
+
get last_updated() {
|
|
1461
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1462
|
+
_assertNum(this.__wbg_ptr);
|
|
1463
|
+
const ret = wasm.__wbg_get_serverjsonresp_last_updated(this.__wbg_ptr);
|
|
1464
|
+
return BigInt.asUintN(64, ret);
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* @param {bigint} arg0
|
|
1468
|
+
*/
|
|
1469
|
+
set last_updated(arg0) {
|
|
1470
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1471
|
+
_assertNum(this.__wbg_ptr);
|
|
1472
|
+
_assertBigInt(arg0);
|
|
1473
|
+
wasm.__wbg_set_serverjsonresp_last_updated(this.__wbg_ptr, arg0);
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* @returns {string}
|
|
1477
|
+
*/
|
|
1478
|
+
get config() {
|
|
1479
|
+
let deferred1_0;
|
|
1480
|
+
let deferred1_1;
|
|
1481
|
+
try {
|
|
1482
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1483
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1484
|
+
_assertNum(this.__wbg_ptr);
|
|
1485
|
+
wasm.__wbg_get_serverjsonresp_config(retptr, this.__wbg_ptr);
|
|
1486
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1487
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1488
|
+
deferred1_0 = r0;
|
|
1489
|
+
deferred1_1 = r1;
|
|
1490
|
+
return getStringFromWasm0(r0, r1);
|
|
1491
|
+
} finally {
|
|
1492
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1493
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* @param {string} arg0
|
|
1498
|
+
*/
|
|
1499
|
+
set config(arg0) {
|
|
1500
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1501
|
+
_assertNum(this.__wbg_ptr);
|
|
1502
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1503
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1504
|
+
wasm.__wbg_set_serverjsonresp_config(this.__wbg_ptr, ptr0, len0);
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
1509
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1510
|
+
return addHeapObject(ret);
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
export function __wbindgen_number_new(arg0) {
|
|
1514
|
+
const ret = arg0;
|
|
1515
|
+
return addHeapObject(ret);
|
|
1516
|
+
};
|
|
1517
|
+
|
|
1518
|
+
export function __wbg_searchentry_new() { return logError(function (arg0) {
|
|
1519
|
+
const ret = SearchEntry.__wrap(arg0);
|
|
1520
|
+
return addHeapObject(ret);
|
|
1521
|
+
}, arguments) };
|
|
1522
|
+
|
|
1523
|
+
export function __wbg_devdata_new() { return logError(function (arg0) {
|
|
1524
|
+
const ret = DevData.__wrap(arg0);
|
|
1525
|
+
return addHeapObject(ret);
|
|
1526
|
+
}, arguments) };
|
|
1527
|
+
|
|
1528
|
+
export function __wbindgen_array_new() {
|
|
1529
|
+
const ret = [];
|
|
1530
|
+
return addHeapObject(ret);
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
export function __wbindgen_array_push(arg0, arg1) {
|
|
1534
|
+
getObject(arg0).push(takeObject(arg1));
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
1538
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1539
|
+
return addHeapObject(ret);
|
|
1540
|
+
};
|
|
1541
|
+
|
|
1542
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
|
1543
|
+
const obj = getObject(arg1);
|
|
1544
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1545
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1546
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1547
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1548
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1549
|
+
};
|
|
1550
|
+
|
|
1551
|
+
export function __wbindgen_is_object(arg0) {
|
|
1552
|
+
const val = getObject(arg0);
|
|
1553
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1554
|
+
_assertBoolean(ret);
|
|
1555
|
+
return ret;
|
|
1556
|
+
};
|
|
1557
|
+
|
|
1558
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
|
1559
|
+
const ret = getObject(arg0);
|
|
1560
|
+
return addHeapObject(ret);
|
|
1561
|
+
};
|
|
1562
|
+
|
|
1563
|
+
export function __wbg_set_f975102236d3c502() { return logError(function (arg0, arg1, arg2) {
|
|
1564
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1565
|
+
}, arguments) };
|
|
1566
|
+
|
|
1567
|
+
export function __wbg_fetch_25e3a297f7b04639() { return logError(function (arg0) {
|
|
1568
|
+
const ret = fetch(getObject(arg0));
|
|
1569
|
+
return addHeapObject(ret);
|
|
1570
|
+
}, arguments) };
|
|
1571
|
+
|
|
1572
|
+
export function __wbindgen_is_function(arg0) {
|
|
1573
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
1574
|
+
_assertBoolean(ret);
|
|
1575
|
+
return ret;
|
|
1576
|
+
};
|
|
1577
|
+
|
|
1578
|
+
export function __wbg_queueMicrotask_12a30234db4045d3() { return logError(function (arg0) {
|
|
1579
|
+
queueMicrotask(getObject(arg0));
|
|
1580
|
+
}, arguments) };
|
|
1581
|
+
|
|
1582
|
+
export function __wbg_queueMicrotask_48421b3cc9052b68() { return logError(function (arg0) {
|
|
1583
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
1584
|
+
return addHeapObject(ret);
|
|
1585
|
+
}, arguments) };
|
|
1586
|
+
|
|
1587
|
+
export function __wbindgen_cb_drop(arg0) {
|
|
1588
|
+
const obj = takeObject(arg0).original;
|
|
1589
|
+
if (obj.cnt-- == 1) {
|
|
1590
|
+
obj.a = 0;
|
|
1591
|
+
return true;
|
|
1592
|
+
}
|
|
1593
|
+
const ret = false;
|
|
1594
|
+
_assertBoolean(ret);
|
|
1595
|
+
return ret;
|
|
1596
|
+
};
|
|
1597
|
+
|
|
1598
|
+
export function __wbg_new_e27c93803e1acc42() { return handleError(function () {
|
|
1599
|
+
const ret = new Headers();
|
|
1600
|
+
return addHeapObject(ret);
|
|
1601
|
+
}, arguments) };
|
|
1602
|
+
|
|
1603
|
+
export function __wbg_append_f3a4426bb50622c5() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1604
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1605
|
+
}, arguments) };
|
|
1606
|
+
|
|
1607
|
+
export function __wbg_newwithstrandinit_a31c69e4cc337183() { return handleError(function (arg0, arg1, arg2) {
|
|
1608
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
1609
|
+
return addHeapObject(ret);
|
|
1610
|
+
}, arguments) };
|
|
1611
|
+
|
|
1612
|
+
export function __wbg_setbody_734cb3d7ee8e6e96() { return logError(function (arg0, arg1) {
|
|
1613
|
+
getObject(arg0).body = getObject(arg1);
|
|
1614
|
+
}, arguments) };
|
|
1615
|
+
|
|
1616
|
+
export function __wbg_setcredentials_2b67800db3f7b621() { return logError(function (arg0, arg1) {
|
|
1617
|
+
getObject(arg0).credentials = ["omit","same-origin","include",][arg1];
|
|
1618
|
+
}, arguments) };
|
|
1619
|
+
|
|
1620
|
+
export function __wbg_setheaders_be10a5ab566fd06f() { return logError(function (arg0, arg1) {
|
|
1621
|
+
getObject(arg0).headers = getObject(arg1);
|
|
1622
|
+
}, arguments) };
|
|
1623
|
+
|
|
1624
|
+
export function __wbg_setmethod_dc68a742c2db5c6a() { return logError(function (arg0, arg1, arg2) {
|
|
1625
|
+
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
|
1626
|
+
}, arguments) };
|
|
1627
|
+
|
|
1628
|
+
export function __wbg_setmode_a781aae2bd3df202() { return logError(function (arg0, arg1) {
|
|
1629
|
+
getObject(arg0).mode = ["same-origin","no-cors","cors","navigate",][arg1];
|
|
1630
|
+
}, arguments) };
|
|
1631
|
+
|
|
1632
|
+
export function __wbg_setsignal_91c4e8ebd04eb935() { return logError(function (arg0, arg1) {
|
|
1633
|
+
getObject(arg0).signal = getObject(arg1);
|
|
1634
|
+
}, arguments) };
|
|
1635
|
+
|
|
1636
|
+
export function __wbg_fetch_ba7fe179e527d942() { return logError(function (arg0, arg1) {
|
|
1637
|
+
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
1638
|
+
return addHeapObject(ret);
|
|
1639
|
+
}, arguments) };
|
|
1640
|
+
|
|
1641
|
+
export function __wbg_signal_41e46ccad44bb5e2() { return logError(function (arg0) {
|
|
1642
|
+
const ret = getObject(arg0).signal;
|
|
1643
|
+
return addHeapObject(ret);
|
|
1644
|
+
}, arguments) };
|
|
1645
|
+
|
|
1646
|
+
export function __wbg_new_ebf2727385ee825c() { return handleError(function () {
|
|
1647
|
+
const ret = new AbortController();
|
|
1648
|
+
return addHeapObject(ret);
|
|
1649
|
+
}, arguments) };
|
|
1650
|
+
|
|
1651
|
+
export function __wbg_abort_8659d889a7877ae3() { return logError(function (arg0) {
|
|
1652
|
+
getObject(arg0).abort();
|
|
1653
|
+
}, arguments) };
|
|
1654
|
+
|
|
1655
|
+
export function __wbg_instanceof_Response_e91b7eb7c611a9ae() { return logError(function (arg0) {
|
|
1656
|
+
let result;
|
|
1657
|
+
try {
|
|
1658
|
+
result = getObject(arg0) instanceof Response;
|
|
1659
|
+
} catch (_) {
|
|
1660
|
+
result = false;
|
|
1661
|
+
}
|
|
1662
|
+
const ret = result;
|
|
1663
|
+
_assertBoolean(ret);
|
|
1664
|
+
return ret;
|
|
1665
|
+
}, arguments) };
|
|
1666
|
+
|
|
1667
|
+
export function __wbg_url_1bf85c8abeb8c92d() { return logError(function (arg0, arg1) {
|
|
1668
|
+
const ret = getObject(arg1).url;
|
|
1669
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1670
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1671
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1672
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1673
|
+
}, arguments) };
|
|
1674
|
+
|
|
1675
|
+
export function __wbg_status_ae8de515694c5c7c() { return logError(function (arg0) {
|
|
1676
|
+
const ret = getObject(arg0).status;
|
|
1677
|
+
_assertNum(ret);
|
|
1678
|
+
return ret;
|
|
1679
|
+
}, arguments) };
|
|
1680
|
+
|
|
1681
|
+
export function __wbg_headers_5e283e8345689121() { return logError(function (arg0) {
|
|
1682
|
+
const ret = getObject(arg0).headers;
|
|
1683
|
+
return addHeapObject(ret);
|
|
1684
|
+
}, arguments) };
|
|
1685
|
+
|
|
1686
|
+
export function __wbg_arrayBuffer_a5fbad63cc7e663b() { return handleError(function (arg0) {
|
|
1687
|
+
const ret = getObject(arg0).arrayBuffer();
|
|
1688
|
+
return addHeapObject(ret);
|
|
1689
|
+
}, arguments) };
|
|
1690
|
+
|
|
1691
|
+
export function __wbg_new_a220cf903aa02ca2() { return logError(function () {
|
|
1692
|
+
const ret = new Array();
|
|
1693
|
+
return addHeapObject(ret);
|
|
1694
|
+
}, arguments) };
|
|
1695
|
+
|
|
1696
|
+
export function __wbg_set_673dda6c73d19609() { return logError(function (arg0, arg1, arg2) {
|
|
1697
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1698
|
+
}, arguments) };
|
|
1699
|
+
|
|
1700
|
+
export function __wbg_newnoargs_76313bd6ff35d0f2() { return logError(function (arg0, arg1) {
|
|
1701
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1702
|
+
return addHeapObject(ret);
|
|
1703
|
+
}, arguments) };
|
|
1704
|
+
|
|
1705
|
+
export function __wbg_call_1084a111329e68ce() { return handleError(function (arg0, arg1) {
|
|
1706
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
1707
|
+
return addHeapObject(ret);
|
|
1708
|
+
}, arguments) };
|
|
1709
|
+
|
|
1710
|
+
export function __wbg_call_89af060b4e1523f2() { return handleError(function (arg0, arg1, arg2) {
|
|
1711
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1712
|
+
return addHeapObject(ret);
|
|
1713
|
+
}, arguments) };
|
|
1714
|
+
|
|
1715
|
+
export function __wbg_new_8608a2b51a5f6737() { return logError(function () {
|
|
1716
|
+
const ret = new Map();
|
|
1717
|
+
return addHeapObject(ret);
|
|
1718
|
+
}, arguments) };
|
|
1719
|
+
|
|
1720
|
+
export function __wbg_set_49185437f0ab06f8() { return logError(function (arg0, arg1, arg2) {
|
|
1721
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
1722
|
+
return addHeapObject(ret);
|
|
1723
|
+
}, arguments) };
|
|
1724
|
+
|
|
1725
|
+
export function __wbg_next_f9cb570345655b9a() { return handleError(function (arg0) {
|
|
1726
|
+
const ret = getObject(arg0).next();
|
|
1727
|
+
return addHeapObject(ret);
|
|
1728
|
+
}, arguments) };
|
|
1729
|
+
|
|
1730
|
+
export function __wbg_next_de3e9db4440638b2() { return logError(function (arg0) {
|
|
1731
|
+
const ret = getObject(arg0).next;
|
|
1732
|
+
return addHeapObject(ret);
|
|
1733
|
+
}, arguments) };
|
|
1734
|
+
|
|
1735
|
+
export function __wbg_done_bfda7aa8f252b39f() { return logError(function (arg0) {
|
|
1736
|
+
const ret = getObject(arg0).done;
|
|
1737
|
+
_assertBoolean(ret);
|
|
1738
|
+
return ret;
|
|
1739
|
+
}, arguments) };
|
|
1740
|
+
|
|
1741
|
+
export function __wbg_value_6d39332ab4788d86() { return logError(function (arg0) {
|
|
1742
|
+
const ret = getObject(arg0).value;
|
|
1743
|
+
return addHeapObject(ret);
|
|
1744
|
+
}, arguments) };
|
|
1745
|
+
|
|
1746
|
+
export function __wbg_new_525245e2b9901204() { return logError(function () {
|
|
1747
|
+
const ret = new Object();
|
|
1748
|
+
return addHeapObject(ret);
|
|
1749
|
+
}, arguments) };
|
|
1750
|
+
|
|
1751
|
+
export function __wbg_iterator_888179a48810a9fe() { return logError(function () {
|
|
1752
|
+
const ret = Symbol.iterator;
|
|
1753
|
+
return addHeapObject(ret);
|
|
1754
|
+
}, arguments) };
|
|
1755
|
+
|
|
1756
|
+
export function __wbg_new_b85e72ed1bfd57f9() { return logError(function (arg0, arg1) {
|
|
1757
|
+
try {
|
|
1758
|
+
var state0 = {a: arg0, b: arg1};
|
|
1759
|
+
var cb0 = (arg0, arg1) => {
|
|
1760
|
+
const a = state0.a;
|
|
1761
|
+
state0.a = 0;
|
|
1762
|
+
try {
|
|
1763
|
+
return __wbg_adapter_171(a, state0.b, arg0, arg1);
|
|
1764
|
+
} finally {
|
|
1765
|
+
state0.a = a;
|
|
1766
|
+
}
|
|
1767
|
+
};
|
|
1768
|
+
const ret = new Promise(cb0);
|
|
1769
|
+
return addHeapObject(ret);
|
|
1770
|
+
} finally {
|
|
1771
|
+
state0.a = state0.b = 0;
|
|
1772
|
+
}
|
|
1773
|
+
}, arguments) };
|
|
1774
|
+
|
|
1775
|
+
export function __wbg_resolve_570458cb99d56a43() { return logError(function (arg0) {
|
|
1776
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
1777
|
+
return addHeapObject(ret);
|
|
1778
|
+
}, arguments) };
|
|
1779
|
+
|
|
1780
|
+
export function __wbg_then_95e6edc0f89b73b1() { return logError(function (arg0, arg1) {
|
|
1781
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
1782
|
+
return addHeapObject(ret);
|
|
1783
|
+
}, arguments) };
|
|
1784
|
+
|
|
1785
|
+
export function __wbg_then_876bb3c633745cc6() { return logError(function (arg0, arg1, arg2) {
|
|
1786
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1787
|
+
return addHeapObject(ret);
|
|
1788
|
+
}, arguments) };
|
|
1789
|
+
|
|
1790
|
+
export function __wbg_globalThis_86b222e13bdf32ed() { return handleError(function () {
|
|
1791
|
+
const ret = globalThis.globalThis;
|
|
1792
|
+
return addHeapObject(ret);
|
|
1793
|
+
}, arguments) };
|
|
1794
|
+
|
|
1795
|
+
export function __wbg_self_3093d5d1f7bcb682() { return handleError(function () {
|
|
1796
|
+
const ret = self.self;
|
|
1797
|
+
return addHeapObject(ret);
|
|
1798
|
+
}, arguments) };
|
|
1799
|
+
|
|
1800
|
+
export function __wbg_window_3bcfc4d31bc012f8() { return handleError(function () {
|
|
1801
|
+
const ret = window.window;
|
|
1802
|
+
return addHeapObject(ret);
|
|
1803
|
+
}, arguments) };
|
|
1804
|
+
|
|
1805
|
+
export function __wbg_global_e5a3fe56f8be9485() { return handleError(function () {
|
|
1806
|
+
const ret = global.global;
|
|
1807
|
+
return addHeapObject(ret);
|
|
1808
|
+
}, arguments) };
|
|
1809
|
+
|
|
1810
|
+
export function __wbg_new_ea1883e1e5e86686() { return logError(function (arg0) {
|
|
1811
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
1812
|
+
return addHeapObject(ret);
|
|
1813
|
+
}, arguments) };
|
|
1814
|
+
|
|
1815
|
+
export function __wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9() { return logError(function (arg0, arg1, arg2) {
|
|
1816
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1817
|
+
return addHeapObject(ret);
|
|
1818
|
+
}, arguments) };
|
|
1819
|
+
|
|
1820
|
+
export function __wbg_length_8339fcf5d8ecd12e() { return logError(function (arg0) {
|
|
1821
|
+
const ret = getObject(arg0).length;
|
|
1822
|
+
_assertNum(ret);
|
|
1823
|
+
return ret;
|
|
1824
|
+
}, arguments) };
|
|
1825
|
+
|
|
1826
|
+
export function __wbg_set_d1e79e2388520f18() { return logError(function (arg0, arg1, arg2) {
|
|
1827
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
1828
|
+
}, arguments) };
|
|
1829
|
+
|
|
1830
|
+
export function __wbg_stringify_bbf45426c92a6bf5() { return handleError(function (arg0) {
|
|
1831
|
+
const ret = JSON.stringify(getObject(arg0));
|
|
1832
|
+
return addHeapObject(ret);
|
|
1833
|
+
}, arguments) };
|
|
1834
|
+
|
|
1835
|
+
export function __wbindgen_is_undefined(arg0) {
|
|
1836
|
+
const ret = getObject(arg0) === undefined;
|
|
1837
|
+
_assertBoolean(ret);
|
|
1838
|
+
return ret;
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
|
+
export function __wbindgen_is_string(arg0) {
|
|
1842
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
1843
|
+
_assertBoolean(ret);
|
|
1844
|
+
return ret;
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1847
|
+
export function __wbg_get_224d16597dbbfd96() { return handleError(function (arg0, arg1) {
|
|
1848
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1849
|
+
return addHeapObject(ret);
|
|
1850
|
+
}, arguments) };
|
|
1851
|
+
|
|
1852
|
+
export function __wbg_has_4bfbc01db38743f7() { return handleError(function (arg0, arg1) {
|
|
1853
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
1854
|
+
_assertBoolean(ret);
|
|
1855
|
+
return ret;
|
|
1856
|
+
}, arguments) };
|
|
1857
|
+
|
|
1858
|
+
export function __wbg_buffer_b7b08af79b0b0974() { return logError(function (arg0) {
|
|
1859
|
+
const ret = getObject(arg0).buffer;
|
|
1860
|
+
return addHeapObject(ret);
|
|
1861
|
+
}, arguments) };
|
|
1862
|
+
|
|
1863
|
+
export function __wbindgen_debug_string(arg0, arg1) {
|
|
1864
|
+
const ret = debugString(getObject(arg1));
|
|
1865
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1866
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1867
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1868
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1869
|
+
};
|
|
1870
|
+
|
|
1871
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
1872
|
+
takeObject(arg0);
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1875
|
+
export function __wbindgen_throw(arg0, arg1) {
|
|
1876
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
export function __wbindgen_memory() {
|
|
1880
|
+
const ret = wasm.memory;
|
|
1881
|
+
return addHeapObject(ret);
|
|
1882
|
+
};
|
|
1883
|
+
|
|
1884
|
+
export function __wbindgen_uint8_array_new(arg0, arg1) {
|
|
1885
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1886
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1887
|
+
const ret = v0;
|
|
1888
|
+
return addHeapObject(ret);
|
|
1889
|
+
};
|
|
1890
|
+
|
|
1891
|
+
export function __wbindgen_closure_wrapper2651() { return logError(function (arg0, arg1, arg2) {
|
|
1892
|
+
const ret = makeMutClosure(arg0, arg1, 152, __wbg_adapter_36);
|
|
1893
|
+
return addHeapObject(ret);
|
|
1894
|
+
}, arguments) };
|
|
1895
|
+
|