{"version":3,"sources":["jsdelivr-header.js","/npm/bento4-installer@1.0.8/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,oBACJ,oBAAmB,mBACnB,mBAAkB,YAClB,YAAW,QACX,QAAO,YACP,YAAW,SACX,UACE,QAAQ,WAEN,QAAE,SAAY,YACd,oBAAsB,YAAY,SAClC,OAAS,SAIf,SAAS,SACP,IAAI,EAAS,CACX,gBACA,kBACA,yCAWF,OARI,EAAO,sBACT,EAAO,QAAU,QACjB,qBAAqB,QAAO,IAAS,EAAK,KAAK,SAAS,YAAW,SAAQ,IACzE,MAAM,EAAiB,oBAAoB,EAAK,MAChD,EAAO,GAAkB,EAAK,SAI3B,CACT,CAlBA,OAAO,QAAU,OAAO,OAAO","file":"/npm/bento4-installer@1.0.8/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/bento4-installer@1.0.8/src/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 {\n  removeFileExtension,\n  getExecutableFiles,\n  isDirectory,\n  binPath,\n  packageJson,\n  platform\n} = require('./util')\n\nconst { version } = packageJson\nconst isPlatformSupported = isDirectory(binPath)\nconst bento4 = create()\n\nmodule.exports = Object.freeze(bento4)\n\nfunction create() {\n  let bento4 = {\n    version,\n    platform,\n    isPlatformSupported\n  }\n\n  if (bento4.isPlatformSupported) {\n    bento4.binPath = binPath\n    getExecutableFiles().filter(file => !file.name.includes('Bento4')).forEach(file => {\n      const executableName = removeFileExtension(file.name)\n      bento4[executableName] = file.path\n    })\n  }\n\n  return bento4\n}\n"]}