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