varr=function(t,e){returnr=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varnine)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};functiono(t,e){if("function"!==typeofe&&null!==e)thrownewTypeError("Class extends value "+String(e)+" is not a constructor or null");functionn(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,newn)}Object.create;Object.create;vara=n("22d1"),s=n("6d8b");functionl(t,e){returnnull==t&&(t=0),null==e&&(e=0),[t,e]}functionu(t,e){returnt[0]=e[0],t[1]=e[1],t}functionc(t){return[t[0],t[1]]}functionh(t,e,n){returnt[0]=e,t[1]=n,t}functionp(t,e,n){returnt[0]=e[0]+n[0],t[1]=e[1]+n[1],t}functiond(t,e,n,i){returnt[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}functionf(t,e,n){returnt[0]=e[0]-n[0],t[1]=e[1]-n[1],t}functiong(t){returnMath.sqrt(y(t))}functiony(t){returnt[0]*t[0]+t[1]*t[1]}functionv(t,e,n){returnt[0]=e[0]*n,t[1]=e[1]*n,t}functionm(t,e){varn=g(e);return0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}functionx(t,e){returnMath.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var_=x;functionb(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}varw=b;functionS(t,e,n,i){returnt[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}functionM(t,e,n){vari=e[0],r=e[1];returnt[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}functionI(t,e,n){returnt[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}functionO(t,e,n){returnt[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}varC=function(){functiont(t,e){this.target=t,this.topTarget=e&&e.topTarget}returnt}(),T=function(){functiont(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}returnt.prototype._dragStart=function(t){vare=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(newC(e,t),"dragstart",t.event))},t.prototype._drag=function(t){vare=this._draggingTarget;if(e){varn=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(newC(e,t),"drag",t.event);vara=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(newC(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(newC(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){vare=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(newC(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(newC(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),k=T,A=function(){functiont(t){t&&(this._$eventProcessor=t)}returnt.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});varr=this._$handlers;if("function"===typeofe&&(i=n,n=e,e=null),!n||!t)returnthis;varo=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(vara=0;a<r[t].length;a++)if(r[t][a].h===n)returnthis;vars={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];returnu&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){vare=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){varn=this._$handlers;if(!n)returnthis;if(!t)returnthis._$handlers={},this;if(e){if(n[t]){for(vari=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&deleten[t]}elsedeleten[t];returnthis},t.prototype.trigger=function(t){for(vare=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)returnthis;vari=this._$handlers[t],r=this._$eventProcessor;if(i)for(varo=e.length,a=i.length,s=0;s<a;s++){varl=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case0:l.h.call(l.ctx);break;case1:l.h.call(l.ctx,e[0]);break;case2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);bre