cubing 0.22.0 → 0.24.0-pre2
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 +5 -8
- package/alg/package.json +1 -3
- package/bluetooth/package.json +1 -3
- package/dist/esm/{2x2x2.kpuzzle.json-JOGUSQ4N.js → 2x2x2.kpuzzle.json-U5KOZCMU.js} +11 -11
- package/dist/esm/2x2x2.kpuzzle.json-U5KOZCMU.js.map +7 -0
- package/{src/cubing/search/inside/solve/puzzles/2x2x2.sgs.json.ts → dist/esm/2x2x2.sgs.json-UAYPCQVL.js} +21 -13
- package/dist/esm/2x2x2.sgs.json-UAYPCQVL.js.map +7 -0
- package/dist/esm/{3d-3WQVOHX5.js → 3d-NFF7OGTI.js} +4 -4
- package/dist/esm/{3d-3WQVOHX5.js.map → 3d-NFF7OGTI.js.map} +0 -0
- package/dist/esm/bluetooth/index.d.ts +1 -1
- package/dist/esm/bluetooth/index.js +46 -38
- package/dist/esm/bluetooth/index.js.map +3 -3
- package/dist/esm/chunk-27KJGD3S.js +84 -0
- package/dist/esm/chunk-27KJGD3S.js.map +7 -0
- package/dist/esm/chunk-37EHU3GZ.js +66 -0
- package/dist/esm/chunk-37EHU3GZ.js.map +7 -0
- package/dist/esm/chunk-7OPCF2OL.js +274 -0
- package/dist/esm/chunk-7OPCF2OL.js.map +7 -0
- package/dist/esm/chunk-BJIOROQC.js +18 -0
- package/dist/esm/chunk-BJIOROQC.js.map +7 -0
- package/dist/{bin/puzzle-geometry-bin.js → esm/chunk-J2U2GRS4.js} +104 -1488
- package/dist/esm/chunk-J2U2GRS4.js.map +7 -0
- package/dist/esm/chunk-KCRFOAR4.js +122 -0
- package/dist/esm/chunk-KCRFOAR4.js.map +7 -0
- package/{src/cubing/search/inside/solve/puzzles/pyraminx.sgs.json.ts → dist/esm/chunk-NPK6Z4AU.js} +22 -17
- package/dist/esm/chunk-NPK6Z4AU.js.map +7 -0
- package/dist/esm/chunk-NV5ESXTN.js +505 -0
- package/dist/esm/chunk-NV5ESXTN.js.map +7 -0
- package/dist/esm/{chunk-DLN5QS4V.js → chunk-REMJV2GO.js} +38 -51
- package/dist/esm/chunk-REMJV2GO.js.map +7 -0
- package/dist/esm/chunk-TB4D4E2W.js +226 -0
- package/dist/esm/chunk-TB4D4E2W.js.map +7 -0
- package/dist/esm/chunk-TNRZDNGH.js +822 -0
- package/dist/esm/chunk-TNRZDNGH.js.map +7 -0
- package/{src/cubing/search/inside/solve/puzzles/megaminx.sgs.json.ts → dist/esm/chunk-YN7E5RGM.js} +36 -24
- package/dist/esm/chunk-YN7E5RGM.js.map +7 -0
- package/dist/esm/{chunk-HXKINJ7U.js → chunk-ZLIK3DZT.js} +79 -57
- package/dist/esm/chunk-ZLIK3DZT.js.map +7 -0
- package/dist/esm/{clock.kpuzzle.json-EKWRMHJM.js → clock.kpuzzle.json-J3YBOI3G.js} +7 -45
- package/dist/esm/clock.kpuzzle.json-J3YBOI3G.js.map +7 -0
- package/dist/esm/entry-PHAJAE4E.js +536 -0
- package/dist/esm/entry-PHAJAE4E.js.map +7 -0
- package/dist/esm/esm-test-worker.js +3 -14
- package/dist/esm/esm-test-worker.js.map +3 -3
- package/dist/esm/fto.sgs.json-VO6HST2V.js +641 -0
- package/dist/esm/fto.sgs.json-VO6HST2V.js.map +7 -0
- package/{src/cubing/search/inside/solve/vendor/min2phase/gwt.js → dist/esm/gwt-B7CBESZR.js} +350 -1380
- package/dist/esm/gwt-B7CBESZR.js.map +7 -0
- package/dist/esm/kpuzzle/index.js +5 -35
- package/dist/esm/megaminx.sgs.json-R3MK4HXM.js +16 -0
- package/dist/esm/megaminx.sgs.json-R3MK4HXM.js.map +7 -0
- package/dist/esm/module-entry-UYTOFYBC.js +18 -0
- package/dist/esm/module-entry-UYTOFYBC.js.map +7 -0
- package/dist/esm/{node-BSAQKO3G.js → node-SP4L2AKI.js} +2 -2
- package/dist/esm/{node-BSAQKO3G.js.map → node-SP4L2AKI.js.map} +1 -1
- package/dist/esm/{node-WEHVBEKP.js → node-W3AD4HBK.js} +3 -2
- package/dist/esm/node-W3AD4HBK.js.map +7 -0
- package/dist/esm/protocol/index.js +2 -1
- package/dist/esm/puzzle-geometry/index.js +15 -4053
- package/dist/esm/puzzle-geometry/index.js.map +3 -3
- package/dist/esm/puzzles/index.js +4 -4
- package/dist/esm/pyraminx.sgs.json-R3J3JHMV.js +14 -0
- package/dist/esm/pyraminx.sgs.json-R3J3JHMV.js.map +7 -0
- package/dist/esm/scramble/index.js +5 -3
- package/{src/cubing/search/inside/solve/vendor/cstimer/src/js/scramble/scramble_444.ts → dist/esm/scramble_444-F3YANDPO.js} +367 -586
- package/dist/esm/scramble_444-F3YANDPO.js.map +7 -0
- package/{src/cubing/search/inside/solve/vendor/sq12phase/scramble_sq1.js → dist/esm/scramble_sq1-PQ2AYBFW.js} +143 -290
- package/dist/esm/scramble_sq1-PQ2AYBFW.js.map +7 -0
- package/dist/esm/search/index.js +7 -4
- package/dist/esm/skewb.sgs.json-T6CO36WU.js +16 -0
- package/dist/esm/skewb.sgs.json-T6CO36WU.js.map +7 -0
- package/dist/esm/{sq1-hyperorbit.kpuzzle.json-N3FGCPML.js → sq1-hyperorbit.kpuzzle.json-AWDGN4ZW.js} +6 -6
- package/dist/esm/sq1-hyperorbit.kpuzzle.json-AWDGN4ZW.js.map +7 -0
- package/dist/esm/twisty/index.js +342 -231
- package/dist/esm/twisty/index.js.map +3 -3
- package/dist/esm/worker-inside-generated-string-6YDSDSRJ.js +3447 -0
- package/dist/esm/worker-inside-generated-string-6YDSDSRJ.js.map +7 -0
- package/dist/{esm → types}/.DS_Store +0 -0
- package/dist/types/alg/Alg.d.ts +0 -1
- package/dist/types/alg/Alg.spec.d.ts +0 -1
- package/dist/types/alg/AlgBuilder.d.ts +0 -1
- package/dist/types/alg/Serializable.d.ts +0 -1
- package/dist/types/alg/common.d.ts +0 -1
- package/dist/types/alg/debug.d.ts +0 -1
- package/dist/types/alg/example.d.ts +0 -1
- package/dist/types/alg/index.d.ts +0 -1
- package/dist/types/alg/is.d.ts +0 -1
- package/dist/types/alg/iteration.d.ts +0 -1
- package/dist/types/alg/keyboard.d.ts +0 -1
- package/dist/types/alg/limits.d.ts +0 -1
- package/dist/types/alg/operation.d.ts +0 -1
- package/dist/types/alg/operation.spec.d.ts +0 -1
- package/dist/types/alg/parse.d.ts +0 -1
- package/dist/types/alg/parse.spec.d.ts +0 -1
- package/dist/types/alg/test/alg-comparison.d.ts +0 -1
- package/dist/types/alg/test/alg.spec.d.ts +0 -1
- package/dist/types/alg/traversal.d.ts +0 -1
- package/dist/types/alg/units/QuantumWithAmount.d.ts +0 -1
- package/dist/types/alg/units/Unit.d.ts +0 -1
- package/dist/types/alg/units/containers/Commutator.d.ts +0 -1
- package/dist/types/alg/units/containers/Conjugate.d.ts +0 -1
- package/dist/types/alg/units/containers/Grouping.d.ts +0 -1
- package/dist/types/alg/units/index.d.ts +0 -1
- package/dist/types/alg/units/leaves/LineComment.d.ts +0 -1
- package/dist/types/alg/units/leaves/LineComment.spec.d.ts +0 -1
- package/dist/types/alg/units/leaves/Move.d.ts +0 -1
- package/dist/types/alg/units/leaves/Move.spec.d.ts +0 -1
- package/dist/types/alg/units/leaves/Newline.d.ts +0 -1
- package/dist/types/alg/units/leaves/Pause.d.ts +0 -1
- package/dist/types/alg/url.d.ts +0 -1
- package/dist/types/alg/url.spec.d.ts +0 -1
- package/dist/types/alg/validation.d.ts +0 -1
- package/dist/types/alg/warnOnce.d.ts +0 -1
- package/dist/types/bluetooth/connect/index.d.ts +0 -1
- package/dist/types/bluetooth/debug.d.ts +0 -1
- package/dist/types/bluetooth/index.d.ts +0 -1
- package/dist/types/bluetooth/keyboard.d.ts +5 -5
- package/dist/types/bluetooth/smart-puzzle/Heykube.d.ts +3 -3
- package/dist/types/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts +3 -5
- package/dist/types/bluetooth/smart-puzzle/connect.d.ts +0 -1
- package/dist/types/bluetooth/smart-puzzle/endianness.d.ts +0 -1
- package/dist/types/bluetooth/smart-puzzle/gan.d.ts +5 -4
- package/dist/types/bluetooth/smart-puzzle/giiker.d.ts +3 -3
- package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts +0 -1
- package/dist/types/bluetooth/smart-puzzle/gocube.d.ts +0 -1
- package/dist/types/bluetooth/smart-robot/GanRobot.d.ts +0 -1
- package/dist/types/bluetooth/smart-robot/index.d.ts +0 -1
- package/dist/types/bluetooth/smart-timer/GanTimer.d.ts +0 -1
- package/dist/types/bluetooth/smart-timer/index.d.ts +0 -1
- package/dist/types/bluetooth/transformer.d.ts +0 -1
- package/dist/types/cubing.bundle-global.d.ts +0 -1
- package/{src/cubing/cubing.bundle-global.ts → dist/types/cubing.bundle-global.exports.d.ts} +12 -19
- package/dist/types/esm-test-worker.d.ts +0 -1
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts +2 -3
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts +0 -1
- package/dist/types/kpuzzle/3x3x3/puzzle-orientation.d.ts +4 -0
- package/dist/types/kpuzzle/KPuzzle.d.ts +25 -0
- package/dist/types/kpuzzle/KPuzzleDefinition.d.ts +20 -0
- package/dist/types/kpuzzle/KState.d.ts +16 -0
- package/dist/types/kpuzzle/KTransformation.d.ts +20 -0
- package/dist/types/kpuzzle/calculate.d.ts +16 -0
- package/dist/types/kpuzzle/combine.d.ts +3 -0
- package/dist/types/kpuzzle/construct.d.ts +5 -0
- package/dist/types/kpuzzle/index.d.ts +6 -10
- package/dist/types/notation/CountAnimatedLeaves.d.ts +0 -1
- package/dist/types/notation/CountMoves.d.ts +0 -1
- package/dist/types/notation/index.d.ts +0 -1
- package/dist/types/protocol/binary/binary3x3x3.d.ts +5 -6
- package/dist/types/protocol/binary/binary3x3x3.spec.d.ts +0 -1
- package/dist/types/protocol/binary/hex.d.ts +0 -1
- package/dist/types/protocol/binary/hex.spec.d.ts +0 -1
- package/dist/types/protocol/binary/orbit-indexing.d.ts +0 -1
- package/dist/types/protocol/binary/orbit-indexing.spec.d.ts +0 -1
- package/dist/types/protocol/binary/puzzle-orientation.d.ts +4 -5
- package/dist/types/protocol/index.d.ts +0 -1
- package/dist/types/puzzle-geometry/FaceNameSwizzler.d.ts +0 -1
- package/dist/types/puzzle-geometry/Options.d.ts +0 -1
- package/dist/types/puzzle-geometry/PGPuzzles.d.ts +0 -1
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts +0 -1
- package/dist/types/puzzle-geometry/Perm.d.ts +0 -1
- package/dist/types/puzzle-geometry/PermOriSet.d.ts +4 -5
- package/dist/types/puzzle-geometry/PlatonicGenerator.d.ts +0 -1
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts +11 -5
- package/dist/types/puzzle-geometry/Quat.d.ts +0 -1
- package/dist/types/puzzle-geometry/Quat.spec.d.ts +0 -1
- package/dist/types/puzzle-geometry/SchreierSims.d.ts +0 -1
- package/dist/types/puzzle-geometry/index.d.ts +2 -2
- package/dist/types/puzzle-geometry/notation-mapping/FTONotationMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/FaceRenamingMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/MegaminxScramblingNotationMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/NotationMapper.d.ts +3 -2
- package/dist/types/puzzle-geometry/notation-mapping/NullMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/NxNxNCubeMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/PyraminxNotationMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/SkewbNotationMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/index.d.ts +0 -1
- package/dist/types/puzzle-geometry/orientcenters.spec.d.ts +0 -1
- package/dist/types/puzzles/PuzzleLoader.d.ts +3 -3
- package/dist/types/puzzles/async/async-pg3d.d.ts +3 -3
- package/dist/types/puzzles/async/lazy-cached-kpuzzle.d.ts +2 -0
- package/dist/types/puzzles/customPGPuzzleLoader.d.ts +2 -3
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.d.ts +1 -2
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/2x2x2/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/3x3x3/3x3x3-ll.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/3x3x3/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json.d.ts +1 -2
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/clock/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/fto/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/megaminx/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/pyraminx/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.d.ts +0 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/square1/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.d.ts +1 -2
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/index.d.ts +1 -2
- package/dist/types/puzzles/stickerings/appearance.d.ts +6 -7
- package/dist/types/puzzles/stickerings/cube-stickerings.d.ts +0 -1
- package/dist/types/puzzles/stickerings/fto-stickerings.d.ts +0 -1
- package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts +0 -1
- package/dist/types/puzzles/stickerings/megaminx-stickerings.d.ts +0 -1
- package/dist/types/scramble/index.d.ts +0 -1
- package/dist/types/search/esm-test-worker.d.ts +0 -1
- package/dist/types/search/index.d.ts +0 -1
- package/dist/types/search/inside/api.d.ts +6 -7
- package/dist/types/search/inside/api.spec.d.ts +0 -1
- package/dist/types/search/inside/entry.d.ts +0 -1
- package/dist/types/search/inside/inside-worker.d.ts +0 -1
- package/dist/types/search/inside/module-entry-path-getter.d.ts +1 -0
- package/dist/types/search/inside/module-entry.d.ts +1 -0
- package/dist/types/search/inside/solve/addOrientationSuffix.d.ts +0 -1
- package/dist/types/search/inside/solve/parseSGS.d.ts +3 -4
- package/dist/types/search/inside/solve/puzzles/2x2x2.d.ts +3 -4
- package/dist/types/search/inside/solve/puzzles/2x2x2.sgs.json.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/convert.d.ts +2 -3
- package/dist/types/search/inside/solve/puzzles/3x3x3/filter.d.ts +4 -4
- package/dist/types/search/inside/solve/puzzles/3x3x3/index.d.ts +3 -4
- package/dist/types/search/inside/solve/puzzles/3x3x3/legacy-sgs.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3-inefficient.sgs.json.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/4x4x4.d.ts +2 -2
- package/dist/types/search/inside/solve/puzzles/5x5x5.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/big-cubes.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/clock.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/fto.d.ts +5 -0
- package/dist/types/search/inside/solve/puzzles/fto.sgs.json.d.ts +2 -0
- package/dist/types/search/inside/solve/puzzles/megaminx.d.ts +2 -3
- package/dist/types/search/inside/solve/puzzles/megaminx.sgs.json.d.ts +2 -3
- package/dist/types/search/inside/solve/puzzles/pyraminx.d.ts +3 -4
- package/dist/types/search/inside/solve/puzzles/pyraminx.sgs.json.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/skewb.d.ts +3 -4
- package/dist/types/search/inside/solve/puzzles/skewb.sgs.json.d.ts +2 -3
- package/dist/types/search/inside/solve/puzzles/sq1.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/wca-minx.d.ts +0 -1
- package/dist/types/search/inside/solve/tremble.d.ts +6 -6
- package/dist/types/search/instantiator.d.ts +1 -3
- package/dist/types/search/outside.d.ts +6 -7
- package/dist/types/search/worker-inside-generated-string.d.ts +1 -2
- package/dist/types/stream/index.d.ts +0 -1
- package/dist/types/stream/process/ReorientedStream.d.ts +1 -3
- package/dist/types/stream/proxy-event.d.ts +0 -1
- package/dist/types/stream/twizzle/TwizzleStream.d.ts +0 -1
- package/dist/types/stream/twizzle/stream-types.d.ts +0 -1
- package/dist/types/stream/websocket-proxy.d.ts +0 -1
- package/dist/types/twisty/controllers/AnimationTypes.d.ts +2 -3
- package/dist/types/twisty/controllers/RenderScheduler.d.ts +0 -1
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts +0 -1
- package/dist/types/twisty/controllers/TwistyPlayerController.d.ts +0 -1
- package/dist/types/twisty/controllers/easing.d.ts +0 -1
- package/dist/types/twisty/controllers/indexer/AlgDuration.d.ts +0 -1
- package/dist/types/twisty/controllers/indexer/AlgIndexer.d.ts +6 -6
- package/dist/types/twisty/controllers/indexer/SimpleAlgIndexer.d.ts +7 -7
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts +8 -8
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts +9 -9
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/simul-moves.d.ts +0 -1
- package/dist/types/twisty/controllers/indexer/tree/AlgWalker.d.ts +36 -37
- package/dist/types/twisty/controllers/indexer/tree/TreeAlgIndexer.d.ts +7 -7
- package/dist/types/twisty/controllers/indexer/tree/chunkAlgs.d.ts +0 -1
- package/dist/types/twisty/controllers/stream/timeline-move-calculation-draft.d.ts +0 -1
- package/dist/types/twisty/heavy-code-imports/3d.d.ts +0 -1
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts +0 -1
- package/dist/types/twisty/index.d.ts +1 -2
- package/dist/types/twisty/model/PromiseFreshener.d.ts +0 -1
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts +6 -7
- package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts +0 -1
- package/dist/types/twisty/model/helpers.d.ts +0 -1
- package/dist/types/twisty/model/props/TwistyProp.d.ts +0 -1
- package/dist/types/twisty/model/props/TwistyProp.spec.d.ts +0 -1
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts +0 -1
- package/dist/types/twisty/model/props/general/URLProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/display/FoundationDisplayProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts +2 -1
- package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts +5 -8
- package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts +5 -7
- package/dist/types/twisty/model/props/puzzle/state/CatchUpMoveProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/{CurrentLeavesProp.d.ts → CurrentMoveInfoProp.d.ts} +2 -3
- package/dist/types/twisty/model/props/puzzle/state/CurrentStateProp.d.ts +14 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts +7 -8
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts +5 -6
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts +2 -3
- package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts +6 -2
- package/dist/types/twisty/model/props/puzzle/state/NaiveMoveCountProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts +4 -5
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/KPuzzleProp.d.ts +10 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts +0 -1
- package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts +0 -1
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts +0 -1
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts +0 -1
- package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts +0 -1
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts +2 -3
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts +0 -1
- package/dist/types/twisty/views/2D/KPuzzleSVGWrapper.d.ts +17 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.css.d.ts +0 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts +4 -4
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts +0 -1
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts +0 -1
- package/dist/types/twisty/views/3D/DragTracker.d.ts +0 -1
- package/dist/types/twisty/views/3D/RendererPool.d.ts +0 -1
- package/dist/types/twisty/views/3D/TAU.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DRenderTarget.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DScene.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DVantage.css.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts +0 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControls.d.ts +0 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControls.spec.d.ts +0 -1
- package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts +4 -5
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts +5 -6
- package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts +0 -1
- package/dist/types/twisty/views/ClassListManager.d.ts +0 -1
- package/dist/types/twisty/views/ManagedCustomElement.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgViewer.d.ts +0 -1
- package/dist/types/twisty/views/TwistyPlayer.css.d.ts +0 -1
- package/dist/types/twisty/views/TwistyPlayer.d.ts +0 -1
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts +0 -1
- package/dist/types/twisty/views/TwistyViewerWrapper.css.d.ts +0 -1
- package/dist/types/twisty/views/canvas.d.ts +0 -1
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.css.d.ts +0 -1
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts +0 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubber.css.d.ts +0 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts +0 -1
- package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts +0 -1
- package/dist/types/twisty/views/document.d.ts +0 -1
- package/dist/types/twisty/views/node-custom-element-shims.d.ts +0 -1
- package/dist/types/twisty/views/screenshot.d.ts +0 -1
- package/dist/types/twisty/views/stream/TwistyStreamSource.css.d.ts +0 -1
- package/dist/types/twisty/views/stream/TwistyStreamSource.d.ts +0 -1
- package/{src/cubing/search → dist/types}/vendor/comlink-everywhere/inside/index.d.ts +0 -0
- package/dist/types/{search/vendor → vendor}/comlink-everywhere/inside/node.d.ts +0 -1
- package/dist/types/{search/vendor → vendor}/comlink-everywhere/outside/index.d.ts +0 -1
- package/dist/types/{search/vendor → vendor}/comlink-everywhere/outside/node.d.ts +0 -1
- package/dist/types/{search/inside/solve/vendor → vendor}/cstimer/src/js/lib/mathlib.d.ts +0 -1
- package/dist/types/{search/inside/solve/vendor → vendor}/cstimer/src/js/scramble/scramble_444.d.ts +1 -2
- package/dist/types/{search/inside/solve/vendor → vendor}/min2phase/gwt.d.ts +0 -1
- package/dist/types/vendor/p-lazy/p-lazy.d.ts +0 -1
- package/dist/types/{search/inside/solve/vendor → vendor}/random-uint-below/get-random-values.d.ts +0 -1
- package/dist/types/{search/inside/solve/vendor → vendor}/random-uint-below/index.d.ts +1 -2
- package/dist/types/{search/inside/solve/vendor → vendor}/random-uint-below/random-choice.d.ts +0 -1
- package/dist/types/{search/inside/solve/vendor/random-uint-below/random-int.d.ts → vendor/random-uint-below/random53BitValue.d.ts} +0 -1
- package/dist/types/{search/inside/solve/vendor → vendor}/sq12phase/scramble_sq1.d.ts +0 -1
- package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts +0 -1
- package/dist/types/{bluetooth/smart-puzzle → vendor/unsafe-raw-aes}/unsafe-raw-aes.d.ts +0 -1
- package/kpuzzle/package.json +1 -3
- package/notation/package.json +1 -3
- package/package.json +11 -17
- package/protocol/package.json +1 -3
- package/puzzle-geometry/package.json +1 -3
- package/puzzles/package.json +1 -3
- package/scramble/package.json +1 -3
- package/search/package.json +1 -3
- package/stream/package.json +1 -3
- package/twisty/package.json +1 -3
- package/alg/index.d.ts +0 -1
- package/bluetooth/index.d.ts +0 -1
- package/dist/.DS_Store +0 -0
- package/dist/bin/puzzle-geometry-bin.js.map +0 -7
- package/dist/bundle-global/cubing.bundle-global.js +0 -7419
- package/dist/esm/2x2x2.kpuzzle.json-JOGUSQ4N.js.map +0 -7
- package/dist/esm/chunk-7KI3I3Y7.js +0 -1379
- package/dist/esm/chunk-7KI3I3Y7.js.map +0 -7
- package/dist/esm/chunk-DLN5QS4V.js.map +0 -7
- package/dist/esm/chunk-HXKINJ7U.js.map +0 -7
- package/dist/esm/chunk-X6JHXPDX.js +0 -2359
- package/dist/esm/chunk-X6JHXPDX.js.map +0 -7
- package/dist/esm/clock.kpuzzle.json-EKWRMHJM.js.map +0 -7
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/node-WEHVBEKP.js.map +0 -7
- package/dist/esm/sq1-hyperorbit.kpuzzle.json-N3FGCPML.js.map +0 -7
- package/dist/esm/worker-inside-generated-string-ZA6E6672.js +0 -2831
- package/dist/esm/worker-inside-generated-string-ZA6E6672.js.map +0 -7
- package/dist/types/alg/Alg.d.ts.map +0 -1
- package/dist/types/alg/Alg.spec.d.ts.map +0 -1
- package/dist/types/alg/AlgBuilder.d.ts.map +0 -1
- package/dist/types/alg/Serializable.d.ts.map +0 -1
- package/dist/types/alg/common.d.ts.map +0 -1
- package/dist/types/alg/debug.d.ts.map +0 -1
- package/dist/types/alg/example.d.ts.map +0 -1
- package/dist/types/alg/index.d.ts.map +0 -1
- package/dist/types/alg/is.d.ts.map +0 -1
- package/dist/types/alg/iteration.d.ts.map +0 -1
- package/dist/types/alg/keyboard.d.ts.map +0 -1
- package/dist/types/alg/limits.d.ts.map +0 -1
- package/dist/types/alg/operation.d.ts.map +0 -1
- package/dist/types/alg/operation.spec.d.ts.map +0 -1
- package/dist/types/alg/parse.d.ts.map +0 -1
- package/dist/types/alg/parse.spec.d.ts.map +0 -1
- package/dist/types/alg/test/alg-comparison.d.ts.map +0 -1
- package/dist/types/alg/test/alg.spec.d.ts.map +0 -1
- package/dist/types/alg/traversal.d.ts.map +0 -1
- package/dist/types/alg/units/QuantumWithAmount.d.ts.map +0 -1
- package/dist/types/alg/units/Unit.d.ts.map +0 -1
- package/dist/types/alg/units/containers/Commutator.d.ts.map +0 -1
- package/dist/types/alg/units/containers/Conjugate.d.ts.map +0 -1
- package/dist/types/alg/units/containers/Grouping.d.ts.map +0 -1
- package/dist/types/alg/units/index.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/LineComment.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/LineComment.spec.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/Move.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/Move.spec.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/Newline.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/Pause.d.ts.map +0 -1
- package/dist/types/alg/url.d.ts.map +0 -1
- package/dist/types/alg/url.spec.d.ts.map +0 -1
- package/dist/types/alg/validation.d.ts.map +0 -1
- package/dist/types/alg/warnOnce.d.ts.map +0 -1
- package/dist/types/bluetooth/connect/index.d.ts.map +0 -1
- package/dist/types/bluetooth/debug.d.ts.map +0 -1
- package/dist/types/bluetooth/index.d.ts.map +0 -1
- package/dist/types/bluetooth/keyboard.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/Heykube.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/connect.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/endianness.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/gan.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/giiker.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/gocube.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/unsafe-raw-aes.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-robot/GanRobot.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-robot/index.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-timer/GanTimer.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-timer/index.d.ts.map +0 -1
- package/dist/types/bluetooth/transformer.d.ts.map +0 -1
- package/dist/types/cubing.bundle-global.d.ts.map +0 -1
- package/dist/types/esm-test-worker.d.ts.map +0 -1
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts.map +0 -1
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts.map +0 -1
- package/dist/types/kpuzzle/canon.spec.d.ts +0 -2
- package/dist/types/kpuzzle/canon.spec.d.ts.map +0 -1
- package/dist/types/kpuzzle/canonicalize.d.ts +0 -55
- package/dist/types/kpuzzle/canonicalize.d.ts.map +0 -1
- package/dist/types/kpuzzle/definition_types.d.ts +0 -19
- package/dist/types/kpuzzle/definition_types.d.ts.map +0 -1
- package/dist/types/kpuzzle/index.d.ts.map +0 -1
- package/dist/types/kpuzzle/kpuzzle.d.ts +0 -17
- package/dist/types/kpuzzle/kpuzzle.d.ts.map +0 -1
- package/dist/types/kpuzzle/kpuzzle.spec.d.ts +0 -2
- package/dist/types/kpuzzle/kpuzzle.spec.d.ts.map +0 -1
- package/dist/types/kpuzzle/move_notation.d.ts +0 -6
- package/dist/types/kpuzzle/move_notation.d.ts.map +0 -1
- package/dist/types/kpuzzle/parser/index.d.ts +0 -2
- package/dist/types/kpuzzle/parser/index.d.ts.map +0 -1
- package/dist/types/kpuzzle/parser/parser-peggy.d.ts +0 -15
- package/dist/types/kpuzzle/parser/parser-peggy.d.ts.map +0 -1
- package/dist/types/kpuzzle/parser/parser-shim.d.ts +0 -4
- package/dist/types/kpuzzle/parser/parser-shim.d.ts.map +0 -1
- package/dist/types/kpuzzle/parser/parser.d.ts +0 -1
- package/dist/types/kpuzzle/parser/parser.d.ts.map +0 -1
- package/dist/types/kpuzzle/prunetable.spec.d.ts +0 -2
- package/dist/types/kpuzzle/prunetable.spec.d.ts.map +0 -1
- package/dist/types/kpuzzle/pruningtable.d.ts +0 -16
- package/dist/types/kpuzzle/pruningtable.d.ts.map +0 -1
- package/dist/types/kpuzzle/puzzle-orientation.d.ts +0 -5
- package/dist/types/kpuzzle/puzzle-orientation.d.ts.map +0 -1
- package/dist/types/kpuzzle/svg.d.ts +0 -18
- package/dist/types/kpuzzle/svg.d.ts.map +0 -1
- package/dist/types/kpuzzle/transformations.d.ts +0 -13
- package/dist/types/kpuzzle/transformations.d.ts.map +0 -1
- package/dist/types/kpuzzle/transformations.spec.d.ts +0 -2
- package/dist/types/kpuzzle/transformations.spec.d.ts.map +0 -1
- package/dist/types/notation/CountAnimatedLeaves.d.ts.map +0 -1
- package/dist/types/notation/CountMoves.d.ts.map +0 -1
- package/dist/types/notation/index.d.ts.map +0 -1
- package/dist/types/protocol/binary/binary3x3x3.d.ts.map +0 -1
- package/dist/types/protocol/binary/binary3x3x3.spec.d.ts.map +0 -1
- package/dist/types/protocol/binary/hex.d.ts.map +0 -1
- package/dist/types/protocol/binary/hex.spec.d.ts.map +0 -1
- package/dist/types/protocol/binary/orbit-indexing.d.ts.map +0 -1
- package/dist/types/protocol/binary/orbit-indexing.spec.d.ts.map +0 -1
- package/dist/types/protocol/binary/puzzle-orientation.d.ts.map +0 -1
- package/dist/types/protocol/index.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/FaceNameSwizzler.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/Options.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/PGPuzzles.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/Perm.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/PermOriSet.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/PlatonicGenerator.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/Quat.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/Quat.spec.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/SchreierSims.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/index.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/interfaces.d.ts +0 -6
- package/dist/types/puzzle-geometry/interfaces.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/FTONotationMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/FaceRenamingMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/MegaminxScramblingNotationMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/NotationMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/NullMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/NxNxNCubeMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/PyraminxNotationMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/SkewbNotationMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/index.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/orientcenters.spec.d.ts.map +0 -1
- package/dist/types/puzzles/PuzzleLoader.d.ts.map +0 -1
- package/dist/types/puzzles/async/async-pg3d.d.ts.map +0 -1
- package/dist/types/puzzles/customPGPuzzleLoader.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/2x2x2/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/3x3x3/3x3x3-ll.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/3x3x3/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/clock/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/fto/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/megaminx/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/pyraminx/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/square1/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/index.d.ts.map +0 -1
- package/dist/types/puzzles/stickerings/appearance.d.ts.map +0 -1
- package/dist/types/puzzles/stickerings/cube-stickerings.d.ts.map +0 -1
- package/dist/types/puzzles/stickerings/fto-stickerings.d.ts.map +0 -1
- package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts.map +0 -1
- package/dist/types/puzzles/stickerings/megaminx-stickerings.d.ts.map +0 -1
- package/dist/types/scramble/index.d.ts.map +0 -1
- package/dist/types/search/esm-test-worker.d.ts.map +0 -1
- package/dist/types/search/index.d.ts.map +0 -1
- package/dist/types/search/inside/api.d.ts.map +0 -1
- package/dist/types/search/inside/api.spec.d.ts.map +0 -1
- package/dist/types/search/inside/entry.d.ts.map +0 -1
- package/dist/types/search/inside/inside-worker.d.ts.map +0 -1
- package/dist/types/search/inside/solve/addOrientationSuffix.d.ts.map +0 -1
- package/dist/types/search/inside/solve/parseSGS.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/2x2x2.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/2x2x2.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/convert.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/filter.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/index.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/legacy-sgs.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3-inefficient.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/4x4x4.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/5x5x5.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/big-cubes.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/clock.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/megaminx.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/megaminx.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/pyraminx.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/pyraminx.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/skewb.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/skewb.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/sq1.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/wca-minx.d.ts.map +0 -1
- package/dist/types/search/inside/solve/tremble.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/lib/mathlib.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/scramble/scramble_444.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/min2phase/gwt.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/random-uint-below/get-random-values.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/random-uint-below/index.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/random-uint-below/random-choice.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/random-uint-below/random-int.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/sq12phase/scramble_sq1.d.ts.map +0 -1
- package/dist/types/search/instantiator.d.ts.map +0 -1
- package/dist/types/search/outside.d.ts.map +0 -1
- package/dist/types/search/vendor/comlink-everywhere/inside/index.d.ts +0 -2
- package/dist/types/search/vendor/comlink-everywhere/inside/index.d.ts.map +0 -1
- package/dist/types/search/vendor/comlink-everywhere/inside/node.d.ts.map +0 -1
- package/dist/types/search/vendor/comlink-everywhere/outside/index.d.ts.map +0 -1
- package/dist/types/search/vendor/comlink-everywhere/outside/node.d.ts.map +0 -1
- package/dist/types/search/worker-inside-generated-string.d.ts.map +0 -1
- package/dist/types/stream/index.d.ts.map +0 -1
- package/dist/types/stream/process/ReorientedStream.d.ts.map +0 -1
- package/dist/types/stream/proxy-event.d.ts.map +0 -1
- package/dist/types/stream/twizzle/TwizzleStream.d.ts.map +0 -1
- package/dist/types/stream/twizzle/stream-types.d.ts.map +0 -1
- package/dist/types/stream/websocket-proxy.d.ts.map +0 -1
- package/dist/types/twisty/controllers/AnimationTypes.d.ts.map +0 -1
- package/dist/types/twisty/controllers/RenderScheduler.d.ts.map +0 -1
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts.map +0 -1
- package/dist/types/twisty/controllers/TwistyPlayerController.d.ts.map +0 -1
- package/dist/types/twisty/controllers/easing.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/AlgDuration.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/AlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/SimpleAlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/simul-moves.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/tree/AlgWalker.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/tree/TreeAlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/tree/chunkAlgs.d.ts.map +0 -1
- package/dist/types/twisty/controllers/stream/timeline-move-calculation-draft.d.ts.map +0 -1
- package/dist/types/twisty/heavy-code-imports/3d.d.ts.map +0 -1
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts.map +0 -1
- package/dist/types/twisty/index.d.ts.map +0 -1
- package/dist/types/twisty/model/PromiseFreshener.d.ts.map +0 -1
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts.map +0 -1
- package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts.map +0 -1
- package/dist/types/twisty/model/helpers.d.ts.map +0 -1
- package/dist/types/twisty/model/props/TwistyProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/TwistyProp.spec.d.ts.map +0 -1
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts.map +0 -1
- package/dist/types/twisty/model/props/general/URLProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/display/FoundationDisplayProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/CatchUpMoveProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts +0 -15
- package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/NaiveMoveCountProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDefProp.d.ts +0 -11
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDefProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts.map +0 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.css.d.ts.map +0 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts.map +0 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts.map +0 -1
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/DragTracker.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/RendererPool.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/TAU.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DRenderTarget.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DScene.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DVantage.css.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControls.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControls.spec.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/puzzles/KPuzzleWrapper.d.ts +0 -48
- package/dist/types/twisty/views/3D/puzzles/KPuzzleWrapper.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts.map +0 -1
- package/dist/types/twisty/views/ClassListManager.d.ts.map +0 -1
- package/dist/types/twisty/views/ManagedCustomElement.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgViewer.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyPlayer.css.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyPlayer.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyViewerWrapper.css.d.ts.map +0 -1
- package/dist/types/twisty/views/canvas.d.ts.map +0 -1
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.css.d.ts.map +0 -1
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts.map +0 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubber.css.d.ts.map +0 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts.map +0 -1
- package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts.map +0 -1
- package/dist/types/twisty/views/document.d.ts.map +0 -1
- package/dist/types/twisty/views/node-custom-element-shims.d.ts.map +0 -1
- package/dist/types/twisty/views/screenshot.d.ts.map +0 -1
- package/dist/types/twisty/views/stream/TwistyStreamSource.css.d.ts.map +0 -1
- package/dist/types/twisty/views/stream/TwistyStreamSource.d.ts.map +0 -1
- package/dist/types/vendor/p-lazy/p-lazy.d.ts.map +0 -1
- package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts.map +0 -1
- package/docs/.DS_Store +0 -0
- package/docs/CNAME +0 -1
- package/docs/cubing/.DS_Store +0 -0
- package/docs/cubing/alg/index.html +0 -174
- package/docs/cubing/api/index.html +0 -158
- package/docs/cubing/index.html +0 -151
- package/docs/cubing/scramble/index.html +0 -138
- package/docs/cubing/twisty/index.html +0 -329
- package/docs/favicon.ico +0 -0
- package/docs/index.html +0 -20
- package/docs/main.css +0 -192
- package/kpuzzle/index.d.ts +0 -1
- package/notation/index.d.ts +0 -1
- package/protocol/index.d.ts +0 -1
- package/puzzle-geometry/index.d.ts +0 -1
- package/puzzles/index.d.ts +0 -1
- package/scramble/index.d.ts +0 -1
- package/search/index.d.ts +0 -1
- package/src/cubing/.DS_Store +0 -0
- package/src/cubing/alg/Alg.spec.ts +0 -10
- package/src/cubing/alg/Alg.ts +0 -290
- package/src/cubing/alg/AlgBuilder.ts +0 -33
- package/src/cubing/alg/Serializable.ts +0 -29
- package/src/cubing/alg/common.ts +0 -59
- package/src/cubing/alg/debug.ts +0 -27
- package/src/cubing/alg/example.ts +0 -152
- package/src/cubing/alg/index.ts +0 -21
- package/src/cubing/alg/is.ts +0 -38
- package/src/cubing/alg/iteration.ts +0 -45
- package/src/cubing/alg/keyboard.ts +0 -48
- package/src/cubing/alg/limits.ts +0 -4
- package/src/cubing/alg/operation.spec.ts +0 -48
- package/src/cubing/alg/operation.ts +0 -36
- package/src/cubing/alg/parse.spec.ts +0 -75
- package/src/cubing/alg/parse.ts +0 -408
- package/src/cubing/alg/test/alg-comparison.ts +0 -23
- package/src/cubing/alg/test/alg.spec.ts +0 -348
- package/src/cubing/alg/traversal.ts +0 -284
- package/src/cubing/alg/units/QuantumWithAmount.ts +0 -55
- package/src/cubing/alg/units/Unit.ts +0 -11
- package/src/cubing/alg/units/containers/Commutator.ts +0 -85
- package/src/cubing/alg/units/containers/Conjugate.ts +0 -53
- package/src/cubing/alg/units/containers/Grouping.ts +0 -116
- package/src/cubing/alg/units/index.ts +0 -8
- package/src/cubing/alg/units/leaves/LineComment.spec.ts +0 -35
- package/src/cubing/alg/units/leaves/LineComment.ts +0 -48
- package/src/cubing/alg/units/leaves/Move.spec.ts +0 -15
- package/src/cubing/alg/units/leaves/Move.ts +0 -265
- package/src/cubing/alg/units/leaves/Newline.ts +0 -24
- package/src/cubing/alg/units/leaves/Pause.ts +0 -24
- package/src/cubing/alg/url.spec.ts +0 -10
- package/src/cubing/alg/url.ts +0 -133
- package/src/cubing/alg/validation.ts +0 -62
- package/src/cubing/alg/warnOnce.ts +0 -7
- package/src/cubing/bluetooth/connect/index.ts +0 -93
- package/src/cubing/bluetooth/debug.ts +0 -18
- package/src/cubing/bluetooth/docs/gan-robot.md +0 -60
- package/src/cubing/bluetooth/docs/gan356i.md +0 -309
- package/src/cubing/bluetooth/index.ts +0 -19
- package/src/cubing/bluetooth/keyboard.ts +0 -55
- package/src/cubing/bluetooth/smart-puzzle/Heykube.ts +0 -165
- package/src/cubing/bluetooth/smart-puzzle/bluetooth-puzzle.ts +0 -95
- package/src/cubing/bluetooth/smart-puzzle/connect.ts +0 -19
- package/src/cubing/bluetooth/smart-puzzle/endianness.ts +0 -15
- package/src/cubing/bluetooth/smart-puzzle/gan.ts +0 -481
- package/src/cubing/bluetooth/smart-puzzle/giiker.spec.ts +0 -28
- package/src/cubing/bluetooth/smart-puzzle/giiker.ts +0 -277
- package/src/cubing/bluetooth/smart-puzzle/gocube.ts +0 -167
- package/src/cubing/bluetooth/smart-puzzle/unsafe-raw-aes.ts +0 -66
- package/src/cubing/bluetooth/smart-robot/GanRobot.ts +0 -311
- package/src/cubing/bluetooth/smart-robot/index.ts +0 -13
- package/src/cubing/bluetooth/smart-timer/GanTimer.ts +0 -141
- package/src/cubing/bluetooth/smart-timer/index.ts +0 -13
- package/src/cubing/bluetooth/transformer.ts +0 -74
- package/src/cubing/esm-test-worker.js +0 -5
- package/src/cubing/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.ts +0 -40
- package/src/cubing/kpuzzle/3x3x3/3x3x3.kpuzzle.json.ts +0 -339
- package/src/cubing/kpuzzle/canon.spec.ts +0 -48
- package/src/cubing/kpuzzle/canonicalize.ts +0 -325
- package/src/cubing/kpuzzle/definition_types.ts +0 -23
- package/src/cubing/kpuzzle/index.ts +0 -33
- package/src/cubing/kpuzzle/kpuzzle.spec.ts +0 -12
- package/src/cubing/kpuzzle/kpuzzle.ts +0 -124
- package/src/cubing/kpuzzle/move_notation.ts +0 -9
- package/src/cubing/kpuzzle/parser/index.ts +0 -1
- package/src/cubing/kpuzzle/parser/parser-peggy.js +0 -1221
- package/src/cubing/kpuzzle/parser/parser-peggy.peggy +0 -72
- package/src/cubing/kpuzzle/parser/parser-shim.ts +0 -11
- package/src/cubing/kpuzzle/parser/parser.js +0 -0
- package/src/cubing/kpuzzle/prunetable.spec.ts +0 -19
- package/src/cubing/kpuzzle/pruningtable.ts +0 -99
- package/src/cubing/kpuzzle/puzzle-orientation.ts +0 -34
- package/src/cubing/kpuzzle/svg.ts +0 -290
- package/src/cubing/kpuzzle/transformations.spec.ts +0 -75
- package/src/cubing/kpuzzle/transformations.ts +0 -258
- package/src/cubing/notation/CountAnimatedLeaves.ts +0 -56
- package/src/cubing/notation/CountMoves.ts +0 -89
- package/src/cubing/notation/index.ts +0 -4
- package/src/cubing/protocol/binary/binary3x3x3.spec.ts +0 -143
- package/src/cubing/protocol/binary/binary3x3x3.ts +0 -226
- package/src/cubing/protocol/binary/hex.spec.ts +0 -17
- package/src/cubing/protocol/binary/hex.ts +0 -12
- package/src/cubing/protocol/binary/orbit-indexing.spec.ts +0 -49
- package/src/cubing/protocol/binary/orbit-indexing.ts +0 -68
- package/src/cubing/protocol/binary/puzzle-orientation.ts +0 -69
- package/src/cubing/protocol/index.ts +0 -12
- package/src/cubing/puzzle-geometry/FaceNameSwizzler.ts +0 -148
- package/src/cubing/puzzle-geometry/Options.ts +0 -179
- package/src/cubing/puzzle-geometry/PGPuzzles.spec.ts +0 -127
- package/src/cubing/puzzle-geometry/PGPuzzles.ts +0 -80
- package/src/cubing/puzzle-geometry/Perm.ts +0 -154
- package/src/cubing/puzzle-geometry/PermOriSet.ts +0 -765
- package/src/cubing/puzzle-geometry/PlatonicGenerator.ts +0 -146
- package/src/cubing/puzzle-geometry/PuzzleGeometry.ts +0 -3009
- package/src/cubing/puzzle-geometry/Quat.spec.ts +0 -10
- package/src/cubing/puzzle-geometry/Quat.ts +0 -325
- package/src/cubing/puzzle-geometry/SchreierSims.ts +0 -144
- package/src/cubing/puzzle-geometry/index.ts +0 -17
- package/src/cubing/puzzle-geometry/interfaces.ts +0 -6
- package/src/cubing/puzzle-geometry/notation-mapping/FTONotationMapper.ts +0 -38
- package/src/cubing/puzzle-geometry/notation-mapping/FaceRenamingMapper.ts +0 -59
- package/src/cubing/puzzle-geometry/notation-mapping/MegaminxScramblingNotationMapper.ts +0 -50
- package/src/cubing/puzzle-geometry/notation-mapping/NotationMapper.ts +0 -6
- package/src/cubing/puzzle-geometry/notation-mapping/NullMapper.ts +0 -12
- package/src/cubing/puzzle-geometry/notation-mapping/NxNxNCubeMapper.ts +0 -77
- package/src/cubing/puzzle-geometry/notation-mapping/PyraminxNotationMapper.ts +0 -121
- package/src/cubing/puzzle-geometry/notation-mapping/SkewbNotationMapper.ts +0 -103
- package/src/cubing/puzzle-geometry/notation-mapping/index.ts +0 -13
- package/src/cubing/puzzle-geometry/orientcenters.spec.ts +0 -55
- package/src/cubing/puzzles/PuzzleLoader.ts +0 -20
- package/src/cubing/puzzles/async/async-pg3d.ts +0 -73
- package/src/cubing/puzzles/customPGPuzzleLoader.ts +0 -60
- package/src/cubing/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.ts +0 -92
- package/src/cubing/puzzles/implementations/2x2x2/2x2x2.kpuzzle.svg.ts +0 -45
- package/src/cubing/puzzles/implementations/2x2x2/index.ts +0 -25
- package/src/cubing/puzzles/implementations/2x2x2/svg/2x2x2.kpuzzle.svg +0 -45
- package/src/cubing/puzzles/implementations/3x3x3/3x3x3-ll.kpuzzle.svg.ts +0 -108
- package/src/cubing/puzzles/implementations/3x3x3/3x3x3.kpuzzle.svg.ts +0 -128
- package/src/cubing/puzzles/implementations/3x3x3/index.ts +0 -33
- package/src/cubing/puzzles/implementations/3x3x3/src/3x3x3-ll.kpuzzle.svg +0 -108
- package/src/cubing/puzzles/implementations/3x3x3/src/3x3x3.kpuzzle.svg +0 -128
- package/src/cubing/puzzles/implementations/TODO/svg/alg/3x3x3.kpuzzle.original.svg +0 -128
- package/src/cubing/puzzles/implementations/TODO/svg/alg/3x3x3.kpuzzle.outlined.svg +0 -486
- package/src/cubing/puzzles/implementations/TODO/svg/alg/3x3x3.kpuzzle.spaced.svg +0 -128
- package/src/cubing/puzzles/implementations/clock/clock.kpuzzle.json.ts +0 -241
- package/src/cubing/puzzles/implementations/clock/clock.kpuzzle.svg.ts +0 -369
- package/src/cubing/puzzles/implementations/clock/index.ts +0 -14
- package/src/cubing/puzzles/implementations/clock/src/clock.kpuzzle.svg +0 -369
- package/src/cubing/puzzles/implementations/fto/index.ts +0 -28
- package/src/cubing/puzzles/implementations/megaminx/index.ts +0 -20
- package/src/cubing/puzzles/implementations/pyraminx/index.ts +0 -18
- package/src/cubing/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.ts +0 -84
- package/src/cubing/puzzles/implementations/pyraminx/pyraminx.kpuzzle.svg.ts +0 -88
- package/src/cubing/puzzles/implementations/pyraminx/src/pyraminx.kpuzzle.svg +0 -87
- package/src/cubing/puzzles/implementations/square1/index.ts +0 -14
- package/src/cubing/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.ts +0 -62
- package/src/cubing/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.svg.ts +0 -295
- package/src/cubing/puzzles/implementations/square1/src/sq1-hyperorbit.kpuzzle.svg +0 -295
- package/src/cubing/puzzles/implementations/square1/src/sq1-simple.svg +0 -60
- package/src/cubing/puzzles/index.ts +0 -92
- package/src/cubing/puzzles/stickerings/appearance.ts +0 -292
- package/src/cubing/puzzles/stickerings/cube-stickerings.ts +0 -286
- package/src/cubing/puzzles/stickerings/fto-stickerings.ts +0 -105
- package/src/cubing/puzzles/stickerings/global-custom-stickering-hack.ts +0 -61
- package/src/cubing/puzzles/stickerings/megaminx-stickerings.ts +0 -26
- package/src/cubing/scramble/index.ts +0 -1
- package/src/cubing/search/.gitignore +0 -1
- package/src/cubing/search/esm-test-worker.js +0 -14
- package/src/cubing/search/index.ts +0 -12
- package/src/cubing/search/inside/api.spec.ts +0 -37
- package/src/cubing/search/inside/api.ts +0 -171
- package/src/cubing/search/inside/entry.js +0 -4
- package/src/cubing/search/inside/inside-worker.ts +0 -13
- package/src/cubing/search/inside/solve/addOrientationSuffix.ts +0 -17
- package/src/cubing/search/inside/solve/parseSGS.ts +0 -119
- package/src/cubing/search/inside/solve/puzzles/2x2x2.ts +0 -92
- package/src/cubing/search/inside/solve/puzzles/3x3x3/convert.ts +0 -137
- package/src/cubing/search/inside/solve/puzzles/3x3x3/filter.ts +0 -60
- package/src/cubing/search/inside/solve/puzzles/3x3x3/index.ts +0 -57
- package/src/cubing/search/inside/solve/puzzles/3x3x3/legacy-sgs.ts +0 -291
- package/src/cubing/search/inside/solve/puzzles/3x3x3-inefficient.sgs.json.ts +0 -272
- package/src/cubing/search/inside/solve/puzzles/4x4x4.ts +0 -16
- package/src/cubing/search/inside/solve/puzzles/5x5x5.ts +0 -12
- package/src/cubing/search/inside/solve/puzzles/FTO.sgs +0 -264
- package/src/cubing/search/inside/solve/puzzles/big-cubes.ts +0 -78
- package/src/cubing/search/inside/solve/puzzles/clock.ts +0 -48
- package/src/cubing/search/inside/solve/puzzles/megaminx.ts +0 -51
- package/src/cubing/search/inside/solve/puzzles/pyraminx.ts +0 -48
- package/src/cubing/search/inside/solve/puzzles/sgs-defs.spec.ts +0 -27
- package/src/cubing/search/inside/solve/puzzles/skewb.sgs.json.ts +0 -113
- package/src/cubing/search/inside/solve/puzzles/skewb.ts +0 -65
- package/src/cubing/search/inside/solve/puzzles/sq1.ts +0 -6
- package/src/cubing/search/inside/solve/puzzles/wca-minx.ts +0 -32
- package/src/cubing/search/inside/solve/tremble.ts +0 -212
- package/src/cubing/search/inside/solve/vendor/cstimer/LICENSE +0 -674
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/lib/mathlib.ts +0 -54
- package/src/cubing/search/inside/solve/vendor/min2phase/gwt.d.ts +0 -2
- package/src/cubing/search/inside/solve/vendor/random-uint-below/get-random-values.ts +0 -38
- package/src/cubing/search/inside/solve/vendor/random-uint-below/index.ts +0 -12
- package/src/cubing/search/inside/solve/vendor/random-uint-below/random-choice.ts +0 -9
- package/src/cubing/search/inside/solve/vendor/random-uint-below/random-int.ts +0 -64
- package/src/cubing/search/instantiator.ts +0 -60
- package/src/cubing/search/outside.ts +0 -110
- package/src/cubing/search/vendor/comlink-everywhere/comlink-everywhere.webloc +0 -8
- package/src/cubing/search/vendor/comlink-everywhere/inside/index.js +0 -16
- package/src/cubing/search/vendor/comlink-everywhere/inside/node.js +0 -6
- package/src/cubing/search/vendor/comlink-everywhere/outside/index.d.ts +0 -6
- package/src/cubing/search/vendor/comlink-everywhere/outside/index.js +0 -31
- package/src/cubing/search/vendor/comlink-everywhere/outside/node.js +0 -41
- package/src/cubing/search/worker-inside-generated-string.js +0 -1
- package/src/cubing/stream/index.ts +0 -12
- package/src/cubing/stream/process/ReorientedStream.ts +0 -93
- package/src/cubing/stream/proxy-event.ts +0 -16
- package/src/cubing/stream/twizzle/TwizzleStream.ts +0 -53
- package/src/cubing/stream/twizzle/stream-types.ts +0 -45
- package/src/cubing/stream/websocket-proxy.ts +0 -73
- package/src/cubing/twisty/.DS_Store +0 -0
- package/src/cubing/twisty/controllers/.DS_Store +0 -0
- package/src/cubing/twisty/controllers/AnimationTypes.ts +0 -50
- package/src/cubing/twisty/controllers/RenderScheduler.ts +0 -28
- package/src/cubing/twisty/controllers/TwistyAnimationController.ts +0 -325
- package/src/cubing/twisty/controllers/TwistyPlayerController.ts +0 -38
- package/src/cubing/twisty/controllers/animation/.DS_Store +0 -0
- package/src/cubing/twisty/controllers/easing.ts +0 -3
- package/src/cubing/twisty/controllers/indexer/.DS_Store +0 -0
- package/src/cubing/twisty/controllers/indexer/AlgDuration.ts +0 -94
- package/src/cubing/twisty/controllers/indexer/AlgIndexer.ts +0 -87
- package/src/cubing/twisty/controllers/indexer/SimpleAlgIndexer.ts +0 -76
- package/src/cubing/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.ts +0 -181
- package/src/cubing/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.ts +0 -243
- package/src/cubing/twisty/controllers/indexer/simultaneous-moves/simul-moves.ts +0 -193
- package/src/cubing/twisty/controllers/indexer/tree/AlgWalker.ts +0 -439
- package/src/cubing/twisty/controllers/indexer/tree/TreeAlgIndexer.ts +0 -97
- package/src/cubing/twisty/controllers/indexer/tree/chunkAlgs.ts +0 -81
- package/src/cubing/twisty/controllers/stream/timeline-move-calculation-draft.spec.ts.TODO +0 -59
- package/src/cubing/twisty/controllers/stream/timeline-move-calculation-draft.ts +0 -162
- package/src/cubing/twisty/heavy-code-imports/.DS_Store +0 -0
- package/src/cubing/twisty/heavy-code-imports/3d.ts +0 -18
- package/src/cubing/twisty/heavy-code-imports/dynamic-entries/3d.ts +0 -31
- package/src/cubing/twisty/index.ts +0 -24
- package/src/cubing/twisty/model/.DS_Store +0 -0
- package/src/cubing/twisty/model/PromiseFreshener.ts +0 -49
- package/src/cubing/twisty/model/TwistyPlayerModel.ts +0 -254
- package/src/cubing/twisty/model/UserVisibleErrorTracker.ts +0 -22
- package/src/cubing/twisty/model/helpers.ts +0 -47
- package/src/cubing/twisty/model/props/.DS_Store +0 -0
- package/src/cubing/twisty/model/props/TwistyProp.spec.ts +0 -38
- package/src/cubing/twisty/model/props/TwistyProp.ts +0 -366
- package/src/cubing/twisty/model/props/TwistyPropDebugger.ts +0 -370
- package/src/cubing/twisty/model/props/general/URLProp.ts +0 -14
- package/src/cubing/twisty/model/props/puzzle/.DS_Store +0 -0
- package/src/cubing/twisty/model/props/puzzle/display/FoundationDisplayProp.ts +0 -9
- package/src/cubing/twisty/model/props/puzzle/display/HintFaceletProp.ts +0 -15
- package/src/cubing/twisty/model/props/puzzle/display/SpriteProp.ts +0 -43
- package/src/cubing/twisty/model/props/puzzle/display/StickeringProp.ts +0 -54
- package/src/cubing/twisty/model/props/puzzle/state/AlgProp.ts +0 -91
- package/src/cubing/twisty/model/props/puzzle/state/AlgTransformationProp.ts +0 -28
- package/src/cubing/twisty/model/props/puzzle/state/AnchoredStartProp.ts +0 -44
- package/src/cubing/twisty/model/props/puzzle/state/CatchUpMoveProp.ts +0 -17
- package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesProp.ts +0 -109
- package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesSimplified.ts +0 -48
- package/src/cubing/twisty/model/props/puzzle/state/CurrentTransformationProp.ts +0 -46
- package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorProp.ts +0 -53
- package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.ts +0 -15
- package/src/cubing/twisty/model/props/puzzle/state/IndexerProp.ts +0 -24
- package/src/cubing/twisty/model/props/puzzle/state/LegacyPositionProp.ts +0 -22
- package/src/cubing/twisty/model/props/puzzle/state/MovePressInputProp.ts +0 -9
- package/src/cubing/twisty/model/props/puzzle/state/NaiveMoveCountProp.ts +0 -20
- package/src/cubing/twisty/model/props/puzzle/state/PuzzleAlgProp.ts +0 -28
- package/src/cubing/twisty/model/props/puzzle/state/SetupAnchorProp.ts +0 -14
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleDefProp.ts +0 -14
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.ts +0 -14
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDProp.ts +0 -12
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.ts +0 -36
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleLoaderProp.ts +0 -38
- package/src/cubing/twisty/model/props/timeline/CoarseTimelineInfoProp.ts +0 -45
- package/src/cubing/twisty/model/props/timeline/DetailedTimelineInfoProp.ts +0 -78
- package/src/cubing/twisty/model/props/timeline/PlayingInfoProp.ts +0 -48
- package/src/cubing/twisty/model/props/timeline/TempoScaleProp.ts +0 -13
- package/src/cubing/twisty/model/props/timeline/TimestampRequestProp.ts +0 -38
- package/src/cubing/twisty/model/props/viewer/BackViewProp.ts +0 -16
- package/src/cubing/twisty/model/props/viewer/BackgroundProp.ts +0 -15
- package/src/cubing/twisty/model/props/viewer/ButtonAppearanceProp.ts +0 -86
- package/src/cubing/twisty/model/props/viewer/ControlPanelProp.ts +0 -14
- package/src/cubing/twisty/model/props/viewer/LatitudeLimit.ts +0 -11
- package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesProp.ts +0 -127
- package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesRequestProp.ts +0 -69
- package/src/cubing/twisty/model/props/viewer/TimeRangeProp.ts +0 -15
- package/src/cubing/twisty/model/props/viewer/ViewerLinkProp.ts +0 -14
- package/src/cubing/twisty/model/props/viewer/VisualizationProp.ts +0 -17
- package/src/cubing/twisty/model/props/viewer/VisualizationStrategyProp.ts +0 -45
- package/src/cubing/twisty/old/.DS_Store +0 -0
- package/src/cubing/twisty/old/animation/.DS_Store +0 -0
- package/src/cubing/twisty/old/dom/.DS_Store +0 -0
- package/src/cubing/twisty/views/.DS_Store +0 -0
- package/src/cubing/twisty/views/2D/Twisty2DPuzzle.css.ts +0 -26
- package/src/cubing/twisty/views/2D/Twisty2DPuzzle.ts +0 -146
- package/src/cubing/twisty/views/2D/Twisty2DPuzzleWrapper.ts +0 -52
- package/src/cubing/twisty/views/2D/Twisty2DSceneWrapper.ts +0 -77
- package/src/cubing/twisty/views/3D/.DS_Store +0 -0
- package/src/cubing/twisty/views/3D/DragTracker.ts +0 -184
- package/src/cubing/twisty/views/3D/RendererPool.ts +0 -54
- package/src/cubing/twisty/views/3D/TAU.ts +0 -2
- package/src/cubing/twisty/views/3D/Twisty3DPuzzleWrapper.ts +0 -214
- package/src/cubing/twisty/views/3D/Twisty3DRenderTarget.ts +0 -5
- package/src/cubing/twisty/views/3D/Twisty3DScene.ts +0 -42
- package/src/cubing/twisty/views/3D/Twisty3DSceneWrapper.ts +0 -189
- package/src/cubing/twisty/views/3D/Twisty3DVantage.css.ts +0 -32
- package/src/cubing/twisty/views/3D/Twisty3DVantage.ts +0 -312
- package/src/cubing/twisty/views/3D/TwistyOrbitControls.spec.ts +0 -213
- package/src/cubing/twisty/views/3D/TwistyOrbitControls.ts +0 -176
- package/src/cubing/twisty/views/3D/puzzles/Cube3D.ts +0 -966
- package/src/cubing/twisty/views/3D/puzzles/KPuzzleWrapper.ts +0 -142
- package/src/cubing/twisty/views/3D/puzzles/PG3D.ts +0 -1078
- package/src/cubing/twisty/views/3D/puzzles/Twisty3DPuzzle.ts +0 -6
- package/src/cubing/twisty/views/ClassListManager.ts +0 -34
- package/src/cubing/twisty/views/ManagedCustomElement.ts +0 -76
- package/src/cubing/twisty/views/TwistyAlgEditor/LeafTokens.ts +0 -116
- package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.ts +0 -72
- package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.ts +0 -57
- package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.ts +0 -368
- package/src/cubing/twisty/views/TwistyAlgEditor/model.ts +0 -179
- package/src/cubing/twisty/views/TwistyAlgViewer.css.ts +0 -25
- package/src/cubing/twisty/views/TwistyAlgViewer.ts +0 -502
- package/src/cubing/twisty/views/TwistyPlayer.css.ts +0 -73
- package/src/cubing/twisty/views/TwistyPlayer.ts +0 -362
- package/src/cubing/twisty/views/TwistyPlayerSettable.ts +0 -115
- package/src/cubing/twisty/views/TwistyViewerWrapper.css.ts +0 -41
- package/src/cubing/twisty/views/canvas.ts +0 -9
- package/src/cubing/twisty/views/control-panel/TwistyButtonsV2.css.ts +0 -127
- package/src/cubing/twisty/views/control-panel/TwistyButtonsV2.ts +0 -156
- package/src/cubing/twisty/views/control-panel/TwistyScrubber.css.ts +0 -48
- package/src/cubing/twisty/views/control-panel/TwistyScrubberV2.ts +0 -145
- package/src/cubing/twisty/views/control-panel/webkit-fullscreen.ts +0 -44
- package/src/cubing/twisty/views/document.ts +0 -4
- package/src/cubing/twisty/views/node-custom-element-shims.ts +0 -30
- package/src/cubing/twisty/views/screenshot.ts +0 -90
- package/src/cubing/twisty/views/stream/TwistyStreamSource.css.ts +0 -17
- package/src/cubing/twisty/views/stream/TwistyStreamSource.ts +0 -155
- package/src/cubing/vendor/p-lazy/license +0 -9
- package/src/cubing/vendor/p-lazy/p-lazy.ts +0 -52
- package/src/cubing/vendor/p-lazy/readme.md +0 -54
- package/src/cubing/vendor/three/examples/jsm/libs/stats.modified.module.ts +0 -179
- package/stream/index.d.ts +0 -1
- package/twisty/index.d.ts +0 -1
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import "./chunk-WO2AXYFE.js";
|
|
2
|
+
|
|
3
|
+
// src/cubing/vendor/min2phase/gwt.js
|
|
4
|
+
var $intern_3 = { 3: 1 };
|
|
5
|
+
var $intern_9 = 4194303;
|
|
6
|
+
var $intern_10 = 1048575;
|
|
7
|
+
var $intern_11 = 524288;
|
|
8
|
+
var $intern_20 = 65535;
|
|
9
|
+
var $intern_26 = { 11: 1, 3: 1 };
|
|
10
|
+
var $intern_27 = { 17: 1, 3: 1 };
|
|
11
|
+
var $intern_28 = 14540032;
|
|
12
|
+
var $intern_29 = 286331153;
|
|
13
|
+
var $intern_30 = { 10: 1, 3: 1 };
|
|
11
14
|
var _;
|
|
12
15
|
var prototypesByTypeId_0 = {};
|
|
13
|
-
function typeMarkerFn() {
|
|
14
|
-
|
|
16
|
+
function typeMarkerFn() {
|
|
17
|
+
}
|
|
15
18
|
function portableObjCreate(obj) {
|
|
16
|
-
function F() {
|
|
17
|
-
|
|
19
|
+
function F() {
|
|
20
|
+
}
|
|
18
21
|
F.prototype = obj || {};
|
|
19
22
|
return new F();
|
|
20
23
|
}
|
|
21
|
-
|
|
22
24
|
function maybeGetClassLiteralFromPlaceHolder_0(entry) {
|
|
23
25
|
return entry instanceof Array ? entry[0] : null;
|
|
24
26
|
}
|
|
25
|
-
|
|
26
27
|
function defineClass(typeId, superTypeId, castableTypeMap) {
|
|
27
28
|
var prototypesByTypeId = prototypesByTypeId_0;
|
|
28
29
|
var createSubclassPrototype = createSubclassPrototype_0;
|
|
29
|
-
var maybeGetClassLiteralFromPlaceHolder =
|
|
30
|
-
maybeGetClassLiteralFromPlaceHolder_0;
|
|
30
|
+
var maybeGetClassLiteralFromPlaceHolder = maybeGetClassLiteralFromPlaceHolder_0;
|
|
31
31
|
var prototype_0 = prototypesByTypeId[typeId];
|
|
32
32
|
var clazz = maybeGetClassLiteralFromPlaceHolder(prototype_0);
|
|
33
33
|
if (prototype_0 && !clazz) {
|
|
34
34
|
_ = prototype_0;
|
|
35
35
|
} else {
|
|
36
|
-
_ = prototypesByTypeId[typeId] = !superTypeId
|
|
37
|
-
? {}
|
|
38
|
-
: createSubclassPrototype(superTypeId);
|
|
36
|
+
_ = prototypesByTypeId[typeId] = !superTypeId ? {} : createSubclassPrototype(superTypeId);
|
|
39
37
|
_.castableTypeMap$ = castableTypeMap;
|
|
40
38
|
_.constructor = _;
|
|
41
39
|
!superTypeId && (_.typeMarker$ = typeMarkerFn);
|
|
@@ -45,20 +43,16 @@ function defineClass(typeId, superTypeId, castableTypeMap) {
|
|
|
45
43
|
}
|
|
46
44
|
clazz && (_.___clazz$ = clazz);
|
|
47
45
|
}
|
|
48
|
-
|
|
49
46
|
function createSubclassPrototype_0(superTypeId) {
|
|
50
47
|
var prototypesByTypeId = prototypesByTypeId_0;
|
|
51
48
|
return portableObjCreate(prototypesByTypeId[superTypeId]);
|
|
52
49
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
function Object_0() {
|
|
51
|
+
}
|
|
56
52
|
defineClass(1, null, {}, Object_0);
|
|
57
|
-
|
|
58
53
|
function narrow_byte(x_0) {
|
|
59
|
-
return
|
|
54
|
+
return x_0 << 24 >> 24;
|
|
60
55
|
}
|
|
61
|
-
|
|
62
56
|
function Class() {
|
|
63
57
|
this.typeName = null;
|
|
64
58
|
this.simpleName = null;
|
|
@@ -68,7 +62,6 @@ function Class() {
|
|
|
68
62
|
this.typeId = null;
|
|
69
63
|
this.arrayLiterals = null;
|
|
70
64
|
}
|
|
71
|
-
|
|
72
65
|
function createClassObject(packageName, compoundClassName) {
|
|
73
66
|
var clazz;
|
|
74
67
|
clazz = new Class();
|
|
@@ -76,21 +69,18 @@ function createClassObject(packageName, compoundClassName) {
|
|
|
76
69
|
clazz.compoundName = compoundClassName;
|
|
77
70
|
return clazz;
|
|
78
71
|
}
|
|
79
|
-
|
|
80
72
|
function createForClass(packageName, compoundClassName, typeId) {
|
|
81
73
|
var clazz;
|
|
82
74
|
clazz = createClassObject(packageName, compoundClassName);
|
|
83
75
|
maybeSetClassLiteral(typeId, clazz);
|
|
84
76
|
return clazz;
|
|
85
77
|
}
|
|
86
|
-
|
|
87
78
|
function createForInterface(packageName, compoundClassName) {
|
|
88
79
|
var clazz;
|
|
89
80
|
clazz = createClassObject(packageName, compoundClassName);
|
|
90
81
|
clazz.modifiers = 2;
|
|
91
82
|
return clazz;
|
|
92
83
|
}
|
|
93
|
-
|
|
94
84
|
function createForPrimitive(className, primitiveTypeId) {
|
|
95
85
|
var clazz;
|
|
96
86
|
clazz = createClassObject("", className);
|
|
@@ -98,16 +88,10 @@ function createForPrimitive(className, primitiveTypeId) {
|
|
|
98
88
|
clazz.modifiers = 1;
|
|
99
89
|
return clazz;
|
|
100
90
|
}
|
|
101
|
-
|
|
102
91
|
function getClassLiteralForArray_0(leafClass, dimensions) {
|
|
103
|
-
var arrayLiterals =
|
|
104
|
-
return (
|
|
105
|
-
arrayLiterals[dimensions] ||
|
|
106
|
-
(arrayLiterals[dimensions] =
|
|
107
|
-
leafClass.createClassLiteralForArray(dimensions))
|
|
108
|
-
);
|
|
92
|
+
var arrayLiterals = leafClass.arrayLiterals = leafClass.arrayLiterals || [];
|
|
93
|
+
return arrayLiterals[dimensions] || (arrayLiterals[dimensions] = leafClass.createClassLiteralForArray(dimensions));
|
|
109
94
|
}
|
|
110
|
-
|
|
111
95
|
function getPrototypeForClass(clazz) {
|
|
112
96
|
if (clazz.isPrimitive()) {
|
|
113
97
|
return null;
|
|
@@ -116,7 +100,6 @@ function getPrototypeForClass(clazz) {
|
|
|
116
100
|
var prototype_0 = prototypesByTypeId_0[typeId];
|
|
117
101
|
return prototype_0;
|
|
118
102
|
}
|
|
119
|
-
|
|
120
103
|
function maybeSetClassLiteral(typeId, clazz) {
|
|
121
104
|
if (!typeId) {
|
|
122
105
|
return;
|
|
@@ -129,109 +112,45 @@ function maybeSetClassLiteral(typeId, clazz) {
|
|
|
129
112
|
}
|
|
130
113
|
prototype_0.___clazz$ = clazz;
|
|
131
114
|
}
|
|
132
|
-
|
|
133
115
|
defineClass(79, 1, {}, Class);
|
|
134
116
|
_.createClassLiteralForArray = function createClassLiteralForArray(dimensions) {
|
|
135
117
|
var clazz;
|
|
136
118
|
clazz = new Class();
|
|
137
119
|
clazz.modifiers = 4;
|
|
138
|
-
dimensions > 1
|
|
139
|
-
? (clazz.componentType = getClassLiteralForArray_0(this, dimensions - 1))
|
|
140
|
-
: (clazz.componentType = this);
|
|
120
|
+
dimensions > 1 ? clazz.componentType = getClassLiteralForArray_0(this, dimensions - 1) : clazz.componentType = this;
|
|
141
121
|
return clazz;
|
|
142
122
|
};
|
|
143
123
|
_.isPrimitive = function isPrimitive() {
|
|
144
124
|
return (this.modifiers & 1) != 0;
|
|
145
125
|
};
|
|
146
|
-
|
|
147
126
|
function getClassLiteralForArray(clazz, dimensions) {
|
|
148
127
|
return getClassLiteralForArray_0(clazz, dimensions);
|
|
149
128
|
}
|
|
150
|
-
|
|
151
|
-
function initDim(
|
|
152
|
-
leafClassLiteral,
|
|
153
|
-
castableTypeMap,
|
|
154
|
-
elementTypeId,
|
|
155
|
-
length_0,
|
|
156
|
-
elementTypeCategory,
|
|
157
|
-
dimensions,
|
|
158
|
-
) {
|
|
129
|
+
function initDim(leafClassLiteral, castableTypeMap, elementTypeId, length_0, elementTypeCategory, dimensions) {
|
|
159
130
|
var result;
|
|
160
131
|
result = initializeArrayElementsWithDefaults(elementTypeCategory, length_0);
|
|
161
|
-
initValues(
|
|
162
|
-
getClassLiteralForArray(leafClassLiteral, dimensions),
|
|
163
|
-
castableTypeMap,
|
|
164
|
-
elementTypeId,
|
|
165
|
-
elementTypeCategory,
|
|
166
|
-
result,
|
|
167
|
-
);
|
|
132
|
+
initValues(getClassLiteralForArray(leafClassLiteral, dimensions), castableTypeMap, elementTypeId, elementTypeCategory, result);
|
|
168
133
|
return result;
|
|
169
134
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
leafClassLiteral,
|
|
173
|
-
castableTypeMapExprs,
|
|
174
|
-
elementTypeIds,
|
|
175
|
-
leafElementTypeCategory,
|
|
176
|
-
dimExprs,
|
|
177
|
-
count,
|
|
178
|
-
) {
|
|
179
|
-
return initDims_0(
|
|
180
|
-
leafClassLiteral,
|
|
181
|
-
castableTypeMapExprs,
|
|
182
|
-
elementTypeIds,
|
|
183
|
-
leafElementTypeCategory,
|
|
184
|
-
dimExprs,
|
|
185
|
-
0,
|
|
186
|
-
count,
|
|
187
|
-
);
|
|
135
|
+
function initDims(leafClassLiteral, castableTypeMapExprs, elementTypeIds, leafElementTypeCategory, dimExprs, count) {
|
|
136
|
+
return initDims_0(leafClassLiteral, castableTypeMapExprs, elementTypeIds, leafElementTypeCategory, dimExprs, 0, count);
|
|
188
137
|
}
|
|
189
|
-
|
|
190
|
-
function initDims_0(
|
|
191
|
-
leafClassLiteral,
|
|
192
|
-
castableTypeMapExprs,
|
|
193
|
-
elementTypeIds,
|
|
194
|
-
leafElementTypeCategory,
|
|
195
|
-
dimExprs,
|
|
196
|
-
index_0,
|
|
197
|
-
count,
|
|
198
|
-
) {
|
|
138
|
+
function initDims_0(leafClassLiteral, castableTypeMapExprs, elementTypeIds, leafElementTypeCategory, dimExprs, index_0, count) {
|
|
199
139
|
var elementTypeCategory, i, isLastDim, length_0, result;
|
|
200
140
|
length_0 = dimExprs[index_0];
|
|
201
141
|
isLastDim = index_0 == count - 1;
|
|
202
142
|
elementTypeCategory = isLastDim ? leafElementTypeCategory : 0;
|
|
203
143
|
result = initializeArrayElementsWithDefaults(elementTypeCategory, length_0);
|
|
204
|
-
initValues(
|
|
205
|
-
getClassLiteralForArray(leafClassLiteral, count - index_0),
|
|
206
|
-
castableTypeMapExprs[index_0],
|
|
207
|
-
elementTypeIds[index_0],
|
|
208
|
-
elementTypeCategory,
|
|
209
|
-
result,
|
|
210
|
-
);
|
|
144
|
+
initValues(getClassLiteralForArray(leafClassLiteral, count - index_0), castableTypeMapExprs[index_0], elementTypeIds[index_0], elementTypeCategory, result);
|
|
211
145
|
if (!isLastDim) {
|
|
212
146
|
++index_0;
|
|
213
147
|
for (i = 0; i < length_0; ++i) {
|
|
214
|
-
result[i] = initDims_0(
|
|
215
|
-
leafClassLiteral,
|
|
216
|
-
castableTypeMapExprs,
|
|
217
|
-
elementTypeIds,
|
|
218
|
-
leafElementTypeCategory,
|
|
219
|
-
dimExprs,
|
|
220
|
-
index_0,
|
|
221
|
-
count,
|
|
222
|
-
);
|
|
148
|
+
result[i] = initDims_0(leafClassLiteral, castableTypeMapExprs, elementTypeIds, leafElementTypeCategory, dimExprs, index_0, count);
|
|
223
149
|
}
|
|
224
150
|
}
|
|
225
151
|
return result;
|
|
226
152
|
}
|
|
227
|
-
|
|
228
|
-
function initValues(
|
|
229
|
-
arrayClass,
|
|
230
|
-
castableTypeMap,
|
|
231
|
-
elementTypeId,
|
|
232
|
-
elementTypeCategory,
|
|
233
|
-
array,
|
|
234
|
-
) {
|
|
153
|
+
function initValues(arrayClass, castableTypeMap, elementTypeId, elementTypeCategory, array) {
|
|
235
154
|
array.___clazz$ = arrayClass;
|
|
236
155
|
array.castableTypeMap$ = castableTypeMap;
|
|
237
156
|
array.typeMarker$ = typeMarkerFn;
|
|
@@ -239,7 +158,6 @@ function initValues(
|
|
|
239
158
|
array.__elementTypeCategory$ = elementTypeCategory;
|
|
240
159
|
return array;
|
|
241
160
|
}
|
|
242
|
-
|
|
243
161
|
function initializeArrayElementsWithDefaults(elementTypeCategory, length_0) {
|
|
244
162
|
var array = new Array(length_0);
|
|
245
163
|
var initValue;
|
|
@@ -261,19 +179,16 @@ function initializeArrayElementsWithDefaults(elementTypeCategory, length_0) {
|
|
|
261
179
|
}
|
|
262
180
|
return array;
|
|
263
181
|
}
|
|
264
|
-
|
|
265
182
|
function create(value_0) {
|
|
266
183
|
var a0, a1, a2;
|
|
267
184
|
a0 = value_0 & $intern_9;
|
|
268
|
-
a1 =
|
|
185
|
+
a1 = value_0 >> 22 & $intern_9;
|
|
269
186
|
a2 = value_0 < 0 ? $intern_10 : 0;
|
|
270
187
|
return create0(a0, a1, a2);
|
|
271
188
|
}
|
|
272
|
-
|
|
273
189
|
function create0(l, m, h) {
|
|
274
|
-
return { l
|
|
190
|
+
return { l, m, h };
|
|
275
191
|
}
|
|
276
|
-
|
|
277
192
|
function add_1(a, b) {
|
|
278
193
|
var sum0, sum1, sum2;
|
|
279
194
|
sum0 = a.l + b.l;
|
|
@@ -281,75 +196,50 @@ function add_1(a, b) {
|
|
|
281
196
|
sum2 = a.h + b.h + (sum1 >> 22);
|
|
282
197
|
return { l: sum0 & $intern_9, m: sum1 & $intern_9, h: sum2 & $intern_10 };
|
|
283
198
|
}
|
|
284
|
-
|
|
285
199
|
function and(a, b) {
|
|
286
200
|
return { l: a.l & b.l, m: a.m & b.m, h: a.h & b.h };
|
|
287
201
|
}
|
|
288
|
-
|
|
289
202
|
function fromInt(value_0) {
|
|
290
203
|
var rebase, result;
|
|
291
204
|
if (value_0 > -129 && value_0 < 128) {
|
|
292
205
|
rebase = value_0 + 128;
|
|
293
|
-
boxedValues == null &&
|
|
294
|
-
(boxedValues = initDim(
|
|
295
|
-
Lcom_google_gwt_lang_LongLibBase$LongEmul_2_classLit,
|
|
296
|
-
$intern_3,
|
|
297
|
-
293,
|
|
298
|
-
256,
|
|
299
|
-
0,
|
|
300
|
-
1,
|
|
301
|
-
));
|
|
206
|
+
boxedValues == null && (boxedValues = initDim(Lcom_google_gwt_lang_LongLibBase$LongEmul_2_classLit, $intern_3, 293, 256, 0, 1));
|
|
302
207
|
result = boxedValues[rebase];
|
|
303
208
|
!result && (result = boxedValues[rebase] = create(value_0));
|
|
304
209
|
return result;
|
|
305
210
|
}
|
|
306
211
|
return create(value_0);
|
|
307
212
|
}
|
|
308
|
-
|
|
309
213
|
function gte(a, b) {
|
|
310
214
|
var signa, signb;
|
|
311
215
|
signa = a.h >> 19;
|
|
312
216
|
signb = b.h >> 19;
|
|
313
|
-
return signa == 0
|
|
314
|
-
? signb != 0 ||
|
|
315
|
-
a.h > b.h ||
|
|
316
|
-
(a.h == b.h && a.m > b.m) ||
|
|
317
|
-
(a.h == b.h && a.m == b.m && a.l >= b.l)
|
|
318
|
-
: !(
|
|
319
|
-
signb == 0 ||
|
|
320
|
-
a.h < b.h ||
|
|
321
|
-
(a.h == b.h && a.m < b.m) ||
|
|
322
|
-
(a.h == b.h && a.m == b.m && a.l < b.l)
|
|
323
|
-
);
|
|
217
|
+
return signa == 0 ? signb != 0 || a.h > b.h || a.h == b.h && a.m > b.m || a.h == b.h && a.m == b.m && a.l >= b.l : !(signb == 0 || a.h < b.h || a.h == b.h && a.m < b.m || a.h == b.h && a.m == b.m && a.l < b.l);
|
|
324
218
|
}
|
|
325
|
-
|
|
326
219
|
function neq(a, b) {
|
|
327
220
|
return a.l != b.l || a.m != b.m || a.h != b.h;
|
|
328
221
|
}
|
|
329
|
-
|
|
330
222
|
function or(a, b) {
|
|
331
223
|
return { l: a.l | b.l, m: a.m | b.m, h: a.h | b.h };
|
|
332
224
|
}
|
|
333
|
-
|
|
334
225
|
function shl(a, n) {
|
|
335
226
|
var res0, res1, res2;
|
|
336
227
|
n &= 63;
|
|
337
228
|
if (n < 22) {
|
|
338
229
|
res0 = a.l << n;
|
|
339
|
-
res1 =
|
|
340
|
-
res2 =
|
|
230
|
+
res1 = a.m << n | a.l >> 22 - n;
|
|
231
|
+
res2 = a.h << n | a.m >> 22 - n;
|
|
341
232
|
} else if (n < 44) {
|
|
342
233
|
res0 = 0;
|
|
343
|
-
res1 = a.l <<
|
|
344
|
-
res2 =
|
|
234
|
+
res1 = a.l << n - 22;
|
|
235
|
+
res2 = a.m << n - 22 | a.l >> 44 - n;
|
|
345
236
|
} else {
|
|
346
237
|
res0 = 0;
|
|
347
238
|
res1 = 0;
|
|
348
|
-
res2 = a.l <<
|
|
239
|
+
res2 = a.l << n - 44;
|
|
349
240
|
}
|
|
350
241
|
return { l: res0 & $intern_9, m: res1 & $intern_9, h: res2 & $intern_10 };
|
|
351
242
|
}
|
|
352
|
-
|
|
353
243
|
function shr(a, n) {
|
|
354
244
|
var a2, negative, res0, res1, res2;
|
|
355
245
|
n &= 63;
|
|
@@ -358,20 +248,19 @@ function shr(a, n) {
|
|
|
358
248
|
negative && (a2 |= -1048576);
|
|
359
249
|
if (n < 22) {
|
|
360
250
|
res2 = a2 >> n;
|
|
361
|
-
res1 =
|
|
362
|
-
res0 =
|
|
251
|
+
res1 = a.m >> n | a2 << 22 - n;
|
|
252
|
+
res0 = a.l >> n | a.m << 22 - n;
|
|
363
253
|
} else if (n < 44) {
|
|
364
254
|
res2 = negative ? $intern_10 : 0;
|
|
365
|
-
res1 = a2 >>
|
|
366
|
-
res0 =
|
|
255
|
+
res1 = a2 >> n - 22;
|
|
256
|
+
res0 = a.m >> n - 22 | a2 << 44 - n;
|
|
367
257
|
} else {
|
|
368
258
|
res2 = negative ? $intern_10 : 0;
|
|
369
259
|
res1 = negative ? $intern_9 : 0;
|
|
370
|
-
res0 = a2 >>
|
|
260
|
+
res0 = a2 >> n - 44;
|
|
371
261
|
}
|
|
372
262
|
return { l: res0 & $intern_9, m: res1 & $intern_9, h: res2 & $intern_10 };
|
|
373
263
|
}
|
|
374
|
-
|
|
375
264
|
function sub_0(a, b) {
|
|
376
265
|
var sum0, sum1, sum2;
|
|
377
266
|
sum0 = a.l - b.l;
|
|
@@ -379,63 +268,49 @@ function sub_0(a, b) {
|
|
|
379
268
|
sum2 = a.h - b.h + (sum1 >> 22);
|
|
380
269
|
return { l: sum0 & $intern_9, m: sum1 & $intern_9, h: sum2 & $intern_10 };
|
|
381
270
|
}
|
|
382
|
-
|
|
383
271
|
function toInt(a) {
|
|
384
|
-
return a.l |
|
|
272
|
+
return a.l | a.m << 22;
|
|
385
273
|
}
|
|
386
|
-
|
|
387
274
|
var boxedValues;
|
|
388
|
-
|
|
389
275
|
function AbstractStringBuilder(string) {
|
|
390
276
|
this.string = string;
|
|
391
277
|
}
|
|
392
|
-
|
|
393
278
|
function max_0(x_0, y_0) {
|
|
394
279
|
return x_0 > y_0 ? x_0 : y_0;
|
|
395
280
|
}
|
|
396
|
-
|
|
397
281
|
function min_0(x_0, y_0) {
|
|
398
282
|
return x_0 < y_0 ? x_0 : y_0;
|
|
399
283
|
}
|
|
400
|
-
|
|
401
284
|
function $indexOf_0(this$static, str) {
|
|
402
285
|
return this$static.indexOf(str);
|
|
403
286
|
}
|
|
404
|
-
|
|
405
287
|
function _String(value_0) {
|
|
406
288
|
return __valueOf(value_0, 0, value_0.length);
|
|
407
289
|
}
|
|
408
|
-
|
|
409
290
|
function __valueOf(x_0, start_0, end) {
|
|
410
291
|
var s = "";
|
|
411
292
|
for (var batchStart = start_0; batchStart < end; ) {
|
|
412
|
-
var batchEnd = Math.min(batchStart +
|
|
293
|
+
var batchEnd = Math.min(batchStart + 1e4, end);
|
|
413
294
|
s += String.fromCharCode.apply(null, x_0.slice(batchStart, batchEnd));
|
|
414
295
|
batchStart = batchEnd;
|
|
415
296
|
}
|
|
416
297
|
return s;
|
|
417
298
|
}
|
|
418
|
-
|
|
419
299
|
function fromCodePoint(codePoint) {
|
|
420
300
|
return String.fromCharCode(codePoint & $intern_20);
|
|
421
301
|
}
|
|
422
|
-
|
|
423
302
|
var Ljava_lang_String_2_classLit = createForClass("java.lang", "String", 2);
|
|
424
|
-
|
|
425
303
|
function $append(this$static) {
|
|
426
304
|
this$static.string += " ";
|
|
427
305
|
return this$static;
|
|
428
306
|
}
|
|
429
|
-
|
|
430
307
|
function $append_1(this$static, x_0) {
|
|
431
308
|
this$static.string += x_0;
|
|
432
309
|
return this$static;
|
|
433
310
|
}
|
|
434
|
-
|
|
435
311
|
function StringBuffer() {
|
|
436
312
|
AbstractStringBuilder.call(this, "");
|
|
437
313
|
}
|
|
438
|
-
|
|
439
314
|
function equals_7(array1, array2) {
|
|
440
315
|
var i;
|
|
441
316
|
if (array1 === array2) {
|
|
@@ -451,171 +326,58 @@ function equals_7(array1, array2) {
|
|
|
451
326
|
}
|
|
452
327
|
return true;
|
|
453
328
|
}
|
|
454
|
-
|
|
455
|
-
let $clinit_CoordCube_ran = false;
|
|
329
|
+
var $clinit_CoordCube_ran = false;
|
|
456
330
|
function $clinit_CoordCube() {
|
|
457
331
|
if ($clinit_CoordCube_ran) {
|
|
458
332
|
return;
|
|
459
333
|
}
|
|
460
334
|
$clinit_CoordCube_ran = true;
|
|
461
|
-
UDSliceMove = initDims(
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
7,
|
|
466
|
-
[495, 18],
|
|
467
|
-
2,
|
|
468
|
-
);
|
|
469
|
-
TwistMove = initDims(
|
|
470
|
-
C_classLit,
|
|
471
|
-
[$intern_3, $intern_26],
|
|
472
|
-
[11, 0],
|
|
473
|
-
7,
|
|
474
|
-
[324, 18],
|
|
475
|
-
2,
|
|
476
|
-
);
|
|
477
|
-
FlipMove = initDims(
|
|
478
|
-
C_classLit,
|
|
479
|
-
[$intern_3, $intern_26],
|
|
480
|
-
[11, 0],
|
|
481
|
-
7,
|
|
482
|
-
[336, 18],
|
|
483
|
-
2,
|
|
484
|
-
);
|
|
485
|
-
UDSliceConj = initDims(
|
|
486
|
-
C_classLit,
|
|
487
|
-
[$intern_3, $intern_26],
|
|
488
|
-
[11, 0],
|
|
489
|
-
7,
|
|
490
|
-
[495, 8],
|
|
491
|
-
2,
|
|
492
|
-
);
|
|
335
|
+
UDSliceMove = initDims(C_classLit, [$intern_3, $intern_26], [11, 0], 7, [495, 18], 2);
|
|
336
|
+
TwistMove = initDims(C_classLit, [$intern_3, $intern_26], [11, 0], 7, [324, 18], 2);
|
|
337
|
+
FlipMove = initDims(C_classLit, [$intern_3, $intern_26], [11, 0], 7, [336, 18], 2);
|
|
338
|
+
UDSliceConj = initDims(C_classLit, [$intern_3, $intern_26], [11, 0], 7, [495, 8], 2);
|
|
493
339
|
UDSliceTwistPrun = initDim(I_classLit, $intern_27, 0, 20048, 7, 1);
|
|
494
340
|
UDSliceFlipPrun = initDim(I_classLit, $intern_27, 0, 20791, 7, 1);
|
|
495
341
|
TwistFlipPrun = initDim(I_classLit, $intern_27, 0, 82945, 7, 1);
|
|
496
|
-
CPermMove = initDims(
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
[2768, 10],
|
|
502
|
-
2,
|
|
503
|
-
);
|
|
504
|
-
EPermMove = initDims(
|
|
505
|
-
C_classLit,
|
|
506
|
-
[$intern_3, $intern_26],
|
|
507
|
-
[11, 0],
|
|
508
|
-
7,
|
|
509
|
-
[2768, 10],
|
|
510
|
-
2,
|
|
511
|
-
);
|
|
512
|
-
MPermMove = initDims(
|
|
513
|
-
C_classLit,
|
|
514
|
-
[$intern_3, $intern_26],
|
|
515
|
-
[11, 0],
|
|
516
|
-
7,
|
|
517
|
-
[24, 10],
|
|
518
|
-
2,
|
|
519
|
-
);
|
|
520
|
-
MPermConj = initDims(
|
|
521
|
-
C_classLit,
|
|
522
|
-
[$intern_3, $intern_26],
|
|
523
|
-
[11, 0],
|
|
524
|
-
7,
|
|
525
|
-
[24, 16],
|
|
526
|
-
2,
|
|
527
|
-
);
|
|
528
|
-
CCombPConj = initDims(
|
|
529
|
-
C_classLit,
|
|
530
|
-
[$intern_3, $intern_26],
|
|
531
|
-
[11, 0],
|
|
532
|
-
7,
|
|
533
|
-
[140, 16],
|
|
534
|
-
2,
|
|
535
|
-
);
|
|
342
|
+
CPermMove = initDims(C_classLit, [$intern_3, $intern_26], [11, 0], 7, [2768, 10], 2);
|
|
343
|
+
EPermMove = initDims(C_classLit, [$intern_3, $intern_26], [11, 0], 7, [2768, 10], 2);
|
|
344
|
+
MPermMove = initDims(C_classLit, [$intern_3, $intern_26], [11, 0], 7, [24, 10], 2);
|
|
345
|
+
MPermConj = initDims(C_classLit, [$intern_3, $intern_26], [11, 0], 7, [24, 16], 2);
|
|
346
|
+
CCombPConj = initDims(C_classLit, [$intern_3, $intern_26], [11, 0], 7, [140, 16], 2);
|
|
536
347
|
MCPermPrun = initDim(I_classLit, $intern_27, 0, 8305, 7, 1);
|
|
537
348
|
EPermCCombPPrun = initDim(I_classLit, $intern_27, 0, 48441, 7, 1);
|
|
538
349
|
}
|
|
539
|
-
|
|
540
350
|
function $doMovePrun(this$static, cc, m) {
|
|
541
351
|
this$static.slice_0 = UDSliceMove[cc.slice_0][m];
|
|
542
|
-
this$static.flip =
|
|
543
|
-
|
|
544
|
-
this$static.fsym = (this$static.flip & 7) ^ cc.fsym;
|
|
352
|
+
this$static.flip = FlipMove[cc.flip][($clinit_CubieCube(), Sym8Move)[m << 3 | cc.fsym]];
|
|
353
|
+
this$static.fsym = this$static.flip & 7 ^ cc.fsym;
|
|
545
354
|
this$static.flip >>= 3;
|
|
546
|
-
this$static.twist = TwistMove[cc.twist][Sym8Move[
|
|
547
|
-
this$static.tsym =
|
|
355
|
+
this$static.twist = TwistMove[cc.twist][Sym8Move[m << 3 | cc.tsym]];
|
|
356
|
+
this$static.tsym = this$static.twist & 7 ^ cc.tsym;
|
|
548
357
|
this$static.twist >>= 3;
|
|
549
|
-
this$static.prun = max_0(
|
|
550
|
-
max_0(
|
|
551
|
-
getPruning(
|
|
552
|
-
UDSliceTwistPrun,
|
|
553
|
-
this$static.twist * 495 +
|
|
554
|
-
UDSliceConj[this$static.slice_0][this$static.tsym],
|
|
555
|
-
),
|
|
556
|
-
getPruning(
|
|
557
|
-
UDSliceFlipPrun,
|
|
558
|
-
this$static.flip * 495 +
|
|
559
|
-
UDSliceConj[this$static.slice_0][this$static.fsym],
|
|
560
|
-
),
|
|
561
|
-
),
|
|
562
|
-
getPruning(
|
|
563
|
-
TwistFlipPrun,
|
|
564
|
-
(this$static.twist << 11) |
|
|
565
|
-
FlipS2RF[
|
|
566
|
-
(this$static.flip << 3) | (this$static.fsym ^ this$static.tsym)
|
|
567
|
-
],
|
|
568
|
-
),
|
|
569
|
-
);
|
|
358
|
+
this$static.prun = max_0(max_0(getPruning(UDSliceTwistPrun, this$static.twist * 495 + UDSliceConj[this$static.slice_0][this$static.tsym]), getPruning(UDSliceFlipPrun, this$static.flip * 495 + UDSliceConj[this$static.slice_0][this$static.fsym])), getPruning(TwistFlipPrun, this$static.twist << 11 | FlipS2RF[this$static.flip << 3 | this$static.fsym ^ this$static.tsym]));
|
|
570
359
|
return this$static.prun;
|
|
571
360
|
}
|
|
572
|
-
|
|
573
361
|
function $doMovePrunConj(this$static, cc, m) {
|
|
574
362
|
m = ($clinit_CubieCube(), SymMove_0)[3][m];
|
|
575
|
-
this$static.flipc =
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
this$static.twistc =
|
|
579
|
-
TwistMove[cc.twistc >> 3][Sym8Move[(m << 3) | (cc.twistc & 7)]] ^
|
|
580
|
-
(cc.twistc & 7);
|
|
581
|
-
return getPruning(
|
|
582
|
-
TwistFlipPrun,
|
|
583
|
-
((this$static.twistc >> 3) << 11) |
|
|
584
|
-
FlipS2RF[this$static.flipc ^ (this$static.twistc & 7)],
|
|
585
|
-
);
|
|
363
|
+
this$static.flipc = FlipMove[cc.flipc >> 3][Sym8Move[m << 3 | cc.flipc & 7]] ^ cc.flipc & 7;
|
|
364
|
+
this$static.twistc = TwistMove[cc.twistc >> 3][Sym8Move[m << 3 | cc.twistc & 7]] ^ cc.twistc & 7;
|
|
365
|
+
return getPruning(TwistFlipPrun, this$static.twistc >> 3 << 11 | FlipS2RF[this$static.flipc ^ this$static.twistc & 7]);
|
|
586
366
|
}
|
|
587
|
-
|
|
588
367
|
function $setWithPrun(this$static, cc, depth) {
|
|
589
368
|
var pc;
|
|
590
369
|
this$static.twist = ($clinit_CubieCube(), TwistR2S)[$getTwist(cc)];
|
|
591
370
|
this$static.flip = FlipR2S[$getFlip(cc)];
|
|
592
371
|
this$static.tsym = this$static.twist & 7;
|
|
593
372
|
this$static.twist = this$static.twist >> 3;
|
|
594
|
-
this$static.prun = getPruning(
|
|
595
|
-
TwistFlipPrun,
|
|
596
|
-
(this$static.twist << 11) | FlipS2RF[this$static.flip ^ this$static.tsym],
|
|
597
|
-
);
|
|
373
|
+
this$static.prun = getPruning(TwistFlipPrun, this$static.twist << 11 | FlipS2RF[this$static.flip ^ this$static.tsym]);
|
|
598
374
|
if (this$static.prun > depth) {
|
|
599
375
|
return false;
|
|
600
376
|
}
|
|
601
377
|
this$static.fsym = this$static.flip & 7;
|
|
602
378
|
this$static.flip = this$static.flip >> 3;
|
|
603
379
|
this$static.slice_0 = 494 - getComb(cc.ea, 8, true);
|
|
604
|
-
this$static.prun = max_0(
|
|
605
|
-
this$static.prun,
|
|
606
|
-
max_0(
|
|
607
|
-
getPruning(
|
|
608
|
-
UDSliceTwistPrun,
|
|
609
|
-
this$static.twist * 495 +
|
|
610
|
-
UDSliceConj[this$static.slice_0][this$static.tsym],
|
|
611
|
-
),
|
|
612
|
-
getPruning(
|
|
613
|
-
UDSliceFlipPrun,
|
|
614
|
-
this$static.flip * 495 +
|
|
615
|
-
UDSliceConj[this$static.slice_0][this$static.fsym],
|
|
616
|
-
),
|
|
617
|
-
),
|
|
618
|
-
);
|
|
380
|
+
this$static.prun = max_0(this$static.prun, max_0(getPruning(UDSliceTwistPrun, this$static.twist * 495 + UDSliceConj[this$static.slice_0][this$static.tsym]), getPruning(UDSliceFlipPrun, this$static.flip * 495 + UDSliceConj[this$static.slice_0][this$static.fsym])));
|
|
619
381
|
if (this$static.prun > depth) {
|
|
620
382
|
return false;
|
|
621
383
|
}
|
|
@@ -624,29 +386,19 @@ function $setWithPrun(this$static, cc, depth) {
|
|
|
624
386
|
EdgeConjugate(cc, 1, pc);
|
|
625
387
|
this$static.twistc = TwistR2S[$getTwist(pc)];
|
|
626
388
|
this$static.flipc = FlipR2S[$getFlip(pc)];
|
|
627
|
-
this$static.prun = max_0(
|
|
628
|
-
this$static.prun,
|
|
629
|
-
getPruning(
|
|
630
|
-
TwistFlipPrun,
|
|
631
|
-
((this$static.twistc >> 3) << 11) |
|
|
632
|
-
FlipS2RF[this$static.flipc ^ (this$static.twistc & 7)],
|
|
633
|
-
),
|
|
634
|
-
);
|
|
389
|
+
this$static.prun = max_0(this$static.prun, getPruning(TwistFlipPrun, this$static.twistc >> 3 << 11 | FlipS2RF[this$static.flipc ^ this$static.twistc & 7]));
|
|
635
390
|
return this$static.prun <= depth;
|
|
636
391
|
}
|
|
637
|
-
|
|
638
392
|
function CoordCube() {
|
|
639
393
|
$clinit_CoordCube();
|
|
640
394
|
}
|
|
641
|
-
|
|
642
395
|
function getPruning(table, index_0) {
|
|
643
396
|
$clinit_CoordCube();
|
|
644
|
-
return
|
|
397
|
+
return table[index_0 >> 3] >> (index_0 << 2) & 15;
|
|
645
398
|
}
|
|
646
|
-
|
|
647
399
|
function init_0(fullInit) {
|
|
648
400
|
$clinit_CoordCube();
|
|
649
|
-
if (initLevel == 2 ||
|
|
401
|
+
if (initLevel == 2 || initLevel == 1 && !fullInit) {
|
|
650
402
|
return;
|
|
651
403
|
}
|
|
652
404
|
if (initLevel == 0) {
|
|
@@ -656,72 +408,19 @@ function init_0(fullInit) {
|
|
|
656
408
|
initMPermMoveConj();
|
|
657
409
|
initCombPMoveConj();
|
|
658
410
|
$clinit_CubieCube();
|
|
659
|
-
initSym2Raw(
|
|
660
|
-
|
|
661
|
-
FlipS2R,
|
|
662
|
-
FlipR2S,
|
|
663
|
-
(SymStateFlip = initDim(C_classLit, $intern_26, 0, 336, 7, 1)),
|
|
664
|
-
0,
|
|
665
|
-
);
|
|
666
|
-
initSym2Raw(
|
|
667
|
-
2187,
|
|
668
|
-
TwistS2R,
|
|
669
|
-
TwistR2S,
|
|
670
|
-
(SymStateTwist = initDim(C_classLit, $intern_26, 0, 324, 7, 1)),
|
|
671
|
-
1,
|
|
672
|
-
);
|
|
411
|
+
initSym2Raw(2048, FlipS2R, FlipR2S, SymStateFlip = initDim(C_classLit, $intern_26, 0, 336, 7, 1), 0);
|
|
412
|
+
initSym2Raw(2187, TwistS2R, TwistR2S, SymStateTwist = initDim(C_classLit, $intern_26, 0, 324, 7, 1), 1);
|
|
673
413
|
initFlipMove();
|
|
674
414
|
initTwistMove();
|
|
675
415
|
initUDSliceMoveConj();
|
|
676
416
|
}
|
|
677
|
-
initRawSymPrun(
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
($clinit_CubieCube(), SymStatePerm),
|
|
683
|
-
584244,
|
|
684
|
-
fullInit,
|
|
685
|
-
);
|
|
686
|
-
initRawSymPrun(
|
|
687
|
-
EPermCCombPPrun,
|
|
688
|
-
CCombPMove,
|
|
689
|
-
CCombPConj,
|
|
690
|
-
EPermMove,
|
|
691
|
-
SymStatePerm,
|
|
692
|
-
514084,
|
|
693
|
-
fullInit,
|
|
694
|
-
);
|
|
695
|
-
initRawSymPrun(
|
|
696
|
-
UDSliceTwistPrun,
|
|
697
|
-
UDSliceMove,
|
|
698
|
-
UDSliceConj,
|
|
699
|
-
TwistMove,
|
|
700
|
-
SymStateTwist,
|
|
701
|
-
431619,
|
|
702
|
-
fullInit,
|
|
703
|
-
);
|
|
704
|
-
initRawSymPrun(
|
|
705
|
-
UDSliceFlipPrun,
|
|
706
|
-
UDSliceMove,
|
|
707
|
-
UDSliceConj,
|
|
708
|
-
FlipMove,
|
|
709
|
-
SymStateFlip,
|
|
710
|
-
431619,
|
|
711
|
-
fullInit,
|
|
712
|
-
);
|
|
713
|
-
initRawSymPrun(
|
|
714
|
-
TwistFlipPrun,
|
|
715
|
-
null,
|
|
716
|
-
null,
|
|
717
|
-
TwistMove,
|
|
718
|
-
SymStateTwist,
|
|
719
|
-
103939,
|
|
720
|
-
fullInit,
|
|
721
|
-
);
|
|
417
|
+
initRawSymPrun(MCPermPrun, MPermMove, MPermConj, CPermMove, ($clinit_CubieCube(), SymStatePerm), 584244, fullInit);
|
|
418
|
+
initRawSymPrun(EPermCCombPPrun, CCombPMove, CCombPConj, EPermMove, SymStatePerm, 514084, fullInit);
|
|
419
|
+
initRawSymPrun(UDSliceTwistPrun, UDSliceMove, UDSliceConj, TwistMove, SymStateTwist, 431619, fullInit);
|
|
420
|
+
initRawSymPrun(UDSliceFlipPrun, UDSliceMove, UDSliceConj, FlipMove, SymStateFlip, 431619, fullInit);
|
|
421
|
+
initRawSymPrun(TwistFlipPrun, null, null, TwistMove, SymStateTwist, 103939, fullInit);
|
|
722
422
|
initLevel = fullInit ? 2 : 1;
|
|
723
423
|
}
|
|
724
|
-
|
|
725
424
|
function initCPermMove() {
|
|
726
425
|
var c, d, i, j;
|
|
727
426
|
c = new CubieCube();
|
|
@@ -730,44 +429,27 @@ function initCPermMove() {
|
|
|
730
429
|
$setCPerm(c, ($clinit_CubieCube(), EPermS2R)[i]);
|
|
731
430
|
for (j = 0; j < 10; j++) {
|
|
732
431
|
CornMult(c, moveCube[($clinit_Util(), ud2std)[j]], d);
|
|
733
|
-
CPermMove[i][j] =
|
|
734
|
-
ESym2CSym(EPermR2S[getNPerm(d.ca, 8, false)]) & $intern_20;
|
|
432
|
+
CPermMove[i][j] = ESym2CSym(EPermR2S[getNPerm(d.ca, 8, false)]) & $intern_20;
|
|
735
433
|
}
|
|
736
434
|
}
|
|
737
435
|
}
|
|
738
|
-
|
|
739
436
|
function initCombPMoveConj() {
|
|
740
437
|
var c, d, i, j, j0;
|
|
741
438
|
c = new CubieCube();
|
|
742
439
|
d = new CubieCube();
|
|
743
|
-
CCombPMove = initDims(
|
|
744
|
-
C_classLit,
|
|
745
|
-
[$intern_3, $intern_26],
|
|
746
|
-
[11, 0],
|
|
747
|
-
7,
|
|
748
|
-
[140, 10],
|
|
749
|
-
2,
|
|
750
|
-
);
|
|
440
|
+
CCombPMove = initDims(C_classLit, [$intern_3, $intern_26], [11, 0], 7, [140, 10], 2);
|
|
751
441
|
for (i = 0; i < 140; i++) {
|
|
752
442
|
setComb(c.ca, i % 70, 0, false);
|
|
753
443
|
for (j0 = 0; j0 < 10; j0++) {
|
|
754
|
-
CornMult(
|
|
755
|
-
|
|
756
|
-
($clinit_CubieCube(), moveCube)[($clinit_Util(), ud2std)[j0]],
|
|
757
|
-
d,
|
|
758
|
-
);
|
|
759
|
-
CCombPMove[i][j0] =
|
|
760
|
-
(getComb(d.ca, 0, false) + 70 * (((165 >> j0) & 1) ^ ~~(i / 70))) &
|
|
761
|
-
$intern_20;
|
|
444
|
+
CornMult(c, ($clinit_CubieCube(), moveCube)[($clinit_Util(), ud2std)[j0]], d);
|
|
445
|
+
CCombPMove[i][j0] = getComb(d.ca, 0, false) + 70 * (165 >> j0 & 1 ^ ~~(i / 70)) & $intern_20;
|
|
762
446
|
}
|
|
763
447
|
for (j = 0; j < 16; j++) {
|
|
764
448
|
CornConjugate(c, ($clinit_CubieCube(), SymMultInv)[0][j], d);
|
|
765
|
-
CCombPConj[i][j] =
|
|
766
|
-
(getComb(d.ca, 0, false) + 70 * ~~(i / 70)) & $intern_20;
|
|
449
|
+
CCombPConj[i][j] = getComb(d.ca, 0, false) + 70 * ~~(i / 70) & $intern_20;
|
|
767
450
|
}
|
|
768
451
|
}
|
|
769
452
|
}
|
|
770
|
-
|
|
771
453
|
function initEPermMove() {
|
|
772
454
|
var c, d, i, j;
|
|
773
455
|
c = new CubieCube();
|
|
@@ -780,7 +462,6 @@ function initEPermMove() {
|
|
|
780
462
|
}
|
|
781
463
|
}
|
|
782
464
|
}
|
|
783
|
-
|
|
784
465
|
function initFlipMove() {
|
|
785
466
|
var c, d, i, j;
|
|
786
467
|
c = new CubieCube();
|
|
@@ -793,7 +474,6 @@ function initFlipMove() {
|
|
|
793
474
|
}
|
|
794
475
|
}
|
|
795
476
|
}
|
|
796
|
-
|
|
797
477
|
function initMPermMoveConj() {
|
|
798
478
|
var c, d, i, j, j0;
|
|
799
479
|
c = new CubieCube();
|
|
@@ -801,11 +481,7 @@ function initMPermMoveConj() {
|
|
|
801
481
|
for (i = 0; i < 24; i++) {
|
|
802
482
|
setNPerm(c.ea, i, 12, true);
|
|
803
483
|
for (j0 = 0; j0 < 10; j0++) {
|
|
804
|
-
EdgeMult(
|
|
805
|
-
c,
|
|
806
|
-
($clinit_CubieCube(), moveCube)[($clinit_Util(), ud2std)[j0]],
|
|
807
|
-
d,
|
|
808
|
-
);
|
|
484
|
+
EdgeMult(c, ($clinit_CubieCube(), moveCube)[($clinit_Util(), ud2std)[j0]], d);
|
|
809
485
|
MPermMove[i][j0] = getNPerm(d.ea, 12, true) % 24 & $intern_20;
|
|
810
486
|
}
|
|
811
487
|
for (j = 0; j < 16; j++) {
|
|
@@ -814,58 +490,14 @@ function initMPermMoveConj() {
|
|
|
814
490
|
}
|
|
815
491
|
}
|
|
816
492
|
}
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
PrunTable,
|
|
820
|
-
RawMove,
|
|
821
|
-
RawConj,
|
|
822
|
-
SymMove,
|
|
823
|
-
SymState,
|
|
824
|
-
PrunFlag,
|
|
825
|
-
fullInit,
|
|
826
|
-
) {
|
|
827
|
-
var INV_DEPTH,
|
|
828
|
-
ISTFP,
|
|
829
|
-
IS_PHASE2,
|
|
830
|
-
MAX_DEPTH,
|
|
831
|
-
MIN_DEPTH,
|
|
832
|
-
NEXT_AXIS_MAGIC,
|
|
833
|
-
N_MOVES,
|
|
834
|
-
N_RAW,
|
|
835
|
-
N_SIZE,
|
|
836
|
-
SEARCH_DEPTH,
|
|
837
|
-
SYM_E2C_MAGIC,
|
|
838
|
-
SYM_MASK,
|
|
839
|
-
SYM_SHIFT,
|
|
840
|
-
check,
|
|
841
|
-
depth,
|
|
842
|
-
flip,
|
|
843
|
-
fsym,
|
|
844
|
-
i,
|
|
845
|
-
i0,
|
|
846
|
-
idx,
|
|
847
|
-
idxx,
|
|
848
|
-
inv,
|
|
849
|
-
j,
|
|
850
|
-
m,
|
|
851
|
-
mask,
|
|
852
|
-
prun,
|
|
853
|
-
raw,
|
|
854
|
-
rawx,
|
|
855
|
-
selArrMask,
|
|
856
|
-
select,
|
|
857
|
-
sym,
|
|
858
|
-
symState,
|
|
859
|
-
symx,
|
|
860
|
-
val,
|
|
861
|
-
val0,
|
|
862
|
-
xorVal;
|
|
493
|
+
function initRawSymPrun(PrunTable, RawMove, RawConj, SymMove, SymState, PrunFlag, fullInit) {
|
|
494
|
+
var INV_DEPTH, ISTFP, IS_PHASE2, MAX_DEPTH, MIN_DEPTH, NEXT_AXIS_MAGIC, N_MOVES, N_RAW, N_SIZE, SEARCH_DEPTH, SYM_E2C_MAGIC, SYM_MASK, SYM_SHIFT, check, depth, flip, fsym, i, i0, idx, idxx, inv, j, m, mask, prun, raw, rawx, selArrMask, select, sym, symState, symx, val, val0, xorVal;
|
|
863
495
|
SYM_SHIFT = PrunFlag & 15;
|
|
864
|
-
SYM_E2C_MAGIC = (
|
|
865
|
-
IS_PHASE2 = (
|
|
866
|
-
INV_DEPTH =
|
|
867
|
-
MAX_DEPTH =
|
|
868
|
-
MIN_DEPTH =
|
|
496
|
+
SYM_E2C_MAGIC = (PrunFlag >> 4 & 1) == 1 ? $intern_28 : 0;
|
|
497
|
+
IS_PHASE2 = (PrunFlag >> 5 & 1) == 1;
|
|
498
|
+
INV_DEPTH = PrunFlag >> 8 & 15;
|
|
499
|
+
MAX_DEPTH = PrunFlag >> 12 & 15;
|
|
500
|
+
MIN_DEPTH = PrunFlag >> 16 & 15;
|
|
869
501
|
SEARCH_DEPTH = fullInit ? MAX_DEPTH : MIN_DEPTH;
|
|
870
502
|
SYM_MASK = (1 << SYM_SHIFT) - 1;
|
|
871
503
|
ISTFP = RawMove == null;
|
|
@@ -873,8 +505,7 @@ function initRawSymPrun(
|
|
|
873
505
|
N_SIZE = N_RAW * SymMove.length;
|
|
874
506
|
N_MOVES = IS_PHASE2 ? 10 : 18;
|
|
875
507
|
NEXT_AXIS_MAGIC = N_MOVES == 10 ? 66 : 599186;
|
|
876
|
-
depth = (
|
|
877
|
-
|
|
508
|
+
depth = (PrunTable[N_SIZE >> 3] >> (N_SIZE << 2) & 15) - 1;
|
|
878
509
|
if (depth == -1) {
|
|
879
510
|
for (i = 0; i < ~~(N_SIZE / 8) + 1; i++) {
|
|
880
511
|
PrunTable[i] = $intern_29;
|
|
@@ -883,28 +514,23 @@ function initRawSymPrun(
|
|
|
883
514
|
depth = 0;
|
|
884
515
|
}
|
|
885
516
|
while (depth < SEARCH_DEPTH) {
|
|
886
|
-
mask = (
|
|
517
|
+
mask = (depth + 1) * $intern_29 ^ -1;
|
|
887
518
|
for (i0 = 0; i0 < PrunTable.length; i0++) {
|
|
888
519
|
val0 = PrunTable[i0] ^ mask;
|
|
889
520
|
val0 &= val0 >> 1;
|
|
890
|
-
PrunTable[i0] += val0 &
|
|
521
|
+
PrunTable[i0] += val0 & val0 >> 2 & $intern_29;
|
|
891
522
|
}
|
|
892
523
|
inv = depth > INV_DEPTH;
|
|
893
524
|
select = inv ? depth + 2 : depth;
|
|
894
525
|
selArrMask = select * $intern_29;
|
|
895
526
|
check = inv ? depth : depth + 2;
|
|
896
527
|
++depth;
|
|
897
|
-
xorVal = depth ^
|
|
528
|
+
xorVal = depth ^ depth + 1;
|
|
898
529
|
val = 0;
|
|
899
530
|
for (i = 0; i < N_SIZE; ++i, val >>= 4) {
|
|
900
531
|
if ((i & 7) == 0) {
|
|
901
532
|
val = PrunTable[i >> 3];
|
|
902
|
-
if (
|
|
903
|
-
(((val ^ selArrMask) - $intern_29) &
|
|
904
|
-
~(val ^ selArrMask) &
|
|
905
|
-
-2004318072) ==
|
|
906
|
-
0
|
|
907
|
-
) {
|
|
533
|
+
if (((val ^ selArrMask) - $intern_29 & ~(val ^ selArrMask) & -2004318072) == 0) {
|
|
908
534
|
i += 7;
|
|
909
535
|
continue;
|
|
910
536
|
}
|
|
@@ -923,18 +549,12 @@ function initRawSymPrun(
|
|
|
923
549
|
}
|
|
924
550
|
for (m = 0; m < N_MOVES; m++) {
|
|
925
551
|
symx = SymMove[sym][m];
|
|
926
|
-
ISTFP
|
|
927
|
-
? (rawx = ($clinit_CubieCube(), FlipS2RF)[
|
|
928
|
-
FlipMove[flip][Sym8Move[(m << 3) | fsym]] ^
|
|
929
|
-
fsym ^
|
|
930
|
-
(symx & SYM_MASK)
|
|
931
|
-
])
|
|
932
|
-
: (rawx = RawConj[RawMove[raw][m]][symx & SYM_MASK]);
|
|
552
|
+
ISTFP ? rawx = ($clinit_CubieCube(), FlipS2RF)[FlipMove[flip][Sym8Move[m << 3 | fsym]] ^ fsym ^ symx & SYM_MASK] : rawx = RawConj[RawMove[raw][m]][symx & SYM_MASK];
|
|
933
553
|
symx >>= SYM_SHIFT;
|
|
934
554
|
idx = symx * N_RAW + rawx;
|
|
935
|
-
prun =
|
|
555
|
+
prun = PrunTable[idx >> 3] >> (idx << 2) & 15;
|
|
936
556
|
if (prun != check) {
|
|
937
|
-
prun < depth - 1 && (m +=
|
|
557
|
+
prun < depth - 1 && (m += NEXT_AXIS_MAGIC >> m & 3);
|
|
938
558
|
continue;
|
|
939
559
|
}
|
|
940
560
|
if (inv) {
|
|
@@ -947,10 +567,8 @@ function initRawSymPrun(
|
|
|
947
567
|
continue;
|
|
948
568
|
}
|
|
949
569
|
idxx = symx * N_RAW;
|
|
950
|
-
ISTFP
|
|
951
|
-
|
|
952
|
-
: (idxx += RawConj[rawx][j ^ ((SYM_E2C_MAGIC >> (j << 1)) & 3)]);
|
|
953
|
-
if (((PrunTable[idxx >> 3] >> (idxx << 2)) & 15) == check) {
|
|
570
|
+
ISTFP ? idxx += ($clinit_CubieCube(), FlipS2RF)[FlipR2S[rawx] ^ j] : idxx += RawConj[rawx][j ^ SYM_E2C_MAGIC >> (j << 1) & 3];
|
|
571
|
+
if ((PrunTable[idxx >> 3] >> (idxx << 2) & 15) == check) {
|
|
954
572
|
PrunTable[idxx >> 3] ^= xorVal << (idxx << 2);
|
|
955
573
|
}
|
|
956
574
|
}
|
|
@@ -958,7 +576,6 @@ function initRawSymPrun(
|
|
|
958
576
|
}
|
|
959
577
|
}
|
|
960
578
|
}
|
|
961
|
-
|
|
962
579
|
function initTwistMove() {
|
|
963
580
|
var c, d, i, j;
|
|
964
581
|
c = new CubieCube();
|
|
@@ -971,7 +588,6 @@ function initTwistMove() {
|
|
|
971
588
|
}
|
|
972
589
|
}
|
|
973
590
|
}
|
|
974
|
-
|
|
975
591
|
function initUDSliceMoveConj() {
|
|
976
592
|
var c, d, i, i0, j, j0, k, udslice;
|
|
977
593
|
c = new CubieCube();
|
|
@@ -980,11 +596,11 @@ function initUDSliceMoveConj() {
|
|
|
980
596
|
setComb(c.ea, 494 - i0, 8, true);
|
|
981
597
|
for (j0 = 0; j0 < 18; j0 += 3) {
|
|
982
598
|
EdgeMult(c, ($clinit_CubieCube(), moveCube)[j0], d);
|
|
983
|
-
UDSliceMove[i0][j0] =
|
|
599
|
+
UDSliceMove[i0][j0] = 494 - getComb(d.ea, 8, true) & $intern_20;
|
|
984
600
|
}
|
|
985
601
|
for (j = 0; j < 16; j += 2) {
|
|
986
602
|
EdgeConjugate(c, ($clinit_CubieCube(), SymMultInv)[0][j], d);
|
|
987
|
-
UDSliceConj[i0][j >> 1] =
|
|
603
|
+
UDSliceConj[i0][j >> 1] = 494 - getComb(d.ea, 8, true) & $intern_20;
|
|
988
604
|
}
|
|
989
605
|
}
|
|
990
606
|
for (i = 0; i < 495; i++) {
|
|
@@ -997,7 +613,6 @@ function initUDSliceMoveConj() {
|
|
|
997
613
|
}
|
|
998
614
|
}
|
|
999
615
|
}
|
|
1000
|
-
|
|
1001
616
|
defineClass(31, 1, { 31: 1 }, CoordCube);
|
|
1002
617
|
_.flip = 0;
|
|
1003
618
|
_.flipc = 0;
|
|
@@ -1007,84 +622,38 @@ _.slice_0 = 0;
|
|
|
1007
622
|
_.tsym = 0;
|
|
1008
623
|
_.twist = 0;
|
|
1009
624
|
_.twistc = 0;
|
|
1010
|
-
var CCombPConj
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
var Lorg_cubing_min2phase_client_CoordCube_2_classLit = createForClass(
|
|
1027
|
-
|
|
1028
|
-
"CoordCube",
|
|
1029
|
-
31,
|
|
1030
|
-
);
|
|
1031
|
-
let $clinit_CubieCube_ran = false;
|
|
625
|
+
var CCombPConj;
|
|
626
|
+
var CCombPMove;
|
|
627
|
+
var CPermMove;
|
|
628
|
+
var EPermCCombPPrun;
|
|
629
|
+
var EPermMove;
|
|
630
|
+
var FlipMove;
|
|
631
|
+
var MCPermPrun;
|
|
632
|
+
var MPermConj;
|
|
633
|
+
var MPermMove;
|
|
634
|
+
var TwistFlipPrun;
|
|
635
|
+
var TwistMove;
|
|
636
|
+
var UDSliceConj;
|
|
637
|
+
var UDSliceFlipPrun;
|
|
638
|
+
var UDSliceMove;
|
|
639
|
+
var UDSliceTwistPrun;
|
|
640
|
+
var initLevel = 0;
|
|
641
|
+
var Lorg_cubing_min2phase_client_CoordCube_2_classLit = createForClass("org.cubing.min2phase.client", "CoordCube", 31);
|
|
642
|
+
var $clinit_CubieCube_ran = false;
|
|
1032
643
|
function $clinit_CubieCube() {
|
|
1033
644
|
if ($clinit_CubieCube_ran) {
|
|
1034
645
|
return;
|
|
1035
646
|
}
|
|
1036
647
|
$clinit_CubieCube_ran = true;
|
|
1037
|
-
CubeSym = initDim(
|
|
1038
|
-
|
|
1039
|
-
$intern_3,
|
|
1040
|
-
7,
|
|
1041
|
-
16,
|
|
1042
|
-
0,
|
|
1043
|
-
1,
|
|
1044
|
-
);
|
|
1045
|
-
moveCube = initDim(
|
|
1046
|
-
Lorg_cubing_min2phase_client_CubieCube_2_classLit,
|
|
1047
|
-
$intern_3,
|
|
1048
|
-
7,
|
|
1049
|
-
18,
|
|
1050
|
-
0,
|
|
1051
|
-
1,
|
|
1052
|
-
);
|
|
648
|
+
CubeSym = initDim(Lorg_cubing_min2phase_client_CubieCube_2_classLit, $intern_3, 7, 16, 0, 1);
|
|
649
|
+
moveCube = initDim(Lorg_cubing_min2phase_client_CubieCube_2_classLit, $intern_3, 7, 18, 0, 1);
|
|
1053
650
|
moveCubeSym = initDim(J_classLit, $intern_3, 0, 18, 6, 1);
|
|
1054
651
|
firstMoveSym = initDim(I_classLit, $intern_27, 0, 48, 7, 1);
|
|
1055
|
-
SymMult = initDims(
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
[17, 0],
|
|
1059
|
-
7,
|
|
1060
|
-
[16, 16],
|
|
1061
|
-
2,
|
|
1062
|
-
);
|
|
1063
|
-
SymMultInv = initDims(
|
|
1064
|
-
I_classLit,
|
|
1065
|
-
[$intern_3, $intern_27],
|
|
1066
|
-
[17, 0],
|
|
1067
|
-
7,
|
|
1068
|
-
[16, 16],
|
|
1069
|
-
2,
|
|
1070
|
-
);
|
|
1071
|
-
SymMove_0 = initDims(
|
|
1072
|
-
I_classLit,
|
|
1073
|
-
[$intern_3, $intern_27],
|
|
1074
|
-
[17, 0],
|
|
1075
|
-
7,
|
|
1076
|
-
[16, 18],
|
|
1077
|
-
2,
|
|
1078
|
-
);
|
|
652
|
+
SymMult = initDims(I_classLit, [$intern_3, $intern_27], [17, 0], 7, [16, 16], 2);
|
|
653
|
+
SymMultInv = initDims(I_classLit, [$intern_3, $intern_27], [17, 0], 7, [16, 16], 2);
|
|
654
|
+
SymMove_0 = initDims(I_classLit, [$intern_3, $intern_27], [17, 0], 7, [16, 18], 2);
|
|
1079
655
|
Sym8Move = initDim(I_classLit, $intern_27, 0, 144, 7, 1);
|
|
1080
|
-
SymMoveUD = initDims(
|
|
1081
|
-
I_classLit,
|
|
1082
|
-
[$intern_3, $intern_27],
|
|
1083
|
-
[17, 0],
|
|
1084
|
-
7,
|
|
1085
|
-
[16, 18],
|
|
1086
|
-
2,
|
|
1087
|
-
);
|
|
656
|
+
SymMoveUD = initDims(I_classLit, [$intern_3, $intern_27], [17, 0], 7, [16, 18], 2);
|
|
1088
657
|
FlipS2R = initDim(C_classLit, $intern_26, 0, 336, 7, 1);
|
|
1089
658
|
TwistS2R = initDim(C_classLit, $intern_26, 0, 324, 7, 1);
|
|
1090
659
|
EPermS2R = initDim(C_classLit, $intern_26, 0, 2768, 7, 1);
|
|
@@ -1097,77 +666,21 @@ function $clinit_CubieCube() {
|
|
|
1097
666
|
FlipS2RF = initDim(C_classLit, $intern_26, 0, 2688, 7, 1);
|
|
1098
667
|
urf1 = new CubieCube_0(2531, 1373, 67026819, 1367);
|
|
1099
668
|
urf2 = new CubieCube_0(2089, 1906, 322752913, 2040);
|
|
1100
|
-
urfMove = initValues(
|
|
1101
|
-
getClassLiteralForArray(B_classLit, 2),
|
|
1102
|
-
$
|
|
1103
|
-
10,
|
|
1104
|
-
0,
|
|
1105
|
-
[
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
$intern_30,
|
|
1109
|
-
0,
|
|
1110
|
-
7,
|
|
1111
|
-
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17],
|
|
1112
|
-
),
|
|
1113
|
-
initValues(
|
|
1114
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1115
|
-
$intern_30,
|
|
1116
|
-
0,
|
|
1117
|
-
7,
|
|
1118
|
-
[6, 7, 8, 0, 1, 2, 3, 4, 5, 15, 16, 17, 9, 10, 11, 12, 13, 14],
|
|
1119
|
-
),
|
|
1120
|
-
initValues(
|
|
1121
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1122
|
-
$intern_30,
|
|
1123
|
-
0,
|
|
1124
|
-
7,
|
|
1125
|
-
[3, 4, 5, 6, 7, 8, 0, 1, 2, 12, 13, 14, 15, 16, 17, 9, 10, 11],
|
|
1126
|
-
),
|
|
1127
|
-
initValues(
|
|
1128
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1129
|
-
$intern_30,
|
|
1130
|
-
0,
|
|
1131
|
-
7,
|
|
1132
|
-
[2, 1, 0, 5, 4, 3, 8, 7, 6, 11, 10, 9, 14, 13, 12, 17, 16, 15],
|
|
1133
|
-
),
|
|
1134
|
-
initValues(
|
|
1135
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1136
|
-
$intern_30,
|
|
1137
|
-
0,
|
|
1138
|
-
7,
|
|
1139
|
-
[8, 7, 6, 2, 1, 0, 5, 4, 3, 17, 16, 15, 11, 10, 9, 14, 13, 12],
|
|
1140
|
-
),
|
|
1141
|
-
initValues(
|
|
1142
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1143
|
-
$intern_30,
|
|
1144
|
-
0,
|
|
1145
|
-
7,
|
|
1146
|
-
[5, 4, 3, 8, 7, 6, 2, 1, 0, 14, 13, 12, 17, 16, 15, 11, 10, 9],
|
|
1147
|
-
),
|
|
1148
|
-
],
|
|
1149
|
-
);
|
|
669
|
+
urfMove = initValues(getClassLiteralForArray(B_classLit, 2), $intern_3, 10, 0, [
|
|
670
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]),
|
|
671
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [6, 7, 8, 0, 1, 2, 3, 4, 5, 15, 16, 17, 9, 10, 11, 12, 13, 14]),
|
|
672
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [3, 4, 5, 6, 7, 8, 0, 1, 2, 12, 13, 14, 15, 16, 17, 9, 10, 11]),
|
|
673
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [2, 1, 0, 5, 4, 3, 8, 7, 6, 11, 10, 9, 14, 13, 12, 17, 16, 15]),
|
|
674
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [8, 7, 6, 2, 1, 0, 5, 4, 3, 17, 16, 15, 11, 10, 9, 14, 13, 12]),
|
|
675
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [5, 4, 3, 8, 7, 6, 2, 1, 0, 14, 13, 12, 17, 16, 15, 11, 10, 9])
|
|
676
|
+
]);
|
|
1150
677
|
initMove();
|
|
1151
678
|
initSym();
|
|
1152
679
|
}
|
|
1153
|
-
|
|
1154
680
|
function $$init(this$static) {
|
|
1155
|
-
this$static.ca = initValues(
|
|
1156
|
-
|
|
1157
|
-
$intern_30,
|
|
1158
|
-
0,
|
|
1159
|
-
7,
|
|
1160
|
-
[0, 1, 2, 3, 4, 5, 6, 7],
|
|
1161
|
-
);
|
|
1162
|
-
this$static.ea = initValues(
|
|
1163
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1164
|
-
$intern_30,
|
|
1165
|
-
0,
|
|
1166
|
-
7,
|
|
1167
|
-
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22],
|
|
1168
|
-
);
|
|
681
|
+
this$static.ca = initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [0, 1, 2, 3, 4, 5, 6, 7]);
|
|
682
|
+
this$static.ea = initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22]);
|
|
1169
683
|
}
|
|
1170
|
-
|
|
1171
684
|
function $URFConjugate(this$static) {
|
|
1172
685
|
!this$static.temps && (this$static.temps = new CubieCube());
|
|
1173
686
|
CornMult(urf2, this$static, this$static.temps);
|
|
@@ -1175,7 +688,6 @@ function $URFConjugate(this$static) {
|
|
|
1175
688
|
EdgeMult(urf2, this$static, this$static.temps);
|
|
1176
689
|
EdgeMult(this$static.temps, urf1, this$static);
|
|
1177
690
|
}
|
|
1178
|
-
|
|
1179
691
|
function $copy(this$static, c) {
|
|
1180
692
|
var i, i0;
|
|
1181
693
|
for (i0 = 0; i0 < 8; i0++) {
|
|
@@ -1185,24 +697,20 @@ function $copy(this$static, c) {
|
|
|
1185
697
|
this$static.ea[i] = c.ea[i];
|
|
1186
698
|
}
|
|
1187
699
|
}
|
|
1188
|
-
|
|
1189
700
|
function $getCPermSym(this$static) {
|
|
1190
701
|
return ESym2CSym(EPermR2S[getNPerm(this$static.ca, 8, false)]);
|
|
1191
702
|
}
|
|
1192
|
-
|
|
1193
703
|
function $getEPermSym(this$static) {
|
|
1194
704
|
return EPermR2S[getNPerm(this$static.ea, 8, true)];
|
|
1195
705
|
}
|
|
1196
|
-
|
|
1197
706
|
function $getFlip(this$static) {
|
|
1198
707
|
var i, idx;
|
|
1199
708
|
idx = 0;
|
|
1200
709
|
for (i = 0; i < 11; i++) {
|
|
1201
|
-
idx =
|
|
710
|
+
idx = idx << 1 | this$static.ea[i] & 1;
|
|
1202
711
|
}
|
|
1203
712
|
return idx;
|
|
1204
713
|
}
|
|
1205
|
-
|
|
1206
714
|
function $getTwist(this$static) {
|
|
1207
715
|
var i, idx;
|
|
1208
716
|
idx = 0;
|
|
@@ -1211,21 +719,17 @@ function $getTwist(this$static) {
|
|
|
1211
719
|
}
|
|
1212
720
|
return idx;
|
|
1213
721
|
}
|
|
1214
|
-
|
|
1215
722
|
function $invCubieCube(this$static) {
|
|
1216
723
|
var corn, edge;
|
|
1217
724
|
!this$static.temps && (this$static.temps = new CubieCube());
|
|
1218
725
|
for (edge = 0; edge < 12; edge++) {
|
|
1219
|
-
this$static.temps.ea[this$static.ea[edge] >> 1] =
|
|
1220
|
-
(((edge << 1) | (this$static.ea[edge] & 1)) << 24) >> 24;
|
|
726
|
+
this$static.temps.ea[this$static.ea[edge] >> 1] = (edge << 1 | this$static.ea[edge] & 1) << 24 >> 24;
|
|
1221
727
|
}
|
|
1222
728
|
for (corn = 0; corn < 8; corn++) {
|
|
1223
|
-
this$static.temps.ca[this$static.ca[corn] & 7] =
|
|
1224
|
-
((corn | ((32 >> (this$static.ca[corn] >> 3)) & 24)) << 24) >> 24;
|
|
729
|
+
this$static.temps.ca[this$static.ca[corn] & 7] = (corn | 32 >> (this$static.ca[corn] >> 3) & 24) << 24 >> 24;
|
|
1225
730
|
}
|
|
1226
731
|
$copy(this$static, this$static.temps);
|
|
1227
732
|
}
|
|
1228
|
-
|
|
1229
733
|
function $selfSymmetry(this$static) {
|
|
1230
734
|
var c, cperm, cpermx, d, i, sym, urfInv;
|
|
1231
735
|
c = new CubieCube_1(this$static);
|
|
@@ -1239,14 +743,7 @@ function $selfSymmetry(this$static) {
|
|
|
1239
743
|
CornConjugate(c, SymMultInv[0][i], d);
|
|
1240
744
|
if (equals_7(d.ca, this$static.ca)) {
|
|
1241
745
|
EdgeConjugate(c, SymMultInv[0][i], d);
|
|
1242
|
-
equals_7(d.ea, this$static.ea) &&
|
|
1243
|
-
(sym = or(
|
|
1244
|
-
sym,
|
|
1245
|
-
shl(
|
|
1246
|
-
{ l: 1, m: 0, h: 0 },
|
|
1247
|
-
((urfInv << 4) | i) < 48 ? (urfInv << 4) | i : 48,
|
|
1248
|
-
),
|
|
1249
|
-
));
|
|
746
|
+
equals_7(d.ea, this$static.ea) && (sym = or(sym, shl({ l: 1, m: 0, h: 0 }, (urfInv << 4 | i) < 48 ? urfInv << 4 | i : 48)));
|
|
1250
747
|
}
|
|
1251
748
|
}
|
|
1252
749
|
}
|
|
@@ -1255,35 +752,30 @@ function $selfSymmetry(this$static) {
|
|
|
1255
752
|
}
|
|
1256
753
|
return sym;
|
|
1257
754
|
}
|
|
1258
|
-
|
|
1259
755
|
function $setCPerm(this$static, idx) {
|
|
1260
756
|
setNPerm(this$static.ca, idx, 8, false);
|
|
1261
757
|
}
|
|
1262
|
-
|
|
1263
758
|
function $setEPerm(this$static, idx) {
|
|
1264
759
|
setNPerm(this$static.ea, idx, 8, true);
|
|
1265
760
|
}
|
|
1266
|
-
|
|
1267
761
|
function $setFlip(this$static, idx) {
|
|
1268
762
|
var i, parity, val;
|
|
1269
763
|
parity = 0;
|
|
1270
764
|
for (i = 10; i >= 0; --i, idx >>= 1) {
|
|
1271
765
|
parity ^= val = idx & 1;
|
|
1272
|
-
this$static.ea[i] = (
|
|
766
|
+
this$static.ea[i] = (this$static.ea[i] & -2 | val) << 24 >> 24;
|
|
1273
767
|
}
|
|
1274
|
-
this$static.ea[11] = (
|
|
768
|
+
this$static.ea[11] = (this$static.ea[11] & -2 | parity) << 24 >> 24;
|
|
1275
769
|
}
|
|
1276
|
-
|
|
1277
770
|
function $setTwist(this$static, idx) {
|
|
1278
771
|
var i, twst, val;
|
|
1279
772
|
twst = 15;
|
|
1280
773
|
for (i = 6; i >= 0; --i, idx = ~~(idx / 3)) {
|
|
1281
774
|
twst -= val = idx % 3;
|
|
1282
|
-
this$static.ca[i] = (
|
|
775
|
+
this$static.ca[i] = (this$static.ca[i] & 7 | val << 3) << 24 >> 24;
|
|
1283
776
|
}
|
|
1284
|
-
this$static.ca[7] = (
|
|
777
|
+
this$static.ca[7] = (this$static.ca[7] & 7 | twst % 3 << 3) << 24 >> 24;
|
|
1285
778
|
}
|
|
1286
|
-
|
|
1287
779
|
function $verify(this$static) {
|
|
1288
780
|
var c, cornMask, e, edgeMask, sum;
|
|
1289
781
|
sum = 0;
|
|
@@ -1310,16 +802,11 @@ function $verify(this$static) {
|
|
|
1310
802
|
if (sum % 3 != 0) {
|
|
1311
803
|
return -5;
|
|
1312
804
|
}
|
|
1313
|
-
if (
|
|
1314
|
-
(getNParity(getNPerm(this$static.ea, 12, true), 12) ^
|
|
1315
|
-
getNParity(getNPerm(this$static.ca, 8, false), 8)) !=
|
|
1316
|
-
0
|
|
1317
|
-
) {
|
|
805
|
+
if ((getNParity(getNPerm(this$static.ea, 12, true), 12) ^ getNParity(getNPerm(this$static.ca, 8, false), 8)) != 0) {
|
|
1318
806
|
return -6;
|
|
1319
807
|
}
|
|
1320
808
|
return 0;
|
|
1321
809
|
}
|
|
1322
|
-
|
|
1323
810
|
function CornConjugate(a, idx, b) {
|
|
1324
811
|
$clinit_CubieCube();
|
|
1325
812
|
var corn, ori, oriA, oriB, s, sinv;
|
|
@@ -1329,38 +816,32 @@ function CornConjugate(a, idx, b) {
|
|
|
1329
816
|
oriA = sinv.ca[a.ca[s.ca[corn] & 7] & 7] >> 3;
|
|
1330
817
|
oriB = a.ca[s.ca[corn] & 7] >> 3;
|
|
1331
818
|
ori = oriA < 3 ? oriB : (3 - oriB) % 3;
|
|
1332
|
-
b.ca[corn] =
|
|
1333
|
-
(((sinv.ca[a.ca[s.ca[corn] & 7] & 7] & 7) | (ori << 3)) << 24) >> 24;
|
|
819
|
+
b.ca[corn] = (sinv.ca[a.ca[s.ca[corn] & 7] & 7] & 7 | ori << 3) << 24 >> 24;
|
|
1334
820
|
}
|
|
1335
821
|
}
|
|
1336
|
-
|
|
1337
822
|
function CornMult(a, b, prod) {
|
|
1338
823
|
$clinit_CubieCube();
|
|
1339
824
|
var corn, oriA, oriB;
|
|
1340
825
|
for (corn = 0; corn < 8; corn++) {
|
|
1341
826
|
oriA = a.ca[b.ca[corn] & 7] >> 3;
|
|
1342
827
|
oriB = b.ca[corn] >> 3;
|
|
1343
|
-
prod.ca[corn] =
|
|
1344
|
-
(((a.ca[b.ca[corn] & 7] & 7) | ((oriA + oriB) % 3 << 3)) << 24) >> 24;
|
|
828
|
+
prod.ca[corn] = (a.ca[b.ca[corn] & 7] & 7 | (oriA + oriB) % 3 << 3) << 24 >> 24;
|
|
1345
829
|
}
|
|
1346
830
|
}
|
|
1347
|
-
|
|
1348
831
|
function CornMultFull(a, b, prod) {
|
|
1349
832
|
var corn, ori, oriA, oriB;
|
|
1350
833
|
for (corn = 0; corn < 8; corn++) {
|
|
1351
834
|
oriA = a.ca[b.ca[corn] & 7] >> 3;
|
|
1352
835
|
oriB = b.ca[corn] >> 3;
|
|
1353
836
|
ori = oriA + (oriA < 3 ? oriB : 6 - oriB);
|
|
1354
|
-
ori =
|
|
1355
|
-
prod.ca[corn] = (
|
|
837
|
+
ori = ori % 3 + (oriA < 3 == oriB < 3 ? 0 : 3);
|
|
838
|
+
prod.ca[corn] = (a.ca[b.ca[corn] & 7] & 7 | ori << 3) << 24 >> 24;
|
|
1356
839
|
}
|
|
1357
840
|
}
|
|
1358
|
-
|
|
1359
841
|
function CubieCube() {
|
|
1360
842
|
$clinit_CubieCube();
|
|
1361
843
|
$$init(this);
|
|
1362
844
|
}
|
|
1363
|
-
|
|
1364
845
|
function CubieCube_0(cperm, twist, eperm, flip) {
|
|
1365
846
|
$$init(this);
|
|
1366
847
|
setNPerm(this.ca, cperm, 8, false);
|
|
@@ -1368,59 +849,41 @@ function CubieCube_0(cperm, twist, eperm, flip) {
|
|
|
1368
849
|
setNPerm(this.ea, eperm, 12, true);
|
|
1369
850
|
$setFlip(this, flip);
|
|
1370
851
|
}
|
|
1371
|
-
|
|
1372
852
|
function CubieCube_1(c) {
|
|
1373
853
|
$$init(this);
|
|
1374
854
|
$copy(this, c);
|
|
1375
855
|
}
|
|
1376
|
-
|
|
1377
856
|
function ESym2CSym(idx) {
|
|
1378
857
|
$clinit_CubieCube();
|
|
1379
|
-
return idx ^
|
|
858
|
+
return idx ^ $intern_28 >> ((idx & 15) << 1) & 3;
|
|
1380
859
|
}
|
|
1381
|
-
|
|
1382
860
|
function EdgeConjugate(a, idx, b) {
|
|
1383
861
|
$clinit_CubieCube();
|
|
1384
862
|
var ed, s, sinv;
|
|
1385
863
|
sinv = CubeSym[SymMultInv[0][idx]];
|
|
1386
864
|
s = CubeSym[idx];
|
|
1387
865
|
for (ed = 0; ed < 12; ed++) {
|
|
1388
|
-
b.ea[ed] =
|
|
1389
|
-
((sinv.ea[a.ea[s.ea[ed] >> 1] >> 1] ^
|
|
1390
|
-
(a.ea[s.ea[ed] >> 1] & 1) ^
|
|
1391
|
-
(s.ea[ed] & 1)) <<
|
|
1392
|
-
24) >>
|
|
1393
|
-
24;
|
|
866
|
+
b.ea[ed] = (sinv.ea[a.ea[s.ea[ed] >> 1] >> 1] ^ a.ea[s.ea[ed] >> 1] & 1 ^ s.ea[ed] & 1) << 24 >> 24;
|
|
1394
867
|
}
|
|
1395
868
|
}
|
|
1396
|
-
|
|
1397
869
|
function EdgeMult(a, b, prod) {
|
|
1398
870
|
$clinit_CubieCube();
|
|
1399
871
|
var ed;
|
|
1400
872
|
for (ed = 0; ed < 12; ed++) {
|
|
1401
|
-
prod.ea[ed] = (
|
|
873
|
+
prod.ea[ed] = (a.ea[b.ea[ed] >> 1] ^ b.ea[ed] & 1) << 24 >> 24;
|
|
1402
874
|
}
|
|
1403
875
|
}
|
|
1404
|
-
|
|
1405
876
|
function getPermSymInv(idx, sym, isCorner) {
|
|
1406
877
|
$clinit_CubieCube();
|
|
1407
878
|
var idxi;
|
|
1408
879
|
idxi = PermInvEdgeSym[idx];
|
|
1409
|
-
isCorner && (idxi = idxi ^
|
|
1410
|
-
return
|
|
880
|
+
isCorner && (idxi = idxi ^ $intern_28 >> ((idxi & 15) << 1) & 3);
|
|
881
|
+
return idxi & 65520 | SymMult[idxi & 15][sym];
|
|
1411
882
|
}
|
|
1412
|
-
|
|
1413
883
|
function getSkipMoves() {
|
|
1414
884
|
$clinit_CubieCube();
|
|
1415
|
-
// var i, ret;
|
|
1416
|
-
// ret = 0;
|
|
1417
|
-
// for (i = 1; neq((ssym = shr(ssym, 1)), { l: 0, m: 0, h: 0 }); i++) {
|
|
1418
|
-
// eq(and(ssym, { l: 1, m: 0, h: 0 }), { l: 1, m: 0, h: 0 }) &&
|
|
1419
|
-
// (ret |= firstMoveSym[i]);
|
|
1420
|
-
// }
|
|
1421
885
|
return 0;
|
|
1422
886
|
}
|
|
1423
|
-
|
|
1424
887
|
function initMove() {
|
|
1425
888
|
var a, p;
|
|
1426
889
|
moveCube[0] = new CubieCube_0(15120, 0, 119750400, 0);
|
|
@@ -1437,33 +900,23 @@ function initMove() {
|
|
|
1437
900
|
}
|
|
1438
901
|
}
|
|
1439
902
|
}
|
|
1440
|
-
|
|
1441
903
|
function initPermSym2Raw() {
|
|
1442
904
|
$clinit_CubieCube();
|
|
1443
905
|
var cc, i, i0;
|
|
1444
|
-
initSym2Raw(
|
|
1445
|
-
40320,
|
|
1446
|
-
EPermS2R,
|
|
1447
|
-
EPermR2S,
|
|
1448
|
-
(SymStatePerm = initDim(C_classLit, $intern_26, 0, 2768, 7, 1)),
|
|
1449
|
-
2,
|
|
1450
|
-
);
|
|
906
|
+
initSym2Raw(40320, EPermS2R, EPermR2S, SymStatePerm = initDim(C_classLit, $intern_26, 0, 2768, 7, 1), 2);
|
|
1451
907
|
cc = new CubieCube();
|
|
1452
908
|
for (i0 = 0; i0 < 2768; i0++) {
|
|
1453
909
|
$setEPerm(cc, EPermS2R[i0]);
|
|
1454
|
-
Perm2CombP[i0] =
|
|
1455
|
-
((getComb(cc.ea, 0, true) + getNParity(EPermS2R[i0], 8) * 70) << 24) >>
|
|
1456
|
-
24;
|
|
910
|
+
Perm2CombP[i0] = getComb(cc.ea, 0, true) + getNParity(EPermS2R[i0], 8) * 70 << 24 >> 24;
|
|
1457
911
|
$invCubieCube(cc);
|
|
1458
912
|
PermInvEdgeSym[i0] = EPermR2S[getNPerm(cc.ea, 8, true)];
|
|
1459
913
|
}
|
|
1460
914
|
for (i = 0; i < 24; i++) {
|
|
1461
915
|
setNPerm(cc.ea, i, 12, true);
|
|
1462
916
|
$invCubieCube(cc);
|
|
1463
|
-
MPermInv[i] =
|
|
917
|
+
MPermInv[i] = getNPerm(cc.ea, 12, true) % 24 << 24 >> 24;
|
|
1464
918
|
}
|
|
1465
919
|
}
|
|
1466
|
-
|
|
1467
920
|
function initSym() {
|
|
1468
921
|
var c, d, f2, i, i0, i1, i2, j, j0, j1, k, lr2, m, s, t, u4;
|
|
1469
922
|
c = new CubieCube();
|
|
@@ -1518,7 +971,7 @@ function initSym() {
|
|
|
1518
971
|
break;
|
|
1519
972
|
}
|
|
1520
973
|
}
|
|
1521
|
-
s % 2 == 0 && (Sym8Move[
|
|
974
|
+
s % 2 == 0 && (Sym8Move[j1 << 3 | s >> 1] = SymMove_0[s][j1]);
|
|
1522
975
|
}
|
|
1523
976
|
}
|
|
1524
977
|
for (i = 0; i < 18; i++) {
|
|
@@ -1530,7 +983,6 @@ function initSym() {
|
|
|
1530
983
|
}
|
|
1531
984
|
}
|
|
1532
985
|
}
|
|
1533
|
-
|
|
1534
986
|
function initSym2Raw(N_RAW, Sym2Raw, Raw2Sym, SymState, coord) {
|
|
1535
987
|
$clinit_CubieCube();
|
|
1536
988
|
var c, count, d, i, idx, isEdge, s, symIdx, sym_inc;
|
|
@@ -1566,104 +1018,56 @@ function initSym2Raw(N_RAW, Sym2Raw, Raw2Sym, SymState, coord) {
|
|
|
1566
1018
|
case 2:
|
|
1567
1019
|
idx = getNPerm(d.ea, 8, true);
|
|
1568
1020
|
}
|
|
1569
|
-
coord == 0 && (FlipS2RF[
|
|
1570
|
-
idx == i &&
|
|
1571
|
-
|
|
1572
|
-
(SymState[count] | (1 << ~~(s / sym_inc))) & $intern_20);
|
|
1573
|
-
symIdx = ~~(((count << 4) | s) / sym_inc);
|
|
1021
|
+
coord == 0 && (FlipS2RF[count << 3 | s >> 1] = idx & $intern_20);
|
|
1022
|
+
idx == i && (SymState[count] = (SymState[count] | 1 << ~~(s / sym_inc)) & $intern_20);
|
|
1023
|
+
symIdx = ~~((count << 4 | s) / sym_inc);
|
|
1574
1024
|
Raw2Sym[idx] = symIdx & $intern_20;
|
|
1575
1025
|
}
|
|
1576
1026
|
Sym2Raw[count++] = i & $intern_20;
|
|
1577
1027
|
}
|
|
1578
1028
|
return count;
|
|
1579
1029
|
}
|
|
1580
|
-
|
|
1581
|
-
var
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
"org.cubing.min2phase.client",
|
|
1608
|
-
"CubieCube",
|
|
1609
|
-
7,
|
|
1610
|
-
);
|
|
1611
|
-
|
|
1612
|
-
function $initPhase2(
|
|
1613
|
-
this$static,
|
|
1614
|
-
p2corn,
|
|
1615
|
-
p2csym,
|
|
1616
|
-
p2edge,
|
|
1617
|
-
p2esym,
|
|
1618
|
-
p2mid,
|
|
1619
|
-
edgei,
|
|
1620
|
-
corni,
|
|
1621
|
-
) {
|
|
1030
|
+
var CubeSym;
|
|
1031
|
+
var EPermR2S;
|
|
1032
|
+
var EPermS2R;
|
|
1033
|
+
var FlipR2S;
|
|
1034
|
+
var FlipS2R;
|
|
1035
|
+
var FlipS2RF;
|
|
1036
|
+
var MPermInv;
|
|
1037
|
+
var Perm2CombP;
|
|
1038
|
+
var PermInvEdgeSym;
|
|
1039
|
+
var Sym8Move;
|
|
1040
|
+
var SymMove_0;
|
|
1041
|
+
var SymMoveUD;
|
|
1042
|
+
var SymMult;
|
|
1043
|
+
var SymMultInv;
|
|
1044
|
+
var SymStateFlip;
|
|
1045
|
+
var SymStatePerm;
|
|
1046
|
+
var SymStateTwist;
|
|
1047
|
+
var TwistR2S;
|
|
1048
|
+
var TwistS2R;
|
|
1049
|
+
var firstMoveSym;
|
|
1050
|
+
var moveCube;
|
|
1051
|
+
var moveCubeSym;
|
|
1052
|
+
var urf1;
|
|
1053
|
+
var urf2;
|
|
1054
|
+
var urfMove;
|
|
1055
|
+
var Lorg_cubing_min2phase_client_CubieCube_2_classLit = createForClass("org.cubing.min2phase.client", "CubieCube", 7);
|
|
1056
|
+
function $initPhase2(this$static, p2corn, p2csym, p2edge, p2esym, p2mid, edgei, corni) {
|
|
1622
1057
|
var depth2, i, i0, prun, ret;
|
|
1623
|
-
prun = max_0(
|
|
1624
|
-
getPruning(
|
|
1625
|
-
($clinit_CoordCube(), EPermCCombPPrun),
|
|
1626
|
-
(edgei >> 4) * 140 +
|
|
1627
|
-
CCombPConj[($clinit_CubieCube(), Perm2CombP)[corni >> 4] & 255][
|
|
1628
|
-
SymMultInv[edgei & 15][corni & 15]
|
|
1629
|
-
],
|
|
1630
|
-
),
|
|
1631
|
-
max_0(
|
|
1632
|
-
getPruning(
|
|
1633
|
-
EPermCCombPPrun,
|
|
1634
|
-
p2edge * 140 +
|
|
1635
|
-
CCombPConj[Perm2CombP[p2corn] & 255][SymMultInv[p2esym][p2csym]],
|
|
1636
|
-
),
|
|
1637
|
-
getPruning(MCPermPrun, p2corn * 24 + MPermConj[p2mid][p2csym]),
|
|
1638
|
-
),
|
|
1639
|
-
);
|
|
1058
|
+
prun = max_0(getPruning(($clinit_CoordCube(), EPermCCombPPrun), (edgei >> 4) * 140 + CCombPConj[($clinit_CubieCube(), Perm2CombP)[corni >> 4] & 255][SymMultInv[edgei & 15][corni & 15]]), max_0(getPruning(EPermCCombPPrun, p2edge * 140 + CCombPConj[Perm2CombP[p2corn] & 255][SymMultInv[p2esym][p2csym]]), getPruning(MCPermPrun, p2corn * 24 + MPermConj[p2mid][p2csym])));
|
|
1640
1059
|
if (prun > this$static.maxDep2) {
|
|
1641
1060
|
return prun - this$static.maxDep2;
|
|
1642
1061
|
}
|
|
1643
1062
|
for (depth2 = this$static.maxDep2; depth2 >= prun; depth2--) {
|
|
1644
|
-
ret = $phase2(
|
|
1645
|
-
this$static,
|
|
1646
|
-
p2edge,
|
|
1647
|
-
p2esym,
|
|
1648
|
-
p2corn,
|
|
1649
|
-
p2csym,
|
|
1650
|
-
p2mid,
|
|
1651
|
-
depth2,
|
|
1652
|
-
this$static.depth1,
|
|
1653
|
-
10,
|
|
1654
|
-
);
|
|
1063
|
+
ret = $phase2(this$static, p2edge, p2esym, p2corn, p2csym, p2mid, depth2, this$static.depth1, 10);
|
|
1655
1064
|
if (ret < 0) {
|
|
1656
1065
|
break;
|
|
1657
1066
|
}
|
|
1658
1067
|
depth2 -= ret;
|
|
1659
1068
|
this$static.solLen = 0;
|
|
1660
1069
|
this$static.solution = new Util$Solution();
|
|
1661
|
-
$setArgs(
|
|
1662
|
-
this$static.solution,
|
|
1663
|
-
this$static.verbose,
|
|
1664
|
-
this$static.urfIdx,
|
|
1665
|
-
this$static.depth1,
|
|
1666
|
-
);
|
|
1070
|
+
$setArgs(this$static.solution, this$static.verbose, this$static.urfIdx, this$static.depth1);
|
|
1667
1071
|
for (i0 = 0; i0 < this$static.depth1 + depth2; i0++) {
|
|
1668
1072
|
$appendSolMove(this$static.solution, this$static.move[i0]);
|
|
1669
1073
|
}
|
|
@@ -1673,52 +1077,21 @@ function $initPhase2(
|
|
|
1673
1077
|
this$static.solLen = this$static.solution.length_0;
|
|
1674
1078
|
}
|
|
1675
1079
|
if (depth2 != this$static.maxDep2) {
|
|
1676
|
-
this$static.maxDep2 = min_0(
|
|
1677
|
-
MAX_DEPTH2,
|
|
1678
|
-
this$static.solLen - this$static.length1 - 1,
|
|
1679
|
-
);
|
|
1080
|
+
this$static.maxDep2 = min_0(MAX_DEPTH2, this$static.solLen - this$static.length1 - 1);
|
|
1680
1081
|
return gte(this$static.probe, this$static.probeMin) ? 0 : 1;
|
|
1681
1082
|
}
|
|
1682
1083
|
return 1;
|
|
1683
1084
|
}
|
|
1684
|
-
|
|
1685
1085
|
function $initPhase2Pre(this$static) {
|
|
1686
|
-
var corni,
|
|
1687
|
-
edgei,
|
|
1688
|
-
i,
|
|
1689
|
-
lastMove,
|
|
1690
|
-
lastPre,
|
|
1691
|
-
m,
|
|
1692
|
-
p2corn,
|
|
1693
|
-
p2csym,
|
|
1694
|
-
p2edge,
|
|
1695
|
-
p2esym,
|
|
1696
|
-
p2mid,
|
|
1697
|
-
p2switch,
|
|
1698
|
-
p2switchMask,
|
|
1699
|
-
p2switchMax,
|
|
1700
|
-
ret;
|
|
1086
|
+
var corni, edgei, i, lastMove, lastPre, m, p2corn, p2csym, p2edge, p2esym, p2mid, p2switch, p2switchMask, p2switchMax, ret;
|
|
1701
1087
|
this$static.isRec = false;
|
|
1702
|
-
if (
|
|
1703
|
-
gte(
|
|
1704
|
-
this$static.probe,
|
|
1705
|
-
!this$static.solution ? this$static.probeMax : this$static.probeMin,
|
|
1706
|
-
)
|
|
1707
|
-
) {
|
|
1088
|
+
if (gte(this$static.probe, !this$static.solution ? this$static.probeMax : this$static.probeMin)) {
|
|
1708
1089
|
return 0;
|
|
1709
1090
|
}
|
|
1710
1091
|
this$static.probe = add_1(this$static.probe, { l: 1, m: 0, h: 0 });
|
|
1711
1092
|
for (i = this$static.valid1; i < this$static.depth1; i++) {
|
|
1712
|
-
CornMult(
|
|
1713
|
-
|
|
1714
|
-
($clinit_CubieCube(), moveCube)[this$static.move[i]],
|
|
1715
|
-
this$static.phase1Cubie[i + 1],
|
|
1716
|
-
);
|
|
1717
|
-
EdgeMult(
|
|
1718
|
-
this$static.phase1Cubie[i],
|
|
1719
|
-
moveCube[this$static.move[i]],
|
|
1720
|
-
this$static.phase1Cubie[i + 1],
|
|
1721
|
-
);
|
|
1093
|
+
CornMult(this$static.phase1Cubie[i], ($clinit_CubieCube(), moveCube)[this$static.move[i]], this$static.phase1Cubie[i + 1]);
|
|
1094
|
+
EdgeMult(this$static.phase1Cubie[i], moveCube[this$static.move[i]], this$static.phase1Cubie[i + 1]);
|
|
1722
1095
|
}
|
|
1723
1096
|
this$static.valid1 = this$static.depth1;
|
|
1724
1097
|
p2corn = $getCPermSym(this$static.phase1Cubie[this$static.depth1]);
|
|
@@ -1727,47 +1100,28 @@ function $initPhase2Pre(this$static) {
|
|
|
1727
1100
|
p2edge = $getEPermSym(this$static.phase1Cubie[this$static.depth1]);
|
|
1728
1101
|
p2esym = p2edge & 15;
|
|
1729
1102
|
p2edge >>= 4;
|
|
1730
|
-
p2mid =
|
|
1731
|
-
getNPerm(this$static.phase1Cubie[this$static.depth1].ea, 12, true) % 24;
|
|
1103
|
+
p2mid = getNPerm(this$static.phase1Cubie[this$static.depth1].ea, 12, true) % 24;
|
|
1732
1104
|
edgei = getPermSymInv(p2edge, p2esym, false);
|
|
1733
1105
|
corni = getPermSymInv(p2corn, p2csym, true);
|
|
1734
|
-
lastMove =
|
|
1735
|
-
|
|
1736
|
-
lastPre =
|
|
1737
|
-
this$static.preMoveLen == 0
|
|
1738
|
-
? -1
|
|
1739
|
-
: this$static.preMoves[this$static.preMoveLen - 1];
|
|
1106
|
+
lastMove = this$static.depth1 == 0 ? -1 : this$static.move[this$static.depth1 - 1];
|
|
1107
|
+
lastPre = this$static.preMoveLen == 0 ? -1 : this$static.preMoves[this$static.preMoveLen - 1];
|
|
1740
1108
|
ret = 0;
|
|
1741
|
-
p2switchMax =
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
p2switch = 0, p2switchMask = (1 << p2switchMax) - 1;
|
|
1745
|
-
p2switch < p2switchMax;
|
|
1746
|
-
p2switch++
|
|
1747
|
-
) {
|
|
1748
|
-
if (((p2switchMask >> p2switch) & 1) != 0) {
|
|
1109
|
+
p2switchMax = (this$static.preMoveLen == 0 ? 1 : 2) * (this$static.depth1 == 0 ? 1 : 2);
|
|
1110
|
+
for (p2switch = 0, p2switchMask = (1 << p2switchMax) - 1; p2switch < p2switchMax; p2switch++) {
|
|
1111
|
+
if ((p2switchMask >> p2switch & 1) != 0) {
|
|
1749
1112
|
p2switchMask &= ~(1 << p2switch);
|
|
1750
|
-
ret = $initPhase2(
|
|
1751
|
-
this$static,
|
|
1752
|
-
p2corn,
|
|
1753
|
-
p2csym,
|
|
1754
|
-
p2edge,
|
|
1755
|
-
p2esym,
|
|
1756
|
-
p2mid,
|
|
1757
|
-
edgei,
|
|
1758
|
-
corni,
|
|
1759
|
-
);
|
|
1113
|
+
ret = $initPhase2(this$static, p2corn, p2csym, p2edge, p2esym, p2mid, edgei, corni);
|
|
1760
1114
|
if (ret == 0 || ret > 2) {
|
|
1761
1115
|
break;
|
|
1762
|
-
} else
|
|
1116
|
+
} else
|
|
1117
|
+
ret == 2 && (p2switchMask &= 4 << p2switch);
|
|
1763
1118
|
}
|
|
1764
1119
|
if (p2switchMask == 0) {
|
|
1765
1120
|
break;
|
|
1766
1121
|
}
|
|
1767
1122
|
if ((p2switch & 1) == 0 && this$static.depth1 > 0) {
|
|
1768
1123
|
m = ($clinit_Util(), std2ud)[~~(lastMove / 3) * 3 + 1];
|
|
1769
|
-
this$static.move[this$static.depth1 - 1] =
|
|
1770
|
-
ud2std[m] * 2 - this$static.move[this$static.depth1 - 1];
|
|
1124
|
+
this$static.move[this$static.depth1 - 1] = ud2std[m] * 2 - this$static.move[this$static.depth1 - 1];
|
|
1771
1125
|
p2mid = ($clinit_CoordCube(), MPermMove)[p2mid][m];
|
|
1772
1126
|
p2corn = CPermMove[p2corn][($clinit_CubieCube(), SymMoveUD)[p2csym][m]];
|
|
1773
1127
|
p2csym = SymMult[p2corn & 15][p2csym];
|
|
@@ -1779,56 +1133,35 @@ function $initPhase2Pre(this$static) {
|
|
|
1779
1133
|
edgei = getPermSymInv(p2edge, p2esym, false);
|
|
1780
1134
|
} else if (this$static.preMoveLen > 0) {
|
|
1781
1135
|
m = ($clinit_Util(), std2ud)[~~(lastPre / 3) * 3 + 1];
|
|
1782
|
-
this$static.preMoves[this$static.preMoveLen - 1] =
|
|
1783
|
-
|
|
1784
|
-
p2mid = ($clinit_CubieCube(), MPermInv)[
|
|
1785
|
-
($clinit_CoordCube(), MPermMove)[MPermInv[p2mid]][m]
|
|
1786
|
-
];
|
|
1136
|
+
this$static.preMoves[this$static.preMoveLen - 1] = ud2std[m] * 2 - this$static.preMoves[this$static.preMoveLen - 1];
|
|
1137
|
+
p2mid = ($clinit_CubieCube(), MPermInv)[($clinit_CoordCube(), MPermMove)[MPermInv[p2mid]][m]];
|
|
1787
1138
|
p2corn = CPermMove[corni >> 4][SymMoveUD[corni & 15][m]];
|
|
1788
|
-
corni =
|
|
1139
|
+
corni = p2corn & -16 | SymMult[p2corn & 15][corni & 15];
|
|
1789
1140
|
p2corn = getPermSymInv(corni >> 4, corni & 15, true);
|
|
1790
1141
|
p2csym = p2corn & 15;
|
|
1791
1142
|
p2corn >>= 4;
|
|
1792
1143
|
p2edge = EPermMove[edgei >> 4][SymMoveUD[edgei & 15][m]];
|
|
1793
|
-
edgei =
|
|
1144
|
+
edgei = p2edge & -16 | SymMult[p2edge & 15][edgei & 15];
|
|
1794
1145
|
p2edge = getPermSymInv(edgei >> 4, edgei & 15, false);
|
|
1795
1146
|
p2esym = p2edge & 15;
|
|
1796
1147
|
p2edge >>= 4;
|
|
1797
1148
|
}
|
|
1798
1149
|
}
|
|
1799
|
-
this$static.depth1 > 0 &&
|
|
1800
|
-
|
|
1801
|
-
this$static.preMoveLen > 0 &&
|
|
1802
|
-
(this$static.preMoves[this$static.preMoveLen - 1] = lastPre);
|
|
1150
|
+
this$static.depth1 > 0 && (this$static.move[this$static.depth1 - 1] = lastMove);
|
|
1151
|
+
this$static.preMoveLen > 0 && (this$static.preMoves[this$static.preMoveLen - 1] = lastPre);
|
|
1803
1152
|
return ret == 0 ? 0 : 2;
|
|
1804
1153
|
}
|
|
1805
|
-
|
|
1806
1154
|
function $initSearch(this$static) {
|
|
1807
1155
|
var i;
|
|
1808
1156
|
this$static.conjMask = 0;
|
|
1809
1157
|
this$static.selfSym = $selfSymmetry(this$static.cc);
|
|
1810
|
-
this$static.conjMask |= neq(
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
)
|
|
1814
|
-
? 18
|
|
1815
|
-
: 0;
|
|
1816
|
-
this$static.conjMask |= neq(
|
|
1817
|
-
and(shr(this$static.selfSym, 32), { l: $intern_20, m: 0, h: 0 }),
|
|
1818
|
-
{ l: 0, m: 0, h: 0 },
|
|
1819
|
-
)
|
|
1820
|
-
? 36
|
|
1821
|
-
: 0;
|
|
1822
|
-
this$static.conjMask |= neq(
|
|
1823
|
-
and(shr(this$static.selfSym, 48), { l: $intern_20, m: 0, h: 0 }),
|
|
1824
|
-
{ l: 0, m: 0, h: 0 },
|
|
1825
|
-
)
|
|
1826
|
-
? 56
|
|
1827
|
-
: 0;
|
|
1158
|
+
this$static.conjMask |= neq(and(shr(this$static.selfSym, 16), { l: $intern_20, m: 0, h: 0 }), { l: 0, m: 0, h: 0 }) ? 18 : 0;
|
|
1159
|
+
this$static.conjMask |= neq(and(shr(this$static.selfSym, 32), { l: $intern_20, m: 0, h: 0 }), { l: 0, m: 0, h: 0 }) ? 36 : 0;
|
|
1160
|
+
this$static.conjMask |= neq(and(shr(this$static.selfSym, 48), { l: $intern_20, m: 0, h: 0 }), { l: 0, m: 0, h: 0 }) ? 56 : 0;
|
|
1828
1161
|
this$static.selfSym = and(this$static.selfSym, {
|
|
1829
1162
|
l: $intern_9,
|
|
1830
1163
|
m: $intern_9,
|
|
1831
|
-
h: 15
|
|
1164
|
+
h: 15
|
|
1832
1165
|
});
|
|
1833
1166
|
this$static.maxPreMoves = this$static.conjMask > 7 ? 0 : 20;
|
|
1834
1167
|
for (i = 0; i < 6; i++) {
|
|
@@ -1838,7 +1171,6 @@ function $initSearch(this$static) {
|
|
|
1838
1171
|
i % 3 == 2 && $invCubieCube(this$static.cc);
|
|
1839
1172
|
}
|
|
1840
1173
|
}
|
|
1841
|
-
|
|
1842
1174
|
function $phase1(this$static, node, ssym, maxl, lm) {
|
|
1843
1175
|
var axis_0, m, power, prun, ret, skipMoves;
|
|
1844
1176
|
if (node.prun == 0 && maxl < 5) {
|
|
@@ -1858,11 +1190,7 @@ function $phase1(this$static, node, ssym, maxl, lm) {
|
|
|
1858
1190
|
}
|
|
1859
1191
|
for (power = 0; power < 3; power++) {
|
|
1860
1192
|
m = axis_0 + power;
|
|
1861
|
-
if (
|
|
1862
|
-
(this$static.isRec &&
|
|
1863
|
-
m != this$static.move[this$static.depth1 - maxl]) ||
|
|
1864
|
-
(skipMoves != 0 && (skipMoves & (1 << m)) != 0)
|
|
1865
|
-
) {
|
|
1193
|
+
if (this$static.isRec && m != this$static.move[this$static.depth1 - maxl] || skipMoves != 0 && (skipMoves & 1 << m) != 0) {
|
|
1866
1194
|
continue;
|
|
1867
1195
|
}
|
|
1868
1196
|
prun = $doMovePrun(this$static.nodeUD[maxl], node, m);
|
|
@@ -1879,13 +1207,7 @@ function $phase1(this$static, node, ssym, maxl, lm) {
|
|
|
1879
1207
|
}
|
|
1880
1208
|
this$static.move[this$static.depth1 - maxl] = m;
|
|
1881
1209
|
this$static.valid1 = min_0(this$static.valid1, this$static.depth1 - maxl);
|
|
1882
|
-
ret = $phase1(
|
|
1883
|
-
this$static,
|
|
1884
|
-
this$static.nodeUD[maxl],
|
|
1885
|
-
ssym & toInt(($clinit_CubieCube(), moveCubeSym)[m]),
|
|
1886
|
-
maxl - 1,
|
|
1887
|
-
axis_0,
|
|
1888
|
-
);
|
|
1210
|
+
ret = $phase1(this$static, this$static.nodeUD[maxl], ssym & toInt(($clinit_CubieCube(), moveCubeSym)[m]), maxl - 1, axis_0);
|
|
1889
1211
|
if (ret == 0) {
|
|
1890
1212
|
return 0;
|
|
1891
1213
|
} else if (ret >= 2) {
|
|
@@ -1895,80 +1217,41 @@ function $phase1(this$static, node, ssym, maxl, lm) {
|
|
|
1895
1217
|
}
|
|
1896
1218
|
return 1;
|
|
1897
1219
|
}
|
|
1898
|
-
|
|
1899
1220
|
function $phase1PreMoves(this$static, maxl, lm, cc, ssym) {
|
|
1900
1221
|
var m, ret, skipMoves;
|
|
1901
1222
|
this$static.preMoveLen = this$static.maxPreMoves - maxl;
|
|
1902
|
-
if (
|
|
1903
|
-
this$static.isRec
|
|
1904
|
-
? this$static.depth1 == this$static.length1 - this$static.preMoveLen
|
|
1905
|
-
: this$static.preMoveLen == 0 || ((225207 >> lm) & 1) == 0
|
|
1906
|
-
) {
|
|
1223
|
+
if (this$static.isRec ? this$static.depth1 == this$static.length1 - this$static.preMoveLen : this$static.preMoveLen == 0 || (225207 >> lm & 1) == 0) {
|
|
1907
1224
|
this$static.depth1 = this$static.length1 - this$static.preMoveLen;
|
|
1908
1225
|
this$static.phase1Cubie[0] = cc;
|
|
1909
|
-
this$static.allowShorter =
|
|
1910
|
-
|
|
1911
|
-
if (
|
|
1912
|
-
$setWithPrun(
|
|
1913
|
-
this$static.nodeUD[this$static.depth1 + 1],
|
|
1914
|
-
cc,
|
|
1915
|
-
this$static.depth1,
|
|
1916
|
-
) &&
|
|
1917
|
-
$phase1(
|
|
1918
|
-
this$static,
|
|
1919
|
-
this$static.nodeUD[this$static.depth1 + 1],
|
|
1920
|
-
ssym,
|
|
1921
|
-
this$static.depth1,
|
|
1922
|
-
-1,
|
|
1923
|
-
) == 0
|
|
1924
|
-
) {
|
|
1226
|
+
this$static.allowShorter = this$static.depth1 == MIN_P1LENGTH_PRE && this$static.preMoveLen != 0;
|
|
1227
|
+
if ($setWithPrun(this$static.nodeUD[this$static.depth1 + 1], cc, this$static.depth1) && $phase1(this$static, this$static.nodeUD[this$static.depth1 + 1], ssym, this$static.depth1, -1) == 0) {
|
|
1925
1228
|
return 0;
|
|
1926
1229
|
}
|
|
1927
1230
|
}
|
|
1928
|
-
if (
|
|
1929
|
-
maxl == 0 ||
|
|
1930
|
-
this$static.preMoveLen + MIN_P1LENGTH_PRE >= this$static.length1
|
|
1931
|
-
) {
|
|
1231
|
+
if (maxl == 0 || this$static.preMoveLen + MIN_P1LENGTH_PRE >= this$static.length1) {
|
|
1932
1232
|
return 1;
|
|
1933
1233
|
}
|
|
1934
1234
|
skipMoves = getSkipMoves(fromInt(ssym));
|
|
1935
|
-
(maxl == 1 ||
|
|
1936
|
-
this$static.preMoveLen + 1 + MIN_P1LENGTH_PRE >= this$static.length1) &&
|
|
1937
|
-
(skipMoves |= 225207);
|
|
1235
|
+
(maxl == 1 || this$static.preMoveLen + 1 + MIN_P1LENGTH_PRE >= this$static.length1) && (skipMoves |= 225207);
|
|
1938
1236
|
lm = ~~(lm / 3) * 3;
|
|
1939
1237
|
for (m = 0; m < 18; m++) {
|
|
1940
1238
|
if (m == lm || m == lm - 9 || m == lm + 9) {
|
|
1941
1239
|
m += 2;
|
|
1942
1240
|
continue;
|
|
1943
1241
|
}
|
|
1944
|
-
if (
|
|
1945
|
-
(this$static.isRec &&
|
|
1946
|
-
m != this$static.preMoves[this$static.maxPreMoves - maxl]) ||
|
|
1947
|
-
(skipMoves & (1 << m)) != 0
|
|
1948
|
-
) {
|
|
1242
|
+
if (this$static.isRec && m != this$static.preMoves[this$static.maxPreMoves - maxl] || (skipMoves & 1 << m) != 0) {
|
|
1949
1243
|
continue;
|
|
1950
1244
|
}
|
|
1951
|
-
CornMult(
|
|
1952
|
-
($clinit_CubieCube(), moveCube)[m],
|
|
1953
|
-
cc,
|
|
1954
|
-
this$static.preMoveCubes[maxl],
|
|
1955
|
-
);
|
|
1245
|
+
CornMult(($clinit_CubieCube(), moveCube)[m], cc, this$static.preMoveCubes[maxl]);
|
|
1956
1246
|
EdgeMult(moveCube[m], cc, this$static.preMoveCubes[maxl]);
|
|
1957
1247
|
this$static.preMoves[this$static.maxPreMoves - maxl] = m;
|
|
1958
|
-
ret = $phase1PreMoves(
|
|
1959
|
-
this$static,
|
|
1960
|
-
maxl - 1,
|
|
1961
|
-
m,
|
|
1962
|
-
this$static.preMoveCubes[maxl],
|
|
1963
|
-
ssym & toInt(moveCubeSym[m]),
|
|
1964
|
-
);
|
|
1248
|
+
ret = $phase1PreMoves(this$static, maxl - 1, m, this$static.preMoveCubes[maxl], ssym & toInt(moveCubeSym[m]));
|
|
1965
1249
|
if (ret == 0) {
|
|
1966
1250
|
return 0;
|
|
1967
1251
|
}
|
|
1968
1252
|
}
|
|
1969
1253
|
return 1;
|
|
1970
1254
|
}
|
|
1971
|
-
|
|
1972
1255
|
function $phase2(this$static, edge, esym, corn, csym, mid, maxl, depth, lm) {
|
|
1973
1256
|
var corni, cornx, csymx, edgei, edgex, esymx, m, midx, moveMask, prun, ret;
|
|
1974
1257
|
if (edge == 0 && corn == 0 && mid == 0) {
|
|
@@ -1976,8 +1259,8 @@ function $phase2(this$static, edge, esym, corn, csym, mid, maxl, depth, lm) {
|
|
|
1976
1259
|
}
|
|
1977
1260
|
moveMask = ($clinit_Util(), ckmv2bit)[lm];
|
|
1978
1261
|
for (m = 0; m < 10; m++) {
|
|
1979
|
-
if ((
|
|
1980
|
-
m +=
|
|
1262
|
+
if ((moveMask >> m & 1) != 0) {
|
|
1263
|
+
m += 66 >> m & 3;
|
|
1981
1264
|
continue;
|
|
1982
1265
|
}
|
|
1983
1266
|
midx = ($clinit_CoordCube(), MPermMove)[mid][m];
|
|
@@ -1989,42 +1272,19 @@ function $phase2(this$static, edge, esym, corn, csym, mid, maxl, depth, lm) {
|
|
|
1989
1272
|
edgex >>= 4;
|
|
1990
1273
|
edgei = getPermSymInv(edgex, esymx, false);
|
|
1991
1274
|
corni = getPermSymInv(cornx, csymx, true);
|
|
1992
|
-
prun = getPruning(
|
|
1993
|
-
EPermCCombPPrun,
|
|
1994
|
-
(edgei >> 4) * 140 +
|
|
1995
|
-
CCombPConj[Perm2CombP[corni >> 4] & 255][
|
|
1996
|
-
SymMultInv[edgei & 15][corni & 15]
|
|
1997
|
-
],
|
|
1998
|
-
);
|
|
1275
|
+
prun = getPruning(EPermCCombPPrun, (edgei >> 4) * 140 + CCombPConj[Perm2CombP[corni >> 4] & 255][SymMultInv[edgei & 15][corni & 15]]);
|
|
1999
1276
|
if (prun > maxl + 1) {
|
|
2000
1277
|
return maxl - prun + 1;
|
|
2001
1278
|
} else if (prun >= maxl) {
|
|
2002
|
-
m +=
|
|
1279
|
+
m += 66 >> m & 3 & maxl - prun;
|
|
2003
1280
|
continue;
|
|
2004
1281
|
}
|
|
2005
|
-
prun = max_0(
|
|
2006
|
-
getPruning(MCPermPrun, cornx * 24 + MPermConj[midx][csymx]),
|
|
2007
|
-
getPruning(
|
|
2008
|
-
EPermCCombPPrun,
|
|
2009
|
-
edgex * 140 +
|
|
2010
|
-
CCombPConj[Perm2CombP[cornx] & 255][SymMultInv[esymx][csymx]],
|
|
2011
|
-
),
|
|
2012
|
-
);
|
|
1282
|
+
prun = max_0(getPruning(MCPermPrun, cornx * 24 + MPermConj[midx][csymx]), getPruning(EPermCCombPPrun, edgex * 140 + CCombPConj[Perm2CombP[cornx] & 255][SymMultInv[esymx][csymx]]));
|
|
2013
1283
|
if (prun >= maxl) {
|
|
2014
|
-
m +=
|
|
1284
|
+
m += 66 >> m & 3 & maxl - prun;
|
|
2015
1285
|
continue;
|
|
2016
1286
|
}
|
|
2017
|
-
ret = $phase2(
|
|
2018
|
-
this$static,
|
|
2019
|
-
edgex,
|
|
2020
|
-
esymx,
|
|
2021
|
-
cornx,
|
|
2022
|
-
csymx,
|
|
2023
|
-
midx,
|
|
2024
|
-
maxl - 1,
|
|
2025
|
-
depth + 1,
|
|
2026
|
-
m,
|
|
2027
|
-
);
|
|
1287
|
+
ret = $phase2(this$static, edgex, esymx, cornx, csymx, midx, maxl - 1, depth + 1, m);
|
|
2028
1288
|
if (ret >= 0) {
|
|
2029
1289
|
this$static.move[depth] = ud2std[m];
|
|
2030
1290
|
return ret;
|
|
@@ -2032,47 +1292,24 @@ function $phase2(this$static, edge, esym, corn, csym, mid, maxl, depth, lm) {
|
|
|
2032
1292
|
if (ret < -2) {
|
|
2033
1293
|
break;
|
|
2034
1294
|
}
|
|
2035
|
-
ret < -1 && (m +=
|
|
1295
|
+
ret < -1 && (m += 66 >> m & 3);
|
|
2036
1296
|
}
|
|
2037
1297
|
return -1;
|
|
2038
1298
|
}
|
|
2039
|
-
|
|
2040
1299
|
function $search(this$static) {
|
|
2041
|
-
for (
|
|
2042
|
-
this$static.
|
|
2043
|
-
this$static.
|
|
2044
|
-
|
|
2045
|
-
) {
|
|
2046
|
-
this$static.maxDep2 = min_0(
|
|
2047
|
-
MAX_DEPTH2,
|
|
2048
|
-
this$static.solLen - this$static.length1 - 1,
|
|
2049
|
-
);
|
|
2050
|
-
for (
|
|
2051
|
-
this$static.urfIdx = this$static.isRec ? this$static.urfIdx : 0;
|
|
2052
|
-
this$static.urfIdx < 6;
|
|
2053
|
-
this$static.urfIdx++
|
|
2054
|
-
) {
|
|
2055
|
-
if ((this$static.conjMask & (1 << this$static.urfIdx)) != 0) {
|
|
1300
|
+
for (this$static.length1 = this$static.isRec ? this$static.length1 : 0; this$static.length1 < this$static.solLen; this$static.length1++) {
|
|
1301
|
+
this$static.maxDep2 = min_0(MAX_DEPTH2, this$static.solLen - this$static.length1 - 1);
|
|
1302
|
+
for (this$static.urfIdx = this$static.isRec ? this$static.urfIdx : 0; this$static.urfIdx < 6; this$static.urfIdx++) {
|
|
1303
|
+
if ((this$static.conjMask & 1 << this$static.urfIdx) != 0) {
|
|
2056
1304
|
continue;
|
|
2057
1305
|
}
|
|
2058
|
-
if (
|
|
2059
|
-
$
|
|
2060
|
-
this$static,
|
|
2061
|
-
this$static.maxPreMoves,
|
|
2062
|
-
-30,
|
|
2063
|
-
this$static.urfCubieCube[this$static.urfIdx],
|
|
2064
|
-
toInt(and(this$static.selfSym, { l: $intern_20, m: 0, h: 0 })),
|
|
2065
|
-
) == 0
|
|
2066
|
-
) {
|
|
2067
|
-
return !this$static.solution
|
|
2068
|
-
? "Error 8"
|
|
2069
|
-
: $toString_2(this$static.solution);
|
|
1306
|
+
if ($phase1PreMoves(this$static, this$static.maxPreMoves, -30, this$static.urfCubieCube[this$static.urfIdx], toInt(and(this$static.selfSym, { l: $intern_20, m: 0, h: 0 }))) == 0) {
|
|
1307
|
+
return !this$static.solution ? "Error 8" : $toString_2(this$static.solution);
|
|
2070
1308
|
}
|
|
2071
1309
|
}
|
|
2072
1310
|
}
|
|
2073
1311
|
return !this$static.solution ? "Error 7" : $toString_2(this$static.solution);
|
|
2074
1312
|
}
|
|
2075
|
-
|
|
2076
1313
|
function $solution(this$static, facelets) {
|
|
2077
1314
|
var check;
|
|
2078
1315
|
check = $verify_0(this$static, facelets);
|
|
@@ -2090,103 +1327,42 @@ function $solution(this$static, facelets) {
|
|
|
2090
1327
|
$initSearch(this$static);
|
|
2091
1328
|
return $search(this$static);
|
|
2092
1329
|
}
|
|
2093
|
-
|
|
2094
1330
|
function $verify_0(this$static, facelets) {
|
|
2095
1331
|
var center, count, f, i;
|
|
2096
1332
|
count = 0;
|
|
2097
1333
|
f = initDim(B_classLit, $intern_30, 0, 54, 7, 1);
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
facelets.charCodeAt(49),
|
|
2107
|
-
]),
|
|
2108
|
-
);
|
|
1334
|
+
center = _String(initValues(getClassLiteralForArray(C_classLit, 1), $intern_26, 0, 7, [
|
|
1335
|
+
facelets.charCodeAt(4),
|
|
1336
|
+
facelets.charCodeAt(13),
|
|
1337
|
+
facelets.charCodeAt(22),
|
|
1338
|
+
facelets.charCodeAt(31),
|
|
1339
|
+
facelets.charCodeAt(40),
|
|
1340
|
+
facelets.charCodeAt(49)
|
|
1341
|
+
]));
|
|
2109
1342
|
for (i = 0; i < 54; i++) {
|
|
2110
|
-
f[i] =
|
|
2111
|
-
($indexOf_0(center, fromCodePoint(facelets.charCodeAt(i))) << 24) >> 24;
|
|
1343
|
+
f[i] = $indexOf_0(center, fromCodePoint(facelets.charCodeAt(i))) << 24 >> 24;
|
|
2112
1344
|
if (f[i] == -1) {
|
|
2113
1345
|
return -1;
|
|
2114
1346
|
}
|
|
2115
1347
|
count += 1 << (f[i] << 2);
|
|
2116
1348
|
}
|
|
2117
|
-
// } catch ($e0) {
|
|
2118
|
-
// $e0 = wrap($e0);
|
|
2119
|
-
// if (instanceOf($e0, 9)) {
|
|
2120
|
-
// return -1;
|
|
2121
|
-
// } else throw unwrap($e0);
|
|
2122
|
-
// }
|
|
2123
1349
|
if (count != 10066329) {
|
|
2124
1350
|
return -1;
|
|
2125
1351
|
}
|
|
2126
1352
|
toCubieCube(f, this$static.cc);
|
|
2127
1353
|
return $verify(this$static.cc);
|
|
2128
1354
|
}
|
|
2129
|
-
|
|
2130
1355
|
function Search() {
|
|
2131
1356
|
var i, i0, i1;
|
|
2132
1357
|
this.move = initDim(I_classLit, $intern_27, 0, 31, 7, 1);
|
|
2133
|
-
this.nodeUD = initDim(
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
31,
|
|
2137
|
-
21,
|
|
2138
|
-
0,
|
|
2139
|
-
1,
|
|
2140
|
-
);
|
|
2141
|
-
this.nodeRL = initDim(
|
|
2142
|
-
Lorg_cubing_min2phase_client_CoordCube_2_classLit,
|
|
2143
|
-
$intern_3,
|
|
2144
|
-
31,
|
|
2145
|
-
21,
|
|
2146
|
-
0,
|
|
2147
|
-
1,
|
|
2148
|
-
);
|
|
2149
|
-
this.nodeFB = initDim(
|
|
2150
|
-
Lorg_cubing_min2phase_client_CoordCube_2_classLit,
|
|
2151
|
-
$intern_3,
|
|
2152
|
-
31,
|
|
2153
|
-
21,
|
|
2154
|
-
0,
|
|
2155
|
-
1,
|
|
2156
|
-
);
|
|
1358
|
+
this.nodeUD = initDim(Lorg_cubing_min2phase_client_CoordCube_2_classLit, $intern_3, 31, 21, 0, 1);
|
|
1359
|
+
this.nodeRL = initDim(Lorg_cubing_min2phase_client_CoordCube_2_classLit, $intern_3, 31, 21, 0, 1);
|
|
1360
|
+
this.nodeFB = initDim(Lorg_cubing_min2phase_client_CoordCube_2_classLit, $intern_3, 31, 21, 0, 1);
|
|
2157
1361
|
this.cc = new CubieCube();
|
|
2158
|
-
this.urfCubieCube = initDim(
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
6,
|
|
2163
|
-
0,
|
|
2164
|
-
1,
|
|
2165
|
-
);
|
|
2166
|
-
this.urfCoordCube = initDim(
|
|
2167
|
-
Lorg_cubing_min2phase_client_CoordCube_2_classLit,
|
|
2168
|
-
$intern_3,
|
|
2169
|
-
31,
|
|
2170
|
-
6,
|
|
2171
|
-
0,
|
|
2172
|
-
1,
|
|
2173
|
-
);
|
|
2174
|
-
this.phase1Cubie = initDim(
|
|
2175
|
-
Lorg_cubing_min2phase_client_CubieCube_2_classLit,
|
|
2176
|
-
$intern_3,
|
|
2177
|
-
7,
|
|
2178
|
-
21,
|
|
2179
|
-
0,
|
|
2180
|
-
1,
|
|
2181
|
-
);
|
|
2182
|
-
this.preMoveCubes = initDim(
|
|
2183
|
-
Lorg_cubing_min2phase_client_CubieCube_2_classLit,
|
|
2184
|
-
$intern_3,
|
|
2185
|
-
7,
|
|
2186
|
-
21,
|
|
2187
|
-
0,
|
|
2188
|
-
1,
|
|
2189
|
-
);
|
|
1362
|
+
this.urfCubieCube = initDim(Lorg_cubing_min2phase_client_CubieCube_2_classLit, $intern_3, 7, 6, 0, 1);
|
|
1363
|
+
this.urfCoordCube = initDim(Lorg_cubing_min2phase_client_CoordCube_2_classLit, $intern_3, 31, 6, 0, 1);
|
|
1364
|
+
this.phase1Cubie = initDim(Lorg_cubing_min2phase_client_CubieCube_2_classLit, $intern_3, 7, 21, 0, 1);
|
|
1365
|
+
this.preMoveCubes = initDim(Lorg_cubing_min2phase_client_CubieCube_2_classLit, $intern_3, 7, 21, 0, 1);
|
|
2190
1366
|
this.preMoves = initDim(I_classLit, $intern_27, 0, 20, 7, 1);
|
|
2191
1367
|
for (i0 = 0; i0 < 21; i0++) {
|
|
2192
1368
|
this.nodeUD[i0] = new CoordCube();
|
|
@@ -2202,7 +1378,6 @@ function Search() {
|
|
|
2202
1378
|
this.preMoveCubes[i + 1] = new CubieCube();
|
|
2203
1379
|
}
|
|
2204
1380
|
}
|
|
2205
|
-
|
|
2206
1381
|
defineClass(72, 1, {}, Search);
|
|
2207
1382
|
_.allowShorter = false;
|
|
2208
1383
|
_.conjMask = 0;
|
|
@@ -2220,205 +1395,61 @@ _.solLen = 0;
|
|
|
2220
1395
|
_.urfIdx = 0;
|
|
2221
1396
|
_.valid1 = 0;
|
|
2222
1397
|
_.verbose = 0;
|
|
2223
|
-
var MAX_DEPTH2 = 12
|
|
2224
|
-
|
|
2225
|
-
|
|
1398
|
+
var MAX_DEPTH2 = 12;
|
|
1399
|
+
var MIN_P1LENGTH_PRE = 7;
|
|
1400
|
+
var $clinit_Util_ran = false;
|
|
2226
1401
|
function $clinit_Util() {
|
|
2227
1402
|
if ($clinit_Util_ran) {
|
|
2228
1403
|
return;
|
|
2229
1404
|
}
|
|
2230
1405
|
$clinit_Util_ran = true;
|
|
2231
1406
|
var i, i0, i1, ix, j, jx;
|
|
2232
|
-
cornerFacelet = initValues(
|
|
2233
|
-
getClassLiteralForArray(B_classLit,
|
|
2234
|
-
$
|
|
2235
|
-
|
|
2236
|
-
0,
|
|
2237
|
-
[
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
7,
|
|
2257
|
-
[0, 36, 47],
|
|
2258
|
-
),
|
|
2259
|
-
initValues(
|
|
2260
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2261
|
-
$intern_30,
|
|
2262
|
-
0,
|
|
2263
|
-
7,
|
|
2264
|
-
[2, 45, 11],
|
|
2265
|
-
),
|
|
2266
|
-
initValues(
|
|
2267
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2268
|
-
$intern_30,
|
|
2269
|
-
0,
|
|
2270
|
-
7,
|
|
2271
|
-
[29, 26, 15],
|
|
2272
|
-
),
|
|
2273
|
-
initValues(
|
|
2274
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2275
|
-
$intern_30,
|
|
2276
|
-
0,
|
|
2277
|
-
7,
|
|
2278
|
-
[27, 44, 24],
|
|
2279
|
-
),
|
|
2280
|
-
initValues(
|
|
2281
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2282
|
-
$intern_30,
|
|
2283
|
-
0,
|
|
2284
|
-
7,
|
|
2285
|
-
[33, 53, 42],
|
|
2286
|
-
),
|
|
2287
|
-
initValues(
|
|
2288
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2289
|
-
$intern_30,
|
|
2290
|
-
0,
|
|
2291
|
-
7,
|
|
2292
|
-
[35, 17, 51],
|
|
2293
|
-
),
|
|
2294
|
-
],
|
|
2295
|
-
);
|
|
2296
|
-
edgeFacelet = initValues(
|
|
2297
|
-
getClassLiteralForArray(B_classLit, 2),
|
|
2298
|
-
$intern_3,
|
|
2299
|
-
10,
|
|
2300
|
-
0,
|
|
2301
|
-
[
|
|
2302
|
-
initValues(
|
|
2303
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2304
|
-
$intern_30,
|
|
2305
|
-
0,
|
|
2306
|
-
7,
|
|
2307
|
-
[5, 10],
|
|
2308
|
-
),
|
|
2309
|
-
initValues(
|
|
2310
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2311
|
-
$intern_30,
|
|
2312
|
-
0,
|
|
2313
|
-
7,
|
|
2314
|
-
[7, 19],
|
|
2315
|
-
),
|
|
2316
|
-
initValues(
|
|
2317
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2318
|
-
$intern_30,
|
|
2319
|
-
0,
|
|
2320
|
-
7,
|
|
2321
|
-
[3, 37],
|
|
2322
|
-
),
|
|
2323
|
-
initValues(
|
|
2324
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2325
|
-
$intern_30,
|
|
2326
|
-
0,
|
|
2327
|
-
7,
|
|
2328
|
-
[1, 46],
|
|
2329
|
-
),
|
|
2330
|
-
initValues(
|
|
2331
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2332
|
-
$intern_30,
|
|
2333
|
-
0,
|
|
2334
|
-
7,
|
|
2335
|
-
[32, 16],
|
|
2336
|
-
),
|
|
2337
|
-
initValues(
|
|
2338
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2339
|
-
$intern_30,
|
|
2340
|
-
0,
|
|
2341
|
-
7,
|
|
2342
|
-
[28, 25],
|
|
2343
|
-
),
|
|
2344
|
-
initValues(
|
|
2345
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2346
|
-
$intern_30,
|
|
2347
|
-
0,
|
|
2348
|
-
7,
|
|
2349
|
-
[30, 43],
|
|
2350
|
-
),
|
|
2351
|
-
initValues(
|
|
2352
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2353
|
-
$intern_30,
|
|
2354
|
-
0,
|
|
2355
|
-
7,
|
|
2356
|
-
[34, 52],
|
|
2357
|
-
),
|
|
2358
|
-
initValues(
|
|
2359
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2360
|
-
$intern_30,
|
|
2361
|
-
0,
|
|
2362
|
-
7,
|
|
2363
|
-
[23, 12],
|
|
2364
|
-
),
|
|
2365
|
-
initValues(
|
|
2366
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2367
|
-
$intern_30,
|
|
2368
|
-
0,
|
|
2369
|
-
7,
|
|
2370
|
-
[21, 41],
|
|
2371
|
-
),
|
|
2372
|
-
initValues(
|
|
2373
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2374
|
-
$intern_30,
|
|
2375
|
-
0,
|
|
2376
|
-
7,
|
|
2377
|
-
[50, 39],
|
|
2378
|
-
),
|
|
2379
|
-
initValues(
|
|
2380
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2381
|
-
$intern_30,
|
|
2382
|
-
0,
|
|
2383
|
-
7,
|
|
2384
|
-
[48, 14],
|
|
2385
|
-
),
|
|
2386
|
-
],
|
|
2387
|
-
);
|
|
1407
|
+
cornerFacelet = initValues(getClassLiteralForArray(B_classLit, 2), $intern_3, 10, 0, [
|
|
1408
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [8, 9, 20]),
|
|
1409
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [6, 18, 38]),
|
|
1410
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [0, 36, 47]),
|
|
1411
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [2, 45, 11]),
|
|
1412
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [29, 26, 15]),
|
|
1413
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [27, 44, 24]),
|
|
1414
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [33, 53, 42]),
|
|
1415
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [35, 17, 51])
|
|
1416
|
+
]);
|
|
1417
|
+
edgeFacelet = initValues(getClassLiteralForArray(B_classLit, 2), $intern_3, 10, 0, [
|
|
1418
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [5, 10]),
|
|
1419
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [7, 19]),
|
|
1420
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [3, 37]),
|
|
1421
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [1, 46]),
|
|
1422
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [32, 16]),
|
|
1423
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [28, 25]),
|
|
1424
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [30, 43]),
|
|
1425
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [34, 52]),
|
|
1426
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [23, 12]),
|
|
1427
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [21, 41]),
|
|
1428
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [50, 39]),
|
|
1429
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [48, 14])
|
|
1430
|
+
]);
|
|
2388
1431
|
Cnk = initDims(I_classLit, [$intern_3, $intern_27], [17, 0], 7, [13, 13], 2);
|
|
2389
|
-
move2str = initValues(
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
"B ",
|
|
2411
|
-
"B2",
|
|
2412
|
-
"B'",
|
|
2413
|
-
],
|
|
2414
|
-
);
|
|
2415
|
-
ud2std = initValues(
|
|
2416
|
-
getClassLiteralForArray(I_classLit, 1),
|
|
2417
|
-
$intern_27,
|
|
2418
|
-
0,
|
|
2419
|
-
7,
|
|
2420
|
-
[0, 1, 2, 4, 7, 9, 10, 11, 13, 16, 3, 5, 6, 8, 12, 14, 15, 17],
|
|
2421
|
-
);
|
|
1432
|
+
move2str = initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_3, 2, 4, [
|
|
1433
|
+
"U ",
|
|
1434
|
+
"U2",
|
|
1435
|
+
"U'",
|
|
1436
|
+
"R ",
|
|
1437
|
+
"R2",
|
|
1438
|
+
"R'",
|
|
1439
|
+
"F ",
|
|
1440
|
+
"F2",
|
|
1441
|
+
"F'",
|
|
1442
|
+
"D ",
|
|
1443
|
+
"D2",
|
|
1444
|
+
"D'",
|
|
1445
|
+
"L ",
|
|
1446
|
+
"L2",
|
|
1447
|
+
"L'",
|
|
1448
|
+
"B ",
|
|
1449
|
+
"B2",
|
|
1450
|
+
"B'"
|
|
1451
|
+
]);
|
|
1452
|
+
ud2std = initValues(getClassLiteralForArray(I_classLit, 1), $intern_27, 0, 7, [0, 1, 2, 4, 7, 9, 10, 11, 13, 16, 3, 5, 6, 8, 12, 14, 15, 17]);
|
|
2422
1453
|
std2ud = initDim(I_classLit, $intern_27, 0, 18, 7, 1);
|
|
2423
1454
|
ckmv2bit = initDim(I_classLit, $intern_27, 0, 11, 7, 1);
|
|
2424
1455
|
for (i0 = 0; i0 < 18; i0++) {
|
|
@@ -2429,7 +1460,7 @@ function $clinit_Util() {
|
|
|
2429
1460
|
ckmv2bit[i1] = 0;
|
|
2430
1461
|
for (j = 0; j < 10; j++) {
|
|
2431
1462
|
jx = ~~(ud2std[j] / 3);
|
|
2432
|
-
ckmv2bit[i1] |= (ix == jx ||
|
|
1463
|
+
ckmv2bit[i1] |= (ix == jx || ix % 3 == jx % 3 && ix >= jx ? 1 : 0) << j;
|
|
2433
1464
|
}
|
|
2434
1465
|
}
|
|
2435
1466
|
ckmv2bit[10] = 0;
|
|
@@ -2440,7 +1471,6 @@ function $clinit_Util() {
|
|
|
2440
1471
|
}
|
|
2441
1472
|
}
|
|
2442
1473
|
}
|
|
2443
|
-
|
|
2444
1474
|
function getComb(arr, mask, isEdge) {
|
|
2445
1475
|
$clinit_Util();
|
|
2446
1476
|
var end, i, idxC, perm, r;
|
|
@@ -2453,7 +1483,6 @@ function getComb(arr, mask, isEdge) {
|
|
|
2453
1483
|
}
|
|
2454
1484
|
return idxC;
|
|
2455
1485
|
}
|
|
2456
|
-
|
|
2457
1486
|
function getNParity(idx, n) {
|
|
2458
1487
|
$clinit_Util();
|
|
2459
1488
|
var i, p;
|
|
@@ -2464,7 +1493,6 @@ function getNParity(idx, n) {
|
|
|
2464
1493
|
}
|
|
2465
1494
|
return p & 1;
|
|
2466
1495
|
}
|
|
2467
|
-
|
|
2468
1496
|
function getNPerm(arr, n, isEdge) {
|
|
2469
1497
|
$clinit_Util();
|
|
2470
1498
|
var i, idx, v, val;
|
|
@@ -2477,11 +1505,9 @@ function getNPerm(arr, n, isEdge) {
|
|
|
2477
1505
|
}
|
|
2478
1506
|
return idx;
|
|
2479
1507
|
}
|
|
2480
|
-
|
|
2481
1508
|
function getVal(val0, isEdge) {
|
|
2482
1509
|
return isEdge ? val0 >> 1 : val0 & 7;
|
|
2483
1510
|
}
|
|
2484
|
-
|
|
2485
1511
|
function setComb(arr, idxC, mask, isEdge) {
|
|
2486
1512
|
$clinit_Util();
|
|
2487
1513
|
var end, fill, i, r;
|
|
@@ -2498,7 +1524,6 @@ function setComb(arr, idxC, mask, isEdge) {
|
|
|
2498
1524
|
}
|
|
2499
1525
|
}
|
|
2500
1526
|
}
|
|
2501
|
-
|
|
2502
1527
|
function setNPerm(arr, idx, n, isEdge) {
|
|
2503
1528
|
$clinit_Util();
|
|
2504
1529
|
var extract, i, m, p, v, val;
|
|
@@ -2511,32 +1536,19 @@ function setNPerm(arr, idx, n, isEdge) {
|
|
|
2511
1536
|
for (i = 0; i < n - 1; i++) {
|
|
2512
1537
|
v = (toInt(extract) & 15) << 2;
|
|
2513
1538
|
extract = shr(extract, 4);
|
|
2514
|
-
arr[i] = setVal(
|
|
2515
|
-
arr[i],
|
|
2516
|
-
toInt(and(shr(val, v), { l: 15, m: 0, h: 0 })),
|
|
2517
|
-
isEdge,
|
|
2518
|
-
);
|
|
1539
|
+
arr[i] = setVal(arr[i], toInt(and(shr(val, v), { l: 15, m: 0, h: 0 })), isEdge);
|
|
2519
1540
|
m = sub_0(shl({ l: 1, m: 0, h: 0 }, v), { l: 1, m: 0, h: 0 });
|
|
2520
|
-
val = or(
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
);
|
|
2528
|
-
}
|
|
2529
|
-
arr[n - 1] = setVal(
|
|
2530
|
-
arr[n - 1],
|
|
2531
|
-
toInt(and(val, { l: 15, m: 0, h: 0 })),
|
|
2532
|
-
isEdge,
|
|
2533
|
-
);
|
|
1541
|
+
val = or(and(val, m), and(shr(val, 4), {
|
|
1542
|
+
l: ~m.l & $intern_9,
|
|
1543
|
+
m: ~m.m & $intern_9,
|
|
1544
|
+
h: ~m.h & $intern_10
|
|
1545
|
+
}));
|
|
1546
|
+
}
|
|
1547
|
+
arr[n - 1] = setVal(arr[n - 1], toInt(and(val, { l: 15, m: 0, h: 0 })), isEdge);
|
|
2534
1548
|
}
|
|
2535
|
-
|
|
2536
1549
|
function setVal(val0, val, isEdge) {
|
|
2537
|
-
return (
|
|
1550
|
+
return (isEdge ? val << 1 | val0 & 1 : val | val0 & -8) << 24 >> 24;
|
|
2538
1551
|
}
|
|
2539
|
-
|
|
2540
1552
|
function toCubieCube(f, ccRet) {
|
|
2541
1553
|
$clinit_Util();
|
|
2542
1554
|
var col1, col2, i, i0, i1, i2, j, ori;
|
|
@@ -2554,36 +1566,32 @@ function toCubieCube(f, ccRet) {
|
|
|
2554
1566
|
col1 = f[cornerFacelet[i2][(ori + 1) % 3]];
|
|
2555
1567
|
col2 = f[cornerFacelet[i2][(ori + 2) % 3]];
|
|
2556
1568
|
for (j = 0; j < 8; j++) {
|
|
2557
|
-
if (
|
|
2558
|
-
|
|
2559
|
-
col2 == ~~(cornerFacelet[j][2] / 9)
|
|
2560
|
-
) {
|
|
2561
|
-
ccRet.ca[i2] = narrow_byte((ori % 3 << 3) | j);
|
|
1569
|
+
if (col1 == ~~(cornerFacelet[j][1] / 9) && col2 == ~~(cornerFacelet[j][2] / 9)) {
|
|
1570
|
+
ccRet.ca[i2] = narrow_byte(ori % 3 << 3 | j);
|
|
2562
1571
|
break;
|
|
2563
1572
|
}
|
|
2564
1573
|
}
|
|
2565
1574
|
}
|
|
2566
1575
|
for (i = 0; i < 12; i++) {
|
|
2567
1576
|
for (j = 0; j < 12; j++) {
|
|
2568
|
-
if (
|
|
2569
|
-
f[edgeFacelet[i][0]] == ~~(edgeFacelet[j][0] / 9) &&
|
|
2570
|
-
f[edgeFacelet[i][1]] == ~~(edgeFacelet[j][1] / 9)
|
|
2571
|
-
) {
|
|
1577
|
+
if (f[edgeFacelet[i][0]] == ~~(edgeFacelet[j][0] / 9) && f[edgeFacelet[i][1]] == ~~(edgeFacelet[j][1] / 9)) {
|
|
2572
1578
|
ccRet.ea[i] = narrow_byte(j << 1);
|
|
2573
1579
|
break;
|
|
2574
1580
|
}
|
|
2575
|
-
if (
|
|
2576
|
-
|
|
2577
|
-
f[edgeFacelet[i][1]] == ~~(edgeFacelet[j][0] / 9)
|
|
2578
|
-
) {
|
|
2579
|
-
ccRet.ea[i] = narrow_byte((j << 1) | 1);
|
|
1581
|
+
if (f[edgeFacelet[i][0]] == ~~(edgeFacelet[j][1] / 9) && f[edgeFacelet[i][1]] == ~~(edgeFacelet[j][0] / 9)) {
|
|
1582
|
+
ccRet.ea[i] = narrow_byte(j << 1 | 1);
|
|
2580
1583
|
break;
|
|
2581
1584
|
}
|
|
2582
1585
|
}
|
|
2583
1586
|
}
|
|
2584
1587
|
}
|
|
2585
|
-
|
|
2586
|
-
var
|
|
1588
|
+
var Cnk;
|
|
1589
|
+
var ckmv2bit;
|
|
1590
|
+
var cornerFacelet;
|
|
1591
|
+
var edgeFacelet;
|
|
1592
|
+
var move2str;
|
|
1593
|
+
var std2ud;
|
|
1594
|
+
var ud2std;
|
|
2587
1595
|
function $appendSolMove(this$static, curMove) {
|
|
2588
1596
|
var axisCur, axisLast, pow_0;
|
|
2589
1597
|
if (this$static.length_0 == 0) {
|
|
@@ -2593,25 +1601,14 @@ function $appendSolMove(this$static, curMove) {
|
|
|
2593
1601
|
axisCur = ~~(curMove / 3);
|
|
2594
1602
|
axisLast = ~~(this$static.moves[this$static.length_0 - 1] / 3);
|
|
2595
1603
|
if (axisCur == axisLast) {
|
|
2596
|
-
pow_0 =
|
|
2597
|
-
|
|
2598
|
-
4;
|
|
2599
|
-
pow_0 == 3
|
|
2600
|
-
? --this$static.length_0
|
|
2601
|
-
: (this$static.moves[this$static.length_0 - 1] = axisCur * 3 + pow_0);
|
|
1604
|
+
pow_0 = (curMove % 3 + this$static.moves[this$static.length_0 - 1] % 3 + 1) % 4;
|
|
1605
|
+
pow_0 == 3 ? --this$static.length_0 : this$static.moves[this$static.length_0 - 1] = axisCur * 3 + pow_0;
|
|
2602
1606
|
return;
|
|
2603
1607
|
}
|
|
2604
|
-
if (
|
|
2605
|
-
this$static.length_0
|
|
2606
|
-
axisCur % 3 == axisLast % 3 &&
|
|
2607
|
-
axisCur == ~~(this$static.moves[this$static.length_0 - 2] / 3)
|
|
2608
|
-
) {
|
|
2609
|
-
pow_0 =
|
|
2610
|
-
((curMove % 3) + (this$static.moves[this$static.length_0 - 2] % 3) + 1) %
|
|
2611
|
-
4;
|
|
1608
|
+
if (this$static.length_0 > 1 && axisCur % 3 == axisLast % 3 && axisCur == ~~(this$static.moves[this$static.length_0 - 2] / 3)) {
|
|
1609
|
+
pow_0 = (curMove % 3 + this$static.moves[this$static.length_0 - 2] % 3 + 1) % 4;
|
|
2612
1610
|
if (pow_0 == 3) {
|
|
2613
|
-
this$static.moves[this$static.length_0 - 2] =
|
|
2614
|
-
this$static.moves[this$static.length_0 - 1];
|
|
1611
|
+
this$static.moves[this$static.length_0 - 2] = this$static.moves[this$static.length_0 - 1];
|
|
2615
1612
|
--this$static.length_0;
|
|
2616
1613
|
} else {
|
|
2617
1614
|
this$static.moves[this$static.length_0 - 2] = axisCur * 3 + pow_0;
|
|
@@ -2620,56 +1617,31 @@ function $appendSolMove(this$static, curMove) {
|
|
|
2620
1617
|
}
|
|
2621
1618
|
this$static.moves[this$static.length_0++] = curMove;
|
|
2622
1619
|
}
|
|
2623
|
-
|
|
2624
1620
|
function $setArgs(this$static, verbose, urfIdx, depth1) {
|
|
2625
1621
|
this$static.verbose = verbose;
|
|
2626
1622
|
this$static.urfIdx = urfIdx;
|
|
2627
1623
|
this$static.depth1 = depth1;
|
|
2628
1624
|
}
|
|
2629
|
-
|
|
2630
1625
|
function $toString_2(this$static) {
|
|
2631
1626
|
var s, sb, urf;
|
|
2632
1627
|
sb = new StringBuffer();
|
|
2633
|
-
urf =
|
|
2634
|
-
(this$static.verbose & 2) != 0
|
|
2635
|
-
? (this$static.urfIdx + 3) % 6
|
|
2636
|
-
: this$static.urfIdx;
|
|
1628
|
+
urf = (this$static.verbose & 2) != 0 ? (this$static.urfIdx + 3) % 6 : this$static.urfIdx;
|
|
2637
1629
|
if (urf < 3) {
|
|
2638
1630
|
for (s = 0; s < this$static.length_0; s++) {
|
|
2639
|
-
(this$static.verbose & 1) != 0 &&
|
|
2640
|
-
|
|
2641
|
-
((sb.string += ". "), sb);
|
|
2642
|
-
$append(
|
|
2643
|
-
$append_1(
|
|
2644
|
-
sb,
|
|
2645
|
-
($clinit_Util(), move2str)[
|
|
2646
|
-
($clinit_CubieCube(), urfMove)[urf][this$static.moves[s]]
|
|
2647
|
-
],
|
|
2648
|
-
),
|
|
2649
|
-
);
|
|
1631
|
+
(this$static.verbose & 1) != 0 && s == this$static.depth1 && (sb.string += ". ", sb);
|
|
1632
|
+
$append($append_1(sb, ($clinit_Util(), move2str)[($clinit_CubieCube(), urfMove)[urf][this$static.moves[s]]]));
|
|
2650
1633
|
}
|
|
2651
1634
|
} else {
|
|
2652
1635
|
for (s = this$static.length_0 - 1; s >= 0; s--) {
|
|
2653
|
-
$append(
|
|
2654
|
-
|
|
2655
|
-
sb,
|
|
2656
|
-
($clinit_Util(), move2str)[
|
|
2657
|
-
($clinit_CubieCube(), urfMove)[urf][this$static.moves[s]]
|
|
2658
|
-
],
|
|
2659
|
-
),
|
|
2660
|
-
);
|
|
2661
|
-
(this$static.verbose & 1) != 0 &&
|
|
2662
|
-
s == this$static.depth1 &&
|
|
2663
|
-
((sb.string += ". "), sb);
|
|
1636
|
+
$append($append_1(sb, ($clinit_Util(), move2str)[($clinit_CubieCube(), urfMove)[urf][this$static.moves[s]]]));
|
|
1637
|
+
(this$static.verbose & 1) != 0 && s == this$static.depth1 && (sb.string += ". ", sb);
|
|
2664
1638
|
}
|
|
2665
1639
|
}
|
|
2666
1640
|
return sb.string;
|
|
2667
1641
|
}
|
|
2668
|
-
|
|
2669
1642
|
function Util$Solution() {
|
|
2670
1643
|
this.moves = initDim(I_classLit, $intern_27, 0, 31, 7, 1);
|
|
2671
1644
|
}
|
|
2672
|
-
|
|
2673
1645
|
defineClass(150, 1, {}, Util$Solution);
|
|
2674
1646
|
_.depth1 = 0;
|
|
2675
1647
|
_.length_0 = 0;
|
|
@@ -2677,23 +1649,21 @@ _.urfIdx = 0;
|
|
|
2677
1649
|
_.verbose = 0;
|
|
2678
1650
|
var I_classLit = createForPrimitive("int", "I");
|
|
2679
1651
|
createForClass("com.google.gwt.lang", "CollapsedPropertyHolder", 252);
|
|
2680
|
-
|
|
2681
1652
|
createForClass("com.google.gwt.lang", "JavaClassHierarchySetupUtil", 254);
|
|
2682
|
-
|
|
2683
|
-
"com.google.gwt.lang",
|
|
2684
|
-
"LongLibBase/LongEmul",
|
|
2685
|
-
null,
|
|
2686
|
-
);
|
|
1653
|
+
var Lcom_google_gwt_lang_LongLibBase$LongEmul_2_classLit = createForClass("com.google.gwt.lang", "LongLibBase/LongEmul", null);
|
|
2687
1654
|
createForClass("com.google.gwt.lang", "ModuleUtils", 257);
|
|
2688
|
-
var B_classLit = createForPrimitive("byte", "B")
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
createForClass("com.google.gwt.user.client.rpc", "XsrfToken", null),
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
export const initialize = function () {
|
|
1655
|
+
var B_classLit = createForPrimitive("byte", "B");
|
|
1656
|
+
var J_classLit = createForPrimitive("long", "J");
|
|
1657
|
+
var C_classLit = createForPrimitive("char", "C");
|
|
1658
|
+
createForClass("com.google.gwt.user.client.rpc", "XsrfToken", null), createForInterface("java.util", "Map/Entry");
|
|
1659
|
+
var initialize = function() {
|
|
2695
1660
|
init_0(false);
|
|
2696
1661
|
};
|
|
2697
|
-
|
|
1662
|
+
var solveState = function(s) {
|
|
2698
1663
|
return $solution(new Search(), s);
|
|
2699
1664
|
};
|
|
1665
|
+
export {
|
|
1666
|
+
initialize,
|
|
1667
|
+
solveState
|
|
1668
|
+
};
|
|
1669
|
+
//# sourceMappingURL=gwt-B7CBESZR.js.map
|