"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AbortError=void 0,exports.onabort=onabort;class AbortError extends Error{constructor(r){super("The task has been aborted",{cause:r})}get name(){return"AbortError"}}function onabort(r,o){"addEventListener"in r?r.addEventListener("abort",o,{once:!0}):r.once("abort",o)}exports.AbortError=AbortError;