qlue-ls 0.15.1 → 0.17.0

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 CHANGED
@@ -17,9 +17,10 @@
17
17
  ⚡Qlue-ls (pronounced "clueless") is a *blazingly fast* [language server](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification)
18
18
  for [SPARQL](https://de.wikipedia.org/wiki/SPARQL), written in Rust 🦀, build for the web.
19
19
 
20
+ 💻 [Live Demo](https://qlue-ls.com)
20
21
  📚 [Documentation](https://docs.qlue-ls.com)
21
22
  📝 [Project Blog Post](https://ad-blog.cs.uni-freiburg.de/post/qlue-ls-a-sparql-language-server/)
22
- 💻 [Live Demo](https://qlue-ls.com)
23
+ 🎓 [Thesis](https://ad-publications.cs.uni-freiburg.de/theses/Bachelor_Ioannis_Nezis_2025.pdf)
23
24
 
24
25
  # 🚀 Capabilities
25
26
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Ioannis Nezis <ioannis@nezis.de>"
6
6
  ],
7
7
  "description": "A language server for SPARQL",
8
- "version": "0.15.1",
8
+ "version": "0.17.0",
9
9
  "license": "SEE LICENSE IN LICENSE",
10
10
  "repository": {
11
11
  "type": "git",
package/qlue_ls.d.ts CHANGED
@@ -1,23 +1,24 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export function format_raw(text: string): string;
3
4
  export function init_language_server(writer: WritableStreamDefaultWriter): Server;
4
5
  export function listen(server: Server, reader: ReadableStreamDefaultReader): Promise<void>;
5
- export function format_raw(text: string): string;
6
6
  export function determine_operation_type(input: string): string;
7
7
  export function get_parse_tree(input: string, offset: number): any;
8
8
  export class Server {
9
9
  private constructor();
10
10
  free(): void;
11
+ [Symbol.dispose](): void;
11
12
  }
12
13
 
13
14
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
14
15
 
15
16
  export interface InitOutput {
16
17
  readonly memory: WebAssembly.Memory;
18
+ readonly format_raw: (a: number, b: number) => [number, number, number, number];
17
19
  readonly init_language_server: (a: any) => number;
18
20
  readonly listen: (a: number, b: any) => any;
19
21
  readonly __wbg_server_free: (a: number, b: number) => void;
20
- readonly format_raw: (a: number, b: number) => [number, number, number, number];
21
22
  readonly determine_operation_type: (a: number, b: number) => [number, number];
22
23
  readonly get_parse_tree: (a: number, b: number, c: number) => any;
23
24
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -28,8 +29,8 @@ export interface InitOutput {
28
29
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
29
30
  readonly __wbindgen_export_6: WebAssembly.Table;
30
31
  readonly __externref_table_dealloc: (a: number) => void;
31
- readonly closure1368_externref_shim: (a: number, b: number, c: any) => void;
32
- readonly closure1708_externref_shim: (a: number, b: number, c: any, d: any) => void;
32
+ readonly closure1383_externref_shim: (a: number, b: number, c: any) => void;
33
+ readonly closure1900_externref_shim: (a: number, b: number, c: any, d: any) => void;
33
34
  readonly __wbindgen_start: () => void;
34
35
  }
35
36
 
package/qlue_ls.js CHANGED
@@ -15,10 +15,6 @@ function handleError(f, args) {
15
15
  }
16
16
  }
17
17
 
18
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
19
-
20
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
21
-
22
18
  let cachedUint8ArrayMemory0 = null;
23
19
 
24
20
  function getUint8ArrayMemory0() {
@@ -28,9 +24,25 @@ function getUint8ArrayMemory0() {
28
24
  return cachedUint8ArrayMemory0;
29
25
  }
30
26
 
27
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
+
29
+ cachedTextDecoder.decode();
30
+
31
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
32
+ let numBytesDecoded = 0;
33
+ function decodeText(ptr, len) {
34
+ numBytesDecoded += len;
35
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
36
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
+ cachedTextDecoder.decode();
38
+ numBytesDecoded = len;
39
+ }
40
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
41
+ }
42
+
31
43
  function getStringFromWasm0(ptr, len) {
32
44
  ptr = ptr >>> 0;
33
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
45
+ return decodeText(ptr, len);
34
46
  }
35
47
 
36
48
  function isLikeNone(x) {
@@ -39,20 +51,18 @@ function isLikeNone(x) {
39
51
 
40
52
  let WASM_VECTOR_LEN = 0;
41
53
 
42
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
54
+ const cachedTextEncoder = new TextEncoder();
43
55
 
44
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
45
- ? function (arg, view) {
46
- return cachedTextEncoder.encodeInto(arg, view);
56
+ if (!('encodeInto' in cachedTextEncoder)) {
57
+ cachedTextEncoder.encodeInto = function (arg, view) {
58
+ const buf = cachedTextEncoder.encode(arg);
59
+ view.set(buf);
60
+ return {
61
+ read: arg.length,
62
+ written: buf.length
63
+ };
64
+ }
47
65
  }
48
- : function (arg, view) {
49
- const buf = cachedTextEncoder.encode(arg);
50
- view.set(buf);
51
- return {
52
- read: arg.length,
53
- written: buf.length
54
- };
55
- });
56
66
 
57
67
  function passStringToWasm0(arg, malloc, realloc) {
58
68
 
@@ -83,7 +93,7 @@ function passStringToWasm0(arg, malloc, realloc) {
83
93
  }
84
94
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
85
95
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
86
- const ret = encodeString(arg, view);
96
+ const ret = cachedTextEncoder.encodeInto(arg, view);
87
97
 
88
98
  offset += ret.written;
89
99
  ptr = realloc(ptr, len, offset, 1) >>> 0;
@@ -102,37 +112,6 @@ function getDataViewMemory0() {
102
112
  return cachedDataViewMemory0;
103
113
  }
104
114
 
105
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
106
- ? { register: () => {}, unregister: () => {} }
107
- : new FinalizationRegistry(state => {
108
- wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
109
- });
110
-
111
- function makeMutClosure(arg0, arg1, dtor, f) {
112
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
113
- const real = (...args) => {
114
- // First up with a closure we increment the internal reference
115
- // count. This ensures that the Rust closure environment won't
116
- // be deallocated while we're invoking it.
117
- state.cnt++;
118
- const a = state.a;
119
- state.a = 0;
120
- try {
121
- return f(a, state.b, ...args);
122
- } finally {
123
- if (--state.cnt === 0) {
124
- wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
125
- CLOSURE_DTORS.unregister(state);
126
- } else {
127
- state.a = a;
128
- }
129
- }
130
- };
131
- real.original = state;
132
- CLOSURE_DTORS.register(real, state, state);
133
- return real;
134
- }
135
-
136
115
  function debugString(val) {
137
116
  // primitive types
138
117
  const type = typeof val;
@@ -197,30 +176,39 @@ function debugString(val) {
197
176
  // TODO we could test for more things here, like `Set`s and `Map`s.
198
177
  return className;
199
178
  }
200
- /**
201
- * @param {WritableStreamDefaultWriter} writer
202
- * @returns {Server}
203
- */
204
- export function init_language_server(writer) {
205
- const ret = wasm.init_language_server(writer);
206
- return Server.__wrap(ret);
207
- }
208
179
 
209
- function _assertClass(instance, klass) {
210
- if (!(instance instanceof klass)) {
211
- throw new Error(`expected instance of ${klass.name}`);
212
- }
180
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
181
+ ? { register: () => {}, unregister: () => {} }
182
+ : new FinalizationRegistry(
183
+ state => {
184
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
213
185
  }
214
- /**
215
- * @param {Server} server
216
- * @param {ReadableStreamDefaultReader} reader
217
- * @returns {Promise<void>}
218
- */
219
- export function listen(server, reader) {
220
- _assertClass(server, Server);
221
- var ptr0 = server.__destroy_into_raw();
222
- const ret = wasm.listen(ptr0, reader);
223
- return ret;
186
+ );
187
+
188
+ function makeMutClosure(arg0, arg1, dtor, f) {
189
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
190
+ const real = (...args) => {
191
+
192
+ // First up with a closure we increment the internal reference
193
+ // count. This ensures that the Rust closure environment won't
194
+ // be deallocated while we're invoking it.
195
+ state.cnt++;
196
+ const a = state.a;
197
+ state.a = 0;
198
+ try {
199
+ return f(a, state.b, ...args);
200
+ } finally {
201
+ if (--state.cnt === 0) {
202
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
203
+ CLOSURE_DTORS.unregister(state);
204
+ } else {
205
+ state.a = a;
206
+ }
207
+ }
208
+ };
209
+ real.original = state;
210
+ CLOSURE_DTORS.register(real, state, state);
211
+ return real;
224
212
  }
225
213
 
226
214
  function takeFromExternrefTable0(idx) {
@@ -253,6 +241,32 @@ export function format_raw(text) {
253
241
  }
254
242
  }
255
243
 
244
+ /**
245
+ * @param {WritableStreamDefaultWriter} writer
246
+ * @returns {Server}
247
+ */
248
+ export function init_language_server(writer) {
249
+ const ret = wasm.init_language_server(writer);
250
+ return Server.__wrap(ret);
251
+ }
252
+
253
+ function _assertClass(instance, klass) {
254
+ if (!(instance instanceof klass)) {
255
+ throw new Error(`expected instance of ${klass.name}`);
256
+ }
257
+ }
258
+ /**
259
+ * @param {Server} server
260
+ * @param {ReadableStreamDefaultReader} reader
261
+ * @returns {Promise<void>}
262
+ */
263
+ export function listen(server, reader) {
264
+ _assertClass(server, Server);
265
+ var ptr0 = server.__destroy_into_raw();
266
+ const ret = wasm.listen(ptr0, reader);
267
+ return ret;
268
+ }
269
+
256
270
  /**
257
271
  * @param {string} input
258
272
  * @returns {string}
@@ -284,12 +298,12 @@ export function get_parse_tree(input, offset) {
284
298
  return ret;
285
299
  }
286
300
 
287
- function __wbg_adapter_24(arg0, arg1, arg2) {
288
- wasm.closure1368_externref_shim(arg0, arg1, arg2);
301
+ function __wbg_adapter_8(arg0, arg1, arg2) {
302
+ wasm.closure1383_externref_shim(arg0, arg1, arg2);
289
303
  }
290
304
 
291
- function __wbg_adapter_98(arg0, arg1, arg2, arg3) {
292
- wasm.closure1708_externref_shim(arg0, arg1, arg2, arg3);
305
+ function __wbg_adapter_84(arg0, arg1, arg2, arg3) {
306
+ wasm.closure1900_externref_shim(arg0, arg1, arg2, arg3);
293
307
  }
294
308
 
295
309
  const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
@@ -320,6 +334,9 @@ export class Server {
320
334
  wasm.__wbg_server_free(ptr, 0);
321
335
  }
322
336
  }
337
+ if (Symbol.dispose) Server.prototype[Symbol.dispose] = Server.prototype.free;
338
+
339
+ const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
323
340
 
324
341
  async function __wbg_load(module, imports) {
325
342
  if (typeof Response === 'function' && module instanceof Response) {
@@ -328,7 +345,9 @@ async function __wbg_load(module, imports) {
328
345
  return await WebAssembly.instantiateStreaming(module, imports);
329
346
 
330
347
  } catch (e) {
331
- if (module.headers.get('Content-Type') != 'application/wasm') {
348
+ const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
349
+
350
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
332
351
  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);
333
352
 
334
353
  } else {
@@ -355,19 +374,19 @@ async function __wbg_load(module, imports) {
355
374
  function __wbg_get_imports() {
356
375
  const imports = {};
357
376
  imports.wbg = {};
358
- imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
377
+ imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
359
378
  const ret = arg0.call(arg1);
360
379
  return ret;
361
380
  }, arguments) };
362
- imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
381
+ imports.wbg.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
363
382
  const ret = arg0.call(arg1, arg2);
364
383
  return ret;
365
384
  }, arguments) };
366
- imports.wbg.__wbg_debug_e17b51583ca6a632 = function(arg0, arg1, arg2, arg3) {
385
+ imports.wbg.__wbg_debug_7f3000e7358ea482 = function(arg0, arg1, arg2, arg3) {
367
386
  console.debug(arg0, arg1, arg2, arg3);
368
387
  };
369
- imports.wbg.__wbg_error_524f506f44df1645 = function(arg0) {
370
- console.error(arg0);
388
+ imports.wbg.__wbg_error_0889f151acea569e = function(arg0, arg1, arg2, arg3) {
389
+ console.error(arg0, arg1, arg2, arg3);
371
390
  };
372
391
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
373
392
  let deferred0_0;
@@ -380,25 +399,25 @@ function __wbg_get_imports() {
380
399
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
381
400
  }
382
401
  };
383
- imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
384
- console.error(arg0, arg1, arg2, arg3);
402
+ imports.wbg.__wbg_error_99981e16d476aa5c = function(arg0) {
403
+ console.error(arg0);
385
404
  };
386
- imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
405
+ imports.wbg.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
387
406
  const ret = arg0.fetch(arg1);
388
407
  return ret;
389
408
  };
390
- imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
409
+ imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
391
410
  const ret = Reflect.get(arg0, arg1);
392
411
  return ret;
393
412
  }, arguments) };
394
- imports.wbg.__wbg_headers_7852a8ea641c1379 = function(arg0) {
413
+ imports.wbg.__wbg_headers_af04c3eb495104ed = function(arg0) {
395
414
  const ret = arg0.headers;
396
415
  return ret;
397
416
  };
398
- imports.wbg.__wbg_info_033d8b8a0838f1d3 = function(arg0, arg1, arg2, arg3) {
417
+ imports.wbg.__wbg_info_15c3631232fceddb = function(arg0, arg1, arg2, arg3) {
399
418
  console.info(arg0, arg1, arg2, arg3);
400
419
  };
401
- imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
420
+ imports.wbg.__wbg_instanceof_Response_50fde2cd696850bf = function(arg0) {
402
421
  let result;
403
422
  try {
404
423
  result = arg0 instanceof Response;
@@ -408,17 +427,25 @@ function __wbg_get_imports() {
408
427
  const ret = result;
409
428
  return ret;
410
429
  };
411
- imports.wbg.__wbg_log_cad59bb680daec67 = function(arg0, arg1, arg2, arg3) {
430
+ imports.wbg.__wbg_log_ddbf5bc3d4dae44c = function(arg0, arg1, arg2, arg3) {
412
431
  console.log(arg0, arg1, arg2, arg3);
413
432
  };
414
- imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
433
+ imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() {
434
+ const ret = new Object();
435
+ return ret;
436
+ };
437
+ imports.wbg.__wbg_new_1f3a344cf3123716 = function() {
438
+ const ret = new Array();
439
+ return ret;
440
+ };
441
+ imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
415
442
  try {
416
443
  var state0 = {a: arg0, b: arg1};
417
444
  var cb0 = (arg0, arg1) => {
418
445
  const a = state0.a;
419
446
  state0.a = 0;
420
447
  try {
421
- return __wbg_adapter_98(a, state0.b, arg0, arg1);
448
+ return __wbg_adapter_84(a, state0.b, arg0, arg1);
422
449
  } finally {
423
450
  state0.a = a;
424
451
  }
@@ -429,74 +456,66 @@ function __wbg_get_imports() {
429
456
  state0.a = state0.b = 0;
430
457
  }
431
458
  };
432
- imports.wbg.__wbg_new_405e22f390576ce2 = function() {
433
- const ret = new Object();
434
- return ret;
435
- };
436
- imports.wbg.__wbg_new_78feb108b6472713 = function() {
437
- const ret = new Array();
438
- return ret;
439
- };
440
459
  imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
441
460
  const ret = new Error();
442
461
  return ret;
443
462
  };
444
- imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
463
+ imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
445
464
  const ret = new Function(getStringFromWasm0(arg0, arg1));
446
465
  return ret;
447
466
  };
448
- imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
467
+ imports.wbg.__wbg_newwithstrandinit_b5d168a29a3fd85f = function() { return handleError(function (arg0, arg1, arg2) {
449
468
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
450
469
  return ret;
451
470
  }, arguments) };
452
- imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
471
+ imports.wbg.__wbg_now_886b39d7ec380719 = function(arg0) {
453
472
  const ret = arg0.now();
454
473
  return ret;
455
474
  };
456
- imports.wbg.__wbg_ok_3aaf32d069979723 = function(arg0) {
475
+ imports.wbg.__wbg_ok_2eac216b65d90573 = function(arg0) {
457
476
  const ret = arg0.ok;
458
477
  return ret;
459
478
  };
460
- imports.wbg.__wbg_performance_704644393c4d3310 = function(arg0) {
479
+ imports.wbg.__wbg_performance_b1fe690813bd12a2 = function(arg0) {
461
480
  const ret = arg0.performance;
462
481
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
463
482
  };
464
- imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
483
+ imports.wbg.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
465
484
  const ret = arg0.push(arg1);
466
485
  return ret;
467
486
  };
468
- imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
487
+ imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
469
488
  queueMicrotask(arg0);
470
489
  };
471
- imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
490
+ imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
472
491
  const ret = arg0.queueMicrotask;
473
492
  return ret;
474
493
  };
475
- imports.wbg.__wbg_read_a2434af1186cb56c = function(arg0) {
494
+ imports.wbg.__wbg_read_bc925c758aa4d897 = function(arg0) {
476
495
  const ret = arg0.read();
477
496
  return ret;
478
497
  };
479
- imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
498
+ imports.wbg.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
480
499
  const ret = Promise.resolve(arg0);
481
500
  return ret;
482
501
  };
483
- imports.wbg.__wbg_set_11cd83f45504cedf = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
502
+ imports.wbg.__wbg_set_1c17f9738fac2718 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
484
503
  arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
485
504
  }, arguments) };
486
- imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
505
+ imports.wbg.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
487
506
  const ret = Reflect.set(arg0, arg1, arg2);
488
507
  return ret;
489
508
  }, arguments) };
490
- imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
509
+ imports.wbg.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
491
510
  arg0.body = arg1;
492
511
  };
493
- imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
512
+ imports.wbg.__wbg_setmethod_9b504d5b855b329c = function(arg0, arg1, arg2) {
494
513
  arg0.method = getStringFromWasm0(arg1, arg2);
495
514
  };
496
- imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
515
+ imports.wbg.__wbg_setmode_a23e1a2ad8b512f8 = function(arg0, arg1) {
497
516
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
498
517
  };
499
- imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
518
+ imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
500
519
  arg0.signal = arg1;
501
520
  };
502
521
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
@@ -506,58 +525,54 @@ function __wbg_get_imports() {
506
525
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
507
526
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
508
527
  };
509
- imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
528
+ imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
510
529
  const ret = typeof global === 'undefined' ? null : global;
511
530
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
512
531
  };
513
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
532
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
514
533
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
515
534
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
516
535
  };
517
- imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
536
+ imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
518
537
  const ret = typeof self === 'undefined' ? null : self;
519
538
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
520
539
  };
521
- imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
540
+ imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
522
541
  const ret = typeof window === 'undefined' ? null : window;
523
542
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
524
543
  };
525
- imports.wbg.__wbg_statusText_207754230b39e67c = function(arg0, arg1) {
544
+ imports.wbg.__wbg_statusText_c285fe96dbd990df = function(arg0, arg1) {
526
545
  const ret = arg1.statusText;
527
546
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
528
547
  const len1 = WASM_VECTOR_LEN;
529
548
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
530
549
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
531
550
  };
532
- imports.wbg.__wbg_text_7805bea50de2af49 = function() { return handleError(function (arg0) {
551
+ imports.wbg.__wbg_text_0f69a215637b9b34 = function() { return handleError(function (arg0) {
533
552
  const ret = arg0.text();
534
553
  return ret;
535
554
  }, arguments) };
536
- imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
537
- const ret = arg0.then(arg1);
555
+ imports.wbg.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
556
+ const ret = arg0.then(arg1, arg2);
538
557
  return ret;
539
558
  };
540
- imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
541
- const ret = arg0.then(arg1, arg2);
559
+ imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) {
560
+ const ret = arg0.then(arg1);
542
561
  return ret;
543
562
  };
544
- imports.wbg.__wbg_timeout_b622f4968ad3d733 = function(arg0) {
563
+ imports.wbg.__wbg_timeout_bb40af0cb18c62cf = function(arg0) {
545
564
  const ret = AbortSignal.timeout(arg0 >>> 0);
546
565
  return ret;
547
566
  };
548
- imports.wbg.__wbg_warn_aaf1f4664a035bd6 = function(arg0, arg1, arg2, arg3) {
567
+ imports.wbg.__wbg_warn_90eb15d986910fe9 = function(arg0, arg1, arg2, arg3) {
549
568
  console.warn(arg0, arg1, arg2, arg3);
550
569
  };
551
- imports.wbg.__wbg_write_311434e30ee214e5 = function(arg0, arg1) {
552
- const ret = arg0.write(arg1);
553
- return ret;
554
- };
555
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
570
+ imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
556
571
  const v = arg0;
557
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
558
- return ret;
572
+ const ret = typeof(v) === 'boolean' ? v : undefined;
573
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
559
574
  };
560
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
575
+ imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
561
576
  const obj = arg0.original;
562
577
  if (obj.cnt-- == 1) {
563
578
  obj.a = 0;
@@ -566,36 +581,22 @@ function __wbg_get_imports() {
566
581
  const ret = false;
567
582
  return ret;
568
583
  };
569
- imports.wbg.__wbindgen_closure_wrapper5891 = function(arg0, arg1, arg2) {
570
- const ret = makeMutClosure(arg0, arg1, 1369, __wbg_adapter_24);
571
- return ret;
572
- };
573
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
584
+ imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
574
585
  const ret = debugString(arg1);
575
586
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
576
587
  const len1 = WASM_VECTOR_LEN;
577
588
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
578
589
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
579
590
  };
580
- imports.wbg.__wbindgen_init_externref_table = function() {
581
- const table = wasm.__wbindgen_export_2;
582
- const offset = table.grow(4);
583
- table.set(0, undefined);
584
- table.set(offset + 0, undefined);
585
- table.set(offset + 1, null);
586
- table.set(offset + 2, true);
587
- table.set(offset + 3, false);
588
- ;
589
- };
590
- imports.wbg.__wbindgen_is_function = function(arg0) {
591
+ imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
591
592
  const ret = typeof(arg0) === 'function';
592
593
  return ret;
593
594
  };
594
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
595
+ imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
595
596
  const ret = arg0 === undefined;
596
597
  return ret;
597
598
  };
598
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
599
+ imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
599
600
  const obj = arg1;
600
601
  const ret = typeof(obj) === 'string' ? obj : undefined;
601
602
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -603,12 +604,32 @@ function __wbg_get_imports() {
603
604
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
604
605
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
605
606
  };
606
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
607
+ imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
608
+ throw new Error(getStringFromWasm0(arg0, arg1));
609
+ };
610
+ imports.wbg.__wbg_write_2e39e04a4c8c9e9d = function(arg0, arg1) {
611
+ const ret = arg0.write(arg1);
612
+ return ret;
613
+ };
614
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
615
+ // Cast intrinsic for `Ref(String) -> Externref`.
607
616
  const ret = getStringFromWasm0(arg0, arg1);
608
617
  return ret;
609
618
  };
610
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
611
- throw new Error(getStringFromWasm0(arg0, arg1));
619
+ imports.wbg.__wbindgen_cast_646f6bca41d52858 = function(arg0, arg1) {
620
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1372, function: Function { arguments: [Externref], shim_idx: 1383, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
621
+ const ret = makeMutClosure(arg0, arg1, 1372, __wbg_adapter_8);
622
+ return ret;
623
+ };
624
+ imports.wbg.__wbindgen_init_externref_table = function() {
625
+ const table = wasm.__wbindgen_export_2;
626
+ const offset = table.grow(4);
627
+ table.set(0, undefined);
628
+ table.set(offset + 0, undefined);
629
+ table.set(offset + 1, null);
630
+ table.set(offset + 2, true);
631
+ table.set(offset + 3, false);
632
+ ;
612
633
  };
613
634
 
614
635
  return imports;
package/qlue_ls_bg.wasm CHANGED
Binary file