import{aasC}from"./index-D-Yr2Iya.js";varp={exports:{}},a=typeofReflect=="object"?Reflect:null,d=a&&typeofa.apply=="function"?a.apply:function(e,n,r){returnFunction.prototype.apply.call(e,n,r)},l;a&&typeofa.ownKeys=="function"?l=a.ownKeys:Object.getOwnPropertySymbols?l=function(e){returnObject.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:l=function(e){returnObject.getOwnPropertyNames(e)};functionj(t){console&&console.warn&&console.warn(t)}varL=Number.isNaN||function(e){returne!==e};functiono(){o.init.call(this)}p.exports=o;p.exports.once=A;o.EventEmitter=o;o.prototype._events=void0;o.prototype._eventsCount=0;o.prototype._maxListeners=void0;varm=10;functionv(t){if(typeoft!="function")thrownewTypeError('The "listener" argument must be of type Function. Received type '+typeoft)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){returnm},set:function(t){if(typeoft!="number"||t<0||L(t))thrownewRangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");m=t}});o.init=function(){(this._events===void0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void0};o.prototype.setMaxListeners=function(e){if(typeofe!="number"||e<0||L(e))thrownewRangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");returnthis._maxListeners=e,this};functiony(t){returnt._maxListeners===void0?o.defaultMaxListeners:t._maxListeners}o.prototype.getMaxListeners=function(){returny(this)};o.prototype.emit=function(e){for(varn=[],r=1;r<arguments.length;r++)n.push(arguments[r]);vari=e==="error",f=this._events;if(f!==void0)i=i&&f.error===void0;elseif(!i)return!1;if(i){vars;if(n.length>0&&(s=n[0]),sinstanceofError)throws;varu=newError("Unhandled error."+(s?" ("+s.message+")":""));throwu.context=s,u}varc=f[e];if(c===void0)return!1;if(typeofc=="function")d(c,this,n);elsefor(varh=c.length,O=E(c,h),r=0;r<h;++r)d(O[r],this,n);return!0};functiong(t,e,n,r){vari,f,s;if(v(n),f=t._events,f===void0?(f=t._events=Object.create(null),t._eventsCount=0):(f.newListener!==void0&&(t.emit("newListener",e,n.listener?n.listener:n),f=t._events),s=f[e]),s===void0)s=f[e]=n,++t._eventsCount;elseif(typeofs=="function"?s=f[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=y(t),i>0&&s.length>i&&!s.warned){s.warned=!0;varu=newError("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,j(u)}returnt}o.prototype.addListener=function(e,n){returng(this,e,n,!1)};o.prototype.on=o.prototype.addListener;o.prototype.prependListener=function(e,n){returng(this,e,n,!0)};functionR(){if(!this.fired)returnthis.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function_(t,e,n){varr={fired:!1,wrapFn:void0,target:t,type:e,listener:n},i=R.bind(r);returni.listener=n,r.wrapFn=i,i}o.prototype.once=function(e,n){returnv(n),this.on(e,_(this,e,n)),this};o.prototype.prependOnceListener=function(e,n){returnv(n),this.prependListener(e,_(this,e,n)),this};o.prototype.removeListener=function(e,n){varr,i,f,s,u;if(v(n),i=this._events,i===void0)returnthis;if(r=i[e],r===void0)returnthis;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(deletei[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));elseif(typeofr!="function"){for(f=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){u=r[s].listener,f=s;break}if(f<0)returnthis;f===0?r.shift():N(r,f),r.length===1&&(i[e]=r[0]),i.removeListener!==void0&&this.emit("removeListener",e,u||n)}returnthis};o.prototype.off=o.prototype.removeListener;o.prototype.removeAllListeners=function(e){varn,r,i;if(r=this._events,r===void0)returnthis;if(r.removeListener===void0)ret