https://gitcode.net/daolabs/voting/-/commit/94a19364a45303a75b20bde8eb21a1b59014ac30优化页面2022-07-07T11:31:51+08:00wowkakawanglumin79@163.comhttps://gitcode.net/daolabs/voting/-/commit/4a83cfd6ddf0ff8f8d7f52ff0f1bd4e2f38bd12bMerge branch 'master' of https://gitcode.net/daolabs/voting2022-07-07T11:32:18+08:00wowkakawanglumin79@163.comhttps://gitcode.net/daolabs/voting/-/commit/523cc62ac0318ca16e80b861f529a3a9cf27bbd4优化页面2022-07-07T18:30:08+08:00wowkakawanglumin79@163.com
!function(e){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).EventEmitter3=e()}(function(){returnfunctioni(s,f,c){functionu(t,e){if(!f[t]){if(!s[t]){varn="function"==typeofrequire&&require;if(!e&&n)returnn(t,!0);if(a)returna(t,!0);varr=newError("Cannot find module '"+t+"'");throwr.code="MODULE_NOT_FOUND",r}varo=f[t]={exports:{}};s[t][0].call(o.exports,function(e){returnu(s[t][1][e]||e)},o,o.exports,i,s,f,c)}returnf[t].exports}for(vara="function"==typeofrequire&&require,e=0;e<c.length;e++)u(c[e]);returnu}({1:[function(e,t,n){"use strict";varr=Object.prototype.hasOwnProperty,v="~";functiono(){}functionf(e,t,n){this.fn=e,this.context=t,this.once=n||!1}functioni(e,t,n,r,o){if("function"!=typeofn)thrownewTypeError("The listener must be a function");vari=newf(n,r||e,o),s=v?v+t:t;returne._events[s]?e._events[s].fn?e._events[s]=[e._events[s],i]:e._events[s].push(i):(e._events[s]=i,e._eventsCount++),e}functionu(e,t){0==--e._eventsCount?e._events=newo:deletee._events[t]}functions(){this._events=newo,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(newo).__proto__||(v=!1)),s.prototype.eventNames=function(){vare,t,n=[];if(0===this._eventsCount)returnn;for(tine=this._events)r.call(e,t)&&n.push(v?t.slice(1):t);returnObject.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){vart=v?v+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(varr=0,o=n.length,i=newArray(o);r<o;r++)i[r]=n[r].fn;returni},s.prototype.listenerCount=function(e){vart=v?v+e:e,n=this._events[t];returnn?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,r,o,i){vars=v?v+e:e;if(!this._events[s])return!1;varf,c=this._events[s],u=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void0,!0),u){case1:returnc.fn.call(c.context),!0;case2:returnc.fn.call(c.context,t),!0;case3:returnc.fn.call(c.context,t,n),!0;case4:returnc.fn.call(c.context,t,n,r),!0;case5:returnc.fn.call(c.context,t,n,r,o),!0;case6:returnc.fn.call(c.context,t,n,r,o,i),!0}for(p=1,f=newArray(u-1);p<u;p++)f[p-1]=arguments[p];c.fn.apply(c.context,f)}elsefor(vara,l=c.length,p=0;p<l;p++)switch(c[p].once&&this.removeListener(e,c[p].fn,void0,!0),u){case1:c[p].fn.call(c[p].context);break;case2:c[p].fn.call(c[p].context,t);break;case3:c[p].fn.call(c[p].context,t,n);break;case4:c[p].fn.call(c[p].context,t,n,r);break;default:if(!f)for(a=1,f=newArray(u-1);a<u;a++)f[a-1]=arguments[a];c[p].fn.apply(c[p].context,f)}return!0},s.prototype.on=function(e,t,n){returni(this,e,t,n,!1)},s.prototype.once=function(e,t,n){returni(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,n,r){varo=v?v+e:e;if(!this._events[o])returnthis;if(!t)returnu(this,o),this;vari=this._events[o];if(i.fn)i.fn!==t||r&&!i.once||n&&i.context!==n||u(this,o);else{for(vars=0,f=[],c=i.length;s<c;s++)(i[s].fn!==t||r&&!i[s].once||n&&i[s].context!==n)&&f.push(i[s]);f.length?this._events[o]=1===f.length?f[0]:f:u(this,o)}returnthis},s.prototype.removeAllListeners=function(e){vart;returne?(t=v?v+e:e,this._events[t]&&u(this,t)):(this._events=newo,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=v,s.EventEmitter=s,void0!==t&&(t.exports=s)},{}]},{},[1])(1)});