import{v as O}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