{"version":3,"sources":["jsdelivr-header.js","/npm/@request/api@0.6.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,IAAI,OAAS,QAAQ,UACjB,UAAY,QAAQ,sBACpB,OAAS,QAAQ,oBACjB,MAAQ,QAAQ,eAChB,MAAQ,QAAQ,eAGpB,OAAO,QAAW,IAEhB,IAAI,EAAS,UAAU,OAAO,QAAO,CAAC,EAAK,KACzC,EAAI,GAAO,GACJ,IACN,CAAC,GAEA,EAAU,CAAC,EAGf,OAFA,QAAO,EAAM,EAAS,OAAQ,CAAC,OAAQ,GAAS,EAAQ,QAEnC,UAAjB,EAAQ,KACH,MAAM,EAAS,EAAQ,QAEN,UAAjB,EAAQ,KACR,MAAM,EAAS,EAAQ,aAD3B,CAEL","file":"/npm/@request/api@0.6.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/@request/api@0.6.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","\nvar extend = require('extend')\nvar interface = require('@request/interface')\nvar config = require('./config/methods')\nvar basic = require('./lib/basic')\nvar chain = require('./lib/chain')\n\n\nmodule.exports = (options) => {\n\n  var common = interface.common.reduce((obj, key) => {\n    obj[key] = []\n    return obj\n  }, {})\n\n  var methods = {}\n  extend(true, methods, config, {option: common}, options.config)\n\n  if (options.type === 'basic') {\n    return basic(methods, options.define)\n  }\n  else if (options.type === 'chain') {\n    return chain(methods, options.define)\n  }\n}\n"]}