{"version":3,"sources":["jsdelivr-header.js","/npm/free-fire-serverjs@2.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,OAAS,QAAQ,UAEvB,eAAe,yBACL,OAAO,IAAI,8CAA8C,SAAU,EAAO,GAC5E,OAAI,EAAK,KAAK,KACH,CACH,MAAM,EACN,aAAc,EAAK,KAAK,cAGrB,CACH,MAAM,EACN,QAAS,EAAK,KAAK,QAG/B,GACJ,CAEA,eAAe,SAAS,SACd,OAAO,IAAI,+CAAiD,GAAS,SAAU,EAAO,GACxF,GAAuB,KAAnB,EAAK,YAAqB,EAAK,KAAK,MACpC,MAAM,IAAI,MAAM,oBAEhB,OAAO,MAAM,EAAK,KAAK,eAAe,KAAK,KAEnD,GACJ,CAEA,eAAe,oBAAoB,SACzB,OAAO,IAAI,2CAA6C,GAAI,SAAU,EAAO,GAC/E,GAAI,EAAK,KAAK,OAA4B,KAAnB,EAAK,WACxB,MAAM,IAAI,MAAM,eAEhB,OAAO,EAAK,KAAK,IAEzB,GACJ,CAEA,eAAe,gBACL,OAAO,IAAI,8CAA8C,SAAU,EAAO,GAC5E,GAAI,EAAK,KAAK,MACV,MAAM,IAAI,MAAM,oBAEhB,OAAO,EAAK,KAAK,OAEzB,GACJ,CAEA,eAAe,mBACL,OAAO,IAAI,iDAAiD,SAAU,EAAO,GAC/E,GAAI,EAAK,KAAK,MACV,MAAM,IAAI,MAAM,oBAEhB,OAAO,EAAK,KAAK,OAEzB,GACJ,CAEA,OAAO,QAAU,CACb,kCACA,kBACA,wCACA,gBACA","file":"/npm/free-fire-serverjs@2.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/free-fire-serverjs@2.0.0/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","const needle = require(\"needle\");\r\n\r\nasync function miniAtualization() {\r\n    await needle.get('https://flzz-api.squareweb.app/api/miniatt', function (error, resp) {\r\n        if (resp.body.news) {\r\n            return {\r\n                news: true,\r\n                next_version: resp.body.next_version\r\n            }\r\n        } else {\r\n            return {\r\n                news: false,\r\n                version: resp.body.version\r\n            }\r\n        }\r\n    })\r\n}\r\n\r\nasync function fileInfo(version) {\r\n    await needle.get('https://flzz-api.squareweb.app/api/fileinfo/' + version, function (error, resp) {\r\n        if (resp.statusCode == 404 || resp.body.error) {\r\n            throw new Error('Invalid version.')\r\n        } else {\r\n            return Array(resp.body.downloadNames).join('\\n')\r\n        }\r\n    })\r\n}\r\n\r\nasync function accountCreationDate(id) {\r\n    await needle.get('https://flzz-api.squareweb.app/api/data/' + id, function (error, resp) {\r\n        if (resp.body.error || resp.statusCode == 404) {\r\n            throw new Error('Invalid ID.')\r\n        } else {\r\n            return resp.body.date\r\n        }\r\n    })\r\n}\r\n\r\nasync function version() {\r\n    await needle.get('https://flzz-api.squareweb.app/api/version', function (error, resp) {\r\n        if (resp.body.error) {\r\n            throw new Error('Garena API Error')\r\n        } else {\r\n            return resp.body.version\r\n        }\r\n    })\r\n}\r\n\r\nasync function maxVersion() {\r\n    await needle.get('https://flzz-api.squareweb.app/api/maxversion', function (error, resp) {\r\n        if (resp.body.error) {\r\n            throw new Error('Garena API Error')\r\n        } else {\r\n            return resp.body.version\r\n        }\r\n    })\r\n}\r\n\r\nmodule.exports = {\r\n    miniAtualization,\r\n    fileInfo,\r\n    accountCreationDate,\r\n    version,\r\n    maxVersion\r\n}"]}