import { _ as I } from "./index.es333.js";
import { f as C } from "./index.es385.js";
import { a as _ } from "./index.es386.js";
import { g as d } from "./index.es391.js";
import "./index.es334.js";
import { p as y } from "./index.es335.js";
import { i as E } from "./index.es387.js";
import { p as b } from "./index.es388.js";
import { __exports as A } from "./index.es336.js";
var O = I, P = C, S = _, T = d, $ = A, w = y, N = E, j = b, m = "No one promise resolved";
O({ target: "Promise", stat: !0, forced: j }, {
  any: function(f) {
    var r = this, v = T("AggregateError"), e = $.f(r), p = e.resolve, a = e.reject, l = w(function() {
      var u = S(r.resolve), t = [], c = 0, o = 1, i = !1;
      N(f, function(g) {
        var R = c++, n = !1;
        o++, P(u, r, g).then(function(s) {
          n || i || (i = !0, p(s));
        }, function(s) {
          n || i || (n = !0, t[R] = s, --o || a(new v(t, m)));
        });
      }), --o || a(new v(t, m));
    });
    return l.error && a(l.value), e.promise;
  }
});
//# sourceMappingURL=index.es305.js.map
