define(["exports"],function(_exports){function AbortControllerPolyFill(){Object.defineProperty(this,"signal",{value:new AbortSignal,writable:!0,configurable:!0})}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,AbortControllerPolyFill.prototype.abort=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)},AbortControllerPolyFill.prototype.toString=function(){return"[object AbortController]"};var isMissingRequestSignalSupport="function"==typeof globalThis.Request&&!Object.prototype.hasOwnProperty.call(globalThis.Request.prototype,"signal");"undefined"!=typeof AbortController&&!isMissingRequestSignalSupport||(console.log("assigning AbortController to globalThis"),Object.defineProperty(globalThis,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:AbortControllerPolyFill})),console.log("done loading AbortControllerPolyFill"),_exports.default=AbortControllerPolyFill});