b._result):E(b,void0,function(b){returnx(a,b)},function(b){returng(a,b)})}functionN(a,b,c){b.constructor===a.constructor&&c===D&&b.constructor.resolve===F?X(a,b):c===p?(g(a,p.error),p.error=null):void0===c?m(a,b):v(c)?W(a,b,c):m(a,b)}functionx(a,b){if(a===b)g(a,newTypeError("You cannot resolve a promise with itself"));else{varc=typeofb;null===b||"object"!==c&&"function"!==c?m(a,b):N(a,b,M(b))}}functionY(a){a._onerror&&a._onerror(a._result);G(a)}functionm(a,b){a._state===u&&(a._result=b,
n,f=p}f===p?(l=!0,h=f.error,f.error=null):k=!0;if(b===f){g(b,newTypeError("A promises callback cannot return that same promise."));return}}elsef=d,k=!0;b._state===u&&(e&&k?x(b,f):l?g(b,h):a===y?m(b,f):a===t&&g(b,f))}functionZ(a,b){try{b(function(b){x(a,b)},function(b){g(a,b)})}catch(c){g(a,c)}}functionK(a){a[z]=O++;a._state=void0;a._result=void0;a._subscribers=[]}varH=void0,P=H=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},k=0,B=void0,
u=void0,y=1,t=2,p={error:null},O=0,ba=function(){functiona(a,c){this._instanceConstructor=a;this.promise=newa(r);this.promise[z]||K(this.promise);P(c)?(this._remaining=this.length=c.length,this._result=Array(this.length),0===this.length?m(this.promise,this._result):(this.length=this.length||0,this._enumerate(c),0===this._remaining&&m(this.promise,this._result))):g(this.promise,Error("Array Methods must be provided an Array"))}a.prototype._enumerate=function(a){for(varc=0;this._state===u&&c<a.length;c++)this._eachEntry(a[c],
a.prototype._willSettleAt=function(a,c){vard=this;E(a,void0,function(a){returnd._settledAt(y,c,a)},function(a){returnd._settledAt(t,c,a)})};returna}(),h=function(){functiona(b){this[z]=O++;this._result=this._state=void0;this._subscribers=[];if(r!==b){if("function"!==typeofb)thrownewTypeError("You must pass a resolver function as the first argument to the promise constructor");if(thisinstanceofa)Z(this,b);elsethrownewTypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
b){returnb(newTypeError("You must pass an array to race."))})};h.resolve=F;h.reject=function(a){varb=newthis(r);g(b,a);returnb};h._setScheduler=function(a){I=a};h._setAsap=function(a){l=a};h._asap=l;h.polyfill=function(){vara=void0;if("undefined"!==typeofglobal)a=global;elseif("undefined"!==typeofself)a=self;elsetry{a=Function("return this")()}catch(b){throwError("polyfill failed because global object is unavailable in this environment");}varc=a.Promise;if(c){vard=null;try{d=Object.prototype.toString.call(c.resolve())}catch(e){}if("[object Promise]"===