{"version":3,"sources":["jsdelivr-header.js","/npm/attempt-statement@1.1.0/attempt.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,QACJ,WAAA,CAAY,GACV,OAAM,gBAAgB,SACtB,KAAK,QAAU,EACR,MAFgC,IAAI,QAAQ,EAGrD,CACA,MAAA,CAAO,GAEL,OADA,KAAK,cAAgB,EACd,IACT,CACA,KAAK,GAEH,OADA,KAAK,YAAc,EACZ,IACT,CACA,MAAA,CAAO,GAEL,OADA,KAAK,cAAgB,EACd,IACT,CACA,GAAA,GAEE,IAAI,GAAQ,EACZ,IACM,KAAK,SAAS,KAAK,SACzB,CAAE,MAAO,GACP,GAAQ,EACJ,KAAK,eAAe,KAAK,cAAc,EAC7C,EAEK,GAAS,KAAK,aACjB,KAAK,cAGH,KAAK,eAAe,KAAK,eAC/B,EAGF,SAAS,QAAQ,GAEf,OADA,KAAK,iBAAkB,EAChB,IAAI,QAAQ,EACrB,CAGA,OAAO,QAAU","file":"/npm/attempt-statement@1.1.0/attempt.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/attempt-statement@1.1.0/attempt.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","class Attempt {\r\n  constructor(handler) {\r\n    if (!(this instanceof Attempt)) return new Attempt(handler)\r\n    this.trycode = handler\r\n    return this\r\n  }\r\n  rescue(handler) {\r\n    this.rescuehandler = handler\r\n    return this\r\n  }\r\n  else(handler) {\r\n    this.elsehandler = handler\r\n    return this\r\n  }\r\n  ensure(handler) {\r\n    this.ensurehandler = handler\r\n    return this\r\n  }\r\n  end() {\r\n    const dis = this\r\n    let error = false\r\n    try {\r\n      if (this.trycode) this.trycode()\r\n    } catch (e) {\r\n      error = true\r\n      if (this.rescuehandler) this.rescuehandler(e)\r\n    }\r\n\r\n    if (!error && this.elsehandler) {\r\n      this.elsehandler()\r\n    }\r\n\r\n    if (this.ensurehandler) this.ensurehandler()\r\n  }\r\n}\r\n\r\nfunction attempt(handler) {\r\n  this.______attemptfn = true\r\n  return new Attempt(handler)\r\n}\r\n\r\n\r\nmodule.exports = attempt"]}