{"version":3,"sources":["jsdelivr-header.js","/npm/game-leaderboard@1.2.2/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,QAAQ,IAAI,8BAEZ,MAAM,OAAS,QAAQ,iBACjB,GAAK,QAAQ,MACb,YAAc,QAAQ,gBACtB,OAAS,IAAI,YAAY,CAC7B,KAAM,sBAGH,GAAG,WAAW,mBACf,GAAG,UAAU,kBAGjB,OAAO,MAAM,IACA,OAAR,GACH,QAAQ,IAAI,qDAAsD,OAAO,YACzE,QAAQ,sBACY,IAAZ,EAAI,MACZ,QAAQ,IAAI,iDAAkD,OAAO,YACrE,QAAQ,qBAER,QAAQ,IAAI,mCAAoC,EACjD","file":"/npm/game-leaderboard@1.2.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/game-leaderboard@1.2.2/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\nconsole.log(\"# redis-server starting...\")\n\nconst config = require('./config.json')\nconst fs = require('fs');\nconst RedisServer = require('redis-server');\nconst server = new RedisServer({\n  conf: 'redis-server.conf',\n});\n\nif (!fs.existsSync('redis-data-dir')){\n    fs.mkdirSync('redis-data-dir');\n}\n\nserver.open((err) => {\n\tif (err === null) {\n\t\tconsole.log(\"# redis-server started successfuly at 127.0.0.1:%s\", config.redis_port)\n\t\trequire('./http-server.js')\n\t}else if(err.code===-1){\n\t\tconsole.log(\"# redis-server already running at 127.0.0.1:%s\", config.redis_port)\n\t\trequire('./http-server.js')\n\t}else{\n\t\tconsole.log(\"# redis-server started with err:\", err)\n\t}\n});\n"]}