mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 01:51:03 +00:00
1 line
2.8 KiB
Plaintext
1 line
2.8 KiB
Plaintext
{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.arrayShuffle = arrayShuffle;\n /**\n * @name arrayShuffle\n * @description Shuffles the input array (unlike sort, this is not done in-place)\n */\n function arrayShuffle(input) {\n var result = input.slice();\n var curr = result.length;\n // noop for the single entry\n if (curr === 1) {\n return result;\n }\n while (curr !== 0) {\n // ~~ is more performant than Math.floor\n var rand = ~~(Math.random() * curr);\n curr--;\n var _ref = [result[rand], result[curr]];\n result[curr] = _ref[0];\n result[rand] = _ref[1];\n }\n return result;\n }\n});","lineCount":29,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"arrayShuffle"],[7,22,3,20],[7,25,3,23,"arrayShuffle"],[7,37,3,35],[8,2,4,0],[9,0,5,0],[10,0,6,0],[11,0,7,0],[12,2,8,0],[12,11,8,9,"arrayShuffle"],[12,23,8,21,"arrayShuffle"],[12,24,8,22,"input"],[12,29,8,27],[12,31,8,29],[13,4,9,4],[13,8,9,10,"result"],[13,14,9,16],[13,17,9,19,"input"],[13,22,9,24],[13,23,9,25,"slice"],[13,28,9,30],[13,29,9,31],[13,30,9,32],[14,4,10,4],[14,8,10,8,"curr"],[14,12,10,12],[14,15,10,15,"result"],[14,21,10,21],[14,22,10,22,"length"],[14,28,10,28],[15,4,11,4],[16,4,12,4],[16,8,12,8,"curr"],[16,12,12,12],[16,17,12,17],[16,18,12,18],[16,20,12,20],[17,6,13,8],[17,13,13,15,"result"],[17,19,13,21],[18,4,14,4],[19,4,15,4],[19,11,15,11,"curr"],[19,15,15,15],[19,20,15,20],[19,21,15,21],[19,23,15,23],[20,6,16,8],[21,6,17,8],[21,10,17,14,"rand"],[21,14,17,18],[21,17,17,21],[21,18,17,22],[21,20,17,24,"Math"],[21,24,17,28],[21,25,17,29,"random"],[21,31,17,35],[21,32,17,36],[21,33,17,37],[21,36,17,40,"curr"],[21,40,17,44],[21,41,17,45],[22,6,18,8,"curr"],[22,10,18,12],[22,12,18,14],[23,6,18,15],[23,10,18,15,"_ref"],[23,14,18,15],[23,17,19,39],[23,18,19,40,"result"],[23,24,19,46],[23,25,19,47,"rand"],[23,29,19,51],[23,30,19,52],[23,32,19,54,"result"],[23,38,19,60],[23,39,19,61,"curr"],[23,43,19,65],[23,44,19,66],[23,45,19,67],[24,6,19,9,"result"],[24,12,19,15],[24,13,19,16,"curr"],[24,17,19,20],[24,18,19,21],[24,21,19,21,"_ref"],[24,25,19,21],[25,6,19,23,"result"],[25,12,19,29],[25,13,19,30,"rand"],[25,17,19,34],[25,18,19,35],[25,21,19,35,"_ref"],[25,25,19,35],[26,4,20,4],[27,4,21,4],[27,11,21,11,"result"],[27,17,21,17],[28,2,22,0],[29,0,22,1],[29,3]],"functionMap":{"names":["<global>","arrayShuffle"],"mappings":"AAA;ACO;CDc"},"hasCjsExports":true},"type":"js/module"}]} |