{"version":3,"sources":["jsdelivr-header.js","/npm/cancelable-fetch@1.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,SAAS,gBAAiB,GACxB,IAAI,GAAS,EAET,EAAU,IAAI,SAAQ,SAAU,EAAS,GAC3C,EAAM,MAAK,SAAU,GACf,GACE,EAAI,MAAQ,EAAI,KAAK,QACvB,EAAI,KAAK,SAGX,EAAO,IAAI,MAAM,sBAEjB,EAAQ,EAEZ,GACF,IAMA,OAJA,EAAQ,OAAS,WACf,GAAS,CACX,EAEO,CACT,CAEA,OAAO,QAAU","file":"/npm/cancelable-fetch@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/cancelable-fetch@1.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","function cancelableFetch (fetch) {\n  var cancel = false\n\n  var promise = new Promise(function (resolve, reject) {\n    fetch.then(function (res) {\n      if (cancel) {\n        if (res.body && res.body.cancel) {\n          res.body.cancel()\n        }\n\n        reject(new Error('user cancelation'))\n      } else {\n        resolve(res)\n      }\n    })\n  })\n\n  promise.cancel = function () {\n    cancel = true\n  }\n\n  return promise\n}\n\nmodule.exports = cancelableFetch\n"]}