// Metro module 228 (f229). import * as _classCallCheck from "./_classCallCheck"; import * as __createClass from "./_createClass"; import * as _possibleConstructorReturn from "./_possibleConstructorReturn"; import * as _getPrototypeOf from "./_getPrototypeOf"; import * as __inherits from "./_inherits"; import { EventTarget, defineEventAttribute } from "./EventTarget"; let c249_6, c249_7, c249_8; let AbortSignal2; let env249 = {}; env249[5] = function _isNativeReflectConstruct() { let c12212_0; try { c12212_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); } catch ($e) {} const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() { return !!c12212_0; }; env249[5] = _isNativeReflectConstruct2; return _isNativeReflectConstruct2(); }; AbortSignal2 = function() { _classCallCheck(this, AbortSignal2); const r8 = _getPrototypeOf(AbortSignal2); _possibleConstructorReturn(this, (0, env249[5])() ? Reflect.construct(r8, [], _getPrototypeOf(this).constructor) : r8.apply(this, void 0)); throw new TypeError("AbortSignal cannot be constructed directly"); }; __inherits(AbortSignal2, EventTarget); c249_6 = __createClass(AbortSignal2, [{ key: "aborted", get: function get() { const r8 = c249_7.get(this); if (typeof r8 !== "boolean") { throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got " + (this !== null ? typeof this : "null")); } return r8; } }]); defineEventAttribute(c249_6.prototype, "abort"); c249_7 = new WeakMap(); Object.defineProperties(c249_6.prototype, { aborted: { enumerable: true } }); const Symbol2 = globalThis.Symbol; if (typeof Symbol2 === "function" ? typeof Symbol.toStringTag === "symbol" : typeof Symbol2 === "function") { Object.defineProperty(c249_6.prototype, Symbol.toStringTag, { configurable: true, value: "AbortSignal" }); } const AbortController2 = function() { _classCallCheck(this, AbortController2); const r15 = Object.create(c249_6.prototype); EventTarget.call(r15); c249_7.set(r15, false); c249_8.set(this, r15); }; const exports3 = __createClass(AbortController2, [{ key: "signal", get: function get() { const r8 = c249_8.get(this); if (r8 == null) { throw new TypeError("Expected 'this' to be an 'AbortController' object, but got " + (this !== null ? typeof this : "null")); } return r8; } }, { key: "abort", value: function abort() { const r9 = c249_8.get(this); if (r9 == null) { throw new TypeError("Expected 'this' to be an 'AbortController' object, but got " + (this !== null ? typeof this : "null")); } if (c249_7.get(r9) === false) { c249_7.set(r9, true); r9.dispatchEvent({ type: "abort" }); } } }]); c249_8 = new WeakMap(); Object.defineProperties(exports3.prototype, { signal: { enumerable: true }, abort: { enumerable: true } }); const Symbol3 = globalThis.Symbol; if (typeof Symbol3 === "function" ? typeof Symbol.toStringTag === "symbol" : typeof Symbol3 === "function") { Object.defineProperty(exports3.prototype, Symbol.toStringTag, { configurable: true, value: "AbortController" }); } export { exports3 as AbortController }; export { c249_6 as AbortSignal }; export default exports3; module.exports = exports3; const exports2 = module.exports; module.exports.default = exports3; exports2.AbortController = exports3; module.exports.AbortSignal = c249_6;