define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=_exports.AbortControllerPolyFill=void 0;var AbortControllerPolyFill=_exports.AbortControllerPolyFill=function(){function AbortControllerPolyFill(){babelHelpers.classCallCheck(this,AbortControllerPolyFill),Object.defineProperty(this,"signal",{value:new AbortSignal,writable:!0,configurable:!0})}return babelHelpers.createClass(AbortControllerPolyFill,[{key:"abort",value:function(reason){var event;try{event=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(event=document.createEvent("Event")).initEvent("abort",!1,!1):(event=document.createEventObject()).type="abort":event={type:"abort",bubbles:!1,cancelable:!1}}if(void 0===reason)if("undefined"==typeof document)(reason=new Error("This operation was aborted")).name="AbortError";else try{reason=new DOMException("signal is aborted without reason")}catch(err){(reason=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=reason,this.signal.dispatchEvent(event)}},{key:"toString",value:function(){return"[object AbortController]"}}]),AbortControllerPolyFill}(),isMissingRequestSignalSupport="function"==typeof globalThis.Request&&!Object.prototype.hasOwnProperty.call(globalThis.Request.prototype,"signal");"undefined"!=typeof AbortController&&!isMissingRequestSignalSupport||Object.defineProperty(globalThis,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:AbortControllerPolyFill}),_exports.default=AbortControllerPolyFill});