import{v as d}from"./preload-helper-DadE4qT2.chunk.mjs";var x={exports:{}},m;function C(){return m||(m=1,function(w){var g=Object.prototype.hasOwnProperty,f="~";function h(){}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(f=!1));function b(e,n,r){this.fn=e,this.context=n,this.once=r||!1}function _(e,n,r,a,u){if(typeof r!="function")throw new TypeError("The listener must be a function");var s=new b(r,a||e,u),c=f?f+n:n;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function y(e,n){--e._eventsCount===0?e._events=new h:delete e._events[n]}function i(){this._events=new h,this._eventsCount=0}i.prototype.eventNames=function(){var e=[],n,r;if(this._eventsCount===0)return e;for(r in n=this._events)g.call(n,r)&&e.push(f?r.slice(1):r);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(n)):e},i.prototype.listeners=function(e){var n=f?f+e:e,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,u=r.length,s=new Array(u);a<u;a++)s[a]=r[a].fn;return s},i.prototype.listenerCount=function(e){var n=f?f+e:e,r=this._events[n];return r?r.fn?1:r.length:0},i.prototype.emit=function(e,n,r,a,u,s){var c=f?f+e:e;if(!this._events[c])return!1;var t=this._events[c],v=arguments.length,p,o;if(t.fn){switch(t.once&&this.removeListener(e,t.fn,void 0,!0),v){case 1:return t.fn.call(t.context),!0;case 2:return t.fn.call(t.context,n),!0;case 3:return t.fn.call(t.context,n,r),!0;case 4:return t.fn.call(t.context,n,r,a),!0;case 5:return t.fn.call(t.context,n,r,a,u),!0;case 6:return t.fn.call(t.context,n,r,a,u,s),!0}for(o=1,p=new Array(v-1);o<v;o++)p[o-1]=arguments[o];t.fn.apply(t.context,p)}else{var O=t.length,l;for(o=0;o<O;o++)switch(t[o].once&&this.removeListener(e,t[o].fn,void 0,!0),v){case 1:t[o].fn.call(t[o].context);break;case 2:t[o].fn.call(t[o].context,n);break;case 3:t[o].fn.call(t[o].context,n,r);break;case 4:t[o].fn.call(t[o].context,n,r,a);break;default:if(!p)for(l=1,p=new Array(v-1);l<v;l++)p[l-1]=arguments[l];t[o].fn.apply(t[o].context,p)}}return!0},i.prototype.on=function(e,n,r){return _(this,e,n,r,!1)},i.prototype.once=function(e,n,r){return _(this,e,n,r,!0)},i.prototype.removeListener=function(e,n,r,a){var u=f?f+e:e;if(!this._events[u])return this;if(!n)return y(this,u),this;var s=this._events[u];if(s.fn)s.fn===n&&(!a||s.once)&&(!r||s.context===r)&&y(this,u);else{for(var c=0,t=[],v=s.length;c<v;c++)(s[c].fn!==n||a&&!s[c].once||r&&s[c].context!==r)&&t.push(s[c]);t.length?this._events[u]=t.length===1?t[0]:t:y(this,u)}return this},i.prototype.removeAllListeners=function(e){var n;return e?(n=f?f+e:e,this._events[n]&&y(this,n)):(this._events=new h,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=f,i.EventEmitter=i,w.exports=i}(x)),x.exports}var L=C();const k=d(L);export{k as E};
//# sourceMappingURL=index-DpMDZg53.chunk.mjs.map
