diff --git a/dist/netjsongraph.min.js b/dist/netjsongraph.min.js index 9d8698e6..e2a26634 100644 --- a/dist/netjsongraph.min.js +++ b/dist/netjsongraph.min.js @@ -18,5 +18,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},5823:(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var i=n(7411),r=n(5622),o=n(479),a=n(3510),s=n(423),l=n(3051),u=n(4990),h=n(1092),c=n(4414),d="__zr_normal__",p=i.dN.concat(["ignore"]),f=(0,l.reduce)(i.dN,(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},m=new o.Z(0,0,0,0),v=function(){function t(t){this.id=(0,l.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,l=!1;r.parent=i?this:null;var u=!1;if(r.copyTransform(e),null!=n.position){var h=m;n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,h):(0,s.wI)(g,n,h),r.x=g.x,r.y=g.y,o=g.align,a=g.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var p=void 0,f=void 0;"center"===d?(p=.5*h.width,f=.5*h.height):(p=(0,s.GM)(d[0],h.width),f=(0,s.GM)(d[1],h.height)),u=!0,r.originX=-r.x+p+(i?0:h.x),r.originY=-r.y+f+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var v=n.offset;v&&(r.x+=v[0],r.y+=v[1],u||(r.originX=-v[0],r.originY=-v[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,b=void 0,w=void 0;y&&this.canBeInsideText()?(x=n.insideFill,b=n.insideStroke,null!=x&&"auto"!==x||(x=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(x),w=!0)):(x=n.outsideFill,b=n.outsideStroke,null!=x&&"auto"!==x||(x=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(x),w=!0)),(x=x||"#000")===_.fill&&b===_.stroke&&w===_.autoStroke&&o===_.align&&a===_.verticalAlign||(l=!0,_.fill=x,_.stroke=b,_.autoStroke=w,_.align=o,_.verticalAlign=a,e.setDefaultTextStyle(_)),e.__dirty|=c.YV,l&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u.GD:u.vU},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,h.parse)(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,(0,h.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,l.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,l.isObject)(t))for(var n=t,i=(0,l.keys)(n),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===d;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!((0,l.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var u=!!(s&&s.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,n,u),p&&p.useState(t,e,n,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c.YV),s}(0,l.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,f);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,e,d),m&&m.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c.YV)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=(0,l.indexOf)(i,t),o=(0,l.indexOf)(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||o.force&&!s.length){var C,A=void 0,I=void 0,D=void 0;if(u){I={},f&&(A={});for(T=0;T{"use strict";n.d(e,{V:()=>v,Z:()=>S});var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}};const r=i;var o=n(3051),a=n(5188);const s=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||o.noop,this.ondestroy=t.ondestroy||o.noop,this.onrestart=t.onrestart||o.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,o.isFunction)(t)?t:r[t]||(0,a.H)(t)},t}();var l=n(1092),u=n(4839),h=Array.prototype.slice;function c(t,e,n){return(e-t)*n+t}function d(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,s=i.length,h=!1,c=6,d=e;if((0,o.isArrayLike)(e)){var p=function(t){return(0,o.isArrayLike)(t&&t[0])?2:1}(e);c=p,(1===p&&!(0,o.isNumber)(e[0])||2===p&&!(0,o.isNumber)(e[0][0]))&&(h=!0)}else if((0,o.isNumber)(e)&&!(0,o.eqNaN)(e))c=0;else if((0,o.isString)(e))if(isNaN(+e)){var f=l.parse(e);f&&(d=f,c=3)}else c=0;else if((0,o.isGradientObject)(e)){var g=(0,o.extend)({},d);g.colorStops=(0,o.map)(e.colorStops,(function(t){return{offset:t.offset,color:l.parse(t.color)}})),(0,u.I1)(e)?c=4:(0,u.gO)(e)&&(c=5),d=g}0===s?this.valType=c:c===this.valType&&6!==c||(h=!0),this.discrete=this.discrete||h;var m={time:t,value:d,rawValue:e,percent:0};return n&&(m.easing=n,m.easingFunc=(0,o.isFunction)(n)?n:r[n]||(0,a.H)(n)),i.push(m),m},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=x(i),l=_(i),u=0;u=0&&!(u[n].percent<=e);n--);n=m(n,h-2)}else{for(n=g;ne);n++);n=m(n-1,h-2)}r=u[n+1],i=u[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var v=r.percent-i.percent,w=0===v?1:m((e-i.percent)/v,1);r.easingFunc&&(w=r.easingFunc(w));var S=a?this._additiveValue:f?b:t[p];if(!x(l)&&!f||S||(S=this._additiveValue=[]),this.discrete)t[p]=w<1?i.rawValue:r.rawValue;else if(x(l))1===l?d(S,i[s],r[s],w):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,v(l),i),this._trackKeys.push(a)}s.addKeyframe(t,v(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var s=a.pop();r.addKeyframe(s.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}()},5188:(t,e,n)=>{"use strict";n.d(e,{H:()=>a});var i=n(8554),r=n(3051),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+(0,r.trim)(n[0]),s=+(0,r.trim)(n[1]),l=+(0,r.trim)(n[2]),u=+(0,r.trim)(n[3]);if(isNaN(a+s+l+u))return;var h=[];return function(t){return t<=0?0:t>=1?1:(0,i.kD)(0,a,l,1,t,h)&&(0,i.af)(0,s,u,1,h[0])}}}},2795:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=n(6387).default.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},810:(t,e,n)=>{"use strict";n.d(e,{a:()=>r});var i=n(3051);function r(t){var e,n,r=t.style,o=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,i.isNumber)(e)?[e]:(0,i.isArray)(e)?e:null:null),a=r.lineDashOffset;if(o){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=(0,i.map)(o,(function(t){return t/s})),a/=s)}return[o,a]}},7772:(t,e,n)=>{"use strict";n.d(e,{Dm:()=>D,RV:()=>I,RZ:()=>x});var i=n(7719),r=n(4014),o=n(8007),a=n(5787),s=n(327),l=n(4535),u=n(1505),h=n(3051),c=n(810),d=n(4414),p=n(3132),f=new r.Z(!0);function g(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function m(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function x(t,e,n){var i=(0,o.Gq)(e.image,e.__image,n);if((0,o.v5)(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*h.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(t,e,n,r,o){var a=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){C(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i.tj.opacity:s}(r||e.blend!==n.blend)&&(a||(C(t,o),a=!0),t.globalCompositeOperation=e.blend||i.tj.blend);for(var l=0;l{"use strict";function i(t){return isFinite(t)}function r(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,o=n.height,a=Math.min(r,o),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,u=null==e.r?.5:e.r;return e.global||(s=s*r+n.x,l=l*o+n.y,u*=a),s=i(s)?s:.5,l=i(l)?l:.5,u=u>=0&&i(u)?u:.5,t.createRadialGradient(s,l,0,s,l,u)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),r=i(r)?r:0,o=i(o)?o:1,a=i(a)?a:0,s=i(s)?s:0,t.createLinearGradient(r,a,o,s)}(t,e,n),o=e.colorStops,a=0;ar,ap:()=>s,cF:()=>o})},4990:(t,e,n)=>{"use strict";n.d(e,{Ak:()=>o,GD:()=>s,KL:()=>r,iv:()=>l,vU:()=>a});var i=1;n(6387).default.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var r=i,o=.4,a="#333",s="#ccc",l="#eee"},3640:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oi})},765:(t,e,n)=>{"use strict";n.d(e,{X:()=>o});var i=n(7637);function r(t,e){return Math.abs(t-e)<1e-8}function o(t,e,n){var o=0,a=t[0];if(!a)return!1;for(var s=1;s{"use strict";n.d(e,{m:()=>r});var i=n(8554);function r(t,e,n,r,o,a,s,l,u){if(0===s)return!1;var h=s;return!(u>e+h&&u>r+h&&u>a+h||ut+h&&l>n+h&&l>o+h||l{"use strict";n.d(e,{Dp:()=>d,GM:()=>p,M3:()=>h,dz:()=>s,lP:()=>u,mU:()=>c,wI:()=>f});var i=n(479),r=n(2528),o=n(3132),a={};function s(t,e){e=e||o.Uo;var n=a[e];n||(n=a[e]=new r.ZP(500));var i=n.get(t);return null==i&&(i=o.qW.measureText(t,e).width,n.put(t,i)),i}function l(t,e,n,r){var o=s(t,e),a=d(e),l=h(0,o,n),u=c(0,a,r);return new i.Z(l,u,o,a)}function u(t,e,n,r){var o=((t||"")+"").split("\n");if(1===o.length)return l(o[0],e,n,r);for(var a=new i.Z(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function f(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=p(i[0],n.width),u+=p(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}},3266:(t,e,n)=>{"use strict";n.d(e,{m:()=>r});var i=2*Math.PI;function r(t){return(t%=i)<0&&(t+=i),t}},7637:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}n.d(e,{Z:()=>i})},479:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var i=n(2892),r=n(1610),o=Math.min,a=Math.max,s=new r.Z,l=new r.Z,u=new r.Z,h=new r.Z,c=new r.Z,d=new r.Z;const p=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,o=i.create();return i.translate(o,o,[-e.x,-e.y]),i.scale(o,o,[n,r]),i.translate(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,o=i.x,a=i.x+i.width,s=i.y,l=i.y+i.height,u=e.x,h=e.x+e.width,p=e.y,f=e.y+e.height,g=!(av&&(v=w,y<_?r.Z.set(d,-y,0):r.Z.set(d,_,0)):wv&&(v=S,x=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],c=i[3],d=i[4],p=i[5];return e.x=n.x*r+d,e.y=n.y*c+p,e.width=n.width*r,e.height=n.height*c,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=u.x=n.x,s.y=h.y=n.y,l.x=h.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(i),h.transform(i),l.transform(i),u.transform(i),e.x=o(s.x,l.x,u.x,h.x),e.y=o(s.y,l.y,u.y,h.y);var f=a(s.x,l.x,u.x,h.x),g=a(s.y,l.y,u.y,h.y);e.width=f-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}()},3510:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a{"use strict";n.d(e,{ZP:()=>o});var i=function(t){this.value=t},r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();const o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},1587:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(1610),r=[0,0],o=[0,0],a=new i.Z,s=new i.Z;const l=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i.Z;for(n=0;n<2;n++)this._axes[n]=new i.Z;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var u=0;u<4;u++)n[u].transform(e);i.Z.sub(r[0],n[1],n[0]),i.Z.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(u=0;u<2;u++)this._origin[u]=r[u].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,a,s,r,-1)&&(n=!1,r)||r||i.Z.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,l){for(var u=!0,h=0;h<2;h++){var c=this._axes[h];if(this._getProjMinMaxOnAxis(h,t._corners,r),this._getProjMinMaxOnAxis(h,e._corners,o),r[1]o[1]){if(u=!1,s)return u;var d=Math.abs(o[0]-r[1]),p=Math.abs(r[0]-o[1]);Math.min(d,p)>a.len()&&(d{"use strict";n.d(e,{L:()=>M,Z:()=>C});var i=n(5280),r=n(479),o=n(4990),a=n(3726),s=n(8554),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],h=[],c=[],d=[],p=[],f=[],g=Math.min,m=Math.max,v=Math.cos,y=Math.sin,_=Math.abs,x=Math.PI,b=2*x,w="undefined"!=typeof Float32Array,S=[];function T(t){return Math.round(t/x*1e8)/1e8%2*x}function M(t,e){var n=T(t[0]);n<0&&(n+=b);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=b?r=n+b:e&&n-r>=b?r=n-b:!e&&n>r?r=n+(b-T(n-r)):e&&n0&&(this._ux=_(n/o.KL/t)||0,this._uy=_(n/o.KL/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=_(t-this._xi),i=_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(l.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(l.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(l.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),S[0]=i,S[1]=r,M(S,o),i=S[0];var a=(r=S[1])-i;return this.addData(l.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=v(r)*n+t,this._yi=y(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){c[0]=c[1]=p[0]=p[1]=Number.MAX_VALUE,d[0]=d[1]=f[0]=f[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,u=0;for(t=0;tn||_(T)>i||p===e-1)&&(w=Math.sqrt(z*z+T*T),r=S,o=A);break;case l.C:var M=t[p++],C=t[p++],A=(S=t[p++],t[p++]),I=t[p++],D=t[p++];w=(0,s.Ci)(r,o,M,C,S,A,I,D,10),r=I,o=D;break;case l.Q:M=t[p++],C=t[p++],S=t[p++],A=t[p++];w=(0,s.wQ)(r,o,M,C,S,A,10),r=S,o=A;break;case l.A:var L=t[p++],P=t[p++],O=t[p++],E=t[p++],N=t[p++],k=t[p++],R=k+N;p+=1;t[p++];x&&(a=v(N)*O+L,u=y(N)*E+P),w=m(O,E)*g(b,Math.abs(k)),r=v(R)*O+L,o=y(R)*E+P;break;case l.R:a=r=t[p++],u=o=t[p++],w=2*t[p++]+2*t[p++];break;case l.Z:var z=a-r;T=u-o;w=Math.sqrt(z*z+T*T),r=a,o=u}w>=0&&(h[d++]=w,c+=w)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,c,d,p,f,x,b=this.data,w=this._ux,S=this._uy,T=this._len,M=e<1,C=0,A=0,I=0;if(!M||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=e*this._pathLen))t:for(var D=0;D0&&(t.lineTo(f,x),I=0),L){case l.M:n=r=b[D++],i=o=b[D++],t.moveTo(r,o);break;case l.L:a=b[D++],c=b[D++];var O=_(a-r),E=_(c-o);if(O>w||E>S){if(M){if(C+(it=d[A++])>p){var N=(p-C)/it;t.lineTo(r*(1-N)+a*N,o*(1-N)+c*N);break t}C+=it}t.lineTo(a,c),r=a,o=c,I=0}else{var k=O*O+E*E;k>I&&(f=a,x=c,I=k)}break;case l.C:var R=b[D++],z=b[D++],B=b[D++],Z=b[D++],F=b[D++],V=b[D++];if(M){if(C+(it=d[A++])>p){N=(p-C)/it;(0,s.Vz)(r,R,B,F,N,u),(0,s.Vz)(o,z,Z,V,N,h),t.bezierCurveTo(u[1],h[1],u[2],h[2],u[3],h[3]);break t}C+=it}t.bezierCurveTo(R,z,B,Z,F,V),r=F,o=V;break;case l.Q:R=b[D++],z=b[D++],B=b[D++],Z=b[D++];if(M){if(C+(it=d[A++])>p){N=(p-C)/it;(0,s.Lx)(r,R,B,N,u),(0,s.Lx)(o,z,Z,N,h),t.quadraticCurveTo(u[1],h[1],u[2],h[2]);break t}C+=it}t.quadraticCurveTo(R,z,B,Z),r=B,o=Z;break;case l.A:var G=b[D++],H=b[D++],U=b[D++],W=b[D++],j=b[D++],X=b[D++],Y=b[D++],q=!b[D++],K=U>W?U:W,J=_(U-W)>.001,Q=j+X,$=!1;if(M)C+(it=d[A++])>p&&(Q=j+X*(p-C)/it,$=!0),C+=it;if(J&&t.ellipse?t.ellipse(G,H,U,W,Y,j,Q,q):t.arc(G,H,K,j,Q,q),$)break t;P&&(n=v(j)*U+G,i=y(j)*W+H),r=v(Q)*U+G,o=y(Q)*W+H;break;case l.R:n=r=b[D],i=o=b[D+1],a=b[D++],c=b[D++];var tt=b[D++],et=b[D++];if(M){if(C+(it=d[A++])>p){var nt=p-C;t.moveTo(a,c),t.lineTo(a+g(nt,tt),c),(nt-=tt)>0&&t.lineTo(a+tt,c+g(nt,et)),(nt-=et)>0&&t.lineTo(a+m(tt-nt,0),c+et),(nt-=tt)>0&&t.lineTo(a,c+m(et-nt,0));break t}C+=it}t.rect(a,c,tt,et);break;case l.Z:if(M){var it;if(C+(it=d[A++])>p){N=(p-C)/it;t.lineTo(r*(1-N)+n*N,o*(1-N)+i*N);break t}C+=it}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=l,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}()},1610:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}()},7411:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>g,dN:()=>p,kY:()=>f});var i=n(2892),r=n(5280),o=i.identity,a=5e-5;function s(t){return t>a||t<-5e-5}var l=[],u=[],h=i.create(),c=Math.abs,d=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i.create(),e?this.getLocalTransform(n):o(n),t&&(e?i.mul(n,t,n):i.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var n=l[0]<0?-1:1,r=l[1]<0?-1:1,o=((l[0]-n)*e+n)/l[0]||0,a=((l[1]-r)*e+r)/l[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.mul(u,t.invTransform,e),e=u);var n=this.originX,r=this.originY;(n||r)&&(h[4]=n,h[5]=r,i.mul(u,e,h),u[4]-=n,u[5]-=r,e=u),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){f(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,h=t.x,c=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var f=n+s,g=r+l;e[4]=-f*o-d*g*a,e[5]=-g*a-p*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=p*o,e[2]=d*a,u&&i.rotate(e,e,u),e[4]+=n+h,e[5]+=r+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),p=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function f(t,e){for(var n=0;n{"use strict";n.d(e,{H9:()=>v,mJ:()=>y,qL:()=>_,u4:()=>f,zk:()=>p});var i=n(5280),r=n(8554),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,h=i.create(),c=i.create(),d=i.create();function p(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],s=i[0],l=i[1],u=i[1],h=1;h1e-4)return f[0]=t-n,f[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(h[0]=l(o)*n+t,h[1]=s(o)*r+e,c[0]=l(a)*n+t,c[1]=s(a)*r+e,m(f,h,c),v(g,h,c),(o%=u)<0&&(o+=u),(a%=u)<0&&(a+=u),o>a&&!p?a+=u:oo&&(d[0]=l(x)*n+t,d[1]=s(x)*r+e,m(f,d,f),v(g,d,g))}},8554:(t,e,n)=>{"use strict";n.d(e,{AZ:()=>S,Ci:()=>b,Jz:()=>T,Lx:()=>C,QC:()=>M,Vz:()=>_,Wr:()=>A,X_:()=>m,Zm:()=>w,af:()=>g,kD:()=>v,pP:()=>y,t1:()=>x,wQ:()=>I});var i=n(5280),r=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),u=1/3,h=(0,i.create)(),c=(0,i.create)(),d=(0,i.create)();function p(t){return t>-1e-8&&ta||t<-1e-8}function g(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function m(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function v(t,e,n,i,a,s){var h=i+3*(e-n)-t,c=3*(n-2*e+t),d=3*(e-t),f=t-a,g=c*c-3*h*d,m=c*d-9*h*f,v=d*d-3*c*f,y=0;if(p(g)&&p(m)){if(p(c))s[0]=0;else(D=-d/c)>=0&&D<=1&&(s[y++]=D)}else{var _=m*m-4*g*v;if(p(_)){var x=m/g,b=-x/2;(D=-c/h+x)>=0&&D<=1&&(s[y++]=D),b>=0&&b<=1&&(s[y++]=b)}else if(_>0){var w=o(_),S=g*c+1.5*h*(-m+w),T=g*c+1.5*h*(-m-w);(D=(-c-((S=S<0?-r(-S,u):r(S,u))+(T=T<0?-r(-T,u):r(T,u))))/(3*h))>=0&&D<=1&&(s[y++]=D)}else{var M=(2*g*c-3*h*m)/(2*o(g*g*g)),C=Math.acos(M)/3,A=o(g),I=Math.cos(C),D=(-c-2*A*I)/(3*h),L=(b=(-c+A*(I+l*Math.sin(C)))/(3*h),(-c+A*(I-l*Math.sin(C)))/(3*h));D>=0&&D<=1&&(s[y++]=D),b>=0&&b<=1&&(s[y++]=b),L>=0&&L<=1&&(s[y++]=L)}}return y}function y(t,e,n,i,r){var a=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(p(s)){if(f(a))(c=-l/a)>=0&&c<=1&&(r[u++]=c)}else{var h=a*a-4*s*l;if(p(h))r[0]=-a/(2*s);else if(h>0){var c,d=o(h),g=(-a-d)/(2*s);(c=(-a+d)/(2*s))>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function _(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function x(t,e,n,r,a,l,u,p,f,m,v){var y,_,x,b,w,S=.005,T=1/0;h[0]=f,h[1]=m;for(var M=0;M<1;M+=.05)c[0]=g(t,n,a,u,M),c[1]=g(e,r,l,p,M),(b=(0,i.distSquare)(h,c))=0&&b=0&&c<=1&&(r[u++]=c)}else{var h=s*s-4*a*l;if(p(h))(c=-s/(2*a))>=0&&c<=1&&(r[u++]=c);else if(h>0){var c,d=o(h),g=(-s-d)/(2*a);(c=(-s+d)/(2*a))>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function M(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function C(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function A(t,e,n,r,a,l,u,p,f){var g,m=.005,v=1/0;h[0]=u,h[1]=p;for(var y=0;y<1;y+=.05){c[0]=w(t,n,a,y),c[1]=w(e,r,l,y),(S=(0,i.distSquare)(h,c))=0&&S{"use strict";n.d(e,{UK:()=>h,A4:()=>u,YB:()=>l});var i=n(6387),r=Math.log(2);function o(t,e,n,i,a,s){var l=i+"-"+a,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var h=Math.round(Math.log((1<>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,s),u=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,s=[],l=[],u=!0,h=0;h<4;h++){var c=t[h].getBoundingClientRect(),d=2*h,p=c.left,f=c.top;s.push(p,f),u=u&&o&&p===o[d]&&f===o[d+1],l.push(t[h].offsetLeft,t[h].offsetTop)}return u&&r?r:(e.srcCoords=s,e[i]=n?a(l,s):a(s,l))}(l,s,o);if(u)return u(t,n,r),!0}return!1}function h(t){return"CANVAS"===t.nodeName.toUpperCase()}},6387:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r);const o=r},1158:(t,e,n)=>{"use strict";n.d(e,{OD:()=>c,Oo:()=>d,eV:()=>l,iP:()=>h,sT:()=>f,x1:()=>g,xg:()=>p});var i=n(6387),r=n(4058),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=i.default.browser.firefox&&+i.default.browser.version.split(".")[0]<39;function l(t,e,n,i){return n=n||{},i?u(t,e,n):s&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):u(t,e,n),n}function u(t,e,n){if(i.default.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,r.UK)(t)){var l=t.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if((0,r.A4)(a,t,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function h(t){return t||window.event}function c(t,e,n){if(null!=(e=h(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&l(t,r,e,n)}else{l(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,i){t.addEventListener(e,n,i)}function p(t,e,n,i){t.removeEventListener(e,n,i)}var f=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function g(t){return 2===t.which||3===t.which}},2892:(t,e,n)=>{"use strict";function i(){return[1,0,0,1,0,0]}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function u(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function h(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function c(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,{clone:()=>c,copy:()=>o,create:()=>i,identity:()=>r,invert:()=>h,mul:()=>a,rotate:()=>l,scale:()=>u,translate:()=>s})},3132:(t,e,n)=>{"use strict";n.d(e,{Uo:()=>o,g2:()=>h,n5:()=>i,qW:()=>u,rk:()=>r});var i=12,r="sans-serif",o=i+"px "+r;var a,s,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)c=h*t.length;else for(var d=0;d{"use strict";n.d(e,{Z:()=>l});function i(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function r(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function o(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function a(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function s(t,e){var n,i,r,s=7,l=0;n=t.length;var u=[];function h(n){var h=i[n],c=r[n],d=i[n+1],p=r[n+1];r[n]=c+p,n===l-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),l--;var f=a(t[d],t,h,c,0,e);h+=f,0!==(c-=f)&&0!==(p=o(t[h+c-1],t,d,p,p-1,e))&&(c<=p?function(n,i,r,l){var h=0;for(h=0;h=7||g>=7);if(m)break;v<0&&(v=0),v+=2}if((s=v)<1&&(s=1),1===i){for(h=0;h=0;h--)t[g+h]=t[f+h];return void(t[p]=u[d])}var m=s;for(;;){var v=0,y=0,_=!1;do{if(e(u[d],t[c])<0){if(t[p--]=t[c--],v++,y=0,0==--i){_=!0;break}}else if(t[p--]=u[d--],y++,v=0,1==--l){_=!0;break}}while((v|y)=0;h--)t[g+h]=t[f+h];if(0===i){_=!0;break}}if(t[p--]=u[d--],1==--l){_=!0;break}if(0!==(y=l-o(t[c],u,0,l,l-1,e))){for(l-=y,g=(p-=y)+1,f=(d-=y)+1,h=0;h=7||y>=7);if(_)break;m<0&&(m=0),m+=2}(s=m)<1&&(s=1);if(1===l){for(g=(p-=i)+1,f=(c-=i)+1,h=i-1;h>=0;h--)t[g+h]=t[f+h];t[p]=u[d]}else{if(0===l)throw new Error;for(f=p-(l-1),h=0;h1;){var t=l-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;h(t)}},forceMergeRuns:function(){for(;l>1;){var t=l-2;t>0&&r[t-1]=32;)e|=1&t,t>>=1;return t+e}(a);do{if((l=i(t,n,o,e))h&&(c=h),r(t,n,n+c,n+l,e),l=c}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(0!==a);u.forceMergeRuns()}}}},3051:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HashMap:()=>ot,RADIAN_TO_DEGREE:()=>dt,assert:()=>tt,bind:()=>N,clone:()=>y,concatArray:()=>st,createCanvas:()=>S,createHashMap:()=>at,createObject:()=>lt,curry:()=>k,defaults:()=>w,disableUserSelect:()=>ut,each:()=>I,eqNaN:()=>Y,extend:()=>b,filter:()=>P,find:()=>O,guid:()=>m,hasOwn:()=>ht,indexOf:()=>T,inherits:()=>M,isArray:()=>R,isArrayLike:()=>A,isBuiltInObject:()=>G,isDom:()=>U,isFunction:()=>z,isGradientObject:()=>W,isImagePatternObject:()=>j,isNumber:()=>F,isObject:()=>V,isPrimitive:()=>rt,isRegExp:()=>X,isString:()=>B,isStringSafe:()=>Z,isTypedArray:()=>H,keys:()=>E,logError:()=>v,map:()=>D,merge:()=>_,mergeAll:()=>x,mixin:()=>C,noop:()=>ct,normalizeCssArray:()=>$,reduce:()=>L,retrieve:()=>q,retrieve2:()=>K,retrieve3:()=>J,setAsPrimitive:()=>it,slice:()=>Q,trim:()=>et});var i=n(3132),r=L(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=L(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,h=s.slice,c=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311;function m(){return g++}function v(){for(var t=[],e=0;e{"use strict";function i(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t){return Math.sqrt(d(t))}n.r(e),n.d(e,{add:()=>s,applyTransform:()=>M,clone:()=>o,copy:()=>r,create:()=>i,dist:()=>x,distSquare:()=>w,distance:()=>_,distanceSquare:()=>b,div:()=>g,dot:()=>m,len:()=>h,lenSquare:()=>d,length:()=>c,lengthSquare:()=>p,lerp:()=>T,max:()=>A,min:()=>C,mul:()=>f,negate:()=>S,normalize:()=>y,scale:()=>v,scaleAndAdd:()=>l,set:()=>a,sub:()=>u});var c=h;function d(t){return t[0]*t[0]+t[1]*t[1]}var p=d;function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function m(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=h(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function _(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=_;function b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=b;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function T(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function M(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function C(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function A(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},2776:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(655),r=n(327);const o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,i.ZT)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n{"use strict";n.d(e,{ZP:()=>m,ik:()=>h,tj:()=>u});var i=n(655),r=n(5823),o=n(479),a=n(3051),s=n(4414),l="__zr_style_"+Math.round(10*Math.random()),u={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},h={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};u[l]=!0;var c=["z","z2","invisible"],d=["invisible"],p=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.ZT)(e,t),e.prototype._init=function(e){for(var n=(0,a.keys)(e),i=0;i{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},8154:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(3051),o=n(5823),a=n(479),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,i.ZT)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=r.indexOf(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n{"use strict";n.d(e,{ZP:()=>h});var i=n(655),r=n(7719),o=n(479),a=n(3051),s=(0,a.defaults)({x:0,y:0},r.tj),l={style:(0,a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r.ik.style)};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.createStyle=function(t){return(0,a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.Z(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r.ZP);u.prototype.type="image";const h=u},1754:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(7719),o=n(479),a=[];const s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,i.ZT)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n{"use strict";n.d(e,{Z:()=>r});var i=n(655);const r=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return(0,i.ZT)(e,t),e}(n(1797).Z)},327:(t,e,n)=>{"use strict";n.d(e,{$t:()=>A,ZP:()=>L});var i=n(655),r=n(7719),o=n(4014),a=n(3640),s=n(8554);function l(t,e,n,i,r,o,a,l,u,h,c){if(0===u)return!1;var d=u;return!(c>e+d&&c>i+d&&c>o+d&&c>l+d||ct+d&&h>n+d&&h>r+d&&h>a+d||hn||d+ur&&(r+=c);var f=Math.atan2(l,s);return f<0&&(f+=c),f>=i&&f<=r||f+c>=i&&f+c<=r}var p=n(7637),f=o.Z.CMD,g=2*Math.PI;var m=[-1,-1,-1],v=[-1,-1];function y(t,e,n,i,r,o,a,l,u,h){if(h>e&&h>i&&h>o&&h>l||h1&&(c=void 0,c=v[0],v[0]=v[1],v[1]=c),g=s.af(e,i,o,l,v[0]),f>1&&(y=s.af(e,i,o,l,v[1]))),2===f?xe&&l>i&&l>o||l=0&&h<=1){for(var c=0,d=s.Zm(e,i,o,h),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);m[0]=-l,m[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=g-1e-4){i=0,r=g;var h=o?1:-1;return a>=m[0]+t&&a<=m[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=g,r+=g);for(var d=0,p=0;p<2;p++){var f=m[p];if(f+t>a){var v=Math.atan2(s,f);h=o?1:-1;v<0&&(v=g+v),(v>=i&&v<=r||v+g>=i&&v+g<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),d+=h)}}return d}function b(t,e,n,i,r){for(var o,s,h,c,g=t.data,m=t.len(),v=0,b=0,w=0,S=0,T=0,M=0;M1&&(n||(v+=(0,p.Z)(b,w,S,T,i,r))),A&&(S=b=g[M],T=w=g[M+1]),C){case f.M:b=S=g[M++],w=T=g[M++];break;case f.L:if(n){if(a.m(b,w,g[M],g[M+1],e,i,r))return!0}else v+=(0,p.Z)(b,w,g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.C:if(n){if(l(b,w,g[M++],g[M++],g[M++],g[M++],g[M],g[M+1],e,i,r))return!0}else v+=y(b,w,g[M++],g[M++],g[M++],g[M++],g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.Q:if(n){if(u.m(b,w,g[M++],g[M++],g[M],g[M+1],e,i,r))return!0}else v+=_(b,w,g[M++],g[M++],g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.A:var I=g[M++],D=g[M++],L=g[M++],P=g[M++],O=g[M++],E=g[M++];M+=1;var N=!!(1-g[M++]);o=Math.cos(O)*L+I,s=Math.sin(O)*P+D,A?(S=o,T=s):v+=(0,p.Z)(b,w,o,s,i,r);var k=(i-I)*P/L+I;if(n){if(d(I,D,P,O,O+E,N,e,k,r))return!0}else v+=x(I,D,P,O,O+E,N,k,r);b=Math.cos(O+E)*L+I,w=Math.sin(O+E)*P+D;break;case f.R:if(S=b=g[M++],T=w=g[M++],o=S+g[M++],s=T+g[M++],n){if(a.m(S,T,o,T,e,i,r)||a.m(o,T,o,s,e,i,r)||a.m(o,s,S,s,e,i,r)||a.m(S,s,S,T,e,i,r))return!0}else v+=(0,p.Z)(o,T,o,s,i,r),v+=(0,p.Z)(S,s,S,T,i,r);break;case f.Z:if(n){if(a.m(b,w,S,T,e,i,r))return!0}else v+=(0,p.Z)(b,w,S,T,i,r);b=S,w=T}}return n||(h=w,c=T,Math.abs(h-c)<1e-4)||(v+=(0,p.Z)(b,w,S,T,i,r)||0),0!==v}var w=n(3051),S=n(1092),T=n(4990),M=n(4414),C=n(7411),A=(0,w.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r.tj),I={style:(0,w.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r.ik.style)},D=C.dN.concat(["invisible","culling","z","z2","zlevel","parent"]);const L=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.ZT)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?T.vU:e>.2?T.iv:T.GD}if(t)return T.GD}return T.vU},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,w.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===(0,S.lum)(t,0)0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&M.RH)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return b(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return b(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=M.RH,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:(0,w.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&M.RH)},e.prototype.createStyle=function(t){return(0,w.createObject)(A,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,w.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=(0,w.extend)({},i.shape),(0,w.extend)(s,n.shape)):(s=(0,w.extend)({},r?this.shape:i.shape),(0,w.extend)(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=(0,w.extend)({},this.shape);for(var u={},h=(0,w.keys)(s),c=0;c{"use strict";n.d(e,{Z:()=>r});var i=n(655);const r=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return(0,i.ZT)(e,t),e}(n(1797).Z)},1505:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(655),r=n(7719),o=n(423),a=n(327),s=n(3051),l=n(3132),u=(0,s.defaults)({strokeFirst:!0,font:l.Uo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.$t),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,s.createObject)(u,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,o.lP)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(r.ZP);h.prototype.type="tspan";const c=h},6498:(t,e,n)=>{"use strict";n.d(e,{VG:()=>_,Y1:()=>b,ZP:()=>I});var i=n(655),r=n(6918),o=n(1505),a=n(3051),s=n(423),l=n(4535),u=n(5151),h=n(479),c=n(7719),d=n(3132),p={fill:"#000"},f={style:(0,a.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},c.ik.style)},g=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=p,n.attr(e),n}return(0,i.ZT)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,z=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),B=a.calculatedLineHeight,Z=0;Z=0&&"right"===(O=w[P]).align;)this._placeToken(O,t,T,v,L,"right",_),M-=O.width,L-=O.width,P--;for(D+=(i-(D-m)-(y-L)-M)/2;I<=P;)O=w[I],this._placeToken(O,t,T,v,D+O.width/2,"center",_),D+=O.width,I++;v+=T}},e.prototype._placeToken=function(t,e,n,i,r,l,u){var c=e.rich[t.styleName]||{};c.text=t.text;var p=t.verticalAlign,f=i+n/2;"top"===p?f=i+t.height/2:"bottom"===p&&(f=i+n-t.height/2),!t.isLineHolder&&A(c)&&this._renderBackground(c,e,"right"===l?r-t.width:"center"===l?r-t.width/2:r,f-t.height/2,t.width,t.height);var g=!!c.backgroundColor,m=t.textPadding;m&&(r=M(r,l,m),f-=t.height/2-m[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.Z),y=v.createStyle();v.useStyle(y);var _=this._defaultStyle,b=!1,w=0,C=T("fill"in c?c.fill:"fill"in e?e.fill:(b=!0,_.fill)),I=S("stroke"in c?c.stroke:"stroke"in e?e.stroke:g||u||_.autoStroke&&!b?null:(w=2,_.stroke)),D=c.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=r,y.y=f,D&&(y.shadowBlur=c.textShadowBlur||e.textShadowBlur||0,y.shadowColor=c.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=c.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=c.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=l,y.textBaseline="middle",y.font=t.font||d.Uo,y.opacity=(0,a.retrieve3)(c.opacity,e.opacity,1),x(y,c),I&&(y.lineWidth=(0,a.retrieve3)(c.lineWidth,e.lineWidth,w),y.lineDash=(0,a.retrieve2)(c.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=I),C&&(y.fill=C);var L=t.contentWidth,P=t.contentHeight;v.setBoundingRect(new h.Z((0,s.M3)(y.x,L,y.textAlign),(0,s.mU)(y.y,P,y.textBaseline),L,P))},e.prototype._renderBackground=function(t,e,n,i,r,o){var s,h,c,d=t.backgroundColor,p=t.borderWidth,f=t.borderColor,g=d&&d.image,m=d&&!g,v=t.borderRadius,y=this;if(m||t.lineHeight||p&&f){(s=this._getOrCreateChild(u.Z)).useStyle(s.createStyle()),s.style.fill=null;var _=s.shape;_.x=n,_.y=i,_.width=r,_.height=o,_.r=v,s.dirtyShape()}if(m)(c=s.style).fill=d||null,c.fillOpacity=(0,a.retrieve2)(t.fillOpacity,1);else if(g){(h=this._getOrCreateChild(l.ZP)).onload=function(){y.dirtyStyle()};var x=h.style;x.image=d.image,x.x=n,x.y=i,x.width=r,x.height=o}p&&f&&((c=s.style).lineWidth=p,c.stroke=f,c.strokeOpacity=(0,a.retrieve2)(t.strokeOpacity,1),c.lineDash=t.borderDash,c.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(c.strokeFirst=!0,c.lineWidth*=2));var b=(s||h).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return b(t)&&(e=[t.fontStyle,t.fontWeight,_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,a.trim)(e)||t.textFont||t.font},e}(c.ZP),m={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function _(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d.n5+"px":t+"px":t}function x(t,e){for(var n=0;n{"use strict";n.d(e,{RH:()=>o,SE:()=>r,YV:()=>i});var i=1,r=2,o=4},8007:(t,e,n)=>{"use strict";n.d(e,{Gq:()=>s,ko:()=>a,v5:()=>u});var i=n(2528),r=n(3132),o=new i.ZP(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,i,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),h={hostEl:n,cb:i,cbPayload:a};return s?!u(e=s.image)&&s.pending.push(h):((e=r.qW.loadImage(t,l,l)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[h]})),e}return t}return e}function l(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e{"use strict";n.d(e,{$F:()=>g,NY:()=>c,aF:()=>s});var i=n(8007),r=n(3051),o=n(423),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=l(e,n,i,r);for(var a=0,s=o.length;a=l;h++)u-=l;var c=(0,o.dz)(n,e);return c>u&&(n="",c=0),u=t-c,a.ellipsis=n,a.ellipsisWidth=c,a.contentWidth=u,a.containerWidth=t,a}function u(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=(0,o.dz)(t,i);if(a<=n)return t;for(var s=0;;s++){if(a<=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?h(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,l),a=(0,o.dz)(t,i)}return""===t&&(t=e.placeholder),t}function h(t,e,n,i){for(var r=0,o=0,a=t.length;ov&&f){var y=Math.floor(v/d);n=n.slice(0,y)}if(t&&h&&null!=g)for(var x=l(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b=0;bp&&m(n,t.substring(p,g),e,d),m(n,l[2],e,d,l[1]),p=a.lastIndex}ph){I>0?(M.tokens=M.tokens.slice(0,I),S(M,A,C),n.lines=n.lines.slice(0,T+1)):n.lines=n.lines.slice(0,T);break t}var N=D.width,k=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))Z.percentWidth=N,v.push(Z),Z.contentWidth=(0,o.dz)(Z.text,O);else{if(k){var R=D.backgroundColor,z=R&&R.image;z&&(z=i.ko(z),i.v5(z)&&(Z.width=Math.max(Z.width,z.width*E/z.height)))}var B=b&&null!=u?u-A:null;null!=B&&B0&&v+i.accumWidth>i.width&&(a=e.split("\n"),f=!0),i.accumWidth=v}else{var y=_(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+m,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var x=0;x=33&&e<=383}(t)||!!v[t]}function _(t,e,n,i,r){for(var a=[],s=[],l="",u="",h=0,c=0,d=0;dn:r+c+f>n)?c?(l||u)&&(g?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=p,l="",c=h+=f):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=p,c=f)):g?(a.push(u),s.push(h),u=p,h=f):(a.push(p),s.push(f)):(c+=f,g?(u+=p,h+=f):(u&&(l+=u,u="",h=0),l+=p))}else u&&(l+=u,c+=h),a.push(l),s.push(c),l="",u="",h=0,c=0}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}},924:(t,e,n)=>{"use strict";n.d(e,{L:()=>r});var i=n(5280);function r(t,e,n){var r=e.smooth,o=e.points;if(o&&o.length>=2){if(r){var a=function(t,e,n,r){var o,a,s,l,u=[],h=[],c=[],d=[];if(r){s=[1/0,1/0],l=[-1/0,-1/0];for(var p=0,f=t.length;p{"use strict";n.d(e,{Pw:()=>o,_3:()=>r,vu:()=>a});var i=Math.round;function r(t,e,n){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u?(i(2*r)===i(2*o)&&(t.x1=t.x2=a(r,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=a(s,u,!0)),t):t}}function o(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,s=e.height;t.x=i,t.y=r,t.width=o,t.height=s;var l=n&&n.lineWidth;return l?(t.x=a(i,l,!0),t.y=a(r,l,!0),t.width=Math.max(a(i+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(r+s,l,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}},4826:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(r.ZP);a.prototype.type="arc";const s=a},4174:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(655),r=n(327),o=n(5280),a=n(8554),s=[],l=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function u(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?a.X_:a.af)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a.X_:a.af)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?a.AZ:a.Zm)(t.x1,t.cpx1,t.x2,e),(n?a.AZ:a.Zm)(t.y1,t.cpy1,t.y2,e)]}var h=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,l=e.cpx1,u=e.cpy1,h=e.cpx2,c=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==h||null==c?(d<1&&((0,a.Lx)(n,l,r,d,s),l=s[1],r=s[2],(0,a.Lx)(i,u,o,d,s),u=s[1],o=s[2]),t.quadraticCurveTo(l,u,r,o)):(d<1&&((0,a.Vz)(n,l,h,r,d,s),l=s[1],h=s[2],r=s[3],(0,a.Vz)(i,u,c,o,d,s),u=s[1],c=s[2],o=s[3]),t.bezierCurveTo(l,u,h,c,r,o)))},e.prototype.pointAt=function(t){return u(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=u(this.shape,t,!0);return o.normalize(e,e)},e}(r.ZP);h.prototype.type="bezier-curve";const c=h},9538:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(r.ZP);a.prototype.type="circle";const s=a},2797:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(r.ZP);a.prototype.type="ellipse";const s=a},2095:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(655),r=n(327),o=n(4111),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,i,r,s;if(this.subPixelOptimize){var l=(0,o._3)(a,e,this.style);n=l.x1,i=l.y1,r=l.x2,s=l.y2}else n=e.x1,i=e.y1,r=e.x2,s=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,i),u<1&&(r=n*(1-u)+r*u,s=i*(1-u)+s*u),t.lineTo(r,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(r.ZP);l.prototype.type="line";const u=l},5094:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(327),o=n(924),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.L(t,e,!0)},e}(r.ZP);s.prototype.type="polygon";const l=s},2514:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(327),o=n(924),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.L(t,e,!1)},e}(r.ZP);s.prototype.type="polyline";const l=s},5151:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(655),r=n(327);var o=n(4111),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var l=(0,o.Pw)(s,e,this.style);n=l.x,i=l.y,r=l.width,a=l.height,l.r=e.r,e=l}else n=e.x,i=e.y,r=e.width,a=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r.ZP);l.prototype.type="rect";const u=l},5795:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(r.ZP);a.prototype.type="ring";const s=a},7214:(t,e,n)=>{"use strict";n.d(e,{C:()=>b});var i=n(655),r=n(327),o=n(3051),a=Math.PI,s=2*a,l=Math.sin,u=Math.cos,h=Math.acos,c=Math.atan2,d=Math.abs,p=Math.sqrt,f=Math.max,g=Math.min,m=1e-4;function v(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/p(s*s+l*l),h=u*l,c=-u*s,d=t+h,g=e+c,m=n+h,v=i+c,y=(d+m)/2,_=(g+v)/2,x=m-d,b=v-g,w=x*x+b*b,S=r-o,T=d*v-m*g,M=(b<0?-1:1)*p(f(0,S*S*w-T*T)),C=(T*b-x*M)/w,A=(-T*x-b*M)/w,I=(T*b+x*M)/w,D=(-T*x+b*M)/w,L=C-y,P=A-_,O=I-y,E=D-_;return L*L+P*P>O*O+E*E&&(C=I,A=D),{cx:C,cy:A,x0:-h,y0:-c,x1:C*(r/S-1),y1:A*(r/S-1)}}function y(t,e){var n,i=f(e.r,0),r=f(e.r0||0,0),y=i>0;if(y||r>0){if(y||(i=r,r=0),r>i){var _=i;i=r,r=_}var x=e.startAngle,b=e.endAngle;if(!isNaN(x)&&!isNaN(b)){var w=e.cx,S=e.cy,T=!!e.clockwise,M=d(b-x),C=M>s&&M%s;if(C>m&&(M=C),i>m)if(M>s-m)t.moveTo(w+i*u(x),S+i*l(x)),t.arc(w,S,i,x,b,!T),r>m&&(t.moveTo(w+r*u(b),S+r*l(b)),t.arc(w,S,r,b,x,T));else{var A=void 0,I=void 0,D=void 0,L=void 0,P=void 0,O=void 0,E=void 0,N=void 0,k=void 0,R=void 0,z=void 0,B=void 0,Z=void 0,F=void 0,V=void 0,G=void 0,H=i*u(x),U=i*l(x),W=r*u(b),j=r*l(b),X=M>m;if(X){var Y=e.cornerRadius;Y&&(A=(n=function(t){var e;if((0,o.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(Y))[0],I=n[1],D=n[2],L=n[3]);var q=d(i-r)/2;if(P=g(q,D),O=g(q,L),E=g(q,A),N=g(q,I),z=k=f(P,O),B=R=f(E,N),(k>m||R>m)&&(Z=i*u(b),F=i*l(b),V=r*u(x),G=r*l(x),Mm){var it=g(D,z),rt=g(L,z),ot=v(V,G,H,U,i,it,T),at=v(Z,F,W,j,i,rt,T);t.moveTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),z0&&t.arc(w+ot.cx,S+ot.cy,it,c(ot.y0,ot.x0),c(ot.y1,ot.x1),!T),t.arc(w,S,i,c(ot.cy+ot.y1,ot.cx+ot.x1),c(at.cy+at.y1,at.cx+at.x1),!T),rt>0&&t.arc(w+at.cx,S+at.cy,rt,c(at.y1,at.x1),c(at.y0,at.x0),!T))}else t.moveTo(w+H,S+U),t.arc(w,S,i,x,b,!T);else t.moveTo(w+H,S+U);if(r>m&&X)if(B>m){it=g(A,B),ot=v(W,j,Z,F,r,-(rt=g(I,B)),T),at=v(H,U,V,G,r,-it,T);t.lineTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),B0&&t.arc(w+ot.cx,S+ot.cy,rt,c(ot.y0,ot.x0),c(ot.y1,ot.x1),!T),t.arc(w,S,r,c(ot.cy+ot.y1,ot.cx+ot.x1),c(at.cy+at.y1,at.cx+at.x1),T),it>0&&t.arc(w+at.cx,S+at.cy,it,c(at.y1,at.x1),c(at.y0,at.x0),!T))}else t.lineTo(w+W,S+j),t.arc(w,S,r,b,x,T);else t.lineTo(w+W,S+j)}else t.moveTo(w,S);t.closePath()}}}var _=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},x=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new _},e.prototype.buildPath=function(t,e){y(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r.ZP);x.prototype.type="sector";const b=x},6076:(t,e,n)=>{"use strict";n.d(e,{Z:()=>wt});var i=n(4839),r=n(327),o=n(4535),a=n(423),s=n(1505),l=Math.sin,u=Math.cos,h=Math.PI,c=2*Math.PI,d=180/h;const p=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,r,o,a,s,p){var f=s-a,g=!p,m=Math.abs(f),v=(0,i.zT)(m-c)||(g?f>=c:-f>=c),y=f>0?f%c:f%c+c,_=!1;_=!!v||!(0,i.zT)(m)&&y>=h==!!g;var x=t+n*u(a),b=e+r*l(a);this._start&&this._add("M",x,b);var w=Math.round(o*d);if(v){var S=1/this._p,T=(g?1:-1)*(c-S);this._add("A",n,r,w,1,+g,t+n*u(a+T),e+r*l(a+T)),S>.01&&this._add("A",n,r,w,0,+g,x,b)}else{var M=t+n*u(s),C=e+r*l(s);this._add("A",n,r,w,+_,+g,M,C)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c"}(r,e.attrs)+(e.text||"")+(i?""+n+(0,g.map)(i,(function(e){return t(e)})).join(n)+n:"")+("")}(t)}function C(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function A(t,e,n,i){return T("svg","root",{width:t,height:e,xmlns:b,"xmlns:xlink":w,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var I=n(8007),D=n(7411),L=n(4014),P=n(2776),O=n(5188),E={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},N="transform-origin";function k(t,e,n){var r=(0,g.extend)({},t.shape);(0,g.extend)(r,e),t.buildPath(n,r);var o=new p;return o.reset((0,i.Gk)(t)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function R(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[N]=n+"px "+i+"px")}var z={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function B(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Z(t){return(0,g.isString)(t)?E[t]?"cubic-bezier("+E[t]+")":(0,O.H)(t)?t:"":""}function F(t,e,n,r){var o=t.animators,a=o.length,s=[];if(t instanceof P.Z){var l=function(t,e,n){var i,r,o=t.shape.paths,a={};if((0,g.each)(o,(function(t){var e=C(n.zrId);e.animation=!0,F(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=(0,g.keys)(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var d=h[c];a[c]=a[c]||{d:""},a[c].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=B(a,n);return i.replace(r,s)}}(t,e,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var u={},h=0;h0})).length)return B(c,n)+" "+o[0]+" both"}for(var y in u){(l=v(u[y]))&&s.push(l)}if(s.length){var _=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+_]={animation:s.join(",")},e.class=_}}var V=n(6498),G=n(3132),H=Math.round;function U(t){return t&&(0,g.isString)(t.src)}function W(t){return t&&(0,g.isFunction)(t.toDataURL)}function j(t,e,n,r){x((function(o,a){var s="fill"===o||"stroke"===o;s&&(0,i.H3)(a)?function(t,e,n,r){var o,a=t[n],s={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if((0,i.I1)(a))o="linearGradient",s.x1=a.x,s.y1=a.y,s.x2=a.x2,s.y2=a.y2;else{if(!(0,i.gO)(a))return void 0;o="radialGradient",s.cx=(0,g.retrieve2)(a.x,.5),s.cy=(0,g.retrieve2)(a.y,.5),s.r=(0,g.retrieve2)(a.r,.5)}for(var l=a.colorStops,u=[],h=0,c=l.length;hl?mt(t,null==n[c+1]?null:n[c+1].elm,n,s,c):vt(t,e,a,l))}(n,i,r):dt(r)?(dt(t.text)&&ut(n,""),mt(n,null,r,0,r.length-1)):dt(i)?vt(n,i,0,i.length-1):dt(t.text)&&ut(n,""):t.text!==e.text&&(dt(i)&&vt(n,i,0,i.length-1),ut(n,e.text)))}var xt=n(5787),bt=0;const wt=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=(0,g.extend)({},n),this.root=t,this._id="zr"+bt++,this._oldVNode=A(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=S("svg");yt(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(ft(t,e))_t(t,e);else{var n=t.elm,i=st(n);gt(e),null!==i&&(rt(i,e.elm,lt(n)),vt(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return et(t,C(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,o=this._height,a=C(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var s=[];if(n&&"none"!==n){var l=(0,i.ut)(n),u=l.color,h=l.opacity;this._bgVNode=T("rect","bg",{width:r,height:o,x:"0",y:"0",id:"0",fill:u,"fill-opacity":h}),s.push(this._bgVNode)}else this._bgVNode=null;var c=t.compress?null:this._mainVNode=T("g","main",{},[]);this._paintList(e,a,c?c.children:s),c&&s.push(c);var d=(0,g.map)((0,g.keys)(a.defs),(function(t){return a.defs[t]}));if(d.length&&s.push(T("defs","defs",{},d)),t.animation){var p=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=(0,g.map)((0,g.keys)(t),(function(e){return e+r+(0,g.map)((0,g.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=(0,g.map)((0,g.keys)(e),(function(t){return"@keyframes "+t+r+(0,g.map)((0,g.keys)(e[t]),(function(n){return n+r+(0,g.map)((0,g.keys)(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}(a.cssNodes,a.cssAnims,{newline:!0});if(p){var f=T("style","stl",{},[],p);s.push(f)}}return A(r,o,s,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},M(this.renderToVNode({animation:(0,g.retrieve2)(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:(0,g.retrieve2)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=(0,i.ut)(t),r=n.color,o=n.opacity;e.elm.setAttribute("fill",r),o<1&&e.elm.setAttribute("fill-opacity",o)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var m=f+1;m{"use strict";n.d(e,{Cv:()=>v,Gk:()=>S,H3:()=>b,I1:()=>_,Pn:()=>c,R:()=>y,gA:()=>T,gO:()=>x,i2:()=>g,jY:()=>p,m1:()=>w,mU:()=>f,n1:()=>m,oF:()=>M,qV:()=>d,ut:()=>s,zT:()=>u});var i=n(3051),r=n(1092),o=n(6387),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=(0,r.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function u(t){return t-1e-4}function h(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function d(t){return"matrix("+h(t[0])+","+h(t[1])+","+h(t[2])+","+h(t[3])+","+c(t[4])+","+c(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return v(t)||function(t){return t&&!!t.svgElement}(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function b(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function T(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.RADIAN_TO_DEGREE,o=(0,i.retrieve2)(t.scaleX,1),s=(0,i.retrieve2)(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,h=[];return(e||n)&&h.push("translate("+e+"px,"+n+"px)"),r&&h.push("rotate("+r+")"),1===o&&1===s||h.push("scale("+o+","+s+")"),(l||u)&&h.push("skew("+a(l*i.RADIAN_TO_DEGREE)+"deg, "+a(u*i.RADIAN_TO_DEGREE)+"deg)"),h.join(" ")}var M=o.default.hasGlobalWindow&&(0,i.isFunction)(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}},1092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{fastLerp:()=>x,fastMapToColor:()=>b,lerp:()=>w,lift:()=>y,lum:()=>A,mapToColor:()=>S,modifyAlpha:()=>M,modifyHSL:()=>T,parse:()=>m,random:()=>I,stringify:()=>C,toHex:()=>_});var i=n(2528),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(t){return(t=Math.round(t))<0?0:t>255?255:t}function a(t){return t<0?0:t>1?1:t}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function c(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i.ZP(20),f=null;function g(t,e){f&&d(f,e),f=p.put(t,f||e.slice())}function m(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in r)return d(e,r[i]),g(t,e),e;var o,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(o=parseInt(i.slice(1,4),16))>=0&&o<=4095?(c(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(i.slice(4),16)/15:1),g(t,e),e):void c(e,0,0,0,1):7===a||9===a?(o=parseInt(i.slice(1,7),16))>=0&&o<=16777215?(c(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(i.slice(7),16)/255:1),g(t,e),e):void c(e,0,0,0,1):void 0;var u=i.indexOf("("),h=i.indexOf(")");if(-1!==u&&h+1===a){var f=i.substr(0,u),m=i.substr(u+1,h-(u+1)).split(","),y=1;switch(f){case"rgba":if(4!==m.length)return 3===m.length?c(e,+m[0],+m[1],+m[2],1):c(e,0,0,0,1);y=l(m.pop());case"rgb":return 3!==m.length?void c(e,0,0,0,1):(c(e,s(m[0]),s(m[1]),s(m[2]),y),g(t,e),e);case"hsla":return 4!==m.length?void c(e,0,0,0,1):(m[3]=l(m[3]),v(m,e),g(t,e),e);case"hsl":return 3!==m.length?void c(e,0,0,0,1):(v(m,e),g(t,e),e);default:return}}c(e,0,0,0,1)}}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),r=l(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return c(e=e||[],o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var n=m(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return C(n,4===n.length?"rgba":"rgb")}}function _(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=e[r],u=e[s],c=i-r;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=a(h(l[3],u[3],c)),n}}var b=x;function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=m(e[r]),u=m(e[s]),c=i-r,d=C([o(h(l[0],u[0],c)),o(h(l[1],u[1],c)),o(h(l[2],u[2],c)),a(h(l[3],u[3],c))],"rgba");return n?{color:d,leftIndex:r,rightIndex:s,value:i}:d}}var S=w;function T(t,e,n,i){var r,o=m(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=l(n)),null!=i&&(o[2]=l(i)),C(v(o),"rgba")}function M(t,e){var n=m(t);if(n&&null!=e)return n[3]=a(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function A(t,e){var n=m(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function I(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},7494:(t,e,n)=>{"use strict";n.d(e,{U5:()=>D,iR:()=>C,Pc:()=>A,AA:()=>I});var i=n(655),r=n(327),o=n(4014),a=n(5280),s=o.Z.CMD,l=[[],[],[]],u=Math.sqrt,h=Math.atan2;function c(t,e){if(e){var n,i,r,o,c,d,p=t.data,f=t.len(),g=s.M,m=s.C,v=s.L,y=s.R,_=s.A,x=s.Q;for(r=0,o=0;r1&&(a*=p(x),s*=p(x));var b=(r===o?-1:1)*p((a*a*(s*s)-a*a*(v*v)-s*s*(d*d))/(a*a*(v*v)+s*s*(d*d)))||0,w=b*a*v/s,S=b*-s*d/a,T=(t+n)/2+g(c)*w-f(c)*S,M=(e+i)/2+f(c)*w+g(c)*S,C=_([1,0],[(d-w)/a,(v-S)/s]),A=[(d-w)/a,(v-S)/s],I=[(-1*d-w)/a,(-1*v-S)/s],D=_(A,I);if(y(A,I)<=-1&&(D=m),y(A,I)>=1&&(D=0),D<0){var L=Math.round(D/m*1e6)/1e6;D=2*m+L%2*m}h.addData(u,T,M,a,s,C,D,c,o)}var b=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.applyTransform=function(t){},e}(r.ZP);function T(t){return null!=t.setData}function M(t,e){var n=function(t){var e=new o.Z;if(!t)return e;var n,i=0,r=0,a=i,s=r,l=o.Z.CMD,u=t.match(b);if(!u)return e;for(var h=0;h{"use strict";n.r(e),n.d(e,{dispose:()=>ot,disposeAll:()=>at,getInstance:()=>st,init:()=>rt,registerPainter:()=>lt,version:()=>ut});var i=n(6387),r=n(3051),o=n(655),a=n(5280),s=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};const l=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;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(new s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=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(new s(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=a,e!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,t),"dragleave",t.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();var u=n(3510),h=n(1158),c=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=d(r)/d(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},f="silent";function g(){h.sT(this.event)}var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,o.ZT)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(u.Z),v=function(t,e){this.x=t,this.y=e},y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._hovered=new v(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new m,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new l(o),o}return(0,o.ZT)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(r.each(y,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=b(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new v(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new v(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:g}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new v(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=x(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==f)){r.target=i[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new c);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new v;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(u.Z);function x(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||f}return!1}function b(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){_.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,s=b(this,r,o);if("mouseup"===t&&s||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const w=_;var S=n(9455),T=n(4414),M=!1;function C(){M||(M=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function A(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}const I=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=A}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(C(),u.z=0),isNaN(u.z2)&&(C(),u.z2=0),isNaN(u.zlevel)&&(C(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();var D=n(2795),L=n(5622);function P(){return(new Date).getTime()}const O=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return(0,o.ZT)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=P()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,D.Z)((function e(){t._running&&((0,D.Z)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=P(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=P(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=P()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new L.Z(t,e.loop);return this.addAnimator(n),n},e}(u.Z);var E,N,k=i.default.domSupported,R=(N={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:E=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:r.map(E,(function(t){var e=t.replace("mouse","pointer");return N.hasOwnProperty(e)?e:t}))}),z=["mousemove","mouseup"],B=["pointermove","pointerup"],Z=!1;function F(t){var e=t.pointerType;return"pen"===e||"touch"===e}function V(t){t&&(t.zrByTouch=!0)}function G(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var H=function(t,e){this.stopPropagation=r.noop,this.stopImmediatePropagation=r.noop,this.preventDefault=r.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},U={mousedown:function(t){t=(0,h.OD)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,h.OD)(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,h.OD)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){G(this,(t=(0,h.OD)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Z=!0,t=(0,h.OD)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Z||(t=(0,h.OD)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){V(t=(0,h.OD)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),U.mousemove.call(this,t),U.mousedown.call(this,t)},touchmove:function(t){V(t=(0,h.OD)(this.dom,t)),this.handler.processGesture(t,"change"),U.mousemove.call(this,t)},touchend:function(t){V(t=(0,h.OD)(this.dom,t)),this.handler.processGesture(t,"end"),U.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&U.click.call(this,t)},pointerdown:function(t){U.mousedown.call(this,t)},pointermove:function(t){F(t)||U.mousemove.call(this,t)},pointerup:function(t){U.mouseup.call(this,t)},pointerout:function(t){F(t)||U.mouseout.call(this,t)}};r.each(["click","dblclick","contextmenu"],(function(t){U[t]=function(e){e=(0,h.OD)(this.dom,e),this.trigger(t,e)}}));var W={pointermove:function(t){F(t)||W.mousemove.call(this,t)},pointerup:function(t){W.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function j(t,e){var n=e.domHandlers;i.default.pointerEventsSupported?r.each(R.pointer,(function(i){Y(e,i,(function(e){n[i].call(t,e)}))})):(i.default.touchEventsSupported&&r.each(R.touch,(function(i){Y(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),r.each(R.mouse,(function(i){Y(e,i,(function(r){r=(0,h.iP)(r),e.touching||n[i].call(t,r)}))})))}function X(t,e){function n(n){Y(e,n,(function(i){i=(0,h.iP)(i),G(t,i.target)||(i=function(t,e){return(0,h.OD)(t.dom,new H(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}i.default.pointerEventsSupported?r.each(B,n):i.default.touchEventsSupported||r.each(z,n)}function Y(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,(0,h.Oo)(t.domTarget,e,n,i)}function q(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,h.xg)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var K=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const J=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new K(e,U),k&&(i._globalHandlerScope=new K(document,W)),j(i,i._localHandlerScope),i}return(0,o.ZT)(e,t),e.prototype.dispose=function(){q(this._localHandlerScope),k&&q(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,k&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?X(this,e):q(e)}},e}(u.Z);var Q=n(1092),$=n(4990),tt=n(8154),et={},nt={};var it=function(){function t(t,e,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new I,s=n.renderer||"canvas";et[s]||(s=r.keys(et)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new et[s](e,a,n,t),u=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var h=i.default.node||i.default.worker||u?null:new J(l.getViewportRoot(),l.root);this.handler=new w(a,l,h,l.root),this.animation=new O({stage:{update:u?null:function(){return o._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,Q.lum)(t,1)<$.Ak;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{Axis:()=>s.RD,ChartView:()=>s.TA,ComponentModel:()=>s.tF,ComponentView:()=>s.Ir,List:()=>s.aV,Model:()=>s.Hn,PRIORITY:()=>s.Hr,SeriesModel:()=>s.wJ,color:()=>s.$_,connect:()=>s.$j,dataTool:()=>s.Ok,default:()=>p,dependencies:()=>s.HO,disConnect:()=>s.eU,disconnect:()=>s.zP,dispose:()=>s.B9,env:()=>s.OB,extendChartView:()=>s.Zy,extendComponentModel:()=>s.tv,extendComponentView:()=>s.Sp,extendSeriesModel:()=>s.Zr,format:()=>s.WU,getCoordinateSystemDimensions:()=>s.wL,getInstanceByDom:()=>s.JE,getInstanceById:()=>s.rp,getMap:()=>s.FU,graphic:()=>s.Q,helper:()=>s._y,init:()=>s.S1,innerDrawElementOnCanvas:()=>s.z$,matrix:()=>s.pI,number:()=>s.Rx,parseGeoJSON:()=>s.Nu,parseGeoJson:()=>s.pQ,registerAction:()=>s.zl,registerCoordinateSystem:()=>s.RS,registerLayout:()=>s.qR,registerLoading:()=>s.yn,registerLocale:()=>s.I2,registerMap:()=>s.je,registerPostInit:()=>s.sq,registerPostUpdate:()=>s.Br,registerPreprocessor:()=>s.ds,registerProcessor:()=>s.Pu,registerTheme:()=>s.aW,registerTransform:()=>s.rV,registerUpdateLifecycle:()=>s.YK,registerVisual:()=>s.Og,setCanvasCreator:()=>s.jQ,setPlatformAPI:()=>s.g2,throttle:()=>s.P2,time:()=>s.XV,use:()=>s.D$,util:()=>s.D5,vector:()=>s.xr,version:()=>s.i8,zrUtil:()=>s.gf,zrender:()=>s.x_});const e={...{metadata:!0,svgRender:!1,switchMode:!1,echartsOption:{aria:{show:!0,description:"This is a force-oriented graph chart that depicts the relationship between ip nodes."},toolbox:{show:!0,iconStyle:{borderColor:"#fff"},feature:{restore:{show:!0,title:"Restore view"},saveAsImage:{show:!0,title:"Save image"}}}},graphConfig:{series:{layout:"force",label:{show:!0,color:"#fff",position:"top"},force:{gravity:.1,edgeLength:[20,60],repulsion:120},roam:!0,draggable:!0,legendHoverLink:!0,emphasis:{focus:"none",lineStyle:{color:"#3acc38",opacity:1}},nodeStyle:{color:"#ffebc4"},linkStyle:{width:6,color:"#1ba619"},nodeSize:"15"},baseOptions:{backgroundColor:"#282222"}},mapOptions:{roam:!0,nodeConfig:{type:"scatter",label:{show:!0,color:"#000000",position:"top",formatter:"{b}"},nodeStyle:{color:"#1566a9"},nodeSize:"17"},linkConfig:{linkStyle:{width:5,color:"#1ba619"},emphasis:{focus:"none",lineStyle:{color:"#3acc38",opacity:1}}},baseOptions:{toolbox:{show:!1}}},mapTileConfig:[{urlTemplate:"https://tiles.stadiamaps.com/tiles/outdoors/{z}/{x}/{y}{r}.png",options:{minZoom:3,maxZoom:32,attribution:'© Stadia Maps, © OpenMapTiles © OpenStreetMap contributors'}}],nodeCategories:[],linkCategories:[],prepareData(t){},onClickElement(t,e){}}};const i=class{constructor(t){this.self=t,this.renderModeSelector=null,this.controls=null,this.sideBar=null,this.aboutContainer=null,this.nodeLinkInfoContainer=null}createControls(){const t=document.createElement("div");return t.setAttribute("class","njg-controls"),this.self.el.appendChild(t),t}createRenderModeSelector(){const t=document.createElement("div"),e=document.createElement("span");return e.setAttribute("class","iconfont icon-eye"),t.setAttribute("class","njg-selectIcon"),t.appendChild(e),this.controls.appendChild(t),t}createSideBar(){const t=document.createElement("div");t.setAttribute("class","njg-sideBar");const{body:e}=document,n=document.createElement("button");return t.appendChild(n),n.classList.add("sideBarHandle"),n.onclick=()=>{t.classList.toggle("hidden")},e.appendChild(t),t}createAboutContainer(){const t=document.createElement("div"),e=document.createElement("h2"),n=document.createElement("div");return n.classList.add("njg-metaData"),t.classList.add("njg-aboutContainer"),e.innerHTML="About",t.appendChild(e),t.appendChild(n),this.sideBar.appendChild(t),this.nodeLinkInfoContainer=this.createNodeLinkInfoContainer(),t}createNodeLinkInfoContainer(){const t=document.createElement("div");return t.classList.add("njg-nodeLinkInfoContainer"),t.style.visibility="hidden",this.sideBar.appendChild(t),t}getNodeLinkInfo(t,e){const n=document.querySelectorAll(".njg-infoContainer"),i=document.querySelectorAll(".njg-headerContainer");for(let t=0;t{const n=document.createElement("div");n.classList.add("njg-infoItems");const i=document.createElement("span");i.setAttribute("class","njg-keyLabel");const r=document.createElement("span");r.setAttribute("class","njg-valueLabel"),"location"===t?(i.innerHTML="Location",r.innerHTML=`${Math.round(1e3*e[t].lat)/1e3}, ${Math.round(1e3*e[t].lng)/1e3}`):"localAddresses"===t?(i.innerHTML="Local Addresses",r.innerHTML=e[t].join("
")):(i.innerHTML=t,r.innerHTML=e[t]),n.appendChild(i),n.appendChild(r),o.appendChild(n)})),r.appendChild(a),r.appendChild(s),this.nodeLinkInfoContainer.appendChild(r),this.nodeLinkInfoContainer.appendChild(o),s.onclick=()=>{this.nodeLinkInfoContainer.style.visibility="hidden"}}init(){this.sideBar=this.createSideBar(),this.self.config.switchMode&&(this.controls=this.createControls(),this.renderModeSelector=this.createRenderModeSelector())}};const r=class{JSONParamParse(t){return"string"==typeof t?fetch(t,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((t=>t.json?t.json():t)).catch((t=>{console.error(t)})):Promise.resolve(t)}dateParse({dateString:t,parseRegular:e=/^([1-9]\d{3})-(\d{1,2})-(\d{1,2})T(\d{1,2}):(\d{1,2}):(\d{1,2})(?:\.(\d{1,3}))?Z$/,hourDiffer:n=(new Date).getTimezoneOffset()/60}){const i=e.exec(t);if(!i||i.length<7)return console.error("Date doesn't meet the specifications."),"";const r=["dateYear","dateMonth","dateDay","dateHour"],o={},a=i[1]%4==0&&i[1]%100!=0||i[1]%400==0,s=new Map([["dateMonth",12],["dateDay",[31,a?29:28,31,30,31,30,31,31,30,31,30,31]],["dateHour",24]]);for(let t=r.length;t>0;t-=1)o[r[t-1]]=parseInt(i[t],10);let l,u=-n;for(let t=r.length;t>0;t-=1){if("dateYear"===r[t-1]){o[r[t-1]]+=u;break}l="dateDay"===r[t-1]?s.get("dateDay")[o.dateMonth-1]:s.get(r[t-1]);let e=o[r[t-1]]+u;u="dateHour"===r[t-1]?e<0?-1:e>=l?1:0:e<=0?-1:e>l?1:0,1===u?e-=l:u<0&&("dateDay"===r[t-1]&&(l=s.get("dateDay")[(o[r[t-1]]+10)%11]),e+=l),o[r[t-1]]=e}return`${o.dateYear}.${this.numberMinDigit(o.dateMonth)}.${this.numberMinDigit(o.dateDay)} ${this.numberMinDigit(o.dateHour)}:${this.numberMinDigit(i[5])}:${this.numberMinDigit(i[6])}${i[7]?`.${this.numberMinDigit(i[7],3)}`:""}`}numberMinDigit(t,e=2,n="0"){return(Array(e).join(n)+t).slice(-e)}isObject(t){return"Object"===Object.prototype.toString.call(t).slice(8,14)}isArray(t){return"Array"===Object.prototype.toString.call(t).slice(8,13)}isElement(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}deepMergeObj(...t){const e=[...t].reverse(),n=e.length;for(let t=0;t{i[t]&&this.isObject(i[t])&&this.isObject(n[t])?this.deepMergeObj(i[t],n[t]):i[t]=n[t]})):i||(e[t+1]=n)}return e[n-1]}updateMetadata(){if(this.config.metadata){const t=this.utils.getMetadata(this.data),e=document.querySelector(".njg-metaData"),n=document.querySelectorAll(".njg-metaDataItems");for(let t=0;t{const i=document.createElement("div");i.classList.add("njg-metaDataItems");const r=document.createElement("span");r.setAttribute("class","njg-keyLabel");const o=document.createElement("span");o.setAttribute("class","njg-valueLabel"),r.innerHTML=n,o.innerHTML=t[n],i.appendChild(r),i.appendChild(o),e.appendChild(i)}))}}getMetadata(t){const e=t,n={};return e.label&&(n.label=e.label),["protocol","version","revision","metric","router_id","topology_id"].forEach((t=>{e[t]&&(n[t]=e[t])})),n.nodes=e.nodes.length,n.links=e.links.length,n}nodeInfo(t){const e={};return e.id=t.id,t.label&&"string"==typeof t.label&&(e.label=t.label),t.name&&(e.name=t.name),t.location&&(e.location=t.location),t.properties&&Object.keys(t.properties).forEach((n=>{if("location"===n)e[n]={lat:t.properties.location.lat,lng:t.properties.location.lng};else if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e[n]=i}else e[n.replace(/_/g," ")]=t.properties[n]})),t.linkCount&&(e.links=t.linkCount),t.local_addresses&&(e.localAddresses=t.local_addresses),e}createTooltipItem(t,e){const n=document.createElement("div");n.classList.add("njg-tooltip-item");const i=document.createElement("span");i.setAttribute("class","njg-tooltip-key");const r=document.createElement("span");return r.setAttribute("class","njg-tooltip-value"),i.innerHTML=t,r.innerHTML=e,n.appendChild(i),n.appendChild(r),n}getNodeTooltipInfo(t){const e=document.createElement("div");return e.classList.add("njg-tooltip-inner"),t.id&&e.appendChild(this.createTooltipItem("id",t.id)),t.label&&"string"==typeof t.label&&e.appendChild(this.createTooltipItem("label",t.label)),t.properties&&Object.keys(t.properties).forEach((n=>{if("location"===n)e.appendChild(this.createTooltipItem("location",`${Math.round(1e3*t.properties.location.lat)/1e3}, ${Math.round(1e3*t.properties.location.lng)/1e3}`));else if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e.appendChild(this.createTooltipItem("time",i))}else e.appendChild(this.createTooltipItem(`${n.replace(/_/g," ")}`,t.properties[n]))})),t.linkCount&&e.appendChild(this.createTooltipItem("Links",t.linkCount)),t.local_addresses&&e.appendChild(this.createTooltipItem("Local Addresses",t.local_addresses.join("
"))),e}getLinkTooltipInfo(t){const e=document.createElement("div");return e.classList.add("njg-tooltip-inner"),e.appendChild(this.createTooltipItem("source",t.source)),e.appendChild(this.createTooltipItem("target",t.target)),e.appendChild(this.createTooltipItem("cost",t.cost)),t.properties&&Object.keys(t.properties).forEach((n=>{if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e.appendChild(this.createTooltipItem("time",i))}else e.appendChild(this.createTooltipItem(`${n.replace(/_/g," ")}`,t.properties[n]))})),e}linkInfo(t){const e={};return e.source=t.source,e.target=t.target,e.cost=t.cost,t.properties&&Object.keys(t.properties).forEach((n=>{if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e[n]=i}else e[n.replace(/_/g," ")]=t.properties[n]})),e}generateStyle(t,e){return"function"==typeof t?t(e):t}getNodeStyle(t,e,n){let i,r={},o={};if(t.category&&e.nodeCategories.length){const n=e.nodeCategories.find((e=>e.name===t.category));i=this.generateStyle(n.nodeStyle||{},t),r=this.generateStyle(n.nodeSize||{},t),o={...o,nodeStyle:n.emphasis?this.generateStyle(n.emphasis.nodeStyle||{},t):{}},o={...o,nodeSize:n.empahsis?this.generateStyle(n.emphasis.nodeSize||{},t):{}}}else"map"===n?(i=this.generateStyle(e.mapOptions.nodeConfig.nodeStyle,t),r=this.generateStyle(e.mapOptions.nodeConfig.nodeSize,t)):(i=this.generateStyle(e.graphConfig.series.nodeStyle,t),r=this.generateStyle(e.graphConfig.series.nodeSize,t));return{nodeStyleConfig:i,nodeSizeConfig:r,nodeEmphasisConfig:o}}getLinkStyle(t,e,n){let i,r={};if(t.category&&e.linkCategories.length){const n=e.linkCategories.find((e=>e.name===t.category));i=this.generateStyle(n.linkStyle||{},t),r={...r,linkStyle:n.emphasis?this.generateStyle(n.emphasis.linkStyle||{},t):{}}}else i="map"===n?this.generateStyle(e.mapOptions.linkConfig.linkStyle,t):this.generateStyle(e.graphConfig.series.linkStyle,t);return{linkStyleConfig:i,linkEmphasisConfig:r}}getGUI(t){return new i(t)}showLoading(){let t=document.getElementById("loadingContainer");return t?t.style.visibility="visible":(t=document.createElement("div"),t.setAttribute("id","loadingContainer"),t.innerHTML='\n
\n
\n

Loading...

\n
\n ',this.el.appendChild(t)),t}hideLoading(){const t=document.getElementById("loadingContainer");return t&&(t.style.visibility="hidden"),t}createEvent(){const t=new Map,e=new Map;return{on(e,...n){t.set(e,[...t.get(e)||[],...n])},once(t,...n){e.set(t,[...e.get(t)||[],...n])},emit(n){const i=t.get(n)||[],r=e.get(n)||[],o=i.map((t=>t())),a=r.map((t=>t()));return e.delete(n),[...o,...a]},delete(n){t.delete(n),e.delete(n)}}}};const o=class extends r{searchElements(t){const e=this,n={"":{data:{...e.data},param:[...e.JSONParam]}};return window.history.pushState({searchValue:""},""),window.onpopstate=i=>{n[i.state.searchValue]?e.utils.JSONDataUpdate.call(e,n[i.state.searchValue].data).then((()=>{e.JSONParam=n[i.state.searchValue].param})):e.utils.JSONDataUpdate.call(e,t+i.state.searchValue)},function(i,r=!0,o=!0){const a=i.trim();if(!window.history.state||window.history.state&&window.history.state.searchValue!==a)return window.history.pushState({searchValue:a},""),e.utils.JSONDataUpdate.call(e,t+a,r,o).then((()=>{n[a]={data:{...e.data},param:[...e.JSONParam]}}))}}JSONDataUpdate(t,e=!0,n=!0){const i=this;return i.config.onUpdate.call(i),i.utils.JSONParamParse(t).then((r=>{function o(){e?(i.JSONParam=[t],i.utils.overrideData(r,i)):(i.JSONParam.push(t),i.config.render===i.utils.mapRender?i.utils.appendData(r,i):i.utils.addData(r,i)),i.utils.updateMetadata.call(i)}return n?(i.config.prepareData.call(i,r),i.config.dealDataByWorker?i.utils.dealDataByWorker.call(i,r,i.config.dealDataByWorker,o):o()):o(),r})).catch((t=>{console.error(t)}))}dealDataByWorker(t,e,n){const i=new Worker(e),r=this;i.postMessage(t),i.addEventListener("error",(t=>{console.error(t),console.error("Error in dealing JSONData!")})),i.addEventListener("message",(t=>{n?n():r.utils.overrideData(t.data,r)}))}overrideData(t,e){e.data=t,e.utils.render(),e.config.afterUpdate.call(e)}};const a=class{constructor(t){this.utils=new o,this.config={...e},this.JSONParam=this.utils.isArray(t)?t:[t]}setConfig(t){return this.utils.deepMergeObj(this.config,t),this.el?t&&t.el&&console.error("Can't change el again!"):(this.config.el?this.utils.isElement(this.config.el)?this.el=this.config.el:this.el=document.getElementById(this.config.el):this.el=document.body,this.el===document.body&&(this.el.classList.add("njg-relativePosition"),this.el.setAttribute("id","graphChartContainer"))),this.config}render(){const[t,...e]=this.JSONParam;if(this.config.onRender.call(this),this.event.once("onLoad",this.config.onLoad.bind(this)),this.utils.JSONParamParse(t).then((t=>{this.config.prepareData.call(this,t),this.data=t,this.config.dealDataByWorker?this.utils.dealDataByWorker.call(this,t,this.config.dealDataByWorker):(this.data=t,this.utils.render())})).catch((t=>{console.error(t)})),e.length){const n=function(){e.map((t=>this.utils.JSONDataUpdate.call(this,t,!1)))};this.JSONParam=[t],this.event.once("renderArray",n.bind(this))}}setUtils(t={}){const e=this;return e.utils=Object.assign(e.utils,{...t},{render(){if(!e.config.render)throw new Error("No render function!");e.config.render(e.data,e)}}),e.utils}};var s=n(9060),l=n(8023),u=n(1615),h=n(12),c=n(7240),d=n(7164);(0,l.D)([h.N,c.N]);const p={init:function(){return u.S1.apply(null,arguments)}};(0,l.D)(d.T);var f=n(6026);(0,l.D)(f.N);var g=n(9517);(0,l.D)(g.N);var m=n(241);(0,l.D)(m.N);var v=n(7813);(0,l.D)(v.N);var y=n(8690);(0,l.D)(y.N);var _=n(5045);(0,l.D)(_.N);var x=n(3450);(0,l.D)(x.N);var b=n(9448),w=n(6076);(0,b.registerPainter)("svg",w.Z);n(3721);var S=n(531),T=n.n(S);class M{echartsSetOption(t,e){const n=e.config,i=e.echarts,r=e.utils.deepMergeObj({tooltip:{confine:!0,position:(t,e,n,i,r)=>{let o="right";return r.viewSize[0]-t[0]"graph"===t.componentSubType?"edge"===t.dataType?e.utils.getLinkTooltipInfo(t.data):e.utils.getNodeTooltipInfo(t.data):"graphGL"===t.componentSubType?e.utils.getNodeTooltipInfo(t.data):"lines"===t.componentSubType?e.utils.getLinkTooltipInfo(t.data.link):e.utils.getNodeTooltipInfo(t.data.node)}},n.echartsOption);return i.setOption(e.utils.deepMergeObj(r,t)),i.on("click",(t=>{const i=n.onClickElement.bind(e);return"graph"===t.componentSubType?i("edge"===t.dataType?"link":"node",t.data):"graphGL"===t.componentSubType?i("node",t.data):"lines"===t.componentSubType?i("link",t.data.link):i("node",t.data.node)}),{passive:!0}),i}generateGraphOption(t,e){const n=[],i=e.config,r=t.nodes.map((t=>{const n=JSON.parse(JSON.stringify(t)),{nodeStyleConfig:r,nodeSizeConfig:o,nodeEmphasisConfig:a}=e.utils.getNodeStyle(t,i,"graph");return n.itemStyle=r,n.symbolSize=o,n.emphasis={itemStyle:a.nodeStyle,symbolSize:a.nodeSize},n.name="string"==typeof t.label?t.label:t.id,n})),o=t.links.map((t=>{const n=JSON.parse(JSON.stringify(t)),{linkStyleConfig:r,linkEmphasisConfig:o}=e.utils.getLinkStyle(t,i,"graph");return n.lineStyle=r,n.emphasis={lineStyle:o.linkStyle},n})),a=[Object.assign(i.graphConfig.series,{type:"graphGL"===i.graphConfig.series.type?"graphGL":"graph",layout:"graphGL"===i.graphConfig.series.type?"forceAtlas2":i.graphConfig.series.layout,nodes:r,links:o})];return{legend:n.length?{data:n}:void 0,series:a,...i.graphConfig.baseOptions}}generateMapOption(t,e){const n=e.config,{nodes:i,links:r}=t,o=t.flatNodes||{},a=[],s=[];i.forEach((i=>{if(i.properties){const{location:r}=i.properties;if(r&&r.lng&&r.lat){const{nodeStyleConfig:a,nodeSizeConfig:l,nodeEmphasisConfig:u}=e.utils.getNodeStyle(i,n,"map");s.push({name:"string"==typeof i.label?i.label:i.id,value:[r.lng,r.lat],symbolSize:l,itemStyle:a,emphasis:{itemStyle:u.nodeStyle,symbolSize:u.nodeSize},node:i}),t.flatNodes||(o[i.id]=JSON.parse(JSON.stringify(i)))}else console.error(`Node ${i.id} position is undefined!`)}else console.error(`Node ${i.id} position is undefined!`)})),r.forEach((t=>{if(o[t.source])if(o[t.target]){const{linkStyleConfig:i,linkEmphasisConfig:r}=e.utils.getLinkStyle(t,n,"map");a.push({coords:[[o[t.source].properties.location.lng,o[t.source].properties.location.lat],[o[t.target].properties.location.lng,o[t.target].properties.location.lat]],lineStyle:i,emphasis:{lineStyle:r.linkStyle},link:t})}else console.error(`Node ${t.target} is not exist!`);else console.error(`Node ${t.source} is not exist!`)}));const l=[Object.assign(n.mapOptions.nodeConfig,{type:"effectScatter"===n.mapOptions.nodeConfig.type?"effectScatter":"scatter",coordinateSystem:"leaflet",data:s,animationDuration:1e3}),Object.assign(n.mapOptions.linkConfig,{type:"lines",coordinateSystem:"leaflet",data:a})];return{leaflet:{tiles:n.mapTileConfig,mapOptions:n.mapOptions},series:l,...n.mapOptions.baseOptions}}graphRender(t,e){e.utils.echartsSetOption(e.utils.generateGraphOption(t,e),e),window.onresize=()=>{e.echarts.resize()},e.event.emit("onLoad"),e.event.emit("renderArray")}mapRender(t,e){e.config.mapTileConfig[0]?(e.utils.echartsSetOption(e.utils.generateMapOption(t,e),e),e.leaflet=e.echarts._api.getCoordinateSystems()[0].getLeaflet(),e.leaflet._zoomAnimated=!1,e.event.emit("onLoad"),e.event.emit("renderArray")):console.error('You must add the tiles via the "mapTileConfig" param!')}appendData(t,e){if(e.config.render!==e.utils.mapRender)return void console.error("AppendData function can only be used for map render!");e.utils.generateMapOption(t,e).series.forEach(((t,n)=>{e.echarts.appendData({seriesIndex:n,data:t.data})})),e.utils.mergeData(t,e),e.config.afterUpdate.call(e)}addData(t,e){e.utils.mergeData(t,e),e.utils.render(),e.config.afterUpdate.call(e)}mergeData(t,e){const n=e.data.nodes.concat(t.nodes),i=e.data.links.concat(t.links);Object.assign(e.data,t,{nodes:n,links:i})}}const C=function(t,e){const{util:n,graphic:i,matrix:r}=t,o=e.Layer.extend({initialize(t){this._container=t},onAdd(t){t.getPane(this.options.pane).appendChild(this._container),t.zoomControl.setPosition("topright")},onRemove(){e.DomUtil.remove(this._container)},_update(){}});function a(t,n){this._map=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=n,this._projection=e.Projection.Mercator}function s(t,e,n,i){const{leafletModel:r,seriesModel:o}=n,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("leaflet")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}return a.dimensions=["lng","lat"],a.prototype.dimensions=["lng","lat"],a.prototype.setZoom=function(t){this._zoom=t},a.prototype.setCenter=function(t){this._center=this._projection.project(new e.LatLng(t[1],t[0]))},a.prototype.setMapOffset=function(t){this._mapOffset=t},a.prototype.getLeaflet=function(){return this._map},a.prototype.getViewRect=function(){const t=this._api;return new i.BoundingRect(0,0,t.getWidth(),t.getHeight())},a.prototype.getRoamTransform=function(){return r.create()},a.prototype.dataToPoint=function(t){const n=new e.LatLng(t[1],t[0]),i=this._map.latLngToLayerPoint(n),r=this._mapOffset;return[i.x-r[0],i.y-r[1]]},a.prototype.pointToData=function(t){const e=this._mapOffset,n=this._map.layerPointToLatLng({x:t[0]+e[0],y:t[1]+e[1]});return[n.lng,n.lat]},a.prototype.convertToPixel=n.curry(s,"dataToPoint"),a.prototype.convertFromPixel=n.curry(s,"pointToData"),a.create=function(t,n){let i;const r=[],s=n.getDom();return t.eachComponent("leaflet",(t=>{const l=n.getZr().painter.getViewportRoot();if(void 0===e)throw new Error("Leaflet api is not loaded");if(i)throw new Error("Only one leaflet component can exist");if(!t.__map){let n=s.querySelector(".ec-extension-leaflet");n&&(l.style.left="0px",l.style.top="0px",s.removeChild(n)),n=document.createElement("div"),n.style.cssText="width:100%;height:100%",n.classList.add("ec-extension-leaflet"),s.appendChild(n),t.__map=e.map(n,t.get("mapOptions"));const i=t.__map,r=t.get("tiles"),a={};let u=!1;if(r.forEach((t=>{const n=e.tileLayer(t.urlTemplate,t.options);t.label?(u||(n.addTo(i),u=!0),a[t.label]=n):n.addTo(i)})),r.length>1){const n=t.get("layerControl");e.control.layers(a,{},n).addTo(i)}const h=document.createElement("div");h.style="position: absolute;left: 0;top: 0;z-index: 100",h.appendChild(l),new o(h).addTo(i)}const u=t.__map;i=new a(u,n),r.push(i),i.setMapOffset(t.__mapOffset||[0,0]);const{center:h,zoom:c}=t.get("mapOptions");h&&c&&(i.setZoom(c),i.setCenter(h)),t.coordinateSystem=i})),t.eachSeries((t=>{"leaflet"===t.get("coordinateSystem")&&(t.coordinateSystem=i)})),r},a};function A(t,e){t.extendComponentView({type:"leaflet",render(t,n,i){let r=!0;const o=t.getLeaflet(),a=i.getZr().painter.getViewportRoot().parentNode,s=t.coordinateSystem,l={x:0,y:0};function u(t,e){const n=[parseFloat(getComputedStyle(e).width),parseFloat(getComputedStyle(e).height)];"CANVAS"===t.tagName&&(t.width=t.width/parseFloat(getComputedStyle(t).width)*n[0],t.height=t.height/parseFloat(getComputedStyle(t).height)*n[1]),t.style.width=`${n[0]}px`,t.style.height=`${n[1]}px`}function h(t){[...t.childNodes].forEach((e=>{u(e,t),e.childNodes.length&&h(e)}))}function c(t){const n=e.DomUtil.getPosition(t.getPanes().mapPane);if(n)return n;console.error("Can't get the map offset!")}this._oldMoveStartHandler&&o.off("movestart",this._oldMoveStartHandler),this._oldMoveHandler&&o.off("move",this._oldMoveHandler),this._oldZoomEndHandler&&o.off("zoomend",this._oldZoomEndHandler),this._oldResizeHandler&&o.off("resize",this._oldResizeHandler);const{roam:d}=t.get("mapOptions");function p(){if(r)return;const t=c(o);t&&Object.assign(l,{x:t.x,y:t.y})}function f(){if(r)return;const n=function(){const n=c(o);if(n){const{x:i,y:r}=n,o=i-l.x,u=r-l.y;return Object.assign(l,{x:i,y:r}),e.DomUtil.setPosition(a,{x:-i,y:-r}),s.setMapOffset([-i,-r]),t.__mapOffset=[-i,-r],{dx:o,dy:u}}}();if(n){const{dx:t,dy:e}=n;i.dispatchAction({type:"leafletMove",dx:t,dy:e})}}function g(){r||i.dispatchAction({type:"leafletZoom"})}function m(){const t=i.getDom();u(a,t),h(a),i.dispatchAction({type:"leafletZoom"})}d&&"scale"!==d?o.dragging.enable():o.dragging.disable(),d&&"move"!==d?(o.scrollWheelZoom.enable(),o.doubleClickZoom.enable(),o.touchZoom.enable()):(o.scrollWheelZoom.disable(),o.doubleClickZoom.disable(),o.touchZoom.disable()),o.on("movestart",p),o.on("move",f),o.on("zoomend",g),o.on("resize",m),this._oldMoveStartHandler=p,this._oldMoveHandler=f,this._oldZoomEndHandler=g,this._oldResizeHandler=m,r=!1}})}function I(t,e,n){const{target:i}=t,r=i.position;r[0]+=e,r[1]+=n,function(t){t.__dirty=!0,t.__zr&&t.__zr.refreshImmediately()}(i)}function D(t,e){const n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler,{colorTool:s,each:l,env:u}=e;if(!n)return;a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,t),function(t,e){const n=t._chartsMap,i=t._scheduler;e.eachSeries((t=>{i.updateStreamModes(t,n[t.__viewId])}))}(this,n),o.update(n,i),function(t){t.clearColorPalette(),t.eachSeries((t=>{t.clearColorPalette()}))}(n),a.performVisualTasks(n,t),function(t,e,n,i){(function(t,e,n,i,r){l(r||t._componentsViews,(t=>{const r=t.__model;t.render(r,e,n,i),c(r,t)}))})(t,e,n,i),l(t._chartsViews,(t=>{t.__alive=!1})),function(t,e,n,i,r){const o=t._scheduler;let a;e.eachSeries((e=>{const n=t._chartsMap[e.__viewId];n.__alive=!0;const s=n.renderTask;o.updatePayload(s,i),r&&r.get(e.uid)&&s.dirty(),a|=s.perform(o.getPerformArgs(s)),n.group.silent=!!e.get("silent"),c(e,n),function(t,e){const n=t.get("blendMode")||null;e.group.traverse((t=>{t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable((t=>{t.setStyle("blend",n)}))}))}(e,n)})),o.unfinished|=a,function(t,e){const n=t.storage;let i=0;n.traverse((t=>{t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!u.node&&n.traverse((t=>{t.isGroup||(t.useHoverLayer=!0)}))}(t._zr,e)}(t,e,0,i),l(t._chartsViews,(t=>{t.__alive||t.remove(e,n)}))}(this,n,i,t),r.refreshImmediately();let h=n.get("backgroundColor")||"transparent";if(u.canvasSupported)r.setBackgroundColor(h);else{const t=s.parse(h);h=s.stringify(t,"rgb"),0===t[3]&&(h="transparent")}function c(t,e){const n=t.get("z"),i=t.get("zlevel");e.group.traverse((t=>{"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))}))}}function L(t,e,n){!function(t){t.extendComponentModel({type:"leaflet",getLeaflet(){return this.__map},setCenterAndZoom(t,e){this.option.center=t,this.option.zoom=e},centerOrZoomChanged(t,e){const{option:n}=this;return i=t,r=n.center,!(i&&r&&i[0]===r[0]&&i[1]===r[1]&&e===n.zoom);var i,r},defaultOption:{mapOptions:{},tiles:[{urlTemplate:"http://{s}.tile.osm.org/{z}/{x}/{y}.png",options:{attribution:'© OpenStreetMap contributors'}}],layerControl:{}}})}(t),A(t,e),t.registerCoordinateSystem("leaflet",C(t,e)),t.registerAction({type:"leafletMove",event:"leafletMove",update:"none"},((t,e)=>{e.scheduler.ecInstance._chartsViews.forEach((({group:e})=>{I({target:e},t.dx,t.dy)})),e.eachComponent("leaflet",(t=>{const e=t.getLeaflet(),n=e.getCenter();t.setCenterAndZoom([n.lng,n.lat],e.getZoom())}))})),t.registerAction({type:"leafletZoom",event:"leafletZoom",update:"none"},((t,e)=>{const i=e.scheduler.ecInstance;D.call(i,t,n),i._chartsViews.forEach((({group:t})=>{I({target:t},-t.position[0],-t.position[1])})),e.eachComponent("leaflet",(t=>{const e=t.getLeaflet(),n=e.getCenter();t.setCenterAndZoom([n.lng,n.lat],e.getZoom())}))}))}L.version="1.0.0";const P=L,O=n(1092),{each:E}=n(3051),N=n(6387);class k{constructor(t,e){e&&"map"===e.render?e.render=M.prototype.mapRender:e&&e.render&&"graph"!==e.render||((e=e||{}).render=M.prototype.graphRender);let n=new a(t);return Object.setPrototypeOf(M.prototype,n.utils),n.utils=new M,n.setUtils(),n.event=n.utils.createEvent(),n.setConfig({onInit(){return this.config},onRender(){return this.utils.showLoading.call(this),this.config},onUpdate(){return this.config},afterUpdate(){return this.config},onLoad(){const t=this.utils.getGUI(this);return t.init(),this.config.metadata&&(t.createAboutContainer(n),this.utils.updateMetadata.call(this)),this.config.switchMode&&(t.renderModeSelector.onclick=()=>{this.config.render===this.utils.mapRender?(this.config.render=this.utils.graphRender,this.echarts.dispose(),n=new k(this.data,{...this.config}),n.render()):(this.config.render=this.utils.mapRender,this.config.render(this.data,this))}),this.config.onClickElement=(e,n)=>{let i;i="node"===e?this.utils.nodeInfo(n):this.utils.linkInfo(n),t.getNodeLinkInfo(e,i),t.sideBar.classList.remove("hidden")},this.utils.hideLoading.call(this),this.config},...e}),n.echarts=s.S1(n.el,null,{renderer:n.config.svgRender?"svg":"canvas"}),n.config.onInit.call(n),n}}P(t,T(),{colorTool:O,each:E,env:N}),window.NetJSONGraph=k,window.echarts=t,window.L=T()})()})(); +var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},5823:(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var i=n(7411),r=n(5622),o=n(479),a=n(3510),s=n(423),l=n(3051),u=n(4990),h=n(1092),c=n(4414),d="__zr_normal__",p=i.dN.concat(["ignore"]),f=(0,l.reduce)(i.dN,(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},m=new o.Z(0,0,0,0),v=function(){function t(t){this.id=(0,l.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,l=!1;r.parent=i?this:null;var u=!1;if(r.copyTransform(e),null!=n.position){var h=m;n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,h):(0,s.wI)(g,n,h),r.x=g.x,r.y=g.y,o=g.align,a=g.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var p=void 0,f=void 0;"center"===d?(p=.5*h.width,f=.5*h.height):(p=(0,s.GM)(d[0],h.width),f=(0,s.GM)(d[1],h.height)),u=!0,r.originX=-r.x+p+(i?0:h.x),r.originY=-r.y+f+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var v=n.offset;v&&(r.x+=v[0],r.y+=v[1],u||(r.originX=-v[0],r.originY=-v[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,b=void 0,w=void 0;y&&this.canBeInsideText()?(x=n.insideFill,b=n.insideStroke,null!=x&&"auto"!==x||(x=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(x),w=!0)):(x=n.outsideFill,b=n.outsideStroke,null!=x&&"auto"!==x||(x=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(x),w=!0)),(x=x||"#000")===_.fill&&b===_.stroke&&w===_.autoStroke&&o===_.align&&a===_.verticalAlign||(l=!0,_.fill=x,_.stroke=b,_.autoStroke=w,_.align=o,_.verticalAlign=a,e.setDefaultTextStyle(_)),e.__dirty|=c.YV,l&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u.GD:u.vU},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,h.parse)(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,(0,h.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,l.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,l.isObject)(t))for(var n=t,i=(0,l.keys)(n),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===d;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!((0,l.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var u=!!(s&&s.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,n,u),p&&p.useState(t,e,n,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c.YV),s}(0,l.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,f);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,e,d),m&&m.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c.YV)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=(0,l.indexOf)(i,t),o=(0,l.indexOf)(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||o.force&&!s.length){var C,A=void 0,I=void 0,D=void 0;if(u){I={},f&&(A={});for(T=0;T{"use strict";n.d(e,{V:()=>v,Z:()=>S});var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}};const r=i;var o=n(3051),a=n(5188);const s=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||o.noop,this.ondestroy=t.ondestroy||o.noop,this.onrestart=t.onrestart||o.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,o.isFunction)(t)?t:r[t]||(0,a.H)(t)},t}();var l=n(1092),u=n(4839),h=Array.prototype.slice;function c(t,e,n){return(e-t)*n+t}function d(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,s=i.length,h=!1,c=6,d=e;if((0,o.isArrayLike)(e)){var p=function(t){return(0,o.isArrayLike)(t&&t[0])?2:1}(e);c=p,(1===p&&!(0,o.isNumber)(e[0])||2===p&&!(0,o.isNumber)(e[0][0]))&&(h=!0)}else if((0,o.isNumber)(e)&&!(0,o.eqNaN)(e))c=0;else if((0,o.isString)(e))if(isNaN(+e)){var f=l.parse(e);f&&(d=f,c=3)}else c=0;else if((0,o.isGradientObject)(e)){var g=(0,o.extend)({},d);g.colorStops=(0,o.map)(e.colorStops,(function(t){return{offset:t.offset,color:l.parse(t.color)}})),(0,u.I1)(e)?c=4:(0,u.gO)(e)&&(c=5),d=g}0===s?this.valType=c:c===this.valType&&6!==c||(h=!0),this.discrete=this.discrete||h;var m={time:t,value:d,rawValue:e,percent:0};return n&&(m.easing=n,m.easingFunc=(0,o.isFunction)(n)?n:r[n]||(0,a.H)(n)),i.push(m),m},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=x(i),l=_(i),u=0;u=0&&!(u[n].percent<=e);n--);n=m(n,h-2)}else{for(n=g;ne);n++);n=m(n-1,h-2)}r=u[n+1],i=u[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var v=r.percent-i.percent,w=0===v?1:m((e-i.percent)/v,1);r.easingFunc&&(w=r.easingFunc(w));var S=a?this._additiveValue:f?b:t[p];if(!x(l)&&!f||S||(S=this._additiveValue=[]),this.discrete)t[p]=w<1?i.rawValue:r.rawValue;else if(x(l))1===l?d(S,i[s],r[s],w):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,v(l),i),this._trackKeys.push(a)}s.addKeyframe(t,v(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var s=a.pop();r.addKeyframe(s.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}()},5188:(t,e,n)=>{"use strict";n.d(e,{H:()=>a});var i=n(8554),r=n(3051),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+(0,r.trim)(n[0]),s=+(0,r.trim)(n[1]),l=+(0,r.trim)(n[2]),u=+(0,r.trim)(n[3]);if(isNaN(a+s+l+u))return;var h=[];return function(t){return t<=0?0:t>=1?1:(0,i.kD)(0,a,l,1,t,h)&&(0,i.af)(0,s,u,1,h[0])}}}},2795:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=n(6387).default.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},810:(t,e,n)=>{"use strict";n.d(e,{a:()=>r});var i=n(3051);function r(t){var e,n,r=t.style,o=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,i.isNumber)(e)?[e]:(0,i.isArray)(e)?e:null:null),a=r.lineDashOffset;if(o){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=(0,i.map)(o,(function(t){return t/s})),a/=s)}return[o,a]}},7772:(t,e,n)=>{"use strict";n.d(e,{Dm:()=>D,RV:()=>I,RZ:()=>x});var i=n(7719),r=n(4014),o=n(8007),a=n(5787),s=n(327),l=n(4535),u=n(1505),h=n(3051),c=n(810),d=n(4414),p=n(3132),f=new r.Z(!0);function g(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function m(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function x(t,e,n){var i=(0,o.Gq)(e.image,e.__image,n);if((0,o.v5)(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*h.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(t,e,n,r,o){var a=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){C(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i.tj.opacity:s}(r||e.blend!==n.blend)&&(a||(C(t,o),a=!0),t.globalCompositeOperation=e.blend||i.tj.blend);for(var l=0;l{"use strict";function i(t){return isFinite(t)}function r(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,o=n.height,a=Math.min(r,o),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,u=null==e.r?.5:e.r;return e.global||(s=s*r+n.x,l=l*o+n.y,u*=a),s=i(s)?s:.5,l=i(l)?l:.5,u=u>=0&&i(u)?u:.5,t.createRadialGradient(s,l,0,s,l,u)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),r=i(r)?r:0,o=i(o)?o:1,a=i(a)?a:0,s=i(s)?s:0,t.createLinearGradient(r,a,o,s)}(t,e,n),o=e.colorStops,a=0;ar,ap:()=>s,cF:()=>o})},4990:(t,e,n)=>{"use strict";n.d(e,{Ak:()=>o,GD:()=>s,KL:()=>r,iv:()=>l,vU:()=>a});var i=1;n(6387).default.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var r=i,o=.4,a="#333",s="#ccc",l="#eee"},3640:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oi})},765:(t,e,n)=>{"use strict";n.d(e,{X:()=>o});var i=n(7637);function r(t,e){return Math.abs(t-e)<1e-8}function o(t,e,n){var o=0,a=t[0];if(!a)return!1;for(var s=1;s{"use strict";n.d(e,{m:()=>r});var i=n(8554);function r(t,e,n,r,o,a,s,l,u){if(0===s)return!1;var h=s;return!(u>e+h&&u>r+h&&u>a+h||ut+h&&l>n+h&&l>o+h||l{"use strict";n.d(e,{Dp:()=>d,GM:()=>p,M3:()=>h,dz:()=>s,lP:()=>u,mU:()=>c,wI:()=>f});var i=n(479),r=n(2528),o=n(3132),a={};function s(t,e){e=e||o.Uo;var n=a[e];n||(n=a[e]=new r.ZP(500));var i=n.get(t);return null==i&&(i=o.qW.measureText(t,e).width,n.put(t,i)),i}function l(t,e,n,r){var o=s(t,e),a=d(e),l=h(0,o,n),u=c(0,a,r);return new i.Z(l,u,o,a)}function u(t,e,n,r){var o=((t||"")+"").split("\n");if(1===o.length)return l(o[0],e,n,r);for(var a=new i.Z(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function f(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=p(i[0],n.width),u+=p(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}},3266:(t,e,n)=>{"use strict";n.d(e,{m:()=>r});var i=2*Math.PI;function r(t){return(t%=i)<0&&(t+=i),t}},7637:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}n.d(e,{Z:()=>i})},479:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var i=n(2892),r=n(1610),o=Math.min,a=Math.max,s=new r.Z,l=new r.Z,u=new r.Z,h=new r.Z,c=new r.Z,d=new r.Z;const p=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,o=i.create();return i.translate(o,o,[-e.x,-e.y]),i.scale(o,o,[n,r]),i.translate(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,o=i.x,a=i.x+i.width,s=i.y,l=i.y+i.height,u=e.x,h=e.x+e.width,p=e.y,f=e.y+e.height,g=!(av&&(v=w,y<_?r.Z.set(d,-y,0):r.Z.set(d,_,0)):wv&&(v=S,x=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],c=i[3],d=i[4],p=i[5];return e.x=n.x*r+d,e.y=n.y*c+p,e.width=n.width*r,e.height=n.height*c,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=u.x=n.x,s.y=h.y=n.y,l.x=h.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(i),h.transform(i),l.transform(i),u.transform(i),e.x=o(s.x,l.x,u.x,h.x),e.y=o(s.y,l.y,u.y,h.y);var f=a(s.x,l.x,u.x,h.x),g=a(s.y,l.y,u.y,h.y);e.width=f-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}()},3510:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a{"use strict";n.d(e,{ZP:()=>o});var i=function(t){this.value=t},r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();const o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},1587:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(1610),r=[0,0],o=[0,0],a=new i.Z,s=new i.Z;const l=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i.Z;for(n=0;n<2;n++)this._axes[n]=new i.Z;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var u=0;u<4;u++)n[u].transform(e);i.Z.sub(r[0],n[1],n[0]),i.Z.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(u=0;u<2;u++)this._origin[u]=r[u].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,a,s,r,-1)&&(n=!1,r)||r||i.Z.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,l){for(var u=!0,h=0;h<2;h++){var c=this._axes[h];if(this._getProjMinMaxOnAxis(h,t._corners,r),this._getProjMinMaxOnAxis(h,e._corners,o),r[1]o[1]){if(u=!1,s)return u;var d=Math.abs(o[0]-r[1]),p=Math.abs(r[0]-o[1]);Math.min(d,p)>a.len()&&(d{"use strict";n.d(e,{L:()=>M,Z:()=>C});var i=n(5280),r=n(479),o=n(4990),a=n(3726),s=n(8554),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],h=[],c=[],d=[],p=[],f=[],g=Math.min,m=Math.max,v=Math.cos,y=Math.sin,_=Math.abs,x=Math.PI,b=2*x,w="undefined"!=typeof Float32Array,S=[];function T(t){return Math.round(t/x*1e8)/1e8%2*x}function M(t,e){var n=T(t[0]);n<0&&(n+=b);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=b?r=n+b:e&&n-r>=b?r=n-b:!e&&n>r?r=n+(b-T(n-r)):e&&n0&&(this._ux=_(n/o.KL/t)||0,this._uy=_(n/o.KL/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=_(t-this._xi),i=_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(l.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(l.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(l.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),S[0]=i,S[1]=r,M(S,o),i=S[0];var a=(r=S[1])-i;return this.addData(l.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=v(r)*n+t,this._yi=y(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){c[0]=c[1]=p[0]=p[1]=Number.MAX_VALUE,d[0]=d[1]=f[0]=f[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,u=0;for(t=0;tn||_(T)>i||p===e-1)&&(w=Math.sqrt(z*z+T*T),r=S,o=A);break;case l.C:var M=t[p++],C=t[p++],A=(S=t[p++],t[p++]),I=t[p++],D=t[p++];w=(0,s.Ci)(r,o,M,C,S,A,I,D,10),r=I,o=D;break;case l.Q:M=t[p++],C=t[p++],S=t[p++],A=t[p++];w=(0,s.wQ)(r,o,M,C,S,A,10),r=S,o=A;break;case l.A:var L=t[p++],P=t[p++],O=t[p++],E=t[p++],N=t[p++],k=t[p++],R=k+N;p+=1;t[p++];x&&(a=v(N)*O+L,u=y(N)*E+P),w=m(O,E)*g(b,Math.abs(k)),r=v(R)*O+L,o=y(R)*E+P;break;case l.R:a=r=t[p++],u=o=t[p++],w=2*t[p++]+2*t[p++];break;case l.Z:var z=a-r;T=u-o;w=Math.sqrt(z*z+T*T),r=a,o=u}w>=0&&(h[d++]=w,c+=w)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,c,d,p,f,x,b=this.data,w=this._ux,S=this._uy,T=this._len,M=e<1,C=0,A=0,I=0;if(!M||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=e*this._pathLen))t:for(var D=0;D0&&(t.lineTo(f,x),I=0),L){case l.M:n=r=b[D++],i=o=b[D++],t.moveTo(r,o);break;case l.L:a=b[D++],c=b[D++];var O=_(a-r),E=_(c-o);if(O>w||E>S){if(M){if(C+(it=d[A++])>p){var N=(p-C)/it;t.lineTo(r*(1-N)+a*N,o*(1-N)+c*N);break t}C+=it}t.lineTo(a,c),r=a,o=c,I=0}else{var k=O*O+E*E;k>I&&(f=a,x=c,I=k)}break;case l.C:var R=b[D++],z=b[D++],B=b[D++],Z=b[D++],F=b[D++],V=b[D++];if(M){if(C+(it=d[A++])>p){N=(p-C)/it;(0,s.Vz)(r,R,B,F,N,u),(0,s.Vz)(o,z,Z,V,N,h),t.bezierCurveTo(u[1],h[1],u[2],h[2],u[3],h[3]);break t}C+=it}t.bezierCurveTo(R,z,B,Z,F,V),r=F,o=V;break;case l.Q:R=b[D++],z=b[D++],B=b[D++],Z=b[D++];if(M){if(C+(it=d[A++])>p){N=(p-C)/it;(0,s.Lx)(r,R,B,N,u),(0,s.Lx)(o,z,Z,N,h),t.quadraticCurveTo(u[1],h[1],u[2],h[2]);break t}C+=it}t.quadraticCurveTo(R,z,B,Z),r=B,o=Z;break;case l.A:var G=b[D++],H=b[D++],U=b[D++],W=b[D++],j=b[D++],X=b[D++],Y=b[D++],q=!b[D++],K=U>W?U:W,J=_(U-W)>.001,Q=j+X,$=!1;if(M)C+(it=d[A++])>p&&(Q=j+X*(p-C)/it,$=!0),C+=it;if(J&&t.ellipse?t.ellipse(G,H,U,W,Y,j,Q,q):t.arc(G,H,K,j,Q,q),$)break t;P&&(n=v(j)*U+G,i=y(j)*W+H),r=v(Q)*U+G,o=y(Q)*W+H;break;case l.R:n=r=b[D],i=o=b[D+1],a=b[D++],c=b[D++];var tt=b[D++],et=b[D++];if(M){if(C+(it=d[A++])>p){var nt=p-C;t.moveTo(a,c),t.lineTo(a+g(nt,tt),c),(nt-=tt)>0&&t.lineTo(a+tt,c+g(nt,et)),(nt-=et)>0&&t.lineTo(a+m(tt-nt,0),c+et),(nt-=tt)>0&&t.lineTo(a,c+m(et-nt,0));break t}C+=it}t.rect(a,c,tt,et);break;case l.Z:if(M){var it;if(C+(it=d[A++])>p){N=(p-C)/it;t.lineTo(r*(1-N)+n*N,o*(1-N)+i*N);break t}C+=it}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=l,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}()},1610:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}()},7411:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>g,dN:()=>p,kY:()=>f});var i=n(2892),r=n(5280),o=i.identity,a=5e-5;function s(t){return t>a||t<-5e-5}var l=[],u=[],h=i.create(),c=Math.abs,d=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i.create(),e?this.getLocalTransform(n):o(n),t&&(e?i.mul(n,t,n):i.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var n=l[0]<0?-1:1,r=l[1]<0?-1:1,o=((l[0]-n)*e+n)/l[0]||0,a=((l[1]-r)*e+r)/l[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.mul(u,t.invTransform,e),e=u);var n=this.originX,r=this.originY;(n||r)&&(h[4]=n,h[5]=r,i.mul(u,e,h),u[4]-=n,u[5]-=r,e=u),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){f(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,h=t.x,c=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var f=n+s,g=r+l;e[4]=-f*o-d*g*a,e[5]=-g*a-p*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=p*o,e[2]=d*a,u&&i.rotate(e,e,u),e[4]+=n+h,e[5]+=r+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),p=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function f(t,e){for(var n=0;n{"use strict";n.d(e,{H9:()=>v,mJ:()=>y,qL:()=>_,u4:()=>f,zk:()=>p});var i=n(5280),r=n(8554),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,h=i.create(),c=i.create(),d=i.create();function p(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],s=i[0],l=i[1],u=i[1],h=1;h1e-4)return f[0]=t-n,f[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(h[0]=l(o)*n+t,h[1]=s(o)*r+e,c[0]=l(a)*n+t,c[1]=s(a)*r+e,m(f,h,c),v(g,h,c),(o%=u)<0&&(o+=u),(a%=u)<0&&(a+=u),o>a&&!p?a+=u:oo&&(d[0]=l(x)*n+t,d[1]=s(x)*r+e,m(f,d,f),v(g,d,g))}},8554:(t,e,n)=>{"use strict";n.d(e,{AZ:()=>S,Ci:()=>b,Jz:()=>T,Lx:()=>C,QC:()=>M,Vz:()=>_,Wr:()=>A,X_:()=>m,Zm:()=>w,af:()=>g,kD:()=>v,pP:()=>y,t1:()=>x,wQ:()=>I});var i=n(5280),r=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),u=1/3,h=(0,i.create)(),c=(0,i.create)(),d=(0,i.create)();function p(t){return t>-1e-8&&ta||t<-1e-8}function g(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function m(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function v(t,e,n,i,a,s){var h=i+3*(e-n)-t,c=3*(n-2*e+t),d=3*(e-t),f=t-a,g=c*c-3*h*d,m=c*d-9*h*f,v=d*d-3*c*f,y=0;if(p(g)&&p(m)){if(p(c))s[0]=0;else(D=-d/c)>=0&&D<=1&&(s[y++]=D)}else{var _=m*m-4*g*v;if(p(_)){var x=m/g,b=-x/2;(D=-c/h+x)>=0&&D<=1&&(s[y++]=D),b>=0&&b<=1&&(s[y++]=b)}else if(_>0){var w=o(_),S=g*c+1.5*h*(-m+w),T=g*c+1.5*h*(-m-w);(D=(-c-((S=S<0?-r(-S,u):r(S,u))+(T=T<0?-r(-T,u):r(T,u))))/(3*h))>=0&&D<=1&&(s[y++]=D)}else{var M=(2*g*c-3*h*m)/(2*o(g*g*g)),C=Math.acos(M)/3,A=o(g),I=Math.cos(C),D=(-c-2*A*I)/(3*h),L=(b=(-c+A*(I+l*Math.sin(C)))/(3*h),(-c+A*(I-l*Math.sin(C)))/(3*h));D>=0&&D<=1&&(s[y++]=D),b>=0&&b<=1&&(s[y++]=b),L>=0&&L<=1&&(s[y++]=L)}}return y}function y(t,e,n,i,r){var a=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(p(s)){if(f(a))(c=-l/a)>=0&&c<=1&&(r[u++]=c)}else{var h=a*a-4*s*l;if(p(h))r[0]=-a/(2*s);else if(h>0){var c,d=o(h),g=(-a-d)/(2*s);(c=(-a+d)/(2*s))>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function _(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function x(t,e,n,r,a,l,u,p,f,m,v){var y,_,x,b,w,S=.005,T=1/0;h[0]=f,h[1]=m;for(var M=0;M<1;M+=.05)c[0]=g(t,n,a,u,M),c[1]=g(e,r,l,p,M),(b=(0,i.distSquare)(h,c))=0&&b=0&&c<=1&&(r[u++]=c)}else{var h=s*s-4*a*l;if(p(h))(c=-s/(2*a))>=0&&c<=1&&(r[u++]=c);else if(h>0){var c,d=o(h),g=(-s-d)/(2*a);(c=(-s+d)/(2*a))>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function M(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function C(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function A(t,e,n,r,a,l,u,p,f){var g,m=.005,v=1/0;h[0]=u,h[1]=p;for(var y=0;y<1;y+=.05){c[0]=w(t,n,a,y),c[1]=w(e,r,l,y),(S=(0,i.distSquare)(h,c))=0&&S{"use strict";n.d(e,{UK:()=>h,A4:()=>u,YB:()=>l});var i=n(6387),r=Math.log(2);function o(t,e,n,i,a,s){var l=i+"-"+a,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var h=Math.round(Math.log((1<>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,s),u=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,s=[],l=[],u=!0,h=0;h<4;h++){var c=t[h].getBoundingClientRect(),d=2*h,p=c.left,f=c.top;s.push(p,f),u=u&&o&&p===o[d]&&f===o[d+1],l.push(t[h].offsetLeft,t[h].offsetTop)}return u&&r?r:(e.srcCoords=s,e[i]=n?a(l,s):a(s,l))}(l,s,o);if(u)return u(t,n,r),!0}return!1}function h(t){return"CANVAS"===t.nodeName.toUpperCase()}},6387:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r);const o=r},1158:(t,e,n)=>{"use strict";n.d(e,{OD:()=>c,Oo:()=>d,eV:()=>l,iP:()=>h,sT:()=>f,x1:()=>g,xg:()=>p});var i=n(6387),r=n(4058),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=i.default.browser.firefox&&+i.default.browser.version.split(".")[0]<39;function l(t,e,n,i){return n=n||{},i?u(t,e,n):s&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):u(t,e,n),n}function u(t,e,n){if(i.default.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,r.UK)(t)){var l=t.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if((0,r.A4)(a,t,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function h(t){return t||window.event}function c(t,e,n){if(null!=(e=h(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&l(t,r,e,n)}else{l(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,i){t.addEventListener(e,n,i)}function p(t,e,n,i){t.removeEventListener(e,n,i)}var f=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function g(t){return 2===t.which||3===t.which}},2892:(t,e,n)=>{"use strict";function i(){return[1,0,0,1,0,0]}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function u(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function h(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function c(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,{clone:()=>c,copy:()=>o,create:()=>i,identity:()=>r,invert:()=>h,mul:()=>a,rotate:()=>l,scale:()=>u,translate:()=>s})},3132:(t,e,n)=>{"use strict";n.d(e,{Uo:()=>o,g2:()=>h,n5:()=>i,qW:()=>u,rk:()=>r});var i=12,r="sans-serif",o=i+"px "+r;var a,s,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)c=h*t.length;else for(var d=0;d{"use strict";n.d(e,{Z:()=>l});function i(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function r(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function o(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function a(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function s(t,e){var n,i,r,s=7,l=0;n=t.length;var u=[];function h(n){var h=i[n],c=r[n],d=i[n+1],p=r[n+1];r[n]=c+p,n===l-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),l--;var f=a(t[d],t,h,c,0,e);h+=f,0!==(c-=f)&&0!==(p=o(t[h+c-1],t,d,p,p-1,e))&&(c<=p?function(n,i,r,l){var h=0;for(h=0;h=7||g>=7);if(m)break;v<0&&(v=0),v+=2}if((s=v)<1&&(s=1),1===i){for(h=0;h=0;h--)t[g+h]=t[f+h];return void(t[p]=u[d])}var m=s;for(;;){var v=0,y=0,_=!1;do{if(e(u[d],t[c])<0){if(t[p--]=t[c--],v++,y=0,0==--i){_=!0;break}}else if(t[p--]=u[d--],y++,v=0,1==--l){_=!0;break}}while((v|y)=0;h--)t[g+h]=t[f+h];if(0===i){_=!0;break}}if(t[p--]=u[d--],1==--l){_=!0;break}if(0!==(y=l-o(t[c],u,0,l,l-1,e))){for(l-=y,g=(p-=y)+1,f=(d-=y)+1,h=0;h=7||y>=7);if(_)break;m<0&&(m=0),m+=2}(s=m)<1&&(s=1);if(1===l){for(g=(p-=i)+1,f=(c-=i)+1,h=i-1;h>=0;h--)t[g+h]=t[f+h];t[p]=u[d]}else{if(0===l)throw new Error;for(f=p-(l-1),h=0;h1;){var t=l-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;h(t)}},forceMergeRuns:function(){for(;l>1;){var t=l-2;t>0&&r[t-1]=32;)e|=1&t,t>>=1;return t+e}(a);do{if((l=i(t,n,o,e))h&&(c=h),r(t,n,n+c,n+l,e),l=c}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(0!==a);u.forceMergeRuns()}}}},3051:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HashMap:()=>ot,RADIAN_TO_DEGREE:()=>dt,assert:()=>tt,bind:()=>N,clone:()=>y,concatArray:()=>st,createCanvas:()=>S,createHashMap:()=>at,createObject:()=>lt,curry:()=>k,defaults:()=>w,disableUserSelect:()=>ut,each:()=>I,eqNaN:()=>Y,extend:()=>b,filter:()=>P,find:()=>O,guid:()=>m,hasOwn:()=>ht,indexOf:()=>T,inherits:()=>M,isArray:()=>R,isArrayLike:()=>A,isBuiltInObject:()=>G,isDom:()=>U,isFunction:()=>z,isGradientObject:()=>W,isImagePatternObject:()=>j,isNumber:()=>F,isObject:()=>V,isPrimitive:()=>rt,isRegExp:()=>X,isString:()=>B,isStringSafe:()=>Z,isTypedArray:()=>H,keys:()=>E,logError:()=>v,map:()=>D,merge:()=>_,mergeAll:()=>x,mixin:()=>C,noop:()=>ct,normalizeCssArray:()=>$,reduce:()=>L,retrieve:()=>q,retrieve2:()=>K,retrieve3:()=>J,setAsPrimitive:()=>it,slice:()=>Q,trim:()=>et});var i=n(3132),r=L(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=L(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,h=s.slice,c=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311;function m(){return g++}function v(){for(var t=[],e=0;e{"use strict";function i(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t){return Math.sqrt(d(t))}n.r(e),n.d(e,{add:()=>s,applyTransform:()=>M,clone:()=>o,copy:()=>r,create:()=>i,dist:()=>x,distSquare:()=>w,distance:()=>_,distanceSquare:()=>b,div:()=>g,dot:()=>m,len:()=>h,lenSquare:()=>d,length:()=>c,lengthSquare:()=>p,lerp:()=>T,max:()=>A,min:()=>C,mul:()=>f,negate:()=>S,normalize:()=>y,scale:()=>v,scaleAndAdd:()=>l,set:()=>a,sub:()=>u});var c=h;function d(t){return t[0]*t[0]+t[1]*t[1]}var p=d;function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function m(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=h(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function _(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=_;function b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=b;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function T(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function M(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function C(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function A(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},2776:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(655),r=n(327);const o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,i.ZT)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n{"use strict";n.d(e,{ZP:()=>m,ik:()=>h,tj:()=>u});var i=n(655),r=n(5823),o=n(479),a=n(3051),s=n(4414),l="__zr_style_"+Math.round(10*Math.random()),u={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},h={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};u[l]=!0;var c=["z","z2","invisible"],d=["invisible"],p=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.ZT)(e,t),e.prototype._init=function(e){for(var n=(0,a.keys)(e),i=0;i{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},8154:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(3051),o=n(5823),a=n(479),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,i.ZT)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=r.indexOf(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n{"use strict";n.d(e,{ZP:()=>h});var i=n(655),r=n(7719),o=n(479),a=n(3051),s=(0,a.defaults)({x:0,y:0},r.tj),l={style:(0,a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r.ik.style)};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.createStyle=function(t){return(0,a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.Z(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r.ZP);u.prototype.type="image";const h=u},1754:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(7719),o=n(479),a=[];const s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,i.ZT)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n{"use strict";n.d(e,{Z:()=>r});var i=n(655);const r=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return(0,i.ZT)(e,t),e}(n(1797).Z)},327:(t,e,n)=>{"use strict";n.d(e,{$t:()=>A,ZP:()=>L});var i=n(655),r=n(7719),o=n(4014),a=n(3640),s=n(8554);function l(t,e,n,i,r,o,a,l,u,h,c){if(0===u)return!1;var d=u;return!(c>e+d&&c>i+d&&c>o+d&&c>l+d||ct+d&&h>n+d&&h>r+d&&h>a+d||hn||d+ur&&(r+=c);var f=Math.atan2(l,s);return f<0&&(f+=c),f>=i&&f<=r||f+c>=i&&f+c<=r}var p=n(7637),f=o.Z.CMD,g=2*Math.PI;var m=[-1,-1,-1],v=[-1,-1];function y(t,e,n,i,r,o,a,l,u,h){if(h>e&&h>i&&h>o&&h>l||h1&&(c=void 0,c=v[0],v[0]=v[1],v[1]=c),g=s.af(e,i,o,l,v[0]),f>1&&(y=s.af(e,i,o,l,v[1]))),2===f?xe&&l>i&&l>o||l=0&&h<=1){for(var c=0,d=s.Zm(e,i,o,h),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);m[0]=-l,m[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=g-1e-4){i=0,r=g;var h=o?1:-1;return a>=m[0]+t&&a<=m[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=g,r+=g);for(var d=0,p=0;p<2;p++){var f=m[p];if(f+t>a){var v=Math.atan2(s,f);h=o?1:-1;v<0&&(v=g+v),(v>=i&&v<=r||v+g>=i&&v+g<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),d+=h)}}return d}function b(t,e,n,i,r){for(var o,s,h,c,g=t.data,m=t.len(),v=0,b=0,w=0,S=0,T=0,M=0;M1&&(n||(v+=(0,p.Z)(b,w,S,T,i,r))),A&&(S=b=g[M],T=w=g[M+1]),C){case f.M:b=S=g[M++],w=T=g[M++];break;case f.L:if(n){if(a.m(b,w,g[M],g[M+1],e,i,r))return!0}else v+=(0,p.Z)(b,w,g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.C:if(n){if(l(b,w,g[M++],g[M++],g[M++],g[M++],g[M],g[M+1],e,i,r))return!0}else v+=y(b,w,g[M++],g[M++],g[M++],g[M++],g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.Q:if(n){if(u.m(b,w,g[M++],g[M++],g[M],g[M+1],e,i,r))return!0}else v+=_(b,w,g[M++],g[M++],g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.A:var I=g[M++],D=g[M++],L=g[M++],P=g[M++],O=g[M++],E=g[M++];M+=1;var N=!!(1-g[M++]);o=Math.cos(O)*L+I,s=Math.sin(O)*P+D,A?(S=o,T=s):v+=(0,p.Z)(b,w,o,s,i,r);var k=(i-I)*P/L+I;if(n){if(d(I,D,P,O,O+E,N,e,k,r))return!0}else v+=x(I,D,P,O,O+E,N,k,r);b=Math.cos(O+E)*L+I,w=Math.sin(O+E)*P+D;break;case f.R:if(S=b=g[M++],T=w=g[M++],o=S+g[M++],s=T+g[M++],n){if(a.m(S,T,o,T,e,i,r)||a.m(o,T,o,s,e,i,r)||a.m(o,s,S,s,e,i,r)||a.m(S,s,S,T,e,i,r))return!0}else v+=(0,p.Z)(o,T,o,s,i,r),v+=(0,p.Z)(S,s,S,T,i,r);break;case f.Z:if(n){if(a.m(b,w,S,T,e,i,r))return!0}else v+=(0,p.Z)(b,w,S,T,i,r);b=S,w=T}}return n||(h=w,c=T,Math.abs(h-c)<1e-4)||(v+=(0,p.Z)(b,w,S,T,i,r)||0),0!==v}var w=n(3051),S=n(1092),T=n(4990),M=n(4414),C=n(7411),A=(0,w.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r.tj),I={style:(0,w.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r.ik.style)},D=C.dN.concat(["invisible","culling","z","z2","zlevel","parent"]);const L=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.ZT)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?T.vU:e>.2?T.iv:T.GD}if(t)return T.GD}return T.vU},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,w.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===(0,S.lum)(t,0)0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&M.RH)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return b(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return b(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=M.RH,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:(0,w.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&M.RH)},e.prototype.createStyle=function(t){return(0,w.createObject)(A,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,w.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=(0,w.extend)({},i.shape),(0,w.extend)(s,n.shape)):(s=(0,w.extend)({},r?this.shape:i.shape),(0,w.extend)(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=(0,w.extend)({},this.shape);for(var u={},h=(0,w.keys)(s),c=0;c{"use strict";n.d(e,{Z:()=>r});var i=n(655);const r=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return(0,i.ZT)(e,t),e}(n(1797).Z)},1505:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(655),r=n(7719),o=n(423),a=n(327),s=n(3051),l=n(3132),u=(0,s.defaults)({strokeFirst:!0,font:l.Uo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.$t),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,s.createObject)(u,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,o.lP)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(r.ZP);h.prototype.type="tspan";const c=h},6498:(t,e,n)=>{"use strict";n.d(e,{VG:()=>_,Y1:()=>b,ZP:()=>I});var i=n(655),r=n(6918),o=n(1505),a=n(3051),s=n(423),l=n(4535),u=n(5151),h=n(479),c=n(7719),d=n(3132),p={fill:"#000"},f={style:(0,a.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},c.ik.style)},g=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=p,n.attr(e),n}return(0,i.ZT)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,z=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),B=a.calculatedLineHeight,Z=0;Z=0&&"right"===(O=w[P]).align;)this._placeToken(O,t,T,v,L,"right",_),M-=O.width,L-=O.width,P--;for(D+=(i-(D-m)-(y-L)-M)/2;I<=P;)O=w[I],this._placeToken(O,t,T,v,D+O.width/2,"center",_),D+=O.width,I++;v+=T}},e.prototype._placeToken=function(t,e,n,i,r,l,u){var c=e.rich[t.styleName]||{};c.text=t.text;var p=t.verticalAlign,f=i+n/2;"top"===p?f=i+t.height/2:"bottom"===p&&(f=i+n-t.height/2),!t.isLineHolder&&A(c)&&this._renderBackground(c,e,"right"===l?r-t.width:"center"===l?r-t.width/2:r,f-t.height/2,t.width,t.height);var g=!!c.backgroundColor,m=t.textPadding;m&&(r=M(r,l,m),f-=t.height/2-m[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.Z),y=v.createStyle();v.useStyle(y);var _=this._defaultStyle,b=!1,w=0,C=T("fill"in c?c.fill:"fill"in e?e.fill:(b=!0,_.fill)),I=S("stroke"in c?c.stroke:"stroke"in e?e.stroke:g||u||_.autoStroke&&!b?null:(w=2,_.stroke)),D=c.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=r,y.y=f,D&&(y.shadowBlur=c.textShadowBlur||e.textShadowBlur||0,y.shadowColor=c.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=c.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=c.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=l,y.textBaseline="middle",y.font=t.font||d.Uo,y.opacity=(0,a.retrieve3)(c.opacity,e.opacity,1),x(y,c),I&&(y.lineWidth=(0,a.retrieve3)(c.lineWidth,e.lineWidth,w),y.lineDash=(0,a.retrieve2)(c.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=I),C&&(y.fill=C);var L=t.contentWidth,P=t.contentHeight;v.setBoundingRect(new h.Z((0,s.M3)(y.x,L,y.textAlign),(0,s.mU)(y.y,P,y.textBaseline),L,P))},e.prototype._renderBackground=function(t,e,n,i,r,o){var s,h,c,d=t.backgroundColor,p=t.borderWidth,f=t.borderColor,g=d&&d.image,m=d&&!g,v=t.borderRadius,y=this;if(m||t.lineHeight||p&&f){(s=this._getOrCreateChild(u.Z)).useStyle(s.createStyle()),s.style.fill=null;var _=s.shape;_.x=n,_.y=i,_.width=r,_.height=o,_.r=v,s.dirtyShape()}if(m)(c=s.style).fill=d||null,c.fillOpacity=(0,a.retrieve2)(t.fillOpacity,1);else if(g){(h=this._getOrCreateChild(l.ZP)).onload=function(){y.dirtyStyle()};var x=h.style;x.image=d.image,x.x=n,x.y=i,x.width=r,x.height=o}p&&f&&((c=s.style).lineWidth=p,c.stroke=f,c.strokeOpacity=(0,a.retrieve2)(t.strokeOpacity,1),c.lineDash=t.borderDash,c.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(c.strokeFirst=!0,c.lineWidth*=2));var b=(s||h).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return b(t)&&(e=[t.fontStyle,t.fontWeight,_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,a.trim)(e)||t.textFont||t.font},e}(c.ZP),m={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function _(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d.n5+"px":t+"px":t}function x(t,e){for(var n=0;n{"use strict";n.d(e,{RH:()=>o,SE:()=>r,YV:()=>i});var i=1,r=2,o=4},8007:(t,e,n)=>{"use strict";n.d(e,{Gq:()=>s,ko:()=>a,v5:()=>u});var i=n(2528),r=n(3132),o=new i.ZP(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,i,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),h={hostEl:n,cb:i,cbPayload:a};return s?!u(e=s.image)&&s.pending.push(h):((e=r.qW.loadImage(t,l,l)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[h]})),e}return t}return e}function l(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e{"use strict";n.d(e,{$F:()=>g,NY:()=>c,aF:()=>s});var i=n(8007),r=n(3051),o=n(423),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=l(e,n,i,r);for(var a=0,s=o.length;a=l;h++)u-=l;var c=(0,o.dz)(n,e);return c>u&&(n="",c=0),u=t-c,a.ellipsis=n,a.ellipsisWidth=c,a.contentWidth=u,a.containerWidth=t,a}function u(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=(0,o.dz)(t,i);if(a<=n)return t;for(var s=0;;s++){if(a<=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?h(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,l),a=(0,o.dz)(t,i)}return""===t&&(t=e.placeholder),t}function h(t,e,n,i){for(var r=0,o=0,a=t.length;ov&&f){var y=Math.floor(v/d);n=n.slice(0,y)}if(t&&h&&null!=g)for(var x=l(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b=0;bp&&m(n,t.substring(p,g),e,d),m(n,l[2],e,d,l[1]),p=a.lastIndex}ph){I>0?(M.tokens=M.tokens.slice(0,I),S(M,A,C),n.lines=n.lines.slice(0,T+1)):n.lines=n.lines.slice(0,T);break t}var N=D.width,k=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))Z.percentWidth=N,v.push(Z),Z.contentWidth=(0,o.dz)(Z.text,O);else{if(k){var R=D.backgroundColor,z=R&&R.image;z&&(z=i.ko(z),i.v5(z)&&(Z.width=Math.max(Z.width,z.width*E/z.height)))}var B=b&&null!=u?u-A:null;null!=B&&B0&&v+i.accumWidth>i.width&&(a=e.split("\n"),f=!0),i.accumWidth=v}else{var y=_(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+m,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var x=0;x=33&&e<=383}(t)||!!v[t]}function _(t,e,n,i,r){for(var a=[],s=[],l="",u="",h=0,c=0,d=0;dn:r+c+f>n)?c?(l||u)&&(g?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=p,l="",c=h+=f):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=p,c=f)):g?(a.push(u),s.push(h),u=p,h=f):(a.push(p),s.push(f)):(c+=f,g?(u+=p,h+=f):(u&&(l+=u,u="",h=0),l+=p))}else u&&(l+=u,c+=h),a.push(l),s.push(c),l="",u="",h=0,c=0}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}},924:(t,e,n)=>{"use strict";n.d(e,{L:()=>r});var i=n(5280);function r(t,e,n){var r=e.smooth,o=e.points;if(o&&o.length>=2){if(r){var a=function(t,e,n,r){var o,a,s,l,u=[],h=[],c=[],d=[];if(r){s=[1/0,1/0],l=[-1/0,-1/0];for(var p=0,f=t.length;p{"use strict";n.d(e,{Pw:()=>o,_3:()=>r,vu:()=>a});var i=Math.round;function r(t,e,n){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u?(i(2*r)===i(2*o)&&(t.x1=t.x2=a(r,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=a(s,u,!0)),t):t}}function o(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,s=e.height;t.x=i,t.y=r,t.width=o,t.height=s;var l=n&&n.lineWidth;return l?(t.x=a(i,l,!0),t.y=a(r,l,!0),t.width=Math.max(a(i+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(r+s,l,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}},4826:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(r.ZP);a.prototype.type="arc";const s=a},4174:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(655),r=n(327),o=n(5280),a=n(8554),s=[],l=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function u(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?a.X_:a.af)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a.X_:a.af)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?a.AZ:a.Zm)(t.x1,t.cpx1,t.x2,e),(n?a.AZ:a.Zm)(t.y1,t.cpy1,t.y2,e)]}var h=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,l=e.cpx1,u=e.cpy1,h=e.cpx2,c=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==h||null==c?(d<1&&((0,a.Lx)(n,l,r,d,s),l=s[1],r=s[2],(0,a.Lx)(i,u,o,d,s),u=s[1],o=s[2]),t.quadraticCurveTo(l,u,r,o)):(d<1&&((0,a.Vz)(n,l,h,r,d,s),l=s[1],h=s[2],r=s[3],(0,a.Vz)(i,u,c,o,d,s),u=s[1],c=s[2],o=s[3]),t.bezierCurveTo(l,u,h,c,r,o)))},e.prototype.pointAt=function(t){return u(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=u(this.shape,t,!0);return o.normalize(e,e)},e}(r.ZP);h.prototype.type="bezier-curve";const c=h},9538:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(r.ZP);a.prototype.type="circle";const s=a},2797:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(r.ZP);a.prototype.type="ellipse";const s=a},2095:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(655),r=n(327),o=n(4111),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,i,r,s;if(this.subPixelOptimize){var l=(0,o._3)(a,e,this.style);n=l.x1,i=l.y1,r=l.x2,s=l.y2}else n=e.x1,i=e.y1,r=e.x2,s=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,i),u<1&&(r=n*(1-u)+r*u,s=i*(1-u)+s*u),t.lineTo(r,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(r.ZP);l.prototype.type="line";const u=l},5094:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(327),o=n(924),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.L(t,e,!0)},e}(r.ZP);s.prototype.type="polygon";const l=s},2514:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(327),o=n(924),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.L(t,e,!1)},e}(r.ZP);s.prototype.type="polyline";const l=s},5151:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(655),r=n(327);var o=n(4111),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var l=(0,o.Pw)(s,e,this.style);n=l.x,i=l.y,r=l.width,a=l.height,l.r=e.r,e=l}else n=e.x,i=e.y,r=e.width,a=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r.ZP);l.prototype.type="rect";const u=l},5795:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(r.ZP);a.prototype.type="ring";const s=a},7214:(t,e,n)=>{"use strict";n.d(e,{C:()=>b});var i=n(655),r=n(327),o=n(3051),a=Math.PI,s=2*a,l=Math.sin,u=Math.cos,h=Math.acos,c=Math.atan2,d=Math.abs,p=Math.sqrt,f=Math.max,g=Math.min,m=1e-4;function v(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/p(s*s+l*l),h=u*l,c=-u*s,d=t+h,g=e+c,m=n+h,v=i+c,y=(d+m)/2,_=(g+v)/2,x=m-d,b=v-g,w=x*x+b*b,S=r-o,T=d*v-m*g,M=(b<0?-1:1)*p(f(0,S*S*w-T*T)),C=(T*b-x*M)/w,A=(-T*x-b*M)/w,I=(T*b+x*M)/w,D=(-T*x+b*M)/w,L=C-y,P=A-_,O=I-y,E=D-_;return L*L+P*P>O*O+E*E&&(C=I,A=D),{cx:C,cy:A,x0:-h,y0:-c,x1:C*(r/S-1),y1:A*(r/S-1)}}function y(t,e){var n,i=f(e.r,0),r=f(e.r0||0,0),y=i>0;if(y||r>0){if(y||(i=r,r=0),r>i){var _=i;i=r,r=_}var x=e.startAngle,b=e.endAngle;if(!isNaN(x)&&!isNaN(b)){var w=e.cx,S=e.cy,T=!!e.clockwise,M=d(b-x),C=M>s&&M%s;if(C>m&&(M=C),i>m)if(M>s-m)t.moveTo(w+i*u(x),S+i*l(x)),t.arc(w,S,i,x,b,!T),r>m&&(t.moveTo(w+r*u(b),S+r*l(b)),t.arc(w,S,r,b,x,T));else{var A=void 0,I=void 0,D=void 0,L=void 0,P=void 0,O=void 0,E=void 0,N=void 0,k=void 0,R=void 0,z=void 0,B=void 0,Z=void 0,F=void 0,V=void 0,G=void 0,H=i*u(x),U=i*l(x),W=r*u(b),j=r*l(b),X=M>m;if(X){var Y=e.cornerRadius;Y&&(A=(n=function(t){var e;if((0,o.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(Y))[0],I=n[1],D=n[2],L=n[3]);var q=d(i-r)/2;if(P=g(q,D),O=g(q,L),E=g(q,A),N=g(q,I),z=k=f(P,O),B=R=f(E,N),(k>m||R>m)&&(Z=i*u(b),F=i*l(b),V=r*u(x),G=r*l(x),Mm){var it=g(D,z),rt=g(L,z),ot=v(V,G,H,U,i,it,T),at=v(Z,F,W,j,i,rt,T);t.moveTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),z0&&t.arc(w+ot.cx,S+ot.cy,it,c(ot.y0,ot.x0),c(ot.y1,ot.x1),!T),t.arc(w,S,i,c(ot.cy+ot.y1,ot.cx+ot.x1),c(at.cy+at.y1,at.cx+at.x1),!T),rt>0&&t.arc(w+at.cx,S+at.cy,rt,c(at.y1,at.x1),c(at.y0,at.x0),!T))}else t.moveTo(w+H,S+U),t.arc(w,S,i,x,b,!T);else t.moveTo(w+H,S+U);if(r>m&&X)if(B>m){it=g(A,B),ot=v(W,j,Z,F,r,-(rt=g(I,B)),T),at=v(H,U,V,G,r,-it,T);t.lineTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),B0&&t.arc(w+ot.cx,S+ot.cy,rt,c(ot.y0,ot.x0),c(ot.y1,ot.x1),!T),t.arc(w,S,r,c(ot.cy+ot.y1,ot.cx+ot.x1),c(at.cy+at.y1,at.cx+at.x1),T),it>0&&t.arc(w+at.cx,S+at.cy,it,c(at.y1,at.x1),c(at.y0,at.x0),!T))}else t.lineTo(w+W,S+j),t.arc(w,S,r,b,x,T);else t.lineTo(w+W,S+j)}else t.moveTo(w,S);t.closePath()}}}var _=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},x=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new _},e.prototype.buildPath=function(t,e){y(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r.ZP);x.prototype.type="sector";const b=x},6076:(t,e,n)=>{"use strict";n.d(e,{Z:()=>wt});var i=n(4839),r=n(327),o=n(4535),a=n(423),s=n(1505),l=Math.sin,u=Math.cos,h=Math.PI,c=2*Math.PI,d=180/h;const p=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,r,o,a,s,p){var f=s-a,g=!p,m=Math.abs(f),v=(0,i.zT)(m-c)||(g?f>=c:-f>=c),y=f>0?f%c:f%c+c,_=!1;_=!!v||!(0,i.zT)(m)&&y>=h==!!g;var x=t+n*u(a),b=e+r*l(a);this._start&&this._add("M",x,b);var w=Math.round(o*d);if(v){var S=1/this._p,T=(g?1:-1)*(c-S);this._add("A",n,r,w,1,+g,t+n*u(a+T),e+r*l(a+T)),S>.01&&this._add("A",n,r,w,0,+g,x,b)}else{var M=t+n*u(s),C=e+r*l(s);this._add("A",n,r,w,+_,+g,M,C)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c"}(r,e.attrs)+(e.text||"")+(i?""+n+(0,g.map)(i,(function(e){return t(e)})).join(n)+n:"")+("")}(t)}function C(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function A(t,e,n,i){return T("svg","root",{width:t,height:e,xmlns:b,"xmlns:xlink":w,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var I=n(8007),D=n(7411),L=n(4014),P=n(2776),O=n(5188),E={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},N="transform-origin";function k(t,e,n){var r=(0,g.extend)({},t.shape);(0,g.extend)(r,e),t.buildPath(n,r);var o=new p;return o.reset((0,i.Gk)(t)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function R(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[N]=n+"px "+i+"px")}var z={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function B(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Z(t){return(0,g.isString)(t)?E[t]?"cubic-bezier("+E[t]+")":(0,O.H)(t)?t:"":""}function F(t,e,n,r){var o=t.animators,a=o.length,s=[];if(t instanceof P.Z){var l=function(t,e,n){var i,r,o=t.shape.paths,a={};if((0,g.each)(o,(function(t){var e=C(n.zrId);e.animation=!0,F(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=(0,g.keys)(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var d=h[c];a[c]=a[c]||{d:""},a[c].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=B(a,n);return i.replace(r,s)}}(t,e,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var u={},h=0;h0})).length)return B(c,n)+" "+o[0]+" both"}for(var y in u){(l=v(u[y]))&&s.push(l)}if(s.length){var _=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+_]={animation:s.join(",")},e.class=_}}var V=n(6498),G=n(3132),H=Math.round;function U(t){return t&&(0,g.isString)(t.src)}function W(t){return t&&(0,g.isFunction)(t.toDataURL)}function j(t,e,n,r){x((function(o,a){var s="fill"===o||"stroke"===o;s&&(0,i.H3)(a)?function(t,e,n,r){var o,a=t[n],s={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if((0,i.I1)(a))o="linearGradient",s.x1=a.x,s.y1=a.y,s.x2=a.x2,s.y2=a.y2;else{if(!(0,i.gO)(a))return void 0;o="radialGradient",s.cx=(0,g.retrieve2)(a.x,.5),s.cy=(0,g.retrieve2)(a.y,.5),s.r=(0,g.retrieve2)(a.r,.5)}for(var l=a.colorStops,u=[],h=0,c=l.length;hl?mt(t,null==n[c+1]?null:n[c+1].elm,n,s,c):vt(t,e,a,l))}(n,i,r):dt(r)?(dt(t.text)&&ut(n,""),mt(n,null,r,0,r.length-1)):dt(i)?vt(n,i,0,i.length-1):dt(t.text)&&ut(n,""):t.text!==e.text&&(dt(i)&&vt(n,i,0,i.length-1),ut(n,e.text)))}var xt=n(5787),bt=0;const wt=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=(0,g.extend)({},n),this.root=t,this._id="zr"+bt++,this._oldVNode=A(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=S("svg");yt(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(ft(t,e))_t(t,e);else{var n=t.elm,i=st(n);gt(e),null!==i&&(rt(i,e.elm,lt(n)),vt(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return et(t,C(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,o=this._height,a=C(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var s=[];if(n&&"none"!==n){var l=(0,i.ut)(n),u=l.color,h=l.opacity;this._bgVNode=T("rect","bg",{width:r,height:o,x:"0",y:"0",id:"0",fill:u,"fill-opacity":h}),s.push(this._bgVNode)}else this._bgVNode=null;var c=t.compress?null:this._mainVNode=T("g","main",{},[]);this._paintList(e,a,c?c.children:s),c&&s.push(c);var d=(0,g.map)((0,g.keys)(a.defs),(function(t){return a.defs[t]}));if(d.length&&s.push(T("defs","defs",{},d)),t.animation){var p=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=(0,g.map)((0,g.keys)(t),(function(e){return e+r+(0,g.map)((0,g.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=(0,g.map)((0,g.keys)(e),(function(t){return"@keyframes "+t+r+(0,g.map)((0,g.keys)(e[t]),(function(n){return n+r+(0,g.map)((0,g.keys)(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}(a.cssNodes,a.cssAnims,{newline:!0});if(p){var f=T("style","stl",{},[],p);s.push(f)}}return A(r,o,s,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},M(this.renderToVNode({animation:(0,g.retrieve2)(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:(0,g.retrieve2)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=(0,i.ut)(t),r=n.color,o=n.opacity;e.elm.setAttribute("fill",r),o<1&&e.elm.setAttribute("fill-opacity",o)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var m=f+1;m{"use strict";n.d(e,{Cv:()=>v,Gk:()=>S,H3:()=>b,I1:()=>_,Pn:()=>c,R:()=>y,gA:()=>T,gO:()=>x,i2:()=>g,jY:()=>p,m1:()=>w,mU:()=>f,n1:()=>m,oF:()=>M,qV:()=>d,ut:()=>s,zT:()=>u});var i=n(3051),r=n(1092),o=n(6387),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=(0,r.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function u(t){return t-1e-4}function h(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function d(t){return"matrix("+h(t[0])+","+h(t[1])+","+h(t[2])+","+h(t[3])+","+c(t[4])+","+c(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return v(t)||function(t){return t&&!!t.svgElement}(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function b(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function T(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.RADIAN_TO_DEGREE,o=(0,i.retrieve2)(t.scaleX,1),s=(0,i.retrieve2)(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,h=[];return(e||n)&&h.push("translate("+e+"px,"+n+"px)"),r&&h.push("rotate("+r+")"),1===o&&1===s||h.push("scale("+o+","+s+")"),(l||u)&&h.push("skew("+a(l*i.RADIAN_TO_DEGREE)+"deg, "+a(u*i.RADIAN_TO_DEGREE)+"deg)"),h.join(" ")}var M=o.default.hasGlobalWindow&&(0,i.isFunction)(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}},1092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{fastLerp:()=>x,fastMapToColor:()=>b,lerp:()=>w,lift:()=>y,lum:()=>A,mapToColor:()=>S,modifyAlpha:()=>M,modifyHSL:()=>T,parse:()=>m,random:()=>I,stringify:()=>C,toHex:()=>_});var i=n(2528),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(t){return(t=Math.round(t))<0?0:t>255?255:t}function a(t){return t<0?0:t>1?1:t}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function c(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i.ZP(20),f=null;function g(t,e){f&&d(f,e),f=p.put(t,f||e.slice())}function m(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in r)return d(e,r[i]),g(t,e),e;var o,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(o=parseInt(i.slice(1,4),16))>=0&&o<=4095?(c(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(i.slice(4),16)/15:1),g(t,e),e):void c(e,0,0,0,1):7===a||9===a?(o=parseInt(i.slice(1,7),16))>=0&&o<=16777215?(c(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(i.slice(7),16)/255:1),g(t,e),e):void c(e,0,0,0,1):void 0;var u=i.indexOf("("),h=i.indexOf(")");if(-1!==u&&h+1===a){var f=i.substr(0,u),m=i.substr(u+1,h-(u+1)).split(","),y=1;switch(f){case"rgba":if(4!==m.length)return 3===m.length?c(e,+m[0],+m[1],+m[2],1):c(e,0,0,0,1);y=l(m.pop());case"rgb":return 3!==m.length?void c(e,0,0,0,1):(c(e,s(m[0]),s(m[1]),s(m[2]),y),g(t,e),e);case"hsla":return 4!==m.length?void c(e,0,0,0,1):(m[3]=l(m[3]),v(m,e),g(t,e),e);case"hsl":return 3!==m.length?void c(e,0,0,0,1):(v(m,e),g(t,e),e);default:return}}c(e,0,0,0,1)}}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),r=l(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return c(e=e||[],o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var n=m(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return C(n,4===n.length?"rgba":"rgb")}}function _(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=e[r],u=e[s],c=i-r;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=a(h(l[3],u[3],c)),n}}var b=x;function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=m(e[r]),u=m(e[s]),c=i-r,d=C([o(h(l[0],u[0],c)),o(h(l[1],u[1],c)),o(h(l[2],u[2],c)),a(h(l[3],u[3],c))],"rgba");return n?{color:d,leftIndex:r,rightIndex:s,value:i}:d}}var S=w;function T(t,e,n,i){var r,o=m(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=l(n)),null!=i&&(o[2]=l(i)),C(v(o),"rgba")}function M(t,e){var n=m(t);if(n&&null!=e)return n[3]=a(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function A(t,e){var n=m(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function I(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},7494:(t,e,n)=>{"use strict";n.d(e,{U5:()=>D,iR:()=>C,Pc:()=>A,AA:()=>I});var i=n(655),r=n(327),o=n(4014),a=n(5280),s=o.Z.CMD,l=[[],[],[]],u=Math.sqrt,h=Math.atan2;function c(t,e){if(e){var n,i,r,o,c,d,p=t.data,f=t.len(),g=s.M,m=s.C,v=s.L,y=s.R,_=s.A,x=s.Q;for(r=0,o=0;r1&&(a*=p(x),s*=p(x));var b=(r===o?-1:1)*p((a*a*(s*s)-a*a*(v*v)-s*s*(d*d))/(a*a*(v*v)+s*s*(d*d)))||0,w=b*a*v/s,S=b*-s*d/a,T=(t+n)/2+g(c)*w-f(c)*S,M=(e+i)/2+f(c)*w+g(c)*S,C=_([1,0],[(d-w)/a,(v-S)/s]),A=[(d-w)/a,(v-S)/s],I=[(-1*d-w)/a,(-1*v-S)/s],D=_(A,I);if(y(A,I)<=-1&&(D=m),y(A,I)>=1&&(D=0),D<0){var L=Math.round(D/m*1e6)/1e6;D=2*m+L%2*m}h.addData(u,T,M,a,s,C,D,c,o)}var b=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.applyTransform=function(t){},e}(r.ZP);function T(t){return null!=t.setData}function M(t,e){var n=function(t){var e=new o.Z;if(!t)return e;var n,i=0,r=0,a=i,s=r,l=o.Z.CMD,u=t.match(b);if(!u)return e;for(var h=0;h{"use strict";n.r(e),n.d(e,{dispose:()=>ot,disposeAll:()=>at,getInstance:()=>st,init:()=>rt,registerPainter:()=>lt,version:()=>ut});var i=n(6387),r=n(3051),o=n(655),a=n(5280),s=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};const l=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;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(new s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=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(new s(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=a,e!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,t),"dragleave",t.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();var u=n(3510),h=n(1158),c=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=d(r)/d(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},f="silent";function g(){h.sT(this.event)}var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,o.ZT)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(u.Z),v=function(t,e){this.x=t,this.y=e},y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._hovered=new v(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new m,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new l(o),o}return(0,o.ZT)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(r.each(y,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=b(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new v(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new v(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:g}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new v(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=x(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==f)){r.target=i[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new c);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new v;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(u.Z);function x(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||f}return!1}function b(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){_.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,s=b(this,r,o);if("mouseup"===t&&s||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const w=_;var S=n(9455),T=n(4414),M=!1;function C(){M||(M=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function A(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}const I=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=A}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(C(),u.z=0),isNaN(u.z2)&&(C(),u.z2=0),isNaN(u.zlevel)&&(C(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();var D=n(2795),L=n(5622);function P(){return(new Date).getTime()}const O=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return(0,o.ZT)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=P()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,D.Z)((function e(){t._running&&((0,D.Z)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=P(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=P(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=P()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new L.Z(t,e.loop);return this.addAnimator(n),n},e}(u.Z);var E,N,k=i.default.domSupported,R=(N={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:E=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:r.map(E,(function(t){var e=t.replace("mouse","pointer");return N.hasOwnProperty(e)?e:t}))}),z=["mousemove","mouseup"],B=["pointermove","pointerup"],Z=!1;function F(t){var e=t.pointerType;return"pen"===e||"touch"===e}function V(t){t&&(t.zrByTouch=!0)}function G(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var H=function(t,e){this.stopPropagation=r.noop,this.stopImmediatePropagation=r.noop,this.preventDefault=r.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},U={mousedown:function(t){t=(0,h.OD)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,h.OD)(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,h.OD)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){G(this,(t=(0,h.OD)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Z=!0,t=(0,h.OD)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Z||(t=(0,h.OD)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){V(t=(0,h.OD)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),U.mousemove.call(this,t),U.mousedown.call(this,t)},touchmove:function(t){V(t=(0,h.OD)(this.dom,t)),this.handler.processGesture(t,"change"),U.mousemove.call(this,t)},touchend:function(t){V(t=(0,h.OD)(this.dom,t)),this.handler.processGesture(t,"end"),U.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&U.click.call(this,t)},pointerdown:function(t){U.mousedown.call(this,t)},pointermove:function(t){F(t)||U.mousemove.call(this,t)},pointerup:function(t){U.mouseup.call(this,t)},pointerout:function(t){F(t)||U.mouseout.call(this,t)}};r.each(["click","dblclick","contextmenu"],(function(t){U[t]=function(e){e=(0,h.OD)(this.dom,e),this.trigger(t,e)}}));var W={pointermove:function(t){F(t)||W.mousemove.call(this,t)},pointerup:function(t){W.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function j(t,e){var n=e.domHandlers;i.default.pointerEventsSupported?r.each(R.pointer,(function(i){Y(e,i,(function(e){n[i].call(t,e)}))})):(i.default.touchEventsSupported&&r.each(R.touch,(function(i){Y(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),r.each(R.mouse,(function(i){Y(e,i,(function(r){r=(0,h.iP)(r),e.touching||n[i].call(t,r)}))})))}function X(t,e){function n(n){Y(e,n,(function(i){i=(0,h.iP)(i),G(t,i.target)||(i=function(t,e){return(0,h.OD)(t.dom,new H(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}i.default.pointerEventsSupported?r.each(B,n):i.default.touchEventsSupported||r.each(z,n)}function Y(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,(0,h.Oo)(t.domTarget,e,n,i)}function q(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,h.xg)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var K=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const J=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new K(e,U),k&&(i._globalHandlerScope=new K(document,W)),j(i,i._localHandlerScope),i}return(0,o.ZT)(e,t),e.prototype.dispose=function(){q(this._localHandlerScope),k&&q(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,k&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?X(this,e):q(e)}},e}(u.Z);var Q=n(1092),$=n(4990),tt=n(8154),et={},nt={};var it=function(){function t(t,e,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new I,s=n.renderer||"canvas";et[s]||(s=r.keys(et)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new et[s](e,a,n,t),u=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var h=i.default.node||i.default.worker||u?null:new J(l.getViewportRoot(),l.root);this.handler=new w(a,l,h,l.root),this.animation=new O({stage:{update:u?null:function(){return o._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,Q.lum)(t,1)<$.Ak;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{Axis:()=>s.RD,ChartView:()=>s.TA,ComponentModel:()=>s.tF,ComponentView:()=>s.Ir,List:()=>s.aV,Model:()=>s.Hn,PRIORITY:()=>s.Hr,SeriesModel:()=>s.wJ,color:()=>s.$_,connect:()=>s.$j,dataTool:()=>s.Ok,default:()=>p,dependencies:()=>s.HO,disConnect:()=>s.eU,disconnect:()=>s.zP,dispose:()=>s.B9,env:()=>s.OB,extendChartView:()=>s.Zy,extendComponentModel:()=>s.tv,extendComponentView:()=>s.Sp,extendSeriesModel:()=>s.Zr,format:()=>s.WU,getCoordinateSystemDimensions:()=>s.wL,getInstanceByDom:()=>s.JE,getInstanceById:()=>s.rp,getMap:()=>s.FU,graphic:()=>s.Q,helper:()=>s._y,init:()=>s.S1,innerDrawElementOnCanvas:()=>s.z$,matrix:()=>s.pI,number:()=>s.Rx,parseGeoJSON:()=>s.Nu,parseGeoJson:()=>s.pQ,registerAction:()=>s.zl,registerCoordinateSystem:()=>s.RS,registerLayout:()=>s.qR,registerLoading:()=>s.yn,registerLocale:()=>s.I2,registerMap:()=>s.je,registerPostInit:()=>s.sq,registerPostUpdate:()=>s.Br,registerPreprocessor:()=>s.ds,registerProcessor:()=>s.Pu,registerTheme:()=>s.aW,registerTransform:()=>s.rV,registerUpdateLifecycle:()=>s.YK,registerVisual:()=>s.Og,setCanvasCreator:()=>s.jQ,setPlatformAPI:()=>s.g2,throttle:()=>s.P2,time:()=>s.XV,use:()=>s.D$,util:()=>s.D5,vector:()=>s.xr,version:()=>s.i8,zrUtil:()=>s.gf,zrender:()=>s.x_});const e={...{metadata:!0,svgRender:!1,switchMode:!1,echartsOption:{aria:{show:!0,description:"This is a force-oriented graph chart that depicts the relationship between ip nodes."},toolbox:{show:!0,iconStyle:{borderColor:"#fff"},feature:{restore:{show:!0,title:"Restore view"},saveAsImage:{show:!0,title:"Save image"}}}},graphConfig:{series:{layout:"force",label:{show:!0,color:"#fff",position:"top"},force:{gravity:.1,edgeLength:[20,60],repulsion:120},roam:!0,draggable:!0,legendHoverLink:!0,emphasis:{focus:"none",lineStyle:{color:"#3acc38",opacity:1}},nodeStyle:{color:"#ffebc4"},linkStyle:{width:6,color:"#1ba619"},nodeSize:"15"},baseOptions:{backgroundColor:"#282222"}},mapOptions:{roam:!0,nodeConfig:{type:"scatter",label:{show:!0,color:"#000000",position:"top",formatter:"{b}"},nodeStyle:{color:"#1566a9"},nodeSize:"17"},linkConfig:{linkStyle:{width:5,color:"#1ba619"},emphasis:{focus:"none",lineStyle:{color:"#3acc38",opacity:1}}},baseOptions:{toolbox:{show:!1}}},mapTileConfig:[{urlTemplate:"https://tiles.stadiamaps.com/tiles/outdoors/{z}/{x}/{y}{r}.png",options:{minZoom:3,maxZoom:32,attribution:'© Stadia Maps, © OpenMapTiles © OpenStreetMap contributors'}}],nodeCategories:[],linkCategories:[],prepareData(t){},onClickElement(t,e){}}};const i=class{constructor(t){this.self=t,this.renderModeSelector=null,this.controls=null,this.sideBar=null,this.aboutContainer=null,this.nodeLinkInfoContainer=null}createControls(){const t=document.createElement("div");return t.setAttribute("class","njg-controls"),this.self.el.appendChild(t),t}createRenderModeSelector(){const t=document.createElement("div"),e=document.createElement("span");return e.setAttribute("class","iconfont icon-eye"),t.setAttribute("class","njg-selectIcon"),t.appendChild(e),this.controls.appendChild(t),t}createSideBar(){const t=document.createElement("div");t.setAttribute("class","njg-sideBar");const{body:e}=document,n=document.createElement("button");return t.appendChild(n),n.classList.add("sideBarHandle"),n.onclick=()=>{t.classList.toggle("hidden")},e.appendChild(t),t}createAboutContainer(){const t=document.createElement("div"),e=document.createElement("h2"),n=document.createElement("div");return n.classList.add("njg-metaData"),t.classList.add("njg-aboutContainer"),e.innerHTML="About",t.appendChild(e),t.appendChild(n),this.sideBar.appendChild(t),this.nodeLinkInfoContainer=this.createNodeLinkInfoContainer(),t}createNodeLinkInfoContainer(){const t=document.createElement("div");return t.classList.add("njg-nodeLinkInfoContainer"),t.style.visibility="hidden",this.sideBar.appendChild(t),t}getNodeLinkInfo(t,e){const n=document.querySelectorAll(".njg-infoContainer"),i=document.querySelectorAll(".njg-headerContainer");for(let t=0;t{const n=document.createElement("div");n.classList.add("njg-infoItems");const i=document.createElement("span");i.setAttribute("class","njg-keyLabel");const r=document.createElement("span");r.setAttribute("class","njg-valueLabel"),"location"===t?(i.innerHTML="Location",r.innerHTML=`${Math.round(1e3*e[t].lat)/1e3}, ${Math.round(1e3*e[t].lng)/1e3}`):"localAddresses"===t?(i.innerHTML="Local Addresses",r.innerHTML=e[t].join("
")):(i.innerHTML=t,r.innerHTML=e[t]),n.appendChild(i),n.appendChild(r),o.appendChild(n)})),r.appendChild(a),r.appendChild(s),this.nodeLinkInfoContainer.appendChild(r),this.nodeLinkInfoContainer.appendChild(o),s.onclick=()=>{this.nodeLinkInfoContainer.style.visibility="hidden"}}init(){this.sideBar=this.createSideBar(),this.self.config.switchMode&&(this.controls=this.createControls(),this.renderModeSelector=this.createRenderModeSelector())}};const r=class{JSONParamParse(t){return"string"==typeof t?fetch(t,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((t=>t.json?t.json():t)).catch((t=>{console.error(t)})):Promise.resolve(t)}dateParse({dateString:t,parseRegular:e=/^([1-9]\d{3})-(\d{1,2})-(\d{1,2})T(\d{1,2}):(\d{1,2}):(\d{1,2})(?:\.(\d{1,3}))?Z$/,hourDiffer:n=(new Date).getTimezoneOffset()/60}){const i=e.exec(t);if(!i||i.length<7)return console.error("Date doesn't meet the specifications."),"";const r=["dateYear","dateMonth","dateDay","dateHour"],o={},a=i[1]%4==0&&i[1]%100!=0||i[1]%400==0,s=new Map([["dateMonth",12],["dateDay",[31,a?29:28,31,30,31,30,31,31,30,31,30,31]],["dateHour",24]]);for(let t=r.length;t>0;t-=1)o[r[t-1]]=parseInt(i[t],10);let l,u=-n;for(let t=r.length;t>0;t-=1){if("dateYear"===r[t-1]){o[r[t-1]]+=u;break}l="dateDay"===r[t-1]?s.get("dateDay")[o.dateMonth-1]:s.get(r[t-1]);let e=o[r[t-1]]+u;u="dateHour"===r[t-1]?e<0?-1:e>=l?1:0:e<=0?-1:e>l?1:0,1===u?e-=l:u<0&&("dateDay"===r[t-1]&&(l=s.get("dateDay")[(o[r[t-1]]+10)%11]),e+=l),o[r[t-1]]=e}return`${o.dateYear}.${this.numberMinDigit(o.dateMonth)}.${this.numberMinDigit(o.dateDay)} ${this.numberMinDigit(o.dateHour)}:${this.numberMinDigit(i[5])}:${this.numberMinDigit(i[6])}${i[7]?`.${this.numberMinDigit(i[7],3)}`:""}`}numberMinDigit(t,e=2,n="0"){return(Array(e).join(n)+t).slice(-e)}isObject(t){return"Object"===Object.prototype.toString.call(t).slice(8,14)}isArray(t){return"Array"===Object.prototype.toString.call(t).slice(8,13)}isElement(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}deepMergeObj(...t){const e=[...t].reverse(),n=e.length;for(let t=0;t{i[t]&&this.isObject(i[t])&&this.isObject(n[t])?this.deepMergeObj(i[t],n[t]):i[t]=n[t]})):i||(e[t+1]=n)}return e[n-1]}updateMetadata(){if(this.config.metadata){const t=this.utils.getMetadata(this.data),e=document.querySelector(".njg-metaData"),n=document.querySelectorAll(".njg-metaDataItems");for(let t=0;t{const i=document.createElement("div");i.classList.add("njg-metaDataItems");const r=document.createElement("span");r.setAttribute("class","njg-keyLabel");const o=document.createElement("span");o.setAttribute("class","njg-valueLabel"),r.innerHTML=n,o.innerHTML=t[n],i.appendChild(r),i.appendChild(o),e.appendChild(i)}))}}getMetadata(t){const e=t,n={};return e.label&&(n.label=e.label),["protocol","version","revision","metric","router_id","topology_id"].forEach((t=>{e[t]&&(n[t]=e[t])})),n.nodes=e.nodes.length,n.links=e.links.length,n}nodeInfo(t){const e={};return e.id=t.id,t.label&&"string"==typeof t.label&&(e.label=t.label),t.name&&(e.name=t.name),t.location&&(e.location=t.location),t.properties&&Object.keys(t.properties).forEach((n=>{if("location"===n)e[n]={lat:t.properties.location.lat,lng:t.properties.location.lng};else if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e[n]=i}else e[n.replace(/_/g," ")]=t.properties[n]})),t.linkCount&&(e.links=t.linkCount),t.local_addresses&&(e.localAddresses=t.local_addresses),e}createTooltipItem(t,e){const n=document.createElement("div");n.classList.add("njg-tooltip-item");const i=document.createElement("span");i.setAttribute("class","njg-tooltip-key");const r=document.createElement("span");return r.setAttribute("class","njg-tooltip-value"),i.innerHTML=t,r.innerHTML=e,n.appendChild(i),n.appendChild(r),n}getNodeTooltipInfo(t){const e=document.createElement("div");return e.classList.add("njg-tooltip-inner"),t.id&&e.appendChild(this.createTooltipItem("id",t.id)),t.label&&"string"==typeof t.label&&e.appendChild(this.createTooltipItem("label",t.label)),t.properties&&Object.keys(t.properties).forEach((n=>{if("location"===n)e.appendChild(this.createTooltipItem("location",`${Math.round(1e3*t.properties.location.lat)/1e3}, ${Math.round(1e3*t.properties.location.lng)/1e3}`));else if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e.appendChild(this.createTooltipItem("time",i))}else e.appendChild(this.createTooltipItem(`${n.replace(/_/g," ")}`,t.properties[n]))})),t.linkCount&&e.appendChild(this.createTooltipItem("Links",t.linkCount)),t.local_addresses&&e.appendChild(this.createTooltipItem("Local Addresses",t.local_addresses.join("
"))),e}getLinkTooltipInfo(t){const e=document.createElement("div");return e.classList.add("njg-tooltip-inner"),e.appendChild(this.createTooltipItem("source",t.source)),e.appendChild(this.createTooltipItem("target",t.target)),e.appendChild(this.createTooltipItem("cost",t.cost)),t.properties&&Object.keys(t.properties).forEach((n=>{if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e.appendChild(this.createTooltipItem("time",i))}else e.appendChild(this.createTooltipItem(`${n.replace(/_/g," ")}`,t.properties[n]))})),e}linkInfo(t){const e={};return e.source=t.source,e.target=t.target,e.cost=t.cost,t.properties&&Object.keys(t.properties).forEach((n=>{if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e[n]=i}else e[n.replace(/_/g," ")]=t.properties[n]})),e}generateStyle(t,e){return"function"==typeof t?t(e):t}getNodeStyle(t,e,n){let i,r={},o={};if(t.category&&e.nodeCategories.length){const n=e.nodeCategories.find((e=>e.name===t.category));i=this.generateStyle(n.nodeStyle||{},t),r=this.generateStyle(n.nodeSize||{},t),o={...o,nodeStyle:n.emphasis?this.generateStyle(n.emphasis.nodeStyle||{},t):{}},o={...o,nodeSize:n.empahsis?this.generateStyle(n.emphasis.nodeSize||{},t):{}}}else"map"===n?(i=this.generateStyle(e.mapOptions.nodeConfig.nodeStyle,t),r=this.generateStyle(e.mapOptions.nodeConfig.nodeSize,t)):(i=this.generateStyle(e.graphConfig.series.nodeStyle,t),r=this.generateStyle(e.graphConfig.series.nodeSize,t));return{nodeStyleConfig:i,nodeSizeConfig:r,nodeEmphasisConfig:o}}getLinkStyle(t,e,n){let i,r={};if(t.category&&e.linkCategories.length){const n=e.linkCategories.find((e=>e.name===t.category));i=this.generateStyle(n.linkStyle||{},t),r={...r,linkStyle:n.emphasis?this.generateStyle(n.emphasis.linkStyle||{},t):{}}}else i="map"===n?this.generateStyle(e.mapOptions.linkConfig.linkStyle,t):this.generateStyle(e.graphConfig.series.linkStyle,t);return{linkStyleConfig:i,linkEmphasisConfig:r}}getGUI(t){return new i(t)}showLoading(){let t=document.getElementById("loadingContainer");return t?t.style.visibility="visible":(t=document.createElement("div"),t.setAttribute("id","loadingContainer"),t.innerHTML='\n
\n
\n

Loading...

\n
\n ',this.el.appendChild(t)),t}hideLoading(){const t=document.getElementById("loadingContainer");return t&&(t.style.visibility="hidden"),t}createEvent(){const t=new Map,e=new Map;return{on(e,...n){t.set(e,[...t.get(e)||[],...n])},once(t,...n){e.set(t,[...e.get(t)||[],...n])},emit(n){const i=t.get(n)||[],r=e.get(n)||[],o=i.map((t=>t())),a=r.map((t=>t()));return e.delete(n),[...o,...a]},delete(n){t.delete(n),e.delete(n)}}}};const o=class extends r{searchElements(t){const e=this,n={"":{data:{...e.data},param:[...e.JSONParam]}};return window.history.pushState({searchValue:""},""),window.onpopstate=i=>{n[i.state.searchValue]?e.utils.JSONDataUpdate.call(e,n[i.state.searchValue].data).then((()=>{e.JSONParam=n[i.state.searchValue].param})):e.utils.JSONDataUpdate.call(e,t+i.state.searchValue)},function(i,r=!0,o=!0){const a=i.trim();if(!window.history.state||window.history.state&&window.history.state.searchValue!==a)return window.history.pushState({searchValue:a},""),e.utils.JSONDataUpdate.call(e,t+a,r,o).then((()=>{n[a]={data:{...e.data},param:[...e.JSONParam]}}))}}JSONDataUpdate(t,e=!0,n=!0){const i=this;return i.config.onUpdate.call(i),i.utils.JSONParamParse(t).then((r=>{function o(){e?(i.JSONParam=[t],i.utils.overrideData(r,i)):(i.JSONParam.push(t),i.config.render===i.utils.mapRender?i.utils.appendData(r,i):i.utils.addData(r,i)),i.utils.updateMetadata.call(i)}return n?(i.config.prepareData.call(i,r),i.config.dealDataByWorker?i.utils.dealDataByWorker.call(i,r,i.config.dealDataByWorker,o):o()):o(),r})).catch((t=>{console.error(t)}))}dealDataByWorker(t,e,n){const i=new Worker(e),r=this;i.postMessage(t),i.addEventListener("error",(t=>{console.error(t),console.error("Error in dealing JSONData!")})),i.addEventListener("message",(t=>{n?n():r.utils.overrideData(t.data,r)}))}overrideData(t,e){e.data=t,e.utils.render(),e.config.afterUpdate.call(e)}};const a=class{constructor(t){this.utils=new o,this.config={...e},this.JSONParam=this.utils.isArray(t)?t:[t]}setConfig(t){return this.utils.deepMergeObj(this.config,t),this.el?t&&t.el&&console.error("Can't change el again!"):(this.config.el?this.utils.isElement(this.config.el)?this.el=this.config.el:this.el=document.getElementById(this.config.el):this.el=document.body,this.el===document.body&&(this.el.classList.add("njg-relativePosition"),this.el.setAttribute("id","graphChartContainer"))),this.config}render(){const[t,...e]=this.JSONParam;if(this.config.onRender.call(this),this.event.once("onLoad",this.config.onLoad.bind(this)),this.utils.JSONParamParse(t).then((t=>{this.config.prepareData.call(this,t),this.data=t,this.config.dealDataByWorker?this.utils.dealDataByWorker.call(this,t,this.config.dealDataByWorker):(this.data=t,this.utils.render())})).catch((t=>{console.error(t)})),e.length){const n=function(){e.map((t=>this.utils.JSONDataUpdate.call(this,t,!1)))};this.JSONParam=[t],this.event.once("renderArray",n.bind(this))}}setUtils(t={}){const e=this;return e.utils=Object.assign(e.utils,{...t},{render(){if(!e.config.render)throw new Error("No render function!");e.config.render(e.data,e)}}),e.utils}};var s=n(9060),l=n(8023),u=n(1615),h=n(12),c=n(7240),d=n(7164);(0,l.D)([h.N,c.N]);const p={init:function(){return u.S1.apply(null,arguments)}};(0,l.D)(d.T);var f=n(6026);(0,l.D)(f.N);var g=n(9517);(0,l.D)(g.N);var m=n(241);(0,l.D)(m.N);var v=n(7813);(0,l.D)(v.N);var y=n(8690);(0,l.D)(y.N);var _=n(5045);(0,l.D)(_.N);var x=n(3450);(0,l.D)(x.N);var b=n(9448),w=n(6076);(0,b.registerPainter)("svg",w.Z);n(3721);var S=n(531),T=n.n(S);class M{echartsSetOption(t,e){const n=e.config,i=e.echarts,r=e.utils.deepMergeObj({tooltip:{confine:!0,position:(t,e,n,i,r)=>{let o="right";return r.viewSize[0]-t[0]"graph"===t.componentSubType?"edge"===t.dataType?e.utils.getLinkTooltipInfo(t.data):e.utils.getNodeTooltipInfo(t.data):"graphGL"===t.componentSubType?e.utils.getNodeTooltipInfo(t.data):"lines"===t.componentSubType?e.utils.getLinkTooltipInfo(t.data.link):e.utils.getNodeTooltipInfo(t.data.node)}},n.echartsOption);return i.setOption(e.utils.deepMergeObj(r,t)),i.on("click",(t=>{const i=n.onClickElement.bind(e);return"graph"===t.componentSubType?i("edge"===t.dataType?"link":"node",t.data):"graphGL"===t.componentSubType?i("node",t.data):"lines"===t.componentSubType?i("link",t.data.link):i("node",t.data.node)}),{passive:!0}),i}generateGraphOption(t,e){const n=[],i=e.config,r=t.nodes.map((t=>{const n=JSON.parse(JSON.stringify(t)),{nodeStyleConfig:r,nodeSizeConfig:o,nodeEmphasisConfig:a}=e.utils.getNodeStyle(t,i,"graph");return n.itemStyle=r,n.symbolSize=o,n.emphasis={itemStyle:a.nodeStyle,symbolSize:a.nodeSize},n.name="string"==typeof t.label?t.label:t.id,n})),o=t.links.map((t=>{const n=JSON.parse(JSON.stringify(t)),{linkStyleConfig:r,linkEmphasisConfig:o}=e.utils.getLinkStyle(t,i,"graph");return n.lineStyle=r,n.emphasis={lineStyle:o.linkStyle},n})),a=[Object.assign(i.graphConfig.series,{type:"graphGL"===i.graphConfig.series.type?"graphGL":"graph",layout:"graphGL"===i.graphConfig.series.type?"forceAtlas2":i.graphConfig.series.layout,nodes:r,links:o})];return{legend:n.length?{data:n}:void 0,series:a,...i.graphConfig.baseOptions}}generateMapOption(t,e){const n=e.config,{nodes:i,links:r}=t,o=t.flatNodes||{},a=[],s=[];i.forEach((i=>{if(i.properties){const{location:r}=i.properties;if(r&&r.lng&&r.lat){const{nodeStyleConfig:a,nodeSizeConfig:l,nodeEmphasisConfig:u}=e.utils.getNodeStyle(i,n,"map");s.push({name:"string"==typeof i.label?i.label:i.id,value:[r.lng,r.lat],symbolSize:l,itemStyle:a,emphasis:{itemStyle:u.nodeStyle,symbolSize:u.nodeSize},node:i}),t.flatNodes||(o[i.id]=JSON.parse(JSON.stringify(i)))}else console.error(`Node ${i.id} position is undefined!`)}else console.error(`Node ${i.id} position is undefined!`)})),r.forEach((t=>{if(o[t.source])if(o[t.target]){const{linkStyleConfig:i,linkEmphasisConfig:r}=e.utils.getLinkStyle(t,n,"map");a.push({coords:[[o[t.source].properties.location.lng,o[t.source].properties.location.lat],[o[t.target].properties.location.lng,o[t.target].properties.location.lat]],lineStyle:i,emphasis:{lineStyle:r.linkStyle},link:t})}else console.error(`Node ${t.target} is not exist!`);else console.error(`Node ${t.source} is not exist!`)}));const l=[Object.assign(n.mapOptions.nodeConfig,{type:"effectScatter"===n.mapOptions.nodeConfig.type?"effectScatter":"scatter",coordinateSystem:"leaflet",data:s,animationDuration:1e3}),Object.assign(n.mapOptions.linkConfig,{type:"lines",coordinateSystem:"leaflet",data:a})];return{leaflet:{tiles:n.mapTileConfig,mapOptions:n.mapOptions},series:l,...n.mapOptions.baseOptions}}graphRender(t,e){e.utils.echartsSetOption(e.utils.generateGraphOption(t,e),e),window.onresize=()=>{e.echarts.resize()},e.event.emit("onLoad"),e.event.emit("renderArray")}mapRender(t,e){e.config.mapTileConfig[0]?(e.utils.echartsSetOption(e.utils.generateMapOption(t,e),e),e.leaflet=e.echarts._api.getCoordinateSystems()[0].getLeaflet(),e.leaflet._zoomAnimated=!1,e.event.emit("onLoad"),e.event.emit("renderArray")):console.error('You must add the tiles via the "mapTileConfig" param!')}appendData(t,e){if(e.config.render!==e.utils.mapRender)return void console.error("AppendData function can only be used for map render!");e.utils.generateMapOption(t,e).series.forEach(((t,n)=>{e.echarts.appendData({seriesIndex:n,data:t.data})})),e.utils.mergeData(t,e),e.config.afterUpdate.call(e)}addData(t,e){e.utils.mergeData(t,e),e.utils.render(),e.config.afterUpdate.call(e)}mergeData(t,e){const n=e.data.nodes.concat(t.nodes),i=e.data.links.concat(t.links);Object.assign(e.data,t,{nodes:n,links:i})}}const C=function(t,e){const{util:n,graphic:i,matrix:r}=t,o=e.Layer.extend({initialize(t){this._container=t},onAdd(t){t.getPane(this.options.pane).appendChild(this._container),t.zoomControl.setPosition("topright")},onRemove(){e.DomUtil.remove(this._container)},_update(){}});function a(t,n){this._map=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=n,this._projection=e.Projection.Mercator}function s(t,e,n,i){const{leafletModel:r,seriesModel:o}=n,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("leaflet")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}return a.dimensions=["lng","lat"],a.prototype.dimensions=["lng","lat"],a.prototype.setZoom=function(t){this._zoom=t},a.prototype.setCenter=function(t){this._center=this._projection.project(new e.LatLng(t[1],t[0]))},a.prototype.setMapOffset=function(t){this._mapOffset=t},a.prototype.getLeaflet=function(){return this._map},a.prototype.getViewRect=function(){const t=this._api;return new i.BoundingRect(0,0,t.getWidth(),t.getHeight())},a.prototype.getRoamTransform=function(){return r.create()},a.prototype.dataToPoint=function(t){const n=new e.LatLng(t[1],t[0]),i=this._map.latLngToLayerPoint(n),r=this._mapOffset;return[i.x-r[0],i.y-r[1]]},a.prototype.pointToData=function(t){const e=this._mapOffset,n=this._map.layerPointToLatLng({x:t[0]+e[0],y:t[1]+e[1]});return[n.lng,n.lat]},a.prototype.convertToPixel=n.curry(s,"dataToPoint"),a.prototype.convertFromPixel=n.curry(s,"pointToData"),a.create=function(t,n){let i;const r=[],s=n.getDom();return t.eachComponent("leaflet",(t=>{const l=n.getZr().painter.getViewportRoot();if(void 0===e)throw new Error("Leaflet api is not loaded");if(i)throw new Error("Only one leaflet component can exist");if(!t.__map){let n=s.querySelector(".ec-extension-leaflet");n&&(l.style.left="0px",l.style.top="0px",s.removeChild(n)),n=document.createElement("div"),n.style.cssText="width:100%;height:100%",n.classList.add("ec-extension-leaflet"),s.appendChild(n),t.__map=e.map(n,t.get("mapOptions"));const i=t.__map,r=t.get("tiles"),a={};let u=!1;if(r.forEach((t=>{const n=e.tileLayer(t.urlTemplate,t.options);t.label?(u||(n.addTo(i),u=!0),a[t.label]=n):n.addTo(i)})),r.length>1){const n=t.get("layerControl");e.control.layers(a,{},n).addTo(i)}const h=document.createElement("div");h.style="position: absolute;left: 0;top: 0;z-index: 100",h.appendChild(l),new o(h).addTo(i)}const u=t.__map;i=new a(u,n),r.push(i),i.setMapOffset(t.__mapOffset||[0,0]);const{center:h,zoom:c}=t.get("mapOptions");h&&c&&(i.setZoom(c),i.setCenter(h)),t.coordinateSystem=i})),t.eachSeries((t=>{"leaflet"===t.get("coordinateSystem")&&(t.coordinateSystem=i)})),r},a};function A(t,e,n){!function(t){t.extendComponentModel({type:"leaflet",getLeaflet(){return this.__map},setCenterAndZoom(t,e){this.option.center=t,this.option.zoom=e},centerOrZoomChanged(t,e){const{option:n}=this;return i=t,r=n.center,!(i&&r&&i[0]===r[0]&&i[1]===r[1]&&e===n.zoom);var i,r},defaultOption:{mapOptions:{},tiles:[{urlTemplate:"http://{s}.tile.osm.org/{z}/{x}/{y}.png",options:{attribution:'© OpenStreetMap contributors'}}],layerControl:{}}})}(t),function(t,e){t.extendComponentView({type:"leaflet",render(e,n,i){let r=!0;const o=e.getLeaflet(),a=i.getZr().painter.getViewportRoot().parentNode,s=e.coordinateSystem,{roam:l}=e.get("mapOptions");function u(t){if(r)return;const n=o._mapPane;let l=n.style.transform,u=0,h=0;if(l){l=l.replace("translate3d(","");let t=l.split(",");u=-parseInt(t[0],10),h=-parseInt(t[1],10)}else u=-parseInt(n.style.left,10),h=-parseInt(n.style.top,10);let c=[u,h];a.style.left=`${c[0]}px`,a.style.top=`${c[1]}px`,s.setMapOffset(c),e.__mapOffset=c,i.dispatchAction({type:"leafletRoam",animation:{duration:0}})}function h(){r||(console.log(this),i.dispatchAction({type:"leafletRoam"}))}function c(){u()}function d(){t.getInstanceByDom(i.getDom()).resize()}l&&"scale"!==l?o.dragging.enable():o.dragging.disable(),l&&"move"!==l?(o.scrollWheelZoom.enable(),o.doubleClickZoom.enable(),o.touchZoom.enable()):(o.scrollWheelZoom.disable(),o.doubleClickZoom.disable(),o.touchZoom.disable()),this._oldMoveHandler&&o.off("move",this._oldMoveHandler),this._oldZoomHandler&&o.off("zoom",this._oldZoomHandler),this._oldZoomEndHandler&&o.off("zoomend",this._oldZoomEndHandler),this._oldResizeHandler&&o.off("resize",this._oldResizeHandler),o.on("move",u),o.on("zoom",c),o.on("zoomend",h),o.on("resize",d),this._oldMoveHandler=u,this._oldZoomHandler=c,this._oldZoomEndHandler=h,this._oldResizeHandler=d,r=!1}})}(t),t.registerCoordinateSystem("leaflet",C(t,e)),t.registerAction({type:"leafletRoam",event:"leafletRoam",update:"updateLayout"},((t,e)=>{e.eachComponent("leaflet",(t=>{const e=t.getLeaflet(),n=e.getCenter();t.setCenterAndZoom([n.lng,n.lat],e.getZoom())}))}))}A.version="1.0.0";const I=A,D=n(1092),{each:L}=n(3051),P=n(6387);class O{constructor(t,e){e&&"map"===e.render?e.render=M.prototype.mapRender:e&&e.render&&"graph"!==e.render||((e=e||{}).render=M.prototype.graphRender);let n=new a(t);return Object.setPrototypeOf(M.prototype,n.utils),n.utils=new M,n.setUtils(),n.event=n.utils.createEvent(),n.setConfig({onInit(){return this.config},onRender(){return this.utils.showLoading.call(this),this.config},onUpdate(){return this.config},afterUpdate(){return this.config},onLoad(){const t=this.utils.getGUI(this);return t.init(),this.config.metadata&&(t.createAboutContainer(n),this.utils.updateMetadata.call(this)),this.config.switchMode&&(t.renderModeSelector.onclick=()=>{this.config.render===this.utils.mapRender?(this.config.render=this.utils.graphRender,this.echarts.dispose(),n=new O(this.data,{...this.config}),n.render()):(this.config.render=this.utils.mapRender,this.config.render(this.data,this))}),this.config.onClickElement=(e,n)=>{let i;i="node"===e?this.utils.nodeInfo(n):this.utils.linkInfo(n),t.getNodeLinkInfo(e,i),t.sideBar.classList.remove("hidden")},this.utils.hideLoading.call(this),this.config},...e}),n.echarts=s.S1(n.el,null,{renderer:n.config.svgRender?"svg":"canvas"}),n.config.onInit.call(n),n}}I(t,T(),{colorTool:D,each:L,env:P}),window.NetJSONGraph=O,window.echarts=t,window.L=T()})()})(); //# sourceMappingURL=netjsongraph.min.js.map \ No newline at end of file diff --git a/examples/realtime_update/assets/netjsongraph.min.js b/examples/realtime_update/assets/netjsongraph.min.js index 406baac5..e2a26634 100644 --- a/examples/realtime_update/assets/netjsongraph.min.js +++ b/examples/realtime_update/assets/netjsongraph.min.js @@ -18,5 +18,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},5823:(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var i=n(7411),r=n(5622),o=n(479),a=n(3510),s=n(423),l=n(3051),u=n(4990),h=n(1092),c=n(4414),d="__zr_normal__",p=i.dN.concat(["ignore"]),f=(0,l.reduce)(i.dN,(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},m=new o.Z(0,0,0,0),v=function(){function t(t){this.id=(0,l.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,l=!1;r.parent=i?this:null;var u=!1;if(r.copyTransform(e),null!=n.position){var h=m;n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,h):(0,s.wI)(g,n,h),r.x=g.x,r.y=g.y,o=g.align,a=g.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var p=void 0,f=void 0;"center"===d?(p=.5*h.width,f=.5*h.height):(p=(0,s.GM)(d[0],h.width),f=(0,s.GM)(d[1],h.height)),u=!0,r.originX=-r.x+p+(i?0:h.x),r.originY=-r.y+f+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var v=n.offset;v&&(r.x+=v[0],r.y+=v[1],u||(r.originX=-v[0],r.originY=-v[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,b=void 0,w=void 0;y&&this.canBeInsideText()?(x=n.insideFill,b=n.insideStroke,null!=x&&"auto"!==x||(x=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(x),w=!0)):(x=n.outsideFill,b=n.outsideStroke,null!=x&&"auto"!==x||(x=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(x),w=!0)),(x=x||"#000")===_.fill&&b===_.stroke&&w===_.autoStroke&&o===_.align&&a===_.verticalAlign||(l=!0,_.fill=x,_.stroke=b,_.autoStroke=w,_.align=o,_.verticalAlign=a,e.setDefaultTextStyle(_)),e.__dirty|=c.YV,l&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u.GD:u.vU},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,h.parse)(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,(0,h.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,l.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,l.isObject)(t))for(var n=t,i=(0,l.keys)(n),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===d;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!((0,l.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var u=!!(s&&s.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,n,u),p&&p.useState(t,e,n,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c.YV),s}(0,l.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,f);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,e,d),m&&m.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c.YV)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=(0,l.indexOf)(i,t),o=(0,l.indexOf)(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||o.force&&!s.length){var C,A=void 0,I=void 0,D=void 0;if(u){I={},f&&(A={});for(T=0;T{"use strict";n.d(e,{V:()=>v,Z:()=>S});var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}};const r=i;var o=n(3051),a=n(5188);const s=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||o.noop,this.ondestroy=t.ondestroy||o.noop,this.onrestart=t.onrestart||o.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,o.isFunction)(t)?t:r[t]||(0,a.H)(t)},t}();var l=n(1092),u=n(4839),h=Array.prototype.slice;function c(t,e,n){return(e-t)*n+t}function d(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,s=i.length,h=!1,c=6,d=e;if((0,o.isArrayLike)(e)){var p=function(t){return(0,o.isArrayLike)(t&&t[0])?2:1}(e);c=p,(1===p&&!(0,o.isNumber)(e[0])||2===p&&!(0,o.isNumber)(e[0][0]))&&(h=!0)}else if((0,o.isNumber)(e)&&!(0,o.eqNaN)(e))c=0;else if((0,o.isString)(e))if(isNaN(+e)){var f=l.parse(e);f&&(d=f,c=3)}else c=0;else if((0,o.isGradientObject)(e)){var g=(0,o.extend)({},d);g.colorStops=(0,o.map)(e.colorStops,(function(t){return{offset:t.offset,color:l.parse(t.color)}})),(0,u.I1)(e)?c=4:(0,u.gO)(e)&&(c=5),d=g}0===s?this.valType=c:c===this.valType&&6!==c||(h=!0),this.discrete=this.discrete||h;var m={time:t,value:d,rawValue:e,percent:0};return n&&(m.easing=n,m.easingFunc=(0,o.isFunction)(n)?n:r[n]||(0,a.H)(n)),i.push(m),m},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=x(i),l=_(i),u=0;u=0&&!(u[n].percent<=e);n--);n=m(n,h-2)}else{for(n=g;ne);n++);n=m(n-1,h-2)}r=u[n+1],i=u[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var v=r.percent-i.percent,w=0===v?1:m((e-i.percent)/v,1);r.easingFunc&&(w=r.easingFunc(w));var S=a?this._additiveValue:f?b:t[p];if(!x(l)&&!f||S||(S=this._additiveValue=[]),this.discrete)t[p]=w<1?i.rawValue:r.rawValue;else if(x(l))1===l?d(S,i[s],r[s],w):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,v(l),i),this._trackKeys.push(a)}s.addKeyframe(t,v(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var s=a.pop();r.addKeyframe(s.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}()},5188:(t,e,n)=>{"use strict";n.d(e,{H:()=>a});var i=n(8554),r=n(3051),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+(0,r.trim)(n[0]),s=+(0,r.trim)(n[1]),l=+(0,r.trim)(n[2]),u=+(0,r.trim)(n[3]);if(isNaN(a+s+l+u))return;var h=[];return function(t){return t<=0?0:t>=1?1:(0,i.kD)(0,a,l,1,t,h)&&(0,i.af)(0,s,u,1,h[0])}}}},2795:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=n(6387).default.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},810:(t,e,n)=>{"use strict";n.d(e,{a:()=>r});var i=n(3051);function r(t){var e,n,r=t.style,o=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,i.isNumber)(e)?[e]:(0,i.isArray)(e)?e:null:null),a=r.lineDashOffset;if(o){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=(0,i.map)(o,(function(t){return t/s})),a/=s)}return[o,a]}},7772:(t,e,n)=>{"use strict";n.d(e,{Dm:()=>D,RV:()=>I,RZ:()=>x});var i=n(7719),r=n(4014),o=n(8007),a=n(5787),s=n(327),l=n(4535),u=n(1505),h=n(3051),c=n(810),d=n(4414),p=n(3132),f=new r.Z(!0);function g(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function m(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function x(t,e,n){var i=(0,o.Gq)(e.image,e.__image,n);if((0,o.v5)(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*h.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(t,e,n,r,o){var a=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){C(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i.tj.opacity:s}(r||e.blend!==n.blend)&&(a||(C(t,o),a=!0),t.globalCompositeOperation=e.blend||i.tj.blend);for(var l=0;l{"use strict";function i(t){return isFinite(t)}function r(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,o=n.height,a=Math.min(r,o),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,u=null==e.r?.5:e.r;return e.global||(s=s*r+n.x,l=l*o+n.y,u*=a),s=i(s)?s:.5,l=i(l)?l:.5,u=u>=0&&i(u)?u:.5,t.createRadialGradient(s,l,0,s,l,u)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),r=i(r)?r:0,o=i(o)?o:1,a=i(a)?a:0,s=i(s)?s:0,t.createLinearGradient(r,a,o,s)}(t,e,n),o=e.colorStops,a=0;ar,ap:()=>s,cF:()=>o})},4990:(t,e,n)=>{"use strict";n.d(e,{Ak:()=>o,GD:()=>s,KL:()=>r,iv:()=>l,vU:()=>a});var i=1;n(6387).default.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var r=i,o=.4,a="#333",s="#ccc",l="#eee"},3640:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oi})},765:(t,e,n)=>{"use strict";n.d(e,{X:()=>o});var i=n(7637);function r(t,e){return Math.abs(t-e)<1e-8}function o(t,e,n){var o=0,a=t[0];if(!a)return!1;for(var s=1;s{"use strict";n.d(e,{m:()=>r});var i=n(8554);function r(t,e,n,r,o,a,s,l,u){if(0===s)return!1;var h=s;return!(u>e+h&&u>r+h&&u>a+h||ut+h&&l>n+h&&l>o+h||l{"use strict";n.d(e,{Dp:()=>d,GM:()=>p,M3:()=>h,dz:()=>s,lP:()=>u,mU:()=>c,wI:()=>f});var i=n(479),r=n(2528),o=n(3132),a={};function s(t,e){e=e||o.Uo;var n=a[e];n||(n=a[e]=new r.ZP(500));var i=n.get(t);return null==i&&(i=o.qW.measureText(t,e).width,n.put(t,i)),i}function l(t,e,n,r){var o=s(t,e),a=d(e),l=h(0,o,n),u=c(0,a,r);return new i.Z(l,u,o,a)}function u(t,e,n,r){var o=((t||"")+"").split("\n");if(1===o.length)return l(o[0],e,n,r);for(var a=new i.Z(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function f(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=p(i[0],n.width),u+=p(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}},3266:(t,e,n)=>{"use strict";n.d(e,{m:()=>r});var i=2*Math.PI;function r(t){return(t%=i)<0&&(t+=i),t}},7637:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}n.d(e,{Z:()=>i})},479:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var i=n(2892),r=n(1610),o=Math.min,a=Math.max,s=new r.Z,l=new r.Z,u=new r.Z,h=new r.Z,c=new r.Z,d=new r.Z;const p=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,o=i.create();return i.translate(o,o,[-e.x,-e.y]),i.scale(o,o,[n,r]),i.translate(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,o=i.x,a=i.x+i.width,s=i.y,l=i.y+i.height,u=e.x,h=e.x+e.width,p=e.y,f=e.y+e.height,g=!(av&&(v=w,y<_?r.Z.set(d,-y,0):r.Z.set(d,_,0)):wv&&(v=S,x=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],c=i[3],d=i[4],p=i[5];return e.x=n.x*r+d,e.y=n.y*c+p,e.width=n.width*r,e.height=n.height*c,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=u.x=n.x,s.y=h.y=n.y,l.x=h.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(i),h.transform(i),l.transform(i),u.transform(i),e.x=o(s.x,l.x,u.x,h.x),e.y=o(s.y,l.y,u.y,h.y);var f=a(s.x,l.x,u.x,h.x),g=a(s.y,l.y,u.y,h.y);e.width=f-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}()},3510:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a{"use strict";n.d(e,{ZP:()=>o});var i=function(t){this.value=t},r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();const o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},1587:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(1610),r=[0,0],o=[0,0],a=new i.Z,s=new i.Z;const l=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i.Z;for(n=0;n<2;n++)this._axes[n]=new i.Z;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var u=0;u<4;u++)n[u].transform(e);i.Z.sub(r[0],n[1],n[0]),i.Z.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(u=0;u<2;u++)this._origin[u]=r[u].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,a,s,r,-1)&&(n=!1,r)||r||i.Z.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,l){for(var u=!0,h=0;h<2;h++){var c=this._axes[h];if(this._getProjMinMaxOnAxis(h,t._corners,r),this._getProjMinMaxOnAxis(h,e._corners,o),r[1]o[1]){if(u=!1,s)return u;var d=Math.abs(o[0]-r[1]),p=Math.abs(r[0]-o[1]);Math.min(d,p)>a.len()&&(d{"use strict";n.d(e,{L:()=>M,Z:()=>C});var i=n(5280),r=n(479),o=n(4990),a=n(3726),s=n(8554),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],h=[],c=[],d=[],p=[],f=[],g=Math.min,m=Math.max,v=Math.cos,y=Math.sin,_=Math.abs,x=Math.PI,b=2*x,w="undefined"!=typeof Float32Array,S=[];function T(t){return Math.round(t/x*1e8)/1e8%2*x}function M(t,e){var n=T(t[0]);n<0&&(n+=b);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=b?r=n+b:e&&n-r>=b?r=n-b:!e&&n>r?r=n+(b-T(n-r)):e&&n0&&(this._ux=_(n/o.KL/t)||0,this._uy=_(n/o.KL/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=_(t-this._xi),i=_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(l.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(l.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(l.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),S[0]=i,S[1]=r,M(S,o),i=S[0];var a=(r=S[1])-i;return this.addData(l.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=v(r)*n+t,this._yi=y(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){c[0]=c[1]=p[0]=p[1]=Number.MAX_VALUE,d[0]=d[1]=f[0]=f[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,u=0;for(t=0;tn||_(T)>i||p===e-1)&&(w=Math.sqrt(z*z+T*T),r=S,o=A);break;case l.C:var M=t[p++],C=t[p++],A=(S=t[p++],t[p++]),I=t[p++],D=t[p++];w=(0,s.Ci)(r,o,M,C,S,A,I,D,10),r=I,o=D;break;case l.Q:M=t[p++],C=t[p++],S=t[p++],A=t[p++];w=(0,s.wQ)(r,o,M,C,S,A,10),r=S,o=A;break;case l.A:var L=t[p++],P=t[p++],O=t[p++],E=t[p++],N=t[p++],k=t[p++],R=k+N;p+=1;t[p++];x&&(a=v(N)*O+L,u=y(N)*E+P),w=m(O,E)*g(b,Math.abs(k)),r=v(R)*O+L,o=y(R)*E+P;break;case l.R:a=r=t[p++],u=o=t[p++],w=2*t[p++]+2*t[p++];break;case l.Z:var z=a-r;T=u-o;w=Math.sqrt(z*z+T*T),r=a,o=u}w>=0&&(h[d++]=w,c+=w)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,c,d,p,f,x,b=this.data,w=this._ux,S=this._uy,T=this._len,M=e<1,C=0,A=0,I=0;if(!M||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=e*this._pathLen))t:for(var D=0;D0&&(t.lineTo(f,x),I=0),L){case l.M:n=r=b[D++],i=o=b[D++],t.moveTo(r,o);break;case l.L:a=b[D++],c=b[D++];var O=_(a-r),E=_(c-o);if(O>w||E>S){if(M){if(C+(it=d[A++])>p){var N=(p-C)/it;t.lineTo(r*(1-N)+a*N,o*(1-N)+c*N);break t}C+=it}t.lineTo(a,c),r=a,o=c,I=0}else{var k=O*O+E*E;k>I&&(f=a,x=c,I=k)}break;case l.C:var R=b[D++],z=b[D++],B=b[D++],Z=b[D++],F=b[D++],V=b[D++];if(M){if(C+(it=d[A++])>p){N=(p-C)/it;(0,s.Vz)(r,R,B,F,N,u),(0,s.Vz)(o,z,Z,V,N,h),t.bezierCurveTo(u[1],h[1],u[2],h[2],u[3],h[3]);break t}C+=it}t.bezierCurveTo(R,z,B,Z,F,V),r=F,o=V;break;case l.Q:R=b[D++],z=b[D++],B=b[D++],Z=b[D++];if(M){if(C+(it=d[A++])>p){N=(p-C)/it;(0,s.Lx)(r,R,B,N,u),(0,s.Lx)(o,z,Z,N,h),t.quadraticCurveTo(u[1],h[1],u[2],h[2]);break t}C+=it}t.quadraticCurveTo(R,z,B,Z),r=B,o=Z;break;case l.A:var G=b[D++],H=b[D++],U=b[D++],W=b[D++],j=b[D++],X=b[D++],Y=b[D++],q=!b[D++],K=U>W?U:W,J=_(U-W)>.001,Q=j+X,$=!1;if(M)C+(it=d[A++])>p&&(Q=j+X*(p-C)/it,$=!0),C+=it;if(J&&t.ellipse?t.ellipse(G,H,U,W,Y,j,Q,q):t.arc(G,H,K,j,Q,q),$)break t;P&&(n=v(j)*U+G,i=y(j)*W+H),r=v(Q)*U+G,o=y(Q)*W+H;break;case l.R:n=r=b[D],i=o=b[D+1],a=b[D++],c=b[D++];var tt=b[D++],et=b[D++];if(M){if(C+(it=d[A++])>p){var nt=p-C;t.moveTo(a,c),t.lineTo(a+g(nt,tt),c),(nt-=tt)>0&&t.lineTo(a+tt,c+g(nt,et)),(nt-=et)>0&&t.lineTo(a+m(tt-nt,0),c+et),(nt-=tt)>0&&t.lineTo(a,c+m(et-nt,0));break t}C+=it}t.rect(a,c,tt,et);break;case l.Z:if(M){var it;if(C+(it=d[A++])>p){N=(p-C)/it;t.lineTo(r*(1-N)+n*N,o*(1-N)+i*N);break t}C+=it}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=l,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}()},1610:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}()},7411:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>g,dN:()=>p,kY:()=>f});var i=n(2892),r=n(5280),o=i.identity,a=5e-5;function s(t){return t>a||t<-5e-5}var l=[],u=[],h=i.create(),c=Math.abs,d=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i.create(),e?this.getLocalTransform(n):o(n),t&&(e?i.mul(n,t,n):i.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var n=l[0]<0?-1:1,r=l[1]<0?-1:1,o=((l[0]-n)*e+n)/l[0]||0,a=((l[1]-r)*e+r)/l[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.mul(u,t.invTransform,e),e=u);var n=this.originX,r=this.originY;(n||r)&&(h[4]=n,h[5]=r,i.mul(u,e,h),u[4]-=n,u[5]-=r,e=u),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){f(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,h=t.x,c=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var f=n+s,g=r+l;e[4]=-f*o-d*g*a,e[5]=-g*a-p*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=p*o,e[2]=d*a,u&&i.rotate(e,e,u),e[4]+=n+h,e[5]+=r+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),p=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function f(t,e){for(var n=0;n{"use strict";n.d(e,{H9:()=>v,mJ:()=>y,qL:()=>_,u4:()=>f,zk:()=>p});var i=n(5280),r=n(8554),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,h=i.create(),c=i.create(),d=i.create();function p(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],s=i[0],l=i[1],u=i[1],h=1;h1e-4)return f[0]=t-n,f[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(h[0]=l(o)*n+t,h[1]=s(o)*r+e,c[0]=l(a)*n+t,c[1]=s(a)*r+e,m(f,h,c),v(g,h,c),(o%=u)<0&&(o+=u),(a%=u)<0&&(a+=u),o>a&&!p?a+=u:oo&&(d[0]=l(x)*n+t,d[1]=s(x)*r+e,m(f,d,f),v(g,d,g))}},8554:(t,e,n)=>{"use strict";n.d(e,{AZ:()=>S,Ci:()=>b,Jz:()=>T,Lx:()=>C,QC:()=>M,Vz:()=>_,Wr:()=>A,X_:()=>m,Zm:()=>w,af:()=>g,kD:()=>v,pP:()=>y,t1:()=>x,wQ:()=>I});var i=n(5280),r=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),u=1/3,h=(0,i.create)(),c=(0,i.create)(),d=(0,i.create)();function p(t){return t>-1e-8&&ta||t<-1e-8}function g(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function m(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function v(t,e,n,i,a,s){var h=i+3*(e-n)-t,c=3*(n-2*e+t),d=3*(e-t),f=t-a,g=c*c-3*h*d,m=c*d-9*h*f,v=d*d-3*c*f,y=0;if(p(g)&&p(m)){if(p(c))s[0]=0;else(D=-d/c)>=0&&D<=1&&(s[y++]=D)}else{var _=m*m-4*g*v;if(p(_)){var x=m/g,b=-x/2;(D=-c/h+x)>=0&&D<=1&&(s[y++]=D),b>=0&&b<=1&&(s[y++]=b)}else if(_>0){var w=o(_),S=g*c+1.5*h*(-m+w),T=g*c+1.5*h*(-m-w);(D=(-c-((S=S<0?-r(-S,u):r(S,u))+(T=T<0?-r(-T,u):r(T,u))))/(3*h))>=0&&D<=1&&(s[y++]=D)}else{var M=(2*g*c-3*h*m)/(2*o(g*g*g)),C=Math.acos(M)/3,A=o(g),I=Math.cos(C),D=(-c-2*A*I)/(3*h),L=(b=(-c+A*(I+l*Math.sin(C)))/(3*h),(-c+A*(I-l*Math.sin(C)))/(3*h));D>=0&&D<=1&&(s[y++]=D),b>=0&&b<=1&&(s[y++]=b),L>=0&&L<=1&&(s[y++]=L)}}return y}function y(t,e,n,i,r){var a=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(p(s)){if(f(a))(c=-l/a)>=0&&c<=1&&(r[u++]=c)}else{var h=a*a-4*s*l;if(p(h))r[0]=-a/(2*s);else if(h>0){var c,d=o(h),g=(-a-d)/(2*s);(c=(-a+d)/(2*s))>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function _(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function x(t,e,n,r,a,l,u,p,f,m,v){var y,_,x,b,w,S=.005,T=1/0;h[0]=f,h[1]=m;for(var M=0;M<1;M+=.05)c[0]=g(t,n,a,u,M),c[1]=g(e,r,l,p,M),(b=(0,i.distSquare)(h,c))=0&&b=0&&c<=1&&(r[u++]=c)}else{var h=s*s-4*a*l;if(p(h))(c=-s/(2*a))>=0&&c<=1&&(r[u++]=c);else if(h>0){var c,d=o(h),g=(-s-d)/(2*a);(c=(-s+d)/(2*a))>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function M(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function C(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function A(t,e,n,r,a,l,u,p,f){var g,m=.005,v=1/0;h[0]=u,h[1]=p;for(var y=0;y<1;y+=.05){c[0]=w(t,n,a,y),c[1]=w(e,r,l,y),(S=(0,i.distSquare)(h,c))=0&&S{"use strict";n.d(e,{UK:()=>h,A4:()=>u,YB:()=>l});var i=n(6387),r=Math.log(2);function o(t,e,n,i,a,s){var l=i+"-"+a,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var h=Math.round(Math.log((1<>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,s),u=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,s=[],l=[],u=!0,h=0;h<4;h++){var c=t[h].getBoundingClientRect(),d=2*h,p=c.left,f=c.top;s.push(p,f),u=u&&o&&p===o[d]&&f===o[d+1],l.push(t[h].offsetLeft,t[h].offsetTop)}return u&&r?r:(e.srcCoords=s,e[i]=n?a(l,s):a(s,l))}(l,s,o);if(u)return u(t,n,r),!0}return!1}function h(t){return"CANVAS"===t.nodeName.toUpperCase()}},6387:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r);const o=r},1158:(t,e,n)=>{"use strict";n.d(e,{OD:()=>c,Oo:()=>d,eV:()=>l,iP:()=>h,sT:()=>f,x1:()=>g,xg:()=>p});var i=n(6387),r=n(4058),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=i.default.browser.firefox&&+i.default.browser.version.split(".")[0]<39;function l(t,e,n,i){return n=n||{},i?u(t,e,n):s&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):u(t,e,n),n}function u(t,e,n){if(i.default.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,r.UK)(t)){var l=t.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if((0,r.A4)(a,t,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function h(t){return t||window.event}function c(t,e,n){if(null!=(e=h(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&l(t,r,e,n)}else{l(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,i){t.addEventListener(e,n,i)}function p(t,e,n,i){t.removeEventListener(e,n,i)}var f=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function g(t){return 2===t.which||3===t.which}},2892:(t,e,n)=>{"use strict";function i(){return[1,0,0,1,0,0]}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function u(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function h(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function c(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,{clone:()=>c,copy:()=>o,create:()=>i,identity:()=>r,invert:()=>h,mul:()=>a,rotate:()=>l,scale:()=>u,translate:()=>s})},3132:(t,e,n)=>{"use strict";n.d(e,{Uo:()=>o,g2:()=>h,n5:()=>i,qW:()=>u,rk:()=>r});var i=12,r="sans-serif",o=i+"px "+r;var a,s,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)c=h*t.length;else for(var d=0;d{"use strict";n.d(e,{Z:()=>l});function i(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function r(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function o(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function a(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function s(t,e){var n,i,r,s=7,l=0;n=t.length;var u=[];function h(n){var h=i[n],c=r[n],d=i[n+1],p=r[n+1];r[n]=c+p,n===l-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),l--;var f=a(t[d],t,h,c,0,e);h+=f,0!==(c-=f)&&0!==(p=o(t[h+c-1],t,d,p,p-1,e))&&(c<=p?function(n,i,r,l){var h=0;for(h=0;h=7||g>=7);if(m)break;v<0&&(v=0),v+=2}if((s=v)<1&&(s=1),1===i){for(h=0;h=0;h--)t[g+h]=t[f+h];return void(t[p]=u[d])}var m=s;for(;;){var v=0,y=0,_=!1;do{if(e(u[d],t[c])<0){if(t[p--]=t[c--],v++,y=0,0==--i){_=!0;break}}else if(t[p--]=u[d--],y++,v=0,1==--l){_=!0;break}}while((v|y)=0;h--)t[g+h]=t[f+h];if(0===i){_=!0;break}}if(t[p--]=u[d--],1==--l){_=!0;break}if(0!==(y=l-o(t[c],u,0,l,l-1,e))){for(l-=y,g=(p-=y)+1,f=(d-=y)+1,h=0;h=7||y>=7);if(_)break;m<0&&(m=0),m+=2}(s=m)<1&&(s=1);if(1===l){for(g=(p-=i)+1,f=(c-=i)+1,h=i-1;h>=0;h--)t[g+h]=t[f+h];t[p]=u[d]}else{if(0===l)throw new Error;for(f=p-(l-1),h=0;h1;){var t=l-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;h(t)}},forceMergeRuns:function(){for(;l>1;){var t=l-2;t>0&&r[t-1]=32;)e|=1&t,t>>=1;return t+e}(a);do{if((l=i(t,n,o,e))h&&(c=h),r(t,n,n+c,n+l,e),l=c}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(0!==a);u.forceMergeRuns()}}}},3051:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HashMap:()=>ot,RADIAN_TO_DEGREE:()=>dt,assert:()=>tt,bind:()=>N,clone:()=>y,concatArray:()=>st,createCanvas:()=>S,createHashMap:()=>at,createObject:()=>lt,curry:()=>k,defaults:()=>w,disableUserSelect:()=>ut,each:()=>I,eqNaN:()=>Y,extend:()=>b,filter:()=>P,find:()=>O,guid:()=>m,hasOwn:()=>ht,indexOf:()=>T,inherits:()=>M,isArray:()=>R,isArrayLike:()=>A,isBuiltInObject:()=>G,isDom:()=>U,isFunction:()=>z,isGradientObject:()=>W,isImagePatternObject:()=>j,isNumber:()=>F,isObject:()=>V,isPrimitive:()=>rt,isRegExp:()=>X,isString:()=>B,isStringSafe:()=>Z,isTypedArray:()=>H,keys:()=>E,logError:()=>v,map:()=>D,merge:()=>_,mergeAll:()=>x,mixin:()=>C,noop:()=>ct,normalizeCssArray:()=>$,reduce:()=>L,retrieve:()=>q,retrieve2:()=>K,retrieve3:()=>J,setAsPrimitive:()=>it,slice:()=>Q,trim:()=>et});var i=n(3132),r=L(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=L(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,h=s.slice,c=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311;function m(){return g++}function v(){for(var t=[],e=0;e{"use strict";function i(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t){return Math.sqrt(d(t))}n.r(e),n.d(e,{add:()=>s,applyTransform:()=>M,clone:()=>o,copy:()=>r,create:()=>i,dist:()=>x,distSquare:()=>w,distance:()=>_,distanceSquare:()=>b,div:()=>g,dot:()=>m,len:()=>h,lenSquare:()=>d,length:()=>c,lengthSquare:()=>p,lerp:()=>T,max:()=>A,min:()=>C,mul:()=>f,negate:()=>S,normalize:()=>y,scale:()=>v,scaleAndAdd:()=>l,set:()=>a,sub:()=>u});var c=h;function d(t){return t[0]*t[0]+t[1]*t[1]}var p=d;function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function m(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=h(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function _(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=_;function b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=b;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function T(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function M(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function C(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function A(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},2776:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(655),r=n(327);const o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,i.ZT)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n{"use strict";n.d(e,{ZP:()=>m,ik:()=>h,tj:()=>u});var i=n(655),r=n(5823),o=n(479),a=n(3051),s=n(4414),l="__zr_style_"+Math.round(10*Math.random()),u={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},h={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};u[l]=!0;var c=["z","z2","invisible"],d=["invisible"],p=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.ZT)(e,t),e.prototype._init=function(e){for(var n=(0,a.keys)(e),i=0;i{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},8154:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(3051),o=n(5823),a=n(479),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,i.ZT)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=r.indexOf(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n{"use strict";n.d(e,{ZP:()=>h});var i=n(655),r=n(7719),o=n(479),a=n(3051),s=(0,a.defaults)({x:0,y:0},r.tj),l={style:(0,a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r.ik.style)};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.createStyle=function(t){return(0,a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.Z(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r.ZP);u.prototype.type="image";const h=u},1754:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(7719),o=n(479),a=[];const s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,i.ZT)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n{"use strict";n.d(e,{Z:()=>r});var i=n(655);const r=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return(0,i.ZT)(e,t),e}(n(1797).Z)},327:(t,e,n)=>{"use strict";n.d(e,{$t:()=>A,ZP:()=>L});var i=n(655),r=n(7719),o=n(4014),a=n(3640),s=n(8554);function l(t,e,n,i,r,o,a,l,u,h,c){if(0===u)return!1;var d=u;return!(c>e+d&&c>i+d&&c>o+d&&c>l+d||ct+d&&h>n+d&&h>r+d&&h>a+d||hn||d+ur&&(r+=c);var f=Math.atan2(l,s);return f<0&&(f+=c),f>=i&&f<=r||f+c>=i&&f+c<=r}var p=n(7637),f=o.Z.CMD,g=2*Math.PI;var m=[-1,-1,-1],v=[-1,-1];function y(t,e,n,i,r,o,a,l,u,h){if(h>e&&h>i&&h>o&&h>l||h1&&(c=void 0,c=v[0],v[0]=v[1],v[1]=c),g=s.af(e,i,o,l,v[0]),f>1&&(y=s.af(e,i,o,l,v[1]))),2===f?xe&&l>i&&l>o||l=0&&h<=1){for(var c=0,d=s.Zm(e,i,o,h),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);m[0]=-l,m[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=g-1e-4){i=0,r=g;var h=o?1:-1;return a>=m[0]+t&&a<=m[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=g,r+=g);for(var d=0,p=0;p<2;p++){var f=m[p];if(f+t>a){var v=Math.atan2(s,f);h=o?1:-1;v<0&&(v=g+v),(v>=i&&v<=r||v+g>=i&&v+g<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),d+=h)}}return d}function b(t,e,n,i,r){for(var o,s,h,c,g=t.data,m=t.len(),v=0,b=0,w=0,S=0,T=0,M=0;M1&&(n||(v+=(0,p.Z)(b,w,S,T,i,r))),A&&(S=b=g[M],T=w=g[M+1]),C){case f.M:b=S=g[M++],w=T=g[M++];break;case f.L:if(n){if(a.m(b,w,g[M],g[M+1],e,i,r))return!0}else v+=(0,p.Z)(b,w,g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.C:if(n){if(l(b,w,g[M++],g[M++],g[M++],g[M++],g[M],g[M+1],e,i,r))return!0}else v+=y(b,w,g[M++],g[M++],g[M++],g[M++],g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.Q:if(n){if(u.m(b,w,g[M++],g[M++],g[M],g[M+1],e,i,r))return!0}else v+=_(b,w,g[M++],g[M++],g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.A:var I=g[M++],D=g[M++],L=g[M++],P=g[M++],O=g[M++],E=g[M++];M+=1;var N=!!(1-g[M++]);o=Math.cos(O)*L+I,s=Math.sin(O)*P+D,A?(S=o,T=s):v+=(0,p.Z)(b,w,o,s,i,r);var k=(i-I)*P/L+I;if(n){if(d(I,D,P,O,O+E,N,e,k,r))return!0}else v+=x(I,D,P,O,O+E,N,k,r);b=Math.cos(O+E)*L+I,w=Math.sin(O+E)*P+D;break;case f.R:if(S=b=g[M++],T=w=g[M++],o=S+g[M++],s=T+g[M++],n){if(a.m(S,T,o,T,e,i,r)||a.m(o,T,o,s,e,i,r)||a.m(o,s,S,s,e,i,r)||a.m(S,s,S,T,e,i,r))return!0}else v+=(0,p.Z)(o,T,o,s,i,r),v+=(0,p.Z)(S,s,S,T,i,r);break;case f.Z:if(n){if(a.m(b,w,S,T,e,i,r))return!0}else v+=(0,p.Z)(b,w,S,T,i,r);b=S,w=T}}return n||(h=w,c=T,Math.abs(h-c)<1e-4)||(v+=(0,p.Z)(b,w,S,T,i,r)||0),0!==v}var w=n(3051),S=n(1092),T=n(4990),M=n(4414),C=n(7411),A=(0,w.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r.tj),I={style:(0,w.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r.ik.style)},D=C.dN.concat(["invisible","culling","z","z2","zlevel","parent"]);const L=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.ZT)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?T.vU:e>.2?T.iv:T.GD}if(t)return T.GD}return T.vU},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,w.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===(0,S.lum)(t,0)0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&M.RH)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return b(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return b(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=M.RH,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:(0,w.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&M.RH)},e.prototype.createStyle=function(t){return(0,w.createObject)(A,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,w.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=(0,w.extend)({},i.shape),(0,w.extend)(s,n.shape)):(s=(0,w.extend)({},r?this.shape:i.shape),(0,w.extend)(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=(0,w.extend)({},this.shape);for(var u={},h=(0,w.keys)(s),c=0;c{"use strict";n.d(e,{Z:()=>r});var i=n(655);const r=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return(0,i.ZT)(e,t),e}(n(1797).Z)},1505:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(655),r=n(7719),o=n(423),a=n(327),s=n(3051),l=n(3132),u=(0,s.defaults)({strokeFirst:!0,font:l.Uo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.$t),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,s.createObject)(u,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,o.lP)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(r.ZP);h.prototype.type="tspan";const c=h},6498:(t,e,n)=>{"use strict";n.d(e,{VG:()=>_,Y1:()=>b,ZP:()=>I});var i=n(655),r=n(6918),o=n(1505),a=n(3051),s=n(423),l=n(4535),u=n(5151),h=n(479),c=n(7719),d=n(3132),p={fill:"#000"},f={style:(0,a.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},c.ik.style)},g=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=p,n.attr(e),n}return(0,i.ZT)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,z=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),B=a.calculatedLineHeight,Z=0;Z=0&&"right"===(O=w[P]).align;)this._placeToken(O,t,T,v,L,"right",_),M-=O.width,L-=O.width,P--;for(D+=(i-(D-m)-(y-L)-M)/2;I<=P;)O=w[I],this._placeToken(O,t,T,v,D+O.width/2,"center",_),D+=O.width,I++;v+=T}},e.prototype._placeToken=function(t,e,n,i,r,l,u){var c=e.rich[t.styleName]||{};c.text=t.text;var p=t.verticalAlign,f=i+n/2;"top"===p?f=i+t.height/2:"bottom"===p&&(f=i+n-t.height/2),!t.isLineHolder&&A(c)&&this._renderBackground(c,e,"right"===l?r-t.width:"center"===l?r-t.width/2:r,f-t.height/2,t.width,t.height);var g=!!c.backgroundColor,m=t.textPadding;m&&(r=M(r,l,m),f-=t.height/2-m[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.Z),y=v.createStyle();v.useStyle(y);var _=this._defaultStyle,b=!1,w=0,C=T("fill"in c?c.fill:"fill"in e?e.fill:(b=!0,_.fill)),I=S("stroke"in c?c.stroke:"stroke"in e?e.stroke:g||u||_.autoStroke&&!b?null:(w=2,_.stroke)),D=c.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=r,y.y=f,D&&(y.shadowBlur=c.textShadowBlur||e.textShadowBlur||0,y.shadowColor=c.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=c.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=c.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=l,y.textBaseline="middle",y.font=t.font||d.Uo,y.opacity=(0,a.retrieve3)(c.opacity,e.opacity,1),x(y,c),I&&(y.lineWidth=(0,a.retrieve3)(c.lineWidth,e.lineWidth,w),y.lineDash=(0,a.retrieve2)(c.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=I),C&&(y.fill=C);var L=t.contentWidth,P=t.contentHeight;v.setBoundingRect(new h.Z((0,s.M3)(y.x,L,y.textAlign),(0,s.mU)(y.y,P,y.textBaseline),L,P))},e.prototype._renderBackground=function(t,e,n,i,r,o){var s,h,c,d=t.backgroundColor,p=t.borderWidth,f=t.borderColor,g=d&&d.image,m=d&&!g,v=t.borderRadius,y=this;if(m||t.lineHeight||p&&f){(s=this._getOrCreateChild(u.Z)).useStyle(s.createStyle()),s.style.fill=null;var _=s.shape;_.x=n,_.y=i,_.width=r,_.height=o,_.r=v,s.dirtyShape()}if(m)(c=s.style).fill=d||null,c.fillOpacity=(0,a.retrieve2)(t.fillOpacity,1);else if(g){(h=this._getOrCreateChild(l.ZP)).onload=function(){y.dirtyStyle()};var x=h.style;x.image=d.image,x.x=n,x.y=i,x.width=r,x.height=o}p&&f&&((c=s.style).lineWidth=p,c.stroke=f,c.strokeOpacity=(0,a.retrieve2)(t.strokeOpacity,1),c.lineDash=t.borderDash,c.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(c.strokeFirst=!0,c.lineWidth*=2));var b=(s||h).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return b(t)&&(e=[t.fontStyle,t.fontWeight,_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,a.trim)(e)||t.textFont||t.font},e}(c.ZP),m={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function _(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d.n5+"px":t+"px":t}function x(t,e){for(var n=0;n{"use strict";n.d(e,{RH:()=>o,SE:()=>r,YV:()=>i});var i=1,r=2,o=4},8007:(t,e,n)=>{"use strict";n.d(e,{Gq:()=>s,ko:()=>a,v5:()=>u});var i=n(2528),r=n(3132),o=new i.ZP(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,i,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),h={hostEl:n,cb:i,cbPayload:a};return s?!u(e=s.image)&&s.pending.push(h):((e=r.qW.loadImage(t,l,l)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[h]})),e}return t}return e}function l(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e{"use strict";n.d(e,{$F:()=>g,NY:()=>c,aF:()=>s});var i=n(8007),r=n(3051),o=n(423),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=l(e,n,i,r);for(var a=0,s=o.length;a=l;h++)u-=l;var c=(0,o.dz)(n,e);return c>u&&(n="",c=0),u=t-c,a.ellipsis=n,a.ellipsisWidth=c,a.contentWidth=u,a.containerWidth=t,a}function u(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=(0,o.dz)(t,i);if(a<=n)return t;for(var s=0;;s++){if(a<=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?h(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,l),a=(0,o.dz)(t,i)}return""===t&&(t=e.placeholder),t}function h(t,e,n,i){for(var r=0,o=0,a=t.length;ov&&f){var y=Math.floor(v/d);n=n.slice(0,y)}if(t&&h&&null!=g)for(var x=l(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b=0;bp&&m(n,t.substring(p,g),e,d),m(n,l[2],e,d,l[1]),p=a.lastIndex}ph){I>0?(M.tokens=M.tokens.slice(0,I),S(M,A,C),n.lines=n.lines.slice(0,T+1)):n.lines=n.lines.slice(0,T);break t}var N=D.width,k=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))Z.percentWidth=N,v.push(Z),Z.contentWidth=(0,o.dz)(Z.text,O);else{if(k){var R=D.backgroundColor,z=R&&R.image;z&&(z=i.ko(z),i.v5(z)&&(Z.width=Math.max(Z.width,z.width*E/z.height)))}var B=b&&null!=u?u-A:null;null!=B&&B0&&v+i.accumWidth>i.width&&(a=e.split("\n"),f=!0),i.accumWidth=v}else{var y=_(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+m,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var x=0;x=33&&e<=383}(t)||!!v[t]}function _(t,e,n,i,r){for(var a=[],s=[],l="",u="",h=0,c=0,d=0;dn:r+c+f>n)?c?(l||u)&&(g?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=p,l="",c=h+=f):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=p,c=f)):g?(a.push(u),s.push(h),u=p,h=f):(a.push(p),s.push(f)):(c+=f,g?(u+=p,h+=f):(u&&(l+=u,u="",h=0),l+=p))}else u&&(l+=u,c+=h),a.push(l),s.push(c),l="",u="",h=0,c=0}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}},924:(t,e,n)=>{"use strict";n.d(e,{L:()=>r});var i=n(5280);function r(t,e,n){var r=e.smooth,o=e.points;if(o&&o.length>=2){if(r){var a=function(t,e,n,r){var o,a,s,l,u=[],h=[],c=[],d=[];if(r){s=[1/0,1/0],l=[-1/0,-1/0];for(var p=0,f=t.length;p{"use strict";n.d(e,{Pw:()=>o,_3:()=>r,vu:()=>a});var i=Math.round;function r(t,e,n){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u?(i(2*r)===i(2*o)&&(t.x1=t.x2=a(r,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=a(s,u,!0)),t):t}}function o(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,s=e.height;t.x=i,t.y=r,t.width=o,t.height=s;var l=n&&n.lineWidth;return l?(t.x=a(i,l,!0),t.y=a(r,l,!0),t.width=Math.max(a(i+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(r+s,l,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}},4826:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(r.ZP);a.prototype.type="arc";const s=a},4174:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(655),r=n(327),o=n(5280),a=n(8554),s=[],l=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function u(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?a.X_:a.af)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a.X_:a.af)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?a.AZ:a.Zm)(t.x1,t.cpx1,t.x2,e),(n?a.AZ:a.Zm)(t.y1,t.cpy1,t.y2,e)]}var h=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,l=e.cpx1,u=e.cpy1,h=e.cpx2,c=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==h||null==c?(d<1&&((0,a.Lx)(n,l,r,d,s),l=s[1],r=s[2],(0,a.Lx)(i,u,o,d,s),u=s[1],o=s[2]),t.quadraticCurveTo(l,u,r,o)):(d<1&&((0,a.Vz)(n,l,h,r,d,s),l=s[1],h=s[2],r=s[3],(0,a.Vz)(i,u,c,o,d,s),u=s[1],c=s[2],o=s[3]),t.bezierCurveTo(l,u,h,c,r,o)))},e.prototype.pointAt=function(t){return u(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=u(this.shape,t,!0);return o.normalize(e,e)},e}(r.ZP);h.prototype.type="bezier-curve";const c=h},9538:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(r.ZP);a.prototype.type="circle";const s=a},2797:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(r.ZP);a.prototype.type="ellipse";const s=a},2095:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(655),r=n(327),o=n(4111),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,i,r,s;if(this.subPixelOptimize){var l=(0,o._3)(a,e,this.style);n=l.x1,i=l.y1,r=l.x2,s=l.y2}else n=e.x1,i=e.y1,r=e.x2,s=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,i),u<1&&(r=n*(1-u)+r*u,s=i*(1-u)+s*u),t.lineTo(r,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(r.ZP);l.prototype.type="line";const u=l},5094:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(327),o=n(924),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.L(t,e,!0)},e}(r.ZP);s.prototype.type="polygon";const l=s},2514:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(327),o=n(924),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.L(t,e,!1)},e}(r.ZP);s.prototype.type="polyline";const l=s},5151:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(655),r=n(327);var o=n(4111),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var l=(0,o.Pw)(s,e,this.style);n=l.x,i=l.y,r=l.width,a=l.height,l.r=e.r,e=l}else n=e.x,i=e.y,r=e.width,a=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r.ZP);l.prototype.type="rect";const u=l},5795:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(r.ZP);a.prototype.type="ring";const s=a},7214:(t,e,n)=>{"use strict";n.d(e,{C:()=>b});var i=n(655),r=n(327),o=n(3051),a=Math.PI,s=2*a,l=Math.sin,u=Math.cos,h=Math.acos,c=Math.atan2,d=Math.abs,p=Math.sqrt,f=Math.max,g=Math.min,m=1e-4;function v(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/p(s*s+l*l),h=u*l,c=-u*s,d=t+h,g=e+c,m=n+h,v=i+c,y=(d+m)/2,_=(g+v)/2,x=m-d,b=v-g,w=x*x+b*b,S=r-o,T=d*v-m*g,M=(b<0?-1:1)*p(f(0,S*S*w-T*T)),C=(T*b-x*M)/w,A=(-T*x-b*M)/w,I=(T*b+x*M)/w,D=(-T*x+b*M)/w,L=C-y,P=A-_,O=I-y,E=D-_;return L*L+P*P>O*O+E*E&&(C=I,A=D),{cx:C,cy:A,x0:-h,y0:-c,x1:C*(r/S-1),y1:A*(r/S-1)}}function y(t,e){var n,i=f(e.r,0),r=f(e.r0||0,0),y=i>0;if(y||r>0){if(y||(i=r,r=0),r>i){var _=i;i=r,r=_}var x=e.startAngle,b=e.endAngle;if(!isNaN(x)&&!isNaN(b)){var w=e.cx,S=e.cy,T=!!e.clockwise,M=d(b-x),C=M>s&&M%s;if(C>m&&(M=C),i>m)if(M>s-m)t.moveTo(w+i*u(x),S+i*l(x)),t.arc(w,S,i,x,b,!T),r>m&&(t.moveTo(w+r*u(b),S+r*l(b)),t.arc(w,S,r,b,x,T));else{var A=void 0,I=void 0,D=void 0,L=void 0,P=void 0,O=void 0,E=void 0,N=void 0,k=void 0,R=void 0,z=void 0,B=void 0,Z=void 0,F=void 0,V=void 0,G=void 0,H=i*u(x),U=i*l(x),W=r*u(b),j=r*l(b),X=M>m;if(X){var Y=e.cornerRadius;Y&&(A=(n=function(t){var e;if((0,o.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(Y))[0],I=n[1],D=n[2],L=n[3]);var q=d(i-r)/2;if(P=g(q,D),O=g(q,L),E=g(q,A),N=g(q,I),z=k=f(P,O),B=R=f(E,N),(k>m||R>m)&&(Z=i*u(b),F=i*l(b),V=r*u(x),G=r*l(x),Mm){var it=g(D,z),rt=g(L,z),ot=v(V,G,H,U,i,it,T),at=v(Z,F,W,j,i,rt,T);t.moveTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),z0&&t.arc(w+ot.cx,S+ot.cy,it,c(ot.y0,ot.x0),c(ot.y1,ot.x1),!T),t.arc(w,S,i,c(ot.cy+ot.y1,ot.cx+ot.x1),c(at.cy+at.y1,at.cx+at.x1),!T),rt>0&&t.arc(w+at.cx,S+at.cy,rt,c(at.y1,at.x1),c(at.y0,at.x0),!T))}else t.moveTo(w+H,S+U),t.arc(w,S,i,x,b,!T);else t.moveTo(w+H,S+U);if(r>m&&X)if(B>m){it=g(A,B),ot=v(W,j,Z,F,r,-(rt=g(I,B)),T),at=v(H,U,V,G,r,-it,T);t.lineTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),B0&&t.arc(w+ot.cx,S+ot.cy,rt,c(ot.y0,ot.x0),c(ot.y1,ot.x1),!T),t.arc(w,S,r,c(ot.cy+ot.y1,ot.cx+ot.x1),c(at.cy+at.y1,at.cx+at.x1),T),it>0&&t.arc(w+at.cx,S+at.cy,it,c(at.y1,at.x1),c(at.y0,at.x0),!T))}else t.lineTo(w+W,S+j),t.arc(w,S,r,b,x,T);else t.lineTo(w+W,S+j)}else t.moveTo(w,S);t.closePath()}}}var _=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},x=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new _},e.prototype.buildPath=function(t,e){y(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r.ZP);x.prototype.type="sector";const b=x},6076:(t,e,n)=>{"use strict";n.d(e,{Z:()=>wt});var i=n(4839),r=n(327),o=n(4535),a=n(423),s=n(1505),l=Math.sin,u=Math.cos,h=Math.PI,c=2*Math.PI,d=180/h;const p=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,r,o,a,s,p){var f=s-a,g=!p,m=Math.abs(f),v=(0,i.zT)(m-c)||(g?f>=c:-f>=c),y=f>0?f%c:f%c+c,_=!1;_=!!v||!(0,i.zT)(m)&&y>=h==!!g;var x=t+n*u(a),b=e+r*l(a);this._start&&this._add("M",x,b);var w=Math.round(o*d);if(v){var S=1/this._p,T=(g?1:-1)*(c-S);this._add("A",n,r,w,1,+g,t+n*u(a+T),e+r*l(a+T)),S>.01&&this._add("A",n,r,w,0,+g,x,b)}else{var M=t+n*u(s),C=e+r*l(s);this._add("A",n,r,w,+_,+g,M,C)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c"}(r,e.attrs)+(e.text||"")+(i?""+n+(0,g.map)(i,(function(e){return t(e)})).join(n)+n:"")+("")}(t)}function C(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function A(t,e,n,i){return T("svg","root",{width:t,height:e,xmlns:b,"xmlns:xlink":w,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var I=n(8007),D=n(7411),L=n(4014),P=n(2776),O=n(5188),E={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},N="transform-origin";function k(t,e,n){var r=(0,g.extend)({},t.shape);(0,g.extend)(r,e),t.buildPath(n,r);var o=new p;return o.reset((0,i.Gk)(t)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function R(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[N]=n+"px "+i+"px")}var z={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function B(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Z(t){return(0,g.isString)(t)?E[t]?"cubic-bezier("+E[t]+")":(0,O.H)(t)?t:"":""}function F(t,e,n,r){var o=t.animators,a=o.length,s=[];if(t instanceof P.Z){var l=function(t,e,n){var i,r,o=t.shape.paths,a={};if((0,g.each)(o,(function(t){var e=C(n.zrId);e.animation=!0,F(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=(0,g.keys)(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var d=h[c];a[c]=a[c]||{d:""},a[c].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=B(a,n);return i.replace(r,s)}}(t,e,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var u={},h=0;h0})).length)return B(c,n)+" "+o[0]+" both"}for(var y in u){(l=v(u[y]))&&s.push(l)}if(s.length){var _=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+_]={animation:s.join(",")},e.class=_}}var V=n(6498),G=n(3132),H=Math.round;function U(t){return t&&(0,g.isString)(t.src)}function W(t){return t&&(0,g.isFunction)(t.toDataURL)}function j(t,e,n,r){x((function(o,a){var s="fill"===o||"stroke"===o;s&&(0,i.H3)(a)?function(t,e,n,r){var o,a=t[n],s={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if((0,i.I1)(a))o="linearGradient",s.x1=a.x,s.y1=a.y,s.x2=a.x2,s.y2=a.y2;else{if(!(0,i.gO)(a))return void 0;o="radialGradient",s.cx=(0,g.retrieve2)(a.x,.5),s.cy=(0,g.retrieve2)(a.y,.5),s.r=(0,g.retrieve2)(a.r,.5)}for(var l=a.colorStops,u=[],h=0,c=l.length;hl?mt(t,null==n[c+1]?null:n[c+1].elm,n,s,c):vt(t,e,a,l))}(n,i,r):dt(r)?(dt(t.text)&&ut(n,""),mt(n,null,r,0,r.length-1)):dt(i)?vt(n,i,0,i.length-1):dt(t.text)&&ut(n,""):t.text!==e.text&&(dt(i)&&vt(n,i,0,i.length-1),ut(n,e.text)))}var xt=n(5787),bt=0;const wt=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=(0,g.extend)({},n),this.root=t,this._id="zr"+bt++,this._oldVNode=A(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=S("svg");yt(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(ft(t,e))_t(t,e);else{var n=t.elm,i=st(n);gt(e),null!==i&&(rt(i,e.elm,lt(n)),vt(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return et(t,C(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,o=this._height,a=C(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var s=[];if(n&&"none"!==n){var l=(0,i.ut)(n),u=l.color,h=l.opacity;this._bgVNode=T("rect","bg",{width:r,height:o,x:"0",y:"0",id:"0",fill:u,"fill-opacity":h}),s.push(this._bgVNode)}else this._bgVNode=null;var c=t.compress?null:this._mainVNode=T("g","main",{},[]);this._paintList(e,a,c?c.children:s),c&&s.push(c);var d=(0,g.map)((0,g.keys)(a.defs),(function(t){return a.defs[t]}));if(d.length&&s.push(T("defs","defs",{},d)),t.animation){var p=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=(0,g.map)((0,g.keys)(t),(function(e){return e+r+(0,g.map)((0,g.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=(0,g.map)((0,g.keys)(e),(function(t){return"@keyframes "+t+r+(0,g.map)((0,g.keys)(e[t]),(function(n){return n+r+(0,g.map)((0,g.keys)(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}(a.cssNodes,a.cssAnims,{newline:!0});if(p){var f=T("style","stl",{},[],p);s.push(f)}}return A(r,o,s,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},M(this.renderToVNode({animation:(0,g.retrieve2)(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:(0,g.retrieve2)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=(0,i.ut)(t),r=n.color,o=n.opacity;e.elm.setAttribute("fill",r),o<1&&e.elm.setAttribute("fill-opacity",o)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var m=f+1;m{"use strict";n.d(e,{Cv:()=>v,Gk:()=>S,H3:()=>b,I1:()=>_,Pn:()=>c,R:()=>y,gA:()=>T,gO:()=>x,i2:()=>g,jY:()=>p,m1:()=>w,mU:()=>f,n1:()=>m,oF:()=>M,qV:()=>d,ut:()=>s,zT:()=>u});var i=n(3051),r=n(1092),o=n(6387),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=(0,r.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function u(t){return t-1e-4}function h(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function d(t){return"matrix("+h(t[0])+","+h(t[1])+","+h(t[2])+","+h(t[3])+","+c(t[4])+","+c(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return v(t)||function(t){return t&&!!t.svgElement}(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function b(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function T(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.RADIAN_TO_DEGREE,o=(0,i.retrieve2)(t.scaleX,1),s=(0,i.retrieve2)(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,h=[];return(e||n)&&h.push("translate("+e+"px,"+n+"px)"),r&&h.push("rotate("+r+")"),1===o&&1===s||h.push("scale("+o+","+s+")"),(l||u)&&h.push("skew("+a(l*i.RADIAN_TO_DEGREE)+"deg, "+a(u*i.RADIAN_TO_DEGREE)+"deg)"),h.join(" ")}var M=o.default.hasGlobalWindow&&(0,i.isFunction)(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}},1092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{fastLerp:()=>x,fastMapToColor:()=>b,lerp:()=>w,lift:()=>y,lum:()=>A,mapToColor:()=>S,modifyAlpha:()=>M,modifyHSL:()=>T,parse:()=>m,random:()=>I,stringify:()=>C,toHex:()=>_});var i=n(2528),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(t){return(t=Math.round(t))<0?0:t>255?255:t}function a(t){return t<0?0:t>1?1:t}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function c(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i.ZP(20),f=null;function g(t,e){f&&d(f,e),f=p.put(t,f||e.slice())}function m(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in r)return d(e,r[i]),g(t,e),e;var o,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(o=parseInt(i.slice(1,4),16))>=0&&o<=4095?(c(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(i.slice(4),16)/15:1),g(t,e),e):void c(e,0,0,0,1):7===a||9===a?(o=parseInt(i.slice(1,7),16))>=0&&o<=16777215?(c(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(i.slice(7),16)/255:1),g(t,e),e):void c(e,0,0,0,1):void 0;var u=i.indexOf("("),h=i.indexOf(")");if(-1!==u&&h+1===a){var f=i.substr(0,u),m=i.substr(u+1,h-(u+1)).split(","),y=1;switch(f){case"rgba":if(4!==m.length)return 3===m.length?c(e,+m[0],+m[1],+m[2],1):c(e,0,0,0,1);y=l(m.pop());case"rgb":return 3!==m.length?void c(e,0,0,0,1):(c(e,s(m[0]),s(m[1]),s(m[2]),y),g(t,e),e);case"hsla":return 4!==m.length?void c(e,0,0,0,1):(m[3]=l(m[3]),v(m,e),g(t,e),e);case"hsl":return 3!==m.length?void c(e,0,0,0,1):(v(m,e),g(t,e),e);default:return}}c(e,0,0,0,1)}}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),r=l(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return c(e=e||[],o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var n=m(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return C(n,4===n.length?"rgba":"rgb")}}function _(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=e[r],u=e[s],c=i-r;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=a(h(l[3],u[3],c)),n}}var b=x;function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=m(e[r]),u=m(e[s]),c=i-r,d=C([o(h(l[0],u[0],c)),o(h(l[1],u[1],c)),o(h(l[2],u[2],c)),a(h(l[3],u[3],c))],"rgba");return n?{color:d,leftIndex:r,rightIndex:s,value:i}:d}}var S=w;function T(t,e,n,i){var r,o=m(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=l(n)),null!=i&&(o[2]=l(i)),C(v(o),"rgba")}function M(t,e){var n=m(t);if(n&&null!=e)return n[3]=a(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function A(t,e){var n=m(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function I(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},7494:(t,e,n)=>{"use strict";n.d(e,{U5:()=>D,iR:()=>C,Pc:()=>A,AA:()=>I});var i=n(655),r=n(327),o=n(4014),a=n(5280),s=o.Z.CMD,l=[[],[],[]],u=Math.sqrt,h=Math.atan2;function c(t,e){if(e){var n,i,r,o,c,d,p=t.data,f=t.len(),g=s.M,m=s.C,v=s.L,y=s.R,_=s.A,x=s.Q;for(r=0,o=0;r1&&(a*=p(x),s*=p(x));var b=(r===o?-1:1)*p((a*a*(s*s)-a*a*(v*v)-s*s*(d*d))/(a*a*(v*v)+s*s*(d*d)))||0,w=b*a*v/s,S=b*-s*d/a,T=(t+n)/2+g(c)*w-f(c)*S,M=(e+i)/2+f(c)*w+g(c)*S,C=_([1,0],[(d-w)/a,(v-S)/s]),A=[(d-w)/a,(v-S)/s],I=[(-1*d-w)/a,(-1*v-S)/s],D=_(A,I);if(y(A,I)<=-1&&(D=m),y(A,I)>=1&&(D=0),D<0){var L=Math.round(D/m*1e6)/1e6;D=2*m+L%2*m}h.addData(u,T,M,a,s,C,D,c,o)}var b=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.applyTransform=function(t){},e}(r.ZP);function T(t){return null!=t.setData}function M(t,e){var n=function(t){var e=new o.Z;if(!t)return e;var n,i=0,r=0,a=i,s=r,l=o.Z.CMD,u=t.match(b);if(!u)return e;for(var h=0;h{"use strict";n.r(e),n.d(e,{dispose:()=>ot,disposeAll:()=>at,getInstance:()=>st,init:()=>rt,registerPainter:()=>lt,version:()=>ut});var i=n(6387),r=n(3051),o=n(655),a=n(5280),s=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};const l=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;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(new s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=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(new s(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=a,e!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,t),"dragleave",t.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();var u=n(3510),h=n(1158),c=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=d(r)/d(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},f="silent";function g(){h.sT(this.event)}var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,o.ZT)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(u.Z),v=function(t,e){this.x=t,this.y=e},y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._hovered=new v(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new m,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new l(o),o}return(0,o.ZT)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(r.each(y,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=b(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new v(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new v(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:g}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new v(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=x(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==f)){r.target=i[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new c);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new v;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(u.Z);function x(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||f}return!1}function b(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){_.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,s=b(this,r,o);if("mouseup"===t&&s||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const w=_;var S=n(9455),T=n(4414),M=!1;function C(){M||(M=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function A(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}const I=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=A}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(C(),u.z=0),isNaN(u.z2)&&(C(),u.z2=0),isNaN(u.zlevel)&&(C(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();var D=n(2795),L=n(5622);function P(){return(new Date).getTime()}const O=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return(0,o.ZT)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=P()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,D.Z)((function e(){t._running&&((0,D.Z)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=P(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=P(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=P()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new L.Z(t,e.loop);return this.addAnimator(n),n},e}(u.Z);var E,N,k=i.default.domSupported,R=(N={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:E=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:r.map(E,(function(t){var e=t.replace("mouse","pointer");return N.hasOwnProperty(e)?e:t}))}),z=["mousemove","mouseup"],B=["pointermove","pointerup"],Z=!1;function F(t){var e=t.pointerType;return"pen"===e||"touch"===e}function V(t){t&&(t.zrByTouch=!0)}function G(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var H=function(t,e){this.stopPropagation=r.noop,this.stopImmediatePropagation=r.noop,this.preventDefault=r.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},U={mousedown:function(t){t=(0,h.OD)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,h.OD)(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,h.OD)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){G(this,(t=(0,h.OD)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Z=!0,t=(0,h.OD)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Z||(t=(0,h.OD)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){V(t=(0,h.OD)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),U.mousemove.call(this,t),U.mousedown.call(this,t)},touchmove:function(t){V(t=(0,h.OD)(this.dom,t)),this.handler.processGesture(t,"change"),U.mousemove.call(this,t)},touchend:function(t){V(t=(0,h.OD)(this.dom,t)),this.handler.processGesture(t,"end"),U.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&U.click.call(this,t)},pointerdown:function(t){U.mousedown.call(this,t)},pointermove:function(t){F(t)||U.mousemove.call(this,t)},pointerup:function(t){U.mouseup.call(this,t)},pointerout:function(t){F(t)||U.mouseout.call(this,t)}};r.each(["click","dblclick","contextmenu"],(function(t){U[t]=function(e){e=(0,h.OD)(this.dom,e),this.trigger(t,e)}}));var W={pointermove:function(t){F(t)||W.mousemove.call(this,t)},pointerup:function(t){W.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function j(t,e){var n=e.domHandlers;i.default.pointerEventsSupported?r.each(R.pointer,(function(i){Y(e,i,(function(e){n[i].call(t,e)}))})):(i.default.touchEventsSupported&&r.each(R.touch,(function(i){Y(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),r.each(R.mouse,(function(i){Y(e,i,(function(r){r=(0,h.iP)(r),e.touching||n[i].call(t,r)}))})))}function X(t,e){function n(n){Y(e,n,(function(i){i=(0,h.iP)(i),G(t,i.target)||(i=function(t,e){return(0,h.OD)(t.dom,new H(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}i.default.pointerEventsSupported?r.each(B,n):i.default.touchEventsSupported||r.each(z,n)}function Y(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,(0,h.Oo)(t.domTarget,e,n,i)}function q(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,h.xg)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var K=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const J=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new K(e,U),k&&(i._globalHandlerScope=new K(document,W)),j(i,i._localHandlerScope),i}return(0,o.ZT)(e,t),e.prototype.dispose=function(){q(this._localHandlerScope),k&&q(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,k&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?X(this,e):q(e)}},e}(u.Z);var Q=n(1092),$=n(4990),tt=n(8154),et={},nt={};var it=function(){function t(t,e,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new I,s=n.renderer||"canvas";et[s]||(s=r.keys(et)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new et[s](e,a,n,t),u=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var h=i.default.node||i.default.worker||u?null:new J(l.getViewportRoot(),l.root);this.handler=new w(a,l,h,l.root),this.animation=new O({stage:{update:u?null:function(){return o._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,Q.lum)(t,1)<$.Ak;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{Axis:()=>s.RD,ChartView:()=>s.TA,ComponentModel:()=>s.tF,ComponentView:()=>s.Ir,List:()=>s.aV,Model:()=>s.Hn,PRIORITY:()=>s.Hr,SeriesModel:()=>s.wJ,color:()=>s.$_,connect:()=>s.$j,dataTool:()=>s.Ok,default:()=>p,dependencies:()=>s.HO,disConnect:()=>s.eU,disconnect:()=>s.zP,dispose:()=>s.B9,env:()=>s.OB,extendChartView:()=>s.Zy,extendComponentModel:()=>s.tv,extendComponentView:()=>s.Sp,extendSeriesModel:()=>s.Zr,format:()=>s.WU,getCoordinateSystemDimensions:()=>s.wL,getInstanceByDom:()=>s.JE,getInstanceById:()=>s.rp,getMap:()=>s.FU,graphic:()=>s.Q,helper:()=>s._y,init:()=>s.S1,innerDrawElementOnCanvas:()=>s.z$,matrix:()=>s.pI,number:()=>s.Rx,parseGeoJSON:()=>s.Nu,parseGeoJson:()=>s.pQ,registerAction:()=>s.zl,registerCoordinateSystem:()=>s.RS,registerLayout:()=>s.qR,registerLoading:()=>s.yn,registerLocale:()=>s.I2,registerMap:()=>s.je,registerPostInit:()=>s.sq,registerPostUpdate:()=>s.Br,registerPreprocessor:()=>s.ds,registerProcessor:()=>s.Pu,registerTheme:()=>s.aW,registerTransform:()=>s.rV,registerUpdateLifecycle:()=>s.YK,registerVisual:()=>s.Og,setCanvasCreator:()=>s.jQ,setPlatformAPI:()=>s.g2,throttle:()=>s.P2,time:()=>s.XV,use:()=>s.D$,util:()=>s.D5,vector:()=>s.xr,version:()=>s.i8,zrUtil:()=>s.gf,zrender:()=>s.x_});const e={...{metadata:!0,svgRender:!1,switchMode:!1,echartsOption:{aria:{show:!0,description:"This is a force-oriented graph chart that depicts the relationship between ip nodes."},toolbox:{show:!0,iconStyle:{borderColor:"#fff"},feature:{restore:{show:!0,title:"Restore view"},saveAsImage:{show:!0,title:"Save image"}}}},graphConfig:{series:{layout:"force",label:{show:!0,color:"#fff",position:"top"},force:{gravity:.1,edgeLength:[20,60],repulsion:120},roam:!0,draggable:!0,legendHoverLink:!0,emphasis:{focus:"none",lineStyle:{color:"#3acc38",opacity:1}},nodeStyle:{color:"#f4d38c"},linkStyle:{width:5,color:"#1ba619"},nodeSize:"17"},baseOptions:{backgroundColor:"#2B2B2B"}},mapOptions:{roam:!0,nodeConfig:{type:"scatter",label:{show:!0,color:"#000000",position:"top",formatter:"{b}"},nodeStyle:{color:"#1566a9"},nodeSize:"17"},linkConfig:{linkStyle:{width:5,color:"#1ba619"},emphasis:{focus:"none",lineStyle:{color:"#3acc38",opacity:1}}},baseOptions:{toolbox:{show:!1}}},mapTileConfig:[{urlTemplate:"https://tiles.stadiamaps.com/tiles/outdoors/{z}/{x}/{y}{r}.png",options:{minZoom:3,maxZoom:32,attribution:'© Stadia Maps, © OpenMapTiles © OpenStreetMap contributors'}}],nodeCategories:[],linkCategories:[],prepareData(t){},onClickElement(t,e){}}};const i=class{constructor(t){this.self=t,this.renderModeSelector=null,this.controls=null,this.sideBar=null,this.aboutContainer=null,this.nodeLinkInfoContainer=null}createControls(){const t=document.createElement("div");return t.setAttribute("class","njg-controls"),this.self.el.appendChild(t),t}createRenderModeSelector(){const t=document.createElement("div"),e=document.createElement("span");return e.setAttribute("class","iconfont icon-eye"),t.setAttribute("class","njg-selectIcon"),t.appendChild(e),this.controls.appendChild(t),t}createSideBar(){const t=document.createElement("div");t.setAttribute("class","njg-sideBar");const{body:e}=document,n=document.createElement("button");return t.appendChild(n),n.classList.add("sideBarHandle"),n.onclick=()=>{t.classList.toggle("hidden")},e.appendChild(t),t}createAboutContainer(){const t=document.createElement("div"),e=document.createElement("h2"),n=document.createElement("div");return n.classList.add("njg-metaData"),t.classList.add("njg-aboutContainer"),e.innerHTML="About",t.appendChild(e),t.appendChild(n),this.sideBar.appendChild(t),this.nodeLinkInfoContainer=this.createNodeLinkInfoContainer(),t}createNodeLinkInfoContainer(){const t=document.createElement("div");return t.classList.add("njg-nodeLinkInfoContainer"),t.style.visibility="hidden",this.sideBar.appendChild(t),t}getNodeLinkInfo(t,e){const n=document.querySelectorAll(".njg-infoContainer"),i=document.querySelectorAll(".njg-headerContainer");for(let t=0;t{const n=document.createElement("div");n.classList.add("njg-infoItems");const i=document.createElement("span");i.setAttribute("class","njg-keyLabel");const r=document.createElement("span");r.setAttribute("class","njg-valueLabel"),"location"===t?(i.innerHTML="Location",r.innerHTML=`${Math.round(1e3*e[t].lat)/1e3}, ${Math.round(1e3*e[t].lng)/1e3}`):"localAddresses"===t?(i.innerHTML="Local Addresses",r.innerHTML=e[t].join("
")):(i.innerHTML=t,r.innerHTML=e[t]),n.appendChild(i),n.appendChild(r),o.appendChild(n)})),r.appendChild(a),r.appendChild(s),this.nodeLinkInfoContainer.appendChild(r),this.nodeLinkInfoContainer.appendChild(o),s.onclick=()=>{this.nodeLinkInfoContainer.style.visibility="hidden"}}init(){this.sideBar=this.createSideBar(),this.self.config.switchMode&&(this.controls=this.createControls(),this.renderModeSelector=this.createRenderModeSelector())}};const r=class{JSONParamParse(t){return"string"==typeof t?fetch(t,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((t=>t.json?t.json():t)).catch((t=>{console.error(t)})):Promise.resolve(t)}dateParse({dateString:t,parseRegular:e=/^([1-9]\d{3})-(\d{1,2})-(\d{1,2})T(\d{1,2}):(\d{1,2}):(\d{1,2})(?:\.(\d{1,3}))?Z$/,hourDiffer:n=(new Date).getTimezoneOffset()/60}){const i=e.exec(t);if(!i||i.length<7)return console.error("Date doesn't meet the specifications."),"";const r=["dateYear","dateMonth","dateDay","dateHour"],o={},a=i[1]%4==0&&i[1]%100!=0||i[1]%400==0,s=new Map([["dateMonth",12],["dateDay",[31,a?29:28,31,30,31,30,31,31,30,31,30,31]],["dateHour",24]]);for(let t=r.length;t>0;t-=1)o[r[t-1]]=parseInt(i[t],10);let l,u=-n;for(let t=r.length;t>0;t-=1){if("dateYear"===r[t-1]){o[r[t-1]]+=u;break}l="dateDay"===r[t-1]?s.get("dateDay")[o.dateMonth-1]:s.get(r[t-1]);let e=o[r[t-1]]+u;u="dateHour"===r[t-1]?e<0?-1:e>=l?1:0:e<=0?-1:e>l?1:0,1===u?e-=l:u<0&&("dateDay"===r[t-1]&&(l=s.get("dateDay")[(o[r[t-1]]+10)%11]),e+=l),o[r[t-1]]=e}return`${o.dateYear}.${this.numberMinDigit(o.dateMonth)}.${this.numberMinDigit(o.dateDay)} ${this.numberMinDigit(o.dateHour)}:${this.numberMinDigit(i[5])}:${this.numberMinDigit(i[6])}${i[7]?`.${this.numberMinDigit(i[7],3)}`:""}`}numberMinDigit(t,e=2,n="0"){return(Array(e).join(n)+t).slice(-e)}isObject(t){return"Object"===Object.prototype.toString.call(t).slice(8,14)}isArray(t){return"Array"===Object.prototype.toString.call(t).slice(8,13)}isElement(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}deepMergeObj(...t){const e=[...t].reverse(),n=e.length;for(let t=0;t{i[t]&&this.isObject(i[t])&&this.isObject(n[t])?this.deepMergeObj(i[t],n[t]):i[t]=n[t]})):i||(e[t+1]=n)}return e[n-1]}updateMetadata(){if(this.config.metadata){const t=this.utils.getMetadata(this.data),e=document.querySelector(".njg-metaData"),n=document.querySelectorAll(".njg-metaDataItems");for(let t=0;t{const i=document.createElement("div");i.classList.add("njg-metaDataItems");const r=document.createElement("span");r.setAttribute("class","njg-keyLabel");const o=document.createElement("span");o.setAttribute("class","njg-valueLabel"),r.innerHTML=n,o.innerHTML=t[n],i.appendChild(r),i.appendChild(o),e.appendChild(i)}))}}getMetadata(t){const e=t,n={};return e.label&&(n.label=e.label),["protocol","version","revision","metric","router_id","topology_id"].forEach((t=>{e[t]&&(n[t]=e[t])})),n.nodes=e.nodes.length,n.links=e.links.length,n}nodeInfo(t){const e={};return e.id=t.id,t.label&&"string"==typeof t.label&&(e.label=t.label),t.name&&(e.name=t.name),t.location&&(e.location=t.location),t.properties&&Object.keys(t.properties).forEach((n=>{if("location"===n)e[n]={lat:t.properties.location.lat,lng:t.properties.location.lng};else if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e[n]=i}else e[n.replace(/_/g," ")]=t.properties[n]})),t.linkCount&&(e.links=t.linkCount),t.local_addresses&&(e.localAddresses=t.local_addresses),e}createTooltipItem(t,e){const n=document.createElement("div");n.classList.add("njg-tooltip-item");const i=document.createElement("span");i.setAttribute("class","njg-tooltip-key");const r=document.createElement("span");return r.setAttribute("class","njg-tooltip-value"),i.innerHTML=t,r.innerHTML=e,n.appendChild(i),n.appendChild(r),n}getNodeTooltipInfo(t){const e=document.createElement("div");return e.classList.add("njg-tooltip-inner"),t.id&&e.appendChild(this.createTooltipItem("id",t.id)),t.label&&"string"==typeof t.label&&e.appendChild(this.createTooltipItem("label",t.label)),t.properties&&Object.keys(t.properties).forEach((n=>{if("location"===n)e.appendChild(this.createTooltipItem("location",`${Math.round(1e3*t.properties.location.lat)/1e3}, ${Math.round(1e3*t.properties.location.lng)/1e3}`));else if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e.appendChild(this.createTooltipItem("time",i))}else e.appendChild(this.createTooltipItem(`${n.replace(/_/g," ")}`,t.properties[n]))})),t.linkCount&&e.appendChild(this.createTooltipItem("Links",t.linkCount)),t.local_addresses&&e.appendChild(this.createTooltipItem("Local Addresses",t.local_addresses.join("
"))),e}getLinkTooltipInfo(t){const e=document.createElement("div");return e.classList.add("njg-tooltip-inner"),e.appendChild(this.createTooltipItem("source",t.source)),e.appendChild(this.createTooltipItem("target",t.target)),e.appendChild(this.createTooltipItem("cost",t.cost)),t.properties&&Object.keys(t.properties).forEach((n=>{if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e.appendChild(this.createTooltipItem("time",i))}else e.appendChild(this.createTooltipItem(`${n.replace(/_/g," ")}`,t.properties[n]))})),e}linkInfo(t){const e={};return e.source=t.source,e.target=t.target,e.cost=t.cost,t.properties&&Object.keys(t.properties).forEach((n=>{if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e[n]=i}else e[n.replace(/_/g," ")]=t.properties[n]})),e}generateStyle(t,e){return"function"==typeof t?t(e):t}getNodeStyle(t,e,n){let i,r={},o={};if(t.category&&e.nodeCategories.length){const n=e.nodeCategories.find((e=>e.name===t.category));i=this.generateStyle(n.nodeStyle||{},t),r=this.generateStyle(n.nodeSize||{},t),o={...o,nodeStyle:n.emphasis?this.generateStyle(n.emphasis.nodeStyle||{},t):{}},o={...o,nodeSize:n.empahsis?this.generateStyle(n.emphasis.nodeSize||{},t):{}}}else"map"===n?(i=this.generateStyle(e.mapOptions.nodeConfig.nodeStyle,t),r=this.generateStyle(e.mapOptions.nodeConfig.nodeSize,t)):(i=this.generateStyle(e.graphConfig.series.nodeStyle,t),r=this.generateStyle(e.graphConfig.series.nodeSize,t));return{nodeStyleConfig:i,nodeSizeConfig:r,nodeEmphasisConfig:o}}getLinkStyle(t,e,n){let i,r={};if(t.category&&e.linkCategories.length){const n=e.linkCategories.find((e=>e.name===t.category));i=this.generateStyle(n.linkStyle||{},t),r={...r,linkStyle:n.emphasis?this.generateStyle(n.emphasis.linkStyle||{},t):{}}}else i="map"===n?this.generateStyle(e.mapOptions.linkConfig.linkStyle,t):this.generateStyle(e.graphConfig.series.linkStyle,t);return{linkStyleConfig:i,linkEmphasisConfig:r}}getGUI(t){return new i(t)}showLoading(){let t=document.getElementById("loadingContainer");return t?t.style.visibility="visible":(t=document.createElement("div"),t.setAttribute("id","loadingContainer"),t.innerHTML='\n
\n
\n

Loading...

\n
\n ',this.el.appendChild(t)),t}hideLoading(){const t=document.getElementById("loadingContainer");return t&&(t.style.visibility="hidden"),t}createEvent(){const t=new Map,e=new Map;return{on(e,...n){t.set(e,[...t.get(e)||[],...n])},once(t,...n){e.set(t,[...e.get(t)||[],...n])},emit(n){const i=t.get(n)||[],r=e.get(n)||[],o=i.map((t=>t())),a=r.map((t=>t()));return e.delete(n),[...o,...a]},delete(n){t.delete(n),e.delete(n)}}}};const o=class extends r{searchElements(t){const e=this,n={"":{data:{...e.data},param:[...e.JSONParam]}};return window.history.pushState({searchValue:""},""),window.onpopstate=i=>{n[i.state.searchValue]?e.utils.JSONDataUpdate.call(e,n[i.state.searchValue].data).then((()=>{e.JSONParam=n[i.state.searchValue].param})):e.utils.JSONDataUpdate.call(e,t+i.state.searchValue)},function(i,r=!0,o=!0){const a=i.trim();if(!window.history.state||window.history.state&&window.history.state.searchValue!==a)return window.history.pushState({searchValue:a},""),e.utils.JSONDataUpdate.call(e,t+a,r,o).then((()=>{n[a]={data:{...e.data},param:[...e.JSONParam]}}))}}JSONDataUpdate(t,e=!0,n=!0){const i=this;return i.config.onUpdate.call(i),i.utils.JSONParamParse(t).then((r=>{function o(){e?(i.JSONParam=[t],i.utils.overrideData(r,i)):(i.JSONParam.push(t),i.config.render===i.utils.mapRender?i.utils.appendData(r,i):i.utils.addData(r,i)),i.utils.updateMetadata.call(i)}return n?(i.config.prepareData.call(i,r),i.config.dealDataByWorker?i.utils.dealDataByWorker.call(i,r,i.config.dealDataByWorker,o):o()):o(),r})).catch((t=>{console.error(t)}))}dealDataByWorker(t,e,n){const i=new Worker(e),r=this;i.postMessage(t),i.addEventListener("error",(t=>{console.error(t),console.error("Error in dealing JSONData!")})),i.addEventListener("message",(t=>{n?n():r.utils.overrideData(t.data,r)}))}overrideData(t,e){e.data=t,e.utils.render(),e.config.afterUpdate.call(e)}};const a=class{constructor(t){this.utils=new o,this.config={...e},this.JSONParam=this.utils.isArray(t)?t:[t]}setConfig(t){return this.utils.deepMergeObj(this.config,t),this.el?t&&t.el&&console.error("Can't change el again!"):(this.config.el?this.utils.isElement(this.config.el)?this.el=this.config.el:this.el=document.getElementById(this.config.el):this.el=document.body,this.el===document.body&&(this.el.classList.add("njg-relativePosition"),this.el.setAttribute("id","graphChartContainer"))),this.config}render(){const[t,...e]=this.JSONParam;if(this.config.onRender.call(this),this.event.once("onLoad",this.config.onLoad.bind(this)),this.utils.JSONParamParse(t).then((t=>{this.config.prepareData.call(this,t),this.data=t,this.config.dealDataByWorker?this.utils.dealDataByWorker.call(this,t,this.config.dealDataByWorker):(this.data=t,this.utils.render())})).catch((t=>{console.error(t)})),e.length){const n=function(){e.map((t=>this.utils.JSONDataUpdate.call(this,t,!1)))};this.JSONParam=[t],this.event.once("renderArray",n.bind(this))}}setUtils(t={}){const e=this;return e.utils=Object.assign(e.utils,{...t},{render(){if(!e.config.render)throw new Error("No render function!");e.config.render(e.data,e)}}),e.utils}};var s=n(9060),l=n(8023),u=n(1615),h=n(12),c=n(7240),d=n(7164);(0,l.D)([h.N,c.N]);const p={init:function(){return u.S1.apply(null,arguments)}};(0,l.D)(d.T);var f=n(6026);(0,l.D)(f.N);var g=n(9517);(0,l.D)(g.N);var m=n(241);(0,l.D)(m.N);var v=n(7813);(0,l.D)(v.N);var y=n(8690);(0,l.D)(y.N);var _=n(5045);(0,l.D)(_.N);var x=n(3450);(0,l.D)(x.N);var b=n(9448),w=n(6076);(0,b.registerPainter)("svg",w.Z);n(3721);var S=n(531),T=n.n(S);class M{echartsSetOption(t,e){const n=e.config,i=e.echarts,r=e.utils.deepMergeObj({tooltip:{confine:!0,position:(t,e,n,i,r)=>{let o="right";return r.viewSize[0]-t[0]"graph"===t.componentSubType?"edge"===t.dataType?e.utils.getLinkTooltipInfo(t.data):e.utils.getNodeTooltipInfo(t.data):"graphGL"===t.componentSubType?e.utils.getNodeTooltipInfo(t.data):"lines"===t.componentSubType?e.utils.getLinkTooltipInfo(t.data.link):e.utils.getNodeTooltipInfo(t.data.node)}},n.echartsOption);return i.setOption(e.utils.deepMergeObj(r,t)),i.on("click",(t=>{const i=n.onClickElement.bind(e);return"graph"===t.componentSubType?i("edge"===t.dataType?"link":"node",t.data):"graphGL"===t.componentSubType?i("node",t.data):"lines"===t.componentSubType?i("link",t.data.link):i("node",t.data.node)}),{passive:!0}),i}generateGraphOption(t,e){const n=[],i=e.config,r=t.nodes.map((t=>{const n=JSON.parse(JSON.stringify(t)),{nodeStyleConfig:r,nodeSizeConfig:o,nodeEmphasisConfig:a}=e.utils.getNodeStyle(t,i,"graph");return n.itemStyle=r,n.symbolSize=o,n.emphasis={itemStyle:a.nodeStyle,symbolSize:a.nodeSize},n.name="string"==typeof t.label?t.label:t.id,n})),o=t.links.map((t=>{const n=JSON.parse(JSON.stringify(t)),{linkStyleConfig:r,linkEmphasisConfig:o}=e.utils.getLinkStyle(t,i,"graph");return n.lineStyle=r,n.emphasis={lineStyle:o.linkStyle},n})),a=[Object.assign(i.graphConfig.series,{type:"graphGL"===i.graphConfig.series.type?"graphGL":"graph",layout:"graphGL"===i.graphConfig.series.type?"forceAtlas2":i.graphConfig.series.layout,nodes:r,links:o})];return{legend:n.length?{data:n}:void 0,series:a,...i.graphConfig.baseOptions}}generateMapOption(t,e){const n=e.config,{nodes:i,links:r}=t,o=t.flatNodes||{},a=[],s=[];i.forEach((i=>{if(i.properties){const{location:r}=i.properties;if(r&&r.lng&&r.lat){const{nodeStyleConfig:a,nodeSizeConfig:l,nodeEmphasisConfig:u}=e.utils.getNodeStyle(i,n,"map");s.push({name:"string"==typeof i.label?i.label:i.id,value:[r.lng,r.lat],symbolSize:l,itemStyle:a,emphasis:{itemStyle:u.nodeStyle,symbolSize:u.nodeSize},node:i}),t.flatNodes||(o[i.id]=JSON.parse(JSON.stringify(i)))}else console.error(`Node ${i.id} position is undefined!`)}else console.error(`Node ${i.id} position is undefined!`)})),r.forEach((t=>{if(o[t.source])if(o[t.target]){const{linkStyleConfig:i,linkEmphasisConfig:r}=e.utils.getLinkStyle(t,n,"map");a.push({coords:[[o[t.source].properties.location.lng,o[t.source].properties.location.lat],[o[t.target].properties.location.lng,o[t.target].properties.location.lat]],lineStyle:i,emphasis:{lineStyle:r.linkStyle},link:t})}else console.error(`Node ${t.target} is not exist!`);else console.error(`Node ${t.source} is not exist!`)}));const l=[Object.assign(n.mapOptions.nodeConfig,{type:"effectScatter"===n.mapOptions.nodeConfig.type?"effectScatter":"scatter",coordinateSystem:"leaflet",data:s,animationDuration:1e3}),Object.assign(n.mapOptions.linkConfig,{type:"lines",coordinateSystem:"leaflet",data:a})];return{leaflet:{tiles:n.mapTileConfig,mapOptions:n.mapOptions},series:l,...n.mapOptions.baseOptions}}graphRender(t,e){e.utils.echartsSetOption(e.utils.generateGraphOption(t,e),e),window.onresize=()=>{e.echarts.resize()},e.event.emit("onLoad"),e.event.emit("renderArray")}mapRender(t,e){e.config.mapTileConfig[0]?(e.utils.echartsSetOption(e.utils.generateMapOption(t,e),e),e.leaflet=e.echarts._api.getCoordinateSystems()[0].getLeaflet(),e.leaflet._zoomAnimated=!1,e.event.emit("onLoad"),e.event.emit("renderArray")):console.error('You must add the tiles via the "mapTileConfig" param!')}appendData(t,e){if(e.config.render!==e.utils.mapRender)return void console.error("AppendData function can only be used for map render!");e.utils.generateMapOption(t,e).series.forEach(((t,n)=>{e.echarts.appendData({seriesIndex:n,data:t.data})})),e.utils.mergeData(t,e),e.config.afterUpdate.call(e)}addData(t,e){e.utils.mergeData(t,e),e.utils.render(),e.config.afterUpdate.call(e)}mergeData(t,e){const n=e.data.nodes.concat(t.nodes),i=e.data.links.concat(t.links);Object.assign(e.data,t,{nodes:n,links:i})}}const C=function(t,e){const{util:n,graphic:i,matrix:r}=t,o=e.Layer.extend({initialize(t){this._container=t},onAdd(t){t.getPane(this.options.pane).appendChild(this._container),t.zoomControl.setPosition("topright")},onRemove(){e.DomUtil.remove(this._container)},_update(){}});function a(t,n){this._map=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=n,this._projection=e.Projection.Mercator}function s(t,e,n,i){const{leafletModel:r,seriesModel:o}=n,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("leaflet")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}return a.dimensions=["lng","lat"],a.prototype.dimensions=["lng","lat"],a.prototype.setZoom=function(t){this._zoom=t},a.prototype.setCenter=function(t){this._center=this._projection.project(new e.LatLng(t[1],t[0]))},a.prototype.setMapOffset=function(t){this._mapOffset=t},a.prototype.getLeaflet=function(){return this._map},a.prototype.getViewRect=function(){const t=this._api;return new i.BoundingRect(0,0,t.getWidth(),t.getHeight())},a.prototype.getRoamTransform=function(){return r.create()},a.prototype.dataToPoint=function(t){const n=new e.LatLng(t[1],t[0]),i=this._map.latLngToLayerPoint(n),r=this._mapOffset;return[i.x-r[0],i.y-r[1]]},a.prototype.pointToData=function(t){const e=this._mapOffset,n=this._map.layerPointToLatLng({x:t[0]+e[0],y:t[1]+e[1]});return[n.lng,n.lat]},a.prototype.convertToPixel=n.curry(s,"dataToPoint"),a.prototype.convertFromPixel=n.curry(s,"pointToData"),a.create=function(t,n){let i;const r=[],s=n.getDom();return t.eachComponent("leaflet",(t=>{const l=n.getZr().painter.getViewportRoot();if(void 0===e)throw new Error("Leaflet api is not loaded");if(i)throw new Error("Only one leaflet component can exist");if(!t.__map){let n=s.querySelector(".ec-extension-leaflet");n&&(l.style.left="0px",l.style.top="0px",s.removeChild(n)),n=document.createElement("div"),n.style.cssText="width:100%;height:100%",n.classList.add("ec-extension-leaflet"),s.appendChild(n),t.__map=e.map(n,t.get("mapOptions"));const i=t.__map,r=t.get("tiles"),a={};let u=!1;if(r.forEach((t=>{const n=e.tileLayer(t.urlTemplate,t.options);t.label?(u||(n.addTo(i),u=!0),a[t.label]=n):n.addTo(i)})),r.length>1){const n=t.get("layerControl");e.control.layers(a,{},n).addTo(i)}const h=document.createElement("div");h.style="position: absolute;left: 0;top: 0;z-index: 100",h.appendChild(l),new o(h).addTo(i)}const u=t.__map;i=new a(u,n),r.push(i),i.setMapOffset(t.__mapOffset||[0,0]);const{center:h,zoom:c}=t.get("mapOptions");h&&c&&(i.setZoom(c),i.setCenter(h)),t.coordinateSystem=i})),t.eachSeries((t=>{"leaflet"===t.get("coordinateSystem")&&(t.coordinateSystem=i)})),r},a};function A(t,e){t.extendComponentView({type:"leaflet",render(t,n,i){let r=!0;const o=t.getLeaflet(),a=i.getZr().painter.getViewportRoot().parentNode,s=t.coordinateSystem,l={x:0,y:0};function u(t,e){const n=[parseFloat(getComputedStyle(e).width),parseFloat(getComputedStyle(e).height)];"CANVAS"===t.tagName&&(t.width=t.width/parseFloat(getComputedStyle(t).width)*n[0],t.height=t.height/parseFloat(getComputedStyle(t).height)*n[1]),t.style.width=`${n[0]}px`,t.style.height=`${n[1]}px`}function h(t){[...t.childNodes].forEach((e=>{u(e,t),e.childNodes.length&&h(e)}))}function c(t){const n=e.DomUtil.getPosition(t.getPanes().mapPane);if(n)return n;console.error("Can't get the map offset!")}this._oldMoveStartHandler&&o.off("movestart",this._oldMoveStartHandler),this._oldMoveHandler&&o.off("move",this._oldMoveHandler),this._oldZoomEndHandler&&o.off("zoomend",this._oldZoomEndHandler),this._oldResizeHandler&&o.off("resize",this._oldResizeHandler);const{roam:d}=t.get("mapOptions");function p(){if(r)return;const t=c(o);t&&Object.assign(l,{x:t.x,y:t.y})}function f(){if(r)return;const n=function(){const n=c(o);if(n){const{x:i,y:r}=n,o=i-l.x,u=r-l.y;return Object.assign(l,{x:i,y:r}),e.DomUtil.setPosition(a,{x:-i,y:-r}),s.setMapOffset([-i,-r]),t.__mapOffset=[-i,-r],{dx:o,dy:u}}}();if(n){const{dx:t,dy:e}=n;i.dispatchAction({type:"leafletMove",dx:t,dy:e})}}function g(){r||i.dispatchAction({type:"leafletZoom"})}function m(){const t=i.getDom();u(a,t),h(a),i.dispatchAction({type:"leafletZoom"})}d&&"scale"!==d?o.dragging.enable():o.dragging.disable(),d&&"move"!==d?(o.scrollWheelZoom.enable(),o.doubleClickZoom.enable(),o.touchZoom.enable()):(o.scrollWheelZoom.disable(),o.doubleClickZoom.disable(),o.touchZoom.disable()),o.on("movestart",p),o.on("move",f),o.on("zoomend",g),o.on("resize",m),this._oldMoveStartHandler=p,this._oldMoveHandler=f,this._oldZoomEndHandler=g,this._oldResizeHandler=m,r=!1}})}function I(t,e,n){const{target:i}=t,r=i.position;r[0]+=e,r[1]+=n,function(t){t.__dirty=!0,t.__zr&&t.__zr.refreshImmediately()}(i)}function D(t,e){const n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler,{colorTool:s,each:l,env:u}=e;if(!n)return;a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,t),function(t,e){const n=t._chartsMap,i=t._scheduler;e.eachSeries((t=>{i.updateStreamModes(t,n[t.__viewId])}))}(this,n),o.update(n,i),function(t){t.clearColorPalette(),t.eachSeries((t=>{t.clearColorPalette()}))}(n),a.performVisualTasks(n,t),function(t,e,n,i){(function(t,e,n,i,r){l(r||t._componentsViews,(t=>{const r=t.__model;t.render(r,e,n,i),c(r,t)}))})(t,e,n,i),l(t._chartsViews,(t=>{t.__alive=!1})),function(t,e,n,i,r){const o=t._scheduler;let a;e.eachSeries((e=>{const n=t._chartsMap[e.__viewId];n.__alive=!0;const s=n.renderTask;o.updatePayload(s,i),r&&r.get(e.uid)&&s.dirty(),a|=s.perform(o.getPerformArgs(s)),n.group.silent=!!e.get("silent"),c(e,n),function(t,e){const n=t.get("blendMode")||null;e.group.traverse((t=>{t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable((t=>{t.setStyle("blend",n)}))}))}(e,n)})),o.unfinished|=a,function(t,e){const n=t.storage;let i=0;n.traverse((t=>{t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!u.node&&n.traverse((t=>{t.isGroup||(t.useHoverLayer=!0)}))}(t._zr,e)}(t,e,0,i),l(t._chartsViews,(t=>{t.__alive||t.remove(e,n)}))}(this,n,i,t),r.refreshImmediately();let h=n.get("backgroundColor")||"transparent";if(u.canvasSupported)r.setBackgroundColor(h);else{const t=s.parse(h);h=s.stringify(t,"rgb"),0===t[3]&&(h="transparent")}function c(t,e){const n=t.get("z"),i=t.get("zlevel");e.group.traverse((t=>{"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))}))}}function L(t,e,n){!function(t){t.extendComponentModel({type:"leaflet",getLeaflet(){return this.__map},setCenterAndZoom(t,e){this.option.center=t,this.option.zoom=e},centerOrZoomChanged(t,e){const{option:n}=this;return i=t,r=n.center,!(i&&r&&i[0]===r[0]&&i[1]===r[1]&&e===n.zoom);var i,r},defaultOption:{mapOptions:{},tiles:[{urlTemplate:"http://{s}.tile.osm.org/{z}/{x}/{y}.png",options:{attribution:'© OpenStreetMap contributors'}}],layerControl:{}}})}(t),A(t,e),t.registerCoordinateSystem("leaflet",C(t,e)),t.registerAction({type:"leafletMove",event:"leafletMove",update:"none"},((t,e)=>{e.scheduler.ecInstance._chartsViews.forEach((({group:e})=>{I({target:e},t.dx,t.dy)})),e.eachComponent("leaflet",(t=>{const e=t.getLeaflet(),n=e.getCenter();t.setCenterAndZoom([n.lng,n.lat],e.getZoom())}))})),t.registerAction({type:"leafletZoom",event:"leafletZoom",update:"none"},((t,e)=>{const i=e.scheduler.ecInstance;D.call(i,t,n),i._chartsViews.forEach((({group:t})=>{I({target:t},-t.position[0],-t.position[1])})),e.eachComponent("leaflet",(t=>{const e=t.getLeaflet(),n=e.getCenter();t.setCenterAndZoom([n.lng,n.lat],e.getZoom())}))}))}L.version="1.0.0";const P=L,O=n(1092),{each:E}=n(3051),N=n(6387);class k{constructor(t,e){e&&"map"===e.render?e.render=M.prototype.mapRender:e&&e.render&&"graph"!==e.render||((e=e||{}).render=M.prototype.graphRender);let n=new a(t);return Object.setPrototypeOf(M.prototype,n.utils),n.utils=new M,n.setUtils(),n.event=n.utils.createEvent(),n.setConfig({onInit(){return this.config},onRender(){return this.utils.showLoading.call(this),this.config},onUpdate(){return this.config},afterUpdate(){return this.config},onLoad(){const t=this.utils.getGUI(this);return t.init(),this.config.metadata&&(t.createAboutContainer(n),this.utils.updateMetadata.call(this)),this.config.switchMode&&(t.renderModeSelector.onclick=()=>{this.config.render===this.utils.mapRender?(this.config.render=this.utils.graphRender,this.echarts.dispose(),n=new k(this.data,{...this.config}),n.render()):(this.config.render=this.utils.mapRender,this.config.render(this.data,this))}),this.config.onClickElement=(e,n)=>{let i;i="node"===e?this.utils.nodeInfo(n):this.utils.linkInfo(n),t.getNodeLinkInfo(e,i),t.sideBar.classList.remove("hidden")},this.utils.hideLoading.call(this),this.config},...e}),n.echarts=s.S1(n.el,null,{renderer:n.config.svgRender?"svg":"canvas"}),n.config.onInit.call(n),n}}P(t,T(),{colorTool:O,each:E,env:N}),window.NetJSONGraph=k,window.echarts=t,window.L=T()})()})(); +var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},5823:(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var i=n(7411),r=n(5622),o=n(479),a=n(3510),s=n(423),l=n(3051),u=n(4990),h=n(1092),c=n(4414),d="__zr_normal__",p=i.dN.concat(["ignore"]),f=(0,l.reduce)(i.dN,(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},m=new o.Z(0,0,0,0),v=function(){function t(t){this.id=(0,l.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,l=!1;r.parent=i?this:null;var u=!1;if(r.copyTransform(e),null!=n.position){var h=m;n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,h):(0,s.wI)(g,n,h),r.x=g.x,r.y=g.y,o=g.align,a=g.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var p=void 0,f=void 0;"center"===d?(p=.5*h.width,f=.5*h.height):(p=(0,s.GM)(d[0],h.width),f=(0,s.GM)(d[1],h.height)),u=!0,r.originX=-r.x+p+(i?0:h.x),r.originY=-r.y+f+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var v=n.offset;v&&(r.x+=v[0],r.y+=v[1],u||(r.originX=-v[0],r.originY=-v[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,b=void 0,w=void 0;y&&this.canBeInsideText()?(x=n.insideFill,b=n.insideStroke,null!=x&&"auto"!==x||(x=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(x),w=!0)):(x=n.outsideFill,b=n.outsideStroke,null!=x&&"auto"!==x||(x=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(x),w=!0)),(x=x||"#000")===_.fill&&b===_.stroke&&w===_.autoStroke&&o===_.align&&a===_.verticalAlign||(l=!0,_.fill=x,_.stroke=b,_.autoStroke=w,_.align=o,_.verticalAlign=a,e.setDefaultTextStyle(_)),e.__dirty|=c.YV,l&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u.GD:u.vU},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,h.parse)(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,(0,h.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,l.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,l.isObject)(t))for(var n=t,i=(0,l.keys)(n),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===d;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!((0,l.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var u=!!(s&&s.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,n,u),p&&p.useState(t,e,n,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c.YV),s}(0,l.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,f);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,e,d),m&&m.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c.YV)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=(0,l.indexOf)(i,t),o=(0,l.indexOf)(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||o.force&&!s.length){var C,A=void 0,I=void 0,D=void 0;if(u){I={},f&&(A={});for(T=0;T{"use strict";n.d(e,{V:()=>v,Z:()=>S});var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}};const r=i;var o=n(3051),a=n(5188);const s=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||o.noop,this.ondestroy=t.ondestroy||o.noop,this.onrestart=t.onrestart||o.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,o.isFunction)(t)?t:r[t]||(0,a.H)(t)},t}();var l=n(1092),u=n(4839),h=Array.prototype.slice;function c(t,e,n){return(e-t)*n+t}function d(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,s=i.length,h=!1,c=6,d=e;if((0,o.isArrayLike)(e)){var p=function(t){return(0,o.isArrayLike)(t&&t[0])?2:1}(e);c=p,(1===p&&!(0,o.isNumber)(e[0])||2===p&&!(0,o.isNumber)(e[0][0]))&&(h=!0)}else if((0,o.isNumber)(e)&&!(0,o.eqNaN)(e))c=0;else if((0,o.isString)(e))if(isNaN(+e)){var f=l.parse(e);f&&(d=f,c=3)}else c=0;else if((0,o.isGradientObject)(e)){var g=(0,o.extend)({},d);g.colorStops=(0,o.map)(e.colorStops,(function(t){return{offset:t.offset,color:l.parse(t.color)}})),(0,u.I1)(e)?c=4:(0,u.gO)(e)&&(c=5),d=g}0===s?this.valType=c:c===this.valType&&6!==c||(h=!0),this.discrete=this.discrete||h;var m={time:t,value:d,rawValue:e,percent:0};return n&&(m.easing=n,m.easingFunc=(0,o.isFunction)(n)?n:r[n]||(0,a.H)(n)),i.push(m),m},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=x(i),l=_(i),u=0;u=0&&!(u[n].percent<=e);n--);n=m(n,h-2)}else{for(n=g;ne);n++);n=m(n-1,h-2)}r=u[n+1],i=u[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var v=r.percent-i.percent,w=0===v?1:m((e-i.percent)/v,1);r.easingFunc&&(w=r.easingFunc(w));var S=a?this._additiveValue:f?b:t[p];if(!x(l)&&!f||S||(S=this._additiveValue=[]),this.discrete)t[p]=w<1?i.rawValue:r.rawValue;else if(x(l))1===l?d(S,i[s],r[s],w):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,v(l),i),this._trackKeys.push(a)}s.addKeyframe(t,v(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var s=a.pop();r.addKeyframe(s.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}()},5188:(t,e,n)=>{"use strict";n.d(e,{H:()=>a});var i=n(8554),r=n(3051),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+(0,r.trim)(n[0]),s=+(0,r.trim)(n[1]),l=+(0,r.trim)(n[2]),u=+(0,r.trim)(n[3]);if(isNaN(a+s+l+u))return;var h=[];return function(t){return t<=0?0:t>=1?1:(0,i.kD)(0,a,l,1,t,h)&&(0,i.af)(0,s,u,1,h[0])}}}},2795:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=n(6387).default.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},810:(t,e,n)=>{"use strict";n.d(e,{a:()=>r});var i=n(3051);function r(t){var e,n,r=t.style,o=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,i.isNumber)(e)?[e]:(0,i.isArray)(e)?e:null:null),a=r.lineDashOffset;if(o){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=(0,i.map)(o,(function(t){return t/s})),a/=s)}return[o,a]}},7772:(t,e,n)=>{"use strict";n.d(e,{Dm:()=>D,RV:()=>I,RZ:()=>x});var i=n(7719),r=n(4014),o=n(8007),a=n(5787),s=n(327),l=n(4535),u=n(1505),h=n(3051),c=n(810),d=n(4414),p=n(3132),f=new r.Z(!0);function g(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function m(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function x(t,e,n){var i=(0,o.Gq)(e.image,e.__image,n);if((0,o.v5)(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*h.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(t,e,n,r,o){var a=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){C(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i.tj.opacity:s}(r||e.blend!==n.blend)&&(a||(C(t,o),a=!0),t.globalCompositeOperation=e.blend||i.tj.blend);for(var l=0;l{"use strict";function i(t){return isFinite(t)}function r(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,o=n.height,a=Math.min(r,o),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,u=null==e.r?.5:e.r;return e.global||(s=s*r+n.x,l=l*o+n.y,u*=a),s=i(s)?s:.5,l=i(l)?l:.5,u=u>=0&&i(u)?u:.5,t.createRadialGradient(s,l,0,s,l,u)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),r=i(r)?r:0,o=i(o)?o:1,a=i(a)?a:0,s=i(s)?s:0,t.createLinearGradient(r,a,o,s)}(t,e,n),o=e.colorStops,a=0;ar,ap:()=>s,cF:()=>o})},4990:(t,e,n)=>{"use strict";n.d(e,{Ak:()=>o,GD:()=>s,KL:()=>r,iv:()=>l,vU:()=>a});var i=1;n(6387).default.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var r=i,o=.4,a="#333",s="#ccc",l="#eee"},3640:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oi})},765:(t,e,n)=>{"use strict";n.d(e,{X:()=>o});var i=n(7637);function r(t,e){return Math.abs(t-e)<1e-8}function o(t,e,n){var o=0,a=t[0];if(!a)return!1;for(var s=1;s{"use strict";n.d(e,{m:()=>r});var i=n(8554);function r(t,e,n,r,o,a,s,l,u){if(0===s)return!1;var h=s;return!(u>e+h&&u>r+h&&u>a+h||ut+h&&l>n+h&&l>o+h||l{"use strict";n.d(e,{Dp:()=>d,GM:()=>p,M3:()=>h,dz:()=>s,lP:()=>u,mU:()=>c,wI:()=>f});var i=n(479),r=n(2528),o=n(3132),a={};function s(t,e){e=e||o.Uo;var n=a[e];n||(n=a[e]=new r.ZP(500));var i=n.get(t);return null==i&&(i=o.qW.measureText(t,e).width,n.put(t,i)),i}function l(t,e,n,r){var o=s(t,e),a=d(e),l=h(0,o,n),u=c(0,a,r);return new i.Z(l,u,o,a)}function u(t,e,n,r){var o=((t||"")+"").split("\n");if(1===o.length)return l(o[0],e,n,r);for(var a=new i.Z(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function f(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=p(i[0],n.width),u+=p(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}},3266:(t,e,n)=>{"use strict";n.d(e,{m:()=>r});var i=2*Math.PI;function r(t){return(t%=i)<0&&(t+=i),t}},7637:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}n.d(e,{Z:()=>i})},479:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var i=n(2892),r=n(1610),o=Math.min,a=Math.max,s=new r.Z,l=new r.Z,u=new r.Z,h=new r.Z,c=new r.Z,d=new r.Z;const p=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,o=i.create();return i.translate(o,o,[-e.x,-e.y]),i.scale(o,o,[n,r]),i.translate(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,o=i.x,a=i.x+i.width,s=i.y,l=i.y+i.height,u=e.x,h=e.x+e.width,p=e.y,f=e.y+e.height,g=!(av&&(v=w,y<_?r.Z.set(d,-y,0):r.Z.set(d,_,0)):wv&&(v=S,x=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],c=i[3],d=i[4],p=i[5];return e.x=n.x*r+d,e.y=n.y*c+p,e.width=n.width*r,e.height=n.height*c,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=u.x=n.x,s.y=h.y=n.y,l.x=h.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(i),h.transform(i),l.transform(i),u.transform(i),e.x=o(s.x,l.x,u.x,h.x),e.y=o(s.y,l.y,u.y,h.y);var f=a(s.x,l.x,u.x,h.x),g=a(s.y,l.y,u.y,h.y);e.width=f-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}()},3510:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a{"use strict";n.d(e,{ZP:()=>o});var i=function(t){this.value=t},r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();const o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},1587:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(1610),r=[0,0],o=[0,0],a=new i.Z,s=new i.Z;const l=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i.Z;for(n=0;n<2;n++)this._axes[n]=new i.Z;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var u=0;u<4;u++)n[u].transform(e);i.Z.sub(r[0],n[1],n[0]),i.Z.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(u=0;u<2;u++)this._origin[u]=r[u].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,a,s,r,-1)&&(n=!1,r)||r||i.Z.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,l){for(var u=!0,h=0;h<2;h++){var c=this._axes[h];if(this._getProjMinMaxOnAxis(h,t._corners,r),this._getProjMinMaxOnAxis(h,e._corners,o),r[1]o[1]){if(u=!1,s)return u;var d=Math.abs(o[0]-r[1]),p=Math.abs(r[0]-o[1]);Math.min(d,p)>a.len()&&(d{"use strict";n.d(e,{L:()=>M,Z:()=>C});var i=n(5280),r=n(479),o=n(4990),a=n(3726),s=n(8554),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],h=[],c=[],d=[],p=[],f=[],g=Math.min,m=Math.max,v=Math.cos,y=Math.sin,_=Math.abs,x=Math.PI,b=2*x,w="undefined"!=typeof Float32Array,S=[];function T(t){return Math.round(t/x*1e8)/1e8%2*x}function M(t,e){var n=T(t[0]);n<0&&(n+=b);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=b?r=n+b:e&&n-r>=b?r=n-b:!e&&n>r?r=n+(b-T(n-r)):e&&n0&&(this._ux=_(n/o.KL/t)||0,this._uy=_(n/o.KL/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=_(t-this._xi),i=_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(l.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(l.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(l.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),S[0]=i,S[1]=r,M(S,o),i=S[0];var a=(r=S[1])-i;return this.addData(l.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=v(r)*n+t,this._yi=y(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){c[0]=c[1]=p[0]=p[1]=Number.MAX_VALUE,d[0]=d[1]=f[0]=f[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,u=0;for(t=0;tn||_(T)>i||p===e-1)&&(w=Math.sqrt(z*z+T*T),r=S,o=A);break;case l.C:var M=t[p++],C=t[p++],A=(S=t[p++],t[p++]),I=t[p++],D=t[p++];w=(0,s.Ci)(r,o,M,C,S,A,I,D,10),r=I,o=D;break;case l.Q:M=t[p++],C=t[p++],S=t[p++],A=t[p++];w=(0,s.wQ)(r,o,M,C,S,A,10),r=S,o=A;break;case l.A:var L=t[p++],P=t[p++],O=t[p++],E=t[p++],N=t[p++],k=t[p++],R=k+N;p+=1;t[p++];x&&(a=v(N)*O+L,u=y(N)*E+P),w=m(O,E)*g(b,Math.abs(k)),r=v(R)*O+L,o=y(R)*E+P;break;case l.R:a=r=t[p++],u=o=t[p++],w=2*t[p++]+2*t[p++];break;case l.Z:var z=a-r;T=u-o;w=Math.sqrt(z*z+T*T),r=a,o=u}w>=0&&(h[d++]=w,c+=w)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,c,d,p,f,x,b=this.data,w=this._ux,S=this._uy,T=this._len,M=e<1,C=0,A=0,I=0;if(!M||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=e*this._pathLen))t:for(var D=0;D0&&(t.lineTo(f,x),I=0),L){case l.M:n=r=b[D++],i=o=b[D++],t.moveTo(r,o);break;case l.L:a=b[D++],c=b[D++];var O=_(a-r),E=_(c-o);if(O>w||E>S){if(M){if(C+(it=d[A++])>p){var N=(p-C)/it;t.lineTo(r*(1-N)+a*N,o*(1-N)+c*N);break t}C+=it}t.lineTo(a,c),r=a,o=c,I=0}else{var k=O*O+E*E;k>I&&(f=a,x=c,I=k)}break;case l.C:var R=b[D++],z=b[D++],B=b[D++],Z=b[D++],F=b[D++],V=b[D++];if(M){if(C+(it=d[A++])>p){N=(p-C)/it;(0,s.Vz)(r,R,B,F,N,u),(0,s.Vz)(o,z,Z,V,N,h),t.bezierCurveTo(u[1],h[1],u[2],h[2],u[3],h[3]);break t}C+=it}t.bezierCurveTo(R,z,B,Z,F,V),r=F,o=V;break;case l.Q:R=b[D++],z=b[D++],B=b[D++],Z=b[D++];if(M){if(C+(it=d[A++])>p){N=(p-C)/it;(0,s.Lx)(r,R,B,N,u),(0,s.Lx)(o,z,Z,N,h),t.quadraticCurveTo(u[1],h[1],u[2],h[2]);break t}C+=it}t.quadraticCurveTo(R,z,B,Z),r=B,o=Z;break;case l.A:var G=b[D++],H=b[D++],U=b[D++],W=b[D++],j=b[D++],X=b[D++],Y=b[D++],q=!b[D++],K=U>W?U:W,J=_(U-W)>.001,Q=j+X,$=!1;if(M)C+(it=d[A++])>p&&(Q=j+X*(p-C)/it,$=!0),C+=it;if(J&&t.ellipse?t.ellipse(G,H,U,W,Y,j,Q,q):t.arc(G,H,K,j,Q,q),$)break t;P&&(n=v(j)*U+G,i=y(j)*W+H),r=v(Q)*U+G,o=y(Q)*W+H;break;case l.R:n=r=b[D],i=o=b[D+1],a=b[D++],c=b[D++];var tt=b[D++],et=b[D++];if(M){if(C+(it=d[A++])>p){var nt=p-C;t.moveTo(a,c),t.lineTo(a+g(nt,tt),c),(nt-=tt)>0&&t.lineTo(a+tt,c+g(nt,et)),(nt-=et)>0&&t.lineTo(a+m(tt-nt,0),c+et),(nt-=tt)>0&&t.lineTo(a,c+m(et-nt,0));break t}C+=it}t.rect(a,c,tt,et);break;case l.Z:if(M){var it;if(C+(it=d[A++])>p){N=(p-C)/it;t.lineTo(r*(1-N)+n*N,o*(1-N)+i*N);break t}C+=it}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=l,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}()},1610:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}()},7411:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>g,dN:()=>p,kY:()=>f});var i=n(2892),r=n(5280),o=i.identity,a=5e-5;function s(t){return t>a||t<-5e-5}var l=[],u=[],h=i.create(),c=Math.abs,d=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i.create(),e?this.getLocalTransform(n):o(n),t&&(e?i.mul(n,t,n):i.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var n=l[0]<0?-1:1,r=l[1]<0?-1:1,o=((l[0]-n)*e+n)/l[0]||0,a=((l[1]-r)*e+r)/l[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.mul(u,t.invTransform,e),e=u);var n=this.originX,r=this.originY;(n||r)&&(h[4]=n,h[5]=r,i.mul(u,e,h),u[4]-=n,u[5]-=r,e=u),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){f(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,h=t.x,c=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var f=n+s,g=r+l;e[4]=-f*o-d*g*a,e[5]=-g*a-p*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=p*o,e[2]=d*a,u&&i.rotate(e,e,u),e[4]+=n+h,e[5]+=r+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),p=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function f(t,e){for(var n=0;n{"use strict";n.d(e,{H9:()=>v,mJ:()=>y,qL:()=>_,u4:()=>f,zk:()=>p});var i=n(5280),r=n(8554),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,h=i.create(),c=i.create(),d=i.create();function p(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],s=i[0],l=i[1],u=i[1],h=1;h1e-4)return f[0]=t-n,f[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(h[0]=l(o)*n+t,h[1]=s(o)*r+e,c[0]=l(a)*n+t,c[1]=s(a)*r+e,m(f,h,c),v(g,h,c),(o%=u)<0&&(o+=u),(a%=u)<0&&(a+=u),o>a&&!p?a+=u:oo&&(d[0]=l(x)*n+t,d[1]=s(x)*r+e,m(f,d,f),v(g,d,g))}},8554:(t,e,n)=>{"use strict";n.d(e,{AZ:()=>S,Ci:()=>b,Jz:()=>T,Lx:()=>C,QC:()=>M,Vz:()=>_,Wr:()=>A,X_:()=>m,Zm:()=>w,af:()=>g,kD:()=>v,pP:()=>y,t1:()=>x,wQ:()=>I});var i=n(5280),r=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),u=1/3,h=(0,i.create)(),c=(0,i.create)(),d=(0,i.create)();function p(t){return t>-1e-8&&ta||t<-1e-8}function g(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function m(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function v(t,e,n,i,a,s){var h=i+3*(e-n)-t,c=3*(n-2*e+t),d=3*(e-t),f=t-a,g=c*c-3*h*d,m=c*d-9*h*f,v=d*d-3*c*f,y=0;if(p(g)&&p(m)){if(p(c))s[0]=0;else(D=-d/c)>=0&&D<=1&&(s[y++]=D)}else{var _=m*m-4*g*v;if(p(_)){var x=m/g,b=-x/2;(D=-c/h+x)>=0&&D<=1&&(s[y++]=D),b>=0&&b<=1&&(s[y++]=b)}else if(_>0){var w=o(_),S=g*c+1.5*h*(-m+w),T=g*c+1.5*h*(-m-w);(D=(-c-((S=S<0?-r(-S,u):r(S,u))+(T=T<0?-r(-T,u):r(T,u))))/(3*h))>=0&&D<=1&&(s[y++]=D)}else{var M=(2*g*c-3*h*m)/(2*o(g*g*g)),C=Math.acos(M)/3,A=o(g),I=Math.cos(C),D=(-c-2*A*I)/(3*h),L=(b=(-c+A*(I+l*Math.sin(C)))/(3*h),(-c+A*(I-l*Math.sin(C)))/(3*h));D>=0&&D<=1&&(s[y++]=D),b>=0&&b<=1&&(s[y++]=b),L>=0&&L<=1&&(s[y++]=L)}}return y}function y(t,e,n,i,r){var a=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(p(s)){if(f(a))(c=-l/a)>=0&&c<=1&&(r[u++]=c)}else{var h=a*a-4*s*l;if(p(h))r[0]=-a/(2*s);else if(h>0){var c,d=o(h),g=(-a-d)/(2*s);(c=(-a+d)/(2*s))>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function _(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function x(t,e,n,r,a,l,u,p,f,m,v){var y,_,x,b,w,S=.005,T=1/0;h[0]=f,h[1]=m;for(var M=0;M<1;M+=.05)c[0]=g(t,n,a,u,M),c[1]=g(e,r,l,p,M),(b=(0,i.distSquare)(h,c))=0&&b=0&&c<=1&&(r[u++]=c)}else{var h=s*s-4*a*l;if(p(h))(c=-s/(2*a))>=0&&c<=1&&(r[u++]=c);else if(h>0){var c,d=o(h),g=(-s-d)/(2*a);(c=(-s+d)/(2*a))>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function M(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function C(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function A(t,e,n,r,a,l,u,p,f){var g,m=.005,v=1/0;h[0]=u,h[1]=p;for(var y=0;y<1;y+=.05){c[0]=w(t,n,a,y),c[1]=w(e,r,l,y),(S=(0,i.distSquare)(h,c))=0&&S{"use strict";n.d(e,{UK:()=>h,A4:()=>u,YB:()=>l});var i=n(6387),r=Math.log(2);function o(t,e,n,i,a,s){var l=i+"-"+a,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var h=Math.round(Math.log((1<>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,s),u=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,s=[],l=[],u=!0,h=0;h<4;h++){var c=t[h].getBoundingClientRect(),d=2*h,p=c.left,f=c.top;s.push(p,f),u=u&&o&&p===o[d]&&f===o[d+1],l.push(t[h].offsetLeft,t[h].offsetTop)}return u&&r?r:(e.srcCoords=s,e[i]=n?a(l,s):a(s,l))}(l,s,o);if(u)return u(t,n,r),!0}return!1}function h(t){return"CANVAS"===t.nodeName.toUpperCase()}},6387:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r);const o=r},1158:(t,e,n)=>{"use strict";n.d(e,{OD:()=>c,Oo:()=>d,eV:()=>l,iP:()=>h,sT:()=>f,x1:()=>g,xg:()=>p});var i=n(6387),r=n(4058),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=i.default.browser.firefox&&+i.default.browser.version.split(".")[0]<39;function l(t,e,n,i){return n=n||{},i?u(t,e,n):s&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):u(t,e,n),n}function u(t,e,n){if(i.default.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,r.UK)(t)){var l=t.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if((0,r.A4)(a,t,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function h(t){return t||window.event}function c(t,e,n){if(null!=(e=h(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&l(t,r,e,n)}else{l(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,i){t.addEventListener(e,n,i)}function p(t,e,n,i){t.removeEventListener(e,n,i)}var f=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function g(t){return 2===t.which||3===t.which}},2892:(t,e,n)=>{"use strict";function i(){return[1,0,0,1,0,0]}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function u(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function h(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function c(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,{clone:()=>c,copy:()=>o,create:()=>i,identity:()=>r,invert:()=>h,mul:()=>a,rotate:()=>l,scale:()=>u,translate:()=>s})},3132:(t,e,n)=>{"use strict";n.d(e,{Uo:()=>o,g2:()=>h,n5:()=>i,qW:()=>u,rk:()=>r});var i=12,r="sans-serif",o=i+"px "+r;var a,s,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)c=h*t.length;else for(var d=0;d{"use strict";n.d(e,{Z:()=>l});function i(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function r(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function o(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function a(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function s(t,e){var n,i,r,s=7,l=0;n=t.length;var u=[];function h(n){var h=i[n],c=r[n],d=i[n+1],p=r[n+1];r[n]=c+p,n===l-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),l--;var f=a(t[d],t,h,c,0,e);h+=f,0!==(c-=f)&&0!==(p=o(t[h+c-1],t,d,p,p-1,e))&&(c<=p?function(n,i,r,l){var h=0;for(h=0;h=7||g>=7);if(m)break;v<0&&(v=0),v+=2}if((s=v)<1&&(s=1),1===i){for(h=0;h=0;h--)t[g+h]=t[f+h];return void(t[p]=u[d])}var m=s;for(;;){var v=0,y=0,_=!1;do{if(e(u[d],t[c])<0){if(t[p--]=t[c--],v++,y=0,0==--i){_=!0;break}}else if(t[p--]=u[d--],y++,v=0,1==--l){_=!0;break}}while((v|y)=0;h--)t[g+h]=t[f+h];if(0===i){_=!0;break}}if(t[p--]=u[d--],1==--l){_=!0;break}if(0!==(y=l-o(t[c],u,0,l,l-1,e))){for(l-=y,g=(p-=y)+1,f=(d-=y)+1,h=0;h=7||y>=7);if(_)break;m<0&&(m=0),m+=2}(s=m)<1&&(s=1);if(1===l){for(g=(p-=i)+1,f=(c-=i)+1,h=i-1;h>=0;h--)t[g+h]=t[f+h];t[p]=u[d]}else{if(0===l)throw new Error;for(f=p-(l-1),h=0;h1;){var t=l-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;h(t)}},forceMergeRuns:function(){for(;l>1;){var t=l-2;t>0&&r[t-1]=32;)e|=1&t,t>>=1;return t+e}(a);do{if((l=i(t,n,o,e))h&&(c=h),r(t,n,n+c,n+l,e),l=c}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(0!==a);u.forceMergeRuns()}}}},3051:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HashMap:()=>ot,RADIAN_TO_DEGREE:()=>dt,assert:()=>tt,bind:()=>N,clone:()=>y,concatArray:()=>st,createCanvas:()=>S,createHashMap:()=>at,createObject:()=>lt,curry:()=>k,defaults:()=>w,disableUserSelect:()=>ut,each:()=>I,eqNaN:()=>Y,extend:()=>b,filter:()=>P,find:()=>O,guid:()=>m,hasOwn:()=>ht,indexOf:()=>T,inherits:()=>M,isArray:()=>R,isArrayLike:()=>A,isBuiltInObject:()=>G,isDom:()=>U,isFunction:()=>z,isGradientObject:()=>W,isImagePatternObject:()=>j,isNumber:()=>F,isObject:()=>V,isPrimitive:()=>rt,isRegExp:()=>X,isString:()=>B,isStringSafe:()=>Z,isTypedArray:()=>H,keys:()=>E,logError:()=>v,map:()=>D,merge:()=>_,mergeAll:()=>x,mixin:()=>C,noop:()=>ct,normalizeCssArray:()=>$,reduce:()=>L,retrieve:()=>q,retrieve2:()=>K,retrieve3:()=>J,setAsPrimitive:()=>it,slice:()=>Q,trim:()=>et});var i=n(3132),r=L(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=L(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,h=s.slice,c=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311;function m(){return g++}function v(){for(var t=[],e=0;e{"use strict";function i(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t){return Math.sqrt(d(t))}n.r(e),n.d(e,{add:()=>s,applyTransform:()=>M,clone:()=>o,copy:()=>r,create:()=>i,dist:()=>x,distSquare:()=>w,distance:()=>_,distanceSquare:()=>b,div:()=>g,dot:()=>m,len:()=>h,lenSquare:()=>d,length:()=>c,lengthSquare:()=>p,lerp:()=>T,max:()=>A,min:()=>C,mul:()=>f,negate:()=>S,normalize:()=>y,scale:()=>v,scaleAndAdd:()=>l,set:()=>a,sub:()=>u});var c=h;function d(t){return t[0]*t[0]+t[1]*t[1]}var p=d;function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function m(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=h(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function _(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=_;function b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=b;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function T(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function M(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function C(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function A(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},2776:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(655),r=n(327);const o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,i.ZT)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n{"use strict";n.d(e,{ZP:()=>m,ik:()=>h,tj:()=>u});var i=n(655),r=n(5823),o=n(479),a=n(3051),s=n(4414),l="__zr_style_"+Math.round(10*Math.random()),u={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},h={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};u[l]=!0;var c=["z","z2","invisible"],d=["invisible"],p=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.ZT)(e,t),e.prototype._init=function(e){for(var n=(0,a.keys)(e),i=0;i{"use strict";n.d(e,{Z:()=>i});const i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},8154:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(3051),o=n(5823),a=n(479),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,i.ZT)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=r.indexOf(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n{"use strict";n.d(e,{ZP:()=>h});var i=n(655),r=n(7719),o=n(479),a=n(3051),s=(0,a.defaults)({x:0,y:0},r.tj),l={style:(0,a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r.ik.style)};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.createStyle=function(t){return(0,a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.Z(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r.ZP);u.prototype.type="image";const h=u},1754:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(7719),o=n(479),a=[];const s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,i.ZT)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n{"use strict";n.d(e,{Z:()=>r});var i=n(655);const r=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return(0,i.ZT)(e,t),e}(n(1797).Z)},327:(t,e,n)=>{"use strict";n.d(e,{$t:()=>A,ZP:()=>L});var i=n(655),r=n(7719),o=n(4014),a=n(3640),s=n(8554);function l(t,e,n,i,r,o,a,l,u,h,c){if(0===u)return!1;var d=u;return!(c>e+d&&c>i+d&&c>o+d&&c>l+d||ct+d&&h>n+d&&h>r+d&&h>a+d||hn||d+ur&&(r+=c);var f=Math.atan2(l,s);return f<0&&(f+=c),f>=i&&f<=r||f+c>=i&&f+c<=r}var p=n(7637),f=o.Z.CMD,g=2*Math.PI;var m=[-1,-1,-1],v=[-1,-1];function y(t,e,n,i,r,o,a,l,u,h){if(h>e&&h>i&&h>o&&h>l||h1&&(c=void 0,c=v[0],v[0]=v[1],v[1]=c),g=s.af(e,i,o,l,v[0]),f>1&&(y=s.af(e,i,o,l,v[1]))),2===f?xe&&l>i&&l>o||l=0&&h<=1){for(var c=0,d=s.Zm(e,i,o,h),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);m[0]=-l,m[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=g-1e-4){i=0,r=g;var h=o?1:-1;return a>=m[0]+t&&a<=m[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=g,r+=g);for(var d=0,p=0;p<2;p++){var f=m[p];if(f+t>a){var v=Math.atan2(s,f);h=o?1:-1;v<0&&(v=g+v),(v>=i&&v<=r||v+g>=i&&v+g<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),d+=h)}}return d}function b(t,e,n,i,r){for(var o,s,h,c,g=t.data,m=t.len(),v=0,b=0,w=0,S=0,T=0,M=0;M1&&(n||(v+=(0,p.Z)(b,w,S,T,i,r))),A&&(S=b=g[M],T=w=g[M+1]),C){case f.M:b=S=g[M++],w=T=g[M++];break;case f.L:if(n){if(a.m(b,w,g[M],g[M+1],e,i,r))return!0}else v+=(0,p.Z)(b,w,g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.C:if(n){if(l(b,w,g[M++],g[M++],g[M++],g[M++],g[M],g[M+1],e,i,r))return!0}else v+=y(b,w,g[M++],g[M++],g[M++],g[M++],g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.Q:if(n){if(u.m(b,w,g[M++],g[M++],g[M],g[M+1],e,i,r))return!0}else v+=_(b,w,g[M++],g[M++],g[M],g[M+1],i,r)||0;b=g[M++],w=g[M++];break;case f.A:var I=g[M++],D=g[M++],L=g[M++],P=g[M++],O=g[M++],E=g[M++];M+=1;var N=!!(1-g[M++]);o=Math.cos(O)*L+I,s=Math.sin(O)*P+D,A?(S=o,T=s):v+=(0,p.Z)(b,w,o,s,i,r);var k=(i-I)*P/L+I;if(n){if(d(I,D,P,O,O+E,N,e,k,r))return!0}else v+=x(I,D,P,O,O+E,N,k,r);b=Math.cos(O+E)*L+I,w=Math.sin(O+E)*P+D;break;case f.R:if(S=b=g[M++],T=w=g[M++],o=S+g[M++],s=T+g[M++],n){if(a.m(S,T,o,T,e,i,r)||a.m(o,T,o,s,e,i,r)||a.m(o,s,S,s,e,i,r)||a.m(S,s,S,T,e,i,r))return!0}else v+=(0,p.Z)(o,T,o,s,i,r),v+=(0,p.Z)(S,s,S,T,i,r);break;case f.Z:if(n){if(a.m(b,w,S,T,e,i,r))return!0}else v+=(0,p.Z)(b,w,S,T,i,r);b=S,w=T}}return n||(h=w,c=T,Math.abs(h-c)<1e-4)||(v+=(0,p.Z)(b,w,S,T,i,r)||0),0!==v}var w=n(3051),S=n(1092),T=n(4990),M=n(4414),C=n(7411),A=(0,w.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r.tj),I={style:(0,w.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r.ik.style)},D=C.dN.concat(["invisible","culling","z","z2","zlevel","parent"]);const L=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.ZT)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?T.vU:e>.2?T.iv:T.GD}if(t)return T.GD}return T.vU},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,w.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===(0,S.lum)(t,0)0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&M.RH)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return b(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return b(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=M.RH,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:(0,w.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&M.RH)},e.prototype.createStyle=function(t){return(0,w.createObject)(A,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,w.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=(0,w.extend)({},i.shape),(0,w.extend)(s,n.shape)):(s=(0,w.extend)({},r?this.shape:i.shape),(0,w.extend)(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=(0,w.extend)({},this.shape);for(var u={},h=(0,w.keys)(s),c=0;c{"use strict";n.d(e,{Z:()=>r});var i=n(655);const r=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return(0,i.ZT)(e,t),e}(n(1797).Z)},1505:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(655),r=n(7719),o=n(423),a=n(327),s=n(3051),l=n(3132),u=(0,s.defaults)({strokeFirst:!0,font:l.Uo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.$t),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,s.createObject)(u,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,o.lP)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(r.ZP);h.prototype.type="tspan";const c=h},6498:(t,e,n)=>{"use strict";n.d(e,{VG:()=>_,Y1:()=>b,ZP:()=>I});var i=n(655),r=n(6918),o=n(1505),a=n(3051),s=n(423),l=n(4535),u=n(5151),h=n(479),c=n(7719),d=n(3132),p={fill:"#000"},f={style:(0,a.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},c.ik.style)},g=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=p,n.attr(e),n}return(0,i.ZT)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,z=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),B=a.calculatedLineHeight,Z=0;Z=0&&"right"===(O=w[P]).align;)this._placeToken(O,t,T,v,L,"right",_),M-=O.width,L-=O.width,P--;for(D+=(i-(D-m)-(y-L)-M)/2;I<=P;)O=w[I],this._placeToken(O,t,T,v,D+O.width/2,"center",_),D+=O.width,I++;v+=T}},e.prototype._placeToken=function(t,e,n,i,r,l,u){var c=e.rich[t.styleName]||{};c.text=t.text;var p=t.verticalAlign,f=i+n/2;"top"===p?f=i+t.height/2:"bottom"===p&&(f=i+n-t.height/2),!t.isLineHolder&&A(c)&&this._renderBackground(c,e,"right"===l?r-t.width:"center"===l?r-t.width/2:r,f-t.height/2,t.width,t.height);var g=!!c.backgroundColor,m=t.textPadding;m&&(r=M(r,l,m),f-=t.height/2-m[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.Z),y=v.createStyle();v.useStyle(y);var _=this._defaultStyle,b=!1,w=0,C=T("fill"in c?c.fill:"fill"in e?e.fill:(b=!0,_.fill)),I=S("stroke"in c?c.stroke:"stroke"in e?e.stroke:g||u||_.autoStroke&&!b?null:(w=2,_.stroke)),D=c.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=r,y.y=f,D&&(y.shadowBlur=c.textShadowBlur||e.textShadowBlur||0,y.shadowColor=c.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=c.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=c.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=l,y.textBaseline="middle",y.font=t.font||d.Uo,y.opacity=(0,a.retrieve3)(c.opacity,e.opacity,1),x(y,c),I&&(y.lineWidth=(0,a.retrieve3)(c.lineWidth,e.lineWidth,w),y.lineDash=(0,a.retrieve2)(c.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=I),C&&(y.fill=C);var L=t.contentWidth,P=t.contentHeight;v.setBoundingRect(new h.Z((0,s.M3)(y.x,L,y.textAlign),(0,s.mU)(y.y,P,y.textBaseline),L,P))},e.prototype._renderBackground=function(t,e,n,i,r,o){var s,h,c,d=t.backgroundColor,p=t.borderWidth,f=t.borderColor,g=d&&d.image,m=d&&!g,v=t.borderRadius,y=this;if(m||t.lineHeight||p&&f){(s=this._getOrCreateChild(u.Z)).useStyle(s.createStyle()),s.style.fill=null;var _=s.shape;_.x=n,_.y=i,_.width=r,_.height=o,_.r=v,s.dirtyShape()}if(m)(c=s.style).fill=d||null,c.fillOpacity=(0,a.retrieve2)(t.fillOpacity,1);else if(g){(h=this._getOrCreateChild(l.ZP)).onload=function(){y.dirtyStyle()};var x=h.style;x.image=d.image,x.x=n,x.y=i,x.width=r,x.height=o}p&&f&&((c=s.style).lineWidth=p,c.stroke=f,c.strokeOpacity=(0,a.retrieve2)(t.strokeOpacity,1),c.lineDash=t.borderDash,c.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(c.strokeFirst=!0,c.lineWidth*=2));var b=(s||h).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return b(t)&&(e=[t.fontStyle,t.fontWeight,_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,a.trim)(e)||t.textFont||t.font},e}(c.ZP),m={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function _(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d.n5+"px":t+"px":t}function x(t,e){for(var n=0;n{"use strict";n.d(e,{RH:()=>o,SE:()=>r,YV:()=>i});var i=1,r=2,o=4},8007:(t,e,n)=>{"use strict";n.d(e,{Gq:()=>s,ko:()=>a,v5:()=>u});var i=n(2528),r=n(3132),o=new i.ZP(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,i,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),h={hostEl:n,cb:i,cbPayload:a};return s?!u(e=s.image)&&s.pending.push(h):((e=r.qW.loadImage(t,l,l)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[h]})),e}return t}return e}function l(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e{"use strict";n.d(e,{$F:()=>g,NY:()=>c,aF:()=>s});var i=n(8007),r=n(3051),o=n(423),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=l(e,n,i,r);for(var a=0,s=o.length;a=l;h++)u-=l;var c=(0,o.dz)(n,e);return c>u&&(n="",c=0),u=t-c,a.ellipsis=n,a.ellipsisWidth=c,a.contentWidth=u,a.containerWidth=t,a}function u(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=(0,o.dz)(t,i);if(a<=n)return t;for(var s=0;;s++){if(a<=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?h(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,l),a=(0,o.dz)(t,i)}return""===t&&(t=e.placeholder),t}function h(t,e,n,i){for(var r=0,o=0,a=t.length;ov&&f){var y=Math.floor(v/d);n=n.slice(0,y)}if(t&&h&&null!=g)for(var x=l(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b=0;bp&&m(n,t.substring(p,g),e,d),m(n,l[2],e,d,l[1]),p=a.lastIndex}ph){I>0?(M.tokens=M.tokens.slice(0,I),S(M,A,C),n.lines=n.lines.slice(0,T+1)):n.lines=n.lines.slice(0,T);break t}var N=D.width,k=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))Z.percentWidth=N,v.push(Z),Z.contentWidth=(0,o.dz)(Z.text,O);else{if(k){var R=D.backgroundColor,z=R&&R.image;z&&(z=i.ko(z),i.v5(z)&&(Z.width=Math.max(Z.width,z.width*E/z.height)))}var B=b&&null!=u?u-A:null;null!=B&&B0&&v+i.accumWidth>i.width&&(a=e.split("\n"),f=!0),i.accumWidth=v}else{var y=_(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+m,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var x=0;x=33&&e<=383}(t)||!!v[t]}function _(t,e,n,i,r){for(var a=[],s=[],l="",u="",h=0,c=0,d=0;dn:r+c+f>n)?c?(l||u)&&(g?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=p,l="",c=h+=f):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=p,c=f)):g?(a.push(u),s.push(h),u=p,h=f):(a.push(p),s.push(f)):(c+=f,g?(u+=p,h+=f):(u&&(l+=u,u="",h=0),l+=p))}else u&&(l+=u,c+=h),a.push(l),s.push(c),l="",u="",h=0,c=0}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}},924:(t,e,n)=>{"use strict";n.d(e,{L:()=>r});var i=n(5280);function r(t,e,n){var r=e.smooth,o=e.points;if(o&&o.length>=2){if(r){var a=function(t,e,n,r){var o,a,s,l,u=[],h=[],c=[],d=[];if(r){s=[1/0,1/0],l=[-1/0,-1/0];for(var p=0,f=t.length;p{"use strict";n.d(e,{Pw:()=>o,_3:()=>r,vu:()=>a});var i=Math.round;function r(t,e,n){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u?(i(2*r)===i(2*o)&&(t.x1=t.x2=a(r,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=a(s,u,!0)),t):t}}function o(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,s=e.height;t.x=i,t.y=r,t.width=o,t.height=s;var l=n&&n.lineWidth;return l?(t.x=a(i,l,!0),t.y=a(r,l,!0),t.width=Math.max(a(i+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(r+s,l,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}},4826:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(r.ZP);a.prototype.type="arc";const s=a},4174:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(655),r=n(327),o=n(5280),a=n(8554),s=[],l=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function u(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?a.X_:a.af)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a.X_:a.af)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?a.AZ:a.Zm)(t.x1,t.cpx1,t.x2,e),(n?a.AZ:a.Zm)(t.y1,t.cpy1,t.y2,e)]}var h=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,l=e.cpx1,u=e.cpy1,h=e.cpx2,c=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==h||null==c?(d<1&&((0,a.Lx)(n,l,r,d,s),l=s[1],r=s[2],(0,a.Lx)(i,u,o,d,s),u=s[1],o=s[2]),t.quadraticCurveTo(l,u,r,o)):(d<1&&((0,a.Vz)(n,l,h,r,d,s),l=s[1],h=s[2],r=s[3],(0,a.Vz)(i,u,c,o,d,s),u=s[1],c=s[2],o=s[3]),t.bezierCurveTo(l,u,h,c,r,o)))},e.prototype.pointAt=function(t){return u(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=u(this.shape,t,!0);return o.normalize(e,e)},e}(r.ZP);h.prototype.type="bezier-curve";const c=h},9538:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(r.ZP);a.prototype.type="circle";const s=a},2797:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(r.ZP);a.prototype.type="ellipse";const s=a},2095:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(655),r=n(327),o=n(4111),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,i,r,s;if(this.subPixelOptimize){var l=(0,o._3)(a,e,this.style);n=l.x1,i=l.y1,r=l.x2,s=l.y2}else n=e.x1,i=e.y1,r=e.x2,s=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,i),u<1&&(r=n*(1-u)+r*u,s=i*(1-u)+s*u),t.lineTo(r,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(r.ZP);l.prototype.type="line";const u=l},5094:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(327),o=n(924),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.L(t,e,!0)},e}(r.ZP);s.prototype.type="polygon";const l=s},2514:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(655),r=n(327),o=n(924),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.L(t,e,!1)},e}(r.ZP);s.prototype.type="polyline";const l=s},5151:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(655),r=n(327);var o=n(4111),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var l=(0,o.Pw)(s,e,this.style);n=l.x,i=l.y,r=l.width,a=l.height,l.r=e.r,e=l}else n=e.x,i=e.y,r=e.width,a=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r.ZP);l.prototype.type="rect";const u=l},5795:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(655),r=n(327),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(r.ZP);a.prototype.type="ring";const s=a},7214:(t,e,n)=>{"use strict";n.d(e,{C:()=>b});var i=n(655),r=n(327),o=n(3051),a=Math.PI,s=2*a,l=Math.sin,u=Math.cos,h=Math.acos,c=Math.atan2,d=Math.abs,p=Math.sqrt,f=Math.max,g=Math.min,m=1e-4;function v(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/p(s*s+l*l),h=u*l,c=-u*s,d=t+h,g=e+c,m=n+h,v=i+c,y=(d+m)/2,_=(g+v)/2,x=m-d,b=v-g,w=x*x+b*b,S=r-o,T=d*v-m*g,M=(b<0?-1:1)*p(f(0,S*S*w-T*T)),C=(T*b-x*M)/w,A=(-T*x-b*M)/w,I=(T*b+x*M)/w,D=(-T*x+b*M)/w,L=C-y,P=A-_,O=I-y,E=D-_;return L*L+P*P>O*O+E*E&&(C=I,A=D),{cx:C,cy:A,x0:-h,y0:-c,x1:C*(r/S-1),y1:A*(r/S-1)}}function y(t,e){var n,i=f(e.r,0),r=f(e.r0||0,0),y=i>0;if(y||r>0){if(y||(i=r,r=0),r>i){var _=i;i=r,r=_}var x=e.startAngle,b=e.endAngle;if(!isNaN(x)&&!isNaN(b)){var w=e.cx,S=e.cy,T=!!e.clockwise,M=d(b-x),C=M>s&&M%s;if(C>m&&(M=C),i>m)if(M>s-m)t.moveTo(w+i*u(x),S+i*l(x)),t.arc(w,S,i,x,b,!T),r>m&&(t.moveTo(w+r*u(b),S+r*l(b)),t.arc(w,S,r,b,x,T));else{var A=void 0,I=void 0,D=void 0,L=void 0,P=void 0,O=void 0,E=void 0,N=void 0,k=void 0,R=void 0,z=void 0,B=void 0,Z=void 0,F=void 0,V=void 0,G=void 0,H=i*u(x),U=i*l(x),W=r*u(b),j=r*l(b),X=M>m;if(X){var Y=e.cornerRadius;Y&&(A=(n=function(t){var e;if((0,o.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(Y))[0],I=n[1],D=n[2],L=n[3]);var q=d(i-r)/2;if(P=g(q,D),O=g(q,L),E=g(q,A),N=g(q,I),z=k=f(P,O),B=R=f(E,N),(k>m||R>m)&&(Z=i*u(b),F=i*l(b),V=r*u(x),G=r*l(x),Mm){var it=g(D,z),rt=g(L,z),ot=v(V,G,H,U,i,it,T),at=v(Z,F,W,j,i,rt,T);t.moveTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),z0&&t.arc(w+ot.cx,S+ot.cy,it,c(ot.y0,ot.x0),c(ot.y1,ot.x1),!T),t.arc(w,S,i,c(ot.cy+ot.y1,ot.cx+ot.x1),c(at.cy+at.y1,at.cx+at.x1),!T),rt>0&&t.arc(w+at.cx,S+at.cy,rt,c(at.y1,at.x1),c(at.y0,at.x0),!T))}else t.moveTo(w+H,S+U),t.arc(w,S,i,x,b,!T);else t.moveTo(w+H,S+U);if(r>m&&X)if(B>m){it=g(A,B),ot=v(W,j,Z,F,r,-(rt=g(I,B)),T),at=v(H,U,V,G,r,-it,T);t.lineTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),B0&&t.arc(w+ot.cx,S+ot.cy,rt,c(ot.y0,ot.x0),c(ot.y1,ot.x1),!T),t.arc(w,S,r,c(ot.cy+ot.y1,ot.cx+ot.x1),c(at.cy+at.y1,at.cx+at.x1),T),it>0&&t.arc(w+at.cx,S+at.cy,it,c(at.y1,at.x1),c(at.y0,at.x0),!T))}else t.lineTo(w+W,S+j),t.arc(w,S,r,b,x,T);else t.lineTo(w+W,S+j)}else t.moveTo(w,S);t.closePath()}}}var _=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},x=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype.getDefaultShape=function(){return new _},e.prototype.buildPath=function(t,e){y(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r.ZP);x.prototype.type="sector";const b=x},6076:(t,e,n)=>{"use strict";n.d(e,{Z:()=>wt});var i=n(4839),r=n(327),o=n(4535),a=n(423),s=n(1505),l=Math.sin,u=Math.cos,h=Math.PI,c=2*Math.PI,d=180/h;const p=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,r,o,a,s,p){var f=s-a,g=!p,m=Math.abs(f),v=(0,i.zT)(m-c)||(g?f>=c:-f>=c),y=f>0?f%c:f%c+c,_=!1;_=!!v||!(0,i.zT)(m)&&y>=h==!!g;var x=t+n*u(a),b=e+r*l(a);this._start&&this._add("M",x,b);var w=Math.round(o*d);if(v){var S=1/this._p,T=(g?1:-1)*(c-S);this._add("A",n,r,w,1,+g,t+n*u(a+T),e+r*l(a+T)),S>.01&&this._add("A",n,r,w,0,+g,x,b)}else{var M=t+n*u(s),C=e+r*l(s);this._add("A",n,r,w,+_,+g,M,C)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c"}(r,e.attrs)+(e.text||"")+(i?""+n+(0,g.map)(i,(function(e){return t(e)})).join(n)+n:"")+("")}(t)}function C(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function A(t,e,n,i){return T("svg","root",{width:t,height:e,xmlns:b,"xmlns:xlink":w,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var I=n(8007),D=n(7411),L=n(4014),P=n(2776),O=n(5188),E={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},N="transform-origin";function k(t,e,n){var r=(0,g.extend)({},t.shape);(0,g.extend)(r,e),t.buildPath(n,r);var o=new p;return o.reset((0,i.Gk)(t)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function R(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[N]=n+"px "+i+"px")}var z={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function B(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Z(t){return(0,g.isString)(t)?E[t]?"cubic-bezier("+E[t]+")":(0,O.H)(t)?t:"":""}function F(t,e,n,r){var o=t.animators,a=o.length,s=[];if(t instanceof P.Z){var l=function(t,e,n){var i,r,o=t.shape.paths,a={};if((0,g.each)(o,(function(t){var e=C(n.zrId);e.animation=!0,F(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=(0,g.keys)(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var d=h[c];a[c]=a[c]||{d:""},a[c].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=B(a,n);return i.replace(r,s)}}(t,e,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var u={},h=0;h0})).length)return B(c,n)+" "+o[0]+" both"}for(var y in u){(l=v(u[y]))&&s.push(l)}if(s.length){var _=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+_]={animation:s.join(",")},e.class=_}}var V=n(6498),G=n(3132),H=Math.round;function U(t){return t&&(0,g.isString)(t.src)}function W(t){return t&&(0,g.isFunction)(t.toDataURL)}function j(t,e,n,r){x((function(o,a){var s="fill"===o||"stroke"===o;s&&(0,i.H3)(a)?function(t,e,n,r){var o,a=t[n],s={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if((0,i.I1)(a))o="linearGradient",s.x1=a.x,s.y1=a.y,s.x2=a.x2,s.y2=a.y2;else{if(!(0,i.gO)(a))return void 0;o="radialGradient",s.cx=(0,g.retrieve2)(a.x,.5),s.cy=(0,g.retrieve2)(a.y,.5),s.r=(0,g.retrieve2)(a.r,.5)}for(var l=a.colorStops,u=[],h=0,c=l.length;hl?mt(t,null==n[c+1]?null:n[c+1].elm,n,s,c):vt(t,e,a,l))}(n,i,r):dt(r)?(dt(t.text)&&ut(n,""),mt(n,null,r,0,r.length-1)):dt(i)?vt(n,i,0,i.length-1):dt(t.text)&&ut(n,""):t.text!==e.text&&(dt(i)&&vt(n,i,0,i.length-1),ut(n,e.text)))}var xt=n(5787),bt=0;const wt=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=(0,g.extend)({},n),this.root=t,this._id="zr"+bt++,this._oldVNode=A(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=S("svg");yt(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(ft(t,e))_t(t,e);else{var n=t.elm,i=st(n);gt(e),null!==i&&(rt(i,e.elm,lt(n)),vt(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return et(t,C(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,o=this._height,a=C(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var s=[];if(n&&"none"!==n){var l=(0,i.ut)(n),u=l.color,h=l.opacity;this._bgVNode=T("rect","bg",{width:r,height:o,x:"0",y:"0",id:"0",fill:u,"fill-opacity":h}),s.push(this._bgVNode)}else this._bgVNode=null;var c=t.compress?null:this._mainVNode=T("g","main",{},[]);this._paintList(e,a,c?c.children:s),c&&s.push(c);var d=(0,g.map)((0,g.keys)(a.defs),(function(t){return a.defs[t]}));if(d.length&&s.push(T("defs","defs",{},d)),t.animation){var p=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=(0,g.map)((0,g.keys)(t),(function(e){return e+r+(0,g.map)((0,g.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=(0,g.map)((0,g.keys)(e),(function(t){return"@keyframes "+t+r+(0,g.map)((0,g.keys)(e[t]),(function(n){return n+r+(0,g.map)((0,g.keys)(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}(a.cssNodes,a.cssAnims,{newline:!0});if(p){var f=T("style","stl",{},[],p);s.push(f)}}return A(r,o,s,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},M(this.renderToVNode({animation:(0,g.retrieve2)(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:(0,g.retrieve2)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=(0,i.ut)(t),r=n.color,o=n.opacity;e.elm.setAttribute("fill",r),o<1&&e.elm.setAttribute("fill-opacity",o)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var m=f+1;m{"use strict";n.d(e,{Cv:()=>v,Gk:()=>S,H3:()=>b,I1:()=>_,Pn:()=>c,R:()=>y,gA:()=>T,gO:()=>x,i2:()=>g,jY:()=>p,m1:()=>w,mU:()=>f,n1:()=>m,oF:()=>M,qV:()=>d,ut:()=>s,zT:()=>u});var i=n(3051),r=n(1092),o=n(6387),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=(0,r.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function u(t){return t-1e-4}function h(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function d(t){return"matrix("+h(t[0])+","+h(t[1])+","+h(t[2])+","+h(t[3])+","+c(t[4])+","+c(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return v(t)||function(t){return t&&!!t.svgElement}(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function b(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function T(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.RADIAN_TO_DEGREE,o=(0,i.retrieve2)(t.scaleX,1),s=(0,i.retrieve2)(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,h=[];return(e||n)&&h.push("translate("+e+"px,"+n+"px)"),r&&h.push("rotate("+r+")"),1===o&&1===s||h.push("scale("+o+","+s+")"),(l||u)&&h.push("skew("+a(l*i.RADIAN_TO_DEGREE)+"deg, "+a(u*i.RADIAN_TO_DEGREE)+"deg)"),h.join(" ")}var M=o.default.hasGlobalWindow&&(0,i.isFunction)(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}},1092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{fastLerp:()=>x,fastMapToColor:()=>b,lerp:()=>w,lift:()=>y,lum:()=>A,mapToColor:()=>S,modifyAlpha:()=>M,modifyHSL:()=>T,parse:()=>m,random:()=>I,stringify:()=>C,toHex:()=>_});var i=n(2528),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(t){return(t=Math.round(t))<0?0:t>255?255:t}function a(t){return t<0?0:t>1?1:t}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function c(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i.ZP(20),f=null;function g(t,e){f&&d(f,e),f=p.put(t,f||e.slice())}function m(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in r)return d(e,r[i]),g(t,e),e;var o,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(o=parseInt(i.slice(1,4),16))>=0&&o<=4095?(c(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(i.slice(4),16)/15:1),g(t,e),e):void c(e,0,0,0,1):7===a||9===a?(o=parseInt(i.slice(1,7),16))>=0&&o<=16777215?(c(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(i.slice(7),16)/255:1),g(t,e),e):void c(e,0,0,0,1):void 0;var u=i.indexOf("("),h=i.indexOf(")");if(-1!==u&&h+1===a){var f=i.substr(0,u),m=i.substr(u+1,h-(u+1)).split(","),y=1;switch(f){case"rgba":if(4!==m.length)return 3===m.length?c(e,+m[0],+m[1],+m[2],1):c(e,0,0,0,1);y=l(m.pop());case"rgb":return 3!==m.length?void c(e,0,0,0,1):(c(e,s(m[0]),s(m[1]),s(m[2]),y),g(t,e),e);case"hsla":return 4!==m.length?void c(e,0,0,0,1):(m[3]=l(m[3]),v(m,e),g(t,e),e);case"hsl":return 3!==m.length?void c(e,0,0,0,1):(v(m,e),g(t,e),e);default:return}}c(e,0,0,0,1)}}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),r=l(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return c(e=e||[],o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var n=m(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return C(n,4===n.length?"rgba":"rgb")}}function _(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=e[r],u=e[s],c=i-r;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=a(h(l[3],u[3],c)),n}}var b=x;function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=m(e[r]),u=m(e[s]),c=i-r,d=C([o(h(l[0],u[0],c)),o(h(l[1],u[1],c)),o(h(l[2],u[2],c)),a(h(l[3],u[3],c))],"rgba");return n?{color:d,leftIndex:r,rightIndex:s,value:i}:d}}var S=w;function T(t,e,n,i){var r,o=m(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=l(n)),null!=i&&(o[2]=l(i)),C(v(o),"rgba")}function M(t,e){var n=m(t);if(n&&null!=e)return n[3]=a(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function A(t,e){var n=m(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function I(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},7494:(t,e,n)=>{"use strict";n.d(e,{U5:()=>D,iR:()=>C,Pc:()=>A,AA:()=>I});var i=n(655),r=n(327),o=n(4014),a=n(5280),s=o.Z.CMD,l=[[],[],[]],u=Math.sqrt,h=Math.atan2;function c(t,e){if(e){var n,i,r,o,c,d,p=t.data,f=t.len(),g=s.M,m=s.C,v=s.L,y=s.R,_=s.A,x=s.Q;for(r=0,o=0;r1&&(a*=p(x),s*=p(x));var b=(r===o?-1:1)*p((a*a*(s*s)-a*a*(v*v)-s*s*(d*d))/(a*a*(v*v)+s*s*(d*d)))||0,w=b*a*v/s,S=b*-s*d/a,T=(t+n)/2+g(c)*w-f(c)*S,M=(e+i)/2+f(c)*w+g(c)*S,C=_([1,0],[(d-w)/a,(v-S)/s]),A=[(d-w)/a,(v-S)/s],I=[(-1*d-w)/a,(-1*v-S)/s],D=_(A,I);if(y(A,I)<=-1&&(D=m),y(A,I)>=1&&(D=0),D<0){var L=Math.round(D/m*1e6)/1e6;D=2*m+L%2*m}h.addData(u,T,M,a,s,C,D,c,o)}var b=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.applyTransform=function(t){},e}(r.ZP);function T(t){return null!=t.setData}function M(t,e){var n=function(t){var e=new o.Z;if(!t)return e;var n,i=0,r=0,a=i,s=r,l=o.Z.CMD,u=t.match(b);if(!u)return e;for(var h=0;h{"use strict";n.r(e),n.d(e,{dispose:()=>ot,disposeAll:()=>at,getInstance:()=>st,init:()=>rt,registerPainter:()=>lt,version:()=>ut});var i=n(6387),r=n(3051),o=n(655),a=n(5280),s=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};const l=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;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(new s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=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(new s(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=a,e!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,t),"dragleave",t.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();var u=n(3510),h=n(1158),c=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=d(r)/d(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},f="silent";function g(){h.sT(this.event)}var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,o.ZT)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(u.Z),v=function(t,e){this.x=t,this.y=e},y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._hovered=new v(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new m,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new l(o),o}return(0,o.ZT)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(r.each(y,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=b(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new v(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new v(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:g}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new v(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=x(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==f)){r.target=i[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new c);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new v;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(u.Z);function x(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||f}return!1}function b(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){_.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,s=b(this,r,o);if("mouseup"===t&&s||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const w=_;var S=n(9455),T=n(4414),M=!1;function C(){M||(M=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function A(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}const I=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=A}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(C(),u.z=0),isNaN(u.z2)&&(C(),u.z2=0),isNaN(u.zlevel)&&(C(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();var D=n(2795),L=n(5622);function P(){return(new Date).getTime()}const O=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return(0,o.ZT)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=P()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,D.Z)((function e(){t._running&&((0,D.Z)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=P(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=P(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=P()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new L.Z(t,e.loop);return this.addAnimator(n),n},e}(u.Z);var E,N,k=i.default.domSupported,R=(N={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:E=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:r.map(E,(function(t){var e=t.replace("mouse","pointer");return N.hasOwnProperty(e)?e:t}))}),z=["mousemove","mouseup"],B=["pointermove","pointerup"],Z=!1;function F(t){var e=t.pointerType;return"pen"===e||"touch"===e}function V(t){t&&(t.zrByTouch=!0)}function G(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var H=function(t,e){this.stopPropagation=r.noop,this.stopImmediatePropagation=r.noop,this.preventDefault=r.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},U={mousedown:function(t){t=(0,h.OD)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,h.OD)(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,h.OD)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){G(this,(t=(0,h.OD)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Z=!0,t=(0,h.OD)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Z||(t=(0,h.OD)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){V(t=(0,h.OD)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),U.mousemove.call(this,t),U.mousedown.call(this,t)},touchmove:function(t){V(t=(0,h.OD)(this.dom,t)),this.handler.processGesture(t,"change"),U.mousemove.call(this,t)},touchend:function(t){V(t=(0,h.OD)(this.dom,t)),this.handler.processGesture(t,"end"),U.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&U.click.call(this,t)},pointerdown:function(t){U.mousedown.call(this,t)},pointermove:function(t){F(t)||U.mousemove.call(this,t)},pointerup:function(t){U.mouseup.call(this,t)},pointerout:function(t){F(t)||U.mouseout.call(this,t)}};r.each(["click","dblclick","contextmenu"],(function(t){U[t]=function(e){e=(0,h.OD)(this.dom,e),this.trigger(t,e)}}));var W={pointermove:function(t){F(t)||W.mousemove.call(this,t)},pointerup:function(t){W.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function j(t,e){var n=e.domHandlers;i.default.pointerEventsSupported?r.each(R.pointer,(function(i){Y(e,i,(function(e){n[i].call(t,e)}))})):(i.default.touchEventsSupported&&r.each(R.touch,(function(i){Y(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),r.each(R.mouse,(function(i){Y(e,i,(function(r){r=(0,h.iP)(r),e.touching||n[i].call(t,r)}))})))}function X(t,e){function n(n){Y(e,n,(function(i){i=(0,h.iP)(i),G(t,i.target)||(i=function(t,e){return(0,h.OD)(t.dom,new H(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}i.default.pointerEventsSupported?r.each(B,n):i.default.touchEventsSupported||r.each(z,n)}function Y(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,(0,h.Oo)(t.domTarget,e,n,i)}function q(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,h.xg)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var K=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const J=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new K(e,U),k&&(i._globalHandlerScope=new K(document,W)),j(i,i._localHandlerScope),i}return(0,o.ZT)(e,t),e.prototype.dispose=function(){q(this._localHandlerScope),k&&q(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,k&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?X(this,e):q(e)}},e}(u.Z);var Q=n(1092),$=n(4990),tt=n(8154),et={},nt={};var it=function(){function t(t,e,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new I,s=n.renderer||"canvas";et[s]||(s=r.keys(et)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new et[s](e,a,n,t),u=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var h=i.default.node||i.default.worker||u?null:new J(l.getViewportRoot(),l.root);this.handler=new w(a,l,h,l.root),this.animation=new O({stage:{update:u?null:function(){return o._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,Q.lum)(t,1)<$.Ak;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{Axis:()=>s.RD,ChartView:()=>s.TA,ComponentModel:()=>s.tF,ComponentView:()=>s.Ir,List:()=>s.aV,Model:()=>s.Hn,PRIORITY:()=>s.Hr,SeriesModel:()=>s.wJ,color:()=>s.$_,connect:()=>s.$j,dataTool:()=>s.Ok,default:()=>p,dependencies:()=>s.HO,disConnect:()=>s.eU,disconnect:()=>s.zP,dispose:()=>s.B9,env:()=>s.OB,extendChartView:()=>s.Zy,extendComponentModel:()=>s.tv,extendComponentView:()=>s.Sp,extendSeriesModel:()=>s.Zr,format:()=>s.WU,getCoordinateSystemDimensions:()=>s.wL,getInstanceByDom:()=>s.JE,getInstanceById:()=>s.rp,getMap:()=>s.FU,graphic:()=>s.Q,helper:()=>s._y,init:()=>s.S1,innerDrawElementOnCanvas:()=>s.z$,matrix:()=>s.pI,number:()=>s.Rx,parseGeoJSON:()=>s.Nu,parseGeoJson:()=>s.pQ,registerAction:()=>s.zl,registerCoordinateSystem:()=>s.RS,registerLayout:()=>s.qR,registerLoading:()=>s.yn,registerLocale:()=>s.I2,registerMap:()=>s.je,registerPostInit:()=>s.sq,registerPostUpdate:()=>s.Br,registerPreprocessor:()=>s.ds,registerProcessor:()=>s.Pu,registerTheme:()=>s.aW,registerTransform:()=>s.rV,registerUpdateLifecycle:()=>s.YK,registerVisual:()=>s.Og,setCanvasCreator:()=>s.jQ,setPlatformAPI:()=>s.g2,throttle:()=>s.P2,time:()=>s.XV,use:()=>s.D$,util:()=>s.D5,vector:()=>s.xr,version:()=>s.i8,zrUtil:()=>s.gf,zrender:()=>s.x_});const e={...{metadata:!0,svgRender:!1,switchMode:!1,echartsOption:{aria:{show:!0,description:"This is a force-oriented graph chart that depicts the relationship between ip nodes."},toolbox:{show:!0,iconStyle:{borderColor:"#fff"},feature:{restore:{show:!0,title:"Restore view"},saveAsImage:{show:!0,title:"Save image"}}}},graphConfig:{series:{layout:"force",label:{show:!0,color:"#fff",position:"top"},force:{gravity:.1,edgeLength:[20,60],repulsion:120},roam:!0,draggable:!0,legendHoverLink:!0,emphasis:{focus:"none",lineStyle:{color:"#3acc38",opacity:1}},nodeStyle:{color:"#ffebc4"},linkStyle:{width:6,color:"#1ba619"},nodeSize:"15"},baseOptions:{backgroundColor:"#282222"}},mapOptions:{roam:!0,nodeConfig:{type:"scatter",label:{show:!0,color:"#000000",position:"top",formatter:"{b}"},nodeStyle:{color:"#1566a9"},nodeSize:"17"},linkConfig:{linkStyle:{width:5,color:"#1ba619"},emphasis:{focus:"none",lineStyle:{color:"#3acc38",opacity:1}}},baseOptions:{toolbox:{show:!1}}},mapTileConfig:[{urlTemplate:"https://tiles.stadiamaps.com/tiles/outdoors/{z}/{x}/{y}{r}.png",options:{minZoom:3,maxZoom:32,attribution:'© Stadia Maps, © OpenMapTiles © OpenStreetMap contributors'}}],nodeCategories:[],linkCategories:[],prepareData(t){},onClickElement(t,e){}}};const i=class{constructor(t){this.self=t,this.renderModeSelector=null,this.controls=null,this.sideBar=null,this.aboutContainer=null,this.nodeLinkInfoContainer=null}createControls(){const t=document.createElement("div");return t.setAttribute("class","njg-controls"),this.self.el.appendChild(t),t}createRenderModeSelector(){const t=document.createElement("div"),e=document.createElement("span");return e.setAttribute("class","iconfont icon-eye"),t.setAttribute("class","njg-selectIcon"),t.appendChild(e),this.controls.appendChild(t),t}createSideBar(){const t=document.createElement("div");t.setAttribute("class","njg-sideBar");const{body:e}=document,n=document.createElement("button");return t.appendChild(n),n.classList.add("sideBarHandle"),n.onclick=()=>{t.classList.toggle("hidden")},e.appendChild(t),t}createAboutContainer(){const t=document.createElement("div"),e=document.createElement("h2"),n=document.createElement("div");return n.classList.add("njg-metaData"),t.classList.add("njg-aboutContainer"),e.innerHTML="About",t.appendChild(e),t.appendChild(n),this.sideBar.appendChild(t),this.nodeLinkInfoContainer=this.createNodeLinkInfoContainer(),t}createNodeLinkInfoContainer(){const t=document.createElement("div");return t.classList.add("njg-nodeLinkInfoContainer"),t.style.visibility="hidden",this.sideBar.appendChild(t),t}getNodeLinkInfo(t,e){const n=document.querySelectorAll(".njg-infoContainer"),i=document.querySelectorAll(".njg-headerContainer");for(let t=0;t{const n=document.createElement("div");n.classList.add("njg-infoItems");const i=document.createElement("span");i.setAttribute("class","njg-keyLabel");const r=document.createElement("span");r.setAttribute("class","njg-valueLabel"),"location"===t?(i.innerHTML="Location",r.innerHTML=`${Math.round(1e3*e[t].lat)/1e3}, ${Math.round(1e3*e[t].lng)/1e3}`):"localAddresses"===t?(i.innerHTML="Local Addresses",r.innerHTML=e[t].join("
")):(i.innerHTML=t,r.innerHTML=e[t]),n.appendChild(i),n.appendChild(r),o.appendChild(n)})),r.appendChild(a),r.appendChild(s),this.nodeLinkInfoContainer.appendChild(r),this.nodeLinkInfoContainer.appendChild(o),s.onclick=()=>{this.nodeLinkInfoContainer.style.visibility="hidden"}}init(){this.sideBar=this.createSideBar(),this.self.config.switchMode&&(this.controls=this.createControls(),this.renderModeSelector=this.createRenderModeSelector())}};const r=class{JSONParamParse(t){return"string"==typeof t?fetch(t,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((t=>t.json?t.json():t)).catch((t=>{console.error(t)})):Promise.resolve(t)}dateParse({dateString:t,parseRegular:e=/^([1-9]\d{3})-(\d{1,2})-(\d{1,2})T(\d{1,2}):(\d{1,2}):(\d{1,2})(?:\.(\d{1,3}))?Z$/,hourDiffer:n=(new Date).getTimezoneOffset()/60}){const i=e.exec(t);if(!i||i.length<7)return console.error("Date doesn't meet the specifications."),"";const r=["dateYear","dateMonth","dateDay","dateHour"],o={},a=i[1]%4==0&&i[1]%100!=0||i[1]%400==0,s=new Map([["dateMonth",12],["dateDay",[31,a?29:28,31,30,31,30,31,31,30,31,30,31]],["dateHour",24]]);for(let t=r.length;t>0;t-=1)o[r[t-1]]=parseInt(i[t],10);let l,u=-n;for(let t=r.length;t>0;t-=1){if("dateYear"===r[t-1]){o[r[t-1]]+=u;break}l="dateDay"===r[t-1]?s.get("dateDay")[o.dateMonth-1]:s.get(r[t-1]);let e=o[r[t-1]]+u;u="dateHour"===r[t-1]?e<0?-1:e>=l?1:0:e<=0?-1:e>l?1:0,1===u?e-=l:u<0&&("dateDay"===r[t-1]&&(l=s.get("dateDay")[(o[r[t-1]]+10)%11]),e+=l),o[r[t-1]]=e}return`${o.dateYear}.${this.numberMinDigit(o.dateMonth)}.${this.numberMinDigit(o.dateDay)} ${this.numberMinDigit(o.dateHour)}:${this.numberMinDigit(i[5])}:${this.numberMinDigit(i[6])}${i[7]?`.${this.numberMinDigit(i[7],3)}`:""}`}numberMinDigit(t,e=2,n="0"){return(Array(e).join(n)+t).slice(-e)}isObject(t){return"Object"===Object.prototype.toString.call(t).slice(8,14)}isArray(t){return"Array"===Object.prototype.toString.call(t).slice(8,13)}isElement(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}deepMergeObj(...t){const e=[...t].reverse(),n=e.length;for(let t=0;t{i[t]&&this.isObject(i[t])&&this.isObject(n[t])?this.deepMergeObj(i[t],n[t]):i[t]=n[t]})):i||(e[t+1]=n)}return e[n-1]}updateMetadata(){if(this.config.metadata){const t=this.utils.getMetadata(this.data),e=document.querySelector(".njg-metaData"),n=document.querySelectorAll(".njg-metaDataItems");for(let t=0;t{const i=document.createElement("div");i.classList.add("njg-metaDataItems");const r=document.createElement("span");r.setAttribute("class","njg-keyLabel");const o=document.createElement("span");o.setAttribute("class","njg-valueLabel"),r.innerHTML=n,o.innerHTML=t[n],i.appendChild(r),i.appendChild(o),e.appendChild(i)}))}}getMetadata(t){const e=t,n={};return e.label&&(n.label=e.label),["protocol","version","revision","metric","router_id","topology_id"].forEach((t=>{e[t]&&(n[t]=e[t])})),n.nodes=e.nodes.length,n.links=e.links.length,n}nodeInfo(t){const e={};return e.id=t.id,t.label&&"string"==typeof t.label&&(e.label=t.label),t.name&&(e.name=t.name),t.location&&(e.location=t.location),t.properties&&Object.keys(t.properties).forEach((n=>{if("location"===n)e[n]={lat:t.properties.location.lat,lng:t.properties.location.lng};else if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e[n]=i}else e[n.replace(/_/g," ")]=t.properties[n]})),t.linkCount&&(e.links=t.linkCount),t.local_addresses&&(e.localAddresses=t.local_addresses),e}createTooltipItem(t,e){const n=document.createElement("div");n.classList.add("njg-tooltip-item");const i=document.createElement("span");i.setAttribute("class","njg-tooltip-key");const r=document.createElement("span");return r.setAttribute("class","njg-tooltip-value"),i.innerHTML=t,r.innerHTML=e,n.appendChild(i),n.appendChild(r),n}getNodeTooltipInfo(t){const e=document.createElement("div");return e.classList.add("njg-tooltip-inner"),t.id&&e.appendChild(this.createTooltipItem("id",t.id)),t.label&&"string"==typeof t.label&&e.appendChild(this.createTooltipItem("label",t.label)),t.properties&&Object.keys(t.properties).forEach((n=>{if("location"===n)e.appendChild(this.createTooltipItem("location",`${Math.round(1e3*t.properties.location.lat)/1e3}, ${Math.round(1e3*t.properties.location.lng)/1e3}`));else if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e.appendChild(this.createTooltipItem("time",i))}else e.appendChild(this.createTooltipItem(`${n.replace(/_/g," ")}`,t.properties[n]))})),t.linkCount&&e.appendChild(this.createTooltipItem("Links",t.linkCount)),t.local_addresses&&e.appendChild(this.createTooltipItem("Local Addresses",t.local_addresses.join("
"))),e}getLinkTooltipInfo(t){const e=document.createElement("div");return e.classList.add("njg-tooltip-inner"),e.appendChild(this.createTooltipItem("source",t.source)),e.appendChild(this.createTooltipItem("target",t.target)),e.appendChild(this.createTooltipItem("cost",t.cost)),t.properties&&Object.keys(t.properties).forEach((n=>{if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e.appendChild(this.createTooltipItem("time",i))}else e.appendChild(this.createTooltipItem(`${n.replace(/_/g," ")}`,t.properties[n]))})),e}linkInfo(t){const e={};return e.source=t.source,e.target=t.target,e.cost=t.cost,t.properties&&Object.keys(t.properties).forEach((n=>{if("time"===n){const i=this.dateParse({dateString:t.properties[n]});e[n]=i}else e[n.replace(/_/g," ")]=t.properties[n]})),e}generateStyle(t,e){return"function"==typeof t?t(e):t}getNodeStyle(t,e,n){let i,r={},o={};if(t.category&&e.nodeCategories.length){const n=e.nodeCategories.find((e=>e.name===t.category));i=this.generateStyle(n.nodeStyle||{},t),r=this.generateStyle(n.nodeSize||{},t),o={...o,nodeStyle:n.emphasis?this.generateStyle(n.emphasis.nodeStyle||{},t):{}},o={...o,nodeSize:n.empahsis?this.generateStyle(n.emphasis.nodeSize||{},t):{}}}else"map"===n?(i=this.generateStyle(e.mapOptions.nodeConfig.nodeStyle,t),r=this.generateStyle(e.mapOptions.nodeConfig.nodeSize,t)):(i=this.generateStyle(e.graphConfig.series.nodeStyle,t),r=this.generateStyle(e.graphConfig.series.nodeSize,t));return{nodeStyleConfig:i,nodeSizeConfig:r,nodeEmphasisConfig:o}}getLinkStyle(t,e,n){let i,r={};if(t.category&&e.linkCategories.length){const n=e.linkCategories.find((e=>e.name===t.category));i=this.generateStyle(n.linkStyle||{},t),r={...r,linkStyle:n.emphasis?this.generateStyle(n.emphasis.linkStyle||{},t):{}}}else i="map"===n?this.generateStyle(e.mapOptions.linkConfig.linkStyle,t):this.generateStyle(e.graphConfig.series.linkStyle,t);return{linkStyleConfig:i,linkEmphasisConfig:r}}getGUI(t){return new i(t)}showLoading(){let t=document.getElementById("loadingContainer");return t?t.style.visibility="visible":(t=document.createElement("div"),t.setAttribute("id","loadingContainer"),t.innerHTML='\n
\n
\n

Loading...

\n
\n ',this.el.appendChild(t)),t}hideLoading(){const t=document.getElementById("loadingContainer");return t&&(t.style.visibility="hidden"),t}createEvent(){const t=new Map,e=new Map;return{on(e,...n){t.set(e,[...t.get(e)||[],...n])},once(t,...n){e.set(t,[...e.get(t)||[],...n])},emit(n){const i=t.get(n)||[],r=e.get(n)||[],o=i.map((t=>t())),a=r.map((t=>t()));return e.delete(n),[...o,...a]},delete(n){t.delete(n),e.delete(n)}}}};const o=class extends r{searchElements(t){const e=this,n={"":{data:{...e.data},param:[...e.JSONParam]}};return window.history.pushState({searchValue:""},""),window.onpopstate=i=>{n[i.state.searchValue]?e.utils.JSONDataUpdate.call(e,n[i.state.searchValue].data).then((()=>{e.JSONParam=n[i.state.searchValue].param})):e.utils.JSONDataUpdate.call(e,t+i.state.searchValue)},function(i,r=!0,o=!0){const a=i.trim();if(!window.history.state||window.history.state&&window.history.state.searchValue!==a)return window.history.pushState({searchValue:a},""),e.utils.JSONDataUpdate.call(e,t+a,r,o).then((()=>{n[a]={data:{...e.data},param:[...e.JSONParam]}}))}}JSONDataUpdate(t,e=!0,n=!0){const i=this;return i.config.onUpdate.call(i),i.utils.JSONParamParse(t).then((r=>{function o(){e?(i.JSONParam=[t],i.utils.overrideData(r,i)):(i.JSONParam.push(t),i.config.render===i.utils.mapRender?i.utils.appendData(r,i):i.utils.addData(r,i)),i.utils.updateMetadata.call(i)}return n?(i.config.prepareData.call(i,r),i.config.dealDataByWorker?i.utils.dealDataByWorker.call(i,r,i.config.dealDataByWorker,o):o()):o(),r})).catch((t=>{console.error(t)}))}dealDataByWorker(t,e,n){const i=new Worker(e),r=this;i.postMessage(t),i.addEventListener("error",(t=>{console.error(t),console.error("Error in dealing JSONData!")})),i.addEventListener("message",(t=>{n?n():r.utils.overrideData(t.data,r)}))}overrideData(t,e){e.data=t,e.utils.render(),e.config.afterUpdate.call(e)}};const a=class{constructor(t){this.utils=new o,this.config={...e},this.JSONParam=this.utils.isArray(t)?t:[t]}setConfig(t){return this.utils.deepMergeObj(this.config,t),this.el?t&&t.el&&console.error("Can't change el again!"):(this.config.el?this.utils.isElement(this.config.el)?this.el=this.config.el:this.el=document.getElementById(this.config.el):this.el=document.body,this.el===document.body&&(this.el.classList.add("njg-relativePosition"),this.el.setAttribute("id","graphChartContainer"))),this.config}render(){const[t,...e]=this.JSONParam;if(this.config.onRender.call(this),this.event.once("onLoad",this.config.onLoad.bind(this)),this.utils.JSONParamParse(t).then((t=>{this.config.prepareData.call(this,t),this.data=t,this.config.dealDataByWorker?this.utils.dealDataByWorker.call(this,t,this.config.dealDataByWorker):(this.data=t,this.utils.render())})).catch((t=>{console.error(t)})),e.length){const n=function(){e.map((t=>this.utils.JSONDataUpdate.call(this,t,!1)))};this.JSONParam=[t],this.event.once("renderArray",n.bind(this))}}setUtils(t={}){const e=this;return e.utils=Object.assign(e.utils,{...t},{render(){if(!e.config.render)throw new Error("No render function!");e.config.render(e.data,e)}}),e.utils}};var s=n(9060),l=n(8023),u=n(1615),h=n(12),c=n(7240),d=n(7164);(0,l.D)([h.N,c.N]);const p={init:function(){return u.S1.apply(null,arguments)}};(0,l.D)(d.T);var f=n(6026);(0,l.D)(f.N);var g=n(9517);(0,l.D)(g.N);var m=n(241);(0,l.D)(m.N);var v=n(7813);(0,l.D)(v.N);var y=n(8690);(0,l.D)(y.N);var _=n(5045);(0,l.D)(_.N);var x=n(3450);(0,l.D)(x.N);var b=n(9448),w=n(6076);(0,b.registerPainter)("svg",w.Z);n(3721);var S=n(531),T=n.n(S);class M{echartsSetOption(t,e){const n=e.config,i=e.echarts,r=e.utils.deepMergeObj({tooltip:{confine:!0,position:(t,e,n,i,r)=>{let o="right";return r.viewSize[0]-t[0]"graph"===t.componentSubType?"edge"===t.dataType?e.utils.getLinkTooltipInfo(t.data):e.utils.getNodeTooltipInfo(t.data):"graphGL"===t.componentSubType?e.utils.getNodeTooltipInfo(t.data):"lines"===t.componentSubType?e.utils.getLinkTooltipInfo(t.data.link):e.utils.getNodeTooltipInfo(t.data.node)}},n.echartsOption);return i.setOption(e.utils.deepMergeObj(r,t)),i.on("click",(t=>{const i=n.onClickElement.bind(e);return"graph"===t.componentSubType?i("edge"===t.dataType?"link":"node",t.data):"graphGL"===t.componentSubType?i("node",t.data):"lines"===t.componentSubType?i("link",t.data.link):i("node",t.data.node)}),{passive:!0}),i}generateGraphOption(t,e){const n=[],i=e.config,r=t.nodes.map((t=>{const n=JSON.parse(JSON.stringify(t)),{nodeStyleConfig:r,nodeSizeConfig:o,nodeEmphasisConfig:a}=e.utils.getNodeStyle(t,i,"graph");return n.itemStyle=r,n.symbolSize=o,n.emphasis={itemStyle:a.nodeStyle,symbolSize:a.nodeSize},n.name="string"==typeof t.label?t.label:t.id,n})),o=t.links.map((t=>{const n=JSON.parse(JSON.stringify(t)),{linkStyleConfig:r,linkEmphasisConfig:o}=e.utils.getLinkStyle(t,i,"graph");return n.lineStyle=r,n.emphasis={lineStyle:o.linkStyle},n})),a=[Object.assign(i.graphConfig.series,{type:"graphGL"===i.graphConfig.series.type?"graphGL":"graph",layout:"graphGL"===i.graphConfig.series.type?"forceAtlas2":i.graphConfig.series.layout,nodes:r,links:o})];return{legend:n.length?{data:n}:void 0,series:a,...i.graphConfig.baseOptions}}generateMapOption(t,e){const n=e.config,{nodes:i,links:r}=t,o=t.flatNodes||{},a=[],s=[];i.forEach((i=>{if(i.properties){const{location:r}=i.properties;if(r&&r.lng&&r.lat){const{nodeStyleConfig:a,nodeSizeConfig:l,nodeEmphasisConfig:u}=e.utils.getNodeStyle(i,n,"map");s.push({name:"string"==typeof i.label?i.label:i.id,value:[r.lng,r.lat],symbolSize:l,itemStyle:a,emphasis:{itemStyle:u.nodeStyle,symbolSize:u.nodeSize},node:i}),t.flatNodes||(o[i.id]=JSON.parse(JSON.stringify(i)))}else console.error(`Node ${i.id} position is undefined!`)}else console.error(`Node ${i.id} position is undefined!`)})),r.forEach((t=>{if(o[t.source])if(o[t.target]){const{linkStyleConfig:i,linkEmphasisConfig:r}=e.utils.getLinkStyle(t,n,"map");a.push({coords:[[o[t.source].properties.location.lng,o[t.source].properties.location.lat],[o[t.target].properties.location.lng,o[t.target].properties.location.lat]],lineStyle:i,emphasis:{lineStyle:r.linkStyle},link:t})}else console.error(`Node ${t.target} is not exist!`);else console.error(`Node ${t.source} is not exist!`)}));const l=[Object.assign(n.mapOptions.nodeConfig,{type:"effectScatter"===n.mapOptions.nodeConfig.type?"effectScatter":"scatter",coordinateSystem:"leaflet",data:s,animationDuration:1e3}),Object.assign(n.mapOptions.linkConfig,{type:"lines",coordinateSystem:"leaflet",data:a})];return{leaflet:{tiles:n.mapTileConfig,mapOptions:n.mapOptions},series:l,...n.mapOptions.baseOptions}}graphRender(t,e){e.utils.echartsSetOption(e.utils.generateGraphOption(t,e),e),window.onresize=()=>{e.echarts.resize()},e.event.emit("onLoad"),e.event.emit("renderArray")}mapRender(t,e){e.config.mapTileConfig[0]?(e.utils.echartsSetOption(e.utils.generateMapOption(t,e),e),e.leaflet=e.echarts._api.getCoordinateSystems()[0].getLeaflet(),e.leaflet._zoomAnimated=!1,e.event.emit("onLoad"),e.event.emit("renderArray")):console.error('You must add the tiles via the "mapTileConfig" param!')}appendData(t,e){if(e.config.render!==e.utils.mapRender)return void console.error("AppendData function can only be used for map render!");e.utils.generateMapOption(t,e).series.forEach(((t,n)=>{e.echarts.appendData({seriesIndex:n,data:t.data})})),e.utils.mergeData(t,e),e.config.afterUpdate.call(e)}addData(t,e){e.utils.mergeData(t,e),e.utils.render(),e.config.afterUpdate.call(e)}mergeData(t,e){const n=e.data.nodes.concat(t.nodes),i=e.data.links.concat(t.links);Object.assign(e.data,t,{nodes:n,links:i})}}const C=function(t,e){const{util:n,graphic:i,matrix:r}=t,o=e.Layer.extend({initialize(t){this._container=t},onAdd(t){t.getPane(this.options.pane).appendChild(this._container),t.zoomControl.setPosition("topright")},onRemove(){e.DomUtil.remove(this._container)},_update(){}});function a(t,n){this._map=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=n,this._projection=e.Projection.Mercator}function s(t,e,n,i){const{leafletModel:r,seriesModel:o}=n,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("leaflet")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}return a.dimensions=["lng","lat"],a.prototype.dimensions=["lng","lat"],a.prototype.setZoom=function(t){this._zoom=t},a.prototype.setCenter=function(t){this._center=this._projection.project(new e.LatLng(t[1],t[0]))},a.prototype.setMapOffset=function(t){this._mapOffset=t},a.prototype.getLeaflet=function(){return this._map},a.prototype.getViewRect=function(){const t=this._api;return new i.BoundingRect(0,0,t.getWidth(),t.getHeight())},a.prototype.getRoamTransform=function(){return r.create()},a.prototype.dataToPoint=function(t){const n=new e.LatLng(t[1],t[0]),i=this._map.latLngToLayerPoint(n),r=this._mapOffset;return[i.x-r[0],i.y-r[1]]},a.prototype.pointToData=function(t){const e=this._mapOffset,n=this._map.layerPointToLatLng({x:t[0]+e[0],y:t[1]+e[1]});return[n.lng,n.lat]},a.prototype.convertToPixel=n.curry(s,"dataToPoint"),a.prototype.convertFromPixel=n.curry(s,"pointToData"),a.create=function(t,n){let i;const r=[],s=n.getDom();return t.eachComponent("leaflet",(t=>{const l=n.getZr().painter.getViewportRoot();if(void 0===e)throw new Error("Leaflet api is not loaded");if(i)throw new Error("Only one leaflet component can exist");if(!t.__map){let n=s.querySelector(".ec-extension-leaflet");n&&(l.style.left="0px",l.style.top="0px",s.removeChild(n)),n=document.createElement("div"),n.style.cssText="width:100%;height:100%",n.classList.add("ec-extension-leaflet"),s.appendChild(n),t.__map=e.map(n,t.get("mapOptions"));const i=t.__map,r=t.get("tiles"),a={};let u=!1;if(r.forEach((t=>{const n=e.tileLayer(t.urlTemplate,t.options);t.label?(u||(n.addTo(i),u=!0),a[t.label]=n):n.addTo(i)})),r.length>1){const n=t.get("layerControl");e.control.layers(a,{},n).addTo(i)}const h=document.createElement("div");h.style="position: absolute;left: 0;top: 0;z-index: 100",h.appendChild(l),new o(h).addTo(i)}const u=t.__map;i=new a(u,n),r.push(i),i.setMapOffset(t.__mapOffset||[0,0]);const{center:h,zoom:c}=t.get("mapOptions");h&&c&&(i.setZoom(c),i.setCenter(h)),t.coordinateSystem=i})),t.eachSeries((t=>{"leaflet"===t.get("coordinateSystem")&&(t.coordinateSystem=i)})),r},a};function A(t,e,n){!function(t){t.extendComponentModel({type:"leaflet",getLeaflet(){return this.__map},setCenterAndZoom(t,e){this.option.center=t,this.option.zoom=e},centerOrZoomChanged(t,e){const{option:n}=this;return i=t,r=n.center,!(i&&r&&i[0]===r[0]&&i[1]===r[1]&&e===n.zoom);var i,r},defaultOption:{mapOptions:{},tiles:[{urlTemplate:"http://{s}.tile.osm.org/{z}/{x}/{y}.png",options:{attribution:'© OpenStreetMap contributors'}}],layerControl:{}}})}(t),function(t,e){t.extendComponentView({type:"leaflet",render(e,n,i){let r=!0;const o=e.getLeaflet(),a=i.getZr().painter.getViewportRoot().parentNode,s=e.coordinateSystem,{roam:l}=e.get("mapOptions");function u(t){if(r)return;const n=o._mapPane;let l=n.style.transform,u=0,h=0;if(l){l=l.replace("translate3d(","");let t=l.split(",");u=-parseInt(t[0],10),h=-parseInt(t[1],10)}else u=-parseInt(n.style.left,10),h=-parseInt(n.style.top,10);let c=[u,h];a.style.left=`${c[0]}px`,a.style.top=`${c[1]}px`,s.setMapOffset(c),e.__mapOffset=c,i.dispatchAction({type:"leafletRoam",animation:{duration:0}})}function h(){r||(console.log(this),i.dispatchAction({type:"leafletRoam"}))}function c(){u()}function d(){t.getInstanceByDom(i.getDom()).resize()}l&&"scale"!==l?o.dragging.enable():o.dragging.disable(),l&&"move"!==l?(o.scrollWheelZoom.enable(),o.doubleClickZoom.enable(),o.touchZoom.enable()):(o.scrollWheelZoom.disable(),o.doubleClickZoom.disable(),o.touchZoom.disable()),this._oldMoveHandler&&o.off("move",this._oldMoveHandler),this._oldZoomHandler&&o.off("zoom",this._oldZoomHandler),this._oldZoomEndHandler&&o.off("zoomend",this._oldZoomEndHandler),this._oldResizeHandler&&o.off("resize",this._oldResizeHandler),o.on("move",u),o.on("zoom",c),o.on("zoomend",h),o.on("resize",d),this._oldMoveHandler=u,this._oldZoomHandler=c,this._oldZoomEndHandler=h,this._oldResizeHandler=d,r=!1}})}(t),t.registerCoordinateSystem("leaflet",C(t,e)),t.registerAction({type:"leafletRoam",event:"leafletRoam",update:"updateLayout"},((t,e)=>{e.eachComponent("leaflet",(t=>{const e=t.getLeaflet(),n=e.getCenter();t.setCenterAndZoom([n.lng,n.lat],e.getZoom())}))}))}A.version="1.0.0";const I=A,D=n(1092),{each:L}=n(3051),P=n(6387);class O{constructor(t,e){e&&"map"===e.render?e.render=M.prototype.mapRender:e&&e.render&&"graph"!==e.render||((e=e||{}).render=M.prototype.graphRender);let n=new a(t);return Object.setPrototypeOf(M.prototype,n.utils),n.utils=new M,n.setUtils(),n.event=n.utils.createEvent(),n.setConfig({onInit(){return this.config},onRender(){return this.utils.showLoading.call(this),this.config},onUpdate(){return this.config},afterUpdate(){return this.config},onLoad(){const t=this.utils.getGUI(this);return t.init(),this.config.metadata&&(t.createAboutContainer(n),this.utils.updateMetadata.call(this)),this.config.switchMode&&(t.renderModeSelector.onclick=()=>{this.config.render===this.utils.mapRender?(this.config.render=this.utils.graphRender,this.echarts.dispose(),n=new O(this.data,{...this.config}),n.render()):(this.config.render=this.utils.mapRender,this.config.render(this.data,this))}),this.config.onClickElement=(e,n)=>{let i;i="node"===e?this.utils.nodeInfo(n):this.utils.linkInfo(n),t.getNodeLinkInfo(e,i),t.sideBar.classList.remove("hidden")},this.utils.hideLoading.call(this),this.config},...e}),n.echarts=s.S1(n.el,null,{renderer:n.config.svgRender?"svg":"canvas"}),n.config.onInit.call(n),n}}I(t,T(),{colorTool:D,each:L,env:P}),window.NetJSONGraph=O,window.echarts=t,window.L=T()})()})(); //# sourceMappingURL=netjsongraph.min.js.map \ No newline at end of file diff --git a/lib/js/echarts-leaflet/LeafletCoordSys.js b/lib/js/echarts-leaflet/LeafletCoordSys.js index c16a6dfe..f4b11cac 100644 --- a/lib/js/echarts-leaflet/LeafletCoordSys.js +++ b/lib/js/echarts-leaflet/LeafletCoordSys.js @@ -17,7 +17,7 @@ function createLeafletCoordSystem(echarts, L) { onAdd(map) { const pane = map.getPane(this.options.pane); pane.appendChild(this._container); - map.zoomControl.setPosition('topright'); + map.zoomControl.setPosition("topright"); // Calculate initial position of container with // `L.Map.latLngToLayerPoint()`, `getPixelOrigin() diff --git a/lib/js/echarts-leaflet/LeafletView.js b/lib/js/echarts-leaflet/LeafletView.js index 022e9c86..e6142ccc 100644 --- a/lib/js/echarts-leaflet/LeafletView.js +++ b/lib/js/echarts-leaflet/LeafletView.js @@ -14,106 +14,6 @@ export default function extendLeafletView(echarts, L) { const leaflet = leafletModel.getLeaflet(); const moveContainer = api.getZr().painter.getViewportRoot().parentNode; const coordSys = leafletModel.coordinateSystem; - const _preMapStatus = {x: 0, y: 0}; - - if (this._oldMoveStartHandler) { - leaflet.off("movestart", this._oldMoveStartHandler); - } - if (this._oldMoveHandler) { - leaflet.off("move", this._oldMoveHandler); - } - if (this._oldZoomEndHandler) { - leaflet.off("zoomend", this._oldZoomEndHandler); - } - if (this._oldResizeHandler) { - leaflet.off("resize", this._oldResizeHandler); - } - - /** - * Dom is canvas ? - */ - function isCanvas(dom) { - return dom.tagName === "CANVAS"; - } - - /** - * resize the child of parent, canvas specially. - */ - function inheritDomSize(child, parent) { - const parentSize = [ - parseFloat(getComputedStyle(parent).width), - parseFloat(getComputedStyle(parent).height), - ]; - - if (isCanvas(child)) { - child.width = - (child.width / parseFloat(getComputedStyle(child).width)) * - parentSize[0]; - child.height = - (child.height / parseFloat(getComputedStyle(child).height)) * - parentSize[1]; - } - - child.style.width = `${parentSize[0]}px`; - child.style.height = `${parentSize[1]}px`; - } - - /** - * resize dom's all children. - */ - function resizeAllChildren(root) { - const children = [...root.childNodes]; - - children.forEach((childDom) => { - inheritDomSize(childDom, root); - if (childDom.childNodes.length) { - resizeAllChildren(childDom); - } - }); - } - - /** - * get leaflet map offset - * - * @param {object} map leaflet map - * @return {object|undefined} { x, y } - */ - function getMapOffset(map) { - const pos = L.DomUtil.getPosition(map.getPanes().mapPane); - if (!pos) { - console.error("Can't get the map offset!"); - return; - } - - // we want to return only if the pos is defined - // eslint-disable-next-line consistent-return - return pos; - } - - /** - * set canvas container's offset according to leaflet map offset. - * @return {object|undefined} { dx, dy } - */ - - // We only want to return only if the offset is defined - // eslint-disable-next-line consistent-return - function setOffset() { - const pos = getMapOffset(leaflet); - if (pos) { - const {x, y} = pos; - const dx = x - _preMapStatus.x; - const dy = y - _preMapStatus.y; - - Object.assign(_preMapStatus, {x, y}); - - L.DomUtil.setPosition(moveContainer, {x: -x, y: -y}); - - coordSys.setMapOffset([-x, -y]); - leafletModel.__mapOffset = [-x, -y]; - - return {dx, dy}; - } - } const {roam} = leafletModel.get("mapOptions"); // can move @@ -133,74 +33,87 @@ export default function extendLeafletView(echarts, L) { leaflet.touchZoom.disable(); } - /** - * init position status at move start. - */ - function setPosition() { - if (rendering) { - return; - } - - const pos = getMapOffset(leaflet); - if (pos) { - Object.assign(_preMapStatus, {x: pos.x, y: pos.y}); - } - } - /** * handler for map move event. */ - function moveHandler() { + function moveHandler(e) { if (rendering) { return; } - const offset = setOffset(); - if (offset) { - const {dx, dy} = offset; - api.dispatchAction({ - type: "leafletMove", - dx, - dy, - }); + const offsetEl = leaflet._mapPane; + let transformStyle = offsetEl.style.transform; + let dx = 0; + let dy = 0; + if (transformStyle) { + transformStyle = transformStyle.replace("translate3d(", ""); + let parts = transformStyle.split(","); + dx = -parseInt(parts[0], 10); + dy = -parseInt(parts[1], 10); + } else { + dx = -parseInt(offsetEl.style.left, 10); + dy = -parseInt(offsetEl.style.top, 10); } + let mapOffset = [dx, dy]; + moveContainer.style.left = `${mapOffset[0]}px`; + moveContainer.style.top = `${mapOffset[1]}px`; + + coordSys.setMapOffset(mapOffset); + leafletModel.__mapOffset = mapOffset; + const actionParams = { + type: "leafletRoam", + animation: { + duration: 0, + }, + }; + api.dispatchAction(actionParams); } /** * handler for map zoom event */ - function zoomHandler() { + function zoomEndHandler() { if (rendering) { return; } - + console.log(this); api.dispatchAction({ - type: "leafletZoom", + type: "leafletRoam", }); } + function zoomHandler() { + moveHandler(); + } + /** * handler for map resize event */ function resizeHandler() { - const _ecDom = api.getDom(); - inheritDomSize(moveContainer, _ecDom); - - resizeAllChildren(moveContainer); + echarts.getInstanceByDom(api.getDom()).resize(); + } - api.dispatchAction({ - type: "leafletZoom", - }); + if (this._oldMoveHandler) { + leaflet.off("move", this._oldMoveHandler); + } + if (this._oldZoomHandler) { + leaflet.off("zoom", this._oldZoomHandler); + } + if (this._oldZoomEndHandler) { + leaflet.off("zoomend", this._oldZoomEndHandler); + } + if (this._oldResizeHandler) { + leaflet.off("resize", this._oldResizeHandler); } - leaflet.on("movestart", setPosition); leaflet.on("move", moveHandler); - leaflet.on("zoomend", zoomHandler); + leaflet.on("zoom", zoomHandler); + leaflet.on("zoomend", zoomEndHandler); leaflet.on("resize", resizeHandler); - this._oldMoveStartHandler = setPosition; this._oldMoveHandler = moveHandler; - this._oldZoomEndHandler = zoomHandler; + this._oldZoomHandler = zoomHandler; + this._oldZoomEndHandler = zoomEndHandler; this._oldResizeHandler = resizeHandler; rendering = false; diff --git a/lib/js/echarts-leaflet/index.js b/lib/js/echarts-leaflet/index.js index 06526b84..940f3849 100644 --- a/lib/js/echarts-leaflet/index.js +++ b/lib/js/echarts-leaflet/index.js @@ -2,214 +2,6 @@ import createLeafletCoordSystem from "./LeafletCoordSys"; import extendLeafletModel from "./LeafletModel"; import extendLeafletView from "./LeafletView"; -/* eslint-disable */ - -/** - * For geo and graph. - * - * @param {Object} controllerHost - * @param {module:zrender/Element} controllerHost.target - */ -function updateViewOnPan(controllerHost, dx, dy) { - const {target} = controllerHost; - const pos = target.position; - pos[0] += dx; - pos[1] += dy; - (function dirty(target) { - target.__dirty = true; - target.__zr && target.__zr.refreshImmediately(); - })(target); -} - -/** - * @param {Object} payload - * @private - */ -function update(payload, API) { - // console.profile && console.profile('update'); - const ecModel = this._model; - const api = this._api; - const zr = this._zr; - const coordSysMgr = this._coordSysMgr; - const scheduler = this._scheduler; // update before setOption - const {colorTool,each, env} = API; - - if (!ecModel) { - return; - } - - scheduler.restoreData(ecModel, payload); - scheduler.performSeriesTasks(ecModel); // TODO - // Save total ecModel here for undo/redo (after restoring data and before processing data). - // Undo (restoration of total ecModel) can be carried out in 'action' or outside API call. - // Create new coordinate system each update - // In LineView may save the old coordinate system and use it to get the orignal point - - coordSysMgr.create(ecModel, api); - scheduler.performDataProcessorTasks(ecModel, payload); // Current stream render is not supported in data process. So we can update - // stream modes after data processing, where the filtered data is used to - // deteming whether use progressive rendering. - - updateStreamModes(this, ecModel); // We update stream modes before coordinate system updated, then the modes info - // can be fetched when coord sys updating (consider the barGrid extent fix). But - // the drawback is the full coord info can not be fetched. Fortunately this full - // coord is not requied in stream mode updater currently. - - coordSysMgr.update(ecModel, api); - clearColorPalette(ecModel); - scheduler.performVisualTasks(ecModel, payload); - render(this, ecModel, api, payload); // Set background - - zr.refreshImmediately(); - - let backgroundColor = ecModel.get("backgroundColor") || "transparent"; // In IE8 - - if (!env.canvasSupported) { - const colorArr = colorTool.parse(backgroundColor); - backgroundColor = colorTool.stringify(colorArr, "rgb"); - - if (colorArr[3] === 0) { - backgroundColor = "transparent"; - } - } else { - zr.setBackgroundColor(backgroundColor); - } - - // performPostUpdateFuncs(ecModel, api); // console.profile && console.profileEnd('update'); - - // function performPostUpdateFuncs(ecModel, api) { - // each(postUpdateFuncs, function (func) { - // func(ecModel, api); - // }); - // } - - function updateStreamModes(ecIns, ecModel) { - const chartsMap = ecIns._chartsMap; - const scheduler = ecIns._scheduler; - ecModel.eachSeries((seriesModel) => { - scheduler.updateStreamModes(seriesModel, chartsMap[seriesModel.__viewId]); - }); - } - - function clearColorPalette(ecModel) { - ecModel.clearColorPalette(); - ecModel.eachSeries((seriesModel) => { - seriesModel.clearColorPalette(); - }); - } - - function render(ecIns, ecModel, api, payload) { - renderComponents(ecIns, ecModel, api, payload); - each(ecIns._chartsViews, (chart) => { - chart.__alive = false; - }); - renderSeries(ecIns, ecModel, api, payload); // Remove groups of unrendered charts - - each(ecIns._chartsViews, (chart) => { - if (!chart.__alive) { - chart.remove(ecModel, api); - } - }); - } - - function renderComponents(ecIns, ecModel, api, payload, dirtyList) { - each(dirtyList || ecIns._componentsViews, (componentView) => { - const componentModel = componentView.__model; - componentView.render(componentModel, ecModel, api, payload); - updateZ(componentModel, componentView); - }); - } - - /** - * Render each chart and component - * @private - */ - function renderSeries(ecIns, ecModel, api, payload, dirtyMap) { - // Render all charts - const scheduler = ecIns._scheduler; - let unfinished; - ecModel.eachSeries((seriesModel) => { - const chartView = ecIns._chartsMap[seriesModel.__viewId]; - chartView.__alive = true; - const renderTask = chartView.renderTask; - scheduler.updatePayload(renderTask, payload); - - if (dirtyMap && dirtyMap.get(seriesModel.uid)) { - renderTask.dirty(); - } - - unfinished |= renderTask.perform(scheduler.getPerformArgs(renderTask)); - chartView.group.silent = !!seriesModel.get("silent"); - updateZ(seriesModel, chartView); - updateBlend(seriesModel, chartView); - }); - scheduler.unfinished |= unfinished; // If use hover layer - - updateHoverLayerStatus(ecIns._zr, ecModel); // Add aria - } - - /** - * @param {module:echarts/model/Series|module:echarts/model/Component} model - * @param {module:echarts/view/Component|module:echarts/view/Chart} view - */ - function updateZ(model, view) { - const z = model.get("z"); - const zlevel = model.get("zlevel"); // Set z and zlevel - - view.group.traverse((el) => { - if (el.type !== "group") { - z != null && (el.z = z); - zlevel != null && (el.zlevel = zlevel); - } - }); - } - - /** - * Update chart progressive and blend. - * @param {module:echarts/model/Series|module:echarts/model/Component} model - * @param {module:echarts/view/Component|module:echarts/view/Chart} view - */ - function updateBlend(seriesModel, chartView) { - const blendMode = seriesModel.get("blendMode") || null; - chartView.group.traverse((el) => { - // FIXME marker and other components - if (!el.isGroup) { - // Only set if blendMode is changed. In case element is incremental and don't wan't to rerender. - if (el.style.blend !== blendMode) { - el.setStyle("blend", blendMode); - } - } - - if (el.eachPendingDisplayable) { - el.eachPendingDisplayable((displayable) => { - displayable.setStyle("blend", blendMode); - }); - } - }); - } - - function updateHoverLayerStatus(zr, ecModel) { - const storage = zr.storage; - let elCount = 0; - storage.traverse((el) => { - if (!el.isGroup) { - elCount++; - } - }); - - if (elCount > ecModel.get("hoverLayerThreshold") && !env.node) { - storage.traverse((el) => { - if (!el.isGroup) { - // Don't switch back. - el.useHoverLayer = true; - } - }); - } - } -} - -/* eslint-enable */ - /** * echarts register leaflet coord system * @param {object} echarts @@ -231,56 +23,11 @@ function registerLeafletSystem(echarts, L, API) { echarts.registerAction( { - type: "leafletMove", - event: "leafletMove", - update: "none", + type: "leafletRoam", + event: "leafletRoam", + update: "updateLayout", }, (payload, ecModel) => { - const ec = ecModel.scheduler.ecInstance; - // eslint-disable-next-line no-underscore-dangle - ec._chartsViews.forEach(({group}) => { - updateViewOnPan( - { - target: group, - }, - payload.dx, - payload.dy, - ); - }); - - ecModel.eachComponent("leaflet", (leafletModel) => { - const leaflet = leafletModel.getLeaflet(); - const center = leaflet.getCenter(); - leafletModel.setCenterAndZoom( - [center.lng, center.lat], - leaflet.getZoom(), - ); - }); - }, - ); - echarts.registerAction( - { - type: "leafletZoom", - event: "leafletZoom", - update: "none", - }, - (payload, ecModel) => { - const ec = ecModel.scheduler.ecInstance; - - update.call(ec, payload, API); - - // set position offset to [0, 0] - // eslint-disable-next-line no-underscore-dangle - ec._chartsViews.forEach(({group}) => { - updateViewOnPan( - { - target: group, - }, - -group.position[0], - -group.position[1], - ); - }); - ecModel.eachComponent("leaflet", (leafletModel) => { const leaflet = leafletModel.getLeaflet(); const center = leaflet.getCenter(); diff --git a/test/netjsongraph.spec.js b/test/netjsongraph.spec.js index f59aa2a4..7cccbff0 100644 --- a/test/netjsongraph.spec.js +++ b/test/netjsongraph.spec.js @@ -48,16 +48,16 @@ describe("NetJSONGraph Specification", () => { }, }, nodeStyle: { - color: "#f4d38c", + color: "#ffebc4", }, linkStyle: { - width: 5, + width: 6, color: "#1ba619", }, - nodeSize: "17", + nodeSize: "15", }, baseOptions: { - backgroundColor: "#2B2B2B", + backgroundColor: "#282222", }, }; const NetJSONGraphMapOptions = {