{"version":3,"sources":["jsdelivr-header.js","/npm/promise-timeout-rejection@1.0.5/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,MAAM,4BAA4B,MAChC,WAAA,CAAa,GACX,QACA,KAAK,KAAO,sBACZ,KAAK,QAAU,2BAA2B,OAC5C,EAGF,OAAO,QAAU,CAAC,EAAS,IAClB,IAAI,SAAQ,CAAC,EAAS,KAC3B,IAAI,EAAU,YAAW,KACvB,EAAO,IAAI,oBAAoB,GAAK,GACnC,GAEH,EACG,MAAK,IACJ,aAAa,GACb,EAAQ,EAAG,IAEZ,OAAM,IACL,aAAa,GACb,EAAO,EAAG,GACX,IAIP,OAAO,QAAQ,oBAAsB","file":"/npm/promise-timeout-rejection@1.0.5/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/promise-timeout-rejection@1.0.5/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","'use strict'\n\nclass PromiseTimeOutError extends Error {\n  constructor (time) {\n    super()\n    this.name = 'PromiseTimeOutError'\n    this.message = `Promise timed out after ${time} ms.`\n  }\n}\n\nmodule.exports = (promise, time) => {\n  return new Promise((resolve, reject) => {\n    let timeout = setTimeout(() => {\n      reject(new PromiseTimeOutError(time))\n    }, time)\n\n    promise\n      .then(res => {\n        clearTimeout(timeout)\n        resolve(res)\n      })\n      .catch(err => {\n        clearTimeout(timeout)\n        reject(err)\n      })\n  })\n}\n\nmodule.exports.PromiseTimeOutError = PromiseTimeOutError\n"]}