{"version":3,"sources":["jsdelivr-header.js","/npm/convert-hex@0.1.0/convert-hex.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCNC,SAAS,GACV,aAEA,IAAI,EAAa,CACf,WAAY,SAAS,GAcnB,OAYJ,SAAuB,GACrB,OAAO,EAAM,KAAI,SAAS,GAAK,OAGhB,EAH+B,EAAE,SAAS,IAGpC,EAHwC,EAIzD,EAAK,OAAS,EAAY,EACvB,MAAM,EAAM,EAAK,OAAS,GAAG,KAAK,KAAO,EAFlD,IAAiB,EAAM,CAH2C,IAAG,KAAK,GAC1E,CAdW,CAAc,EACvB,EACA,WAAY,SAAS,GACnB,GAAI,EAAI,OAAS,GAAM,EAAG,MAAM,IAAI,MAAM,oEAE1C,OAD0B,IAAtB,EAAI,QAAQ,QAAa,EAAM,EAAI,MAAM,IACtC,EAAI,MAAM,OAAO,KAAI,SAAS,GAAK,OAAO,SAAS,EAAE,GAAI,GAClE,GAgBoB,oBAAX,QAA0B,OAAO,QAC1C,OAAO,QAAU,EAEjB,EAAQ,WAAa,CAGvB,CA9CC,CA8CC","file":"/npm/convert-hex@0.1.0/convert-hex.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/convert-hex@0.1.0/convert-hex.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","!function(globals) {\n'use strict'\n\nvar convertHex = {\n  bytesToHex: function(bytes) {\n    /*if (typeof bytes.byteLength != 'undefined') {\n      var newBytes = []\n\n      if (typeof bytes.buffer != 'undefined')\n        bytes = new DataView(bytes.buffer)\n      else\n        bytes = new DataView(bytes)\n\n      for (var i = 0; i < bytes.byteLength; ++i) {\n        newBytes.push(bytes.getUint8(i))\n      }\n      bytes = newBytes\n    }*/\n    return arrBytesToHex(bytes)\n  },\n  hexToBytes: function(hex) {\n    if (hex.length % 2 === 1) throw new Error(\"hexToBytes can't have a string with an odd number of characters.\")\n    if (hex.indexOf('0x') === 0) hex = hex.slice(2)\n    return hex.match(/../g).map(function(x) { return parseInt(x,16) })\n  }\n}\n\n\n// PRIVATE\n\nfunction arrBytesToHex(bytes) {\n  return bytes.map(function(x) { return padLeft(x.toString(16),2) }).join('')\n}\n\nfunction padLeft(orig, len) {\n  if (orig.length > len) return orig\n  return Array(len - orig.length + 1).join('0') + orig\n}\n\n\nif (typeof module !== 'undefined' && module.exports) { //CommonJS\n  module.exports = convertHex\n} else {\n  globals.convertHex = convertHex\n}\n\n}(this);"]}