"use strict";const G=require("./index.cjs324.js"),Q=require("./index.cjs578.js"),W=require("./index.cjs367.js"),z=require("./index.cjs372.js"),K=require("./index.cjs560.js"),X=require("./index.cjs440.js"),Y=require("./index.cjs579.js"),Z=require("./index.cjs373.js"),ee=require("./index.cjs381.js"),re=require("./index.cjs520.js"),ne=require("./index.cjs580.js"),ie=require("./index.cjs505.js"),te=require("./index.cjs581.js"),oe=require("./index.cjs582.js"),ae=require("./index.cjs583.js"),se=require("./index.cjs326.js"),ce=require("./index.cjs584.js"),ve=require("./index.cjs500.js"),le=require("./index.cjs459.js"),ue=require("./index.cjs461.js");require("./index.cjs325.js");const fe=require("./index.cjs327.js");var de=G._export,E=Q.engineIsNode,o=W.global,u=z.functionCall,pe=K.defineBuiltIn,Ee=X.setToStringTag,me=Y.setSpecies,he=Z.aCallable,N=ee.isCallable,Ce=re.isObject,Ne=ne.anInstance,Ie=ie.speciesConstructor,$=te.task.set,S=oe.microtask_1,Pe=ae.hostReportErrors,qe=se.perform,Te=ce.queue,w=ve.internalState,I=le.promiseNativeConstructor,b=ue.promiseConstructorDetection,U=fe.__exports,m="Promise",k=b.CONSTRUCTOR,Se=b.REJECTION_EVENT;b.SUBCLASSING;var h=w.getterFor(m),be=w.set,ye=I&&I.prototype,c=I,C=ye,L=o.TypeError,P=o.document,y=o.process,q=U.f,De=q,Re=!!(P&&P.createEvent&&o.dispatchEvent),A="unhandledrejection",je="rejectionhandled",O=0,H=1,Oe=2,D=1,x=2,p,_,_e,J=function(e){var r;return Ce(e)&&N(r=e.then)?r:!1},M=function(e,r){var n=r.value,i=r.state===H,t=i?e.ok:e.fail,f=e.resolve,d=e.reject,a=e.domain,s,R,j;try{t?(i||(r.rejection===x&&$e(r),r.rejection=D),t===!0?s=n:(a&&a.enter(),s=t(n),a&&(a.exit(),j=!0)),s===e.promise?d(new L("Promise-chain cycle")):(R=J(s))?u(R,s,f,d):f(s)):d(n)}catch(F){a&&!j&&a.exit(),d(F)}},B=function(e,r){e.notified||(e.notified=!0,S(function(){for(var n=e.reactions,i;i=n.get();)M(i,e);e.notified=!1,r&&!e.rejection&&ge(e)}))},V=function(e,r,n){var i,t;Re?(i=P.createEvent("Event"),i.promise=r,i.reason=n,i.initEvent(e,!1,!0),o.dispatchEvent(i)):i={promise:r,reason:n},!Se&&(t=o["on"+e])?t(i):e===A&&Pe("Unhandled promise rejection",n)},ge=function(e){u($,o,function(){var r=e.facade,n=e.value,i=g(e),t;if(i&&(t=qe(function(){E?y.emit("unhandledRejection",n,r):V(A,r,n)}),e.rejection=E||g(e)?x:D,t.error))throw t.value})},g=function(e){return e.rejection!==D&&!e.parent},$e=function(e){u($,o,function(){var r=e.facade;E?y.emit("rejectionHandled",r):V(je,r,e.value)})},v=function(e,r,n){return function(i){e(r,i,n)}},l=function(e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=Oe,B(e,!0))},T=function(e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===r)throw new L("Promise can't be resolved itself");var i=J(r);i?S(function(){var t={done:!1};try{u(i,r,v(T,t,e),v(l,t,e))}catch(f){l(t,f,e)}}):(e.value=r,e.state=H,B(e,!1))}catch(t){l({done:!1},t,e)}}};k&&(c=function(r){Ne(this,C),he(r),u(p,this);var n=h(this);try{r(v(T,n),v(l,n))}catch(i){l(n,i)}},C=c.prototype,p=function(r){be(this,{type:m,done:!1,notified:!1,parent:!1,reactions:new Te,rejection:!1,state:O,value:void 0})},p.prototype=pe(C,"then",function(r,n){var i=h(this),t=q(Ie(this,c));return i.parent=!0,t.ok=N(r)?r:!0,t.fail=N(n)&&n,t.domain=E?y.domain:void 0,i.state===O?i.reactions.add(t):S(function(){M(t,i)}),t.promise}),_=function(){var e=new p,r=h(e);this.promise=e,this.resolve=v(T,r),this.reject=v(l,r)},U.f=q=function(e){return e===c||e===_e?new _(e):De(e)});de({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:c});Ee(c,m,!1,!0);me(m);
//# sourceMappingURL=index.cjs431.js.map
