import{__require as r}from"./get-built-in.mjs";import{__require as i}from"./function-call.mjs";import{__require as e}from"./function-uncurry-this.mjs";import{__require as o}from"./function-bind-context.mjs";import{__require as n}from"./an-object.mjs";import{__require as t}from"./a-callable.mjs";import{__require as s}from"./is-null-or-undefined.mjs";import{__require as u}from"./get-method.mjs";import{__require as m}from"./well-known-symbol.mjs";var f,a;function _(){if(a)return f;a=1;var _=r(),c=i(),p=e(),l=o(),d=n(),j=t(),q=s(),v=u(),h=m(),b=h("asyncDispose"),y=h("dispose"),g=p([].push),w=function(r,i,e){return arguments.length<3&&!q(r)&&(e=j(function(r,i){if("async-dispose"===i){var e=v(r,b);return void 0!==e||void 0===(e=v(r,y))?e:function(){var r=this;return new(_("Promise"))(function(i){c(e,r),i(void 0)})}}return v(r,y)}(d(r),i))),void 0===e?function(){}:l(e,r)};return f=function(r,i,e,o){var n;if(arguments.length<4){if(q(i)&&"sync-dispose"===e)return;n=w(i,e)}else n=w(void 0,e,o);g(r.stack,n)},f}export{_ as __require};