cubing 0.29.1 → 0.29.2
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 +1 -6
- package/dist/esm/alg/index.js +1 -1
- package/dist/esm/bluetooth/index.js +36 -31
- package/dist/esm/bluetooth/index.js.map +2 -2
- package/dist/esm/{chunk-NI7U4XAZ.js → chunk-7OIUETFU.js} +9 -8
- package/dist/esm/chunk-7OIUETFU.js.map +7 -0
- package/dist/esm/{chunk-XRZBPKES.js → chunk-EOEJDDXN.js} +95 -58
- package/dist/esm/chunk-EOEJDDXN.js.map +7 -0
- package/dist/esm/{chunk-WXCNEGW3.js → chunk-HR5D6SD4.js} +2 -2
- package/dist/esm/{chunk-WXCNEGW3.js.map → chunk-HR5D6SD4.js.map} +2 -2
- package/dist/esm/{chunk-XT3R2ENM.js → chunk-J5KJ2WWA.js} +35 -34
- package/dist/esm/chunk-J5KJ2WWA.js.map +7 -0
- package/dist/esm/{chunk-ZNAYJGVL.js → chunk-NUMCMGLU.js} +2 -2
- package/dist/esm/{chunk-ZNAYJGVL.js.map → chunk-NUMCMGLU.js.map} +0 -0
- package/dist/esm/{chunk-AHEXXC6V.js → chunk-OT7AIIFN.js} +4 -4
- package/dist/esm/chunk-OT7AIIFN.js.map +7 -0
- package/dist/esm/{chunk-XU5ILFX5.js → chunk-POCUG6QW.js} +6 -4
- package/dist/esm/{chunk-XU5ILFX5.js.map → chunk-POCUG6QW.js.map} +2 -2
- package/dist/esm/{chunk-OX6O2ZO5.js → chunk-QHWK5RXN.js} +1 -1
- package/dist/esm/chunk-QHWK5RXN.js.map +7 -0
- package/dist/esm/{chunk-GW4FGG42.js → chunk-RH4WZIGC.js} +2 -2
- package/dist/esm/{chunk-GW4FGG42.js.map → chunk-RH4WZIGC.js.map} +0 -0
- package/dist/esm/{chunk-2JDBIQSV.js → chunk-RIXFKOD6.js} +7 -7
- package/dist/esm/{chunk-2JDBIQSV.js.map → chunk-RIXFKOD6.js.map} +2 -2
- package/dist/esm/{chunk-2IZUSAXQ.js → chunk-WEYPAZEE.js} +1 -1
- package/dist/esm/{chunk-2IZUSAXQ.js.map → chunk-WEYPAZEE.js.map} +1 -1
- package/dist/esm/{chunk-WYKXX2XY.js → chunk-WNZXZ4MW.js} +10 -8
- package/dist/esm/{chunk-WYKXX2XY.js.map → chunk-WNZXZ4MW.js.map} +2 -2
- package/dist/esm/{chunk-U2ONHTIX.js → chunk-YD2TMJI2.js} +33 -31
- package/dist/esm/chunk-YD2TMJI2.js.map +7 -0
- package/dist/esm/kpuzzle/index.js +2 -2
- package/dist/esm/notation/index.js +2 -2
- package/dist/esm/protocol/index.js +4 -4
- package/dist/esm/puzzle-geometry/index.js +110 -84
- package/dist/esm/puzzle-geometry/index.js.map +2 -2
- package/dist/esm/puzzles/index.js +10 -6
- package/dist/esm/{puzzles-dynamic-side-events-5C7LMBWX.js → puzzles-dynamic-side-events-3K26JTOG.js} +2 -2
- package/dist/esm/{puzzles-dynamic-side-events-5C7LMBWX.js.map → puzzles-dynamic-side-events-3K26JTOG.js.map} +1 -1
- package/dist/esm/scramble/index.js +3 -3
- package/dist/esm/search/index.js +8 -8
- package/dist/esm/{search-dynamic-sgs-side-events-4H3X5HLH.js → search-dynamic-sgs-side-events-AE3TLLPA.js} +6 -6
- package/dist/esm/search-dynamic-sgs-side-events-AE3TLLPA.js.map +7 -0
- package/dist/esm/{search-dynamic-sgs-unofficial-7IRW4LVD.js → search-dynamic-sgs-unofficial-JUXMNMNO.js} +122 -67
- package/dist/esm/search-dynamic-sgs-unofficial-JUXMNMNO.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-3x3x3-7XZTYQMO.js → search-dynamic-solve-3x3x3-SA75BI5I.js} +649 -405
- package/dist/esm/search-dynamic-solve-3x3x3-SA75BI5I.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-4x4x4-7JTJCCSY.js → search-dynamic-solve-4x4x4-ALKH43DT.js} +399 -150
- package/dist/esm/search-dynamic-solve-4x4x4-ALKH43DT.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-fto-4LI23P6K.js → search-dynamic-solve-fto-5B5ZESQC.js} +74 -34
- package/dist/esm/search-dynamic-solve-fto-5B5ZESQC.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-kilominx-3HEVQ4MC.js → search-dynamic-solve-kilominx-OY4VIARG.js} +136 -71
- package/dist/esm/search-dynamic-solve-kilominx-OY4VIARG.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-master_tetraminx-UB32C7MM.js → search-dynamic-solve-master_tetraminx-GE2BTRGI.js} +84 -41
- package/dist/esm/search-dynamic-solve-master_tetraminx-GE2BTRGI.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-sq1-HA72TYF2.js → search-dynamic-solve-sq1-W6PSSLR6.js} +129 -54
- package/dist/esm/search-dynamic-solve-sq1-W6PSSLR6.js.map +7 -0
- package/dist/esm/{search-worker-inside-generated-string-ZEY77HTF.js → search-worker-inside-generated-string-7HYFSSPW.js} +28 -28
- package/dist/esm/search-worker-inside-generated-string-7HYFSSPW.js.map +7 -0
- package/dist/esm/{search-worker-js-entry-T6YIT7YD.js → search-worker-js-entry-SNUA3SOE.js} +44 -35
- package/dist/esm/search-worker-js-entry-SNUA3SOE.js.map +7 -0
- package/dist/esm/{search-worker-ts-entry-OUEC4L5I.js → search-worker-ts-entry-LNB7KNFY.js} +3 -3
- package/dist/esm/{search-worker-ts-entry-OUEC4L5I.js.map → search-worker-ts-entry-LNB7KNFY.js.map} +0 -0
- package/dist/esm/stream/index.js +1 -1
- package/dist/esm/stream/index.js.map +2 -2
- package/dist/esm/twisty/index.js +287 -273
- package/dist/esm/twisty/index.js.map +2 -2
- package/dist/esm/{twisty-dynamic-3d-AZUSXQ5S.js → twisty-dynamic-3d-PU74EKRA.js} +57 -59
- package/dist/esm/twisty-dynamic-3d-PU74EKRA.js.map +7 -0
- package/dist/types/{TwizzleLink-bef52ecd.d.ts → TwizzleLink-ce20e840.d.ts} +1 -1
- package/dist/types/puzzles/index.d.ts +5 -3
- package/dist/types/twisty/index.d.ts +2 -2
- package/package.json +51 -147
- package/dist/esm/chunk-AHEXXC6V.js.map +0 -7
- package/dist/esm/chunk-NI7U4XAZ.js.map +0 -7
- package/dist/esm/chunk-OX6O2ZO5.js.map +0 -7
- package/dist/esm/chunk-U2ONHTIX.js.map +0 -7
- package/dist/esm/chunk-XRZBPKES.js.map +0 -7
- package/dist/esm/chunk-XT3R2ENM.js.map +0 -7
- package/dist/esm/search-dynamic-sgs-side-events-4H3X5HLH.js.map +0 -7
- package/dist/esm/search-dynamic-sgs-unofficial-7IRW4LVD.js.map +0 -7
- package/dist/esm/search-dynamic-solve-3x3x3-7XZTYQMO.js.map +0 -7
- package/dist/esm/search-dynamic-solve-4x4x4-7JTJCCSY.js.map +0 -7
- package/dist/esm/search-dynamic-solve-fto-4LI23P6K.js.map +0 -7
- package/dist/esm/search-dynamic-solve-kilominx-3HEVQ4MC.js.map +0 -7
- package/dist/esm/search-dynamic-solve-master_tetraminx-UB32C7MM.js.map +0 -7
- package/dist/esm/search-dynamic-solve-sq1-HA72TYF2.js.map +0 -7
- package/dist/esm/search-worker-inside-generated-string-ZEY77HTF.js.map +0 -7
- package/dist/esm/search-worker-js-entry-T6YIT7YD.js.map +0 -7
- package/dist/esm/twisty-dynamic-3d-AZUSXQ5S.js.map +0 -7
package/dist/esm/{search-dynamic-solve-4x4x4-7JTJCCSY.js → search-dynamic-solve-4x4x4-ALKH43DT.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mustBeInsideWorker,
|
|
3
3
|
random333Scramble
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-WNZXZ4MW.js";
|
|
5
|
+
import "./chunk-QHWK5RXN.js";
|
|
6
|
+
import "./chunk-EOEJDDXN.js";
|
|
7
|
+
import "./chunk-YD2TMJI2.js";
|
|
8
|
+
import "./chunk-POCUG6QW.js";
|
|
9
9
|
import {
|
|
10
10
|
randomUIntBelowFactory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HR5D6SD4.js";
|
|
12
12
|
import {
|
|
13
13
|
Alg
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7OIUETFU.js";
|
|
15
15
|
import "./chunk-SBZRVSPK.js";
|
|
16
16
|
|
|
17
17
|
// src/cubing/vendor/cstimer/src/js/lib/mathlib.ts
|
|
@@ -31,7 +31,8 @@ for (let i = 0; i < 32; ++i) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
function circle(arr, ...moreArgs) {
|
|
34
|
-
const length = moreArgs.length
|
|
34
|
+
const length = moreArgs.length;
|
|
35
|
+
const temp = arr[moreArgs[length - 1]];
|
|
35
36
|
for (let i = length; i > 0; i--) {
|
|
36
37
|
arr[moreArgs[i]] = arr[moreArgs[i - 1]];
|
|
37
38
|
}
|
|
@@ -174,7 +175,8 @@ function $clinit_Array$ExpandoWrapper() {
|
|
|
174
175
|
initExpandos(new Array_0(), expandoNames_0, expandoValues_0);
|
|
175
176
|
}
|
|
176
177
|
function initExpandos(protoType, expandoNames, expandoValues) {
|
|
177
|
-
let i_0 = 0
|
|
178
|
+
let i_0 = 0;
|
|
179
|
+
let value;
|
|
178
180
|
for (const name_0 in protoType) {
|
|
179
181
|
if (value = protoType[name_0]) {
|
|
180
182
|
expandoNames[i_0] = name_0;
|
|
@@ -215,7 +217,8 @@ function $$init_1(this$static) {
|
|
|
215
217
|
this$static.ct = createArray(24);
|
|
216
218
|
}
|
|
217
219
|
function $equals(this$static, obj) {
|
|
218
|
-
let c
|
|
220
|
+
let c;
|
|
221
|
+
let i_0;
|
|
219
222
|
if (instanceOf(obj, Q$Center1)) {
|
|
220
223
|
c = obj;
|
|
221
224
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
@@ -228,7 +231,9 @@ function $equals(this$static, obj) {
|
|
|
228
231
|
return false;
|
|
229
232
|
}
|
|
230
233
|
function $get_1(this$static) {
|
|
231
|
-
let i_0
|
|
234
|
+
let i_0;
|
|
235
|
+
let idx;
|
|
236
|
+
let r;
|
|
232
237
|
idx = 0;
|
|
233
238
|
r = 8;
|
|
234
239
|
for (i_0 = 23; i_0 >= 0; --i_0) {
|
|
@@ -237,7 +242,8 @@ function $get_1(this$static) {
|
|
|
237
242
|
return idx;
|
|
238
243
|
}
|
|
239
244
|
function $getsym(this$static) {
|
|
240
|
-
let cord
|
|
245
|
+
let cord;
|
|
246
|
+
let j;
|
|
241
247
|
if (raw2sym !== null) {
|
|
242
248
|
return raw2sym[$get_1(this$static)];
|
|
243
249
|
}
|
|
@@ -256,66 +262,80 @@ function $move(this$static, m_0) {
|
|
|
256
262
|
const key = m_0 % 3;
|
|
257
263
|
m_0 = ~~(m_0 / 3);
|
|
258
264
|
switch (m_0) {
|
|
259
|
-
case 0:
|
|
265
|
+
case 0: {
|
|
260
266
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
261
267
|
break;
|
|
262
|
-
|
|
268
|
+
}
|
|
269
|
+
case 1: {
|
|
263
270
|
swap(this$static.ct, 16, 17, 18, 19, key);
|
|
264
271
|
break;
|
|
265
|
-
|
|
272
|
+
}
|
|
273
|
+
case 2: {
|
|
266
274
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
267
275
|
break;
|
|
268
|
-
|
|
276
|
+
}
|
|
277
|
+
case 3: {
|
|
269
278
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
270
279
|
break;
|
|
271
|
-
|
|
280
|
+
}
|
|
281
|
+
case 4: {
|
|
272
282
|
swap(this$static.ct, 20, 21, 22, 23, key);
|
|
273
283
|
break;
|
|
274
|
-
|
|
284
|
+
}
|
|
285
|
+
case 5: {
|
|
275
286
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
276
287
|
break;
|
|
277
|
-
|
|
288
|
+
}
|
|
289
|
+
case 6: {
|
|
278
290
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
279
291
|
swap(this$static.ct, 8, 20, 12, 16, key);
|
|
280
292
|
swap(this$static.ct, 9, 21, 13, 17, key);
|
|
281
293
|
break;
|
|
282
|
-
|
|
294
|
+
}
|
|
295
|
+
case 7: {
|
|
283
296
|
swap(this$static.ct, 16, 17, 18, 19, key);
|
|
284
297
|
swap(this$static.ct, 1, 15, 5, 9, key);
|
|
285
298
|
swap(this$static.ct, 2, 12, 6, 10, key);
|
|
286
299
|
break;
|
|
287
|
-
|
|
300
|
+
}
|
|
301
|
+
case 8: {
|
|
288
302
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
289
303
|
swap(this$static.ct, 2, 19, 4, 21, key);
|
|
290
304
|
swap(this$static.ct, 3, 16, 5, 22, key);
|
|
291
305
|
break;
|
|
292
|
-
|
|
306
|
+
}
|
|
307
|
+
case 9: {
|
|
293
308
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
294
309
|
swap(this$static.ct, 10, 18, 14, 22, key);
|
|
295
310
|
swap(this$static.ct, 11, 19, 15, 23, key);
|
|
296
311
|
break;
|
|
297
|
-
|
|
312
|
+
}
|
|
313
|
+
case 10: {
|
|
298
314
|
swap(this$static.ct, 20, 21, 22, 23, key);
|
|
299
315
|
swap(this$static.ct, 0, 8, 4, 14, key);
|
|
300
316
|
swap(this$static.ct, 3, 11, 7, 13, key);
|
|
301
317
|
break;
|
|
302
|
-
|
|
318
|
+
}
|
|
319
|
+
case 11: {
|
|
303
320
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
304
321
|
swap(this$static.ct, 1, 20, 7, 18, key);
|
|
305
322
|
swap(this$static.ct, 0, 23, 6, 17, key);
|
|
323
|
+
}
|
|
306
324
|
}
|
|
307
325
|
}
|
|
308
326
|
function $rot(this$static, r) {
|
|
309
327
|
switch (r) {
|
|
310
|
-
case 0:
|
|
328
|
+
case 0: {
|
|
311
329
|
$move(this$static, 19);
|
|
312
330
|
$move(this$static, 28);
|
|
313
331
|
break;
|
|
314
|
-
|
|
332
|
+
}
|
|
333
|
+
case 1: {
|
|
315
334
|
$move(this$static, 21);
|
|
316
335
|
$move(this$static, 32);
|
|
317
336
|
break;
|
|
318
|
-
|
|
337
|
+
}
|
|
338
|
+
case 2: {
|
|
319
339
|
swap(this$static.ct, 0, 3, 1, 2, 1);
|
|
320
340
|
swap(this$static.ct, 8, 11, 9, 10, 1);
|
|
321
341
|
swap(this$static.ct, 4, 7, 5, 6, 1);
|
|
@@ -323,11 +343,13 @@ function $rot(this$static, r) {
|
|
|
323
343
|
swap(this$static.ct, 16, 19, 21, 22, 1);
|
|
324
344
|
swap(this$static.ct, 17, 18, 20, 23, 1);
|
|
325
345
|
break;
|
|
326
|
-
|
|
346
|
+
}
|
|
347
|
+
case 3: {
|
|
327
348
|
$move(this$static, 18);
|
|
328
349
|
$move(this$static, 29);
|
|
329
350
|
$move(this$static, 24);
|
|
330
351
|
$move(this$static, 35);
|
|
352
|
+
}
|
|
331
353
|
}
|
|
332
354
|
}
|
|
333
355
|
function $rotate(this$static, r) {
|
|
@@ -340,7 +362,8 @@ function $rotate(this$static, r) {
|
|
|
340
362
|
}
|
|
341
363
|
}
|
|
342
364
|
function $set_0(this$static, idx) {
|
|
343
|
-
let i_0
|
|
365
|
+
let i_0;
|
|
366
|
+
let r;
|
|
344
367
|
r = 8;
|
|
345
368
|
for (i_0 = 23; i_0 >= 0; --i_0) {
|
|
346
369
|
this$static.ct[i_0] = 0;
|
|
@@ -381,7 +404,8 @@ function Center1_2(ct) {
|
|
|
381
404
|
}
|
|
382
405
|
}
|
|
383
406
|
function createMoveTable() {
|
|
384
|
-
let i_0
|
|
407
|
+
let i_0;
|
|
408
|
+
let m_0;
|
|
385
409
|
const c = new Center1_0();
|
|
386
410
|
const d = new Center1_0();
|
|
387
411
|
for (i_0 = 0; i_0 < 15582; ++i_0) {
|
|
@@ -394,7 +418,14 @@ function createMoveTable() {
|
|
|
394
418
|
}
|
|
395
419
|
}
|
|
396
420
|
function createPrun() {
|
|
397
|
-
let check
|
|
421
|
+
let check;
|
|
422
|
+
let depth;
|
|
423
|
+
let done;
|
|
424
|
+
let i_0;
|
|
425
|
+
let idx;
|
|
426
|
+
let inv;
|
|
427
|
+
let m_0;
|
|
428
|
+
let select;
|
|
398
429
|
fill_0(csprun);
|
|
399
430
|
csprun[0] = 0;
|
|
400
431
|
depth = 0;
|
|
@@ -425,7 +456,9 @@ function createPrun() {
|
|
|
425
456
|
}
|
|
426
457
|
}
|
|
427
458
|
function getSolvedSym(cube) {
|
|
428
|
-
let check
|
|
459
|
+
let check;
|
|
460
|
+
let i_0;
|
|
461
|
+
let j;
|
|
429
462
|
const c = new Center1_2(cube.ct);
|
|
430
463
|
for (j = 0; j < 48; ++j) {
|
|
431
464
|
check = true;
|
|
@@ -446,7 +479,9 @@ function getSolvedSym(cube) {
|
|
|
446
479
|
return -1;
|
|
447
480
|
}
|
|
448
481
|
function initSym_0() {
|
|
449
|
-
let i_0
|
|
482
|
+
let i_0;
|
|
483
|
+
let j;
|
|
484
|
+
let k_0;
|
|
450
485
|
const c = new Center1_0();
|
|
451
486
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
452
487
|
c.ct[i_0] = i_0;
|
|
@@ -503,7 +538,10 @@ function initSym_0() {
|
|
|
503
538
|
}
|
|
504
539
|
}
|
|
505
540
|
function initSym2Raw() {
|
|
506
|
-
let count
|
|
541
|
+
let count;
|
|
542
|
+
let i_0;
|
|
543
|
+
let idx;
|
|
544
|
+
let j;
|
|
507
545
|
const c = new Center1_0();
|
|
508
546
|
const occ = createArray(22984);
|
|
509
547
|
for (i_0 = 0; i_0 < 22984; i_0++) {
|
|
@@ -590,7 +628,9 @@ function $clinit_Center2() {
|
|
|
590
628
|
];
|
|
591
629
|
}
|
|
592
630
|
function $getct(this$static) {
|
|
593
|
-
let i_0
|
|
631
|
+
let i_0;
|
|
632
|
+
let idx;
|
|
633
|
+
let r;
|
|
594
634
|
idx = 0;
|
|
595
635
|
r = 8;
|
|
596
636
|
for (i_0 = 14; i_0 >= 0; --i_0) {
|
|
@@ -599,7 +639,9 @@ function $getct(this$static) {
|
|
|
599
639
|
return idx;
|
|
600
640
|
}
|
|
601
641
|
function $getrl(this$static) {
|
|
602
|
-
let i_0
|
|
642
|
+
let i_0;
|
|
643
|
+
let idx;
|
|
644
|
+
let r;
|
|
603
645
|
idx = 0;
|
|
604
646
|
r = 4;
|
|
605
647
|
for (i_0 = 6; i_0 >= 0; --i_0) {
|
|
@@ -612,72 +654,87 @@ function $move_0(this$static, m_0) {
|
|
|
612
654
|
const key = m_0 % 3;
|
|
613
655
|
m_0 = ~~(m_0 / 3);
|
|
614
656
|
switch (m_0) {
|
|
615
|
-
case 0:
|
|
657
|
+
case 0: {
|
|
616
658
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
617
659
|
break;
|
|
618
|
-
|
|
660
|
+
}
|
|
661
|
+
case 1: {
|
|
619
662
|
swap(this$static.rl, 0, 1, 2, 3, key);
|
|
620
663
|
break;
|
|
621
|
-
|
|
664
|
+
}
|
|
665
|
+
case 2: {
|
|
622
666
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
623
667
|
break;
|
|
624
|
-
|
|
668
|
+
}
|
|
669
|
+
case 3: {
|
|
625
670
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
626
671
|
break;
|
|
627
|
-
|
|
672
|
+
}
|
|
673
|
+
case 4: {
|
|
628
674
|
swap(this$static.rl, 4, 5, 6, 7, key);
|
|
629
675
|
break;
|
|
630
|
-
|
|
676
|
+
}
|
|
677
|
+
case 5: {
|
|
631
678
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
632
679
|
break;
|
|
633
|
-
|
|
680
|
+
}
|
|
681
|
+
case 6: {
|
|
634
682
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
635
683
|
swap(this$static.rl, 0, 5, 4, 1, key);
|
|
636
684
|
swap(this$static.ct, 8, 9, 12, 13, key);
|
|
637
685
|
break;
|
|
638
|
-
|
|
686
|
+
}
|
|
687
|
+
case 7: {
|
|
639
688
|
swap(this$static.rl, 0, 1, 2, 3, key);
|
|
640
689
|
swap(this$static.ct, 1, 15, 5, 9, key);
|
|
641
690
|
swap(this$static.ct, 2, 12, 6, 10, key);
|
|
642
691
|
break;
|
|
643
|
-
|
|
692
|
+
}
|
|
693
|
+
case 8: {
|
|
644
694
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
645
695
|
swap(this$static.rl, 0, 3, 6, 5, key);
|
|
646
696
|
swap(this$static.ct, 3, 2, 5, 4, key);
|
|
647
697
|
break;
|
|
648
|
-
|
|
698
|
+
}
|
|
699
|
+
case 9: {
|
|
649
700
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
650
701
|
swap(this$static.rl, 3, 2, 7, 6, key);
|
|
651
702
|
swap(this$static.ct, 11, 10, 15, 14, key);
|
|
652
703
|
break;
|
|
653
|
-
|
|
704
|
+
}
|
|
705
|
+
case 10: {
|
|
654
706
|
swap(this$static.rl, 4, 5, 6, 7, key);
|
|
655
707
|
swap(this$static.ct, 0, 8, 4, 14, key);
|
|
656
708
|
swap(this$static.ct, 3, 11, 7, 13, key);
|
|
657
709
|
break;
|
|
658
|
-
|
|
710
|
+
}
|
|
711
|
+
case 11: {
|
|
659
712
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
660
713
|
swap(this$static.rl, 1, 4, 7, 2, key);
|
|
661
714
|
swap(this$static.ct, 1, 0, 7, 6, key);
|
|
715
|
+
}
|
|
662
716
|
}
|
|
663
717
|
}
|
|
664
718
|
function $rot_0(this$static, r) {
|
|
665
719
|
switch (r) {
|
|
666
|
-
case 0:
|
|
720
|
+
case 0: {
|
|
667
721
|
$move_0(this$static, 19);
|
|
668
722
|
$move_0(this$static, 28);
|
|
669
723
|
break;
|
|
670
|
-
|
|
724
|
+
}
|
|
725
|
+
case 1: {
|
|
671
726
|
$move_0(this$static, 21);
|
|
672
727
|
$move_0(this$static, 32);
|
|
673
728
|
break;
|
|
674
|
-
|
|
729
|
+
}
|
|
730
|
+
case 2: {
|
|
675
731
|
swap(this$static.ct, 0, 3, 1, 2, 1);
|
|
676
732
|
swap(this$static.ct, 8, 11, 9, 10, 1);
|
|
677
733
|
swap(this$static.ct, 4, 7, 5, 6, 1);
|
|
678
734
|
swap(this$static.ct, 12, 15, 13, 14, 1);
|
|
679
735
|
swap(this$static.rl, 0, 3, 5, 6, 1);
|
|
680
736
|
swap(this$static.rl, 1, 2, 4, 7, 1);
|
|
737
|
+
}
|
|
681
738
|
}
|
|
682
739
|
}
|
|
683
740
|
function $set_2(this$static, c, edgeParity) {
|
|
@@ -691,7 +748,8 @@ function $set_2(this$static, c, edgeParity) {
|
|
|
691
748
|
this$static.parity = edgeParity;
|
|
692
749
|
}
|
|
693
750
|
function $setct(this$static, idx) {
|
|
694
|
-
let i_0
|
|
751
|
+
let i_0;
|
|
752
|
+
let r;
|
|
695
753
|
r = 8;
|
|
696
754
|
this$static.ct[15] = 0;
|
|
697
755
|
for (i_0 = 14; i_0 >= 0; --i_0) {
|
|
@@ -704,7 +762,8 @@ function $setct(this$static, idx) {
|
|
|
704
762
|
}
|
|
705
763
|
}
|
|
706
764
|
function $setrl(this$static, idx) {
|
|
707
|
-
let i_0
|
|
765
|
+
let i_0;
|
|
766
|
+
let r;
|
|
708
767
|
this$static.parity = idx & 1;
|
|
709
768
|
idx >>>= 1;
|
|
710
769
|
r = 4;
|
|
@@ -723,7 +782,16 @@ function Center2_0() {
|
|
|
723
782
|
this.ct = createArray(16);
|
|
724
783
|
}
|
|
725
784
|
function init_3() {
|
|
726
|
-
let ct
|
|
785
|
+
let ct;
|
|
786
|
+
let ctx;
|
|
787
|
+
let depth;
|
|
788
|
+
let done;
|
|
789
|
+
let i_0;
|
|
790
|
+
let idx;
|
|
791
|
+
let j;
|
|
792
|
+
let m_0;
|
|
793
|
+
let rl;
|
|
794
|
+
let rlx;
|
|
727
795
|
const c = new Center2_0();
|
|
728
796
|
for (i_0 = 0; i_0 < 70; ++i_0) {
|
|
729
797
|
for (m_0 = 0; m_0 < 28; ++m_0) {
|
|
@@ -811,7 +879,10 @@ function $clinit_Center3() {
|
|
|
811
879
|
std2rl = createArray(70);
|
|
812
880
|
}
|
|
813
881
|
function $getct_0(this$static) {
|
|
814
|
-
let i_0
|
|
882
|
+
let i_0;
|
|
883
|
+
let idx;
|
|
884
|
+
let idxrl;
|
|
885
|
+
let r;
|
|
815
886
|
idx = 0;
|
|
816
887
|
r = 4;
|
|
817
888
|
for (i_0 = 6; i_0 >= 0; --i_0) {
|
|
@@ -836,59 +907,71 @@ function $move_1(this$static, i_0) {
|
|
|
836
907
|
switch (i_0) {
|
|
837
908
|
case 0:
|
|
838
909
|
case 1:
|
|
839
|
-
case 2:
|
|
910
|
+
case 2: {
|
|
840
911
|
swap(this$static.ud, 0, 1, 2, 3, i_0 % 3);
|
|
841
912
|
break;
|
|
842
|
-
|
|
913
|
+
}
|
|
914
|
+
case 3: {
|
|
843
915
|
swap(this$static.rl, 0, 1, 2, 3, 1);
|
|
844
916
|
break;
|
|
917
|
+
}
|
|
845
918
|
case 4:
|
|
846
919
|
case 5:
|
|
847
|
-
case 6:
|
|
920
|
+
case 6: {
|
|
848
921
|
swap(this$static.fb, 0, 1, 2, 3, (i_0 - 1) % 3);
|
|
849
922
|
break;
|
|
923
|
+
}
|
|
850
924
|
case 7:
|
|
851
925
|
case 8:
|
|
852
|
-
case 9:
|
|
926
|
+
case 9: {
|
|
853
927
|
swap(this$static.ud, 4, 5, 6, 7, (i_0 - 1) % 3);
|
|
854
928
|
break;
|
|
855
|
-
|
|
929
|
+
}
|
|
930
|
+
case 10: {
|
|
856
931
|
swap(this$static.rl, 4, 5, 6, 7, 1);
|
|
857
932
|
break;
|
|
933
|
+
}
|
|
858
934
|
case 11:
|
|
859
935
|
case 12:
|
|
860
|
-
case 13:
|
|
936
|
+
case 13: {
|
|
861
937
|
swap(this$static.fb, 4, 5, 6, 7, (i_0 + 1) % 3);
|
|
862
938
|
break;
|
|
863
|
-
|
|
939
|
+
}
|
|
940
|
+
case 14: {
|
|
864
941
|
swap(this$static.ud, 0, 1, 2, 3, 1);
|
|
865
942
|
swap(this$static.rl, 0, 5, 4, 1, 1);
|
|
866
943
|
swap(this$static.fb, 0, 5, 4, 1, 1);
|
|
867
944
|
break;
|
|
868
|
-
|
|
945
|
+
}
|
|
946
|
+
case 15: {
|
|
869
947
|
swap(this$static.rl, 0, 1, 2, 3, 1);
|
|
870
948
|
swap(this$static.fb, 1, 4, 7, 2, 1);
|
|
871
949
|
swap(this$static.ud, 1, 6, 5, 2, 1);
|
|
872
950
|
break;
|
|
873
|
-
|
|
951
|
+
}
|
|
952
|
+
case 16: {
|
|
874
953
|
swap(this$static.fb, 0, 1, 2, 3, 1);
|
|
875
954
|
swap(this$static.ud, 3, 2, 5, 4, 1);
|
|
876
955
|
swap(this$static.rl, 0, 3, 6, 5, 1);
|
|
877
956
|
break;
|
|
878
|
-
|
|
957
|
+
}
|
|
958
|
+
case 17: {
|
|
879
959
|
swap(this$static.ud, 4, 5, 6, 7, 1);
|
|
880
960
|
swap(this$static.rl, 3, 2, 7, 6, 1);
|
|
881
961
|
swap(this$static.fb, 3, 2, 7, 6, 1);
|
|
882
962
|
break;
|
|
883
|
-
|
|
963
|
+
}
|
|
964
|
+
case 18: {
|
|
884
965
|
swap(this$static.rl, 4, 5, 6, 7, 1);
|
|
885
966
|
swap(this$static.fb, 0, 3, 6, 5, 1);
|
|
886
967
|
swap(this$static.ud, 0, 3, 4, 7, 1);
|
|
887
968
|
break;
|
|
888
|
-
|
|
969
|
+
}
|
|
970
|
+
case 19: {
|
|
889
971
|
swap(this$static.fb, 4, 5, 6, 7, 1);
|
|
890
972
|
swap(this$static.ud, 0, 7, 6, 1, 1);
|
|
891
973
|
swap(this$static.rl, 1, 4, 7, 2, 1);
|
|
974
|
+
}
|
|
892
975
|
}
|
|
893
976
|
}
|
|
894
977
|
function $set_3(this$static, c, eXc_parity) {
|
|
@@ -902,7 +985,10 @@ function $set_3(this$static, c, eXc_parity) {
|
|
|
902
985
|
this$static.parity = parity ^ eXc_parity;
|
|
903
986
|
}
|
|
904
987
|
function $setct_0(this$static, idx) {
|
|
905
|
-
let i_0
|
|
988
|
+
let i_0;
|
|
989
|
+
let idxfb;
|
|
990
|
+
let idxrl;
|
|
991
|
+
let r;
|
|
906
992
|
this$static.parity = idx & 1;
|
|
907
993
|
idx >>>= 1;
|
|
908
994
|
idxrl = rl2std[idx % 12];
|
|
@@ -944,7 +1030,10 @@ function Center3_0() {
|
|
|
944
1030
|
this.fb = createArray(8);
|
|
945
1031
|
}
|
|
946
1032
|
function init_4() {
|
|
947
|
-
let depth
|
|
1033
|
+
let depth;
|
|
1034
|
+
let done;
|
|
1035
|
+
let i_0;
|
|
1036
|
+
let m_0;
|
|
948
1037
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
949
1038
|
std2rl[rl2std[i_0]] = i_0;
|
|
950
1039
|
}
|
|
@@ -992,53 +1081,65 @@ function $move_2(this$static, m_0) {
|
|
|
992
1081
|
const key = m_0 % 3;
|
|
993
1082
|
m_0 = ~~(m_0 / 3);
|
|
994
1083
|
switch (m_0) {
|
|
995
|
-
case 0:
|
|
1084
|
+
case 0: {
|
|
996
1085
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
997
1086
|
break;
|
|
998
|
-
|
|
1087
|
+
}
|
|
1088
|
+
case 1: {
|
|
999
1089
|
swap(this$static.ct, 16, 17, 18, 19, key);
|
|
1000
1090
|
break;
|
|
1001
|
-
|
|
1091
|
+
}
|
|
1092
|
+
case 2: {
|
|
1002
1093
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
1003
1094
|
break;
|
|
1004
|
-
|
|
1095
|
+
}
|
|
1096
|
+
case 3: {
|
|
1005
1097
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
1006
1098
|
break;
|
|
1007
|
-
|
|
1099
|
+
}
|
|
1100
|
+
case 4: {
|
|
1008
1101
|
swap(this$static.ct, 20, 21, 22, 23, key);
|
|
1009
1102
|
break;
|
|
1010
|
-
|
|
1103
|
+
}
|
|
1104
|
+
case 5: {
|
|
1011
1105
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
1012
1106
|
break;
|
|
1013
|
-
|
|
1107
|
+
}
|
|
1108
|
+
case 6: {
|
|
1014
1109
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
1015
1110
|
swap(this$static.ct, 8, 20, 12, 16, key);
|
|
1016
1111
|
swap(this$static.ct, 9, 21, 13, 17, key);
|
|
1017
1112
|
break;
|
|
1018
|
-
|
|
1113
|
+
}
|
|
1114
|
+
case 7: {
|
|
1019
1115
|
swap(this$static.ct, 16, 17, 18, 19, key);
|
|
1020
1116
|
swap(this$static.ct, 1, 15, 5, 9, key);
|
|
1021
1117
|
swap(this$static.ct, 2, 12, 6, 10, key);
|
|
1022
1118
|
break;
|
|
1023
|
-
|
|
1119
|
+
}
|
|
1120
|
+
case 8: {
|
|
1024
1121
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
1025
1122
|
swap(this$static.ct, 2, 19, 4, 21, key);
|
|
1026
1123
|
swap(this$static.ct, 3, 16, 5, 22, key);
|
|
1027
1124
|
break;
|
|
1028
|
-
|
|
1125
|
+
}
|
|
1126
|
+
case 9: {
|
|
1029
1127
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
1030
1128
|
swap(this$static.ct, 10, 18, 14, 22, key);
|
|
1031
1129
|
swap(this$static.ct, 11, 19, 15, 23, key);
|
|
1032
1130
|
break;
|
|
1033
|
-
|
|
1131
|
+
}
|
|
1132
|
+
case 10: {
|
|
1034
1133
|
swap(this$static.ct, 20, 21, 22, 23, key);
|
|
1035
1134
|
swap(this$static.ct, 0, 8, 4, 14, key);
|
|
1036
1135
|
swap(this$static.ct, 3, 11, 7, 13, key);
|
|
1037
1136
|
break;
|
|
1038
|
-
|
|
1137
|
+
}
|
|
1138
|
+
case 11: {
|
|
1039
1139
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
1040
1140
|
swap(this$static.ct, 1, 20, 7, 18, key);
|
|
1041
1141
|
swap(this$static.ct, 0, 23, 6, 17, key);
|
|
1142
|
+
}
|
|
1042
1143
|
}
|
|
1043
1144
|
}
|
|
1044
1145
|
function CenterCube_0() {
|
|
@@ -1049,7 +1150,9 @@ function CenterCube_0() {
|
|
|
1049
1150
|
}
|
|
1050
1151
|
}
|
|
1051
1152
|
function CenterCube_1(randomUIntBelow) {
|
|
1052
|
-
let i_0
|
|
1153
|
+
let i_0;
|
|
1154
|
+
let m_0;
|
|
1155
|
+
let t;
|
|
1053
1156
|
CenterCube_0.call(this);
|
|
1054
1157
|
for (i_0 = 0; i_0 < 23; ++i_0) {
|
|
1055
1158
|
t = i_0 + randomUIntBelow(24 - i_0);
|
|
@@ -1087,7 +1190,8 @@ function $move_3(this$static, idx) {
|
|
|
1087
1190
|
$copy_2(this$static, this$static.temps);
|
|
1088
1191
|
}
|
|
1089
1192
|
function $setTwist_0(this$static, idx) {
|
|
1090
|
-
let i_0
|
|
1193
|
+
let i_0;
|
|
1194
|
+
let twst;
|
|
1091
1195
|
twst = 0;
|
|
1092
1196
|
for (i_0 = 6; i_0 >= 0; --i_0) {
|
|
1093
1197
|
twst += this$static.co[i_0] = idx % 3;
|
|
@@ -1096,7 +1200,10 @@ function $setTwist_0(this$static, idx) {
|
|
|
1096
1200
|
this$static.co[7] = (15 - twst) % 3;
|
|
1097
1201
|
}
|
|
1098
1202
|
function CornMult_0(a, b, prod) {
|
|
1099
|
-
let corn
|
|
1203
|
+
let corn;
|
|
1204
|
+
let ori;
|
|
1205
|
+
let oriA;
|
|
1206
|
+
let oriB;
|
|
1100
1207
|
for (corn = 0; corn < 8; ++corn) {
|
|
1101
1208
|
prod.cp[corn] = a.cp[b.cp[corn]];
|
|
1102
1209
|
oriA = a.co[b.cp[corn]];
|
|
@@ -1120,7 +1227,8 @@ function CornerCube_2(randomUIntBelow) {
|
|
|
1120
1227
|
CornerCube_1.call(this, randomUIntBelow(40320), randomUIntBelow(2187));
|
|
1121
1228
|
}
|
|
1122
1229
|
function initMove_0() {
|
|
1123
|
-
let a
|
|
1230
|
+
let a;
|
|
1231
|
+
let p_0;
|
|
1124
1232
|
moveCube_0[0] = new CornerCube_1(15120, 0);
|
|
1125
1233
|
moveCube_0[3] = new CornerCube_1(21021, 1494);
|
|
1126
1234
|
moveCube_0[6] = new CornerCube_1(8064, 1236);
|
|
@@ -1182,7 +1290,11 @@ function $circlex(this$static, a, b, c, d) {
|
|
|
1182
1290
|
this$static.edge[a] = temp;
|
|
1183
1291
|
}
|
|
1184
1292
|
function $get_2(this$static, end) {
|
|
1185
|
-
let i_0
|
|
1293
|
+
let i_0;
|
|
1294
|
+
let idx;
|
|
1295
|
+
let v;
|
|
1296
|
+
let valh;
|
|
1297
|
+
let vall;
|
|
1186
1298
|
this$static.isStd || $std(this$static);
|
|
1187
1299
|
idx = 0;
|
|
1188
1300
|
vall = 1985229328;
|
|
@@ -1214,107 +1326,128 @@ function $getsym_0(this$static) {
|
|
|
1214
1326
|
function $move_4(this$static, i_0) {
|
|
1215
1327
|
this$static.isStd = false;
|
|
1216
1328
|
switch (i_0) {
|
|
1217
|
-
case 0:
|
|
1329
|
+
case 0: {
|
|
1218
1330
|
circle(this$static.edge, 0, 4, 1, 5);
|
|
1219
1331
|
circle(this$static.edgeo, 0, 4, 1, 5);
|
|
1220
1332
|
break;
|
|
1221
|
-
|
|
1333
|
+
}
|
|
1334
|
+
case 1: {
|
|
1222
1335
|
$swap_0(this$static.edge, 0, 4, 1, 5);
|
|
1223
1336
|
$swap_0(this$static.edgeo, 0, 4, 1, 5);
|
|
1224
1337
|
break;
|
|
1225
|
-
|
|
1338
|
+
}
|
|
1339
|
+
case 2: {
|
|
1226
1340
|
circle(this$static.edge, 0, 5, 1, 4);
|
|
1227
1341
|
circle(this$static.edgeo, 0, 5, 1, 4);
|
|
1228
1342
|
break;
|
|
1229
|
-
|
|
1343
|
+
}
|
|
1344
|
+
case 3: {
|
|
1230
1345
|
$swap_0(this$static.edge, 5, 10, 6, 11);
|
|
1231
1346
|
$swap_0(this$static.edgeo, 5, 10, 6, 11);
|
|
1232
1347
|
break;
|
|
1233
|
-
|
|
1348
|
+
}
|
|
1349
|
+
case 4: {
|
|
1234
1350
|
circle(this$static.edge, 0, 11, 3, 8);
|
|
1235
1351
|
circle(this$static.edgeo, 0, 11, 3, 8);
|
|
1236
1352
|
break;
|
|
1237
|
-
|
|
1353
|
+
}
|
|
1354
|
+
case 5: {
|
|
1238
1355
|
$swap_0(this$static.edge, 0, 11, 3, 8);
|
|
1239
1356
|
$swap_0(this$static.edgeo, 0, 11, 3, 8);
|
|
1240
1357
|
break;
|
|
1241
|
-
|
|
1358
|
+
}
|
|
1359
|
+
case 6: {
|
|
1242
1360
|
circle(this$static.edge, 0, 8, 3, 11);
|
|
1243
1361
|
circle(this$static.edgeo, 0, 8, 3, 11);
|
|
1244
1362
|
break;
|
|
1245
|
-
|
|
1363
|
+
}
|
|
1364
|
+
case 7: {
|
|
1246
1365
|
circle(this$static.edge, 2, 7, 3, 6);
|
|
1247
1366
|
circle(this$static.edgeo, 2, 7, 3, 6);
|
|
1248
1367
|
break;
|
|
1249
|
-
|
|
1368
|
+
}
|
|
1369
|
+
case 8: {
|
|
1250
1370
|
$swap_0(this$static.edge, 2, 7, 3, 6);
|
|
1251
1371
|
$swap_0(this$static.edgeo, 2, 7, 3, 6);
|
|
1252
1372
|
break;
|
|
1253
|
-
|
|
1373
|
+
}
|
|
1374
|
+
case 9: {
|
|
1254
1375
|
circle(this$static.edge, 2, 6, 3, 7);
|
|
1255
1376
|
circle(this$static.edgeo, 2, 6, 3, 7);
|
|
1256
1377
|
break;
|
|
1257
|
-
|
|
1378
|
+
}
|
|
1379
|
+
case 10: {
|
|
1258
1380
|
$swap_0(this$static.edge, 4, 8, 7, 9);
|
|
1259
1381
|
$swap_0(this$static.edgeo, 4, 8, 7, 9);
|
|
1260
1382
|
break;
|
|
1261
|
-
|
|
1383
|
+
}
|
|
1384
|
+
case 11: {
|
|
1262
1385
|
circle(this$static.edge, 1, 9, 2, 10);
|
|
1263
1386
|
circle(this$static.edgeo, 1, 9, 2, 10);
|
|
1264
1387
|
break;
|
|
1265
|
-
|
|
1388
|
+
}
|
|
1389
|
+
case 12: {
|
|
1266
1390
|
$swap_0(this$static.edge, 1, 9, 2, 10);
|
|
1267
1391
|
$swap_0(this$static.edgeo, 1, 9, 2, 10);
|
|
1268
1392
|
break;
|
|
1269
|
-
|
|
1393
|
+
}
|
|
1394
|
+
case 13: {
|
|
1270
1395
|
circle(this$static.edge, 1, 10, 2, 9);
|
|
1271
1396
|
circle(this$static.edgeo, 1, 10, 2, 9);
|
|
1272
1397
|
break;
|
|
1273
|
-
|
|
1398
|
+
}
|
|
1399
|
+
case 14: {
|
|
1274
1400
|
$swap_0(this$static.edge, 0, 4, 1, 5);
|
|
1275
1401
|
$swap_0(this$static.edgeo, 0, 4, 1, 5);
|
|
1276
1402
|
circle(this$static.edge, 9, 11);
|
|
1277
1403
|
circle(this$static.edgeo, 8, 10);
|
|
1278
1404
|
break;
|
|
1279
|
-
|
|
1405
|
+
}
|
|
1406
|
+
case 15: {
|
|
1280
1407
|
$swap_0(this$static.edge, 5, 10, 6, 11);
|
|
1281
1408
|
$swap_0(this$static.edgeo, 5, 10, 6, 11);
|
|
1282
1409
|
circle(this$static.edge, 1, 3);
|
|
1283
1410
|
circle(this$static.edgeo, 0, 2);
|
|
1284
1411
|
break;
|
|
1285
|
-
|
|
1412
|
+
}
|
|
1413
|
+
case 16: {
|
|
1286
1414
|
$swap_0(this$static.edge, 0, 11, 3, 8);
|
|
1287
1415
|
$swap_0(this$static.edgeo, 0, 11, 3, 8);
|
|
1288
1416
|
circle(this$static.edge, 5, 7);
|
|
1289
1417
|
circle(this$static.edgeo, 4, 6);
|
|
1290
1418
|
break;
|
|
1291
|
-
|
|
1419
|
+
}
|
|
1420
|
+
case 17: {
|
|
1292
1421
|
$swap_0(this$static.edge, 2, 7, 3, 6);
|
|
1293
1422
|
$swap_0(this$static.edgeo, 2, 7, 3, 6);
|
|
1294
1423
|
circle(this$static.edge, 8, 10);
|
|
1295
1424
|
circle(this$static.edgeo, 9, 11);
|
|
1296
1425
|
break;
|
|
1297
|
-
|
|
1426
|
+
}
|
|
1427
|
+
case 18: {
|
|
1298
1428
|
$swap_0(this$static.edge, 4, 8, 7, 9);
|
|
1299
1429
|
$swap_0(this$static.edgeo, 4, 8, 7, 9);
|
|
1300
1430
|
circle(this$static.edge, 0, 2);
|
|
1301
1431
|
circle(this$static.edgeo, 1, 3);
|
|
1302
1432
|
break;
|
|
1303
|
-
|
|
1433
|
+
}
|
|
1434
|
+
case 19: {
|
|
1304
1435
|
$swap_0(this$static.edge, 1, 9, 2, 10);
|
|
1305
1436
|
$swap_0(this$static.edgeo, 1, 9, 2, 10);
|
|
1306
1437
|
circle(this$static.edge, 4, 6);
|
|
1307
1438
|
circle(this$static.edgeo, 5, 7);
|
|
1439
|
+
}
|
|
1308
1440
|
}
|
|
1309
1441
|
}
|
|
1310
1442
|
function $rot_1(this$static, r) {
|
|
1311
1443
|
this$static.isStd = false;
|
|
1312
1444
|
switch (r) {
|
|
1313
|
-
case 0:
|
|
1445
|
+
case 0: {
|
|
1314
1446
|
$move_4(this$static, 14);
|
|
1315
1447
|
$move_4(this$static, 17);
|
|
1316
1448
|
break;
|
|
1317
|
-
|
|
1449
|
+
}
|
|
1450
|
+
case 1: {
|
|
1318
1451
|
$circlex(this$static, 11, 5, 10, 6);
|
|
1319
1452
|
$circlex(this$static, 5, 10, 6, 11);
|
|
1320
1453
|
$circlex(this$static, 1, 2, 3, 0);
|
|
@@ -1322,7 +1455,8 @@ function $rot_1(this$static, r) {
|
|
|
1322
1455
|
$circlex(this$static, 8, 4, 9, 7);
|
|
1323
1456
|
$circlex(this$static, 0, 1, 2, 3);
|
|
1324
1457
|
break;
|
|
1325
|
-
|
|
1458
|
+
}
|
|
1459
|
+
case 2: {
|
|
1326
1460
|
$swapx(this$static, 4, 5);
|
|
1327
1461
|
$swapx(this$static, 5, 4);
|
|
1328
1462
|
$swapx(this$static, 11, 8);
|
|
@@ -1335,6 +1469,7 @@ function $rot_1(this$static, r) {
|
|
|
1335
1469
|
$swapx(this$static, 0, 0);
|
|
1336
1470
|
$swapx(this$static, 3, 3);
|
|
1337
1471
|
$swapx(this$static, 2, 2);
|
|
1472
|
+
}
|
|
1338
1473
|
}
|
|
1339
1474
|
}
|
|
1340
1475
|
function $rotate_0(this$static, r) {
|
|
@@ -1346,7 +1481,12 @@ function $rotate_0(this$static, r) {
|
|
|
1346
1481
|
r !== 0 && $rot_1(this$static, 0);
|
|
1347
1482
|
}
|
|
1348
1483
|
function $set_4(this$static, idx) {
|
|
1349
|
-
let i_0
|
|
1484
|
+
let i_0;
|
|
1485
|
+
let p_0;
|
|
1486
|
+
let parity;
|
|
1487
|
+
let v;
|
|
1488
|
+
let vall;
|
|
1489
|
+
let valh;
|
|
1350
1490
|
vall = 1985229328;
|
|
1351
1491
|
valh = 47768;
|
|
1352
1492
|
parity = 0;
|
|
@@ -1388,7 +1528,10 @@ function $set_5(this$static, e) {
|
|
|
1388
1528
|
this$static.isStd = e.isStd;
|
|
1389
1529
|
}
|
|
1390
1530
|
function $set_6(this$static, c) {
|
|
1391
|
-
let i_0
|
|
1531
|
+
let i_0;
|
|
1532
|
+
let parity;
|
|
1533
|
+
let s;
|
|
1534
|
+
let t;
|
|
1392
1535
|
this$static.temp === null && (this$static.temp = createArray(12));
|
|
1393
1536
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
1394
1537
|
this$static.temp[i_0] = i_0;
|
|
@@ -1442,7 +1585,28 @@ function Edge3_0() {
|
|
|
1442
1585
|
this.edgeo = createArray(12);
|
|
1443
1586
|
}
|
|
1444
1587
|
function createPrun_0() {
|
|
1445
|
-
let chk
|
|
1588
|
+
let chk;
|
|
1589
|
+
let cord1;
|
|
1590
|
+
let cord1x;
|
|
1591
|
+
let cord2;
|
|
1592
|
+
let cord2x;
|
|
1593
|
+
let dep1m3;
|
|
1594
|
+
let depm3;
|
|
1595
|
+
let depth;
|
|
1596
|
+
let end;
|
|
1597
|
+
let find_0;
|
|
1598
|
+
let i_0;
|
|
1599
|
+
let i_;
|
|
1600
|
+
let idx;
|
|
1601
|
+
let idxx;
|
|
1602
|
+
let inv;
|
|
1603
|
+
let j;
|
|
1604
|
+
let m_0;
|
|
1605
|
+
let symState;
|
|
1606
|
+
let symcord1;
|
|
1607
|
+
let symcord1x;
|
|
1608
|
+
let symx;
|
|
1609
|
+
let val;
|
|
1446
1610
|
const e = new Edge3_0();
|
|
1447
1611
|
const f = new Edge3_0();
|
|
1448
1612
|
const g = new Edge3_0();
|
|
@@ -1516,7 +1680,11 @@ function getPruning_0(table, index) {
|
|
|
1516
1680
|
return table[index >> 4] >> ((index & 15) << 1) & 3;
|
|
1517
1681
|
}
|
|
1518
1682
|
function getmvrot(ep, mrIdx, end) {
|
|
1519
|
-
let i_0
|
|
1683
|
+
let i_0;
|
|
1684
|
+
let idx;
|
|
1685
|
+
let v;
|
|
1686
|
+
let valh;
|
|
1687
|
+
let vall;
|
|
1520
1688
|
const movo = mvroto[mrIdx];
|
|
1521
1689
|
const mov = mvrot[mrIdx];
|
|
1522
1690
|
idx = 0;
|
|
@@ -1537,7 +1705,17 @@ function getmvrot(ep, mrIdx, end) {
|
|
|
1537
1705
|
return idx;
|
|
1538
1706
|
}
|
|
1539
1707
|
function getprun(edge) {
|
|
1540
|
-
let cord1
|
|
1708
|
+
let cord1;
|
|
1709
|
+
let cord1x;
|
|
1710
|
+
let cord2;
|
|
1711
|
+
let cord2x;
|
|
1712
|
+
let depm3;
|
|
1713
|
+
let depth;
|
|
1714
|
+
let idx;
|
|
1715
|
+
let m_0;
|
|
1716
|
+
let symcord1;
|
|
1717
|
+
let symcord1x;
|
|
1718
|
+
let symx;
|
|
1541
1719
|
const e = new Edge3_0();
|
|
1542
1720
|
depth = 0;
|
|
1543
1721
|
depm3 = getPruning_0(eprun, edge);
|
|
@@ -1574,7 +1752,9 @@ function getprun_0(edge, prun) {
|
|
|
1574
1752
|
return (1227133513 << depm3 >> prun & 3) + prun - 1;
|
|
1575
1753
|
}
|
|
1576
1754
|
function initMvrot() {
|
|
1577
|
-
let i_0
|
|
1755
|
+
let i_0;
|
|
1756
|
+
let m_0;
|
|
1757
|
+
let r;
|
|
1578
1758
|
const e = new Edge3_0();
|
|
1579
1759
|
for (m_0 = 0; m_0 < 20; ++m_0) {
|
|
1580
1760
|
for (r = 0; r < 8; ++r) {
|
|
@@ -1592,7 +1772,10 @@ function initMvrot() {
|
|
|
1592
1772
|
}
|
|
1593
1773
|
}
|
|
1594
1774
|
function initRaw2Sym() {
|
|
1595
|
-
let count
|
|
1775
|
+
let count;
|
|
1776
|
+
let i_0;
|
|
1777
|
+
let idx;
|
|
1778
|
+
let j;
|
|
1596
1779
|
const e = new Edge3_0();
|
|
1597
1780
|
const occ = createArray(1485);
|
|
1598
1781
|
for (i_0 = 0; i_0 < 1485; i_0++) {
|
|
@@ -1641,7 +1824,9 @@ function $clinit_EdgeCube() {
|
|
|
1641
1824
|
ran$clinit_EdgeCube = true;
|
|
1642
1825
|
}
|
|
1643
1826
|
function $checkEdge(this$static) {
|
|
1644
|
-
let ck
|
|
1827
|
+
let ck;
|
|
1828
|
+
let i_0;
|
|
1829
|
+
let parity;
|
|
1645
1830
|
ck = 0;
|
|
1646
1831
|
parity = false;
|
|
1647
1832
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
@@ -1661,59 +1846,71 @@ function $move_5(this$static, m_0) {
|
|
|
1661
1846
|
const key = m_0 % 3;
|
|
1662
1847
|
m_0 = ~~(m_0 / 3);
|
|
1663
1848
|
switch (m_0) {
|
|
1664
|
-
case 0:
|
|
1849
|
+
case 0: {
|
|
1665
1850
|
swap(this$static.ep, 0, 1, 2, 3, key);
|
|
1666
1851
|
swap(this$static.ep, 12, 13, 14, 15, key);
|
|
1667
1852
|
break;
|
|
1668
|
-
|
|
1853
|
+
}
|
|
1854
|
+
case 1: {
|
|
1669
1855
|
swap(this$static.ep, 11, 15, 10, 19, key);
|
|
1670
1856
|
swap(this$static.ep, 23, 3, 22, 7, key);
|
|
1671
1857
|
break;
|
|
1672
|
-
|
|
1858
|
+
}
|
|
1859
|
+
case 2: {
|
|
1673
1860
|
swap(this$static.ep, 0, 11, 6, 8, key);
|
|
1674
1861
|
swap(this$static.ep, 12, 23, 18, 20, key);
|
|
1675
1862
|
break;
|
|
1676
|
-
|
|
1863
|
+
}
|
|
1864
|
+
case 3: {
|
|
1677
1865
|
swap(this$static.ep, 4, 5, 6, 7, key);
|
|
1678
1866
|
swap(this$static.ep, 16, 17, 18, 19, key);
|
|
1679
1867
|
break;
|
|
1680
|
-
|
|
1868
|
+
}
|
|
1869
|
+
case 4: {
|
|
1681
1870
|
swap(this$static.ep, 1, 20, 5, 21, key);
|
|
1682
1871
|
swap(this$static.ep, 13, 8, 17, 9, key);
|
|
1683
1872
|
break;
|
|
1684
|
-
|
|
1873
|
+
}
|
|
1874
|
+
case 5: {
|
|
1685
1875
|
swap(this$static.ep, 2, 9, 4, 10, key);
|
|
1686
1876
|
swap(this$static.ep, 14, 21, 16, 22, key);
|
|
1687
1877
|
break;
|
|
1688
|
-
|
|
1878
|
+
}
|
|
1879
|
+
case 6: {
|
|
1689
1880
|
swap(this$static.ep, 0, 1, 2, 3, key);
|
|
1690
1881
|
swap(this$static.ep, 12, 13, 14, 15, key);
|
|
1691
1882
|
swap(this$static.ep, 9, 22, 11, 20, key);
|
|
1692
1883
|
break;
|
|
1693
|
-
|
|
1884
|
+
}
|
|
1885
|
+
case 7: {
|
|
1694
1886
|
swap(this$static.ep, 11, 15, 10, 19, key);
|
|
1695
1887
|
swap(this$static.ep, 23, 3, 22, 7, key);
|
|
1696
1888
|
swap(this$static.ep, 2, 16, 6, 12, key);
|
|
1697
1889
|
break;
|
|
1698
|
-
|
|
1890
|
+
}
|
|
1891
|
+
case 8: {
|
|
1699
1892
|
swap(this$static.ep, 0, 11, 6, 8, key);
|
|
1700
1893
|
swap(this$static.ep, 12, 23, 18, 20, key);
|
|
1701
1894
|
swap(this$static.ep, 3, 19, 5, 13, key);
|
|
1702
1895
|
break;
|
|
1703
|
-
|
|
1896
|
+
}
|
|
1897
|
+
case 9: {
|
|
1704
1898
|
swap(this$static.ep, 4, 5, 6, 7, key);
|
|
1705
1899
|
swap(this$static.ep, 16, 17, 18, 19, key);
|
|
1706
1900
|
swap(this$static.ep, 8, 23, 10, 21, key);
|
|
1707
1901
|
break;
|
|
1708
|
-
|
|
1902
|
+
}
|
|
1903
|
+
case 10: {
|
|
1709
1904
|
swap(this$static.ep, 1, 20, 5, 21, key);
|
|
1710
1905
|
swap(this$static.ep, 13, 8, 17, 9, key);
|
|
1711
1906
|
swap(this$static.ep, 14, 0, 18, 4, key);
|
|
1712
1907
|
break;
|
|
1713
|
-
|
|
1908
|
+
}
|
|
1909
|
+
case 11: {
|
|
1714
1910
|
swap(this$static.ep, 2, 9, 4, 10, key);
|
|
1715
1911
|
swap(this$static.ep, 14, 21, 16, 22, key);
|
|
1716
1912
|
swap(this$static.ep, 7, 15, 1, 17, key);
|
|
1913
|
+
}
|
|
1717
1914
|
}
|
|
1718
1915
|
}
|
|
1719
1916
|
function EdgeCube_0() {
|
|
@@ -1724,7 +1921,9 @@ function EdgeCube_0() {
|
|
|
1724
1921
|
}
|
|
1725
1922
|
}
|
|
1726
1923
|
function EdgeCube_1(randomUIntBelow) {
|
|
1727
|
-
let i_0
|
|
1924
|
+
let i_0;
|
|
1925
|
+
let m_0;
|
|
1926
|
+
let t;
|
|
1728
1927
|
EdgeCube_0.call(this);
|
|
1729
1928
|
for (i_0 = 0; i_0 < 23; ++i_0) {
|
|
1730
1929
|
t = i_0 + randomUIntBelow(24 - i_0);
|
|
@@ -1794,7 +1993,12 @@ function $getEdge(this$static) {
|
|
|
1794
1993
|
return this$static.edge;
|
|
1795
1994
|
}
|
|
1796
1995
|
function $getMoveString(this$static) {
|
|
1797
|
-
let i_0
|
|
1996
|
+
let i_0;
|
|
1997
|
+
let idx;
|
|
1998
|
+
let move;
|
|
1999
|
+
let rot;
|
|
2000
|
+
let sb;
|
|
2001
|
+
let sym;
|
|
1798
2002
|
const fixedMoves = new Array(
|
|
1799
2003
|
this$static.moveLength - (this$static.add1 ? 2 : 0)
|
|
1800
2004
|
);
|
|
@@ -1819,11 +2023,11 @@ function $getMoveString(this$static) {
|
|
|
1819
2023
|
move = fixedMoves[i_0];
|
|
1820
2024
|
move = ~~(move / 3) * 3 + (2 - move % 3);
|
|
1821
2025
|
if (symmove[sym][move] >= 27) {
|
|
1822
|
-
sb = sb
|
|
2026
|
+
sb = `${sb}${move2str_1[symmove[sym][move] - 9]} `;
|
|
1823
2027
|
rot = move2rot[symmove[sym][move] - 27];
|
|
1824
2028
|
sym = symmult[sym][rot];
|
|
1825
2029
|
} else {
|
|
1826
|
-
sb = sb
|
|
2030
|
+
sb = `${sb}${move2str_1[symmove[sym][move]]} `;
|
|
1827
2031
|
}
|
|
1828
2032
|
}
|
|
1829
2033
|
return sb;
|
|
@@ -1891,7 +2095,8 @@ function $clinit_Moves() {
|
|
|
1891
2095
|
return;
|
|
1892
2096
|
}
|
|
1893
2097
|
ran$clinit_Moves = true;
|
|
1894
|
-
let i_0
|
|
2098
|
+
let i_0;
|
|
2099
|
+
let j;
|
|
1895
2100
|
move2str_1 = [
|
|
1896
2101
|
"U ",
|
|
1897
2102
|
"U2 ",
|
|
@@ -2054,7 +2259,18 @@ var skipAxis3;
|
|
|
2054
2259
|
var std2move;
|
|
2055
2260
|
var std3move;
|
|
2056
2261
|
function $doSearch(this$static) {
|
|
2057
|
-
let MAX_LENGTH2
|
|
2262
|
+
let MAX_LENGTH2;
|
|
2263
|
+
let MAX_LENGTH3;
|
|
2264
|
+
let ct;
|
|
2265
|
+
let edge;
|
|
2266
|
+
let eparity;
|
|
2267
|
+
let i_0;
|
|
2268
|
+
let index;
|
|
2269
|
+
let length12;
|
|
2270
|
+
let length123;
|
|
2271
|
+
let prun;
|
|
2272
|
+
let s2ct;
|
|
2273
|
+
let s2rl;
|
|
2058
2274
|
this$static.solution = "";
|
|
2059
2275
|
const ud = $getsym(new Center1_1($getCenter(this$static.c), 0));
|
|
2060
2276
|
const fb = $getsym(new Center1_1($getCenter(this$static.c), 1));
|
|
@@ -2175,13 +2391,14 @@ function $doSearch(this$static) {
|
|
|
2175
2391
|
this$static.solution = $getMoveString(solcube);
|
|
2176
2392
|
}
|
|
2177
2393
|
function $init2_0(this$static, sym) {
|
|
2178
|
-
let i_0
|
|
2394
|
+
let i_0;
|
|
2395
|
+
let next;
|
|
2179
2396
|
$copy_4(this$static.c1, this$static.c);
|
|
2180
2397
|
for (i_0 = 0; i_0 < this$static.length1; ++i_0) {
|
|
2181
2398
|
$move_6(this$static.c1, this$static.move1[i_0]);
|
|
2182
2399
|
}
|
|
2183
2400
|
switch (finish_0[sym]) {
|
|
2184
|
-
case 0:
|
|
2401
|
+
case 0: {
|
|
2185
2402
|
$move_6(this$static.c1, 24);
|
|
2186
2403
|
$move_6(this$static.c1, 35);
|
|
2187
2404
|
this$static.move1[this$static.length1] = 24;
|
|
@@ -2189,7 +2406,8 @@ function $init2_0(this$static, sym) {
|
|
|
2189
2406
|
this$static.add1 = true;
|
|
2190
2407
|
sym = 19;
|
|
2191
2408
|
break;
|
|
2192
|
-
|
|
2409
|
+
}
|
|
2410
|
+
case 12869: {
|
|
2193
2411
|
$move_6(this$static.c1, 18);
|
|
2194
2412
|
$move_6(this$static.c1, 29);
|
|
2195
2413
|
this$static.move1[this$static.length1] = 18;
|
|
@@ -2197,9 +2415,11 @@ function $init2_0(this$static, sym) {
|
|
|
2197
2415
|
this$static.add1 = true;
|
|
2198
2416
|
sym = 34;
|
|
2199
2417
|
break;
|
|
2200
|
-
|
|
2418
|
+
}
|
|
2419
|
+
case 735470: {
|
|
2201
2420
|
this$static.add1 = false;
|
|
2202
2421
|
sym = 0;
|
|
2422
|
+
}
|
|
2203
2423
|
}
|
|
2204
2424
|
$set_2(
|
|
2205
2425
|
this$static.ct2,
|
|
@@ -2254,7 +2474,12 @@ function $randomState(this$static, randomUIntBelow) {
|
|
|
2254
2474
|
return this$static.solution;
|
|
2255
2475
|
}
|
|
2256
2476
|
function $search1(this$static, ct, sym, maxl, lm, depth) {
|
|
2257
|
-
let axis
|
|
2477
|
+
let axis;
|
|
2478
|
+
let ctx;
|
|
2479
|
+
let m_0;
|
|
2480
|
+
let power;
|
|
2481
|
+
let prun;
|
|
2482
|
+
let symx;
|
|
2258
2483
|
if (ct === 0) {
|
|
2259
2484
|
return maxl === 0 && $init2_0(this$static, sym);
|
|
2260
2485
|
}
|
|
@@ -2283,7 +2508,10 @@ function $search1(this$static, ct, sym, maxl, lm, depth) {
|
|
|
2283
2508
|
return false;
|
|
2284
2509
|
}
|
|
2285
2510
|
function $search2(this$static, ct, rl, maxl, lm, depth) {
|
|
2286
|
-
let ctx
|
|
2511
|
+
let ctx;
|
|
2512
|
+
let m_0;
|
|
2513
|
+
let prun;
|
|
2514
|
+
let rlx;
|
|
2287
2515
|
if (ct === 0 && ctprun[rl] === 0) {
|
|
2288
2516
|
return maxl === 0 && $init3(this$static);
|
|
2289
2517
|
}
|
|
@@ -2307,7 +2535,15 @@ function $search2(this$static, ct, rl, maxl, lm, depth) {
|
|
|
2307
2535
|
return false;
|
|
2308
2536
|
}
|
|
2309
2537
|
function $search3(this$static, edge, ct, prun, maxl, lm, depth) {
|
|
2310
|
-
let cord1x
|
|
2538
|
+
let cord1x;
|
|
2539
|
+
let cord2x;
|
|
2540
|
+
let ctx;
|
|
2541
|
+
let edgex;
|
|
2542
|
+
let m_0;
|
|
2543
|
+
let prun1;
|
|
2544
|
+
let prunx;
|
|
2545
|
+
let symcord1x;
|
|
2546
|
+
let symx;
|
|
2311
2547
|
if (maxl === 0) {
|
|
2312
2548
|
return edge === 0 && ct === 0;
|
|
2313
2549
|
}
|
|
@@ -2392,7 +2628,10 @@ function $clinit_Util_0() {
|
|
|
2392
2628
|
ran$clinit_Util_0 = true;
|
|
2393
2629
|
}
|
|
2394
2630
|
function parity_0(arr) {
|
|
2395
|
-
let i_0
|
|
2631
|
+
let i_0;
|
|
2632
|
+
let j;
|
|
2633
|
+
let len;
|
|
2634
|
+
let parity;
|
|
2396
2635
|
parity = 0;
|
|
2397
2636
|
for (i_0 = 0, len = arr.length; i_0 < len; ++i_0) {
|
|
2398
2637
|
for (j = i_0; j < len; ++j) {
|
|
@@ -2404,14 +2643,15 @@ function parity_0(arr) {
|
|
|
2404
2643
|
function swap(arr, a, b, c, d, key) {
|
|
2405
2644
|
let temp;
|
|
2406
2645
|
switch (key) {
|
|
2407
|
-
case 0:
|
|
2646
|
+
case 0: {
|
|
2408
2647
|
temp = arr[d];
|
|
2409
2648
|
arr[d] = arr[c];
|
|
2410
2649
|
arr[c] = arr[b];
|
|
2411
2650
|
arr[b] = arr[a];
|
|
2412
2651
|
arr[a] = temp;
|
|
2413
2652
|
return;
|
|
2414
|
-
|
|
2653
|
+
}
|
|
2654
|
+
case 1: {
|
|
2415
2655
|
temp = arr[a];
|
|
2416
2656
|
arr[a] = arr[c];
|
|
2417
2657
|
arr[c] = temp;
|
|
@@ -2419,13 +2659,15 @@ function swap(arr, a, b, c, d, key) {
|
|
|
2419
2659
|
arr[b] = arr[d];
|
|
2420
2660
|
arr[d] = temp;
|
|
2421
2661
|
return;
|
|
2422
|
-
|
|
2662
|
+
}
|
|
2663
|
+
case 2: {
|
|
2423
2664
|
temp = arr[a];
|
|
2424
2665
|
arr[a] = arr[b];
|
|
2425
2666
|
arr[b] = arr[c];
|
|
2426
2667
|
arr[c] = arr[d];
|
|
2427
2668
|
arr[d] = temp;
|
|
2428
2669
|
return;
|
|
2670
|
+
}
|
|
2429
2671
|
}
|
|
2430
2672
|
}
|
|
2431
2673
|
function Class_0() {
|
|
@@ -2537,7 +2779,10 @@ function splice_0(array, index, deleteCount) {
|
|
|
2537
2779
|
}
|
|
2538
2780
|
_.size = 0;
|
|
2539
2781
|
function binarySearch_0(sortedArray, key) {
|
|
2540
|
-
let high
|
|
2782
|
+
let high;
|
|
2783
|
+
let low;
|
|
2784
|
+
let mid;
|
|
2785
|
+
let midVal;
|
|
2541
2786
|
low = 0;
|
|
2542
2787
|
high = sortedArray.length - 1;
|
|
2543
2788
|
while (low <= high) {
|
|
@@ -2563,7 +2808,10 @@ function fill_1(a, toIndex) {
|
|
|
2563
2808
|
}
|
|
2564
2809
|
}
|
|
2565
2810
|
function $mergeHeaps(this$static, node) {
|
|
2566
|
-
let smallestChild
|
|
2811
|
+
let smallestChild;
|
|
2812
|
+
let leftChild;
|
|
2813
|
+
let rightChild;
|
|
2814
|
+
let smallestChild_0;
|
|
2567
2815
|
const heapSize = this$static.heap.size;
|
|
2568
2816
|
const value = $get_4(this$static.heap, node);
|
|
2569
2817
|
while (node * 2 + 1 < heapSize) {
|
|
@@ -2580,7 +2828,8 @@ function $mergeHeaps(this$static, node) {
|
|
|
2580
2828
|
$set_7(this$static.heap, node, value);
|
|
2581
2829
|
}
|
|
2582
2830
|
function $offer(this$static, e) {
|
|
2583
|
-
let childNode
|
|
2831
|
+
let childNode;
|
|
2832
|
+
let node;
|
|
2584
2833
|
node = this$static.heap.size;
|
|
2585
2834
|
$add_0(this$static.heap, e);
|
|
2586
2835
|
while (node > 0) {
|
|
@@ -2678,4 +2927,4 @@ export {
|
|
|
2678
2927
|
initialize,
|
|
2679
2928
|
random444Scramble
|
|
2680
2929
|
};
|
|
2681
|
-
//# sourceMappingURL=search-dynamic-solve-4x4x4-
|
|
2930
|
+
//# sourceMappingURL=search-dynamic-solve-4x4x4-ALKH43DT.js.map
|