@qwik.dev/core 2.0.0-alpha.2 → 2.0.0-alpha.3
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/bindings/qwik.darwin-arm64.node +0 -0
- package/bindings/qwik.darwin-x64.node +0 -0
- package/bindings/qwik.linux-x64-gnu.node +0 -0
- package/bindings/qwik.wasm.cjs +259 -272
- package/bindings/qwik.wasm.mjs +259 -272
- package/bindings/qwik.win32-x64-msvc.node +0 -0
- package/bindings/qwik_wasm_bg.wasm +0 -0
- package/dist/build/package.json +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/core-internal.d.ts +4 -7
- package/dist/core.cjs +59 -52
- package/dist/core.cjs.map +1 -1
- package/dist/core.min.mjs +1 -1
- package/dist/core.mjs +59 -52
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.cjs +35 -25
- package/dist/core.prod.mjs +36 -25
- package/dist/insights/index.qwik.cjs +1 -1
- package/dist/insights/index.qwik.mjs +1 -1
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.cjs +50 -38
- package/dist/optimizer.mjs +52 -39
- package/dist/prefetch/package.json +1 -1
- package/dist/server.cjs +63 -56
- package/dist/server.mjs +63 -56
- package/dist/testing/index.cjs +61 -54
- package/dist/testing/index.mjs +61 -54
- package/dist/testing/package.json +1 -1
- package/package.json +4 -4
package/bindings/qwik.wasm.mjs
CHANGED
|
@@ -1,20 +1,94 @@
|
|
|
1
1
|
let wasm;
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function addToExternrefTable0(obj) {
|
|
4
|
+
const idx = wasm.__externref_table_alloc();
|
|
5
|
+
wasm.__wbindgen_export_2.set(idx, obj);
|
|
6
|
+
return idx;
|
|
7
|
+
}
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
function handleError(f, args) {
|
|
10
|
+
try {
|
|
11
|
+
return f.apply(this, args);
|
|
12
|
+
} catch (e) {
|
|
13
|
+
const idx = addToExternrefTable0(e);
|
|
14
|
+
wasm.__wbindgen_exn_store(idx);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
6
17
|
|
|
7
|
-
function
|
|
18
|
+
function debugString(val) {
|
|
19
|
+
// primitive types
|
|
20
|
+
const type = typeof val;
|
|
21
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
22
|
+
return `${val}`;
|
|
23
|
+
}
|
|
24
|
+
if (type == 'string') {
|
|
25
|
+
return `"${val}"`;
|
|
26
|
+
}
|
|
27
|
+
if (type == 'symbol') {
|
|
28
|
+
const description = val.description;
|
|
29
|
+
if (description == null) {
|
|
30
|
+
return 'Symbol';
|
|
31
|
+
} else {
|
|
32
|
+
return `Symbol(${description})`;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (type == 'function') {
|
|
36
|
+
const name = val.name;
|
|
37
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
38
|
+
return `Function(${name})`;
|
|
39
|
+
} else {
|
|
40
|
+
return 'Function';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// objects
|
|
44
|
+
if (Array.isArray(val)) {
|
|
45
|
+
const length = val.length;
|
|
46
|
+
let debug = '[';
|
|
47
|
+
if (length > 0) {
|
|
48
|
+
debug += debugString(val[0]);
|
|
49
|
+
}
|
|
50
|
+
for(let i = 1; i < length; i++) {
|
|
51
|
+
debug += ', ' + debugString(val[i]);
|
|
52
|
+
}
|
|
53
|
+
debug += ']';
|
|
54
|
+
return debug;
|
|
55
|
+
}
|
|
56
|
+
// Test for built-in
|
|
57
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
58
|
+
let className;
|
|
59
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
60
|
+
className = builtInMatches[1];
|
|
61
|
+
} else {
|
|
62
|
+
// Failed to match the standard '[object ClassName]'
|
|
63
|
+
return toString.call(val);
|
|
64
|
+
}
|
|
65
|
+
if (className == 'Object') {
|
|
66
|
+
// we're a user defined class or Object
|
|
67
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
68
|
+
// easier than looping through ownProperties of `val`.
|
|
69
|
+
try {
|
|
70
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
71
|
+
} catch (_) {
|
|
72
|
+
return 'Object';
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// errors
|
|
76
|
+
if (val instanceof Error) {
|
|
77
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
78
|
+
}
|
|
79
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
80
|
+
return className;
|
|
81
|
+
}
|
|
8
82
|
|
|
9
83
|
let WASM_VECTOR_LEN = 0;
|
|
10
84
|
|
|
11
|
-
let
|
|
85
|
+
let cachedUint8ArrayMemory0 = null;
|
|
12
86
|
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
87
|
+
function getUint8ArrayMemory0() {
|
|
88
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
89
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
16
90
|
}
|
|
17
|
-
return
|
|
91
|
+
return cachedUint8ArrayMemory0;
|
|
18
92
|
}
|
|
19
93
|
|
|
20
94
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -37,7 +111,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
37
111
|
if (realloc === undefined) {
|
|
38
112
|
const buf = cachedTextEncoder.encode(arg);
|
|
39
113
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
40
|
-
|
|
114
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
41
115
|
WASM_VECTOR_LEN = buf.length;
|
|
42
116
|
return ptr;
|
|
43
117
|
}
|
|
@@ -45,7 +119,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
45
119
|
let len = arg.length;
|
|
46
120
|
let ptr = malloc(len, 1) >>> 0;
|
|
47
121
|
|
|
48
|
-
const mem =
|
|
122
|
+
const mem = getUint8ArrayMemory0();
|
|
49
123
|
|
|
50
124
|
let offset = 0;
|
|
51
125
|
|
|
@@ -60,7 +134,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
60
134
|
arg = arg.slice(offset);
|
|
61
135
|
}
|
|
62
136
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
63
|
-
const view =
|
|
137
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
64
138
|
const ret = encodeString(arg, view);
|
|
65
139
|
|
|
66
140
|
offset += ret.written;
|
|
@@ -71,40 +145,13 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
71
145
|
return ptr;
|
|
72
146
|
}
|
|
73
147
|
|
|
74
|
-
|
|
75
|
-
return x === undefined || x === null;
|
|
76
|
-
}
|
|
148
|
+
let cachedDataViewMemory0 = null;
|
|
77
149
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
82
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
150
|
+
function getDataViewMemory0() {
|
|
151
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
152
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
83
153
|
}
|
|
84
|
-
return
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
let heap_next = heap.length;
|
|
88
|
-
|
|
89
|
-
function dropObject(idx) {
|
|
90
|
-
if (idx < 132) return;
|
|
91
|
-
heap[idx] = heap_next;
|
|
92
|
-
heap_next = idx;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function takeObject(idx) {
|
|
96
|
-
const ret = getObject(idx);
|
|
97
|
-
dropObject(idx);
|
|
98
|
-
return ret;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function addHeapObject(obj) {
|
|
102
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
103
|
-
const idx = heap_next;
|
|
104
|
-
heap_next = heap[idx];
|
|
105
|
-
|
|
106
|
-
heap[idx] = obj;
|
|
107
|
-
return idx;
|
|
154
|
+
return cachedDataViewMemory0;
|
|
108
155
|
}
|
|
109
156
|
|
|
110
157
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
@@ -112,108 +159,28 @@ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder(
|
|
|
112
159
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }
|
|
113
160
|
function getStringFromWasm0(ptr, len) {
|
|
114
161
|
ptr = ptr >>> 0;
|
|
115
|
-
return cachedTextDecoder.decode(
|
|
162
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
116
163
|
}
|
|
117
164
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
function getFloat64Memory0() {
|
|
121
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
122
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
123
|
-
}
|
|
124
|
-
return cachedFloat64Memory0;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
function debugString(val) {
|
|
128
|
-
// primitive types
|
|
129
|
-
const type = typeof val;
|
|
130
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
131
|
-
return `${val}`;
|
|
132
|
-
}
|
|
133
|
-
if (type == 'string') {
|
|
134
|
-
return `"${val}"`;
|
|
135
|
-
}
|
|
136
|
-
if (type == 'symbol') {
|
|
137
|
-
const description = val.description;
|
|
138
|
-
if (description == null) {
|
|
139
|
-
return 'Symbol';
|
|
140
|
-
} else {
|
|
141
|
-
return `Symbol(${description})`;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
if (type == 'function') {
|
|
145
|
-
const name = val.name;
|
|
146
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
147
|
-
return `Function(${name})`;
|
|
148
|
-
} else {
|
|
149
|
-
return 'Function';
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
// objects
|
|
153
|
-
if (Array.isArray(val)) {
|
|
154
|
-
const length = val.length;
|
|
155
|
-
let debug = '[';
|
|
156
|
-
if (length > 0) {
|
|
157
|
-
debug += debugString(val[0]);
|
|
158
|
-
}
|
|
159
|
-
for(let i = 1; i < length; i++) {
|
|
160
|
-
debug += ', ' + debugString(val[i]);
|
|
161
|
-
}
|
|
162
|
-
debug += ']';
|
|
163
|
-
return debug;
|
|
164
|
-
}
|
|
165
|
-
// Test for built-in
|
|
166
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
167
|
-
let className;
|
|
168
|
-
if (builtInMatches.length > 1) {
|
|
169
|
-
className = builtInMatches[1];
|
|
170
|
-
} else {
|
|
171
|
-
// Failed to match the standard '[object ClassName]'
|
|
172
|
-
return toString.call(val);
|
|
173
|
-
}
|
|
174
|
-
if (className == 'Object') {
|
|
175
|
-
// we're a user defined class or Object
|
|
176
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
177
|
-
// easier than looping through ownProperties of `val`.
|
|
178
|
-
try {
|
|
179
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
180
|
-
} catch (_) {
|
|
181
|
-
return 'Object';
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
// errors
|
|
185
|
-
if (val instanceof Error) {
|
|
186
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
187
|
-
}
|
|
188
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
189
|
-
return className;
|
|
165
|
+
function isLikeNone(x) {
|
|
166
|
+
return x === undefined || x === null;
|
|
190
167
|
}
|
|
191
168
|
|
|
192
|
-
function
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
197
|
-
}
|
|
169
|
+
function takeFromExternrefTable0(idx) {
|
|
170
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
171
|
+
wasm.__externref_table_dealloc(idx);
|
|
172
|
+
return value;
|
|
198
173
|
}
|
|
199
174
|
/**
|
|
200
|
-
* @param {any} config_val
|
|
201
|
-
* @returns {any}
|
|
202
|
-
*/
|
|
175
|
+
* @param {any} config_val
|
|
176
|
+
* @returns {any}
|
|
177
|
+
*/
|
|
203
178
|
function transform_modules(config_val) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
208
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
209
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
210
|
-
if (r2) {
|
|
211
|
-
throw takeObject(r1);
|
|
212
|
-
}
|
|
213
|
-
return takeObject(r0);
|
|
214
|
-
} finally {
|
|
215
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
179
|
+
const ret = wasm.transform_modules(config_val);
|
|
180
|
+
if (ret[2]) {
|
|
181
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
216
182
|
}
|
|
183
|
+
return takeFromExternrefTable0(ret[0]);
|
|
217
184
|
}
|
|
218
185
|
|
|
219
186
|
async function __wbg_load(module, imports) {
|
|
@@ -224,7 +191,7 @@ async function __wbg_load(module, imports) {
|
|
|
224
191
|
|
|
225
192
|
} catch (e) {
|
|
226
193
|
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
227
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve
|
|
194
|
+
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);
|
|
228
195
|
|
|
229
196
|
} else {
|
|
230
197
|
throw e;
|
|
@@ -250,180 +217,182 @@ async function __wbg_load(module, imports) {
|
|
|
250
217
|
function __wbg_get_imports() {
|
|
251
218
|
const imports = {};
|
|
252
219
|
imports.wbg = {};
|
|
253
|
-
imports.wbg.
|
|
254
|
-
const ret =
|
|
220
|
+
imports.wbg.__wbg_buffer_6e1d53ff183194fc = function(arg0) {
|
|
221
|
+
const ret = arg0.buffer;
|
|
255
222
|
return ret;
|
|
256
223
|
};
|
|
257
|
-
imports.wbg.
|
|
258
|
-
const ret =
|
|
224
|
+
imports.wbg.__wbg_call_3114932863209ca6 = function() { return handleError(function (arg0, arg1) {
|
|
225
|
+
const ret = arg0.call(arg1);
|
|
259
226
|
return ret;
|
|
260
|
-
};
|
|
261
|
-
imports.wbg.
|
|
262
|
-
const
|
|
263
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
264
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
265
|
-
var len1 = WASM_VECTOR_LEN;
|
|
266
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
267
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
268
|
-
};
|
|
269
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
270
|
-
const val = getObject(arg0);
|
|
271
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
227
|
+
}, arguments) };
|
|
228
|
+
imports.wbg.__wbg_done_adfd3f40364def50 = function(arg0) {
|
|
229
|
+
const ret = arg0.done;
|
|
272
230
|
return ret;
|
|
273
231
|
};
|
|
274
|
-
imports.wbg.
|
|
275
|
-
const ret =
|
|
232
|
+
imports.wbg.__wbg_entries_ce82e236f8300a53 = function(arg0) {
|
|
233
|
+
const ret = Object.entries(arg0);
|
|
276
234
|
return ret;
|
|
277
235
|
};
|
|
278
|
-
imports.wbg.
|
|
279
|
-
|
|
236
|
+
imports.wbg.__wbg_get_68aa371864aa301a = function(arg0, arg1) {
|
|
237
|
+
const ret = arg0[arg1 >>> 0];
|
|
238
|
+
return ret;
|
|
280
239
|
};
|
|
281
|
-
imports.wbg.
|
|
282
|
-
const ret =
|
|
283
|
-
return
|
|
240
|
+
imports.wbg.__wbg_get_92a4780a3beb5fe9 = function() { return handleError(function (arg0, arg1) {
|
|
241
|
+
const ret = Reflect.get(arg0, arg1);
|
|
242
|
+
return ret;
|
|
243
|
+
}, arguments) };
|
|
244
|
+
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
245
|
+
const ret = arg0[arg1];
|
|
246
|
+
return ret;
|
|
284
247
|
};
|
|
285
|
-
imports.wbg.
|
|
286
|
-
|
|
248
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_435fcead703e2827 = function(arg0) {
|
|
249
|
+
let result;
|
|
250
|
+
try {
|
|
251
|
+
result = arg0 instanceof ArrayBuffer;
|
|
252
|
+
} catch (_) {
|
|
253
|
+
result = false;
|
|
254
|
+
}
|
|
255
|
+
const ret = result;
|
|
287
256
|
return ret;
|
|
288
257
|
};
|
|
289
|
-
imports.wbg.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
258
|
+
imports.wbg.__wbg_instanceof_Uint8Array_9b67296cab48238f = function(arg0) {
|
|
259
|
+
let result;
|
|
260
|
+
try {
|
|
261
|
+
result = arg0 instanceof Uint8Array;
|
|
262
|
+
} catch (_) {
|
|
263
|
+
result = false;
|
|
264
|
+
}
|
|
265
|
+
const ret = result;
|
|
295
266
|
return ret;
|
|
296
267
|
};
|
|
297
|
-
imports.wbg.
|
|
298
|
-
const ret =
|
|
299
|
-
return
|
|
268
|
+
imports.wbg.__wbg_isArray_fcd559a3bcfde1e9 = function(arg0) {
|
|
269
|
+
const ret = Array.isArray(arg0);
|
|
270
|
+
return ret;
|
|
300
271
|
};
|
|
301
|
-
imports.wbg.
|
|
272
|
+
imports.wbg.__wbg_iterator_7a20c20ce22add0f = function() {
|
|
302
273
|
const ret = Symbol.iterator;
|
|
303
|
-
return
|
|
274
|
+
return ret;
|
|
304
275
|
};
|
|
305
|
-
imports.wbg.
|
|
306
|
-
const ret =
|
|
307
|
-
return addHeapObject(ret);
|
|
308
|
-
}, arguments) };
|
|
309
|
-
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
310
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
276
|
+
imports.wbg.__wbg_length_2e63ba34c4121df5 = function(arg0) {
|
|
277
|
+
const ret = arg0.length;
|
|
311
278
|
return ret;
|
|
312
279
|
};
|
|
313
|
-
imports.wbg.
|
|
314
|
-
const ret =
|
|
315
|
-
return
|
|
316
|
-
}, arguments) };
|
|
317
|
-
imports.wbg.__wbg_next_40fc327bfc8770e6 = function(arg0) {
|
|
318
|
-
const ret = getObject(arg0).next;
|
|
319
|
-
return addHeapObject(ret);
|
|
280
|
+
imports.wbg.__wbg_length_e74df4881604f1d9 = function(arg0) {
|
|
281
|
+
const ret = arg0.length;
|
|
282
|
+
return ret;
|
|
320
283
|
};
|
|
321
|
-
imports.wbg.
|
|
322
|
-
|
|
284
|
+
imports.wbg.__wbg_new_076cac58bb698dd4 = function() {
|
|
285
|
+
const ret = new Object();
|
|
286
|
+
return ret;
|
|
323
287
|
};
|
|
324
|
-
imports.wbg.
|
|
325
|
-
const ret =
|
|
288
|
+
imports.wbg.__wbg_new_0c28e72025e00594 = function() {
|
|
289
|
+
const ret = new Array();
|
|
326
290
|
return ret;
|
|
327
291
|
};
|
|
328
|
-
imports.wbg.
|
|
329
|
-
const ret =
|
|
330
|
-
return
|
|
292
|
+
imports.wbg.__wbg_new_23362fa370a0a372 = function(arg0) {
|
|
293
|
+
const ret = new Uint8Array(arg0);
|
|
294
|
+
return ret;
|
|
295
|
+
};
|
|
296
|
+
imports.wbg.__wbg_next_c591766a7286b02a = function() { return handleError(function (arg0) {
|
|
297
|
+
const ret = arg0.next();
|
|
298
|
+
return ret;
|
|
299
|
+
}, arguments) };
|
|
300
|
+
imports.wbg.__wbg_next_f387ecc56a94ba00 = function(arg0) {
|
|
301
|
+
const ret = arg0.next;
|
|
302
|
+
return ret;
|
|
331
303
|
};
|
|
332
|
-
imports.wbg.
|
|
333
|
-
|
|
334
|
-
return addHeapObject(ret);
|
|
304
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
305
|
+
arg0[arg1] = arg2;
|
|
335
306
|
};
|
|
336
|
-
imports.wbg.
|
|
337
|
-
|
|
338
|
-
return addHeapObject(ret);
|
|
307
|
+
imports.wbg.__wbg_set_7b70226104a82921 = function(arg0, arg1, arg2) {
|
|
308
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
339
309
|
};
|
|
340
|
-
imports.wbg.
|
|
341
|
-
|
|
310
|
+
imports.wbg.__wbg_set_a1fb6291729caffb = function(arg0, arg1, arg2) {
|
|
311
|
+
arg0[arg1 >>> 0] = arg2;
|
|
342
312
|
};
|
|
343
|
-
imports.wbg.
|
|
344
|
-
const ret = arg0;
|
|
345
|
-
return
|
|
313
|
+
imports.wbg.__wbg_value_30db1d77772f3236 = function(arg0) {
|
|
314
|
+
const ret = arg0.value;
|
|
315
|
+
return ret;
|
|
346
316
|
};
|
|
347
317
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
348
318
|
const ret = BigInt.asUintN(64, arg0);
|
|
349
|
-
return
|
|
319
|
+
return ret;
|
|
350
320
|
};
|
|
351
|
-
imports.wbg.
|
|
352
|
-
const
|
|
353
|
-
|
|
321
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
322
|
+
const v = arg0;
|
|
323
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
324
|
+
return ret;
|
|
354
325
|
};
|
|
355
|
-
imports.wbg.
|
|
356
|
-
const ret =
|
|
357
|
-
|
|
326
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
327
|
+
const ret = debugString(arg1);
|
|
328
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
329
|
+
const len1 = WASM_VECTOR_LEN;
|
|
330
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
331
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
358
332
|
};
|
|
359
|
-
imports.wbg.
|
|
360
|
-
const ret = new
|
|
361
|
-
return
|
|
333
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
334
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
335
|
+
return ret;
|
|
362
336
|
};
|
|
363
|
-
imports.wbg.
|
|
364
|
-
const ret =
|
|
365
|
-
return
|
|
337
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
338
|
+
const ret = arg0 in arg1;
|
|
339
|
+
return ret;
|
|
366
340
|
};
|
|
367
|
-
imports.wbg.
|
|
368
|
-
|
|
341
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
342
|
+
const table = wasm.__wbindgen_export_2;
|
|
343
|
+
const offset = table.grow(4);
|
|
344
|
+
table.set(0, undefined);
|
|
345
|
+
table.set(offset + 0, undefined);
|
|
346
|
+
table.set(offset + 1, null);
|
|
347
|
+
table.set(offset + 2, true);
|
|
348
|
+
table.set(offset + 3, false);
|
|
369
349
|
};
|
|
370
|
-
imports.wbg.
|
|
371
|
-
const
|
|
372
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
350
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
351
|
+
const ret = typeof(arg0) === 'function';
|
|
373
352
|
return ret;
|
|
374
353
|
};
|
|
375
|
-
imports.wbg.
|
|
376
|
-
const
|
|
354
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
355
|
+
const val = arg0;
|
|
356
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
377
357
|
return ret;
|
|
378
358
|
};
|
|
379
|
-
imports.wbg.
|
|
380
|
-
const ret =
|
|
381
|
-
return
|
|
359
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
360
|
+
const ret = typeof(arg0) === 'string';
|
|
361
|
+
return ret;
|
|
362
|
+
};
|
|
363
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
364
|
+
const ret = arg0 === undefined;
|
|
365
|
+
return ret;
|
|
382
366
|
};
|
|
383
367
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
384
|
-
const ret =
|
|
368
|
+
const ret = arg0 == arg1;
|
|
369
|
+
return ret;
|
|
370
|
+
};
|
|
371
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
372
|
+
const ret = wasm.memory;
|
|
385
373
|
return ret;
|
|
386
374
|
};
|
|
387
375
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
388
|
-
const obj =
|
|
376
|
+
const obj = arg1;
|
|
389
377
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
390
|
-
|
|
391
|
-
|
|
378
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
379
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
392
380
|
};
|
|
393
|
-
imports.wbg.
|
|
394
|
-
|
|
395
|
-
try {
|
|
396
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
397
|
-
} catch (_) {
|
|
398
|
-
result = false;
|
|
399
|
-
}
|
|
400
|
-
const ret = result;
|
|
401
|
-
return ret;
|
|
402
|
-
};
|
|
403
|
-
imports.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
|
|
404
|
-
let result;
|
|
405
|
-
try {
|
|
406
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
407
|
-
} catch (_) {
|
|
408
|
-
result = false;
|
|
409
|
-
}
|
|
410
|
-
const ret = result;
|
|
381
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
382
|
+
const ret = arg0;
|
|
411
383
|
return ret;
|
|
412
384
|
};
|
|
413
|
-
imports.wbg.
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
385
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
386
|
+
const obj = arg1;
|
|
387
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
388
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
389
|
+
var len1 = WASM_VECTOR_LEN;
|
|
390
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
391
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
420
392
|
};
|
|
421
|
-
imports.wbg.
|
|
422
|
-
const ret =
|
|
423
|
-
|
|
424
|
-
const len1 = WASM_VECTOR_LEN;
|
|
425
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
426
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
393
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
394
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
395
|
+
return ret;
|
|
427
396
|
};
|
|
428
397
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
429
398
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
@@ -435,17 +404,26 @@ function __wbg_get_imports() {
|
|
|
435
404
|
function __wbg_finalize_init(instance, module) {
|
|
436
405
|
wasm = instance.exports;
|
|
437
406
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
cachedUint8Memory0 = null;
|
|
407
|
+
cachedDataViewMemory0 = null;
|
|
408
|
+
cachedUint8ArrayMemory0 = null;
|
|
441
409
|
|
|
442
410
|
|
|
411
|
+
wasm.__wbindgen_start();
|
|
443
412
|
return wasm;
|
|
444
413
|
}
|
|
445
414
|
|
|
446
415
|
function initSync(module) {
|
|
447
416
|
if (wasm !== undefined) return wasm;
|
|
448
417
|
|
|
418
|
+
|
|
419
|
+
if (typeof module !== 'undefined') {
|
|
420
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
421
|
+
({module} = module);
|
|
422
|
+
} else {
|
|
423
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead');
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
449
427
|
const imports = __wbg_get_imports();
|
|
450
428
|
|
|
451
429
|
if (!(module instanceof WebAssembly.Module)) {
|
|
@@ -457,19 +435,28 @@ function initSync(module) {
|
|
|
457
435
|
return __wbg_finalize_init(instance, module);
|
|
458
436
|
}
|
|
459
437
|
|
|
460
|
-
async function __wbg_init(
|
|
438
|
+
async function __wbg_init(module_or_path) {
|
|
461
439
|
if (wasm !== undefined) return wasm;
|
|
462
440
|
|
|
463
|
-
|
|
464
|
-
|
|
441
|
+
|
|
442
|
+
if (typeof module_or_path !== 'undefined') {
|
|
443
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
444
|
+
({module_or_path} = module_or_path);
|
|
445
|
+
} else {
|
|
446
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead');
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
if (typeof module_or_path === 'undefined') {
|
|
451
|
+
module_or_path = new URL('qwik_wasm_bg.wasm', import.meta.url);
|
|
465
452
|
}
|
|
466
453
|
const imports = __wbg_get_imports();
|
|
467
454
|
|
|
468
|
-
if (typeof
|
|
469
|
-
|
|
455
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
456
|
+
module_or_path = fetch(module_or_path);
|
|
470
457
|
}
|
|
471
458
|
|
|
472
|
-
const { instance, module } = await __wbg_load(await
|
|
459
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
473
460
|
|
|
474
461
|
return __wbg_finalize_init(instance, module);
|
|
475
462
|
}
|
|
Binary file
|
|
Binary file
|