cubing 0.53.11 → 0.53.12

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.
Files changed (39) hide show
  1. package/dist/lib/cubing/{TwizzleLink.d-Dl_V74VW.d.ts → TwizzleLink.d-BzfMIk_O.d.ts} +1 -1
  2. package/dist/lib/cubing/bluetooth/index.d.ts +4 -4
  3. package/dist/lib/cubing/{bluetooth-puzzle.d-9F8pLnkE.d.ts → bluetooth-puzzle.d-C-95fTCe.d.ts} +1 -1
  4. package/dist/lib/cubing/chunks/{chunk-Q7LVKWAU.js → chunk-4A5X67G6.js} +3 -5
  5. package/dist/lib/cubing/chunks/{chunk-Q7LVKWAU.js.map → chunk-4A5X67G6.js.map} +1 -1
  6. package/dist/lib/cubing/chunks/{chunk-RDSQRW3G.js → chunk-GOT3GVLG.js} +11 -1
  7. package/dist/lib/cubing/chunks/chunk-GOT3GVLG.js.map +7 -0
  8. package/dist/lib/cubing/chunks/{chunk-VXVRV477.js → chunk-YUHH4EXE.js} +3 -5
  9. package/dist/lib/cubing/chunks/{chunk-VXVRV477.js.map → chunk-YUHH4EXE.js.map} +1 -1
  10. package/dist/lib/cubing/chunks/{inside-QH4KBULV.js → inside-FE3UMYVY.js} +5 -6
  11. package/dist/lib/cubing/chunks/{inside-QH4KBULV.js.map → inside-FE3UMYVY.js.map} +1 -1
  12. package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-MCEJ4TLC.js → search-dynamic-solve-4x4x4-W5GCSX3J.js} +3 -4
  13. package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-MCEJ4TLC.js.map → search-dynamic-solve-4x4x4-W5GCSX3J.js.map} +1 -1
  14. package/dist/lib/cubing/chunks/search-worker-entry.js +3 -4
  15. package/dist/lib/cubing/chunks/search-worker-entry.js.map +1 -1
  16. package/dist/lib/cubing/chunks/{twsearch-P7UCZ2FN.js → twsearch-P5MOXX3O.js} +220 -227
  17. package/dist/lib/cubing/chunks/twsearch-P5MOXX3O.js.map +7 -0
  18. package/dist/lib/cubing/chunks/twsearch_wasm_bg-7OSYYTWX-SEPIFK5Y.js +15 -0
  19. package/dist/lib/cubing/chunks/twsearch_wasm_bg-7OSYYTWX-SEPIFK5Y.js.map +7 -0
  20. package/dist/lib/cubing/{index-BKODmlbd.d.ts → index-CB2Rc3zO.d.ts} +1 -1
  21. package/dist/lib/cubing/kpuzzle/index.d.ts +1 -1
  22. package/dist/lib/cubing/notation/index.d.ts +2 -2
  23. package/dist/lib/cubing/protocol/index.d.ts +1 -1
  24. package/dist/lib/cubing/puzzle-geometry/index.d.ts +2 -2
  25. package/dist/lib/cubing/puzzles/index.d.ts +2 -2
  26. package/dist/lib/cubing/scramble/index.d.ts +2 -2
  27. package/dist/lib/cubing/scramble/index.js +2 -3
  28. package/dist/lib/cubing/search/index.d.ts +2 -2
  29. package/dist/lib/cubing/search/index.js +2 -3
  30. package/dist/lib/cubing/stream/index.d.ts +3 -3
  31. package/dist/lib/cubing/twisty/index.d.ts +3 -3
  32. package/package.json +1 -1
  33. package/dist/lib/cubing/chunks/chunk-RDSQRW3G.js.map +0 -7
  34. package/dist/lib/cubing/chunks/chunk-YLS2ZYML.js +0 -13
  35. package/dist/lib/cubing/chunks/chunk-YLS2ZYML.js.map +0 -7
  36. package/dist/lib/cubing/chunks/twsearch-P7UCZ2FN.js.map +0 -7
  37. package/dist/lib/cubing/chunks/twsearch_wasm_bg-NVQDAG6T-4Q3NEW35.js +0 -15
  38. package/dist/lib/cubing/chunks/twsearch_wasm_bg-NVQDAG6T-4Q3NEW35.js.map +0 -7
  39. package/dist/lib/cubing/{index-DR8lwjeP.d.ts → KPattern.d-DdYwFXdd.d.ts} +103 -103
@@ -1,7 +1,4 @@
1
1
  import "./chunk-S6M5LVBU.js";
2
- import {
3
- getBuiltinModule
4
- } from "./chunk-YLS2ZYML.js";
5
2
  import {
6
3
  Alg
7
4
  } from "./chunk-2SBMIHZV.js";
@@ -14,6 +11,38 @@ function getObject(idx) {
14
11
  return heap[idx];
15
12
  }
16
13
  var heap_next = heap.length;
14
+ function addHeapObject(obj) {
15
+ if (heap_next === heap.length)
16
+ heap.push(heap.length + 1);
17
+ const idx = heap_next;
18
+ heap_next = heap[idx];
19
+ heap[idx] = obj;
20
+ return idx;
21
+ }
22
+ function handleError(f, args) {
23
+ try {
24
+ return f.apply(this, args);
25
+ } catch (e) {
26
+ wasm.__wbindgen_export_0(addHeapObject(e));
27
+ }
28
+ }
29
+ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
30
+ throw Error("TextDecoder not available");
31
+ } };
32
+ if (typeof TextDecoder !== "undefined") {
33
+ cachedTextDecoder.decode();
34
+ }
35
+ var cachedUint8ArrayMemory0 = null;
36
+ function getUint8ArrayMemory0() {
37
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
38
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
39
+ }
40
+ return cachedUint8ArrayMemory0;
41
+ }
42
+ function getStringFromWasm0(ptr, len) {
43
+ ptr = ptr >>> 0;
44
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
45
+ }
17
46
  function dropObject(idx) {
18
47
  if (idx < 132)
19
48
  return;
@@ -25,30 +54,60 @@ function takeObject(idx) {
25
54
  dropObject(idx);
26
55
  return ret;
27
56
  }
28
- var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
29
- throw Error("TextDecoder not available");
57
+ var WASM_VECTOR_LEN = 0;
58
+ var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
59
+ throw Error("TextEncoder not available");
30
60
  } };
31
- if (typeof TextDecoder !== "undefined") {
32
- cachedTextDecoder.decode();
33
- }
34
- var cachedUint8Memory0 = null;
35
- function getUint8Memory0() {
36
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
37
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
61
+ var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
62
+ return cachedTextEncoder.encodeInto(arg, view);
63
+ } : function(arg, view) {
64
+ const buf = cachedTextEncoder.encode(arg);
65
+ view.set(buf);
66
+ return {
67
+ read: arg.length,
68
+ written: buf.length
69
+ };
70
+ };
71
+ function passStringToWasm0(arg, malloc, realloc) {
72
+ if (realloc === void 0) {
73
+ const buf = cachedTextEncoder.encode(arg);
74
+ const ptr2 = malloc(buf.length, 1) >>> 0;
75
+ getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
76
+ WASM_VECTOR_LEN = buf.length;
77
+ return ptr2;
78
+ }
79
+ let len = arg.length;
80
+ let ptr = malloc(len, 1) >>> 0;
81
+ const mem = getUint8ArrayMemory0();
82
+ let offset = 0;
83
+ for (; offset < len; offset++) {
84
+ const code = arg.charCodeAt(offset);
85
+ if (code > 127)
86
+ break;
87
+ mem[ptr + offset] = code;
38
88
  }
39
- return cachedUint8Memory0;
89
+ if (offset !== len) {
90
+ if (offset !== 0) {
91
+ arg = arg.slice(offset);
92
+ }
93
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
94
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
95
+ const ret = encodeString(arg, view);
96
+ offset += ret.written;
97
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
98
+ }
99
+ WASM_VECTOR_LEN = offset;
100
+ return ptr;
40
101
  }
41
- function getStringFromWasm0(ptr, len) {
42
- ptr = ptr >>> 0;
43
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
102
+ var cachedDataViewMemory0 = null;
103
+ function getDataViewMemory0() {
104
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
105
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
106
+ }
107
+ return cachedDataViewMemory0;
44
108
  }
45
- function addHeapObject(obj) {
46
- if (heap_next === heap.length)
47
- heap.push(heap.length + 1);
48
- const idx = heap_next;
49
- heap_next = heap[idx];
50
- heap[idx] = obj;
51
- return idx;
109
+ function isLikeNone(x) {
110
+ return x === void 0 || x === null;
52
111
  }
53
112
  function debugString(val) {
54
113
  const type = typeof val;
@@ -88,7 +147,7 @@ function debugString(val) {
88
147
  }
89
148
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
90
149
  let className;
91
- if (builtInMatches.length > 1) {
150
+ if (builtInMatches && builtInMatches.length > 1) {
92
151
  className = builtInMatches[1];
93
152
  } else {
94
153
  return toString.call(val);
@@ -106,80 +165,22 @@ ${val.stack}`;
106
165
  }
107
166
  return className;
108
167
  }
109
- var WASM_VECTOR_LEN = 0;
110
- var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
111
- throw Error("TextEncoder not available");
112
- } };
113
- var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
114
- return cachedTextEncoder.encodeInto(arg, view);
115
- } : function(arg, view) {
116
- const buf = cachedTextEncoder.encode(arg);
117
- view.set(buf);
118
- return {
119
- read: arg.length,
120
- written: buf.length
121
- };
122
- };
123
- function passStringToWasm0(arg, malloc, realloc) {
124
- if (realloc === void 0) {
125
- const buf = cachedTextEncoder.encode(arg);
126
- const ptr2 = malloc(buf.length, 1) >>> 0;
127
- getUint8Memory0().subarray(ptr2, ptr2 + buf.length).set(buf);
128
- WASM_VECTOR_LEN = buf.length;
129
- return ptr2;
130
- }
131
- let len = arg.length;
132
- let ptr = malloc(len, 1) >>> 0;
133
- const mem = getUint8Memory0();
134
- let offset = 0;
135
- for (; offset < len; offset++) {
136
- const code = arg.charCodeAt(offset);
137
- if (code > 127)
138
- break;
139
- mem[ptr + offset] = code;
140
- }
141
- if (offset !== len) {
142
- if (offset !== 0) {
143
- arg = arg.slice(offset);
144
- }
145
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
146
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
147
- const ret = encodeString(arg, view);
148
- offset += ret.written;
149
- }
150
- WASM_VECTOR_LEN = offset;
151
- return ptr;
152
- }
153
- var cachedInt32Memory0 = null;
154
- function getInt32Memory0() {
155
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
156
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
157
- }
158
- return cachedInt32Memory0;
159
- }
160
- function handleError(f, args) {
161
- try {
162
- return f.apply(this, args);
163
- } catch (e) {
164
- wasm.__wbindgen_export_3(addHeapObject(e));
165
- }
166
- }
167
168
  function wasmTwsearch(kpuzzle_json, search_pattern_json, options_json) {
168
169
  let deferred5_0;
169
170
  let deferred5_1;
170
171
  try {
171
172
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
172
- const ptr0 = passStringToWasm0(kpuzzle_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
173
+ const ptr0 = passStringToWasm0(kpuzzle_json, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
173
174
  const len0 = WASM_VECTOR_LEN;
174
- const ptr1 = passStringToWasm0(search_pattern_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
175
+ const ptr1 = passStringToWasm0(search_pattern_json, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
175
176
  const len1 = WASM_VECTOR_LEN;
176
- const ptr2 = passStringToWasm0(options_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
177
+ const ptr2 = passStringToWasm0(options_json, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
177
178
  const len2 = WASM_VECTOR_LEN;
178
179
  wasm.wasmTwsearch(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
179
- var r0 = getInt32Memory0()[retptr / 4 + 0];
180
- var r1 = getInt32Memory0()[retptr / 4 + 1];
181
- var r2 = getInt32Memory0()[retptr / 4 + 2];
182
- var r3 = getInt32Memory0()[retptr / 4 + 3];
180
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
181
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
182
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
183
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
183
184
  var ptr4 = r0;
184
185
  var len4 = r1;
185
186
  if (r3) {
@@ -192,7 +193,7 @@ function wasmTwsearch(kpuzzle_json, search_pattern_json, options_json) {
192
193
  return getStringFromWasm0(ptr4, len4);
193
194
  } finally {
194
195
  wasm.__wbindgen_add_to_stack_pointer(16);
195
- wasm.__wbindgen_export_2(deferred5_0, deferred5_1, 1);
196
+ wasm.__wbindgen_export_1(deferred5_0, deferred5_1, 1);
196
197
  }
197
198
  }
198
199
  function wasmRandomScrambleForEvent(event_str) {
@@ -200,13 +201,13 @@ function wasmRandomScrambleForEvent(event_str) {
200
201
  let deferred3_1;
201
202
  try {
202
203
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
203
- const ptr0 = passStringToWasm0(event_str, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
204
+ const ptr0 = passStringToWasm0(event_str, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
204
205
  const len0 = WASM_VECTOR_LEN;
205
206
  wasm.wasmRandomScrambleForEvent(retptr, ptr0, len0);
206
- var r0 = getInt32Memory0()[retptr / 4 + 0];
207
- var r1 = getInt32Memory0()[retptr / 4 + 1];
208
- var r2 = getInt32Memory0()[retptr / 4 + 2];
209
- var r3 = getInt32Memory0()[retptr / 4 + 3];
207
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
208
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
209
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
210
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
210
211
  var ptr2 = r0;
211
212
  var len2 = r1;
212
213
  if (r3) {
@@ -219,7 +220,7 @@ function wasmRandomScrambleForEvent(event_str) {
219
220
  return getStringFromWasm0(ptr2, len2);
220
221
  } finally {
221
222
  wasm.__wbindgen_add_to_stack_pointer(16);
222
- wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
223
+ wasm.__wbindgen_export_1(deferred3_0, deferred3_1, 1);
223
224
  }
224
225
  }
225
226
  async function __wbg_load(module2, imports) {
@@ -229,7 +230,7 @@ async function __wbg_load(module2, imports) {
229
230
  return await WebAssembly.instantiateStreaming(module2, imports);
230
231
  } catch (e) {
231
232
  if (module2.headers.get("Content-Type") != "application/wasm") {
232
- 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
+ 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
234
  } else {
234
235
  throw e;
235
236
  }
@@ -249,18 +250,27 @@ async function __wbg_load(module2, imports) {
249
250
  function __wbg_get_imports() {
250
251
  const imports = {};
251
252
  imports.wbg = {};
252
- imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
253
- const ret = new Error();
253
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
254
+ const ret = getObject(arg0).buffer;
254
255
  return addHeapObject(ret);
255
256
  };
256
- imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
257
- const ret = getObject(arg1).stack;
258
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
259
- const len1 = WASM_VECTOR_LEN;
260
- getInt32Memory0()[arg0 / 4 + 1] = len1;
261
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
257
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
258
+ return handleError(function(arg0, arg1) {
259
+ const ret = getObject(arg0).call(getObject(arg1));
260
+ return addHeapObject(ret);
261
+ }, arguments);
262
262
  };
263
- imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
263
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
264
+ return handleError(function(arg0, arg1, arg2) {
265
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
266
+ return addHeapObject(ret);
267
+ }, arguments);
268
+ };
269
+ imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
270
+ const ret = getObject(arg0).crypto;
271
+ return addHeapObject(ret);
272
+ };
273
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
264
274
  let deferred0_0;
265
275
  let deferred0_1;
266
276
  try {
@@ -268,197 +278,180 @@ function __wbg_get_imports() {
268
278
  deferred0_1 = arg1;
269
279
  console.error(getStringFromWasm0(arg0, arg1));
270
280
  } finally {
271
- wasm.__wbindgen_export_2(deferred0_0, deferred0_1, 1);
281
+ wasm.__wbindgen_export_1(deferred0_0, deferred0_1, 1);
272
282
  }
273
283
  };
274
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
275
- takeObject(arg0);
276
- };
277
- imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
278
- const ret = getObject(arg0).crypto;
279
- return addHeapObject(ret);
284
+ imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() {
285
+ return handleError(function(arg0, arg1) {
286
+ getObject(arg0).getRandomValues(getObject(arg1));
287
+ }, arguments);
280
288
  };
281
- imports.wbg.__wbindgen_is_object = function(arg0) {
282
- const val = getObject(arg0);
283
- const ret = typeof val === "object" && val !== null;
284
- return ret;
289
+ imports.wbg.__wbg_get_67b2ba62fc30de12 = function() {
290
+ return handleError(function(arg0, arg1) {
291
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
292
+ return addHeapObject(ret);
293
+ }, arguments);
285
294
  };
286
- imports.wbg.__wbg_process_298734cf255a885d = function(arg0) {
287
- const ret = getObject(arg0).process;
295
+ imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
296
+ const ret = getObject(arg0).msCrypto;
288
297
  return addHeapObject(ret);
289
298
  };
290
- imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
291
- const ret = getObject(arg0).versions;
299
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
300
+ const ret = new Error();
292
301
  return addHeapObject(ret);
293
302
  };
294
- imports.wbg.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
295
- const ret = getObject(arg0).node;
303
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
304
+ const ret = new Uint8Array(getObject(arg0));
296
305
  return addHeapObject(ret);
297
306
  };
298
- imports.wbg.__wbindgen_is_string = function(arg0) {
299
- const ret = typeof getObject(arg0) === "string";
300
- return ret;
301
- };
302
- imports.wbg.__wbg_require_8f08ceecec0f4fee = function() {
303
- return handleError(function() {
304
- const ret = module.require;
305
- return addHeapObject(ret);
306
- }, arguments);
307
- };
308
- imports.wbg.__wbindgen_is_function = function(arg0) {
309
- const ret = typeof getObject(arg0) === "function";
310
- return ret;
311
- };
312
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
313
- const ret = getStringFromWasm0(arg0, arg1);
307
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
308
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
314
309
  return addHeapObject(ret);
315
310
  };
316
- imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
317
- const ret = getObject(arg0).msCrypto;
311
+ imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
312
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
318
313
  return addHeapObject(ret);
319
314
  };
320
- imports.wbg.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
315
+ imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
321
316
  const ret = new Uint8Array(arg0 >>> 0);
322
317
  return addHeapObject(ret);
323
318
  };
324
- imports.wbg.__wbg_get_97b561fb56f034b5 = function() {
325
- return handleError(function(arg0, arg1) {
326
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
327
- return addHeapObject(ret);
328
- }, arguments);
319
+ imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
320
+ const ret = getObject(arg0).node;
321
+ return addHeapObject(ret);
329
322
  };
330
- imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
323
+ imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
331
324
  const ret = getObject(arg0).now();
332
325
  return ret;
333
326
  };
334
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
335
- const ret = getObject(arg0);
327
+ imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
328
+ const ret = getObject(arg0).process;
336
329
  return addHeapObject(ret);
337
330
  };
338
- imports.wbg.__wbg_call_01734de55d61e11d = function() {
339
- return handleError(function(arg0, arg1, arg2) {
340
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
341
- return addHeapObject(ret);
331
+ imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() {
332
+ return handleError(function(arg0, arg1) {
333
+ getObject(arg0).randomFillSync(takeObject(arg1));
342
334
  }, arguments);
343
335
  };
344
- imports.wbg.__wbg_self_1ff1d729e9aae938 = function() {
336
+ imports.wbg.__wbg_require_79b1e9274cde3c87 = function() {
345
337
  return handleError(function() {
346
- const ret = self.self;
338
+ const ret = module.require;
347
339
  return addHeapObject(ret);
348
340
  }, arguments);
349
341
  };
350
- imports.wbg.__wbg_window_5f4faef6c12b79ec = function() {
351
- return handleError(function() {
352
- const ret = window.window;
353
- return addHeapObject(ret);
354
- }, arguments);
342
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
343
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
355
344
  };
356
- imports.wbg.__wbg_globalThis_1d39714405582d3c = function() {
357
- return handleError(function() {
358
- const ret = globalThis.globalThis;
359
- return addHeapObject(ret);
360
- }, arguments);
345
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
346
+ const ret = getObject(arg1).stack;
347
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
348
+ const len1 = WASM_VECTOR_LEN;
349
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
350
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
361
351
  };
362
- imports.wbg.__wbg_global_651f05c6a0944d1c = function() {
363
- return handleError(function() {
364
- const ret = global.global;
365
- return addHeapObject(ret);
366
- }, arguments);
352
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
353
+ const ret = typeof global === "undefined" ? null : global;
354
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
367
355
  };
368
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
369
- const ret = getObject(arg0) === void 0;
370
- return ret;
356
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
357
+ const ret = typeof globalThis === "undefined" ? null : globalThis;
358
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
371
359
  };
372
- imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
373
- const ret = new Function(getStringFromWasm0(arg0, arg1));
374
- return addHeapObject(ret);
360
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
361
+ const ret = typeof self === "undefined" ? null : self;
362
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
375
363
  };
376
- imports.wbg.__wbg_call_cb65541d95d71282 = function() {
377
- return handleError(function(arg0, arg1) {
378
- const ret = getObject(arg0).call(getObject(arg1));
379
- return addHeapObject(ret);
380
- }, arguments);
364
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
365
+ const ret = typeof window === "undefined" ? null : window;
366
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
381
367
  };
382
- imports.wbg.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
368
+ imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
383
369
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
384
370
  return addHeapObject(ret);
385
371
  };
386
- imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() {
387
- return handleError(function(arg0, arg1) {
388
- getObject(arg0).getRandomValues(getObject(arg1));
389
- }, arguments);
372
+ imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
373
+ const ret = getObject(arg0).versions;
374
+ return addHeapObject(ret);
375
+ };
376
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
377
+ const ret = debugString(getObject(arg1));
378
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
379
+ const len1 = WASM_VECTOR_LEN;
380
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
381
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
382
+ };
383
+ imports.wbg.__wbindgen_is_function = function(arg0) {
384
+ const ret = typeof getObject(arg0) === "function";
385
+ return ret;
386
+ };
387
+ imports.wbg.__wbindgen_is_object = function(arg0) {
388
+ const val = getObject(arg0);
389
+ const ret = typeof val === "object" && val !== null;
390
+ return ret;
391
+ };
392
+ imports.wbg.__wbindgen_is_string = function(arg0) {
393
+ const ret = typeof getObject(arg0) === "string";
394
+ return ret;
395
+ };
396
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
397
+ const ret = getObject(arg0) === void 0;
398
+ return ret;
390
399
  };
391
400
  imports.wbg.__wbindgen_memory = function() {
392
401
  const ret = wasm.memory;
393
402
  return addHeapObject(ret);
394
403
  };
395
- imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) {
396
- const ret = getObject(arg0).buffer;
397
- return addHeapObject(ret);
398
- };
399
- imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) {
400
- const ret = new Uint8Array(getObject(arg0));
404
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
405
+ const ret = getObject(arg0);
401
406
  return addHeapObject(ret);
402
407
  };
403
- imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
404
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
408
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
409
+ takeObject(arg0);
405
410
  };
406
- imports.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
407
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
411
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
412
+ const ret = getStringFromWasm0(arg0, arg1);
408
413
  return addHeapObject(ret);
409
414
  };
410
- imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() {
411
- return handleError(function(arg0, arg1) {
412
- getObject(arg0).randomFillSync(takeObject(arg1));
413
- }, arguments);
414
- };
415
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
416
- const ret = debugString(getObject(arg1));
417
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
418
- const len1 = WASM_VECTOR_LEN;
419
- getInt32Memory0()[arg0 / 4 + 1] = len1;
420
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
421
- };
422
415
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
423
416
  throw new Error(getStringFromWasm0(arg0, arg1));
424
417
  };
425
418
  return imports;
426
419
  }
427
- function __wbg_init_memory(imports, maybe_memory) {
420
+ function __wbg_init_memory(imports, memory) {
428
421
  }
429
422
  function __wbg_finalize_init(instance, module2) {
430
423
  wasm = instance.exports;
431
424
  __wbg_init.__wbindgen_wasm_module = module2;
432
- cachedInt32Memory0 = null;
433
- cachedUint8Memory0 = null;
425
+ cachedDataViewMemory0 = null;
426
+ cachedUint8ArrayMemory0 = null;
434
427
  return wasm;
435
428
  }
436
- async function __wbg_init(input) {
429
+ async function __wbg_init(module_or_path) {
437
430
  if (wasm !== void 0)
438
431
  return wasm;
439
- if (typeof input === "undefined") {
440
- throw new Error("Default `wasm-pack` WASM loading code path triggered! This is currently not supported for `twsearch` due to incompatibility with some bundlers.");
432
+ if (typeof module_or_path !== "undefined") {
433
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
434
+ ({ module_or_path } = module_or_path);
435
+ } else {
436
+ console.warn("using deprecated parameters for the initialization function; pass a single object instead");
437
+ }
438
+ }
439
+ if (typeof module_or_path === "undefined") {
440
+ module_or_path = new URL("twsearch_wasm_bg.wasm", import.meta.url);
441
441
  }
442
442
  const imports = __wbg_get_imports();
443
- if (typeof input === "string" || typeof Request === "function" && input instanceof Request || typeof URL === "function" && input instanceof URL) {
444
- try {
445
- input = await fetch(input);
446
- } catch (e) {
447
- if (!(e instanceof TypeError)) {
448
- throw e;
449
- }
450
- input = await (await getBuiltinModule("node:fs/promises")).readFile(input);
451
- }
443
+ if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
444
+ module_or_path = fetch(module_or_path);
452
445
  }
453
446
  __wbg_init_memory(imports);
454
- const { instance, module: module2 } = await __wbg_load(await input, imports);
447
+ const { instance, module: module2 } = await __wbg_load(await module_or_path, imports);
455
448
  return __wbg_finalize_init(instance, module2);
456
449
  }
457
450
  var twsearch_wasm_default = __wbg_init;
458
451
  var cachedInitWrapper;
459
452
  async function initWrapper() {
460
453
  await (cachedInitWrapper ??= (async () => {
461
- const wasmUint8Array = (await import("./twsearch_wasm_bg-NVQDAG6T-4Q3NEW35.js")).default;
454
+ const wasmUint8Array = (await import("./twsearch_wasm_bg-7OSYYTWX-SEPIFK5Y.js")).default;
462
455
  await twsearch_wasm_default(wasmUint8Array.buffer);
463
456
  })());
464
457
  }
@@ -480,4 +473,4 @@ export {
480
473
  wasmRandomScrambleForEvent2 as wasmRandomScrambleForEvent,
481
474
  wasmTwsearch2 as wasmTwsearch
482
475
  };
483
- //# sourceMappingURL=twsearch-P7UCZ2FN.js.map
476
+ //# sourceMappingURL=twsearch-P5MOXX3O.js.map