12345678910111213141516171819202122232425 |
- (self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[443],{494:function(t,e){"use strict";var n="*",i=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var o=this._events[t]||[],a=this._events[n]||[],s=function(n){for(var r=n.length,o=0;o<r;o++)if(n[o]){var a=n[o],s=a.callback,l=a.once;l&&(n.splice(o,1),0===n.length&&delete e._events[t],r--,o--),s.apply(e,i)}};s(o),s(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],i=n.length,r=0;r<i;r++)n[r].callback===e&&(n.splice(r,1),i--,r--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e["Z"]=i},2667:function(t,e,n){"use strict";var i=n(655),r=n(494),o=n(7341),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=(0,o.CD)(i,e),n}return(0,i.ZT)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(r.Z);e["Z"]=a},1862:function(t,e,n){"use strict";n.d(e,{Z:function(){return He}});var i={};n.r(i),n.d(i,{easeBack:function(){return dt},easeBackIn:function(){return pt},easeBackInOut:function(){return dt},easeBackOut:function(){return ft},easeBounce:function(){return ut},easeBounceIn:function(){return lt},easeBounceInOut:function(){return ct},easeBounceOut:function(){return ut},easeCircle:function(){return J},easeCircleIn:function(){return Z},easeCircleInOut:function(){return J},easeCircleOut:function(){return q},easeCubic:function(){return O},easeCubicIn:function(){return P},easeCubicInOut:function(){return O},easeCubicOut:function(){return L},easeElastic:function(){return xt},easeElasticIn:function(){return yt},easeElasticInOut:function(){return bt},easeElasticOut:function(){return xt},easeExp:function(){return Q},easeExpIn:function(){return W},easeExpInOut:function(){return Q},easeExpOut:function(){return j},easeLinear:function(){return T},easePoly:function(){return U},easePolyIn:function(){return z},easePolyInOut:function(){return U},easePolyOut:function(){return _},easeQuad:function(){return D},easeQuadIn:function(){return I},easeQuadInOut:function(){return D},easeQuadOut:function(){return B},easeSin:function(){return X},easeSinIn:function(){return Y},easeSinInOut:function(){return X},easeSinOut:function(){return H}});var r,o,a=n(655),s=n(3631),l=n(7153),u=n(7341),c=n(5098),h=0,p=0,f=0,d=1e3,g=0,v=0,m=0,y="object"===typeof performance&&performance.now?performance:Date,x="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function b(){return v||(x(w),v=y.now()+m)}function w(){v=0}function A(){this._call=this._time=this._next=null}function C(t,e,n){var i=new A;return i.restart(t,e,n),i}function S(){b(),++h;var t,e=r;while(e)(t=v-e._time)>=0&&e._call.call(null,t),e=e._next;--h}function M(){v=(g=y.now())+m,h=p=0;try{S()}finally{h=0,E(),v=0}}function k(){var t=y.now(),e=t-g;e>d&&(m-=e,g=t)}function E(){var t,e,n=r,i=1/0;while(n)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);o=t,F(i)}function F(t){if(!h){p&&(p=clearTimeout(p));var e=t-v;e>24?(t<1/0&&(p=setTimeout(M,t-y.now()-m)),f&&(f=clearInterval(f))):(f||(g=y.now(),f=setInterval(k,d)),h=1,x(M))}}function T(t){return+t}function I(t){return t*t}function B(t){return t*(2-t)}function D(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function P(t){return t*t*t}function L(t){return--t*t*t+1}function O(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}A.prototype=C.prototype={constructor:A,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?b():+n)+(null==e?0:+e),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=t,this._time=n,F()},stop:function(){this._call&&(this._call=null,this._time=1/0,F())}};var R=3,z=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(R),_=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(R),U=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(R),N=Math.PI,V=N/2;function Y(t){return 1===+t?1:1-Math.cos(t*V)}function H(t){return Math.sin(t*V)}function X(t){return(1-Math.cos(N*t))/2}function G(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function W(t){return G(1-+t)}function j(t){return 1-G(t)}function Q(t){return((t*=2)<=1?G(1-t):2-G(t-1))/2}function Z(t){return 1-Math.sqrt(1-t*t)}function q(t){return Math.sqrt(1- --t*t)}function J(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var K=4/11,$=6/11,tt=8/11,et=3/4,nt=9/11,it=10/11,rt=15/16,ot=21/22,at=63/64,st=1/K/K;function lt(t){return 1-ut(1-t)}function ut(t){return(t=+t)<K?st*t*t:t<tt?st*(t-=$)*t+et:t<it?st*(t-=nt)*t+rt:st*(t-=ot)*t+at}function ct(t){return((t*=2)<=1?1-ut(1-t):ut(t-1)+1)/2}var ht=1.70158,pt=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(ht),ft=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(ht),dt=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(ht),gt=2*Math.PI,vt=1,mt=.3,yt=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=gt);function r(t){return e*G(- --t)*Math.sin((i-t)/n)}return r.amplitude=function(e){return t(e,n*gt)},r.period=function(n){return t(e,n)},r}(vt,mt),xt=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=gt);function r(t){return 1-e*G(t=+t)*Math.sin((t+i)/n)}return r.amplitude=function(e){return t(e,n*gt)},r.period=function(n){return t(e,n)},r}(vt,mt),bt=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=gt);function r(t){return((t=2*t-1)<0?e*G(-t)*Math.sin((i-t)/n):2-e*G(t)*Math.sin((i+t)/n))/2}return r.amplitude=function(e){return t(e,n*gt)},r.period=function(n){return t(e,n)},r}(vt,mt);function wt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function At(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Ct(){}var St=.7,Mt=1/St,kt="\\s*([+-]?\\d+)\\s*",Et="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ft="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tt=/^#([0-9a-f]{3,8})$/,It=new RegExp("^rgb\\("+[kt,kt,kt]+"\\)$"),Bt=new RegExp("^rgb\\("+[Ft,Ft,Ft]+"\\)$"),Dt=new RegExp("^rgba\\("+[kt,kt,kt,Et]+"\\)$"),Pt=new RegExp("^rgba\\("+[Ft,Ft,Ft,Et]+"\\)$"),Lt=new RegExp("^hsl\\("+[Et,Ft,Ft]+"\\)$"),Ot=new RegExp("^hsla\\("+[Et,Ft,Ft,Et]+"\\)$"),Rt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function zt(){return this.rgb().formatHex()}function _t(){return qt(this).formatHsl()}function Ut(){return this.rgb().formatRgb()}function Nt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Tt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Vt(e):3===n?new Gt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Yt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Yt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=It.exec(t))?new Gt(e[1],e[2],e[3],1):(e=Bt.exec(t))?new Gt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Dt.exec(t))?Yt(e[1],e[2],e[3],e[4]):(e=Pt.exec(t))?Yt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Lt.exec(t))?Zt(e[1],e[2]/100,e[3]/100,1):(e=Ot.exec(t))?Zt(e[1],e[2]/100,e[3]/100,e[4]):Rt.hasOwnProperty(t)?Vt(Rt[t]):"transparent"===t?new Gt(NaN,NaN,NaN,0):null}function Vt(t){return new Gt(t>>16&255,t>>8&255,255&t,1)}function Yt(t,e,n,i){return i<=0&&(t=e=n=NaN),new Gt(t,e,n,i)}function Ht(t){return t instanceof Ct||(t=Nt(t)),t?(t=t.rgb(),new Gt(t.r,t.g,t.b,t.opacity)):new Gt}function Xt(t,e,n,i){return 1===arguments.length?Ht(t):new Gt(t,e,n,null==i?1:i)}function Gt(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Wt(){return"#"+Qt(this.r)+Qt(this.g)+Qt(this.b)}function jt(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Qt(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Zt(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Kt(t,e,n,i)}function qt(t){if(t instanceof Kt)return new Kt(t.h,t.s,t.l,t.opacity);if(t instanceof Ct||(t=Nt(t)),!t)return new Kt;if(t instanceof Kt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,s=o-r,l=(o+r)/2;return s?(a=e===o?(n-i)/s+6*(n<i):n===o?(i-e)/s+2:(e-n)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new Kt(a,s,l,t.opacity)}function Jt(t,e,n,i){return 1===arguments.length?qt(t):new Kt(t,e,n,null==i?1:i)}function Kt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function $t(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function te(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}function ee(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],a=i>0?t[i-1]:2*r-o,s=i<e-1?t[i+2]:2*o-r;return te((n-i/e)*e,a,r,o,s)}}function ne(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return te((n-i/e)*e,r,o,a,s)}}function ie(t){return function(){return t}}function re(t,e){return function(n){return t+n*e}}function oe(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function ae(t){return 1===(t=+t)?se:function(e,n){return n-e?oe(e,n,t):ie(isNaN(e)?n:e)}}function se(t,e){var n=e-t;return n?re(t,n):ie(isNaN(t)?e:t)}wt(Ct,Nt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:zt,formatHex:zt,formatHsl:_t,formatRgb:Ut,toString:Ut}),wt(Gt,Xt,At(Ct,{brighter:function(t){return t=null==t?Mt:Math.pow(Mt,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?St:Math.pow(St,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wt,formatHex:Wt,formatRgb:jt,toString:jt})),wt(Kt,Jt,At(Ct,{brighter:function(t){return t=null==t?Mt:Math.pow(Mt,t),new Kt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?St:Math.pow(St,t),new Kt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Gt($t(t>=240?t-240:t+120,r,i),$t(t,r,i),$t(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var le=function t(e){var n=ae(e);function i(t,e){var i=n((t=Xt(t)).r,(e=Xt(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=se(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function ue(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=Xt(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}ue(ee),ue(ne);function ce(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(n=0;n<i;++n)r[n]=t[n]*(1-o)+e[n]*o;return r}}function he(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function pe(t,e){return(he(e)?ce:fe)(t,e)}function fe(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,o=new Array(r),a=new Array(i);for(n=0;n<r;++n)o[n]=Ae(t[n],e[n]);for(;n<i;++n)a[n]=e[n];return function(t){for(n=0;n<r;++n)a[n]=o[n](t);return a}}function de(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function ge(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function ve(t,e){var n,i={},r={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?i[n]=Ae(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}}var me=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ye=new RegExp(me.source,"g");function xe(t){return function(){return t}}function be(t){return function(e){return t(e)+""}}function we(t,e){var n,i,r,o=me.lastIndex=ye.lastIndex=0,a=-1,s=[],l=[];t+="",e+="";while((n=me.exec(t))&&(i=ye.exec(e)))(r=i.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:ge(n,i)})),o=ye.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?l[0]?be(l[0].x):xe(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)s[(n=l[i]).i]=n.x(t);return s.join("")})}function Ae(t,e){var n,i=typeof e;return null==e||"boolean"===i?ie(e):("number"===i?ge:"string"===i?(n=Nt(e))?(e=n,le):we:e instanceof Nt?le:e instanceof Date?de:he(e)?ce:Array.isArray(e)?fe:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?ve:ge)(t,e)}var Ce=n(7575),Se=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},Me=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},ke=[1,0,0,0,1,0,0,0,1];function Ee(t,e,n){var i={},r=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a;for(var s in o)if(!(0,c.Xy)(r[s],o[s]))if("path"===s){var l=o[s],u=r[s];l.length>u.length?(l=Ce.parsePathString(o[s]),u=Ce.parsePathString(r[s]),u=Ce.fillPathByDiff(u,l),u=Ce.formatPath(u,l),e.fromAttrs.path=u,e.toAttrs.path=l):e.pathFormatted||(l=Ce.parsePathString(o[s]),u=Ce.parsePathString(r[s]),u=Ce.formatPath(u,l),e.fromAttrs.path=u,e.toAttrs.path=l,e.pathFormatted=!0),i[s]=[];for(var h=0;h<l.length;h++){for(var p=l[h],f=u[h],d=[],g=0;g<p.length;g++)(0,c.hj)(p[g])&&f&&(0,c.hj)(f[g])?(a=Ae(f[g],p[g]),d.push(a(n))):d.push(p[g]);i[s].push(d)}}else if("matrix"===s){var v=pe(r[s]||ke,o[s]||ke),m=v(n);i[s]=m}else Se(s)&&Me(o[s])?i[s]=o[s]:(0,c.mf)(o[s])||(a=Ae(r[s],o[s]),i[s]=a(n));t.attr(i)}}function Fe(t,e,n){var r,o=e.startTime,a=e.delay;if(n<o+a||e._paused)return!1;var s=e.duration,l=e.easing;if(n=n-o-e.delay,e.repeat)r=n%s/s,r=i[l](r);else{if(r=n/s,!(r<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=i[l](r)}if(e.onFrame){var u=e.onFrame(r);t.attr(u)}else Ee(t,e,r);return!1}var Te=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,i=this,r=!1;this.timer=C((function(o){if(i.current=o,i.animators.length>0){for(var a=i.animators.length-1;a>=0;a--)if(t=i.animators[a],t.destroyed)i.removeAnimator(a);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],r=Fe(t,n,o),r&&(e.splice(s,1),r=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(a)}var l=i.canvas.get("autoDraw");l||i.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),Ie=Te,Be=n(9473),De=40,Pe=0,Le=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Oe(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Re(t,e,n){if(n.bubbles){var i=void 0,r=!1;if("mouseenter"===e?(i=n.fromShape,r=!0):"mouseleave"===e&&(r=!0,i=n.toShape),t.isCanvas()&&r)return;if(i&&(0,u.UY)(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var ze=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&(e.dragging||e.currentShape)){var r=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,r,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&e.dragging){var r=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,r,null),e._emitEvent("dragend",t,r,e.draggingShape),e._afterDrag(e.draggingShape,r,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,u.S6)(Le,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,u.S6)(Le,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,r,o){var a=new Be.Z(t,e);return a.fromShape=r,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(i),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),i=e.getPointByEvent(t);return{x:i.x,y:i.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),i=this._getShape(n,e),r=this["_on"+t],o=!1;if(r)r.call(this,n,i,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,i),i&&this._emitEvent(t,e,n,i,null,i),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(o||(this.currentShape=i),i&&!i.get("destroyed")){var s=this.canvas,l=s.get("el");l.style.cursor=i.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===Pe&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,i){var r=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",t,e,n,n,i),this._emitEvent("mouseleave",t,e,n,n,i),i&&!i.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",t,e,i,n,i),this._emitEvent("mouseenter",t,e,i,n,i)))},t.prototype._emitDragoverEvents=function(t,e,n,i,r){i?(i!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,i),this._emitEvent("dragenter",t,e,i,n,i)),r||this._emitEvent("dragover",t,e,i)):n&&this._emitEvent("dragleave",t,e,n,n,i),r&&this._emitEvent("dragover",t,e,i)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(e,n);i!==t&&this._emitMouseoverEvents(n,e,t,i),this.currentShape=i},t.prototype._onmouseup=function(t,e,n){if(n.button===Pe){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,i),this._afterDrag(i,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var i=this.currentShape;this._emitDragoverEvents(n,t,i,e,!0)},t.prototype._onmousemove=function(t,e,n){var i=this.canvas,r=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,l=n.timeStamp,u=l-this.mousedownTimeStamp,c=a.clientX-t.clientX,h=a.clientY-t.clientY,p=c*c+h*h;u>120||p>De?s&&s.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,i,r,o){var a=this._getEventObj(t,e,n,i,r,o);if(i){a.shape=i,Oe(i,t,a);var s=i.getParent();while(s)s.emitDelegation(t,a),a.propagationStopped||Re(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{var l=this.canvas;Oe(l,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),_e=ze,Ue="px",Ne=(0,s.qY)(),Ve=Ne&&"firefox"===Ne.name,Ye=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,a.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["cursor"]="default",e["supportCSSTransform"]=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,u.HD)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new _e({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Ie(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");u.jU&&(n.style.width=t+Ue,n.style.height=e+Ue)},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");u.jU&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(Ve&&!(0,u.kK)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,u.kK)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),i=n.x,r=n.y;return this.getPointByClient(i,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t-i.left,y:e-i.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t+i.left,y:e+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(l.Z),He=Ye},7153:function(t,e,n){"use strict";var i=n(655),r=n(5098),o=n(9881),a=n(7341),s={},l="_INDEX";function u(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){u(t,e)}))}}function c(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){c(t,e)}))}}function h(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),(0,a.As)(t.getChildren(),e)}function p(t){return function(e,n){var i=t(e,n);return 0===i?e[l]-n[l]:i}}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,o=[],s=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));l.length>0?((0,a.S6)(l,(function(t){var e=t.getBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=(0,r.VV)(o),e=(0,r.Fp)(o),n=(0,r.VV)(s),i=(0,r.Fp)(s)):(t=0,e=0,n=0,i=0);var u={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return u},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,o=[],s=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));l.length>0?((0,a.S6)(l,(function(t){var e=t.getCanvasBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=(0,r.VV)(o),e=(0,r.Fp)(o),n=(0,r.VV)(s),i=(0,r.Fp)(s)):(t=0,e=0,n=0,i=0);var u={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return u},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,a.S6)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],i=t[1];(0,a.Kn)(n)?i=n:i["type"]=n;var r=s[i.type];r||(r=(0,a.jC)(i.type),s[i.type]=r);var o=this.getShapeBase(),l=new o[r](i);return this.add(l),l},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,i=t[0],r=t[1];if((0,a.mf)(i))n=new i(r||{parent:this});else{var o=i||{},s=this.getGroupBase();n=new s(o)}return this.add(n),n},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas"),t},e.prototype.getShape=function(t,e,n){if(!(0,a.pP)(this))return null;var i,r=this.getChildren();if(this.isCanvas())i=this._findShape(r,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(i=this._findShape(r,o[0],o[1],n))}return i},e.prototype._findShape=function(t,e,n,i){for(var r=null,o=t.length-1;o>=0;o--){var s=t[o];if((0,a.pP)(s)&&(s.isGroup()?r=s.getShape(e,n,i):s.isHit(e,n)&&(r=s)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&h(r,t,!1),t.set("parent",this),e&&u(t,e),i&&c(t,i),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t=this.getChildren();(0,a.S6)(t,(function(t,e){return t[l]=e,t})),t.sort(p((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,a.S6)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,a.S6)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.Z);e["Z"]=f},9881:function(t,e,n){"use strict";var i=n(655),r=n(5098),o=n(1506),a=n(7341),s=n(1482),l=n(2667),u=o.vs,c="matrix",h=["zIndex","capture","visible","type"],p=["repeat"],f=":",d="*";function g(t){for(var e=[],n=0;n<t.length;n++)(0,r.kJ)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function v(t,e){var n={},i=e.attrs;for(var r in t)n[r]=i[r];return n}function m(t,e){var n={},i=e.attr();return(0,r.S6)(t,(function(t,e){-1!==p.indexOf(e)||(0,r.Xy)(i[e],t)||(n[e]=t)})),n}function y(t,e){if(e.onFrame)return t;var n=e.startTime,i=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return(0,r.S6)(t,(function(t){n+i<t.startTime+t.delay+t.duration&&o>t.delay&&(0,r.S6)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var x=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return(0,r.CD)(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return(0,i.ZT)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e[0],o=e[1];if(!i)return this.attrs;if((0,r.Kn)(i)){for(var a in i)this.setAttr(a,i[a]);return this.afterAttrsChange(i),this}return 2===e.length?(this.setAttr(i,o),this.afterAttrsChange((t={},t[i]=o,t)),this):this.attrs[i]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?((0,a.As)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(c,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(c)},e.prototype.setMatrix=function(t){this.attr(c,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?(0,s.xq)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?(0,s.xq)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?(0,s.rG)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=(0,s.U_)(e);if(n)return(0,s.rG)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var i=this.getShapeBase(),o=(0,r.jC)(t.type),a=i[o];a&&(n=new a({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};(0,r.S6)(e,(function(t,i){(0,r.kJ)(e[i])?n[i]=g(e[i]):n[i]=e[i]}));var i=this.constructor,o=new i({attrs:n});return(0,r.S6)(h,(function(e){o.set(e,t.get(e))})),o},e.prototype.destroy=function(){var e=this.destroyed;e||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var i=this.get("animations")||[];n.timer||n.initTimer();var o,a,s,l,u,c=t[0],h=t[1],p=t[2],f=void 0===p?"easeLinear":p,d=t[3],g=void 0===d?r.ZT:d,x=t[4],b=void 0===x?0:x;(0,r.mf)(c)?(o=c,c={}):(0,r.Kn)(c)&&c.onFrame&&(o=c.onFrame,a=c.repeat),(0,r.Kn)(h)?(u=h,h=u.duration,f=u.easing||"easeLinear",b=u.delay||0,a=u.repeat||a||!1,g=u.callback||r.ZT,s=u.pauseCallback||r.ZT,l=u.resumeCallback||r.ZT):((0,r.hj)(g)&&(b=g,g=null),(0,r.mf)(f)?(g=f,f="easeLinear"):f=f||"easeLinear");var w=m(c,this),A={fromAttrs:v(w,this),toAttrs:w,duration:h,easing:f,repeat:a,callback:g,pauseCallback:s,resumeCallback:l,delay:b,startTime:n.getTime(),id:(0,r.EL)(),onFrame:o,pathFormatted:!1};i.length>0?i=y(i,A):n.addAnimator(this),i.push(A),this.set("animations",i),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,r.S6)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,r.S6)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),i=this.get("_pause").pauseTime;return(0,r.S6)(n,(function(t){t.startTime=t.startTime+(e-i),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,i=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],u=s.get("name");if(u){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&(0,a.UY)(s,n))return"break";(0,r.kJ)(u)?(0,r.S6)(u,(function(t){i.emitDelegateEvent(s,t,e)})):l.emitDelegateEvent(s,u,e)}},l=this,u=0;u<o.length;u++){var c=s(u);if("break"===c)break}},e.prototype.emitDelegateEvent=function(t,e,n){var i=this.getEvents(),r=e+f+n.type;(i[r]||i[d])&&(n.name=r,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(r,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),i=u(n,[["t",t,e]]);return this.setMatrix(i),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,i=this.attr("y")||0;return this.translate(t-n,e-i),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),i=u(n,[["s",t,e||t]]);return this.setMatrix(i),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=u(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,i=e.y,r=this.getMatrix(),o=u(r,[["t",-n,-i],["r",t],["t",n,i]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var i=this.getMatrix(),r=u(i,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(r),this},e}(l.Z);e["Z"]=x},1841:function(t,e,n){"use strict";var i=n(655),r=n(7153),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),i=0;i<n.length;i++){var r=n[i];e.add(r.clone())}return e},e}(r.Z);e["Z"]=o},5032:function(t,e,n){"use strict";var i=n(655),r=n(9881),o=n(1482),a=function(t){function e(e){return t.call(this,e)||this}return(0,i.ZT)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,i=t.minY,r=t.maxX,a=t.maxY;if(e){var s=(0,o.rG)(e,[t.minX,t.minY]),l=(0,o.rG)(e,[t.maxX,t.minY]),u=(0,o.rG)(e,[t.minX,t.maxY]),c=(0,o.rG)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],u[0],c[0]),r=Math.max(s[0],l[0],u[0],c[0]),i=Math.min(s[1],l[1],u[1],c[1]),a=Math.max(s[1],l[1],u[1],c[1])}var h=this.attrs;if(h.shadowColor){var p=h.shadowBlur,f=void 0===p?0:p,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.shadowOffsetY,m=void 0===v?0:v,y=n-f+g,x=r+f+g,b=i-f+m,w=a+f+m;n=Math.min(n,y),r=Math.max(r,x),i=Math.min(i,b),a=Math.max(a,w)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:a,width:r-n,height:a-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),i=this.get("endArrowShape"),r=[t,e,1];r=this.invertFromMatrix(r);var o=r[0],a=r[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(i&&i.isHit(o,a))return!0}return!1},e}(r.Z);e["Z"]=a},6556:function(t,e,n){"use strict";n.d(e,{b:function(){return o},W:function(){return r}});var i=new Map;function r(t,e){i.set(t,e)}function o(t){return i.get(t)}function a(t){var e=t.attr(),n=e.x,i=e.y,r=e.width,o=e.height;return{x:n,y:i,width:r,height:o}}function s(t){var e=t.attr(),n=e.x,i=e.y,r=e.r;return{x:n-r,y:i-r,width:2*r,height:2*r}}var l=n(2793);function u(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function c(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape"),r=null,o=null;return n&&(r=n.getCanvasBBox(),e=u(e,r)),i&&(o=i.getCanvasBBox(),e=u(e,o)),e}function h(t){for(var e=t.attr(),n=e.points,i=[],r=[],o=0;o<n.length;o++){var a=n[o];i.push(a[0]),r.push(a[1])}var s=l.Zr.getBBoxByArray(i,r),u=s.x,h=s.y,p=s.width,f=s.height,d={minX:u,minY:h,maxX:u+p,maxY:h+f};return d=c(t,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}}function p(t){for(var e=t.attr(),n=e.points,i=[],r=[],o=0;o<n.length;o++){var a=n[o];i.push(a[0]),r.push(a[1])}return l.Zr.getBBoxByArray(i,r)}var f=n(8723);function d(t){var e=t.attr(),n=e.x,i=e.y,r=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=(0,f.$O)(e));var l,u=(0,f.mY)(r,s);if(u){var c=e.textAlign,h=e.textBaseline,p=(0,f.FE)(r,o,a),d={x:n,y:i-p};c&&("end"===c||"right"===c?d.x-=u:"center"===c&&(d.x-=u/2)),h&&("top"===h?d.y+=p:"middle"===h&&(d.y+=p/2)),l={x:d.x,y:d.y,width:u,height:p}}else l={x:n,y:i,width:0,height:0};return l}var g=n(9499),v=n(5098);function m(t,e){for(var n=[],i=[],r=[],o=0;o<t.length;o++){var a=t[o],s=a.currentPoint,u=a.params,c=a.prePoint,h=void 0;switch(a.command){case"Q":h=l.lD.box(c[0],c[1],u[1],u[2],u[3],u[4]);break;case"C":h=l.Ll.box(c[0],c[1],u[1],u[2],u[3],u[4],u[5],u[6]);break;case"A":var p=a.arcParams;h=l.wN.box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(s[0]),i.push(s[1]);break}h&&(a.box=h,n.push(h.x,h.x+h.width),i.push(h.y,h.y+h.height)),e&&("L"===a.command||"M"===a.command)&&a.prePoint&&a.nextPoint&&r.push(a)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),i=i.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var f=(0,v.VV)(n),d=(0,v.VV)(i),g=(0,v.Fp)(n),m=(0,v.Fp)(i);if(0===r.length)return{x:f,y:d,width:g-f,height:m-d};for(o=0;o<r.length;o++){a=r[o],s=a.currentPoint;var x=void 0;s[0]===f?(x=y(a,e),f-=x.xExtra):s[0]===g&&(x=y(a,e),g+=x.xExtra),s[1]===d?(x=y(a,e),d-=x.yExtra):s[1]===m&&(x=y(a,e),m+=x.yExtra)}return{x:f,y:d,width:g-f,height:m-d}}function y(t,e){var n=t.prePoint,i=t.currentPoint,r=t.nextPoint,o=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),a=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),l=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!l||0===Math.sin(l)||(0,v.vQ)(l,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),c=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));u=u>Math.PI/2?Math.PI-u:u,c=c>Math.PI/2?Math.PI-c:c;var h={xExtra:Math.cos(l/2-u)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(c-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0};return h}function x(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,o=t.get("segments")||(0,g.zx)(n),a=m(o,r),s=a.x,l=a.y,u=a.width,h=a.height,p={minX:s,minY:l,maxX:s+u,maxY:l+h};return p=c(t,p),{x:p.minX,y:p.minY,width:p.maxX-p.minX,height:p.maxY-p.minY}}function b(t){var e=t.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=Math.min(n,r),s=Math.max(n,r),l=Math.min(i,o),u=Math.max(i,o),h={minX:a,maxX:s,minY:l,maxY:u};return h=c(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}function w(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;return{x:n-r,y:i-o,width:2*r,height:2*o}}r("rect",a),r("image",a),r("circle",s),r("marker",s),r("polyline",h),r("polygon",p),r("text",d),r("path",x),r("line",b),r("ellipse",w)},9473:function(t,e){"use strict";var n=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e["Z"]=n},8190:function(t,e,n){"use strict";n.r(e),n.d(e,{Event:function(){return l.Z},Base:function(){return u.Z},AbstractCanvas:function(){return c.Z},AbstractGroup:function(){return h.Z},AbstractShape:function(){return p.Z},PathUtil:function(){return i},getBBoxMethod:function(){return f.b},registerBBox:function(){return f.W},getTextHeight:function(){return d.FE},assembleFont:function(){return d.$O},isAllowCapture:function(){return g.pP},multiplyVec2:function(){return v.rG},invert:function(){return v.U_},getOffScreenContext:function(){return m.L},version:function(){return y}});var i=n(7575),r=n(52),o={};for(var a in r)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","version"].indexOf(a)<0&&(o[a]=function(t){return r[t]}.bind(0,a));n.d(e,o);var s=n(5294);o={};for(var a in s)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","version"].indexOf(a)<0&&(o[a]=function(t){return s[t]}.bind(0,a));n.d(e,o);var l=n(9473),u=n(2667),c=n(1862),h=n(1841),p=n(5032),f=n(6556),d=n(8723),g=n(7341),v=n(1482),m=n(7052),y="0.5.9"},5294:function(){},52:function(){},1482:function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],p=e[0],f=e[1],d=e[2],g=e[3],v=e[4],m=e[5],y=e[6],x=e[7],b=e[8];return n[0]=p*i+f*a+d*u,n[1]=p*r+f*s+d*c,n[2]=p*o+f*l+d*h,n[3]=g*i+v*a+m*u,n[4]=g*r+v*s+m*c,n[5]=g*o+v*l+m*h,n[6]=y*i+x*a+b*u,n[7]=y*r+x*s+b*c,n[8]=y*o+x*l+b*h,n}function r(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}function o(t){var e=[],n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=c*a-s*u,p=-c*o+s*l,f=u*o-a*l,d=n*h+i*p+r*f;return d?(d=1/d,e[0]=h*d,e[1]=(-c*i+r*u)*d,e[2]=(s*i-r*a)*d,e[3]=p*d,e[4]=(c*n-r*l)*d,e[5]=(-s*n+r*o)*d,e[6]=f*d,e[7]=(-u*n+i*l)*d,e[8]=(a*n-i*o)*d,e):null}n.d(e,{xq:function(){return i},rG:function(){return r},U_:function(){return o}})},7052:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var i=null;function r(){if(!i){var t=document.createElement("canvas");t.width=1,t.height=1,i=t.getContext("2d")}return i}},7575:function(t,e,n){"use strict";n.r(e),n.d(e,{catmullRomToBezier:function(){return l},fillPath:function(){return P},fillPathByDiff:function(){return z},formatPath:function(){return N},intersection:function(){return T},parsePathArray:function(){return v},parsePathString:function(){return s},pathToAbsolute:function(){return c},pathToCurve:function(){return d},rectPath:function(){return A}});var i=n(5098),r="\t\n\v\f\r \u2028\u2029",o=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),s=function(t){if(!t)return null;if((0,i.kJ)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(i,r,o){var s=[],l=r.toLowerCase();if(o.replace(a,(function(t,e){e&&s.push(+e)})),"m"===l&&s.length>2&&(n.push([r].concat(s.splice(0,2))),l="l",r="m"===r?"l":"L"),"o"===l&&1===s.length&&n.push([r,s[0]]),"r"===l)n.push([r].concat(s));else while(s.length>=e[l])if(n.push([r].concat(s.splice(0,e[l]))),!e[l])break;return t})),n},l=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?o[3]={x:+t[0],y:+t[1]}:r-2===i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},u=function(t,e,n,i,r){var o=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var a=Math.PI/180,s=t+n*Math.cos(-i*a),l=t+n*Math.cos(-r*a),u=e+n*Math.sin(-i*a),c=e+n*Math.sin(-r*a);o=[["M",s,u],["A",n,n,0,+(r-i>180),0,l,c]]}else o=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return o},c=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,i=[],r=0,o=0,a=0,c=0,h=0;"M"===t[0][0]&&(r=+t[0][1],o=+t[0][2],a=r,c=o,h++,i[0]=["M",r,o]);for(var p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),f=void 0,d=void 0,g=h,v=t.length;g<v;g++){if(i.push(f=[]),d=t[g],e=d[0],e!==e.toUpperCase())switch(f[0]=e.toUpperCase(),f[0]){case"A":f[1]=d[1],f[2]=d[2],f[3]=d[3],f[4]=d[4],f[5]=d[5],f[6]=+d[6]+r,f[7]=+d[7]+o;break;case"V":f[1]=+d[1]+o;break;case"H":f[1]=+d[1]+r;break;case"R":n=[r,o].concat(d.slice(1));for(var m=2,y=n.length;m<y;m++)n[m]=+n[m]+r,n[++m]=+n[m]+o;i.pop(),i=i.concat(l(n,p));break;case"O":i.pop(),n=u(r,o,d[1],d[2]),n.push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(u(r,o,d[1],d[2],d[3])),f=["U"].concat(i[i.length-1].slice(-2));break;case"M":a=+d[1]+r,c=+d[2]+o;break;default:for(m=1,y=d.length;m<y;m++)f[m]=+d[m]+(m%2?r:o)}else if("R"===e)n=[r,o].concat(d.slice(1)),i.pop(),i=i.concat(l(n,p)),f=["R"].concat(d.slice(-2));else if("O"===e)i.pop(),n=u(r,o,d[1],d[2]),n.push(n[0]),i=i.concat(n);else if("U"===e)i.pop(),i=i.concat(u(r,o,d[1],d[2],d[3])),f=["U"].concat(i[i.length-1].slice(-2));else for(var x=0,b=d.length;x<b;x++)f[x]=d[x];if(e=e.toUpperCase(),"O"!==e)switch(f[0]){case"Z":r=+a,o=+c;break;case"H":r=f[1];break;case"V":o=f[1];break;case"M":a=f[f.length-2],c=f[f.length-1];break;default:r=f[f.length-2],o=f[f.length-1]}}return i},h=function(t,e,n,i){return[t,e,n,i,n,i]},p=function(t,e,n,i,r,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*i,a*r+s*n,a*o+s*i,r,o]},f=function(t,e,n,i,r,o,a,s,l,u){n===i&&(n+=1);var c,h,p,d,g,v=120*Math.PI/180,m=Math.PI/180*(+r||0),y=[],x=function(t,e,n){var i=t*Math.cos(n)-e*Math.sin(n),r=t*Math.sin(n)+e*Math.cos(n);return{x:i,y:r}};if(u)h=u[0],p=u[1],d=u[2],g=u[3];else{c=x(t,e,-m),t=c.x,e=c.y,c=x(s,l,-m),s=c.x,l=c.y,t===s&&e===l&&(s+=1,l+=1);var b=(t-s)/2,w=(e-l)/2,A=b*b/(n*n)+w*w/(i*i);A>1&&(A=Math.sqrt(A),n*=A,i*=A);var C=n*n,S=i*i,M=(o===a?-1:1)*Math.sqrt(Math.abs((C*S-C*w*w-S*b*b)/(C*w*w+S*b*b)));d=M*n*w/i+(t+s)/2,g=M*-i*b/n+(e+l)/2,h=Math.asin(((e-g)/i).toFixed(9)),p=Math.asin(((l-g)/i).toFixed(9)),h=t<d?Math.PI-h:h,p=s<d?Math.PI-p:p,h<0&&(h=2*Math.PI+h),p<0&&(p=2*Math.PI+p),a&&h>p&&(h-=2*Math.PI),!a&&p>h&&(p-=2*Math.PI)}var k=p-h;if(Math.abs(k)>v){var E=p,F=s,T=l;p=h+v*(a&&p>h?1:-1),s=d+n*Math.cos(p),l=g+i*Math.sin(p),y=f(s,l,n,i,r,0,a,F,T,[p,E,d,g])}k=p-h;var I=Math.cos(h),B=Math.sin(h),D=Math.cos(p),P=Math.sin(p),L=Math.tan(k/4),O=4/3*n*L,R=4/3*i*L,z=[t,e],_=[t+O*B,e-R*I],U=[s+O*P,l-R*D],N=[s,l];if(_[0]=2*z[0]-_[0],_[1]=2*z[1]-_[1],u)return[_,U,N].concat(y);y=[_,U,N].concat(y).join().split(",");for(var V=[],Y=0,H=y.length;Y<H;Y++)V[Y]=Y%2?x(y[Y-1],y[Y],m).y:x(y[Y],y[Y+1],m).x;return V},d=function(t,e){var n,i=c(t),r=e&&c(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],u="",d="",g=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(f.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(p(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(p(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y));break;default:break}return t},v=function(t,e){if(t[e].length>7){t[e].shift();var o=t[e];while(o.length)s[e]="A",r&&(l[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},m=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var y=0;y<n;y++){i[y]&&(u=i[y][0]),"C"!==u&&(s[y]=u,y&&(d=s[y-1])),i[y]=g(i[y],o,d),"A"!==s[y]&&"C"===u&&(s[y]="C"),v(i,y),r&&(r[y]&&(u=r[y][0]),"C"!==u&&(l[y]=u,y&&(d=l[y-1])),r[y]=g(r[y],a,d),"A"!==l[y]&&"C"===u&&(l[y]="C"),v(r,y)),m(i,r,o,a,y),m(r,i,a,o,y);var x=i[y],b=r&&r[y],w=x.length,A=r&&b.length;o.x=x[w-2],o.y=x[w-1],o.bx=parseFloat(x[w-4])||o.x,o.by=parseFloat(x[w-3])||o.y,a.bx=r&&(parseFloat(b[A-4])||a.x),a.by=r&&(parseFloat(b[A-3])||a.y),a.x=r&&b[A-2],a.y=r&&b[A-1]}return r?[i,r]:i},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},m=function(t,e,n,i,r){var o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n},y=function(t,e,n,i,r,o,a,s,l){null===l&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<c;d++){var g=u*h[d]+u,v=m(g,t,n,r,a),y=m(g,e,i,o,s),x=v*v+y*y;f+=p[d]*Math.sqrt(x)}return u*f},x=function(t,e,n,i,r,o,a,s){for(var l,u,c,h,p=[],f=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*r,l=-3*t+9*n-9*r+3*a,c=3*n-3*t):(u=6*e-12*i+6*o,l=-3*e+9*i-9*o+3*s,c=3*i-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;h=-c/u,h>0&&h<1&&p.push(h)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var m=(-u+v)/(2*l);m>0&&m<1&&p.push(m);var y=(-u-v)/(2*l);y>0&&y<1&&p.push(y)}}var x,b=p.length,w=b;while(b--)h=p[b],x=1-h,f[0][b]=x*x*x*t+3*x*x*h*n+3*x*h*h*r+h*h*h*a,f[1][b]=x*x*x*e+3*x*x*h*i+3*x*h*h*o+h*h*h*s;return f[0][w]=t,f[1][w]=e,f[0][w+1]=a,f[1][w+1]=s,f[0].length=f[1].length=w+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},b=function(t,e,n,i,r,o,a,s){if(!(Math.max(t,n)<Math.min(r,a)||Math.min(t,n)>Math.max(r,a)||Math.max(e,i)<Math.min(o,s)||Math.min(e,i)>Math.max(o,s))){var l=(t*i-e*n)*(r-a)-(t-n)*(r*s-o*a),u=(t*i-e*n)*(o-s)-(e-i)*(r*s-o*a),c=(t-n)*(o-s)-(e-i)*(r-a);if(c){var h=l/c,p=u/c,f=+h.toFixed(2),d=+p.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(r,a).toFixed(2)||f>+Math.max(r,a).toFixed(2)||d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:h,y:p}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},A=function(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=v,o},C=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:A(t,e,n,i),vb:[t,e,n,i].join(" ")}},S=function(t,e){return t=C(t),e=C(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},M=function(t,e,n,r,o,a,s,l){(0,i.kJ)(t)||(t=[t,e,n,r,o,a,s,l]);var u=x.apply(null,t);return C(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},k=function(t,e,n,i,r,o,a,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),p=l*l,f=p*l,d=c*t+3*h*l*n+3*u*l*l*r+f*a,g=c*e+3*h*l*i+3*u*l*l*o+f*s,v=t+2*l*(n-t)+p*(r-2*n+t),m=e+2*l*(i-e)+p*(o-2*i+e),y=n+2*l*(r-n)+p*(a-2*r+n),x=i+2*l*(o-i)+p*(s-2*o+i),b=u*t+l*n,w=u*e+l*i,A=u*r+l*a,C=u*o+l*s,S=90-180*Math.atan2(v-y,m-x)/Math.PI;return{x:d,y:g,m:{x:v,y:m},n:{x:y,y:x},start:{x:b,y:w},end:{x:A,y:C},alpha:S}},E=function(t,e,n){var i=M(t),r=M(e);if(!S(i,r))return n?0:[];for(var o=y.apply(0,t),a=y.apply(0,e),s=~~(o/8),l=~~(a/8),u=[],c=[],h={},p=n?0:[],f=0;f<s+1;f++){var d=k.apply(0,t.concat(f/s));u.push({x:d.x,y:d.y,t:f/s})}for(f=0;f<l+1;f++){d=k.apply(0,e.concat(f/l));c.push({x:d.x,y:d.y,t:f/l})}for(f=0;f<s;f++)for(var g=0;g<l;g++){var v=u[f],m=u[f+1],x=c[g],w=c[g+1],A=Math.abs(m.x-v.x)<.001?"y":"x",C=Math.abs(w.x-x.x)<.001?"y":"x",E=b(v.x,v.y,m.x,m.y,x.x,x.y,w.x,w.y);if(E){if(h[E.x.toFixed(4)]===E.y.toFixed(4))continue;h[E.x.toFixed(4)]=E.y.toFixed(4);var F=v.t+Math.abs((E[A]-v[A])/(m[A]-v[A]))*(m.t-v.t),T=x.t+Math.abs((E[C]-x[C])/(w[C]-x[C]))*(w.t-x.t);F>=0&&F<=1&&T>=0&&T<=1&&(n?p+=1:p.push({x:E.x,y:E.y,t1:F,t2:T}))}}return p},F=function(t,e,n){var i,r,o,a,s,l,u,c,h,p;t=d(t),e=d(e);for(var f=n?0:[],g=0,v=t.length;g<v;g++){var m=t[g];if("M"===m[0])i=s=m[1],r=l=m[2];else{"C"===m[0]?(h=[i,r].concat(m.slice(1)),i=h[6],r=h[7]):(h=[i,r,i,r,s,l,s,l],i=s,r=l);for(var y=0,x=e.length;y<x;y++){var b=e[y];if("M"===b[0])o=u=b[1],a=c=b[2];else{"C"===b[0]?(p=[o,a].concat(b.slice(1)),o=p[6],a=p[7]):(p=[o,a,o,a,u,c,u,c],o=u,a=c);var w=E(h,p,n);if(n)f+=w;else{for(var A=0,C=w.length;A<C;A++)w[A].segment1=g,w[A].segment2=y,w[A].bez1=h,w[A].bez2=p;f=f.concat(w)}}}}}return f},T=function(t,e){return F(t,e)};function I(t,e){var n=[],i=[];function r(t,e){if(1===t.length)n.push(t[0]),i.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&i.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];r(o,e)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function B(t,e,n){var i=[[t[1],t[2]]];n=n||2;var r=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,a=1/n,s=0;s<n-1;s++){var l=a/(1-a*s),u=I(o,l);r.push(u.left),o=u.right}r.push(o);var c=r.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return c}var D=function(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(B(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var o=0;o<=n-1;o++)i.push(r)}return i},P=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<i-n;a++)t.push(t[0]);return t}for(a=0;a<i;a++){var s=Math.floor(r*a);o[s]=(o[s]||0)+1}var l=o.reduce((function(e,i,r){return r===n?e.concat(t[n]):e.concat(D(t[r],t[r+1],i))}),[]);return l.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||l.push("Z"),l},L=function(t,e){if(t.length!==e.length)return!1;var n=!0;return(0,i.S6)(t,(function(t,i){if(t!==e[i])return n=!1,!1})),n};function O(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}var R=function(t,e){var n,i,r=t.length,o=e.length,a=0;if(0===r||0===o)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=o;u++)s[0][u]={min:u};for(l=1;l<=r;l++){n=t[l-1];for(u=1;u<=o;u++){i=e[u-1],a=L(n,i)?0:1;var c=s[l-1][u].min+1,h=s[l][u-1].min+1,p=s[l-1][u-1].min+a;s[l][u]=O(c,h,p)}}return s},z=function(t,e){var n=R(t,e),i=t.length,r=e.length,o=[],a=1,s=1;if(n[i][r].min!==i){for(var l=1;l<=i;l++){var u=n[l][l].min;s=l;for(var c=a;c<=r;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}i=t.length;var h=r-i;if(i<r)for(l=0;l<h;l++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]),i+=1;return t};function _(t,e,n){for(var i,r=[].concat(t),o=1/(n+1),a=U(e)[0],s=1;s<=n;s++)o*=s,i=Math.floor(t.length*o),0===i?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function U(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var N=function(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=U(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=_(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=_(n,t[i-1],2)}t[i]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=_(n,t[i-1],1)}t[i]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[i]=e[i]}return t}},8723:function(t,e,n){"use strict";n.d(e,{FE:function(){return o},mY:function(){return s},$O:function(){return l}});var i=n(7341),r=n(7052);function o(t,e,n){var r=1;if((0,i.HD)(t)&&(r=t.split("\n").length),r>1){var o=a(e,n);return e*r+o*(r-1)}return e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=(0,r.L)(),o=0;if((0,i.kK)(t)||""===t)return o;if(n.save(),n.font=e,(0,i.HD)(t)&&t.includes("\n")){var a=t.split("\n");(0,i.S6)(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o}function l(t){var e=t.fontSize,n=t.fontFamily,i=t.fontWeight,r=t.fontStyle,o=t.fontVariant;return[r,o,i,e+"px",n].join(" ").trim()}},7341:function(t,e,n){"use strict";n.d(e,{As:function(){return r},jU:function(){return o},kK:function(){return i.UM},mf:function(){return i.mf},HD:function(){return i.HD},Kn:function(){return i.Kn},CD:function(){return i.CD},S6:function(){return i.S6},jC:function(){return i.jC},UY:function(){return a},pP:function(){return s}});var i=n(5098);function r(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var o="undefined"!==typeof window&&"undefined"!==typeof window.document;function a(t,e){if(t.isCanvas())return!0;var n=e.getParent(),i=!1;while(n){if(n===t){i=!0;break}n=n.getParent()}return i}function s(t){return t.cfg.visible&&t.cfg.capture}},2793:function(t,e,n){"use strict";n.d(e,{wN:function(){return U},Ll:function(){return E},x1:function(){return p},aH:function(){return G},lD:function(){return w},Zr:function(){return i}});var i={};function r(t){return Math.min.apply(null,t)}function o(t){return Math.max.apply(null,t)}function a(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function s(t,e){return Math.abs(t-e)<.001}function l(t,e){var n=r(t),i=r(e),a=o(t),s=o(e);return{x:n,y:i,width:a-n,height:s-i}}function u(t,e,n,i){return{minX:r([t,n]),maxX:o([t,n]),minY:r([e,i]),maxY:o([e,i])}}function c(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(i),n.d(i,{distance:function(){return a},getBBoxByArray:function(){return l},getBBoxRange:function(){return u},isNumberEqual:function(){return s},piMod:function(){return c}});var h=n(1437),p={box:function(t,e,n,i){return l([t,n],[e,i])},length:function(t,e,n,i){return a(t,e,n,i)},pointAt:function(t,e,n,i,r){return{x:(1-r)*t+r*n,y:(1-r)*e+r*i}},pointDistance:function(t,e,n,i,r,o){var s=(n-t)*(r-t)+(i-e)*(o-e);if(s<0)return a(t,e,r,o);var l=(n-t)*(n-t)+(i-e)*(i-e);return s>l?a(n,i,r,o):this.pointToLine(t,e,n,i,r,o)},pointToLine:function(t,e,n,i,r,o){var a=[n-t,i-e];if(h.I6(a,[0,0]))return Math.sqrt((r-t)*(r-t)+(o-e)*(o-e));var s=[-a[1],a[0]];h.Fv(s,s);var l=[r-t,o-e];return Math.abs(h.AK(l,s))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}},f=1e-4;function d(t,e,n,i,r,o){var s,l=1/0,u=[n,i],c=20;o&&o>200&&(c=o/10);for(var h=1/c,p=h/10,d=0;d<=c;d++){var g=d*h,v=[r.apply(null,t.concat([g])),r.apply(null,e.concat([g]))],m=a(u[0],u[1],v[0],v[1]);m<l&&(s=g,l=m)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var y=t.length;return{x:t[y-1],y:e[y-1]}}l=1/0;for(d=0;d<32;d++){if(p<f)break;var x=s-p,b=s+p;v=[r.apply(null,t.concat([x])),r.apply(null,e.concat([x]))],m=a(u[0],u[1],v[0],v[1]);if(x>=0&&m<l)s=x,l=m;else{var w=[r.apply(null,t.concat([b])),r.apply(null,e.concat([b]))],A=a(u[0],u[1],w[0],w[1]);b<=1&&A<l?(s=b,l=A):p*=.5}}return{x:r.apply(null,t.concat([s])),y:r.apply(null,e.concat([s]))}}function g(t,e){for(var n=0,i=t.length,r=0;r<i;r++){var o=t[r],s=e[r],l=t[(r+1)%i],u=e[(r+1)%i];n+=a(o,s,l,u)}return n/2}function v(t,e,n,i){var r=1-i;return r*r*t+2*i*r*e+i*i*n}function m(t,e,n){var i=t+n-2*e;if(s(i,0))return[.5];var r=(t-e)/i;return r<=1&&r>=0?[r]:[]}function y(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function x(t,e,n,i,r,o,a){var s=v(t,n,r,a),l=v(e,i,o,a),u=p.pointAt(t,e,n,i,a),c=p.pointAt(n,i,r,o,a);return[[t,e,u.x,u.y,s,l],[s,l,c.x,c.y,r,o]]}function b(t,e,n,i,r,o,s){if(0===s)return(a(t,e,n,i)+a(n,i,r,o)+a(t,e,r,o))/2;var l=x(t,e,n,i,r,o,.5),u=l[0],c=l[1];return u.push(s-1),c.push(s-1),b.apply(null,u)+b.apply(null,c)}var w={box:function(t,e,n,i,r,o){var a=m(t,n,r)[0],s=m(e,i,o)[0],u=[t,r],c=[e,o];return void 0!==a&&u.push(v(t,n,r,a)),void 0!==s&&c.push(v(e,i,o,s)),l(u,c)},length:function(t,e,n,i,r,o){return b(t,e,n,i,r,o,3)},nearestPoint:function(t,e,n,i,r,o,a,s){return d([t,n,r],[e,i,o],a,s,v)},pointDistance:function(t,e,n,i,r,o,s,l){var u=this.nearestPoint(t,e,n,i,r,o,s,l);return a(u.x,u.y,s,l)},interpolationAt:v,pointAt:function(t,e,n,i,r,o,a){return{x:v(t,n,r,a),y:v(e,i,o,a)}},divide:function(t,e,n,i,r,o,a){return x(t,e,n,i,r,o,a)},tangentAngle:function(t,e,n,i,r,o,a){var s=y(t,n,r,a),l=y(e,i,o,a),u=Math.atan2(l,s);return c(u)}};function A(t,e,n,i,r){var o=1-r;return o*o*o*t+3*e*r*o*o+3*n*r*r*o+i*r*r*r}function C(t,e,n,i,r){var o=1-r;return 3*(o*o*(e-t)+2*o*r*(n-e)+r*r*(i-n))}function S(t,e,n,i){var r,o,a,l=-3*t+9*e-9*n+3*i,u=6*t-12*e+6*n,c=3*e-3*t,h=[];if(s(l,0))s(u,0)||(r=-c/u,r>=0&&r<=1&&h.push(r));else{var p=u*u-4*l*c;s(p,0)?h.push(-u/(2*l)):p>0&&(a=Math.sqrt(p),r=(-u+a)/(2*l),o=(-u-a)/(2*l),r>=0&&r<=1&&h.push(r),o>=0&&o<=1&&h.push(o))}return h}function M(t,e,n,i,r,o,a,s,l){var u=A(t,n,r,a,l),c=A(e,i,o,s,l),h=p.pointAt(t,e,n,i,l),f=p.pointAt(n,i,r,o,l),d=p.pointAt(r,o,a,s,l),g=p.pointAt(h.x,h.y,f.x,f.y,l),v=p.pointAt(f.x,f.y,d.x,d.y,l);return[[t,e,h.x,h.y,g.x,g.y,u,c],[u,c,v.x,v.y,d.x,d.y,a,s]]}function k(t,e,n,i,r,o,a,s,l){if(0===l)return g([t,n,r,a],[e,i,o,s]);var u=M(t,e,n,i,r,o,a,s,.5),c=u[0],h=u[1];return c.push(l-1),h.push(l-1),k.apply(null,c)+k.apply(null,h)}var E={extrema:S,box:function(t,e,n,i,r,o,a,s){for(var u=[t,a],c=[e,s],h=S(t,n,r,a),p=S(e,i,o,s),f=0;f<h.length;f++)u.push(A(t,n,r,a,h[f]));for(f=0;f<p.length;f++)c.push(A(e,i,o,s,p[f]));return l(u,c)},length:function(t,e,n,i,r,o,a,s){return k(t,e,n,i,r,o,a,s,3)},nearestPoint:function(t,e,n,i,r,o,a,s,l,u,c){return d([t,n,r,a],[e,i,o,s],l,u,A,c)},pointDistance:function(t,e,n,i,r,o,s,l,u,c,h){var p=this.nearestPoint(t,e,n,i,r,o,s,l,u,c,h);return a(p.x,p.y,u,c)},interpolationAt:A,pointAt:function(t,e,n,i,r,o,a,s,l){return{x:A(t,n,r,a,l),y:A(e,i,o,s,l)}},divide:function(t,e,n,i,r,o,a,s,l){return M(t,e,n,i,r,o,a,s,l)},tangentAngle:function(t,e,n,i,r,o,a,s,l){var u=C(t,n,r,a,l),h=C(e,i,o,s,l);return c(Math.atan2(h,u))}};function F(t,e){var n=Math.abs(t);return e>0?n:-1*n}var T={box:function(t,e,n,i){return{x:t-n,y:e-i,width:2*n,height:2*i}},length:function(t,e,n,i){return Math.PI*(3*(n+i)-Math.sqrt((3*n+i)*(n+3*i)))},nearestPoint:function(t,e,n,i,r,o){var a=n,s=i;if(0===a||0===s)return{x:t,y:e};for(var l,u,c=r-t,h=o-e,p=Math.abs(c),f=Math.abs(h),d=a*a,g=s*s,v=Math.PI/4,m=0;m<4;m++){l=a*Math.cos(v),u=s*Math.sin(v);var y=(d-g)*Math.pow(Math.cos(v),3)/a,x=(g-d)*Math.pow(Math.sin(v),3)/s,b=l-y,w=u-x,A=p-y,C=f-x,S=Math.hypot(w,b),M=Math.hypot(C,A),k=S*Math.asin((b*C-w*A)/(S*M)),E=k/Math.sqrt(d+g-l*l-u*u);v+=E,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+F(l,c),y:e+F(u,h)}},pointDistance:function(t,e,n,i,r,o){var s=this.nearestPoint(t,e,n,i,r,o);return a(s.x,s.y,r,o)},pointAt:function(t,e,n,i,r){var o=2*Math.PI*r;return{x:t+n*Math.cos(o),y:e+i*Math.sin(o)}},tangentAngle:function(t,e,n,i,r){var o=2*Math.PI*r,a=Math.atan2(i*Math.cos(o),-n*Math.sin(o));return c(a)}};function I(t,e,n,i,r,o,a,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}function B(t,e,n,i,r,o,a,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}function D(t,e,n){return Math.atan(-e/t*Math.tan(n))}function P(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function L(t,e,n,i,r,o){return n*Math.cos(r)*Math.cos(o)-i*Math.sin(r)*Math.sin(o)+t}function O(t,e,n,i,r,o){return n*Math.sin(r)*Math.cos(o)+i*Math.cos(r)*Math.sin(o)+e}function R(t,e,n,i){var r=Math.atan2(i*t,n*e);return(r+2*Math.PI)%(2*Math.PI)}function z(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function _(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}var U={box:function(t,e,n,i,r,o,a){for(var s=D(n,i,r),l=1/0,u=-1/0,c=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var p=s+h;o<a?o<p&&p<a&&c.push(p):a<p&&p<o&&c.push(p)}for(h=0;h<c.length;h++){var f=L(t,e,n,i,r,c[h]);f<l&&(l=f),f>u&&(u=f)}var d=P(n,i,r),g=1/0,v=-1/0,m=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var y=d+h;o<a?o<y&&y<a&&m.push(y):a<y&&y<o&&m.push(y)}for(h=0;h<m.length;h++){var x=O(t,e,n,i,r,m[h]);x<g&&(g=x),x>v&&(v=x)}return{x:l,y:g,width:u-l,height:v-g}},length:function(t,e,n,i,r,o,a){},nearestPoint:function(t,e,n,i,r,o,a,s,l){var u=_(s-t,l-e,-r),c=u[0],h=u[1],p=T.nearestPoint(0,0,n,i,c,h),f=R(n,i,p.x,p.y);f<o?p=z(n,i,o):f>a&&(p=z(n,i,a));var d=_(p.x,p.y,r);return{x:d[0]+t,y:d[1]+e}},pointDistance:function(t,e,n,i,r,o,s,l,u){var c=this.nearestPoint(t,e,n,i,l,u);return a(c.x,c.y,l,u)},pointAt:function(t,e,n,i,r,o,a,s){var l=(a-o)*s+o;return{x:L(t,e,n,i,r,l),y:O(t,e,n,i,r,l)}},tangentAngle:function(t,e,n,i,r,o,a,s){var l=(a-o)*s+o,u=I(t,e,n,i,r,o,a,l),h=B(t,e,n,i,r,o,a,l);return c(Math.atan2(h,u))}};function N(t){for(var e=0,n=[],i=0;i<t.length-1;i++){var r=t[i],o=t[i+1],s=a(r[0],r[1],o[0],o[1]),l={from:r,to:o,length:s};n.push(l),e+=s}return{segments:n,totalLength:e}}function V(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var i=t[n],r=t[n+1];e+=a(i[0],i[1],r[0],r[1])}return e}function Y(t,e){if(e>1||e<0||t.length<2)return null;var n=N(t),i=n.segments,r=n.totalLength;if(0===r)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s<i.length;s++){var l=i[s],u=l.from,c=l.to,h=l.length/r;if(e>=o&&e<=o+h){var f=(e-o)/h;a=p.pointAt(u[0],u[1],c[0],c[1],f);break}o+=h}return a}function H(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=N(t),i=n.segments,r=n.totalLength,o=0,a=0,s=0;s<i.length;s++){var l=i[s],u=l.from,c=l.to,h=l.length/r;if(e>=o&&e<=o+h){a=Math.atan2(c[1]-u[1],c[0]-u[0]);break}o+=h}return a}function X(t,e,n){for(var i=1/0,r=0;r<t.length-1;r++){var o=t[r],a=t[r+1],s=p.pointDistance(o[0],o[1],a[0],a[1],e,n);s<i&&(i=s)}return i}var G={box:function(t){for(var e=[],n=[],i=0;i<t.length;i++){var r=t[i];e.push(r[0]),n.push(r[1])}return l(e,n)},length:function(t){return V(t)},pointAt:function(t,e){return Y(t,e)},pointDistance:function(t,e,n){return X(t,e,n)},tangentAngle:function(t,e){return H(t,e)}}},1506:function(t,e,n){"use strict";n.d(e,{m$:function(){return o},zu:function(){return a},lh:function(){return s},vs:function(){return u},Dg:function(){return h}});var i=n(5600),r=n(1437);function o(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.vc(r,n),i.Jp(t,r,e)}function a(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.Us(r,n),i.Jp(t,r,e)}function s(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.xJ(r,n),i.Jp(t,r,e)}function l(t,e,n){return i.Jp(t,n,e)}function u(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],i=0,r=e.length;i<r;i++){var u=e[i];switch(u[0]){case"t":o(n,n,[u[1],u[2]]);break;case"s":s(n,n,[u[1],u[2]]);break;case"r":a(n,n,u[1]);break;case"m":l(n,n,u[1]);break;default:break}}return n}function c(t,e){return t[0]*e[1]-e[0]*t[1]}function h(t,e,n){var i=r.EU(t,e),o=c(t,e)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i}},9499:function(t,e,n){"use strict";n.d(e,{e9:function(){return h},Wq:function(){return R},tr:function(){return g},wb:function(){return y},zx:function(){return M}});var i=n(5098),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;function a(t){var e=t||[];return(0,i.kJ)(e)?e:(0,i.HD)(e)?(e=e.match(r),(0,i.S6)(e,(function(t,n){if(t=t.match(o),t[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}(0,i.S6)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var s=a,l=n(1437);function u(t,e,n,i){var r,o,a,s,u,c,h,p=[],f=!!i;if(f){a=i[0],s=i[1];for(var d=0,g=t.length;d<g;d+=1){var v=t[d];a=l.VV([0,0],a,v),s=l.Fp([0,0],s,v)}}d=0;for(var m=t.length;d<m;d+=1){v=t[d];if(0!==d||n)if(d!==m-1||n){var y=[d?d-1:m-1,d-1][n?0:1];r=t[y],o=t[n?(d+1)%m:d+1];var x=[0,0];x=l.lu(x,o,r),x=l.bA(x,x,e);var b=l.TE(v,r),w=l.TE(v,o),A=b+w;0!==A&&(b/=A,w/=A);var C=l.bA([0,0],x,-b),S=l.bA([0,0],x,w);c=l.IH([0,0],v,C),u=l.IH([0,0],v,S),u=l.VV([0,0],u,l.Fp([0,0],o,v)),u=l.Fp([0,0],u,l.VV([0,0],o,v)),C=l.lu([0,0],u,v),C=l.bA([0,0],C,-b/w),c=l.IH([0,0],v,C),c=l.VV([0,0],c,l.Fp([0,0],r,v)),c=l.Fp([0,0],c,l.VV([0,0],r,v)),S=l.lu([0,0],v,c),S=l.bA([0,0],S,w/b),u=l.IH([0,0],v,S),f&&(c=l.Fp([0,0],c,a),c=l.VV([0,0],c,s),u=l.Fp([0,0],u,a),u=l.VV([0,0],u,s)),p.push(h),p.push(c),h=u}else c=v,p.push(h),p.push(c);else h=v}return n&&p.push(p.shift()),p}function c(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,l,c,h=u(r,.4,i,n),p=r.length,f=[];for(o=0;o<p-1;o+=1)s=h[2*o],l=h[2*o+1],c=r[o+1],f.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]]);return i&&(s=h[p],l=h[p+1],c=r[0],f.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]])),f}var h=c;var p="\t\n\v\f\r \u2028\u2029",f=new RegExp("([a-z])["+p+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+p+"]*,?["+p+"]*)+)","ig"),d=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+p+"]*,?["+p+"]*","ig");function g(t){if(!t)return null;if((0,i.kJ)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(f,(function(t,i,r){var o=[],a=i.toLowerCase();if(r.replace(d,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([i].concat(o.splice(0,2))),a="l",i="m"===i?"l":"L"),"o"===a&&1===o.length&&n.push([i,o[0]]),"r"===a)n.push([i].concat(o));else while(o.length>=e[a])if(n.push([i].concat(o.splice(0,e[a]))),!e[a])break;return""})),n}var v=/[a-z]/;function m(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function y(t){var e=g(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,i=0;i<e.length;i++){var r=e[i][0];if(v.test(r)||["V","H","T","S"].indexOf(r)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,l=0,u=0,c=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(a=+h[1],s=+h[2],l=a,u=s,c++,o[0]=["M",a,s]);i=c;for(var p=e.length;i<p;i++){var f=e[i],d=o[i-1],y=[],x=(r=f[0],r.toUpperCase());if(r!==x)switch(y[0]=x,x){case"A":y[1]=f[1],y[2]=f[2],y[3]=f[3],y[4]=f[4],y[5]=f[5],y[6]=+f[6]+a,y[7]=+f[7]+s;break;case"V":y[1]=+f[1]+s;break;case"H":y[1]=+f[1]+a;break;case"M":l=+f[1]+a,u=+f[2]+s,y[1]=l,y[2]=u;break;default:for(var b=1,w=f.length;b<w;b++)y[b]=+f[b]+(b%2?a:s)}else y=e[i];switch(x){case"Z":a=+l,s=+u;break;case"H":a=y[1],y=["L",a,s];break;case"V":s=y[1],y=["L",a,s];break;case"T":a=y[1],s=y[2];var A=m([d[1],d[2]],[d[3],d[4]]);y=["Q",A[0],A[1],a,s];break;case"S":a=y[y.length-2],s=y[y.length-1];var C=d.length,S=m([d[C-4],d[C-3]],[d[C-2],d[C-1]]);y=["C",S[0],S[1],y[1],y[2],a,s];break;case"M":l=y[y.length-2],u=y[y.length-1];break;default:a=y[y.length-2],s=y[y.length-1]}o.push(y)}return o}Math.PI;function x(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function b(t,e){return x(t)*x(e)?(t[0]*e[0]+t[1]*e[1])/(x(t)*x(e)):1}function w(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(b(t,e))}function A(t,e){return t[0]===e[0]&&t[1]===e[1]}function C(t,e){var n=e[1],r=e[2],o=(0,i.wQ)((0,i.c$)(e[3]),2*Math.PI),a=e[4],s=e[5],l=t[0],u=t[1],c=e[6],h=e[7],p=Math.cos(o)*(l-c)/2+Math.sin(o)*(u-h)/2,f=-1*Math.sin(o)*(l-c)/2+Math.cos(o)*(u-h)/2,d=p*p/(n*n)+f*f/(r*r);d>1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var g=n*n*(f*f)+r*r*(p*p),v=g?Math.sqrt((n*n*(r*r)-g)/g):1;a===s&&(v*=-1),isNaN(v)&&(v=0);var m=r?v*n*f/r:0,y=n?v*-r*p/n:0,x=(l+c)/2+Math.cos(o)*m-Math.sin(o)*y,C=(u+h)/2+Math.sin(o)*m+Math.cos(o)*y,S=[(p-m)/n,(f-y)/r],M=[(-1*p-m)/n,(-1*f-y)/r],k=w([1,0],S),E=w(S,M);return b(S,M)<=-1&&(E=Math.PI),b(S,M)>=1&&(E=0),0===s&&E>0&&(E-=2*Math.PI),1===s&&E<0&&(E+=2*Math.PI),{cx:x,cy:C,rx:A(t,[c,h])?0:n,ry:A(t,[c,h])?0:r,startAngle:k,endAngle:k+E,xRotation:o,arcFlag:a,sweepFlag:s}}function S(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function M(t){t=s(t);for(var e=[],n=null,i=null,r=null,o=0,a=t.length,l=0;l<a;l++){var u=t[l];i=t[l+1];var c=u[0],h={command:c,prePoint:n,params:u,startTangent:null,endTangent:null};switch(c){case"M":r=[u[1],u[2]],o=l;break;case"A":var p=C(n,u);h["arcParams"]=p;break;default:break}if("Z"===c)n=r,i=t[o+1];else{var f=u.length;n=[u[f-2],u[f-1]]}i&&"Z"===i[0]&&(i=t[o],e[o]&&(e[o].prePoint=n)),h["currentPoint"]=n,e[o]&&A(n,e[o].currentPoint)&&(e[o].prePoint=h.prePoint);var d=i?[i[i.length-2],i[i.length-1]]:null;h["nextPoint"]=d;var g=h.prePoint;if(["L","H","V"].includes(c))h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===c){var v=[u[1],u[2]];h.startTangent=[g[0]-v[0],g[1]-v[1]],h.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===c){var m=e[l-1];v=S(m.currentPoint,g);"Q"===m.command?(h.command="Q",h.startTangent=[g[0]-v[0],g[1]-v[1]],h.endTangent=[n[0]-v[0],n[1]-v[1]]):(h.command="TL",h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===c){var y=[u[1],u[2]],x=[u[3],u[4]];h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-x[0],n[1]-x[1]],0===h.startTangent[0]&&0===h.startTangent[1]&&(h.startTangent=[y[0]-x[0],y[1]-x[1]]),0===h.endTangent[0]&&0===h.endTangent[1]&&(h.endTangent=[x[0]-y[0],x[1]-y[1]])}else if("S"===c){m=e[l-1],y=S(m.currentPoint,g),x=[u[1],u[2]];"C"===m.command?(h.command="C",h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-x[0],n[1]-x[1]]):(h.command="SQ",h.startTangent=[g[0]-x[0],g[1]-x[1]],h.endTangent=[n[0]-x[0],n[1]-x[1]])}else if("A"===c){var b=.001,w=h["arcParams"]||{},M=w.cx,k=void 0===M?0:M,E=w.cy,F=void 0===E?0:E,T=w.rx,I=void 0===T?0:T,B=w.ry,D=void 0===B?0:B,P=w.sweepFlag,L=void 0===P?0:P,O=w.startAngle,R=void 0===O?0:O,z=w.endAngle,_=void 0===z?0:z;0===L&&(b*=-1);var U=I*Math.cos(R-b)+k,N=D*Math.sin(R-b)+F;h.startTangent=[U-r[0],N-r[1]];var V=I*Math.cos(R+_+b)+k,Y=D*Math.sin(R+_-b)+F;h.endTangent=[g[0]-V,g[1]-Y]}e.push(h)}return e}var k=1e-6;function E(t){return Math.abs(t)<k?0:t<0?-1:1}function F(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function T(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=t[o],s=t[(o+1)%r];if(F(a,s,[e,n]))return!0;E(a[1]-n)>0!==E(s[1]-n)>0&&E(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}var I=function(t,e,n){return t>=e&&t<=n};function B(t,e,n,i){var r=.001,o={x:n.x-t.x,y:n.y-t.y},a={x:e.x-t.x,y:e.y-t.y},s={x:i.x-n.x,y:i.y-n.y},l=a.x*s.y-a.y*s.x,u=l*l,c=a.x*a.x+a.y*a.y,h=s.x*s.x+s.y*s.y,p=null;if(u>r*c*h){var f=(o.x*s.y-o.y*s.x)/l,d=(o.x*a.y-o.y*a.x)/l;I(f,0,1)&&I(d,0,1)&&(p={x:t.x+f*a.x,y:t.y+f*a.y})}return p}function D(t){for(var e=[],n=t.length,i=0;i<n-1;i++){var r=t[i],o=t[i+1];e.push({from:{x:r[0],y:r[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function P(t,e){var n=!1;return(0,i.S6)(t,(function(t){if(B(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function L(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function O(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function R(t,e){if(t.length<2||e.length<2)return!1;var n=L(t),r=L(e);if(!O(n,r))return!1;var o=!1;if((0,i.S6)(e,(function(e){if(T(t,e[0],e[1]))return o=!0,!1})),o)return!0;if((0,i.S6)(t,(function(t){if(T(e,t[0],t[1]))return o=!0,!1})),o)return!0;var a=D(t),s=D(e),l=!1;return(0,i.S6)(s,(function(t){if(P(a,t))return l=!0,!1})),l}},5098:function(t,e,n){"use strict";n.d(e,{Ct:function(){return Ne},f0:function(){return Ce},uZ:function(){return pt},VS:function(){return ee},d9:function(){return ie},FX:function(){return a},Ds:function(){return oe},b$:function(){return ce},e5:function(){return c},S6:function(){return b},yW:function(){return it},hX:function(){return l},sE:function(){return I},cx:function(){return D},Wx:function(){return L},ri:function(){return dt},xH:function(){return R},U5:function(){return kt},U2:function(){return Se},Lo:function(){return _e},rx:function(){return N},ru:function(){return ct},vM:function(){return lt},Ms:function(){return ut},wH:function(){return Ft},YM:function(){return tt},q9:function(){return a},cq:function(){return pe},kJ:function(){return m},jn:function(){return Yt},J_:function(){return Xt},kK:function(){return $t},xb:function(){return ge},Xy:function(){return me},mf:function(){return d},BD:function(){return S},UM:function(){return v},Ft:function(){return Wt},hj:function(){return vt},vQ:function(){return yt},Kn:function(){return y},PO:function(){return F},HD:function(){return Z},P9:function(){return f},o8:function(){return Jt},XP:function(){return A},Z$:function(){return et},vl:function(){return Pt},UI:function(){return xe},Q8:function(){return we},Fp:function(){return z},UT:function(){return xt},HP:function(){return ae},VV:function(){return _},F:function(){return bt},CD:function(){return Ce},wQ:function(){return At},ZT:function(){return Pe},CE:function(){return Fe},ei:function(){return Ee},u4:function(){return W},Od:function(){return Q},U7:function(){return te},t8:function(){return Me},dp:function(){return Le},G:function(){return ot},MR:function(){return J},ng:function(){return Ot},P2:function(){return Te},qo:function(){return Ie},c$:function(){return Mt},BB:function(){return Bt},jj:function(){return K},EL:function(){return De},jC:function(){return zt},VO:function(){return It},I:function(){return $}});var i=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},r=i,o=function(t,e){return!!r(t)&&t.indexOf(e)>-1},a=o,s=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n},l=s,u=function(t,e){return void 0===e&&(e=[]),l(t,(function(t){return!a(e,t)}))},c=u,h={}.toString,p=function(t,e){return h.call(t)==="[object "+e+"]"},f=p,d=function(t){return f(t,"Function")},g=function(t){return null===t||void 0===t},v=g,m=function(t){return Array.isArray?Array.isArray(t):f(t,"Array")},y=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function x(t,e){var n;if(t)if(m(t)){for(var i=0,r=t.length;i<r;i++)if(n=e(t[i],i),!1===n)break}else if(y(t))for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),!1===n))break}var b=x,w=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return b(t,(function(n,i){d(t)&&"prototype"===i||e.push(i)})),e},A=w;function C(t,e){var n=A(e),i=n.length;if(v(t))return!i;for(var r=0;r<i;r+=1){var o=n[r];if(e[o]!==t[o]||!(o in t))return!1}return!0}var S=C,M=function(t){return"object"===typeof t&&null!==t},k=M,E=function(t){if(!k(t)||!f(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},F=E;function T(t,e){if(!m(t))return null;var n;if(d(e)&&(n=e),F(e)&&(n=function(t){return S(t,e)}),n)for(var i=0;i<t.length;i+=1)if(n(t[i]))return t[i];return null}var I=T;function B(t,e,n){void 0===n&&(n=0);for(var i=n;i<t.length;i++)if(e(t[i],i))return i;return-1}var D=B,P=function(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i],o=r[e];if(!v(o)){n=m(o)?o[0]:o;break}}return n},L=P,O=function(t){if(!m(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},R=O,z=function(t){if(m(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},_=function(t){if(m(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},U=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(m(t[0])){for(var n=[],i=0;i<t.length;i++)n=n.concat(t[i]);e=n}var r=z(e),o=_(e);return{min:o,max:r}},N=U,V=Array.prototype,Y=(V.splice,V.indexOf,Array.prototype.splice),H=function(t,e){if(!r(t))return[];var n=t?e.length:0,i=n-1;while(n--){var o=void 0,a=e[n];n!==i&&a===o||(o=a,Y.call(t,a,1))}return t},X=H,G=function(t,e,n){if(!m(t)&&!F(t))return t;var i=n;return b(t,(function(t,n){i=e(i,t,n)})),i},W=G,j=function(t,e){var n=[];if(!r(t))return n;var i=-1,o=[],a=t.length;while(++i<a){var s=t[i];e(s,i,t)&&(n.push(s),o.push(i))}return X(t,o),n},Q=j,Z=function(t){return f(t,"String")};function q(t,e){var n;if(d(e))n=function(t,n){return e(t)-e(n)};else{var i=[];Z(e)?i.push(e):m(e)&&(i=e),n=function(t,e){for(var n=0;n<i.length;n+=1){var r=i[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}var J=q;function K(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var i=0,r=t.length;i<r;i++){var o=t[i];e.has(o)||(n.push(o),e.set(o,!0))}return n}var $=function(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],a=o[e];if(!v(a)){m(a)||(a=[a]);for(var s=0;s<a.length;s++){var l=a[s];i[l]||(n.push(l),i[l]=!0)}}}return n};function tt(t){if(r(t))return t[0]}function et(t){if(r(t)){var e=t;return e[e.length-1]}}var nt=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},it=nt,rt=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},ot=rt,at=Object.prototype.hasOwnProperty;function st(t,e){if(!e||!m(t))return{};for(var n,i={},r=d(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=r(a),at.call(i,n)?i[n].push(a):i[n]=[a]}return i}var lt=st;function ut(t,e){if(!e)return{0:t};if(!d(e)){var n=m(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}return lt(t,e)}var ct=function(t,e){if(!e)return[t];var n=ut(t,e),i=[];for(var r in n)i.push(n[r]);return i};var ht=function(t,e,n){return t<e?e:t>n?n:t},pt=ht,ft=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))},dt=ft,gt=function(t){return f(t,"Number")},vt=gt,mt=(Number.isInteger&&Number.isInteger,1e-5);function yt(t,e,n){return void 0===n&&(n=mt),Math.abs(t-e)<n}var xt=function(t,e){if(m(t)){for(var n,i=-1/0,r=0;r<t.length;r++){var o=t[r],a=d(e)?e(o):o[e];a>i&&(n=o,i=a)}return n}},bt=function(t,e){if(m(t)){for(var n,i=1/0,r=0;r<t.length;r++){var o=t[r],a=d(e)?e(o):o[e];a<i&&(n=o,i=a)}return n}},wt=function(t,e){return(t%e+e)%e},At=wt,Ct=(Math.PI,parseInt,Math.PI/180),St=function(t){return Ct*t},Mt=St,kt=b,Et=function(t,e){return t.hasOwnProperty(e)},Ft=Et,Tt=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return b(t,(function(n,i){d(t)&&"prototype"===i||e.push(n)})),e},It=Tt,Bt=function(t){return v(t)?"":t.toString()},Dt=function(t){return Bt(t).toLowerCase()},Pt=Dt;function Lt(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}var Ot=Lt,Rt=function(t){var e=Bt(t);return e.charAt(0).toUpperCase()+e.substring(1)},zt=Rt,_t={}.toString,Ut=function(t){return _t.call(t).replace(/^\[object /,"").replace(/]$/,"")},Nt=Ut,Vt=function(t){return f(t,"Boolean")},Yt=Vt,Ht=function(t){return f(t,"Date")},Xt=Ht;var Gt=function(t){return null===t},Wt=Gt,jt=Object.prototype,Qt=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||jt;return t===n},Zt=Qt,qt=function(t){return void 0===t},Jt=qt,Kt=function(t){return t instanceof Element||t instanceof HTMLDocument},$t=Kt;function te(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}function ee(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}var ne=function(t){if("object"!==typeof t||null===t)return t;var e;if(m(t)){e=[];for(var n=0,i=t.length;n<i;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=ne(t[n]):e[n]=t[n]}else for(var r in e={},t)"object"===typeof t[r]&&null!=t[r]?e[r]=ne(t[r]):e[r]=t[r];return e},ie=ne;function re(t,e,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||t.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}}var oe=re,ae=function(t,e){if(!d(t))throw new TypeError("Expected a function");var n=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=e?e.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,i);return a.set(o,s),s};return n.cache=new Map,n},se=5;function le(t,e,n,i){for(var r in n=n||0,i=i||se,e)if(e.hasOwnProperty(r)){var o=e[r];null!==o&&F(o)?(F(t[r])||(t[r]={}),n<i?le(t[r],o,n+1,i):t[r]=e[r]):m(o)?(t[r]=[],t[r]=t[r].concat(o)):void 0!==o&&(t[r]=o)}}var ue=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)le(t,e[i]);return t},ce=ue,he=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i},pe=he,fe=Object.prototype.hasOwnProperty;function de(t){if(v(t))return!0;if(r(t))return!t.length;var e=Nt(t);if("Map"===e||"Set"===e)return!t.size;if(Zt(t))return!Object.keys(t).length;for(var n in t)if(fe.call(t,n))return!1;return!0}var ge=de,ve=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Z(t)||Z(e))return!1;if(r(t)||r(e)){if(t.length!==e.length)return!1;for(var n=!0,i=0;i<t.length;i++)if(n=ve(t[i],e[i]),!n)break;return n}if(k(t)||k(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(n=!0,i=0;i<o.length;i++)if(n=ve(t[o[i]],e[o[i]]),!n)break;return n}return!1},me=ve,ye=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n},xe=ye,be=function(t){return t},we=function(t,e){void 0===e&&(e=be);var n={};return y(t)&&!v(t)&&Object.keys(t).forEach((function(i){n[i]=e(t[i],i)})),n};function Ae(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Ce(t,e,n,i){return e&&Ae(t,e),n&&Ae(t,n),i&&Ae(t,i),t}var Se=function(t,e,n){var i=0,r=Z(e)?e.split("."):e;while(t&&i<r.length)t=t[r[i++]];return void 0===t||i<r.length?n:t},Me=function(t,e,n){var i=t,r=Z(e)?e.split("."):e;return r.forEach((function(t,e){e<r.length-1?(y(i[t])||(i[t]=vt(r[e+1])?[]:{}),i=i[t]):i[t]=n})),t},ke=Object.prototype.hasOwnProperty,Ee=function(t,e){if(null===t||!F(t))return{};var n={};return b(e,(function(e){ke.call(t,e)&&(n[e]=t[e])})),n},Fe=function(t,e){return W(t,(function(t,n,i){return e.includes(i)||(t[i]=n),t}),{})},Te=function(t,e,n){var i,r,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),i=null,a=t.apply(r,o),i||(r=o=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return r=this,o=arguments,c<=0||c>e?(i&&(clearTimeout(i),i=null),s=u,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(i),s=0,i=r=o=null},u},Ie=function(t){return r(t)?Array.prototype.slice.call(t):[]},Be={},De=function(t){return t=t||"g",Be[t]?Be[t]+=1:Be[t]=1,t+Be[t]},Pe=function(){};function Le(t){return v(t)?0:r(t)?t.length:Object.keys(t).length}var Oe,Re=n(655),ze=ae((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Oe||(Oe=document.createElement("canvas").getContext("2d")),Oe.font=[o,a,r,n+"px",i].join(" "),Oe.measureText(Z(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,Re.pr)([t],It(e)).join("")})),_e=function(t,e,n,i){void 0===i&&(i="...");var r,o,a=16,s=ze(i,n),l=Z(t)?t:Bt(t),u=e,c=[];if(ze(t,n)<=e)return t;while(1){if(r=l.substr(0,a),o=ze(r,n),o+s>u&&o>u)break;if(c.push(r),u-=o,l=l.substr(a),!l)return c.join("")}while(1){if(r=l.substr(0,1),o=ze(r,n),o+s>u)break;if(c.push(r),u-=o,l=l.substr(1),!l)return c.join("")}return""+c.join("")+i},Ue=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),Ne=Ue},2836:function(t,e,n){"use strict";n.r(e);var i,r,o=n(1001),a={},s=(0,o.Z)(a,i,r,!1,null,null,null);e["default"]=s.exports},4300:function(t,e,n){"use strict";n.r(e);var i,r,o=n(1001),a={},s=(0,o.Z)(a,i,r,!1,null,null,null);e["default"]=s.exports},5246:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return ht}});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex"},[n("dep-list",{ref:"list",staticStyle:{flex:"1 1 auto","min-width":"240px"},on:{onClick:t.onClick},scopedSlots:t._u([{key:"operation",fn:function(e){return[t.tool.checkAuth(t.$route.name,"addDep")?n("addDep",{staticClass:"inline-16",attrs:{data:e.data},on:{onSuccess:t.onSuccess}}):t._e()]}}])}),n("div",{staticStyle:{flex:"0 1 1"}},[n("div",{staticClass:"container normal-panel normal-margin"},[t.tool.checkAuth(t.$route.name,"editDep")?n("editDep",{staticClass:"inline-16",attrs:{data:t.depInfo.data},on:{onSuccess:t.onSuccess}}):t._e(),t.tool.checkAuth(t.$route.name,"delDep")?n("delDep",{staticClass:"inline-16",attrs:{data:t.depInfo.data},on:{onSuccess:t.onSuccess}}):t._e(),t.tool.checkAuth(t.$route.name,"editDep")?n("startDep",{staticClass:"inline-16",attrs:{data:t.depInfo.data},on:{onSuccess:t.onSuccess}}):t._e()],1),n("dep-info-card",{staticClass:"normal-margin",attrs:{depInfo:t.depInfo}}),n("staffList",{ref:"staff",attrs:{depInfo:t.depInfo},scopedSlots:t._u([{key:"detail",fn:function(e){return[n("div",{staticClass:"inline-16"},[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(n){return t.$router.push({path:"/depManage/staffDetail",query:{id:e.data.hrid}})}}},[t._v("详 情")])],1)]}},{key:"del",fn:function(e){return[t.tool.checkAuth(t.$route.name,"delStaff")?n("del-staff",{attrs:{slot:"del",data:e.data},on:{onSuccess:t.onStaffSuccess},slot:"del"}):t._e()]}},{key:"edit",fn:function(e){return[t.tool.checkAuth(t.$route.name,"editStaff")?n("edit-staff",{attrs:{slot:"edit",data:e.data},on:{onSuccess:t.onStaffSuccess},slot:"edit"}):t._e()]}}])},[t.tool.checkAuth(t.$route.name,"addStaff")?n("add-staff",{attrs:{slot:"staff",depInfo:t.depInfo},on:{onSuccess:t.onStaffSuccess},slot:"staff"}):t._e()],1)],1)],1)},r=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tree-panel"},[n("el-tree",{attrs:{data:t.deplist,"node-key":"id","default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":t.handleClick},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node,r=e.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[t._v(t._s(i.label))]),n("span",[t._t("operation",null,{data:r})],2)])}}],null,!0)})],1)},a=[],s={components:{},data(){return{deplist:[]}},methods:{async department(){const t=await this.$api.requested({classname:"webmanage.department.department",method:"querydepartment",content:{}});this.deplist=this.createMenu(t.data),this.$store.dispatch("setDeplistData",this.deplist),this.$emit("onClick",{data:this.deplist[0],parent:[]})},createMenu(t){let e=[];function n(t){var e={label:t["depname"],parentid:t["parentid"],departmentid:t["departmentid"],value:t["departmentid"],remarks:t["remarks"],isused:t["isused"],changedate:t["changedate"],changeby:t["changeby"],createdate:t["createdate"],createby:t["createby"],depno:t["depno"],children:[]};if(t.subdep&&t.subdep.length>0)for(var i=0;i<t.subdep.length;i++)e.children.push(n(t.subdep[i]));return e}return t.forEach((t=>{e.push(n(t))})),e},handleClick(t,e,n){this.$emit("onClick",e)}},mounted(){this.department()}},l=s,u=n(1001),c=(0,u.Z)(l,o,a,!1,null,"429c709f",null),h=c.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container normal-panel"},[n("div",{staticClass:"flex-align-center flex-between"},[n("p",{staticClass:"normal-title normal-margin"},[t._v("员工信息")]),t._t("staff")],2),n("el-input",{staticClass:"input-with-select normal-margin",staticStyle:{width:"270px"},attrs:{placeholder:"请输入内容",size:"small",clearable:""},model:{value:t.param.content.where.condition,callback:function(e){t.$set(t.param.content.where,"condition",e)},expression:"param.content.where.condition"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.listData(t.param.content.departmentid)}},slot:"append"})],1),n("tableLayout",{attrs:{layout:t.tablecols,data:t.list,opwidth:200,custom:!1,height:"calc(100vh - 508px)"},scopedSlots:t._u([{key:"opreation",fn:function(e){return[t._t("detail",null,{data:e.data}),t._t("edit",null,{data:e.data}),t._t("del",null,{data:e.data})]}}],null,!0)}),n("div",{staticStyle:{"margin-top":"16px","text-align":"right"}},[n("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},f=[],d={data(){return{param:{classname:"webmanage.hr.hr",method:"query_hrList",content:{nocahe:!0,pageNumber:1,pageSize:20,departmentid:null,where:{condition:""}}},tablecols:[],list:[],total:0,currentPage:0}},methods:{async listData(t){this.param.content.departmentid=t;const e=await this.$api.requested(this.param);this.list=e.data,this.total=e.total,this.currentPage=e.pageNumber},handleSizeChange(t){this.param.content.pageSize=t,this.listData()},handleCurrentChange(t){this.param.content.pageNumber=t,this.listData()}},mounted(){this.tablecols=this.tool.tabelCol(this.$route.name)["staffTable"].tablecols}},g=d,v=(0,u.Z)(g,p,f,!1,null,null,null),m=v.exports,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.depInfo.data?n("div",{staticClass:"container normal-panel"},[n("p",{staticClass:"normal-title normal-margin"},[t._v("部门信息")]),n("el-descriptions",{attrs:{column:4}},[n("el-descriptions-item",{attrs:{label:"部门名称"}},[t._v(t._s(t.depInfo.data.label?t.depInfo.data.label:"未知"))]),n("el-descriptions-item",{attrs:{label:"上级部门"}},[t._v(t._s(t.depInfo.parent.data?t.depInfo.parent.data.label:"未知"))]),n("el-descriptions-item",{attrs:{label:"创建时间"}},[t._v(t._s(t.depInfo.data.createdate?t.depInfo.data.createdate:"未知"))]),n("el-descriptions-item",{attrs:{label:"修改时间"}},[t._v(t._s(t.depInfo.data.changedate?t.depInfo.data.changedate:"未知"))]),n("el-descriptions-item",{attrs:{label:"创建人"}},[t._v(t._s(t.depInfo.data.createby?t.depInfo.data.createby:"未知"))]),n("el-descriptions-item",{attrs:{label:"修改人"}},[t._v(t._s(t.depInfo.data.changeby?t.depInfo.data.changeby:"未知"))]),n("el-descriptions-item",{attrs:{label:"状态"}},[n("span",{style:1===t.depInfo.data.isused?"color:#52C41A":"color:red"},[t._v(t._s(1===t.depInfo.data.isused?"启用":"停用"))])])],1)],1):t._e()},x=[],b={props:["depInfo"]},w=b,A=(0,u.Z)(w,y,x,!1,null,null,null),C=A.exports,S=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("i",{staticClass:"el-icon-plus",staticStyle:{"font-weight":"bold"},on:{click:function(){return t.append()}}}),n("el-dialog",{attrs:{title:"新建部门","append-to-body":"",width:"864px",visible:t.dialogDepVisible},on:{"update:visible":function(e){t.dialogDepVisible=e},close:t.onClose}},[n("el-row",{attrs:{gutter:20}},[n("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,size:"small","label-width":"100px","label-position":"left"}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门名称",prop:"depname"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门名称",autocomplete:"off"},model:{value:t.form.depname,callback:function(e){t.$set(t.form,"depname",e)},expression:"form.depname"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门编号",prop:"depno"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门编号",autocomplete:"off"},model:{value:t.form.depno,callback:function(e){t.$set(t.form,"depno",e)},expression:"form.depno"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门描述",prop:"remarks"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门描述",autocomplete:"off"},model:{value:t.form.remarks,callback:function(e){t.$set(t.form,"remarks",e)},expression:"form.remarks"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"是否启用"}},[n("el-checkbox",{attrs:{"false-label":0,"true-label":1},model:{value:t.form.isused,callback:function(e){t.$set(t.form,"isused",e)},expression:"form.isused"}},[t._v("是否启用")])],1)],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogDepVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.onSubmit}},[t._v("确 定")])],1)],1)],1)},M=[],k={props:["data"],data(){return{dialogDepVisible:!1,rules:{depname:[{required:!0,message:"请输入部门名称",trigger:"blur"}],remarks:[{required:!0,message:"请输入部门描述",trigger:"blur"}],depno:[{required:!0,message:"请输入部门编号",trigger:"blur"}]},form:{departmentid:0,depname:"",isused:1,depno:"",parentid:this.data.departmentid,remarks:"",sequence:1}}},methods:{append(){console.log(this.data),this.dialogDepVisible=!0},onSubmit(){this.$refs["form"].validate((async t=>{if(!t)return!1;const e=await this.$api.requested({classname:"webmanage.department.department",method:"insertormodify_department",content:this.form});1===e.code&&(this.dialogDepVisible=!1),this.$emit("onSuccess")}))},onClose(){this.$refs["form"].resetFields()}}},E=k,F=(0,u.Z)(E,S,M,!1,null,"5e2f6fb0",null),T=F.exports,I=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{size:"small",icon:"el-icon-delete"},on:{click:function(){return t.append()}}},[t._v("删 除")])],1)},B=[],D={props:["data"],data(){return{}},methods:{append(){this.$confirm("是否删除当前部门?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((async()=>{const t=await this.$api.requested({classname:"webmanage.department.department",method:"delete_department",content:{departmentid:this.data.departmentid}});if(0===t.code)return this.$notify({title:"失败",type:"error",message:t.data});this.$emit("onSuccess")})).catch((()=>{this.$message({type:"info",message:"已取消删除"})}))}}},P=D,L=(0,u.Z)(P,I,B,!1,null,"94191d8c",null),O=L.exports,R=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{size:"small",icon:"el-icon-edit"},on:{click:function(){return t.append()}}},[t._v("编 辑")]),n("el-dialog",{attrs:{title:"新建部门","append-to-body":"",width:"864px",visible:t.dialogDepVisible},on:{"update:visible":function(e){t.dialogDepVisible=e}}},[n("el-row",{attrs:{gutter:20}},[n("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,size:"small","label-width":"100px","label-position":"left"}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门名称",prop:"depname"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门名称",autocomplete:"off"},model:{value:t.form.depname,callback:function(e){t.$set(t.form,"depname",e)},expression:"form.depname"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门编号",prop:"depno"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门编号",autocomplete:"off"},model:{value:t.form.depno,callback:function(e){t.$set(t.form,"depno",e)},expression:"form.depno"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门描述",prop:"remarks"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门描述",autocomplete:"off"},model:{value:t.form.remarks,callback:function(e){t.$set(t.form,"remarks",e)},expression:"form.remarks"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"是否启用"}},[n("el-checkbox",{attrs:{"false-label":0,"true-label":1},model:{value:t.form.isused,callback:function(e){t.$set(t.form,"isused",e)},expression:"form.isused"}},[t._v("是否启用")])],1)],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogDepVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.onSubmit}},[t._v("确 定")])],1)],1)],1)},z=[],_={props:["data"],data(){return{dialogDepVisible:!1,rules:{depname:[{required:!0,message:"请输入部门名称",trigger:"blur"}],remarks:[{required:!0,message:"请输入部门描述",trigger:"blur"}],depno:[{required:!0,message:"请输入部门编号",trigger:"blur"}]},form:{depname:""}}},methods:{append(){this.form=Object.assign({},this.form,this.data),this.form.depname=this.form.label,this.dialogDepVisible=!0},onSubmit(){this.$refs["form"].validate((async t=>{if(!t)return!1;const e=await this.$api.requested({classname:"webmanage.department.department",method:"insertormodify_department",content:this.form});1===e.code&&(this.dialogDepVisible=!1),this.$emit("onSuccess")}))}}},U=_,N=(0,u.Z)(U,R,z,!1,null,"101d51a9",null),V=N.exports,Y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.data?n("el-button",{attrs:{size:"small",icon:1===t.data.isused?"el-icon-circle-close":"el-icon-circle-check"},on:{click:function(){return t.append()}}},[t._v(t._s(1===t.data.isused?"停 用":"启 用"))]):t._e()],1)},H=[],X={props:["data"],data(){return{form:{}}},mounted(){},methods:{append(){this.$confirm(`是否${1===this.data.isused?"停用":"启用"}当前部门?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((async()=>{this.form=Object.assign({},this.form,this.data),this.form.depname=this.form.label,1===this.form.isused?this.form.isused=0:this.form.isused=1;const t=await this.$api.requested({classname:"webmanage.department.department",method:"insertormodify_department",content:this.form});if(0===t.code)return this.$notify({title:"失败",type:"error",message:t.data});this.$emit("onSuccess")})).catch((()=>{this.$message({type:"info",message:"已取消删除"})}))}}},G=X,W=(0,u.Z)(G,Y,H,!1,null,"5585c856",null),j=W.exports,Q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:t.onShow}},[t._v("新建员工")]),n("el-dialog",{attrs:{title:"新建员工",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.onClose}},[n("el-row",{attrs:{gutter:20}},[n("el-form",{ref:"form",attrs:{model:t.form,size:"small",rules:t.rules,"label-position":"left","label-width":"100px"}},[n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"编号:",prop:"hrcode"}},[n("el-input",{attrs:{placeholder:"输入人员编号",autocomplete:"off"},model:{value:t.form.hrcode,callback:function(e){t.$set(t.form,"hrcode",e)},expression:"form.hrcode"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"性别"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:t.form.sex,callback:function(e){t.$set(t.form,"sex",e)},expression:"form.sex"}},t._l(t.sys_options,(function(t){return n("el-option",{key:t.index,attrs:{label:t.value,value:t.value}})})),1)],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"姓名:",prop:"name"}},[n("el-input",{attrs:{placeholder:"输入姓名",autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"电子邮箱:"}},[n("el-input",{attrs:{placeholder:"输入电子邮箱",autocomplete:"off"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"手机号码:",prop:"phonenumber"}},[n("el-input",{attrs:{placeholder:"输入手机号码",autocomplete:"off"},model:{value:t.form.phonenumber,callback:function(e){t.$set(t.form,"phonenumber",e)},expression:"form.phonenumber"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"身份证号:"}},[n("el-input",{attrs:{placeholder:"输入身份证号",autocomplete:"off"},model:{value:t.form.idcard,callback:function(e){t.$set(t.form,"idcard",e)},expression:"form.idcard"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"部门:"}},[n("el-input",{attrs:{readonly:"",placeholder:"请选择","suffix-icon":"el-icon-arrow-down",autocomplete:"off"},on:{focus:function(e){t.showTree=!0}},model:{value:t.form.depname,callback:function(e){t.$set(t.form,"depname",e)},expression:"form.depname"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"办公电话:"}},[n("el-input",{attrs:{placeholder:"输入办公电话",autocomplete:"off"},model:{value:t.form.officetelephone,callback:function(e){t.$set(t.form,"officetelephone",e)},expression:"form.officetelephone"}})],1)],1),t.showTree?n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"选择部门:"}},[n("div",{staticStyle:{border:"1px solid #f1f2f3"}},[n("el-tree",{attrs:{data:t.deplist,"node-key":"id","default-expand-all":"","highlight-current":"","expand-on-click-node":!1},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node,r=e.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[t._v(t._s(i.label))]),n("span",[n("el-button",{attrs:{size:"small",type:"text"},on:{click:function(e){return t.selectDep(r)}}},[t._v("选 择")])],1)])}}],null,!1,1193916280)})],1)])],1):t._e(),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"职位:"}},[n("el-input",{attrs:{placeholder:"输入职位",autocomplete:"off"},model:{value:t.form.position,callback:function(e){t.$set(t.form,"position",e)},expression:"form.position"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:24}},[n("el-form-item",[n("el-checkbox",{attrs:{"false-label":0,"true-label":1},model:{value:t.form.isleader,callback:function(e){t.$set(t.form,"isleader",e)},expression:"form.isleader"}},[t._v("是否部门负责人")])],1)],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.onSubmit}},[t._v("确 定")])],1)],1)],1)},Z=[],q=n(629),J={props:["depInfo"],computed:{...(0,q.Se)({deplist:"deplist",sys_options:"sys_options"})},data(){return{dialogFormVisible:!1,showTree:!1,rules:{hrcode:[{required:!0,message:"请输入员工编码",trigger:"blur"}],name:[{required:!0,message:"请输入员工姓名",trigger:"blur"}],phonenumber:[{required:!0,message:"请输入员工电话",trigger:"blur"}]},form:{hrid:0,hrcode:"",name:"",sex:"男",phonenumber:"",officetelephone:"",idcard:"",email:"",birthday:"",remarks:"",departmentid:"",isleader:"",position:"",reporthrid:"",userid:"0"},value:[]}},methods:{onShow(){this.dialogFormVisible=!0,this.form.depname=this.depInfo.data.label,this.form.departmentid=this.depInfo.data.departmentid,this.$store.dispatch("optiontypeselect","sex")},selectDep(t){let e={depname:t.label,departmentid:t.departmentid};this.form=Object.assign({},this.form,e),this.showTree=!this.showTree},onSubmit(){this.$refs["form"].validate((async t=>{if(!t)return!1;const e=await this.$api.requested({classname:"webmanage.hr.hr",method:"insertormodify_hr",content:this.form});if(0===e.code)return this.$notify({title:"失败",message:e.data,type:"error"});this.$notify({title:"成功",message:"添加成功",type:"success"}),this.dialogFormVisible=!1,this.$emit("onSuccess")}))},onClose(){this.$refs["form"].resetFields()}}},K=J,$=(0,u.Z)(K,Q,Z,!1,null,"5448f483",null),tt=$.exports,et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline"}},[n("el-popconfirm",{attrs:{title:"确定删除当前选中员工吗?"},on:{confirm:function(e){return t.deleteRow()}}},[n("el-button",{attrs:{slot:"reference",size:"small",type:"text"},slot:"reference"},[t._v("删 除")])],1)],1)},nt=[],it={props:["data"],methods:{deleteRow(){this.$api.requested({classname:"webmanage.hr.hr",method:"deleteHr",content:{hrid:this.data.hrid}}).then((t=>{if(0===t.code)return this.$notify({title:"失败",type:"error",message:t.data});this.$emit("onSuccess")}))}}},rt=it,ot=(0,u.Z)(rt,et,nt,!1,null,null,null),at=ot.exports,st=n(5711),lt={components:{depList:h,depInfoCard:C,staffList:m,addDep:T,delDep:O,editDep:V,addStaff:tt,delStaff:at,editStaff:st.Z,startDep:j},data(){return{depInfo:{data:null,parent:{data:{}}}}},methods:{onClick(t){this.depInfo=t,this.$refs.staff.listData(this.depInfo.data.departmentid)},onSuccess(){this.$refs.list.department()},onStaffSuccess(){this.$refs.staff.listData(this.depInfo.data.departmentid)}}},ut=lt,ct=(0,u.Z)(ut,i,r,!1,null,"2d371e58",null),ht=ct.exports},4249:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return O}});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mianStaff",{ref:"main",scopedSlots:t._u([{key:"edit",fn:function(e){return[t.tool.checkAuth(t.$route.name,"editStaff")?n("div",{staticClass:"container normal-panel normal-margin"},[n("editStaff",{attrs:{data:e.data,type:"btn"},on:{onSuccess:t.query_hrMain}})],1):t._e()]}},{key:"createuser",fn:function(e){return[t.tool.checkAuth(t.$route.name,"editStaff")?n("createUser",{attrs:{data:e.data},on:{onSuccess:t.query_hrMain}}):t._e()]}},{key:"linkact",fn:function(e){return[t.tool.checkAuth(t.$route.name,"editStaff")?n("linkAccount",{attrs:{data:e.data},on:{onSuccess:t.query_hrMain}}):t._e()]}}])},[t.tool.checkAuth(t.$route.name,"restpas")?n("restPas",{attrs:{slot:"restpas"},slot:"restpas"}):t._e()],1)},r=[],o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._t("edit",null,{data:t.mainInfo}),i("div",{staticClass:"container normal-panel normal-margin"},[i("el-descriptions",{attrs:{title:"员工信息",column:6}},[i("el-descriptions-item",{attrs:{label:"编号"}},[t._v(t._s(t.mainInfo.hrcode?t.mainInfo.hrcode:"--"))]),i("el-descriptions-item",{attrs:{label:"身份证号"}},[t._v(t._s(t.mainInfo.idcard?t.mainInfo.idcard:"--"))]),i("el-descriptions-item",{attrs:{label:"部门"}},[t._v(t._s(t.mainInfo.depname?t.mainInfo.depname:"--"))]),i("el-descriptions-item",{attrs:{label:"是否部门负责人"}},[t._v(t._s(1===t.mainInfo.isleader?"是":"否"))]),i("el-descriptions-item",{attrs:{label:"职位"}},[t._v(t._s(t.mainInfo.position?t.mainInfo.position:"--"))]),i("el-descriptions-item",{attrs:{label:"办公电话"}},[t._v(t._s(t.mainInfo.officetelephone?t.mainInfo.officetelephone:"--"))]),i("el-descriptions-item",{attrs:{label:"姓名"}},[t._v(t._s(t.mainInfo.name?t.mainInfo.name:"--"))]),i("el-descriptions-item",{attrs:{label:"电话"}},[t._v(t._s(t.mainInfo.phonenumber?t.mainInfo.phonenumber:"--"))]),i("el-descriptions-item",{attrs:{label:"性别"}},[t._v(t._s(t.mainInfo.sex?t.mainInfo.sex:"--"))]),i("el-descriptions-item",{attrs:{label:"电子邮箱"}},[t._v(t._s(t.mainInfo.email?t.mainInfo.email:"--"))]),i("el-descriptions-item",{attrs:{label:"汇报对象"}},[t._v(t._s(t.mainInfo.reporthrname?t.mainInfo.reporthrname:"--"))])],1)],1),i("div",{staticClass:"container normal-panel normal-margin"},[i("el-descriptions",{attrs:{title:"系统信息",column:4}},[i("el-descriptions-item",{attrs:{label:"创建人"}},[t._v(t._s(t.mainInfo.createby?t.mainInfo.createby:"--"))]),i("el-descriptions-item",{attrs:{label:"最后修改人"}},[t._v(t._s(t.mainInfo.changeby?t.mainInfo.changeby:"--"))]),i("el-descriptions-item",{attrs:{label:"手机号"}},[t._v(t._s(t.mainInfo.userphonenumber?t.mainInfo.userphonenumber:"--"))]),i("el-descriptions-item",{attrs:{label:"创建时间"}},[t._v(t._s(t.mainInfo.createdate?t.mainInfo.createdate:"--"))]),i("el-descriptions-item",{attrs:{label:"最后修改时间"}},[t._v(t._s(t.mainInfo.changedate?t.mainInfo.changedate:"--"))])],1)],1),i("div",{staticClass:"container normal-panel normal-margin user-panel"},[i("el-descriptions",{attrs:{column:5}},[i("div",{staticClass:"flex-align-center flex-between",attrs:{slot:"title"},slot:"title"},[i("span",[t._v("账号信息")]),i("div",{staticClass:"flex-align-center flex-between"},[t._t("createuser",null,{data:t.mainInfo}),t._t("linkact",null,{data:t.mainInfo})],2)]),i("el-descriptions-item",{attrs:{label:"头像"}},[i("img",{staticStyle:{"margin-top":"-8px"},attrs:{width:"40",src:n(8308),alt:""}})]),i("el-descriptions-item",{attrs:{label:"账号名称"}},[t._v(t._s(t.mainInfo.username?t.mainInfo.username:"--"))]),i("el-descriptions-item",{attrs:{label:"账号类型"}},[t._v(t._s(t.mainInfo.usertypename?t.mainInfo.usertypename:"--"))]),i("el-descriptions-item",{attrs:{label:"角色"}},[t._v(t._s(t.mainInfo.userrole?t.mainInfo.userrole.toString():""))]),i("el-descriptions-item",{attrs:{label:"账号密码"}},[i("div",{staticClass:"flex-align-center flex-between"},[t._v(" ******* "),t._t("restpas")],2)])],1)],1)],2)},a=[],s={props:["data"],components:{},data(){return{mainInfo:{}}},methods:{async query_hrMain(){const t=await this.$api.requested({classname:"webmanage.hr.hr",method:"query_hrMain",content:{hrid:this.$route.query.id}});this.mainInfo=t.data}},mounted(){this.query_hrMain()}},l=s,u=n(1001),c=(0,u.Z)(l,o,a,!1,null,null,null),h=c.exports,p=n(5711),f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-popconfirm",{attrs:{title:"确定删除当前选中账号吗?"},on:{confirm:function(e){return t.resetPassword()}}},[n("el-button",{staticStyle:{margin:"-4px 0 0 10px"},attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[t._v("重置")])],1)],1)},d=[],g={methods:{async resetPassword(){const t=await this.$api.requested({classname:"webmanage.users.users",method:"resetPassword",content:{userid:this.$route.query.id}});if(0===t.code)return this.$notify({title:"失败",message:t.data,type:"error"});this.$notify({title:"成功",message:"密码已重置为站点默认密码",type:"success"})}}},v=g,m=(0,u.Z)(v,f,d,!1,null,null,null),y=m.exports,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{staticStyle:{background:"#52C41A",border:"1px solid #52C41A",float:"right"},attrs:{size:"small",icon:"el-icon-link",type:"primary"},on:{click:t.onShow}},[t._v("关联账号")]),n("el-dialog",{attrs:{title:"绑定账号","append-to-body":"",visible:t.dialogTableVisible},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[n("tableLayout",{attrs:{layout:t.tablecols,data:t.sys_options},scopedSlots:t._u([{key:"opreation",fn:function(e){return[n("el-popconfirm",{staticClass:"inline-16",attrs:{title:"确定要绑定员工账号吗?"},on:{confirm:function(n){return t.bindAccount(e)}}},[n("el-button",{attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[t._v("绑定账号")])],1)]}}])})],1)],1)},b=[],w=n(629),A={props:["data"],data(){return{dialogTableVisible:!1,tablecols:[],form:{}}},computed:{...(0,w.Se)({sys_options:"sys_options"})},methods:{onShow(){this.listData(),this.dialogTableVisible=!0},listData(){this.$store.dispatch("optiontypeselect","userlistunused")},bindAccount(t){this.form=Object.assign({},this.form,this.data),this.form.userid=t.data.userid,this.onSave()},async onSave(){const t=await this.$api.requested({classname:"webmanage.hr.hr",method:"insertormodify_hr",content:this.form});if(0===t.code)return this.$notify({title:"失败",message:t.data,type:"error"});this.$notify({title:"成功",message:"绑定成功",type:"success"}),this.dialogTableVisible=!1,this.$emit("onSuccess")}},mounted(){this.tablecols=this.tool.tabelCol(this.$route.name)["unBindtACTable"].tablecols}},C=A,S=(0,u.Z)(C,x,b,!1,null,null,null),M=S.exports,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"inline-16"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.onShow}},[t._v("一键创建账号")]),n("el-dialog",{attrs:{title:"授权角色",visible:t.drawer,width:"564px"},on:{"update:visible":function(e){t.drawer=e},close:t.onClose}},[n("div",[n("el-row",{attrs:{gutter:50}},[n("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,size:"mini","label-position":"left"}},[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"授权角色","label-width":"100px",prop:"roleids"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",multiple:""},model:{value:t.form.roleids,callback:function(e){t.$set(t.form,"roleids",e)},expression:"form.roleids"}},t._l(t.options,(function(t){return n("el-option",{key:t.index,attrs:{label:t.rolename,value:t.roleid}})})),1)],1)],1)],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.drawer=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.createUser}},[t._v("确 定")])],1)])],1)},E=[],F={data(){return{drawer:!1,rules:{roleids:[{required:!0,message:"请选择授权角色",trigger:"change"}]},form:{userid:0,name:"",phonenumber:"",status:1,remarks:"",roleids:[]},options:[]}},methods:{onShow(){this.drawer=!0,this.rolelist()},async rolelist(){let t={classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"role",parameter:{}}};const e=await this.$api.requested(t);this.options=e.data},createUser(){this.$refs["form"].validate((async t=>{if(!t)return!1;const e=await this.$api.requested({classname:"webmanage.hr.hr",method:"createUser",content:{hrid:this.$route.query.id,roleids:this.form.roleids}});if(0===e.code)return this.$notify({title:"失败",message:e.data,type:"error"});this.$notify({title:"成功",message:"创建成功",type:"success"}),this.drawer=!1,this.$emit("onSuccess")}))},onClose(){this.$refs["form"].resetFields()}}},T=F,I=(0,u.Z)(T,k,E,!1,null,"daa85182",null),B=I.exports,D={components:{mianStaff:h,editStaff:p.Z,restPas:y,linkAccount:M,createUser:B},data(){return{mainInfo:{}}},methods:{query_hrMain(){this.$refs.main.query_hrMain()}},mounted(){}},P=D,L=(0,u.Z)(P,i,r,!1,null,null,null),O=L.exports},5711:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"inline-16"},["btn"===t.type?n("el-button",{attrs:{type:"",icon:"el-icon-edit",size:"small"},on:{click:t.onShow}},[t._v("编 辑")]):n("el-button",{attrs:{type:"text",size:"small"},on:{click:t.onShow}},[t._v("编 辑")]),n("el-dialog",{attrs:{title:"编辑员工",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[n("el-row",{attrs:{gutter:20}},[n("el-form",{ref:"form",attrs:{model:t.form,size:"small",rules:t.rules,"label-position":"left","label-width":"100px"}},[n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"编号:",prop:"hrcode"}},[n("el-input",{attrs:{placeholder:"输入人员编号",autocomplete:"off"},model:{value:t.form.hrcode,callback:function(e){t.$set(t.form,"hrcode",e)},expression:"form.hrcode"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"性别"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:t.form.sex,callback:function(e){t.$set(t.form,"sex",e)},expression:"form.sex"}},t._l(t.sys_options,(function(t){return n("el-option",{key:t.index,attrs:{label:t.value,value:t.value}})})),1)],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"姓名:",prop:"name"}},[n("el-input",{attrs:{placeholder:"输入姓名",autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"电子邮箱:"}},[n("el-input",{attrs:{placeholder:"输入电子邮箱",autocomplete:"off"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"手机号码:",prop:"phonenumber"}},[n("el-input",{attrs:{placeholder:"输入手机号码",autocomplete:"off"},model:{value:t.form.phonenumber,callback:function(e){t.$set(t.form,"phonenumber",e)},expression:"form.phonenumber"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"身份证号:"}},[n("el-input",{attrs:{placeholder:"输入身份证号",autocomplete:"off"},model:{value:t.form.idcard,callback:function(e){t.$set(t.form,"idcard",e)},expression:"form.idcard"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"部门:"}},[n("el-input",{attrs:{readonly:"",placeholder:"请选择","suffix-icon":"el-icon-arrow-down",autocomplete:"off"},on:{focus:function(e){t.showTree=!0}},model:{value:t.form.depname,callback:function(e){t.$set(t.form,"depname",e)},expression:"form.depname"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"办公电话:"}},[n("el-input",{attrs:{placeholder:"输入办公电话",autocomplete:"off"},model:{value:t.form.officetelephone,callback:function(e){t.$set(t.form,"officetelephone",e)},expression:"form.officetelephone"}})],1)],1),t.showTree?n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"选择部门:"}},[n("div",{staticStyle:{border:"1px solid #f1f2f3"}},[n("el-tree",{attrs:{data:t.deplist,"node-key":"id","default-expand-all":"","highlight-current":"","expand-on-click-node":!1},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node,r=e.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[t._v(t._s(i.label))]),n("span",[n("el-button",{attrs:{size:"small",type:"text"},on:{click:function(e){return t.selectDep(r)}}},[t._v("选 择")])],1)])}}],null,!1,1193916280)})],1)])],1):t._e(),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"职位:"}},[n("el-input",{attrs:{placeholder:"输入职位",autocomplete:"off"},model:{value:t.form.position,callback:function(e){t.$set(t.form,"position",e)},expression:"form.position"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:24}},[n("el-form-item",[n("el-checkbox",{attrs:{"false-label":0,"true-label":1},model:{value:t.form.isleader,callback:function(e){t.$set(t.form,"isleader",e)},expression:"form.isleader"}},[t._v("是否部门负责人")])],1)],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.onSubmit}},[t._v("确 定")])],1)],1)],1)},r=[],o=n(629),a={props:["data","type"],computed:{...(0,o.Se)({sys_options:"sys_options"})},data(){return{dialogFormVisible:!1,showTree:!1,rules:{hrcode:[{required:!0,message:"请输入员工编码",trigger:"blur"}],name:[{required:!0,message:"请输入员工姓名",trigger:"blur"}],phonenumber:[{required:!0,message:"请输入员工电话",trigger:"blur"}]},form:{hrid:0,hrcode:"",name:"",sex:0,phonenumber:"",officetelephone:"",idcard:"",email:"",birthday:"",remarks:"",departmentid:"",isleader:"",position:"",reporthrid:"",userid:"0"},value:[],deplist:[]}},methods:{async query_hrMain(){const t=await this.$api.requested({classname:"webmanage.hr.hr",method:"query_hrMain",content:{hrid:this.data.hrid}});this.form=Object.assign({},this.form,t.data[0])},async department(){const t=await this.$api.requested({classname:"webmanage.department.department",method:"querydepartment",content:{}});this.deplist=this.createMenu(t.data)},createMenu(t){let e=[];function n(t){var e={label:t["depname"],parentid:t["parentid"],departmentid:t["departmentid"],value:t["departmentid"],remarks:t["remarks"],isused:t["isused"],changedate:t["changedate"],changeby:t["changeby"],createdate:t["createdate"],createby:t["createby"],depno:t["depno"],children:[]};if(t.subdep&&t.subdep.length>0)for(var i=0;i<t.subdep.length;i++)e.children.push(n(t.subdep[i]));return e}return t.forEach((t=>{e.push(n(t))})),e},onShow(){this.query_hrMain(),this.department(),this.$store.dispatch("optiontypeselect","sex"),this.dialogFormVisible=!0},selectDep(t){let e={depname:t.label,departmentid:t.departmentid};this.form=Object.assign({},this.form,e),this.showTree=!this.showTree},onSubmit(){this.$refs["form"].validate((async t=>{if(!t)return!1;const e=await this.$api.requested({classname:"webmanage.hr.hr",method:"insertormodify_hr",content:this.form});if(0===e.code)return this.$notify({title:"失败",message:e.data,type:"error"});this.$notify({title:"成功",message:"添加成功",type:"success"}),this.dialogFormVisible=!1,this.$emit("onSuccess")}))}}},s=a,l=n(1001),u=(0,l.Z)(s,i,r,!1,null,"ce20d088",null),c=u.exports},8298:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Y}});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"container normal-panel normal-margin"},[t.tool.checkAuth(t.$route.name,"insert")?n("add",{staticStyle:{"margin-right":"10px"},attrs:{slot:"add"},on:{onSuccess:t.onSuccess},slot:"add"}):t._e()],1),n("list",{ref:"list",scopedSlots:t._u([{key:"release",fn:function(e){return[t.tool.checkAuth(t.$route.name,"update")?n("release",{attrs:{data:e.data.data},on:{onSuccess:t.onSuccess}}):t._e()]}},{key:"topping",fn:function(e){return[t.tool.checkAuth(t.$route.name,"update")?n("topping",{attrs:{data:e.data.data},on:{onSuccess:t.onSuccess}}):t._e()]}},{key:"del",fn:function(e){return[t.tool.checkAuth(t.$route.name,"delete")?n("on-del",{attrs:{data:e.data.data},on:{onSuccess:t.onSuccess}}):t._e()]}}])})],1)},r=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container normal-panel"},[n("div",{staticClass:"flex-align-center search-panel",staticStyle:{"margin-bottom":"16px"}},[n("div",{staticClass:"flex-align-center"},[n("p",[t._v("搜索:")]),n("el-input",{attrs:{size:"small",placeholder:"请输入查询内容","prefix-icon":"el-icon-search",clearable:""},on:{blur:function(e){return t.listData("search")},clear:function(e){return t.listData("search")}},model:{value:t.params.content.where.condition,callback:function(e){t.$set(t.params.content.where,"condition",e)},expression:"params.content.where.condition"}})],1)]),n("tableLayout",{attrs:{layout:t.tablecols,data:t.list,opwidth:200,custom:!0,height:t.tableHieght},scopedSlots:t._u([{key:"customcol",fn:function(e){return["status"===e.column.columnname?n("div",[1===e.column.data.isontop?n("span",{staticStyle:{color:"#FF3B30"}},[t._v("置顶")]):n("div",["发布"===e.column.data[e.column.columnname]?n("span",{staticStyle:{color:"#52C41A"}},[t._v(t._s(e.column.data[e.column.columnname]))]):n("span",[t._v(t._s(e.column.data[e.column.columnname]))])])]):n("p",[t._v(t._s(e.column.data[e.column.columnname]))])]}},{key:"opreation",fn:function(e){return[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(n){return t.onEdit(e)}}},[t._v("编 辑")]),t._t("release",null,{data:e}),t._t("topping",null,{data:e}),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(n){return t.onEdit(e)}}},[t._v("查看留言")]),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(n){return t.onEdit(e)}}},[t._v("数据统计")]),t._t("del",null,{data:e})]}}],null,!0)}),n("div",{staticStyle:{"margin-top":"16px","text-align":"right"}},[n("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.params.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},a=[],s=n(6507),l={components:{tableLayout:s.Z},data(){return{params:{classname:"webmanage.saletool.notice.notice",method:"queryNoticeList",content:{pageNumber:1,pageSize:10,where:{condition:""}}},tablecols:{},list:[],total:0,currentPage:0}},methods:{async listData(){const t=await this.$api.requested(this.params);this.list=t.data,this.total=t.total,this.currentPage=t.pageNumber},handleSizeChange(t){this.params.content.pageSize=t,this.listData()},handleCurrentChange(t){this.params.content.pageNumber=t,this.listData()}},mounted(){this.listData(),this.tablecols=this.tool.tabelCol(this.$route.name).noticeTable.tablecols}},u=l,c=n(1001),h=(0,c.Z)(u,o,a,!1,null,"5d7213a0",null),p=h.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:function(e){t.drawer=!0}}},[t._v("新建")]),n("el-dialog",{attrs:{title:"创建",visible:t.drawer,width:"40%"},on:{"update:visible":function(e){t.drawer=e}}},[n("div",[n("el-row",{attrs:{gutter:10}},[n("el-form",{attrs:{model:t.form,size:"mini","label-position":"left"}},[n("el-col",{staticClass:"normal-title",attrs:{span:24}},[t._v(" 联系人信息 ")]),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"联系人","label-width":"80px"}},[n("el-input",{attrs:{autocomplete:"off",placeholder:"输入联系人"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"联系方式","label-width":"80px"}},[n("el-input",{attrs:{autocomplete:"off",placeholder:"输入联系方式"},model:{value:t.form.phonenumber,callback:function(e){t.$set(t.form,"phonenumber",e)},expression:"form.phonenumber"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"身份证号","label-width":"80px"}},[n("el-input",{attrs:{autocomplete:"off",placeholder:"输入身份证号"},model:{value:t.form.idcard,callback:function(e){t.$set(t.form,"idcard",e)},expression:"form.idcard"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"性别","label-width":"80px"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:t.form.sex,callback:function(e){t.$set(t.form,"sex",e)},expression:"form.sex"}},[n("el-option",{attrs:{label:"女",value:1}}),n("el-option",{attrs:{label:"男",value:0}})],1)],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"生日","label-width":"80px"}},[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{align:"right",type:"date",placeholder:"选择生日","picker-options":t.pickerOptions},model:{value:t.form.birthday,callback:function(e){t.$set(t.form,"birthday",e)},expression:"form.birthday"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"邮箱","label-width":"80px"}},[n("el-input",{attrs:{autocomplete:"off",placeholder:"输入邮箱"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1)],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"备注","label-width":"80px"}},[n("el-input",{attrs:{autocomplete:"off",placeholder:"输入备注"},model:{value:t.form.remarks,callback:function(e){t.$set(t.form,"remarks",e)},expression:"form.remarks"}})],1)],1),n("el-col",{staticClass:"normal-title",attrs:{span:24}},[t._v(" 账号信息 ")]),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"创建账号","label-width":"80px"}},[n("el-input",{attrs:{autocomplete:"off",placeholder:"输入新建账号"},model:{value:t.form.accountno,callback:function(e){t.$set(t.form,"accountno",e)},expression:"form.accountno"}})],1)],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"账号密码","label-width":"80px"}},[n("el-input",{attrs:{type:"password",autocomplete:"off",placeholder:"输入账号密码"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1)],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"是否启用","label-width":"80px"}},[n("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[t._v(t._s(1===t.form.status?"启用":"停用"))])],1)],1)],1)],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"default",size:"small"},on:{click:function(e){t.drawer=!1}}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.onSubmit}},[t._v("创建账号")])],1)])],1)},d=[],g=n(8495),v=n.n(g),m={data(){return{drawer:!1,pickerOptions:{disabledDate(t){return t.getTime()>Date.now()}},form:{userid:0,name:"",sex:1,phonenumber:"",accountno:"",status:1,password:"",birthday:"",remarks:"",email:"",idcard:"",departmentid:1}}},methods:{onSubmit(){this.form.password=v()(this.form.password),this.$api.requested({classname:"webmanage.users.users",method:"insertormodify_user",content:this.form}).then((t=>{1===t.code?(this.$notify({title:"成功",message:"账号添加成功",type:"success"}),this.drawer=!1,this.$emit("onSuccess")):this.$notify({title:"失败",message:t.data,type:"error"})}))}}},y=m,x=(0,c.Z)(y,f,d,!1,null,null,null),b=x.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"inline-16"},[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.releaseNotice}},[t._v(t._s("发布"===t.data.status?"取消发布":"发布"))])],1)},A=[],C={props:["data"],data(){return{}},methods:{async releaseNotice(){const t=await this.$api.requested({classname:"webmanage.saletool.notice.notice",method:"发布"===this.data.status?"undercarriage":"release",content:{sat_noticeids:[this.data.sat_noticeid]}});console.log(t),1===t.code?(this.$notify({title:"成功",message:"发布"===this.data.status?"下架成功":"发布成功",type:"success"}),this.$emit("onSuccess")):this.$notify({title:"失败",message:t.data,type:"error"})}}},S=C,M=(0,c.Z)(S,w,A,!1,null,null,null),k=M.exports,E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"inline-16"},[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.releaseNotice}},[t._v(t._s(0===t.data.isontop?"置顶":"取消置顶"))])],1)},F=[],T={props:["data"],data(){return{}},methods:{async releaseNotice(){const t=await this.$api.requested({classname:"webmanage.saletool.notice.notice",method:0===this.data.isontop?"topping":"cancelTopping",content:{sat_noticeid:this.data.sat_noticeid}});console.log(t),1===t.code?(this.$notify({title:"成功",message:"发布"===this.data.status?"取消成功":"置顶成功",type:"success"}),this.$emit("onSuccess")):this.$notify({title:"失败",message:t.data,type:"error"})}}},I=T,B=(0,c.Z)(I,E,F,!1,null,null,null),D=B.exports,P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline",margin:"0 16px"}},[n("el-popconfirm",{attrs:{title:"确定删除当前通告吗?"},on:{confirm:function(e){return t.deleteRow()}}},[n("el-button",{attrs:{slot:"reference",size:"small",type:"text"},slot:"reference"},[t._v("删 除")])],1)],1)},L=[],O={props:["data"],methods:{deleteRow(){this.$api.requested({classname:"webmanage.saletool.notice.notice",method:"delete",content:{sat_noticeid:this.data.sat_noticeid}}).then((t=>{this.$emit("onSuccess")}))}}},R=O,z=(0,c.Z)(R,P,L,!1,null,null,null),_=z.exports,U={components:{list:p,add:b,release:k,topping:D,onDel:_},methods:{onSuccess(){this.$refs.list.listData()}}},N=U,V=(0,c.Z)(N,i,r,!1,null,"f837f39e",null),Y=V.exports},3988:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("add",{staticClass:"container normal-panel",staticStyle:{"margin-bottom":"16px"}}),n("div",{staticClass:"container normal-panel"},[n("list",{ref:"list",scopedSlots:t._u([{key:"detail",fn:function(e){return[n("div",{staticClass:"inline-16"},[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.$router.push({path:"/roleDetail",query:{id:e.data.roleid}})}}},[t._v("详 情")])],1)]}},{key:"edit",fn:function(e){return[t.tool.checkAuth(t.$route.name,"update")?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.$router.push({path:"/roleEdit",query:{id:e.data.roleid}})}}},[t._v("编 辑")]):t._e()]}}])})],1)],1)},r=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"flex-align-center search-panel",staticStyle:{"margin-bottom":"16px"}},[n("div",{staticClass:"flex-align-center"},[n("p",[t._v("搜索:")]),n("el-input",{attrs:{size:"small",placeholder:"请输入查询内容","prefix-icon":"el-icon-search",clearable:""},on:{blur:function(e){return t.listData("search")},clear:function(e){return t.listData("search")}},model:{value:t.param.content.where.condition,callback:function(e){t.$set(t.param.content.where,"condition",e)},expression:"param.content.where.condition"}})],1),n("div",{staticClass:"flex-align-center",staticStyle:{"margin-left":"30px"}},[n("p",{staticStyle:{width:"80px"}},[t._v("角色类型:")]),n("el-select",{staticStyle:{width:"120px"},attrs:{size:"small",clearable:"",placeholder:"请选择"},on:{change:function(e){return t.listData("search")}},model:{value:t.param.content.where.usertype,callback:function(e){t.$set(t.param.content.where,"usertype",e)},expression:"param.content.where.usertype"}},t._l(t.options,(function(t){return n("el-option",{key:t.index,attrs:{label:t.remarks,value:t.value}})})),1)],1)]),n("tableLayout",{attrs:{layout:t.tablecols,data:t.list,opwidth:200,custom:!0,height:t.tableHieght},scopedSlots:t._u([{key:"customcol",fn:function(e){return["status"===e.column.columnname?n("p",[n("span",{style:"ACTIVE"===e.column.data.status?"color:#52C41A":"color:#FF3B30"},[t._v(t._s("ACTIVE"===e.column.data.status?"启用":"INACTIVE"===e.column.data.status?"停用":"其他"))])]):n("p",[t._v(t._s(e.column.data[e.column.columnname]))])]}},{key:"opreation",fn:function(e){return[t._t("detail",null,{data:e.data}),t._t("edit",null,{data:e.data})]}}],null,!0)}),n("div",{staticStyle:{"margin-top":"16px","text-align":"right"}},[n("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},a=[],s={data(){return{param:{classname:"webmanage.role.role",method:"query_roleList",content:{pageNumber:1,pageSize:20,where:{condition:"",usertype:""}}},options:[],tablecols:[],list:[],total:0,currentPage:0}},methods:{async usertype(){let t={classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"usertype",parameter:{}}};const e=await this.$api.requested(t);this.options=e.data},listData(t){"search"===t&&(this.param.content.pageNumber=1),this.$api.requested(this.param).then((t=>{this.list=t.data,this.total=t.total,this.currentPage=t.pageNumber}))},handleSizeChange(t){this.param.content.pageSize=t,this.listData()},handleCurrentChange(t){this.param.content.pageNumber=t,this.listData()},rowClick(t){this.$emit("onRowClick",t)},deleteClick(t){this.$emit("deleteClick",t)}},mounted(){this.listData(),this.usertype(),this.tablecols=this.tool.tabelCol(this.$route.name).roleTable.tablecols}},l=s,u=n(1001),c=(0,u.Z)(l,o,a,!1,null,"7802fccf",null),h=c.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:function(e){return t.$router.push({path:"/roleEdit",query:{id:0}})}}},[t._v("新 建")])],1)},f=[],d={data(){return{dialogFormVisible:!1,form:{roleid:0,rolename:"",remarks:""}}},methods:{}},g=d,v=(0,u.Z)(g,p,f,!1,null,null,null),m=v.exports,y={components:{list:h,add:m},data(){return{row:{}}},methods:{},mounted(){}},x=y,b=(0,u.Z)(x,i,r,!1,null,null,null),w=b.exports},4088:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return E}});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"container normal-panel mb-16"},[n("el-button",{staticStyle:{background:"#FA8C16"},attrs:{type:"warning",size:"small",icon:"el-icon-s-claim"},on:{click:t.onSubmit}},[t._v("保 存")])],1),n("div",{staticClass:"container normal-panel mb-16"},[n("p",{staticClass:"normal-title mb-16"},[t._v("角色信息")]),n("el-form",{ref:"form",staticClass:"demo-form-inline",attrs:{inline:!0,model:t.form,rules:t.rules,size:"small","label-width":"100px","label-position":"left"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"rolename"}},[n("el-input",{attrs:{placeholder:"输入角色名称"},model:{value:t.form.rolename,callback:function(e){t.$set(t.form,"rolename",e)},expression:"form.rolename"}})],1),n("el-form-item",{attrs:{label:"角色描述",prop:"remarks"}},[n("el-input",{attrs:{placeholder:"输入角色描述"},model:{value:t.form.remarks,callback:function(e){t.$set(t.form,"remarks",e)},expression:"form.remarks"}})],1),n("el-form-item",{attrs:{label:"角色类型",prop:"usertype"}},[n("el-select",{attrs:{placeholder:"角色类型"},model:{value:t.form.usertype,callback:function(e){t.$set(t.form,"usertype",e)},expression:"form.usertype"}},t._l(t.options,(function(t){return n("el-option",{key:t.index,attrs:{label:t.remarks,value:Number(t.value)}})})),1)],1)],1)],1),n("div",{staticClass:"container normal-panel mb-16"},[n("p",{staticClass:"normal-title mb-16"},[t._v("角色授权")]),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("div",{staticClass:"mb-16"},[n("auth",{attrs:{data:{roleid:t.roleid}},on:{onSuccess:t.roleMain}})],1),n("tableLayout",{attrs:{layout:t.tablecols,data:t.roleMainInfo.apps,opwidth:200,custom:!1},on:{rowClick:t.appoptionselect}})],1),n("el-col",{attrs:{span:12}},[n("el-row",{attrs:{gutter:40}},[n("el-col",{attrs:{span:12}},[n("p",{staticClass:"title"},[t._v("功能")]),t._l(t.appoptions,(function(e){return n("div",{key:e.index,staticClass:"flex-align-center flex-between option-item"},[n("p",[t._v(t._s(e.optionname))]),n("cancelAuth",{attrs:{data:{roleid:t.roleid,systemappid:t.active_systemappid,optionid:e.optionid}},on:{onSuccess:t.roleMain}})],1)}))],2),n("el-col",{attrs:{span:12}},[n("p",{staticClass:"title"},[t._v("隐藏字段")]),t._l(t.hiddenfields,(function(e){return n("div",{key:e.index,staticClass:"flex-align-center flex-between option-item"},[n("p",[t._v(t._s(e.fieldname))]),n("cancelFields",{attrs:{data:{roleid:t.roleid,systemappid:t.active_systemappid,hiddenfieldid:e.hiddenfieldid}},on:{onSuccess:t.roleMain}})],1)}))],2)],1)],1)],1)],1)])},r=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline"}},[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-thumb"},on:{click:t.onShow}},[t._v("授 权")]),n("el-dialog",{staticClass:"auth-container",attrs:{title:"授权应用列表","append-to-body":"",visible:t.dialogTableVisible,width:"90%"},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,size:"small","highlight-current-row":"",border:"",stripe:"","header-cell-style":{background:"#f1f2f3",color:"#333"}},on:{"row-click":t.onRowClick}},[n("el-table-column",{attrs:{prop:"systemclientname",label:"端口"}}),n("el-table-column",{attrs:{prop:"systemname",label:"系统名称"}}),n("el-table-column",{attrs:{prop:"systemmodulename",label:"模块名称"}}),n("el-table-column",{attrs:{prop:"systemappname",label:"应用名称"}})],1),n("div",{staticStyle:{margin:"20px 0"}},[n("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1),n("el-col",{attrs:{span:12}},[n("div",[n("el-button-group",{staticStyle:{"margin-bottom":"10px"}},[n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus",disabled:0===t.func_selection.length},on:{click:t.insert_opt_hid_select}},[t._v("添加功能")]),n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus",disabled:0===t.field_selection.length},on:{click:t.insert_opt_hid_select}},[t._v("添加隐藏字段")])],1),n("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"功能添加",name:"first"}},[n("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.fun_list,size:"mini",stripe:"","header-cell-style":{background:"#f1f2f3",color:"#333"}},on:{"selection-change":t.onFuncSelection}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"optionname",label:"功能描述"}}),n("el-table-column",{attrs:{prop:"option",label:"名称"}})],1)],1),n("el-tab-pane",{attrs:{label:"隐藏字段添加",name:"second"}},[n("el-table",{ref:"multipleTable2",staticStyle:{width:"100%"},attrs:{data:t.hide_field_list,size:"mini","header-cell-style":{background:"#f1f2f3",color:"#333"}},on:{"selection-change":t.onFieldSelection}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"fieldname",label:"字段描述"}}),n("el-table-column",{attrs:{prop:"field",label:"字段名"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tag",{attrs:{size:"mini",type:"primary",effect:"dark"}},[t._v(t._s(e.row.field))])]}}])})],1)],1)],1)],1)])],1)],1)],1)},a=[],s={props:["data"],data(){return{dialogTableVisible:!1,activeName:"first",param:{classname:"webmanage.role.role",method:"query_appselect",content:{pageNumber:1,pageSize:10,where:{condition:"",systemname:"",systemagentname:"",systemmodulename:"",systemappname:""}}},list:[],total:0,currentPage:0,systemappid:0,fun_list:[],hide_field_list:[],func_selection:[],field_selection:[]}},methods:{onShow(){this.dialogTableVisible=!0,this.query_all_auth()},handleClick(t){this.func_selection.length>0&&this.$refs.multipleTable.clearSelection(),this.field_selection.length>0&&this.$refs.multipleTable2.clearSelection()},query_all_auth(){this.$api.requested(this.param).then((t=>{this.list=t.data,this.total=t.total,this.currentPage=t.pageNumber}))},handleSizeChange(t){this.param.content.pageSize=t,this.query_all_auth()},handleCurrentChange(t){this.param.content.pageNumber=t,this.query_all_auth()},onRowClick(t){this.systemappid=t.systemappid,this.query_function_list(t),this.query_field_list(t)},query_function_list(t){this.$api.requested({classname:"webmanage.role.role",method:"query_appoptionselect",content:{roleid:this.data.roleid,systemappid:t.systemappid}}).then((t=>{this.fun_list=t.data}))},query_field_list(t){this.$api.requested({classname:"webmanage.role.role",method:"query_apphiddenfieldselect",content:{roleid:this.data.roleid,systemappid:t.systemappid}}).then((t=>{this.hide_field_list=t.data}))},onFuncSelection(t){this.func_selection=t},onFieldSelection(t){this.field_selection=t},insert_opt_hid_select(){let t=(t,e)=>{let n=[];return t.filter((t=>{n.push(t[e])})),n};console.log(t(this.func_selection,"optionid")),this.$api.requested({classname:"webmanage.role.role",method:"add_appauth",content:{roleid:this.data.roleid,systemapps:[{systemappid:this.systemappid,optionids:this.func_selection.length>0?t(this.func_selection,"optionid"):[],hiddenfields:this.field_selection.length>0?t(this.field_selection,"hiddenfieldid"):[]}]}}).then((t=>{1===t.code?(this.$notify({title:"成功",message:"first"===this.activeName?"功能授权成功":"设置成功",type:"success"}),this.$emit("onSuccess")):this.$notify({title:"失败",message:t.data,type:"error"})}))}}},l=s,u=n(1001),c=(0,u.Z)(l,o,a,!1,null,null,null),h=c.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-popconfirm",{attrs:{title:"确定取消吗?"},on:{confirm:function(e){return t.delete_appauth("func")}}},[n("el-button",{attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[t._v("删 除")])],1)],1)},f=[],d={props:["data"],methods:{delete_appauth(){this.$api.requested({classname:"webmanage.role.role",method:"delete_appauth",content:{roleid:this.data.roleid,systemapps:[{systemappid:this.data.systemappid,optionids:[this.data.optionid],hiddenfields:[]}]}}).then((t=>{1===t.code?(this.$notify({title:"成功",message:"取消成功",type:"success"}),this.$emit("onSuccess")):this.$notify({title:"失败",message:t.data,type:"error"})}))}}},g=d,v=(0,u.Z)(g,p,f,!1,null,null,null),m=v.exports,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-popconfirm",{attrs:{title:"确定取消吗?"},on:{confirm:function(e){return t.delete_appauth()}}},[n("el-button",{attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[t._v("删 除")])],1)],1)},x=[],b={props:["data"],methods:{delete_appauth(){this.$api.requested({classname:"webmanage.role.role",method:"delete_appauth",content:{roleid:this.data.roleid,systemapps:[{systemappid:this.data.systemappid,optionids:[],hiddenfields:[this.data.hiddenfieldid]}]}}).then((t=>{1===t.code?(this.$notify({title:"成功",message:"取消成功",type:"success"}),this.$emit("onSuccess")):this.$notify({title:"失败",message:t.data,type:"error"})}))}}},w=b,A=(0,u.Z)(w,y,x,!1,null,null,null),C=A.exports,S={props:["data"],components:{auth:h,cancelAuth:m,cancelFields:C},data(){return{rules:{rolename:[{required:!0,message:"请输入角色名称",trigger:"blur"}],remarks:[{required:!0,message:"请输入角色描述",trigger:"blur"}],usertype:[{required:!0,message:"请选择角色类型",trigger:"change"}]},form:{roleid:0,rolename:"",remarks:""},roleMainInfo:{},options:[],tablecols:[],appoptions:[],hiddenfields:[],roleid:0,active_systemappid:""}},methods:{async roleMain(){const t=await this.$api.requested({classname:"webmanage.role.role",method:"query_roleMain",content:{roleid:this.roleid}});this.form={roleid:t.data[0].roleid,rolename:t.data[0].rolename,remarks:t.data[0].remarks,usertype:t.data[0].usertype},this.roleMainInfo=t.data[0],this.appoptionselect(t.data[0].apps[0])},async usertype(){let t={classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"usertype",parameter:{}}};const e=await this.$api.requested(t);this.options=e.data},async appoptionselect(t){this.active_systemappid=t.systemappid,this.appoptions=t.options,this.hiddenfields=t.hiddenfields},onSubmit(){this.$refs["form"].validate((t=>{if(!t)return!1;this.$api.requested({classname:"webmanage.role.role",method:"insertormodify_role",content:this.form}).then((t=>{1===t.code?(this.$notify({title:"成功",message:"保存成功",type:"success"}),this.$router.replace({path:"/roleEdit",query:{id:t.data[0].roleid}})):this.$notify({title:"失败",message:t.data,type:"error"})}))}))}},mounted(){this.tablecols=this.tool.tabelCol(this.$route.name).detailsAppsTable.tablecols,this.roleid=this.$route.query.id,"0"!==this.roleid&&this.roleMain(),this.usertype()},created(){!this.tool.checkAuth(this.$route.name,"update")&&this.$router.go(-1)}},M=S,k=(0,u.Z)(M,i,r,!1,null,"6dd19810",null),E=k.exports},1750:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return g}});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"container normal-panel mb-16"},[t.tool.checkAuth(t.$route.name,"update")?n("el-button",{attrs:{size:"small",icon:"el-icon-edit"},on:{click:function(e){return t.$router.replace({path:"/roleEdit",query:{id:t.roleid}})}}},[t._v("编 辑")]):t._e(),t.tool.checkAuth(t.$route.name,"delete")?n("onDel",{attrs:{data:{roleid:t.roleid}}}):t._e()],1),n("div",{staticClass:"container normal-panel mb-16"},[n("p",{staticClass:"normal-title mb-16"},[t._v("角色信息")]),n("el-row",[n("el-form",{ref:"form",staticClass:"demo-form-inline",attrs:{inline:!0,model:t.form,size:"small","label-position":"left"}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"角色名称:"}},[n("p",[t._v(t._s(t.form.rolename))])])],1),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"角色描述:"}},[n("p",[t._v(t._s(t.form.remarks))])])],1),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"角色类型:"}},[n("p",[t._v(t._s(t.form.usertypename))])])],1)],1)],1)],1),n("div",{staticClass:"container normal-panel mb-16"},[n("p",{staticClass:"normal-title mb-16"},[t._v("角色授权")]),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("tableLayout",{attrs:{layout:t.tablecols,data:t.roleMainInfo.apps,opwidth:200,custom:!1},on:{rowClick:t.appoptionselect}})],1),n("el-col",{attrs:{span:12}},[n("el-row",{attrs:{gutter:40}},[n("el-col",{attrs:{span:12}},[n("p",{staticClass:"title"},[t._v("功能")]),t._l(t.appoptions,(function(e){return n("div",{key:e.index,staticClass:"flex-align-center flex-between option-item"},[n("p",[t._v(t._s(e.optionname))])])}))],2),n("el-col",{attrs:{span:12}},[n("p",{staticClass:"title"},[t._v("隐藏字段")]),t._l(t.hiddenfields,(function(e){return n("div",{key:e.index,staticClass:"flex-align-center flex-between option-item"},[n("p",[t._v(t._s(e.fieldname))])])}))],2)],1)],1)],1)],1)])},r=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline","margin-left":"10px"}},[n("el-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:t.deleteRow}},[n("el-button",{attrs:{slot:"reference",size:"small",icon:"el-icon-delete"},slot:"reference"},[t._v("删 除")])],1)],1)},a=[],s={props:["data"],methods:{deleteRow(){this.$api.requested({classname:"webmanage.role.role",method:"delete_role",content:{roleid:this.data.roleid}}).then((t=>{this.$router.go(-1)}))}}},l=s,u=n(1001),c=(0,u.Z)(l,o,a,!1,null,null,null),h=c.exports,p={components:{onDel:h},data(){return{form:{roleid:0,rolename:"",remarks:""},roleMainInfo:{},tablecols:[],appoptions:[],hiddenfields:[],roleid:0,active_systemappid:""}},methods:{async roleMain(){const t=await this.$api.requested({classname:"webmanage.role.role",method:"query_roleMain",content:{roleid:this.roleid}});this.form={roleid:t.data.roleid,rolename:t.data.rolename,remarks:t.data.remarks,usertype:t.data.usertype,usertypename:t.data.usertypename},this.roleMainInfo=t.data,this.appoptionselect(t.data.apps[0])},async appoptionselect(t){this.active_systemappid=t.systemappid,this.appoptions=t.options,this.hiddenfields=t.hiddenfields}},mounted(){this.tablecols=this.tool.tabelCol(this.$route.name).detailsAppsTable.tablecols,this.roleid=this.$route.query.id,"0"!==this.roleid&&this.roleMain()}},f=p,d=(0,u.Z)(f,i,r,!1,null,"6138702e",null),g=d.exports},7607:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Z}});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"container normal-panel normal-margin flex-align-center flex-between"},[t.tool.checkAuth(t.$route.name,"update")?n("edit",{attrs:{basicInfo:t.siteinfo},on:{onSuccess:t.infoData}}):t._e(),n("i",{staticClass:"el-icon-refresh",on:{click:t.infoData}})],1),n("basicInfo"),n("div",{staticClass:"container normal-panel"},[n("el-descriptions",{attrs:{title:"安全配置"}})],1),n("div",{staticClass:"panel"},[n("div",{staticClass:"flex-align-center flex-between"},[t._m(0),t.tool.checkAuth(t.$route.name,"psdValidate")?n("set-password"):t._e()],1)]),n("div",{staticClass:"panel"},[n("div",{staticClass:"flex-align-center flex-between"},[t._m(1),t.tool.checkAuth(t.$route.name,"setWatermark")?n("set-watermark",{attrs:{basicInfo:t.basicInfo}}):t._e()],1)]),n("div",{staticClass:"panel"},[n("div",{staticClass:"flex-align-center flex-between"},[t._m(2),t.tool.checkAuth(t.$route.name,"loginType")?n("login-select"):t._e()],1)])],1)},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex-align-stretch"},[i("img",{attrs:{width:"72",height:"72",src:n(5090),alt:""}}),i("div",{staticClass:"text-panel"},[i("p",{staticClass:"explain-title"},[t._v("密码安全强制要求")]),i("p",{staticClass:"explain-tips"},[t._v("当前设置:"),i("span",{staticClass:"color-yellow"},[t._v("密码6位数,数字0-9,特殊符号~,!,@,#,$,%,^;")])])])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex-align-stretch"},[i("img",{attrs:{width:"72",height:"72",src:n(6058),alt:""}}),i("div",{staticClass:"text-panel"},[i("p",{staticClass:"explain-title"},[t._v("企业水印图片")]),i("p",{staticClass:"explain-tips"},[t._v("当前设置:已上传水印图片")])])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex-align-stretch"},[i("img",{attrs:{width:"72",height:"72",src:n(5141),alt:""}}),i("div",{staticClass:"text-panel"},[i("p",{staticClass:"explain-title"},[t._v("登录方式")]),i("p",{staticClass:"explain-tips"},[t._v("当前设置:账号登录,微信登录")])])])}],o=n(629),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container normal-panel normal-margin"},[n("el-descriptions",{attrs:{title:"企业信息"}},[n("el-descriptions-item",{attrs:{label:"企业名称"}},[t._v(t._s(t.siteinfo.enterprisename?t.siteinfo.enterprisename:"--"))]),n("el-descriptions-item",{attrs:{label:"企业简称"}},[t._v(t._s(t.siteinfo.sitename))])],1),n("el-descriptions",{attrs:{direction:"vertical"}},[n("el-descriptions-item",{attrs:{label:"企业操作页LOGO"}},[n("div",{staticClass:"image-panel"},t._l(t.siteinfo.attinfos,(function(t){return n("img",{directives:[{name:"show",rawName:"v-show",value:"actionlogo"===t.usetype,expression:"img.usetype === 'actionlogo'"}],key:t.index,staticStyle:{width:"100%"},attrs:{src:t.url,alt:""}})})),0)])],1)],1)},s=[],l={data(){return{}},computed:{...(0,o.Se)({siteinfo:"siteinfo"})},methods:{},mounted(){}},u=l,c=n(1001),h=(0,c.Z)(u,a,s,!1,null,null,null),p=h.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{icon:"el-icon-edit",size:"small"},on:{click:t.onShow}},[t._v("编 辑")]),n("el-dialog",{attrs:{title:"编辑",top:"30px",visible:t.dialogEditVisible},on:{"update:visible":function(e){t.dialogEditVisible=e}}},[n("el-row",{attrs:{gutter:16}},[n("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:t.form,rules:t.rules,size:"small",inline:""}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"企业名称",prop:"enterprisename"}},[n("el-input",{staticClass:"normal_input-width",attrs:{placeholder:"请输入企业名称"},model:{value:t.form.enterprisename,callback:function(e){t.$set(t.form,"enterprisename",e)},expression:"form.enterprisename"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"企业简称",prop:"sitename"}},[n("el-input",{staticClass:"normal_input-width",attrs:{placeholder:"请输入企业简称"},model:{value:t.form.sitename,callback:function(e){t.$set(t.form,"sitename",e)},expression:"form.sitename"}})],1)],1)],1)],1),n("el-row",{staticStyle:{margin:"32px 0 0 0"},attrs:{gutter:16}},[n("el-col",{attrs:{span:12}},[n("p",[t._v("企业操作页LOGO:")]),t.show?n("uploadFile",{staticStyle:{"margin-top":"10px"},attrs:{folderid:t.folderid,accept:".JPG,.PNG",btntype:"image",bindData:{ownertable:"sys_site",ownerid:t.siteinfo.siteuid,usetype:"actionlogo"}},on:{onSuccess:t.uploadSuccess}}):n("div",{staticClass:"image-panel"},[n("i",{staticClass:"el-icon-error close-btn",on:{click:t.deleteFileLink}}),t._l(t.siteinfo.attinfos,(function(t){return n("img",{directives:[{name:"show",rawName:"v-show",value:"actionlogo"===t.usetype,expression:"img.usetype === 'actionlogo'"}],key:t.index,staticStyle:{width:"100%"},attrs:{src:t.url,alt:""}})}))],2),n("small",{staticClass:"info",staticStyle:{display:"block","margin-top":"20px"}},[t._v("注:建议上传图片大小1024x1024,大小不超过2M,格式为JPG/PNG")])],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogEditVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.submit}},[t._v("确 定")])],1)],1)],1)},d=[],g=n(9121),v={props:["basicInfo"],components:{uploadFile:g.Z},computed:{...(0,o.Se)({siteinfo:"siteinfo"}),show(){return!this.siteinfo.attinfos.some((t=>"actionlogo"===t.usetype))}},data(){return{dialogEditVisible:!1,form:{},rules:{enterprisename:[{required:!0,message:"请输入企业名称",trigger:"blur"}],sitename:[{required:!0,message:"请输入企业简称",trigger:"blur"}]},folderid:JSON.parse(sessionStorage.getItem("folderid")).appfolderid}},methods:{onShow(){this.dialogEditVisible=!0,this.form=Object.assign({},this.form,this.siteinfo)},submit(){this.$refs["form"].validate((async t=>{if(!t)return!1;const e=await this.$api.requested({classname:"webmanage.site.site",method:"updateSite",content:this.form});1===e.code?(this.$notify({title:"成功",message:"修改成功",type:"success"}),this.dialogEditVisible=!1,this.$emit("onSuccess")):this.$notify({title:"失败",message:e.data,type:"error"})}))},async deleteFileLink(){const t=await this.$api.requested({classname:"system.attachment.Attachment",method:"deleteFileLink",content:{linksids:[this.form.attinfos[0].linksid]}});1===t.code&&this.$emit("onSuccess")},uploadSuccess(){this.$emit("onSuccess")}}},m=v,y=(0,c.Z)(m,f,d,!1,null,"73fbd18c",null),x=y.exports,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{staticStyle:{width:"120px"},attrs:{size:"small",type:"primary"},on:{click:t.querySite_Parameter}},[t._v("设 置")]),n("el-dialog",{attrs:{title:"设 置",visible:t.dialogFormVisible,width:"860px"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[n("el-form",{staticStyle:{padding:"0 30px"},attrs:{model:t.form,"label-position":"left"}},[n("el-form-item",{attrs:{label:"默认密码"}},[n("div",{staticClass:"flex-align-center"},[n("el-input",{staticStyle:{width:"300px"},attrs:{size:"small",disabled:t.disabled,type:"password",placeholder:"请输入默认密码"},model:{value:t.password_default,callback:function(e){t.password_default=e},expression:"password_default"}}),n("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text",size:"small"},on:{click:t.setPassword}},[t._v("重新设置")])],1)]),n("el-form-item",{attrs:{label:"密码位数"}},[n("div",{staticClass:"flex-align-center"},[n("el-input",{staticStyle:{width:"300px"},attrs:{size:"small",placeholder:"请输入密码位数"},model:{value:t.form.password_length,callback:function(e){t.$set(t.form,"password_length",e)},expression:"form.password_length"}})],1)]),n("el-form-item",{attrs:{label:"包含字符类型"}},[n("div",{staticClass:"flex-align-center"},[n("div",[n("el-checkbox-group",{attrs:{disabled:0===t.radio2},on:{change:t.checkboxChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},[n("el-checkbox",{attrs:{label:"password_needcapital"}},[t._v("大写英文字母")]),n("el-checkbox",{attrs:{label:"password_needlowercase"}},[t._v("小写英文字母")]),n("el-checkbox",{attrs:{label:"password_neednum"}},[t._v("数字0-9")]),n("el-checkbox",{attrs:{label:"password_needspecialchar"}},[t._v("特殊符号~,!,@,#,$,%,^;")])],1)],1)])])],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.updateSite_Parameter}},[t._v("确 定")])],1)],1)],1)},w=[],A=n(8495),C=n.n(A),S={data(){return{dialogFormVisible:!1,disabled:!0,radio:1,radio2:1,form:{loginmode_phonenumber:1,loginmode_wechat:0,loginmode_account:1},checkList:[],password_default:""}},mounted(){},methods:{async querySite_Parameter(){this.dialogFormVisible=!0,this.disabled=!0;const t=await this.$api.requested({classname:"webmanage.site.site",method:"querySite_Parameter",content:{}});let e={password_needcapital:t.data.password_needcapital,password_needlowercase:t.data.password_needlowercase,password_neednum:t.data.password_neednum,password_needspecialchar:t.data.password_needspecialchar,password_length:t.data.password_length};this.password_default=t.data.password_default,this.form=Object.assign({},this.form,e),Object.keys(t.data).map(((e,n)=>{1===t.data[e]&&this.checkList.push(e)}))},checkboxChange(){Object.keys(this.form).map(((t,e)=>{if("password_length"!==t)return this.form[t]=this.checkList.some((e=>e===t))?1:0}))},async updateSite_Parameter(){if(this.form.password_length<=0)return this.$message({message:"密码长度必须大于0",type:"error"});const t=await this.$api.requested({classname:"webmanage.site.site",method:"updateSite_Parameter",content:this.form});1===t.code?(this.disabled?this.$message({message:"修改成功",type:"success"}):this.setDefaultPassword(),this.disabled&&(this.dialogFormVisible=!1)):this.$message({message:t.data,type:"error"})},async setDefaultPassword(){if(this.password_default.length<this.form.password_length)return this.$message({message:"密码长度有误请重新设置",type:"error"});const t=await this.$api.requested({classname:"webmanage.site.site",method:"updateSite_defaultpassword",content:{password_default:C()(this.password_default)}});1===t.code?this.dialogFormVisible=!1:this.$message({message:t.data,type:"error"})},setPassword(){this.disabled=!1,this.password_default=""}}},M=S,k=(0,c.Z)(M,b,w,!1,null,"ea0e4a9e",null),E=k.exports,F=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{staticStyle:{width:"120px"},attrs:{size:"small",type:"primary"},on:{click:t.queryFileLink}},[t._v("设 置")]),n("el-dialog",{attrs:{title:"设置",visible:t.dialogEditVisible},on:{"update:visible":function(e){t.dialogEditVisible=e}}},[n("el-row",{attrs:{gutter:16}},[n("el-col",{attrs:{span:12}},[n("p",[t._v("企业水印图片:")]),t.image.url?n("div",[n("viewImage",{attrs:{image:t.image,deletebtn:!0},on:{onSuccess:t.queryFileLink}})],1):n("uploadFile",{staticStyle:{"margin-top":"10px"},attrs:{folderid:t.folderid,accept:".JPG,.PNG",btntype:"image",bindData:{ownertable:"sys_site",ownerid:t.siteinfo.siteuid,usetype:"watermark"}},on:{onSuccess:t.queryFileLink}}),n("small",{staticClass:"info",staticStyle:{display:"block","margin-top":"20px"}},[t._v("注:建议上传图片大小1024x1024,大小不超过2M,格式为JPG/PNG")])],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogEditVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:function(e){t.dialogEditVisible=!1}}},[t._v("确 定")])],1)],1)],1)},T=[],I=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"image-panel"},[t.deletebtn?n("i",{staticClass:"el-icon-error close-btn",on:{click:t.deleteFileLink}}):t._e(),n("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.image.url,"preview-src-list":t.srcList}})],1)},B=[],D={props:["image","deletebtn"],data(){return{srcList:[]}},methods:{async deleteFileLink(){const t=await this.$api.requested({classname:"system.attachment.Attachment",method:"deleteFileLink",content:{linksids:[this.image.linksid]}});1===t.code&&this.$emit("onSuccess")}},mounted(){this.srcList.push(this.image.url)}},P=D,L=(0,c.Z)(P,I,B,!1,null,"6fc5504e",null),O=L.exports,R={props:["basicInfo"],components:{uploadFile:g.Z,viewImage:O},computed:{...(0,o.Se)({siteinfo:"siteinfo"})},data(){return{dialogEditVisible:!1,image:{url:""},folderid:JSON.parse(sessionStorage.getItem("folderid")).appfolderid}},methods:{async queryFileLink(){this.dialogEditVisible=!0;const t=await this.$api.requested({classname:"system.attachment.Attachment",method:"queryFileLink",content:{ownertable:"sys_site",ownerid:this.siteinfo.siteuid,usetype:"watermark"}});t.data[0]?this.image=t.data[0]:this.image={url:""}}}},z=R,_=(0,c.Z)(z,F,T,!1,null,"8a2bc724",null),U=_.exports,N=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{staticStyle:{width:"120px"},attrs:{size:"small",type:"primary"},on:{click:t.querySite_Parameter}},[t._v("设 置")]),n("el-dialog",{attrs:{title:"设置",visible:t.dialogEditVisible,width:"600px"},on:{"update:visible":function(e){t.dialogEditVisible=e}}},[n("el-row",{attrs:{gutter:16}},[n("el-col",[n("p",{staticStyle:{"margin-bottom":"20px"}},[t._v("登录方式")]),n("el-checkbox-group",{on:{change:t.checkboxChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},[n("el-checkbox",{attrs:{label:"loginmode_account"}},[t._v("账号登录")]),n("el-checkbox",{attrs:{label:"loginmode_phonenumber"}},[t._v("手机动态短信登录")]),n("el-checkbox",{attrs:{label:"loginmode_wechat"}},[t._v("微信登录")])],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogEditVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.updateSite_Parameter}},[t._v("确 定")])],1)],1)],1)},V=[],Y={props:["basicInfo"],components:{uploadFile:g.Z},data(){return{dialogEditVisible:!1,form:{},checkList:[]}},methods:{async querySite_Parameter(){this.dialogEditVisible=!0,this.disabled=!0;const t=await this.$api.requested({classname:"webmanage.site.site",method:"querySite_Parameter",content:{}});let e={password_needcapital:t.data.password_needcapital,password_needlowercase:t.data.password_needlowercase,password_neednum:t.data.password_neednum,password_needspecialchar:t.data.password_needspecialchar,password_length:t.data.password_length,loginmode_account:t.data.loginmode_account,loginmode_phonenumber:t.data.loginmode_phonenumber,loginmode_wechat:t.data.loginmode_wechat};this.form=Object.assign({},this.form,e),Object.keys(t.data).map(((e,n)=>{1===t.data[e]&&this.checkList.push(e)}))},checkboxChange(){Object.keys(this.form).map(((t,e)=>{if("password_length"!==t)return this.form[t]=this.checkList.some((e=>e===t))?1:0}))},async updateSite_Parameter(){const t=await this.$api.requested({classname:"webmanage.site.site",method:"updateSite_Parameter",content:this.form});1===t.code?(this.$message({message:"修改成功",type:"success"}),this.dialogEditVisible=!1):this.$message({message:t.data,type:"error"})}}},H=Y,X=(0,c.Z)(H,N,V,!1,null,"4d556369",null),G=X.exports,W={components:{setPassword:E,setWatermark:U,loginSelect:G,basicInfo:p,edit:x},data(){return{basicInfo:{}}},computed:{...(0,o.Se)({siteinfo:"siteinfo"})},methods:{async infoData(){this.$store.dispatch("querySiteInfo",{classname:"webmanage.site.site",method:"querySite",content:{}})}},mounted(){this.infoData()}},j=W,Q=(0,c.Z)(j,i,r,!1,null,"f9997d78",null),Z=Q.exports},729:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return A}});var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex-align-center"},[i("div",{staticClass:"nav-list"},[i("div",{staticClass:"nav-top-item"},[i("div",{staticClass:"logo-avatar"},t._l(t.siteinfo.attinfos,(function(t){return i("img",{directives:[{name:"show",rawName:"v-show",value:"actionlogo"===t.usetype,expression:"img.usetype === 'actionlogo'"}],key:t.index,staticStyle:{width:"100%"},attrs:{src:t.url,alt:""}})})),0),i("div",{staticClass:"item active",on:{click:function(e){return t.$router.push("/home")}}},[i("img",{attrs:{width:"30",src:n(2024),alt:""}}),i("p",[t._v("工作台")])]),t._m(0)]),t._m(1)]),i("el-container",[i("el-header",[i("myheader",{attrs:{siteinfo:t.siteinfo}})],1),i("div",{staticClass:"modules-panel flex-align-center flex-between"},[i("p",[t._v(t._s(t.routerName))]),i("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("返 回")])],1),i("el-container",{staticClass:"mymain"},[t.ast_nav?i("el-aside",{attrs:{width:"200px"}},[i("myaside")],1):t._e(),i("el-container",[i("el-main",[i("router-view")],1)],1)],1)],1)],1)},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"item"},[i("img",{attrs:{width:"30",src:n(2024),alt:""}}),i("p",[t._v("消息")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nav-bottom-item"},[i("div",{staticClass:"item"},[i("img",{attrs:{width:"30",src:n(5526),alt:""}})])])}],o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex"},[i("div",{staticClass:"logo"},[t._v("YOS后端管理平台")]),i("div",{staticClass:"right-operation"},[i("el-dropdown",[i("span",{staticClass:"el-dropdown-link"},[i("div",{staticClass:"flex"},[i("img",{attrs:{height:"30",src:n(8308),alt:""}}),t._v(" "+t._s(t.siteinfo.enterprisename)),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",[t._v("切换账号")]),i("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.loginOut()}}},[t._v("退出登录")])],1)],1)],1)])},a=[],s={props:["siteinfo"],data(){return{activeIndex:"",accountInfo:{}}},methods:{handleSelect(){},loginOut(){this.$confirm("是否要退出当前账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.$router.push("/"),sessionStorage.clear()})).catch((()=>{this.$message({type:"info",message:"已取消"})}))},changeAccount(){this.$router.push("/accounts")}},mounted(){this.accountInfo=JSON.parse(sessionStorage.getItem("active_account"))}},l=s,u=n(1001),c=(0,u.Z)(l,o,a,!1,null,"468b2379",null),h=c.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-menu",{staticClass:"el-menu-vertical-demo",staticStyle:{height:"calc(100vh - 100px)","overflow-y":"scroll"},attrs:{"default-active":t.activePath,"background-color":"#F5F5F5","text-color":"#666","active-text-color":"#fff",router:""},on:{open:t.handleOpen,close:t.handleClose}},t._l(t.auth_data,(function(e){return n("el-menu-item",{key:e.systemappid,attrs:{index:e.path}},[n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.meta.title))])])})),1)},f=[],d={data(){return{activePath:"/role_manage",auth_data:""}},methods:{handleOpen(){},handleClose(){},getAuthList(){let t=JSON.parse(sessionStorage.getItem("active_modules"));this.auth_data=t.apps}},created(){this.activePath=this.$route.path,this.getAuthList()},watch:{$route(){this.activePath=this.$route.path}}},g=d,v=(0,u.Z)(g,p,f,!1,null,"23a05bd7",null),m=v.exports,y=n(629),x={components:{myheader:h,myaside:m},computed:{...(0,y.Se)({siteinfo:"siteinfo"})},data(){return{routerName:""}},methods:{siteInfos(){this.$store.dispatch("querySiteInfo",{classname:"webmanage.site.site",method:"querySite",content:{}})}},created(){this.siteInfos(),this.routerName=this.$route.meta.title,this.ast_nav=this.$route.meta.ast_nav},watch:{$route(t){this.routerName=t.meta.title,this.ast_nav=t.meta.ast_nav}}},b=x,w=(0,u.Z)(b,i,r,!1,null,null,null),A=w.exports},9121:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",["image"===t.btntype?i("div",{staticClass:"image-upload-btn",on:{click:function(e){t.dialogUploadVisible=!0}}},[i("i",{staticClass:"el-icon-plus"})]):"limage"===t.btntype?i("div",{staticClass:"image-upload-btn limage-upload-btn",on:{click:function(e){t.dialogUploadVisible=!0}}},[i("i",{staticClass:"el-icon-plus"})]):i("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-upload"},on:{click:function(e){t.dialogUploadVisible=!0}}},[t._v("上 传")]),i("el-dialog",{attrs:{title:"文件上传",visible:t.dialogUploadVisible,width:"500px","append-to-body":"","close-on-click-modal":!1,"before-close":t.clearFiles},on:{"update:visible":function(e){t.dialogUploadVisible=e}}},[i("el-upload",{ref:"my-upload",staticClass:"upload-demo",staticStyle:{width:"100%"},attrs:{accept:t.accept,action:"#","auto-upload":!1,"show-file-list":!1,"on-change":t.handleChange,drag:"",multiple:""}},[i("i",{staticClass:"el-icon-upload"}),i("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),i("em",[t._v("点击上传")])])]),t._l(t.filelist,(function(e){return i("div",{key:e.uid,staticClass:"progress_panel"},["DOC"===e.type||"DOCX"===e.type?i("img",{attrs:{width:"30",src:n(2349),alt:""}}):"PDF"===e.type?i("img",{attrs:{width:"30",src:n(8813),alt:""}}):"MP4"===e.type||"AVI"===e.type?i("img",{attrs:{width:"30",src:n(9902),alt:""}}):"XLS"===e.type||"XLSX"===e.type?i("img",{attrs:{width:"30",src:n(6155),alt:""}}):"PNG"===e.type||"JPG"===e.type||"JPEG"===e.type?i("img",{attrs:{width:"30",src:n(5968),alt:""}}):"PPT"===e.type||"PPTX"===e.type?i("img",{attrs:{width:"30",src:n(4858),alt:""}}):i("img",{attrs:{width:"30",src:n(3899),alt:""}}),i("div",[100===e.progress?i("p",{staticStyle:{float:"right"}},[i("span",{staticStyle:{color:"#67C23A"}},[t._v("●")]),t._v("上传成功")]):t._e(),i("p",[t._v(t._s(e.raw?e.raw.name:"暂无上传文件"))]),i("el-progress",{attrs:{percentage:e.progress,"show-text":!1}})],1)])}))],2)],1)},r=[],o={props:["folderid","btntype","accept","bindData"],data(){return{dialogUploadVisible:!1,params:{classname:"system.attachment.huawei.OBS",method:"getFileName",content:{filename:"",filetype:"",parentid:""}},file:{},filelist:[]}},methods:{handleChange(t,e){this.filelist=e;var n=t.raw.name.lastIndexOf("."),i=t.name.substr(n+1);this.params.content.filename=t.raw.name,this.params.content.filetype=i,this.getUploadUrl(t,i)},async getUploadUrl(t,e){this.params.content.parentid=this.folderid;const n=await this.$api.requested(this.params);let i=n.data.uploadurl,r=n.data.serialfilename;this.upoladFileToServer(i,t,e,r)},async upoladFileToServer(t,e,n,i){let r=this,o={headers:"pdf"===n?{"Content-Type":"application/pdf"}:{"Content-Type":"application/octet-stream"},onUploadProgress:function(t){let i=t.loaded/t.total*100;r.filelist.forEach((t=>{t.uid===e.uid&&(r.$set(t,"type",n.toUpperCase()),r.$set(t,"progress",i))}))}};await this.$upload.hw_upload(t,e.raw,o);this.createFileRecord(i)},async createFileRecord(t){let e={serialfilename:t};e=Object.assign({},e,this.bindData);let n={classname:"system.attachment.huawei.OBS",method:"uploadSuccess",content:e};await this.$api.requested(n);this.$emit("onSuccess")},clearFiles(){this.$refs["my-upload"].clearFiles(),this.filelist=[],this.dialogUploadVisible=!1}}},a=o,s=n(1001),l=(0,s.Z)(a,i,r,!1,null,"4abe6116",null),u=l.exports},2484:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return u}});var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("el-row",{staticClass:"normal-margin",attrs:{gutter:20}},t._l(4,(function(t){return i("el-col",{attrs:{span:6}},[i("div",{staticClass:"normal-card"})])})),1),t._l(t.modulesList,(function(e){return i("div",{key:e.systemid,staticClass:"normal-card normal-margin ",attrs:{shadow:"none"}},[i("p",{staticClass:"title"},[t._v(t._s(e.systemname))]),i("el-row",{attrs:{gutter:20}},t._l(e.modules,(function(e){return i("el-col",{key:e.systemmoduleid,staticStyle:{"margin-top":"16px"},attrs:{span:4},nativeOn:{click:function(n){return t.redictToModules(e)}}},[i("div",{staticClass:"modules-item flex-align-center"},[i("img",{attrs:{width:"50",height:"50",src:n(914),alt:""}}),i("p",[t._v(t._s(e.systemmodulename)),i("br"),i("small",{staticClass:"info"},[t._v(t._s(e.systemmodule.toUpperCase()))])])])])})),1)],1)}))],2)},r=[],o={data(){return{modulesList:[]}},methods:{redictToModules(t){this.$router.push({path:t.apps[0].path}),sessionStorage.setItem("active_modules",JSON.stringify(t))}},mounted(){this.modulesList=JSON.parse(sessionStorage.getItem("module_info"))}},a=o,s=n(1001),l=(0,s.Z)(a,i,r,!1,null,"0f354812",null),u=l.exports},946:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h}});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"conatiner"},[n("div",{staticClass:"login-wrap"},[n("div",[t._m(0),n("div",{staticClass:"login-form"},[n("h4",{staticClass:"title"},[t._v("登录")]),n("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"短信登录",name:"first"}},[n("el-form",{ref:"loginForm",attrs:{rules:t.rules,model:t.loginForm}},[n("el-form-item",{attrs:{prop:"phonenumber"}},[n("el-input",{attrs:{placeholder:"账号"},model:{value:t.loginForm.phonenumber,callback:function(e){t.$set(t.loginForm,"phonenumber",e)},expression:"loginForm.phonenumber"}})],1),n("el-form-item",{attrs:{prop:"password"}},[n("el-input",{attrs:{placeholder:"验证码"},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}},[n("template",{slot:"append"},[t.count>0?n("span",[t._v(t._s(0===t.count?"获取验证码":t.count+"s"))]):n("el-button",{attrs:{type:"primary"},on:{click:t.countDown}},[t._v(t._s(0===t.count?"获取验证码":t.count+"s"))])],1)],2)],1),n("el-form-item",[n("div",{staticClass:"flex-between"},[n("el-checkbox",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v("记住账号")])],1)]),n("el-form-item",[n("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.login}},[t._v("登 录")])],1)],1)],1),n("el-tab-pane",{attrs:{label:"账号登录",name:"second"}},[n("el-form",{ref:"loginForm",attrs:{rules:t.rules,model:t.loginForm}},[n("el-form-item",{attrs:{prop:"phonenumber"}},[n("el-input",{attrs:{placeholder:"账号"},model:{value:t.loginForm.phonenumber,callback:function(e){t.$set(t.loginForm,"phonenumber",e)},expression:"loginForm.phonenumber"}})],1),n("el-form-item",{attrs:{prop:"password"}},[n("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}})],1),n("el-form-item",[n("div",{staticClass:"flex-between"},[n("el-checkbox",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v("记住账号")]),n("el-button",{attrs:{type:"text"}},[t._v("忘记密码")])],1)]),n("el-form-item",[n("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.loginbyaccount}},[t._v("登 录")])],1)],1)],1)],1),n("el-divider",[n("span",{staticStyle:{color:"#999","font-weight":"300"}},[t._v("其他登录方式")])]),n("span",[t._v("敬请期待")])],1)])])])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"logo"},[n("span",[t._v("YOS后端管理平台")]),n("br"),n("small",[t._v("YOS-MANAGE-SYSTEM")])])}],o=n(8495),a=n.n(o),s={data(){return{rules:{phonenumber:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入验证码",trigger:"blur"}]},loginForm:{phonenumber:"13732579910"},activeName:"first",checked:!1,count:0}},mounted(){localStorage.getItem("phonenumber")&&(this.loginForm.phonenumber=localStorage.getItem("phonenumber"),this.checked=!0)},methods:{loginCode(){this.$api.loginCode({phonenumber:this.loginForm.phonenumber,systemclient:"web"}).then((t=>{console.log(t);const e=this.$createElement;1===t.code?this.$notify({title:"获取验证码成功!",message:e("i",{style:"color: teal"},t.msg)}):this.$notify({title:"失败",message:t.msg,type:"error"})}))},async countDown(){await this.loginCode(),this.count=5;var t=setInterval((()=>{this.count--,0===this.count&&clearInterval(t)}),1e3)},async login(){const t=await this.$api.login({phonenumber:this.loginForm.phonenumber,password:a()(this.loginForm.password),systemclient:"web"});1===t.code?(this.checked?localStorage.setItem("phonenumber",this.loginForm.phonenumber):localStorage.clear("phonenumber"),this.$router.push("/accounts"),sessionStorage.setItem("account_list",JSON.stringify(t.account_list))):this.$notify({title:"失败",message:t.data,type:"error"})},async loginbyaccount(){const t=await this.$api.loginbyaccount({accountno:this.loginForm.phonenumber,password:a()(this.loginForm.password),systemclient:"web"});1===t.code?(this.checked?localStorage.setItem("phonenumber",this.loginForm.phonenumber):localStorage.clear("phonenumber"),this.$router.push("/accounts"),sessionStorage.setItem("account_list",JSON.stringify(t.account_list))):this.$notify({title:"失败",message:t.data,type:"error"})}}},l=s,u=n(1001),c=(0,u.Z)(l,i,r,!1,null,"29c83082",null),h=c.exports},5688:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return SO}});var i={};n.r(i),n.d(i,{assign:function(){return de},default:function(){return Re},defaultI18n:function(){return xe},format:function(){return Pe},parse:function(){return Le},setGlobalDateI18n:function(){return we},setGlobalDateMasks:function(){return De}});var r={};n.r(r),n.d(r,{Arc:function(){return kr},DataMarker:function(){return Dr},DataRegion:function(){return Lr},Html:function(){return jr},Image:function(){return Ir},Line:function(){return Ar},Region:function(){return Fr},RegionFilter:function(){return Rr},Shape:function(){return _r},Text:function(){return Sr}});var o={};n.r(o),n.d(o,{ellipsisHead:function(){return $r},ellipsisMiddle:function(){return eo},ellipsisTail:function(){return to},getDefault:function(){return Kr}});var a={};n.r(a),n.d(a,{equidistance:function(){return ho},equidistanceWithReverseBoth:function(){return po},getDefault:function(){return so},reserveBoth:function(){return co},reserveFirst:function(){return lo},reserveLast:function(){return uo}});var s={};n.r(s),n.d(s,{fixedAngle:function(){return mo},getDefault:function(){return vo},unfixedAngle:function(){return yo}});var l={};n.r(l),n.d(l,{autoEllipsis:function(){return o},autoHide:function(){return a},autoRotate:function(){return s}});var u={};n.r(u),n.d(u,{Base:function(){return Mo},Circle:function(){return To},Html:function(){return Oo},Line:function(){return Eo}});var c={};n.r(c),n.d(c,{CONTAINER_CLASS:function(){return ia},CROSSHAIR_X:function(){return ca},CROSSHAIR_Y:function(){return ha},LIST_CLASS:function(){return oa},LIST_ITEM_CLASS:function(){return aa},MARKER_CLASS:function(){return sa},NAME_CLASS:function(){return ua},TITLE_CLASS:function(){return ra},VALUE_CLASS:function(){return la}});var h={};n.r(h),n.d(h,{Base:function(){return sp},Circle:function(){return up},Ellipse:function(){return pp},Image:function(){return gp},Line:function(){return xp},Marker:function(){return Ap},Path:function(){return Rp},Polygon:function(){return Up},Polyline:function(){return Vp},Rect:function(){return Gp},Text:function(){return jp}});var p={};n.r(p),n.d(p,{Canvas:function(){return $p},Group:function(){return op},Shape:function(){return h},getArcParams:function(){return Oh},version:function(){return tf}});var f={};n.r(f),n.d(f,{Base:function(){return vf},Circle:function(){return yf},Dom:function(){return bf},Ellipse:function(){return Af},Image:function(){return Sf},Line:function(){return kf},Marker:function(){return If},Path:function(){return Df},Polygon:function(){return Lf},Polyline:function(){return Rf},Rect:function(){return Uf},Text:function(){return Wf}});var d={};n.r(d),n.d(d,{Canvas:function(){return gd},Group:function(){return df},Shape:function(){return f},version:function(){return vd}});var g={};n.r(g),n.d(g,{cluster:function(){return LI},hierarchy:function(){return yI},pack:function(){return iB},packEnclose:function(){return zI},packSiblings:function(){return JI},partition:function(){return nI},stratify:function(){return hB},tree:function(){return bB},treemap:function(){return MB},treemapBinary:function(){return kB},treemapDice:function(){return eI},treemapResquarify:function(){return FB},treemapSlice:function(){return wB},treemapSliceDice:function(){return EB},treemapSquarify:function(){return SB}});var v,m,y,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container normal-panel"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("storageCapacity")],1),n("el-col",{staticStyle:{"margin-bottom":"42px"},attrs:{span:12}},[n("downloadTraffic")],1),n("el-col",{attrs:{span:12}},[n("fileTypeProportion")],1),n("el-col",{attrs:{span:12}},[n("modulesProportion")],1)],1)],1)},b=[],w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"flex-align-center flex-between"},[n("p",{staticClass:"title"},[t._v("存储量")]),n("el-radio-group",{attrs:{size:"small"},on:{change:t.getLineChartOfStorage},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[n("el-radio-button",{attrs:{label:1}},[t._v("年")]),n("el-radio-button",{attrs:{label:2}},[t._v("月")]),n("el-radio-button",{attrs:{label:3}},[t._v("日")])],1)],1),n("div",{attrs:{id:"container"}})])},A=[],C=n(655),S=n(5098);(function(t){t["FORE"]="fore",t["MID"]="mid",t["BG"]="bg"})(v||(v={})),function(t){t["TOP"]="top",t["TOP_LEFT"]="top-left",t["TOP_RIGHT"]="top-right",t["RIGHT"]="right",t["RIGHT_TOP"]="right-top",t["RIGHT_BOTTOM"]="right-bottom",t["LEFT"]="left",t["LEFT_TOP"]="left-top",t["LEFT_BOTTOM"]="left-bottom",t["BOTTOM"]="bottom",t["BOTTOM_LEFT"]="bottom-left",t["BOTTOM_RIGHT"]="bottom-right",t["RADIUS"]="radius",t["CIRCLE"]="circle",t["NONE"]="none"}(m||(m={})),function(t){t["AXIS"]="axis",t["GRID"]="grid",t["LEGEND"]="legend",t["TOOLTIP"]="tooltip",t["ANNOTATION"]="annotation",t["SLIDER"]="slider",t["SCROLLBAR"]="scrollbar",t["OTHER"]="other"}(y||(y={}));var M,k,E,F,T={FORE:3,MID:2,BG:1};(function(t){t["BEFORE_RENDER"]="beforerender",t["AFTER_RENDER"]="afterrender",t["BEFORE_PAINT"]="beforepaint",t["AFTER_PAINT"]="afterpaint",t["BEFORE_CHANGE_DATA"]="beforechangedata",t["AFTER_CHANGE_DATA"]="afterchangedata",t["BEFORE_CLEAR"]="beforeclear",t["AFTER_CLEAR"]="afterclear",t["BEFORE_DESTROY"]="beforedestroy",t["BEFORE_CHANGE_SIZE"]="beforechangesize",t["AFTER_CHANGE_SIZE"]="afterchangesize"})(M||(M={})),function(t){t["BEFORE_DRAW_ANIMATE"]="beforeanimate",t["AFTER_DRAW_ANIMATE"]="afteranimate",t["BEFORE_RENDER_LABEL"]="beforerenderlabel",t["AFTER_RENDER_LABEL"]="afterrenderlabel"}(k||(k={})),function(t){t["MOUSE_ENTER"]="plot:mouseenter",t["MOUSE_DOWN"]="plot:mousedown",t["MOUSE_MOVE"]="plot:mousemove",t["MOUSE_UP"]="plot:mouseup",t["MOUSE_LEAVE"]="plot:mouseleave",t["TOUCH_START"]="plot:touchstart",t["TOUCH_MOVE"]="plot:touchmove",t["TOUCH_END"]="plot:touchend",t["TOUCH_CANCEL"]="plot:touchcancel",t["CLICK"]="plot:click",t["DBLCLICK"]="plot:dblclick",t["CONTEXTMENU"]="plot:contextmenu",t["LEAVE"]="plot:leave",t["ENTER"]="plot:enter"}(E||(E={})),function(t){t["ACTIVE"]="active",t["INACTIVE"]="inactive",t["SELECTED"]="selected",t["DEFAULT"]="default"}(F||(F={}));var I,B,D,P,L=["color","shape","size"],O="_origin",R=1,z=1,_=.25,U={};function N(t){var e=U[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function V(t,e){U[t]=e}function Y(){I=document.createElement("table"),B=document.createElement("tr"),D=/^\s*<(\w+|!)[^>]*>/,P={tr:document.createElement("tbody"),tbody:I,thead:I,tfoot:I,td:B,th:B,"*":document.createElement("div")}}function H(t){I||Y();var e=D.test(t)&&RegExp.$1;e&&e in P||(e="*");var n=P[e];t="string"===typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var i=n.childNodes[0];return i&&n.contains(i)&&n.removeChild(i),i}function X(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}function G(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function W(t){return"number"===typeof t&&!isNaN(t)}function j(t,e,n,i){var r=n,o=i;if(e){var a=G(t);r=a.width?a.width:r,o=a.height?a.height:o}return{width:Math.max(W(r)?r:R,R),height:Math.max(W(o)?o:z,z)}}function Q(t){var e=t.parentNode;e&&e.removeChild(t)}var Z=n(494),q=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=e.visible,r=void 0===i||i;return n.visible=r,n}return(0,C.ZT)(e,t),e.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},e.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(Z.Z),J=q,K=n(8190),$=0,tt=.5,et=.5,nt=.05,it=function(){function t(t){var e=t.xField,n=t.yField,i=t.adjustNames,r=void 0===i?["x","y"]:i,o=t.dimValuesMap;this.adjustNames=r,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===a?0:a-1],r=n[a===s-1?s-1:a+1],0!==a?i+=(e-i)/2:i-=(r-e)/2,a!==s-1?r-=(r-e)/2:r+=(e-n[s-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);S.S6(t,(function(t,e){S.S6(i,(function(i,r){n.adjustDim(r,i,t,e)}))}))},t.prototype.groupData=function(t,e){return S.S6(t,(function(t){void 0===t[e]&&(t[e]=$)})),S.vM(t,e)},t.prototype.adjustDim=function(t,e,n,i){},t.prototype.getDimValues=function(t){var e=this,n=e.xField,i=e.yField,r=S.f0({},this.dimValuesMap),o=[];if(n&&this.isAdjust("x")&&o.push(n),i&&this.isAdjust("y")&&o.push(i),o.forEach((function(e){r&&r[e]||(r[e]=S.I(t,e).sort((function(t,e){return t-e})))})),!i&&this.isAdjust("y")){var a="y";r[a]=[$,1]}return r},t}(),rt=it,ot={},at=function(t){return ot[t.toLowerCase()]},st=function(t,e){if(at(t))throw new Error("Adjust type '"+t+"' existed.");ot[t.toLowerCase()]=e},lt=function(t,e){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},lt(t,e)};function ut(t,e){function n(){this.constructor=t}lt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ct=function(){return ct=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},ct.apply(this,arguments)};var ht=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var i=e.marginRatio,r=void 0===i?tt:i,o=e.dodgeRatio,a=void 0===o?et:o,s=e.dodgeBy,l=e.intervalPadding,u=e.dodgePadding,c=e.xDimensionLength,h=e.groupNum,p=e.defaultSize,f=e.maxColumnWidth,d=e.minColumnWidth,g=e.columnWidthRatio,v=e.customOffset;return n.marginRatio=r,n.dodgeRatio=a,n.dodgeBy=s,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=c,n.groupNum=h,n.defaultSize=p,n.maxColumnWidth=f,n.minColumnWidth=d,n.columnWidthRatio=g,n.customOffset=v,n}return ut(e,t),e.prototype.process=function(t){var e=S.d9(t),n=S.xH(e),i=this.dodgeBy,r=i?S.ru(n,i):e;return this.cacheMap={},this.adjustDataArray=r,this.mergeData=n,this.adjustData(r,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,i){var r=this,o=this.customOffset,a=this.getDistribution(t),s=this.groupData(n,t);return S.S6(s,(function(n,s){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:r.getAdjustRange(t,parseFloat(s),e),S.S6(n,(function(e){var n=e[t],s=a[n],u=s.indexOf(i);if(S.UM(o))e[t]=r.getDodgeOffset(l,u,s.length);else{var c=l.pre,h=l.next;e[t]=S.mf(o)?o(e,l):(c+h)/2+o}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var i,r=this,o=r.dodgeRatio,a=r.marginRatio,s=r.intervalPadding,l=r.dodgePadding,u=t.pre,c=t.next,h=c-u;if(!S.UM(s)&&S.UM(l)&&s>=0){var p=this.getIntervalOnlyOffset(n,e);i=u+p}else if(!S.UM(l)&&S.UM(s)&&l>=0){p=this.getDodgeOnlyOffset(n,e);i=u+p}else if(!S.UM(s)&&!S.UM(l)&&s>=0&&l>=0){p=this.getIntervalAndDodgeOffset(n,e);i=u+p}else{var f=h*o/n,d=a*f;p=.5*(h-n*f-(n-1)*d)+((e+1)*f+e*d)-.5*f-.5*h;i=(u+c)/2+p}return i},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,i=n.defaultSize,r=n.intervalPadding,o=n.xDimensionLegenth,a=n.groupNum,s=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,c=n.columnWidthRatio,h=r/o,p=(1-(a-1)*h)/a*s/(t-1),f=((1-h*(a-1))/a-p*(t-1))/t;if(f=S.UM(c)?f:1/a/t*c,!S.UM(l)){var d=l/o;f=Math.min(f,d)}if(!S.UM(u)){var g=u/o;f=Math.max(f,g)}f=i?i/o:f,p=((1-(a-1)*h)/a-t*f)/(t-1);var v=((.5+e)*f+e*p+.5*h)*a-h/2;return v},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,i=n.defaultSize,r=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,c=n.columnWidthRatio,h=r/o,p=1*s/(a-1),f=((1-p*(a-1))/a-h*(t-1))/t;if(f=c?1/a/t*c:f,!S.UM(l)){var d=l/o;f=Math.min(f,d)}if(!S.UM(u)){var g=u/o;f=Math.max(f,g)}f=i?i/o:f,p=(1-(f*t+h*(t-1))*a)/(a-1);var v=((.5+e)*f+e*h+.5*p)*a-p/2;return v},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,i=n.intervalPadding,r=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=i/o,l=r/o,u=((1-s*(a-1))/a-l*(t-1))/t,c=((.5+e)*u+e*l+.5*s)*a-s/2;return c},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,i=n[t];return i||(i={},S.S6(e,(function(e,n){var r=S.I(e,t);r.length||r.push(0),S.S6(r,(function(t){i[t]||(i[t]=[]),i[t].push(n)}))})),n[t]=i),i},e}(rt),pt=ht;function ft(t,e){return(e-t)*Math.random()+t}var dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ut(e,t),e.prototype.process=function(t){var e=S.d9(t),n=S.xH(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var i=this,r=this.groupData(n,t);return S.S6(r,(function(n,r){return i.adjustGroup(n,t,parseFloat(r),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,i=(n-e)*nt;return ft(e+i,n-i)},e.prototype.adjustGroup=function(t,e,n,i){var r=this,o=this.getAdjustRange(e,n,i);return S.S6(t,(function(t){t[e]=r.getAdjustOffset(o)})),t},e}(rt),gt=dt,vt=S.Ct,mt=function(t){function e(e){var n=t.call(this,e)||this,i=e.adjustNames,r=void 0===i?["y"]:i,o=e.height,a=void 0===o?NaN:o,s=e.size,l=void 0===s?10:s,u=e.reverseOrder,c=void 0!==u&&u;return n.adjustNames=r,n.height=a,n.size=l,n.reverseOrder=c,n}return ut(e,t),e.prototype.process=function(t){var e=this,n=e.yField,i=e.reverseOrder,r=n?this.processStack(t):this.processOneDimStack(t);return i?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,n=e.xField,i=e.yField,r=e.reverseOrder,o=r?this.reverse(t):t,a=new vt,s=new vt;return o.map((function(t){return t.map((function(t){var e,r=S.U2(t,n,0),o=S.U2(t,[i]),l=r.toString();if(o=S.kJ(o)?o[1]:o,!S.UM(o)){var u=o>=0?a:s;u.has(l)||u.set(l,0);var c=u.get(l),h=o+c;return u.set(l,h),ct(ct({},t),(e={},e[i]=[c,h],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,i=n.xField,r=n.height,o=n.reverseOrder,a="y",s=o?this.reverse(t):t,l=new vt;return s.map((function(t){return t.map((function(t){var n,o=e.size,s=t[i],u=2*o/r;l.has(s)||l.set(s,u/2);var c=l.get(s);return l.set(s,c+u),ct(ct({},t),(n={},n[a]=c,n))}))}))},e}(rt),yt=mt,xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ut(e,t),e.prototype.process=function(t){var e=S.xH(t),n=this,i=n.xField,r=n.yField,o=this.getXValuesMaxMap(e),a=Math.max.apply(Math,Object.keys(o).map((function(t){return o[t]})));return S.UI(t,(function(t){return S.UI(t,(function(t){var e,n,s=t[r],l=t[i];if(S.kJ(s)){var u=(a-o[l])/2;return ct(ct({},t),(e={},e[r]=S.UI(s,(function(t){return u+t})),e))}var c=(a-s)/2;return ct(ct({},t),(n={},n[r]=[c,s+c],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,i=n.xField,r=n.yField,o=S.vM(t,(function(t){return t[i]}));return S.Q8(o,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=S.UI(t,(function(t){return S.U2(t,e,[])})),i=S.xH(n);return Math.max.apply(Math,i)},e}(rt),bt=xt;st("Dodge",pt),st("Jitter",gt),st("Stack",yt),st("Symmetric",bt);var wt=function(t,e){return(0,S.HD)(e)?e:t.invert(t.scale(e))},At=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,i)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),i=e*t-n,r=this.values[n],o=n===e?r:this.values[n+1];return r+(o-r)*i},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r+=1)i.push(e[r]);return i},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var i=t.scales[n];return"identity"===i.type?i.values[0]:t._getAttributeValue(i,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=void 0===n?"base":n,r=t.names,o=void 0===r?[]:r,a=t.scales,s=void 0===a?[]:a,l=t.values,u=void 0===l?[]:l,c=t.callback;this.type=i,this.scales=s,this.values=u,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(c){var i=c.apply(void 0,t);if(!(0,S.UM)(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var i=t.scale(e);return this.getLinearValue(i)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:(0,S.kJ)(t)?t.map((function(t){return wt(e,t)})):wt(e,t)},t}(),Ct=At,St=function(t,e){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},St(t,e)};function Mt(t,e){function n(){this.constructor=t}St(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var kt=/rgba?\(([\s.,0-9]+)\)/,Et=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Ft=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Tt=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,It=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},Bt=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t},Dt=function(t,e,n,i){return t[i]+(e[i]-t[i])*n};function Pt(t){return"#"+Rt(t[0])+Rt(t[1])+Rt(t[2])}var Lt,Ot=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},Rt=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},zt=function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),i=t.length-1,r=Math.floor(i*n),o=i*n-r,a=t[r],s=r===i?a:t[r+1];return Pt([Dt(a,s,o,0),Dt(a,s,o,1),Dt(a,s,o,2)])},_t=function(t){if("#"===t[0]&&7===t.length)return t;Lt||(Lt=Bt()),Lt.style.color=t;var e=document.defaultView.getComputedStyle(Lt,"").getPropertyValue("color"),n=kt.exec(e),i=n[1].split(/\s*,\s*/).map((function(t){return Number(t)}));return e=Pt(i),e},Ut=function(t){var e=(0,S.HD)(t)?t.split("-"):t,n=(0,S.UI)(e,(function(t){return Ot(-1===t.indexOf("#")?_t(t):t)}));return function(t){return zt(n,t)}},Nt=function(t){if(It(t)){var e,n=void 0;if("l"===t[0]){var i=Et.exec(t),r=+i[1]+90;n=i[2],e="linear-gradient("+r+"deg, "}else if("r"===t[0]){e="radial-gradient(";i=Ft.exec(t);n=i[4]}var o=n.match(Tt);return(0,S.S6)(o,(function(t,n){var i=t.split(":");e+=i[1]+" "+100*i[0]+"%",n!==o.length-1&&(e+=", ")})),e+=")",e}return t},Vt={rgb2arr:Ot,gradient:Ut,toRGB:(0,S.HP)(_t),toCSSGradient:Nt},Yt=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],(0,S.HD)(n.values)&&(n.linear=!0),n.gradient=Vt.gradient(n.values),n}return Mt(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(Ct),Ht=Yt,Xt=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Mt(e,t),e}(Ct),Gt=Xt,Wt=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Mt(e,t),e.prototype.mapping=function(t,e){var n=this.scales,i=n[0],r=n[1];return(0,S.UM)(t)||(0,S.UM)(e)?[]:[(0,S.kJ)(t)?t.map((function(t){return i.scale(t)})):i.scale(t),(0,S.kJ)(e)?e.map((function(t){return r.scale(t)})):r.scale(e)]},e}(Ct),jt=Wt,Qt=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Mt(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(Ct),Zt=Qt,qt=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Mt(e,t),e}(Ct),Jt=qt,Kt={};function $t(t){return Kt[t]}function te(t,e){Kt[t]=e}var ee=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){(0,S.f0)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,S.UI)(this.ticks,(function(e,n){return(0,S.Kn)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return(0,S.UM)(i)||!(0,S.mf)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,S.f0)(this,this.__cfg__),this.setDomain(),(0,S.xb)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if((0,S.HD)(t)){var n=$t(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else(0,S.mf)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return(0,S.hj)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),ne=ee,ie=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return(0,C.ZT)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=(0,S.hj)(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),i=Math.round(e*n)+this.min;return i<this.min||i>this.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=e;return(0,S.hj)(e)&&!this.values.includes(e)&&(r=this.values[r]),t.prototype.getText.apply(this,(0,C.pr)([r],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if((0,S.UM)(this.getConfig("min"))&&(this.min=0),(0,S.UM)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(ne),re=ie,oe=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ae="\\d\\d?",se="\\d\\d",le="\\d{3}",ue="\\d{4}",ce="[^\\s]+",he=/\[([^]*?)\]/gm;function pe(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}var fe=function(t){return function(e,n){var i=n[t].map((function(t){return t.toLowerCase()})),r=i.indexOf(e.toLowerCase());return r>-1?r:null}};function de(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,r=e;i<r.length;i++){var o=r[i];for(var a in o)t[a]=o[a]}return t}var ge=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ve=["January","February","March","April","May","June","July","August","September","October","November","December"],me=pe(ve,3),ye=pe(ge,3),xe={dayNamesShort:ye,dayNames:ge,monthNamesShort:me,monthNames:ve,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},be=de({},xe),we=function(t){return be=de(be,t)},Ae=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Ce=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length<e)t="0"+t;return t},Se={D:function(t){return String(t.getDate())},DD:function(t){return Ce(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Ce(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return Ce(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return Ce(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Ce(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Ce(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Ce(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Ce(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Ce(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Ce(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Ce(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ce(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ce(Math.floor(Math.abs(e)/60),2)+":"+Ce(Math.abs(e)%60,2)}},Me=function(t){return+t-1},ke=[null,ae],Ee=[null,ce],Fe=["isPm",ce,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],Te=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],Ie={D:["day",ae],DD:["day",se],Do:["day",ae+ce,function(t){return parseInt(t,10)}],M:["month",ae,Me],MM:["month",se,Me],YY:["year",se,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",ae,void 0,"isPm"],hh:["hour",se,void 0,"isPm"],H:["hour",ae],HH:["hour",se],m:["minute",ae],mm:["minute",se],s:["second",ae],ss:["second",se],YYYY:["year",ue],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",se,function(t){return 10*+t}],SSS:["millisecond",le],d:ke,dd:ke,ddd:Ee,dddd:Ee,MMM:["month",ce,fe("monthNamesShort")],MMMM:["month",ce,fe("monthNames")],a:Fe,A:Fe,ZZ:Te,Z:Te},Be={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},De=function(t){return de(Be,t)},Pe=function(t,e,n){if(void 0===e&&(e=Be["default"]),void 0===n&&(n={}),"number"===typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=Be[e]||e;var i=[];e=e.replace(he,(function(t,e){return i.push(e),"@@@"}));var r=de(de({},be),n);return e=e.replace(oe,(function(e){return Se[e](t,r)})),e.replace(/@@@/g,(function(){return i.shift()}))};function Le(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=Be[e]||e,t.length>1e3)return null;var i=new Date,r={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],a=[],s=e.replace(he,(function(t,e){return a.push(Ae(e)),"@@@"})),l={},u={};s=Ae(s).replace(oe,(function(t){var e=Ie[t],n=e[0],i=e[1],r=e[3];if(l[n])throw new Error("Invalid format. "+n+" specified twice in format");return l[n]=!0,r&&(u[r]=!0),o.push(e),"("+i+")"})),Object.keys(u).forEach((function(t){if(!l[t])throw new Error("Invalid format. "+t+" is required in specified format")})),s=s.replace(/@@@/g,(function(){return a.shift()}));var c=t.match(new RegExp(s,"i"));if(!c)return null;for(var h,p=de(de({},be),n),f=1;f<c.length;f++){var d=o[f-1],g=d[0],v=d[2],m=v?v(c[f],p):+c[f];if(null==m)return null;r[g]=m}if(1===r.isPm&&null!=r.hour&&12!==+r.hour?r.hour=+r.hour+12:0===r.isPm&&12===+r.hour&&(r.hour=0),null==r.timezoneOffset){h=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond);for(var y=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],x=(f=0,y.length);f<x;f++)if(l[y[f][0]]&&r[y[f][0]]!==h[y[f][1]]())return null}else if(h=new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond)),r.month>11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return h}var Oe={format:Pe,parse:Le,defaultI18n:xe,setGlobalDateI18n:we,setGlobalDateMasks:De},Re=Oe;function ze(t){return function(e,n,i,r){var o=(0,S.UM)(i)?0:i,a=(0,S.UM)(r)?e.length:r;while(o<a){var s=o+a>>>1;t(e[s])>n?a=s:o=s+1}return o}}var _e="format";function Ue(t,e){var n=i[_e]||Re[_e];return n(t,e)}function Ne(t){return(0,S.HD)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,S.J_)(t)&&(t=t.getTime()),t}var Ve=1e3,Ye=60*Ve,He=60*Ye,Xe=24*He,Ge=31*Xe,We=365*Xe,je=[["HH:mm:ss",Ve],["HH:mm:ss",10*Ve],["HH:mm:ss",30*Ve],["HH:mm",Ye],["HH:mm",10*Ye],["HH:mm",30*Ye],["HH",He],["HH",6*He],["HH",12*He],["YYYY-MM-DD",Xe],["YYYY-MM-DD",4*Xe],["YYYY-WW",7*Xe],["YYYY-MM",Ge],["YYYY-MM",4*Ge],["YYYY-MM",6*Ge],["YYYY",380*Xe]];function Qe(t,e,n){var i=(e-t)/n,r=ze((function(t){return t[1]}))(je,i)-1,o=je[r];return r<0?o=je[0]:r>=je.length&&(o=(0,S.Z$)(je)),o}var Ze=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,C.ZT)(e,t),e.prototype.translate=function(t){t=Ne(t);var e=this.values.indexOf(t);return-1===e&&(e=(0,S.hj)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var i=this.values[n],r=this.formatter;return i=r?r(i,e):Ue(i,this.mask),i}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;(0,S.S6)(e,(function(t,n){e[n]=Ne(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(re),qe=Ze,Je=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,C.ZT)(e,t),e.prototype.scale=function(t){if((0,S.UM)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),i=this.max,r=this.min;if(i===r)return e;var o=this.getScalePercent(t);return e+o*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,S.YM)(e),i=(0,S.Z$)(e);n<this.min&&(this.min=n),i>this.max&&(this.max=i),(0,S.UM)(this.minLimit)||(this.min=n),(0,S.UM)(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=(0,S.rx)(this.values),e=t.min,n=t.max;(0,S.UM)(this.min)&&(this.min=e),(0,S.UM)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=(0,S.hX)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(ne),Ke=Je,$e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,C.ZT)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Ke),tn=$e;function en(t,e){var n,i=Math.E;return n=e>=0?Math.pow(i,Math.log(e)/t):-1*Math.pow(i,Math.log(-e)/t),n}function nn(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function rn(t,e,n){(0,S.UM)(n)&&(n=Math.max.apply(null,t));var i=n;return(0,S.S6)(t,(function(t){t>0&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(i=1),i}var on=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,C.ZT)(e,t),e.prototype.invert=function(t){var e,n=this.base,i=nn(n,this.max),r=this.rangeMin(),o=this.rangeMax()-r,a=this.positiveMin;if(a){if(0===t)return 0;e=nn(n,a/n);var s=1/(i-e)*o;if(t<s)return t/s*a}else e=nn(n,this.min);var l=(t-r)/o,u=l*(i-e)+e;return Math.pow(n,u)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=rn(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var i,r=this.base,o=this.positiveMin;return o&&(n=1*o/r),i=t<o?t/o/(nn(r,e)-nn(r,n)):(nn(r,t)-nn(r,n))/(nn(r,e)-nn(r,n)),i},e}(Ke),an=on,sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return(0,C.ZT)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,i=en(n,this.max),r=en(n,this.min),o=e*(i-r)+r,a=o>=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var i=this.exponent,r=(en(i,t)-en(i,n))/(en(i,e)-en(i,n));return r},e}(Ke),ln=sn,un=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,C.ZT)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):Ue(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,S.HD)(n)||(0,S.J_)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return Ne(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((0,S.UM)(e)&&(0,S.hj)(e)||(this.min=this.translate(this.min)),(0,S.UM)(n)&&(0,S.hj)(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],r=1/0,o=r,a=0;(0,S.S6)(t,(function(t){var e=Ne(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");r>e?(o=r,r=e):o>e&&(o=e),a<e&&(a=e),i.push(e)})),t.length>1&&(this.minTickInterval=o-r),(0,S.UM)(e)&&(this.min=r),(0,S.UM)(n)&&(this.max=a)}},e}(tn),cn=un,hn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,C.ZT)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),r=Math.floor(i*(n-1));if(r>=n-1)return(0,S.Z$)(e);if(r<0)return(0,S.YM)(e);var o=e[r],a=e[r+1],s=r/(n-1),l=(r+1)/(n-1);return o+(i-s)/(l-s)*(a-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||((0,S.Z$)(e)!==this.max&&e.push(this.max),(0,S.YM)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,S.YM)(e))return 0;if(t>(0,S.Z$)(e))return 1;var n=0;return(0,S.S6)(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(Ke),pn=hn,fn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,C.ZT)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(pn),dn=fn,gn={};function vn(t){return gn[t]}function mn(t,e){if(vn(t))throw new Error("type '"+t+"' existed.");gn[t]=e}var yn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,C.ZT)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,S.hj)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(ne),xn=yn;function bn(t){var e=t.values,n=t.tickInterval,i=t.tickCount,r=t.showLast;if((0,S.hj)(n)){var o=(0,S.hX)(e,(function(t,e){return e%n===0})),a=(0,S.Z$)(e);return r&&(0,S.Z$)(o)!==a&&o.push(a),o}var s=e.length,l=t.min,u=t.max;if((0,S.UM)(l)&&(l=0),(0,S.UM)(u)&&(u=e.length-1),!(0,S.hj)(i)||i>=s)return e.slice(l,u+1);if(i<=0||u<=0)return[];for(var c=1===i?s:Math.floor(s/(i-1)),h=[],p=l,f=0;f<i;f++){if(p>=u)break;p=Math.min(l+f*c,u),f===i-1&&r?h.push(e[u]):h.push(e[p])}return h}function wn(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,o=new kn;return o.domain([e,n]),i&&o.nice(r),o.ticks(r)}var An=5,Cn=Math.sqrt(50),Sn=Math.sqrt(10),Mn=Math.sqrt(2),kn=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=An);var i,r=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],l=this._domain[a];return l<s&&(e=[l,s],s=e[0],l=e[1],n=[a,o],o=n[0],a=n[1]),i=Fn(s,l,t),i>0?(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,i=Fn(s,l,t)):i<0&&(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,i=Fn(s,l,t)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(l/i)*i,this.domain(r)):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(l*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=An),En(this._domain[0],this._domain[this._domain.length-1],t||An)},t}();function En(t,e,n){var i,r,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(a=Fn(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(r=Math.ceil(e-t+1));while(++s<r)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(r=Math.ceil(t-e+1));while(++s<r)o[s]=(t-s)/a}return i&&o.reverse(),o}function Fn(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=Cn?10:o>=Sn?5:o>=Mn?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=Cn?10:o>=Sn?5:o>=Mn?2:1)}function Tn(t,e,n){var i;return i="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e),i*e}function In(t,e,n){var i=Tn(t,n,"floor"),r=Tn(e,n,"ceil");i=(0,S.ri)(i,n),r=(0,S.ri)(r,n);for(var o=[],a=Math.max((r-i)/(Math.pow(2,12)-1),n),s=i;s<=r;s+=a){var l=(0,S.ri)(s,a);o.push(l)}return{min:i,max:r,ticks:o}}function Bn(t,e,n){var i,r=t.minLimit,o=t.maxLimit,a=t.min,s=t.max,l=t.tickCount,u=void 0===l?5:l,c=(0,S.UM)(r)?(0,S.UM)(e)?a:e:r,h=(0,S.UM)(o)?(0,S.UM)(n)?s:n:o;if(c>h&&(i=[c,h],h=i[0],c=i[1]),u<=2)return[c,h];for(var p=(h-c)/(u-1),f=[],d=0;d<u;d++)f.push(c+p*d);return f}function Dn(t){var e=t.min,n=t.max,i=t.tickInterval,r=t.minLimit,o=t.maxLimit,a=wn(t);return(0,S.UM)(r)&&(0,S.UM)(o)?i?In(e,n,i).ticks:a:Bn(t,(0,S.YM)(a),(0,S.Z$)(a))}function Pn(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var Ln=[1,5,2,2.5,4,3],On=100*Number.EPSILON;function Rn(t,e){return(t%e+e)%e}function zn(t){return Math.round(1e12*t)/1e12}function _n(t,e,n,i,r,o){var a=(0,S.dp)(e),s=(0,S.cq)(e,t),l=0,u=Rn(i,o);return(u<On||o-u<On)&&i<=0&&r>=0&&(l=1),1-s/(a-1)-n+l}function Un(t,e,n){var i=(0,S.dp)(e),r=(0,S.cq)(e,t),o=1;return 1-r/(i-1)-n+o}function Nn(t,e,n,i,r,o){var a=(t-1)/(o-r),s=(e-1)/(Math.max(o,i)-Math.min(n,r));return 2-Math.max(a/s,s/a)}function Vn(t,e){return t>=e?2-(t-1)/(e-1):1}function Yn(t,e,n,i){var r=e-t;return 1-.5*(Math.pow(e-i,2)+Math.pow(t-n,2))/Math.pow(.1*r,2)}function Hn(t,e,n){var i=e-t;if(n>i){var r=(n-i)/2;return 1-Math.pow(r,2)/Math.pow(.1*i,2)}return 1}function Xn(){return 1}function Gn(t,e,n,i,r,o){void 0===n&&(n=5),void 0===i&&(i=!0),void 0===r&&(r=Ln),void 0===o&&(o=[.25,.2,.5,.05]);var a=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!==typeof t||"number"!==typeof e||!a)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===a)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var s=n||5,l=(e-t)/s;return{min:t,max:e,ticks:Array(s).fill(null).map((function(e,n){return Pn(t+l*n)}))}}var u={score:-2,lmin:0,lmax:0,lstep:0},c=1;while(c<1/0){for(var h=0;h<r.length;h+=1){var p=r[h],f=Un(p,r,c);if(o[0]*f+o[1]+o[2]+o[3]<u.score){c=1/0;break}var d=2;while(d<1/0){var g=Vn(d,a);if(o[0]*f+o[1]+o[2]*g+o[3]<u.score)break;var v=(e-t)/(d+1)/c/p,m=Math.ceil(Math.log10(v));while(m<1/0){var y=c*p*Math.pow(10,m),x=Hn(t,e,y*(d-1));if(o[0]*f+o[1]*x+o[2]*g+o[3]<u.score)break;var b=Math.floor(e/y)*c-(d-1)*c,w=Math.ceil(t/y)*c;if(b<=w){s=w-b;for(var A=0;A<=s;A+=1){var C=b+A,M=C*(y/c),k=M+y*(d-1),E=y,F=_n(p,r,c,M,k,E),T=Yn(t,e,M,k),I=Nn(d,a,t,e,M,k),B=Xn(),D=o[0]*F+o[1]*T+o[2]*I+o[3]*B;D>u.score&&(!i||M<=t&&k>=e)&&(u.lmin=M,u.lmax=k,u.lstep=E,u.score=D)}}m+=1}d+=1}}c+=1}var P=Pn(u.lmax),L=Pn(u.lmin),O=Pn(u.lstep),R=Math.floor(zn((P-L)/O))+1,z=new Array(R);z[0]=Pn(L);for(h=1;h<R;h++)z[h]=Pn(z[h-1]+O);return{min:Math.min(t,(0,S.YM)(z)),max:Math.max(e,(0,S.Z$)(z)),ticks:z}}function Wn(t){var e=t.min,n=t.max,i=t.tickCount,r=t.nice,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,l=Gn(e,n,i,r).ticks;return(0,S.UM)(a)&&(0,S.UM)(s)?o?In(e,n,o).ticks:l:Bn(t,(0,S.YM)(l),(0,S.Z$)(l))}function jn(t){var e,n=t.base,i=t.tickCount,r=t.min,o=t.max,a=t.values,s=nn(n,o);if(r>0)e=Math.floor(nn(n,r));else{var l=rn(a,n,o);e=Math.floor(nn(n,l))}for(var u=s-e,c=Math.ceil(u/i),h=[],p=e;p<s+c;p+=c)h.push(Math.pow(n,p));return r<=0&&h.unshift(0),h}function Qn(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var r=1.5,o=.5+1.5*r,a=e-t,s=a/i,l=Math.pow(10,Math.floor(Math.log10(s))),u=l;2*l-s<r*(s-u)&&(u=2*l,5*l-s<o*(s-u)&&(u=5*l,10*l-s<r*(s-u)&&(u=10*l)));for(var c=Math.ceil(e/u),h=Math.floor(t/u),p=Math.max(c*u,e),f=Math.min(h*u,t),d=Math.floor((p-f)/u)+1,g=new Array(d),v=0;v<d;v++)g[v]=Pn(f+v*u);return{min:f,max:p,ticks:g}}function Zn(t){var e=t.exponent,n=t.tickCount,i=Math.ceil(en(e,t.max)),r=Math.floor(en(e,t.min)),o=Qn(r,i,n).ticks;return o.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}function qn(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function Jn(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),r=[],o=0;o<e;o++){var a=o/(e-1);r.push(qn(i,a))}return r}function Kn(t){var e=t.min,n=t.max,i=t.tickCount,r=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=Qn(e,n,i).ticks;return(0,S.UM)(o)&&(0,S.UM)(a)?r?In(e,n,r).ticks:s:Bn(t,(0,S.YM)(s),(0,S.Z$)(s))}function $n(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickInterval,o=t.tickCount;if(r)o=Math.ceil((n-e)/r);else{r=Qe(e,n,o)[1];var a=(n-e)/r,s=a/o;s>1&&(r*=Math.ceil(s)),i&&r<i&&(r=i)}r=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),r);for(var l=[],u=e;u<n+r;u+=r)l.push(u);return l}function ti(t){var e=bn((0,C.pi)({showLast:!0},t));return e}function ei(t){return new Date(t).getFullYear()}function ni(t){return new Date(t,0,1).getTime()}function ii(t){return new Date(t).getMonth()}function ri(t,e){var n=ei(t),i=ei(e),r=ii(t),o=ii(e);return 12*(i-n)+(o-r)%12}function oi(t,e){return new Date(t,e,1).getTime()}function ai(t,e){return Math.ceil((e-t)/Xe)}function si(t,e){return Math.ceil((e-t)/He)}function li(t,e){return Math.ceil((e-t)/6e4)}function ui(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickCount,o=t.tickInterval,a=[];o||(o=(n-e)/r,i&&o<i&&(o=i)),o=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),o);var s=ei(e);if(o>We)for(var l=ei(n),u=Math.ceil(o/We),c=s;c<=l+u;c+=u)a.push(ni(c));else if(o>Ge){var h=Math.ceil(o/Ge),p=ii(e),f=ri(e,n);for(c=0;c<=f+h;c+=h)a.push(oi(s,c+p))}else if(o>Xe){var d=new Date(e),g=d.getFullYear(),v=d.getMonth(),m=d.getDate(),y=Math.ceil(o/Xe),x=ai(e,n);for(c=0;c<x+y;c+=y)a.push(new Date(g,v,m+c).getTime())}else if(o>He){d=new Date(e),g=d.getFullYear(),v=d.getMonth(),y=d.getDate();var b=d.getHours(),w=Math.ceil(o/He),A=si(e,n);for(c=0;c<=A+w;c+=w)a.push(new Date(g,v,y,b+c).getTime())}else if(o>Ye){var C=li(e,n),S=Math.ceil(o/Ye);for(c=0;c<=C+S;c+=S)a.push(e+c*Ye)}else{var M=o;M<Ve&&(M=Ve);var k=Math.floor(e/Ve)*Ve,E=Math.ceil((n-e)/Ve),F=Math.ceil(M/Ve);for(c=0;c<E+F;c+=F)a.push(k+c*Ve)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a}te("cat",bn),te("time-cat",ti),te("wilkinson-extended",Wn),te("r-pretty",Kn),te("time",$n),te("time-pretty",ui),te("log",jn),te("pow",Zn),te("quantile",Jn),te("d3-linear",Dn),mn("cat",re),mn("category",re),mn("identity",xn),mn("linear",tn),mn("log",an),mn("pow",ln),mn("time",cn),mn("timeCat",qe),mn("quantize",pn),mn("quantile",dn);var ci={},hi=function(t){return ci[t.toLowerCase()]},pi=function(t,e){if(hi(t))throw new Error("Attribute type '"+t+"' existed.");ci[t.toLowerCase()]=e};pi("Color",Ht),pi("Opacity",Gt),pi("Position",jt),pi("Shape",Zt),pi("Size",Jt);var fi=n(9685);function di(){var t=new fi.WT(3);return fi.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function gi(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}(function(){var t=di()})();var vi=n(5600),mi=n(1506),yi=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,r=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=r,this.originalMatrix=(0,C.ev)([],r),this.isTransposed=a}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){(0,S.f0)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,i=this[e],r=i.start,o=i.end;return this.isReflect(e)&&(n=[o,r],r=n[0],o=n[1]),r+t*(o-r)},t.prototype.invertDim=function(t,e){var n,i=this[e],r=i.start,o=i.end;return this.isReflect(e)&&(n=[o,r],r=n[0],o=n[1]),(t-r)/(o-r)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=[t,e,n];return gi(r,r,i),r},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=vi.U_([0,0,0,0,0,0,0,0,0],i),o=[t,e,n];return r&&gi(o,o,r),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,i=e.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return mi.m$(e,e,[-n.x,-n.y]),mi.zu(e,e,t),mi.m$(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,i=this.center;return mi.m$(n,n,[-i.x,-i.y]),mi.lh(n,n,[t,e]),mi.m$(n,n,[i.x,i.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return mi.m$(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||(0,C.ev)([],this.originalMatrix)},t}(),xi=yi,bi=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return(0,C.ZT)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;return this.isTransposed&&(e=[i,n],n=e[0],i=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(i,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),i=this.invertDim(t.y,"y");return this.isTransposed&&(e=[i,n],n=e[0],i=e[1]),{x:n,y:i}},e}(xi),wi=bi,Ai=n(1437),Ci=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var i=e.startAngle,r=void 0===i?1.25*Math.PI:i,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=r,n.endAngle=a,n.innerRadius=l,n.radius=u,n.initial(),n}return(0,C.ZT)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;this.isTransposed&&(e=[i,n],n=e[0],i=e[1]);var r=this.convertDim(n,"x"),o=this.a*r,a=this.convertDim(i,"y");return{x:this.center.x+Math.cos(r)*(o+a),y:this.center.y+Math.sin(r)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,i=Ai.$X([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=mi.Dg(i,[1,0],!0),o=r*this.a;Ai.kE(i)<o&&(o=Ai.kE(i));var a=Math.floor((Ai.kE(i)-o)/n);r=2*a*Math.PI+r;var s=this.a*r,l=Ai.kE(i)-s;l=(0,S.vQ)(l,0)?0:l;var u=this.invertDim(r,"x"),c=this.invertDim(l,"y");return u=(0,S.vQ)(u,0)?0:u,c=(0,S.vQ)(c,0)?0:c,this.isTransposed&&(e=[c,u],u=e[0],c=e[1]),{x:u,y:c}},e}(xi),Si=Ci,Mi=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var i=e.startAngle,r=void 0===i?-Math.PI/2:i,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=r,n.endAngle=a,n.innerRadius=l,n.radius=u,n.initial(),n}return(0,C.ZT)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);while(this.endAngle<this.startAngle)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),i=n.maxX-n.minX,r=n.maxY-n.minY,o=Math.abs(n.minX)/i,a=Math.abs(n.minY)/r;this.height/r>this.width/i?(e=this.width/i,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*r}):(e=this.height/r,this.circleCenter={x:this.center.x-(.5-o)*e*i,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),i=t.x,r=t.y;return this.isTransposed&&(e=[r,i],i=e[0],r=e[1]),i=this.convertDim(i,"x"),r=this.convertDim(r,"y"),{x:n.x+Math.cos(i)*r,y:n.y+Math.sin(i)*r}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),i=[t.x-n.x,t.y-n.y],r=this,o=r.startAngle,a=r.endAngle;this.isReflect("x")&&(e=[a,o],o=e[0],a=e[1]);var s=[1,0,0,0,1,0,0,0,1];mi.zu(s,s,o);var l=[1,0,0];gi(l,l,s);var u=[l[0],l[1]],c=mi.Dg(u,i,a<o);(0,S.vQ)(c,2*Math.PI)&&(c=0);var h=Ai.kE(i),p=c/(a-o);p=a-o>0?p:-p;var f=this.invertDim(h,"y"),d={x:0,y:0};return d.x=this.isTransposed?f:p,d.y=this.isTransposed?p:f,d},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],i=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);r<Math.max(t,e);r+=Math.PI/18)n.push(Math.cos(r)),i.push(Math.sin(r));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}},e}(xi),ki=Mi,Ei={},Fi=function(t){return Ei[t.toLowerCase()]},Ti=function(t,e){Ei[t.toLowerCase()]=e};function Ii(t,e,n){var i=new K.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);var r=t.getParent();while(r)r.emitDelegation(e,i),i.propagationPath.push(r),r=r.getParent()}Ti("rect",wi),Ti("cartesian",wi),Ti("polar",ki),Ti("helix",Si);var Bi=[1,0,0,0,1,0,0,0,1];function Di(t,e,n){if(void 0===n&&(n=Bi),!e)return null;var i=mi.vs(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]);return i}function Pi(t,e){return t.x||t.y?mi.vs(e||Bi,[["t",t.x,t.y]]):null}function Li(t){var e=[1,0,0],n=[0,0,0];return gi(n,e,t),Math.atan2(n[1],n[0])}function Oi(t,e){var n=[0,0];return Ai.kK(n,e,t),n}function Ri(t,e){var n=Oi(t,[e.minX,e.minY]),i=Oi(t,[e.maxX,e.minY]),r=Oi(t,[e.minX,e.maxY]),o=Oi(t,[e.maxX,e.maxY]),a=Math.min(n[0],i[0],r[0],o[0]),s=Math.max(n[0],i[0],r[0],o[0]),l=Math.min(n[1],i[1],r[1],o[1]),u=Math.max(n[1],i[1],r[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:u,width:s-a,height:u-l}}function zi(t,e,n,i){if(e){var r=Di({x:n,y:i},e,t.getMatrix());t.setMatrix(r)}}function _i(t,e,n){var i=Pi({x:e,y:n});t.attr("matrix",i)}function Ui(t){var e=0,n=0,i=0,r=0;return(0,S.hj)(t)?e=n=i=r=t:(0,S.kJ)(t)&&(e=t[0],i=(0,S.UM)(t[1])?t[0]:t[1],r=(0,S.UM)(t[2])?t[0]:t[2],n=(0,S.UM)(t[3])?i:t[3]),[e,i,r,n]}function Ni(t){for(var e=t.childNodes,n=e.length,i=n-1;i>=0;i--)t.removeChild(e[i])}function Vi(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function Yi(t){var e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function Hi(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),i=Math.min.apply(Math,e),r=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function Xi(t,e,n,i){var r=t+n,o=e+i;return{x:t,y:e,width:n,height:i,minX:t,minY:e,maxX:isNaN(r)?0:r,maxY:isNaN(o)?0:o}}function Gi(t,e,n){return(1-n)*t+e*n}function Wi(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function ji(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}var Qi=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n};function Zi(t,e){var n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Xi(n,i,r-n,o-i)}function qi(t){var e,n=t.getClip(),i=n&&n.getBBox();if(t.isGroup()){var r=1/0,o=-1/0,a=1/0,s=-1/0,l=t.getChildren();l.length>0?(0,S.S6)(l,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=qi(t),n=t.applyToMatrix([e.minX,e.minY,1]),i=t.applyToMatrix([e.minX,e.maxY,1]),l=t.applyToMatrix([e.maxX,e.minY,1]),u=t.applyToMatrix([e.maxX,e.maxY,1]),c=Math.min(n[0],i[0],l[0],u[0]),h=Math.max(n[0],i[0],l[0],u[0]),p=Math.min(n[1],i[1],l[1],u[1]),f=Math.max(n[1],i[1],l[1],u[1]);c<r&&(r=c),h>o&&(o=h),p<a&&(a=p),f>s&&(s=f)}})):(r=0,o=0,a=0,s=0),e=Xi(r,a,o-r,s-a)}else e=t.getBBox();return i?Zi(e,i):e}function Ji(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var i={type:n.get("type"),attrs:n.attr()};t.setClip(i)}else t.setClip(null)}}function Ki(t){return t+"px"}function $i(t,e,n,i){var r=ji(t,e),o=i/r,a=0;return"start"===n?a=0-o:"end"===n&&(a=1+o),{x:Gi(t.x,e.x,a),y:Gi(t.y,e.y,a)}}var tr={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},er=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};(0,S.S6)(t,(function(t,i){var r=e.get(i),o=t;r!==t&&((0,S.Kn)(t)&&n[i]&&(o=(0,S.b$)({},n[i],t)),e.set(i,o))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){(0,S.wH)(t,"visible")&&(t.visible?this.show():this.hide()),(0,S.wH)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=(0,C.pi)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),i=tr[n];return(0,S.S6)(i,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");(0,S.S6)(e,(function(e,n){var i=t.get(n);if((0,S.Kn)(i)){var r=(0,S.b$)({},e,i);t.set(n,r)}}))},e}(K.Base),nr=er,ir="update_status",rr=["visible","tip","delegateObject"],or=["container","group","shapesMap","isRegister","isUpdating","destroyed"],ar=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t),n=e&&e.get("component");return n},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return(0,S.S6)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.get("group");e.set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Ri(n,e)),e},e.prototype.on=function(t,e,n){var i=this.get("group");return i.on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){var n=this.get("group");n.emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Ii(n,t,e)},e.prototype.createOffScreenGroup=function(){var t=this.get("group"),e=t.getGroupBase(),n=new e({delegateObject:this.getDelegateObject()});return n},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",qi(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,i=e.component,r=(0,C._T)(e,["id","component"]),o=new i((0,C.pi)((0,C.pi)({},r),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t=this.get("group");t.off()},e.prototype.getElementId=function(t){var e=this.get("id"),n=this.get("name");return e+"-"+n+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Pi(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var i=e.attr("opacity");(0,S.UM)(i)&&(i=1),e.attr("opacity",0),e.animate({opacity:i},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,i){e.animate(n,i)},e.prototype.updateElements=function(t,e){var n,i=this,r=this.get("animate"),o=this.get("animateOption"),a=t.getChildren().slice(0);(0,S.S6)(a,(function(t){var a=t.get("id"),s=i.getElementById(a),l=t.get("name");if(s)if(t.get("isComponent")){var u=t.get("component"),c=s.get("component"),h=(0,S.ei)(u.cfg,(0,S.e5)((0,S.XP)(u.cfg),or));c.update(h),s.set(ir,"update")}else{var p=i.getReplaceAttrs(s,t);r&&o.update?i.updateAnimation(l,s,p,o.update):s.attr(p),t.isGroup()&&i.updateElements(t,s),(0,S.S6)(rr,(function(e){s.set(e,t.get(e))})),Ji(s,t),n=s,s.set(ir,"update")}else{e.add(t);var f=e.getChildren();if(f.splice(f.length-1,1),n){var d=f.indexOf(n);f.splice(d+1,0,t)}else f.unshift(t);if(i.registerElement(t),t.set(ir,"add"),t.get("isComponent")){u=t.get("component");u.set("container",e)}else t.isGroup()&&i.registerNewGroup(t);if(n=t,r){var g=i.get("isInit")?o.appear:o.enter;g&&i.addAnimation(l,t,g)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();(0,S.S6)(e,(function(t){t.set(ir,null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,e=this.get("name"),n=(t={},t[e]=this,t.component=this,t);return n},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),(0,S.CD)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return(0,S.S6)(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();(0,S.S6)(n,(function(t){e.registerElement(t),t.set(ir,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];(0,S.S6)(e,(function(t,e){!t.get(ir)||t.destroyed?n.push([e,t]):t.set(ir,null)}));var i=this.get("animate"),r=this.get("animateOption");(0,S.S6)(n,(function(n){var o=n[0],a=n[1];if(!a.destroyed){var s=a.get("name");if(i&&r.leave){var l=(0,S.CD)({callback:function(){t.removeElement(a)}},r.leave);t.removeAnimation(s,a,l)}else t.removeElement(a)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(nr),sr=ar,lr="…";function ur(t){for(var e=0,n=0;n<t.length;n++)e+=cr(t,n);return e}function cr(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function hr(t,e,n){void 0===n&&(n="tail");var i=t.length,r="";if("tail"===n){for(var o=0,a=0;o<e;){var s=cr(t,a);if(!(o+s<=e))break;r+=t[a],o+=cr(t,a),a++}r+=lr}else if("head"===n){for(o=0,a=i-1;o<e;){s=cr(t,a);if(!(o+s<=e))break;r+=t[a],o+=cr(t,a),a--}r=lr+r}else{for(var l="",u="",c=(o=0,0),h=i-1;o<e;){var p=cr(t,c),f=!1;p+o<=e&&(l+=t[c],c++,o+=p,f=!0);var d=cr(t,h);if(d+o<=e&&(u=t[h]+u,o+=d,h--,f=!0),!f)break}r=l+lr+u}return r}var pr="…",fr=2,dr=400;function gr(t){for(var e=t.map((function(t){var e=t.attr("text");return(0,S.UM)(e)?"":""+e})),n=0,i=0,r=0;r<e.length;r+=1){for(var o=0,a=0;a<=e[r].length;a+=1){var s=e[r].charCodeAt(a);o+=s>=19968&&s<=40869?2:1}o>n&&(n=o,i=r)}return t[i].getBBox().width}function vr(t){if(t.length>dr)return gr(t);var e=0;return(0,S.S6)(t,(function(t){var n=t.getBBox(),i=n.width;e<i&&(e=i)})),e}function mr(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}function yr(t,e,n,i){var r;void 0===i&&(i="tail");var o=null!==(r=e.attr("text"))&&void 0!==r?r:"";if("tail"===i){var a=(0,S.ei)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),s=(0,S.Lo)(o,n,a,"…");return o!==s?(e.attr("text",s),e.set("tip",o),!0):(e.set("tip",null),!1)}var l=mr(t,e),u=ur(o),c=!1;if(n<l){var h=Math.floor(n/l*u)-fr,p=void 0;p=h>=0?hr(o,h,i):pr,p&&(e.attr("text",p),c=!0)}return c?e.set("tip",o):e.set("tip",null),c}function xr(t,e){var n=e.x,i=e.y,r=e.content,o=e.style,a=e.id,s=e.name,l=e.rotate,u=e.maxLength,c=e.autoEllipsis,h=e.isVertical,p=e.ellipsisPosition,f=e.background,d=t.addGroup({id:a+"-group",name:s+"-group",attrs:{x:n,y:i}}),g=d.addShape({type:"text",id:a,name:s,attrs:(0,C.pi)({x:0,y:0,text:r},o)}),v=Ui((0,S.U2)(f,"padding",0));if(u&&c){var m=u-(v[1]+v[3]);yr(!h,g,m,p)}if(f){var y=(0,S.U2)(f,"style",{}),x=g.getCanvasBBox(),b=x.minX,w=x.minY,A=x.width,M=x.height,k=d.addShape("rect",{id:a+"-bg",name:a+"-bg",attrs:(0,C.pi)({x:b-v[3],y:w-v[0],width:A+v[1]+v[3],height:M+v[0]+v[2]},y)});k.toBack()}_i(d,n,i),zi(d,l,n,i)}var br={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},wr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:br.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:br.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:br.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,C.pi)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},i)})},e.prototype.getLabelPoint=function(t,e,n){var i;return i="start"===n?0:"center"===n?.5:(0,S.HD)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:(0,S.hj)(n)?n:1,(i>1||i<0)&&(i=1),{x:Gi(t.x,e.x,i),y:Gi(t.y,e.y,i)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),i=this.get("end"),r=e.position,o=e.content,a=e.style,s=e.offsetX,l=e.offsetY,u=e.autoRotate,c=e.maxLength,h=e.autoEllipsis,p=e.ellipsisPosition,f=e.background,d=e.isVertical,g=void 0!==d&&d,v=this.getLabelPoint(n,i,r),m=v.x+s,y=v.y+l,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:y,content:o,style:a,maxLength:c,autoEllipsis:h,ellipsisPosition:p,background:f,isVertical:g};if(u){var b=[i.x-n.x,i.y-n.y];x.rotate=Math.atan2(b[1],b[0])}xr(t,x)},e}(sr),Ar=wr,Cr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:br.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:br.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,i=e.y,r=this.get("content"),o=this.get("style"),a=this.getElementId("text"),s=this.get("name")+"-text",l=this.get("maxLength"),u=this.get("autoEllipsis"),c=this.get("isVertical"),h=this.get("ellipsisPosition"),p=this.get("background"),f=this.get("rotate"),d={id:a,name:s,x:n,y:i,content:r,style:o,maxLength:l,autoEllipsis:u,isVertical:c,ellipsisPosition:h,background:p,rotate:f};xr(t,d)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,i=e.y,r=this.get("rotate");_i(t,n,i),zi(t,r,n,i)}},e}(sr),Sr=Cr,Mr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,o=Wi(e,n,i),a=Wi(e,n,r),s=r-i>Math.PI?1:0,l=[["M",o.x,o.y]];if(r-i===2*Math.PI){var u=Wi(e,n,i+Math.PI);l.push(["A",n,n,0,s,1,u.x,u.y]),l.push(["A",n,n,0,s,1,a.x,a.y])}else l.push(["A",n,n,0,s,1,a.x,a.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,C.pi)({path:e},n)})},e}(sr),kr=Mr,Er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:br.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style"),r=Yi({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,C.pi)({x:r.x,y:r.y,width:r.width,height:r.height},i)})},e}(sr),Fr=Er,Tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),i=Yi({start:t,end:e}),r=this.get("src");return(0,C.pi)({x:i.x,y:i.y,img:r,width:i.width,height:i.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(sr),Ir=Tr,Br=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:br.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:br.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:br.fontFamily}}}})},e.prototype.renderInner=function(t){(0,S.U2)(this.get("line"),"display")&&this.renderLine(t),(0,S.U2)(this.get("text"),"display")&&this.renderText(t),(0,S.U2)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,i=e.y,r=e.text,o=(0,C._T)(e,["x","y","text"]),a=this.get("text"),s=a.background,l=a.maxLength,u=a.autoEllipsis,c=a.isVertival,h=a.ellipsisPosition,p={x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:r,style:o,background:s,maxLength:l,autoEllipsis:u,isVertival:c,ellipsisPosition:h};xr(t,p)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),i=this.get("y"),r=(0,S.U2)(this.get("line"),"length",0),o=this.get("coordinateBBox"),a=t.getBBox(),s=a.minX,l=a.maxX,u=a.minY,c=a.maxY,h=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),f=t.findById(this.getElementId("line"));if(o){if(h){if(n+s<=o.minX){var d=o.minX-(n+s);_i(h,h.attr("x")+d,h.attr("y"))}if(n+l>=o.maxX){d=n+l-o.maxX;_i(h,h.attr("x")-d,h.attr("y"))}}if("upward"===e&&i+u<=o.minY||"upward"!==e&&i+c>=o.maxY){var g=void 0,v=void 0;"upward"===e&&i+u<=o.minY?(g="top",v=1):(g="bottom",v=-1),p.attr("textBaseline",g),f&&f.attr("path",[["M",0,0],["L",0,r*v]]),_i(h,h.attr("x"),(r+2)*v)}}},e.prototype.getShapeAttrs=function(){var t=(0,S.U2)(this.get("line"),"display"),e=(0,S.U2)(this.get("point"),"style",{}),n=(0,S.U2)(this.get("line"),"style",{}),i=(0,S.U2)(this.get("text"),"style",{}),r=this.get("direction"),o=t?(0,S.U2)(this.get("line"),"length",0):0,a="upward"===r?-1:1;return{point:(0,C.pi)({x:0,y:0},e),line:(0,C.pi)({path:[["M",0,0],["L",0,o*a]]},n),text:(0,C.pi)({x:0,y:(o+2)*a,text:(0,S.U2)(this.get("text"),"content",""),textBaseline:"upward"===r?"bottom":"top"},i)}},e}(sr),Dr=Br,Pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:br.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:br.textColor,fontFamily:br.fontFamily}}}})},e.prototype.renderInner=function(t){var e=(0,S.U2)(this.get("region"),"style",{}),n=((0,S.U2)(this.get("text"),"style",{}),this.get("lineLength")||0),i=this.get("points");if(i.length){var r=Hi(i),o=[];o.push(["M",i[0].x,r.minY-n]),i.forEach((function(t){o.push(["L",t.x,t.y])})),o.push(["L",i[i.length-1].x,i[i.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,C.pi)({path:o},e)});var a=(0,C.pi)({id:this.getElementId("text"),name:"annotation-text",x:(r.minX+r.maxX)/2,y:r.minY-n},this.get("text"));xr(t,a)}},e}(sr),Lr=Pr,Or=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),i=this.get("end"),r=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,S.S6)(this.get("shapes"),(function(t,n){var i=t.get("type"),o=(0,S.d9)(t.attr());e.adjustShapeAttrs(o),e.addShape(r,{id:e.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:o})}));var o=Yi({start:n,end:i});r.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(sr),Rr=Or,zr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"annotation",type:"shape",draw:S.ZT})},e.prototype.renderInner=function(t){var e=this.get("render");(0,S.mf)(e)&&e(t)},e}(sr),_r=zr;function Ur(t,e,n){var i;try{i=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(r){}finally{i=void 0===i?n:i}return i}function Nr(t,e){var n=Ur(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function Vr(t,e){var n=Nr(t,e),i=parseFloat(Ur(t,"borderLeftWidth"))||0,r=parseFloat(Ur(t,"paddingLeft"))||0,o=parseFloat(Ur(t,"paddingRight"))||0,a=parseFloat(Ur(t,"borderRightWidth"))||0,s=parseFloat(Ur(t,"marginRight"))||0,l=parseFloat(Ur(t,"marginLeft"))||0;return n+i+a+r+o+l+s}function Yr(t,e){var n=Ur(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function Hr(t,e){var n=Yr(t,e),i=parseFloat(Ur(t,"borderTopWidth"))||0,r=parseFloat(Ur(t,"paddingTop"))||0,o=parseFloat(Ur(t,"paddingBottom"))||0,a=parseFloat(Ur(t,"borderBottomWidth"))||0,s=parseFloat(Ur(t,"marginTop"))||0,l=parseFloat(Ur(t,"marginBottom"))||0;return n+i+a+r+o+s+l}var Xr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.getContainer(),n=t?"auto":"none";e.style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Xi(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Ni(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if((0,S.UM)(t)){t=this.createDom();var e=this.get("parent");(0,S.HD)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,S.HD)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?(0,S.b$)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Vi(e,n)){var i=t[n];X(e,i)}}},e.prototype.applyChildrenStyles=function(t,e){(0,S.S6)(e,(function(e,n){var i=t.getElementsByClassName(n);(0,S.S6)(i,(function(t){X(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");X(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return H(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){(0,S.wH)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(nr),Gr=Xr,Wr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Ni(t);var n=(0,S.mf)(e)?e(t):e;if((0,S.kK)(n))t.appendChild(n);else if((0,S.HD)(n)||(0,S.hj)(n)){var i=H(""+n);i&&t.appendChild(i)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,i=e.y,r=this.get("alignX"),o=this.get("alignY"),a=this.get("offsetX"),s=this.get("offsetY"),l=Vr(t),u=Hr(t),c={x:n,y:i};"middle"===r?c.x-=Math.round(l/2):"right"===r&&(c.x-=Math.round(l)),"middle"===o?c.y-=Math.round(u/2):"bottom"===o&&(c.y-=Math.round(u)),a&&(c.x+=a),s&&(c.y+=s),X(t,{position:"absolute",left:c.x+"px",top:c.y+"px",zIndex:this.get("zIndex")})},e}(Gr),jr=Wr;function Qr(t,e,n){var i=e+"Style",r=null;return(0,S.S6)(n,(function(e,n){t[n]&&e[i]&&(r||(r={}),(0,S.CD)(r,e[i]))})),r}var Zr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:br.lineColor}},tickLine:{style:{lineWidth:1,stroke:br.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:br.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:br.textColor,fontFamily:br.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:br.textColor,textBaseline:"middle",fontFamily:br.fontFamily,textAlign:"center"},iconStyle:{fill:br.descriptionIconFill,stroke:br.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:br.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){(0,S.CD)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return(0,S.S6)(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);(0,S.S6)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return(0,S.hX)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this,i=n.getSideVector(e,t);return{x:t.x+i[0],y:t.y+i[1]}},e.prototype.getTextAnchor=function(t){var e;return(0,S.vQ)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return(0,S.vQ)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,S.CD)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],i=this.get("tickLine"),r=i.alignTick,o=i.length,a=1,s=t.length;return s>=2&&(a=t[1].value-t[0].value),(0,S.S6)(t,(function(t){var i=t.point;r||(i=e.getTickPoint(t.value-a/2));var s=e.getSidePoint(i,o);n.push({startPoint:i,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),i=n.count,r=t.length;if(r>=2)for(var o=0;o<r-1;o++)for(var a=t[o],s=t[o+1],l=0;l<i;l++){var u=(l+1)/(i+1),c=(1-u)*a.tickValue+u*s.tickValue,h=this.getTickPoint(c),p=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:p,tickValue:c,id:"sub-"+a.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e,n,i){var r=this.get(e).style,o={points:[t.startPoint,t.endPoint]},a=(0,S.U2)(this.get("theme"),["tickLine","style"],{});r=(0,S.mf)(r)?(0,S.CD)({},a,r(o,n,i)):r;var s=t.startPoint,l=t.endPoint;return(0,C.pi)({x1:s.x,y1:s.y,x2:l.x,y2:l.y},r)},e.prototype.drawTick=function(t,e,n,i,r){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,i,r)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),i=this.get("subTickLine"),r=this.getTickLineItems(n),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if((0,S.S6)(r,(function(n,i){if(a.displayWithLabel){var s=e.getElementId("label-"+n.tickId);t.findById(s)&&e.drawTick(n,o,"tickLine",i,r)}else e.drawTick(n,o,"tickLine",i,r)})),i){var s=this.getSubTickLineItems(r);(0,S.S6)(s,(function(t,n){e.drawTick(t,o,"subTickLine",n,s)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");(0,S.S6)(e,(function(e){e.point=t.getTickPoint(e.value),(0,S.UM)(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");(0,S.S6)(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=(0,S.dp)(e);if(n>t.threshold){var i=Math.ceil(n/t.threshold),r=e.filter((function(t,e){return e%i===0}));this.set("ticks",r),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var i=this.get("label"),r=i.offset,o=i.offsetX,a=i.offsetY,s=i.rotate,l=i.formatter,u=this.getSidePoint(t.point,r),c=this.getSideVector(r,u),h=l?l(t.name,t,e):t.name,p=i.style;p=(0,S.mf)(p)?(0,S.U2)(this.get("theme"),["label","style"],{}):p;var f=(0,S.CD)({x:u.x+o,y:u.y+a,text:h,textAlign:this.getTextAnchor(c),textBaseline:this.getTextBaseline(c)},p);return s&&(f.matrix=Di(u,s)),f},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),i=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,S.S6)(n,(function(t,r){e.addShape(i,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,r,n),delegateObject:{tick:t,item:t,index:r}})})),this.processOverlap(i);var r=i.getChildren(),o=(0,S.U2)(this.get("theme"),["label","style"],{}),a=this.get("label"),s=a.style,l=a.formatter;if((0,S.mf)(s)){var u=r.map((function(t){return(0,S.U2)(t.get("delegateObject"),"tick")}));(0,S.S6)(r,(function(t,e){var n=t.get("delegateObject").tick,i=l?l(n.name,n,e):n.name,r=(0,S.CD)({},o,s(i,e,u));t.attr(r)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,i=t.offset,r=t.spacing,o=void 0===r?0:r,a=t.autoRotate,s=e.fontSize,l=.5;"start"===n?l=0:"end"===n&&(l=1);var u=this.getTickPoint(l),c=this.getSidePoint(u,i||o+s/2),h=(0,S.CD)({x:c.x,y:c.y,text:t.text},e),p=t.rotate,f=p;if((0,S.UM)(p)&&a){var d=this.getAxisVector(u),g=[1,0];f=mi.Dg(d,g,!0)}if(f){var v=Di(c,f);h.matrix=v}return h},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),i=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,i,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var i=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),r=e.getBBox(),o=r.maxX,a=r.maxY,s=r.height,l=this.get("title").iconStyle,u=4,c=s/2,h=c/6,p=o+u,f=a-s/2,d=[p+c,f-c],g=d[0],v=d[1],m=[g+c,v+c],y=m[0],x=m[1],b=[g,x+c],w=b[0],A=b[1],S=[p,v+c],M=S[0],k=S[1],E=[p+c,f-s/4],F=E[0],T=E[1],I=[F,T+h],B=I[0],D=I[1],P=[B,D+h],L=P[0],O=P[1],R=[L,O+3*c/4],z=R[0],_=R[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,C.pi)({path:[["M",g,v],["A",c,c,0,0,1,y,x],["A",c,c,0,0,1,w,A],["A",c,c,0,0,1,M,k],["A",c,c,0,0,1,g,v],["M",F,T],["L",B,D],["M",L,O],["L",z,_]],lineWidth:h,matrix:n},l)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:p,y:f-s/2,width:s,height:s,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){var n=this.getItemStates(t);if(n.length){var i=this.get("tickStates"),r=this.getElementId("label-"+t.id),o=e.findById(r);if(o){var a=Qr(t,"label",i);a&&o.attr(a)}var s=this.getElementId("tickline-"+t.id),l=e.findById(s);if(l){var u=Qr(t,"tickLine",i);u&&l.attr(u)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),i=this.get("label"),r=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=Qr(t,"label",n);s&&r.attr(s)}if(a){var l=Qr(t,"tickLine",n);l&&a.attr(l)}}else r&&r.attr(i.style),a&&a.attr(o.style)},e}(sr),qr=Zr;function Jr(t,e,n,i){var r=e.getChildren(),o=!1;return(0,S.S6)(r,(function(e){var r=yr(t,e,n,i);o=o||r})),o}function Kr(){return to}function $r(t,e,n){return Jr(t,e,n,"head")}function to(t,e,n){return Jr(t,e,n,"tail")}function eo(t,e,n){return Jr(t,e,n,"middle")}function no(t){var e=t.attr("matrix");return e&&1!==e[0]}function io(t){var e=no(t)?Li(t.attr("matrix")):0;return e%360}function ro(t,e,n,i){var r=!1,o=io(e),a=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),s=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var l=Math.abs(Math.cos(o));r=Qi(l,0,Math.PI/180)?s.width+i>a:s.height/l+i>a}else{l=Math.abs(Math.sin(o));r=Qi(l,0,Math.PI/180)?s.width+i>a:s.height/l+i>a}return r}function oo(t,e,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var s=o.length,l=o[0],u=l,c=1;c<s;c++){var h=o[c],p=(h.getBBox(),ro(t,u,h,r));p?(h.hide(),a=!0):u=h}return a}function ao(t,e,n){var i=(null===n||void 0===n?void 0:n.minGap)||0,r=e.getChildren().slice();if(r.length<2)return!1;var o=!1,a=r[0],s=a.getBBox(),l=r[1],u=r.length,c=io(a),h=t?Math.abs(l.attr("y")-a.attr("y")):Math.abs(l.attr("x")-a.attr("x")),p=0;if(t){var f=Math.abs(Math.cos(c));if(Qi(f,0,Math.PI/180)){var d=vr(r);p=(d+i)/h}else p=(s.height/f+i)/h}else{f=Math.abs(Math.sin(c));if(Qi(f,0,Math.PI/180)){d=vr(r);p=(d+i)/h}else p=(s.height/f+i)/h}if(p>1){p=Math.ceil(p);for(var g=0;g<u;g++)g%p!==0&&(r[g].hide(),o=!0)}return o}function so(){return ho}function lo(t,e,n,i){return oo(t,e,!1,i)}function uo(t,e,n,i){return oo(t,e,!0,i)}function co(t,e,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,o=e.getChildren().slice();if(o.length<=2)return!1;for(var a=!1,s=o.length,l=o[0],u=o[s-1],c=l,h=1;h<s-1;h++){var p=o[h],f=(p.getBBox(),ro(t,c,p,r));f?(p.hide(),a=!0):c=p}var d=ro(t,c,u,r);return d&&(c.hide(),a=!0),a}function ho(t,e,n,i){var r=ao(t,e,i);return oo(t,e,!1)&&(r=!0),r}function po(t,e,n,i){var r=e.getChildren().slice(),o=ao(t,e,i);if(r.length>2){var a=r[0],s=r[r.length-1];a.get("visible")||(a.show(),oo(t,e,!1,i)&&(o=!0)),s.get("visible")||(s.show(),oo(t,e,!0,i)&&(o=!0))}return o}function fo(t,e){(0,S.S6)(t,(function(t){var n=t.attr("x"),i=t.attr("y"),r=Di({x:n,y:i},e);t.attr("matrix",r)}))}function go(t,e,n,i){var r=e.getChildren();if(!r.length)return!1;if(!t&&r.length<2)return!1;var o=vr(r),a=!1;if(t)a=!!n&&o>n;else{var s=Math.abs(r[1].attr("x")-r[0].attr("x"));a=o>s}if(a){var l=i(n,o);fo(r,l)}return a}function vo(){return mo}function mo(t,e,n,i){return go(t,e,n,(function(){return(0,S.hj)(i)?i:t?br.verticalAxisRotate:br.horizontalAxisRotate}))}function yo(t,e,n){return go(t,e,n,(function(e,n){if(!e)return t?br.verticalAxisRotate:br.horizontalAxisRotate;if(t)return-Math.acos(e/n);var i=0;return e>n?i=Math.PI/4:(i=Math.asin(e/n),i>Math.PI/4&&(i=Math.PI/4)),i}))}var xo,bo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),i=t.prototype.getInnerLayoutBBox.call(this),r=Math.min(e.x,n.x,i.x),o=Math.min(e.y,n.y,i.y),a=Math.max(e.x,n.x,i.maxX),s=Math.max(e.y,n.y,i.maxY);return{x:r,y:o,minX:r,minY:o,maxX:a,maxY:s,width:a-r,height:s-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return(0,S.vQ)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return(0,S.vQ)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this,n=e.get("start"),i=e.get("end"),r=i.x-n.x,o=i.y-n.y;return{x:n.x+r*t,y:n.y+o*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=Ai.Fv([0,0],e),i=this.get("verticalFactor"),r=[n[1],-1*n[0]];return Ai.bA([0,0],r,t*i)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),i=this.isHorizontal();if(n||i){var r=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),s=r.offset,l=a,u=0,c=0;o&&(u=o.style.fontSize,c=o.spacing),l&&(l=l-s-c-u);var h=this.get("overlapOrder");if((0,S.S6)(h,(function(n){r[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,r[n],t,l)})),o&&(0,S.UM)(o.offset)){var p=t.getCanvasBBox(),f=n?p.width:p.height;o.offset=s+f+c+u/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,S.UM)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,o=this.isVertical(),a=!1,s=l[t];if(!0===e){this.get("label");a=s.getDefault()(o,n,i)}else if((0,S.mf)(e))a=e(o,n,i);else if((0,S.Kn)(e)){var u=e;s[u.type]&&(a=s[u.type](o,n,i,u.cfg))}else s[e]&&(a=s[e](o,n,i));if("autoRotate"===t){if(a){var c=n.getChildren(),h=this.get("verticalFactor");(0,S.S6)(c,(function(t){var e=t.attr("textAlign");if("center"===e){var n=h>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);(0,S.S6)(p,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(qr),wo=bo,Ao=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,i=this.get("radius"),r=i,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===2*Math.PI)s=[["M",e,n-r],["A",i,r,0,1,1,e,n+r],["A",i,r,0,1,1,e,n-r],["Z"]];else{var l=this.getCirclePoint(o),u=this.getCirclePoint(a),c=Math.abs(a-o)>Math.PI?1:0,h=o>a?0:1;s=[["M",e,n],["L",l.x,l.y],["A",i,r,0,c,h,u.x,u.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=this.get("endAngle"),i=e+(n-e)*t;return this.getCirclePoint(i)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y],r=this.get("verticalFactor"),o=Ai.kE(i);return Ai.bA(i,i,r*t/o),i},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,S.UM)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),i=this.get("title"),r=this.get("verticalLimitLength"),o=n.offset,a=r,s=0,l=0;i&&(s=i.style.fontSize,l=i.spacing),a&&(a=a-o-l-s);var u=this.get("overlapOrder");if((0,S.S6)(u,(function(i){n[i]&&e.canProcessOverlap(i)&&e.autoProcessOverlap(i,n[i],t,a)})),i&&(0,S.UM)(i.offset)){var c=t.getCanvasBBox().height;i.offset=o+c+l+s/2}},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,o=!1,a=l[t];if(i>0)if(!0===e)o=a.getDefault()(!1,n,i);else if((0,S.mf)(e))o=e(!1,n,i);else if((0,S.Kn)(e)){var s=e;a[s.type]&&(o=a[s.type](!1,n,i,s.cfg))}else a[e]&&(o=a[e](!1,n,i));if("autoRotate"===t){if(o){var u=n.getChildren(),c=this.get("verticalFactor");(0,S.S6)(u,(function(t){var e=t.attr("textAlign");if("center"===e){var n=c>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var h=n.getChildren().slice(0);(0,S.S6)(h,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(qr),Co=Ao,So=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:br.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:br.textColor,textAlign:"center",textBaseline:"middle",fontFamily:br.fontFamily}},textBackground:{padding:5,style:{stroke:br.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,i=e.autoRotate,r=e.content;if(!(0,S.UM)(r)){var o=this.getTextPoint(),a=null;if(i){var s=this.getRotateAngle();a=Di(o,s)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,C.pi)((0,C.pi)((0,C.pi)({},o),{text:r,matrix:a}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line"),i=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,C.pi)({path:e},i)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),i=this.get("textBackground");if(i&&n){var r=n.getBBox(),o=Ui(i.padding),a=i.style,s=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,C.pi)({x:r.x-o[3],y:r.y-o[0],width:r.width+o[1]+o[3],height:r.height+o[0]+o[2],matrix:n.attr("matrix")},a)});s.toBack()}},e}(sr),Mo=So,ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text").position,r=Math.atan2(n.y-e.y,n.x-e.x),o="start"===i?r-Math.PI/2:r+Math.PI/2;return o},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,o=i.offset;return $i(e,n,r,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(Mo),Eo=ko,Fo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle,i=this.get("text").position,r="start"===i?e+Math.PI/2:n-Math.PI/2;return r},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,i=this.getLocation(),r=i.center,o=i.radius,a=i.startAngle,s=i.endAngle,l="start"===e?a:s,u=this.getRotateAngle()-Math.PI,c=Wi(r,o,l),h=Math.cos(u)*n,p=Math.sin(u)*n;return{x:c.x+h,y:c.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,o=null;if(r-i===2*Math.PI){var a=e.x,s=e.y;o=[["M",a,s-n],["A",n,n,0,1,1,a,s+n],["A",n,n,0,1,1,a,s-n],["Z"]]}else{var l=Wi(e,n,i),u=Wi(e,n,r),c=Math.abs(r-i)>Math.PI?1:0,h=i>r?0:1;o=[["M",l.x,l.y],["A",n,n,0,c,h,u.x,u.y]]}return o},e}(Mo),To=Fo,Io="g2-crosshair",Bo=Io+"-line",Do=Io+"-text",Po=(xo={},xo[""+Io]={position:"relative"},xo[""+Bo]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},xo[""+Do]={position:"absolute",color:br.textColor,fontFamily:br.fontFamily},xo),Lo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+Io+'"></div>',crosshairTpl:'<div class="'+Bo+'"></div>',textTpl:'<span class="'+Do+'">{content}</span>',domStyles:null,containerClassName:Io,defaultStyles:Po,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=H(e);t.appendChild(n),this.applyStyle(Bo,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,o=i.offset;return $i(e,n,r,o)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var i=this.getContainer(),r=(0,S.ng)(this.get("textTpl"),t);e=H(r),i.appendChild(e),this.applyStyle(Do,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),i=Math.min(e.x,n.x),r=Math.min(e.y,n.y);this.isVertical(e,n)?X(t,{width:"1px",height:Ki(Math.abs(n.y-e.y))}):X(t,{height:"1px",width:Ki(Math.abs(n.x-e.x))}),X(t,{top:Ki(r),left:Ki(i)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,i=this.getTextPoint();switch(e){case"center":i.x=i.x-n/2;break;case"right":i.x=i.x-n;case"left":break}X(t,{top:Ki(i.y),left:Ki(i.x)})}},e.prototype.updateInner=function(e){(0,S.wH)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(Gr),Oo=Lo,Ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:br.lineColor}}}})},e.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),i=e.slice(0).reverse(),r=this.getGridPath(i,!0),o=this.get("closed");return o?n=n.concat(r):(r[0][0]="L",n=n.concat(r),n.push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),i=this.get("items"),r=this.get("alternateColor"),o=null;(0,S.S6)(i,(function(a,s){var l=a.id||s;if(n){var u=e.getPathStyle();u=(0,S.mf)(u)?u(a,s,i):u;var c=e.getElementId("line-"+l),h=e.getGridPath(a.points);e.addShape(t,{type:"path",name:"grid-line",id:c,attrs:(0,S.CD)({path:h},u)})}if(r&&s>0){var p=e.getElementId("region-"+l),f=s%2===0;if((0,S.HD)(r))f&&e.drawAlternateRegion(p,t,o.points,a.points,r);else{var d=f?r[1]:r[0];e.drawAlternateRegion(p,t,o.points,a.points,d)}}o=a}))},e.prototype.drawAlternateRegion=function(t,e,n,i,r){var o=this.getAlternatePath(n,i);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:r}})},e}(sr),zo=Ro;function _o(t,e,n,i){var r=n-t,o=i-e;return Math.sqrt(r*r+o*o)}var Uo,No=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),i=this.get("closed"),r=[];if(t.length)if("circle"===n){var o=this.get("center"),a=t[0],s=_o(o.x,o.y,a.x,a.y),l=e?0:1;i?(r.push(["M",o.x,o.y-s]),r.push(["A",s,s,0,0,l,o.x,o.y+s]),r.push(["A",s,s,0,0,l,o.x,o.y-s]),r.push(["Z"])):(0,S.S6)(t,(function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["A",s,s,0,0,l,t.x,t.y])}))}else(0,S.S6)(t,(function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])})),i&&r.push(["Z"]);return r},e}(zo),Vo=No,Yo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return(0,S.S6)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(zo),Ho=Yo,Xo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),i=this.get("maxHeight"),r=e.width,o=e.height;return n&&(r=Math.min(r,n)),i&&(o=Math.min(o,i)),Xi(e.minX,e.minY,r,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+i})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),i=Ui(e.padding),r=(0,C.pi)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style),o=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:r});o.toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,r=n.style,o=n.text,a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,C.pi)({text:o,x:e.x,y:e.y},r)}),s=a.getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Ui(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(sr),Go=Xo,Wo={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},jo={fill:br.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:br.fontFamily,fontWeight:"normal",lineHeight:12},Qo="navigation-arrow-right",Zo="navigation-arrow-left",qo={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},Jo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:br.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:br.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:Wo,itemName:{spacing:16,style:jo},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:jo,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:br.uncheckedColor},markerStyle:{fill:br.uncheckedColor,stroke:br.uncheckedColor}},inactive:{nameStyle:{fill:br.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){(0,S.CD)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var i=this.getElementByLocalId("item-"+t.id);if(i){var r=this.getItems(),o=r.indexOf(t),a=this.createOffScreenGroup(),s=this.drawItem(t,o,this.getItemHeight(),a);this.updateElements(s,i),this.clearUpdateStatus(i)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return(0,S.S6)(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);(0,S.S6)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return(0,S.hX)(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");(0,S.S6)(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),i=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),r=this.getItemHeight(),o=this.get("itemWidth"),a=this.get("itemSpacing"),s=this.get("itemMarginBottom"),l=this.get("currentPoint"),u=l.x,c=l.y,h=this.get("layout"),p=this.get("items"),f=!1,d=0,g=this.get("maxWidth"),v=this.get("maxHeight");(0,S.S6)(p,(function(t,n){var p=e.drawItem(t,n,r,i),m=p.getBBox(),y=o||m.width;y>d&&(d=y),"horizontal"===h?(g&&g<l.x+y-u&&(f=!0,l.x=u,l.y+=r+s),e.moveElementTo(p,l),l.x+=y+a):(v&&v<l.y+r+s-c&&(f=!0,l.x+=d+a,l.y=c,d=0),e.moveElementTo(p,l),l.y+=r+s)})),f&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=c,this.adjustNavigation(t,i))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if((0,S.mf)(e)){var n=this.getItems();n.forEach((function(i,r){var o=(0,C.pi)((0,C.pi)({},jo),e(i,r,n)).fontSize;t<o&&(t=o)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,i){var r=(0,C.pi)((0,C.pi)((0,C.pi)({x:0,y:i/2},e.style),{symbol:(0,S.U2)(n.marker,"symbol","circle")}),(0,S.U2)(n.marker,"style",{})),o=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:r}),a=o.getBBox();o.attr("x",a.width/2);var s=o.attr(),l=s.stroke,u=s.fill;return l&&o.set("isStroke",!0),u&&o.set("isFill",!0),o},e.prototype.drawItemText=function(t,e,n,i,r,o,a){var s=n.formatter,l=n.style,u=(0,C.pi)((0,C.pi)({x:o,y:r/2,text:s?s(i[e],i,a):i[e]},jo),(0,S.mf)(l)?l(i,a,this.getItems()):l);return this.addShape(t,{type:"text",id:this.getElementId("item-"+i.id+"-"+e),name:"legend-item-"+e,attrs:u})},e.prototype.drawRadio=function(t,e,n,i,r){var o,a,s=e.style||{},l=null!==(o=s.r)&&void 0!==o?o:i/2,u=3.6*l/8,c=[r+l,i/2-l],h=c[0],p=c[1],f=[h+l,p+l],d=f[0],g=f[1],v=[h,g+l],m=v[0],y=v[1],x=[r,p+l],b=x[0],w=x[1],A=n.showRadio,S=(0,C.pi)((0,C.pi)({path:[["M",h,p],["A",l,l,0,0,1,d,g],["L",d-u,g],["L",d,g],["A",l,l,0,0,1,m,y],["L",m,y-u],["L",m,y],["A",l,l,0,0,1,b,w],["L",b+u,w],["L",b,w],["A",l,l,0,0,1,h,p],["L",h,p+u]],stroke:"#000000",fill:"#ffffff"},s),{opacity:A?null!==(a=null===s||void 0===s?void 0:s.opacity)&&void 0!==a?a:.45:0}),M=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:S});return M.set("tip",e.tip),M},e.prototype.drawItem=function(t,e,n,i){var r="item-"+t.id,o=this.addGroup(i,{name:"legend-item-container",id:this.getElementId("item-container-"+r),delegateObject:{item:t,index:e}}),a=this.addGroup(o,{name:"legend-item",id:this.getElementId(r),delegateObject:{item:t,index:e}}),s=this.get("marker"),l=this.get("itemName"),u=this.get("itemValue"),c=this.get("itemBackground"),h=this.get("radio"),p=this.getLimitItemWidth(),f=0;if(s){var d=this.drawMarker(a,s,t,n),g=s.spacing,v=(0,S.U2)(t,["marker","spacing"]);(0,S.hj)(v)&&(g=v),f=d.getBBox().maxX+g}if(l){var m=this.drawItemText(a,"name",l,t,n,f,e);p&&yr(!0,m,(0,S.uZ)(p-f,0,p)),f=m.getBBox().maxX+l.spacing}if(u){var y=this.drawItemText(a,"value",u,t,n,f,e);p&&(u.alignRight?(y.attr({textAlign:"right",x:p}),yr(!0,y,(0,S.uZ)(p-f,0,p),"head")):yr(!0,y,(0,S.uZ)(p-f,0,p))),f=y.getBBox().maxX+u.spacing}if(h&&this.drawRadio(a,h,t,n,f),c){var x=a.getBBox(),b=this.addShape(a,{type:"rect",name:"legend-item-background",id:this.getElementId(r+"-background"),attrs:(0,C.pi)({x:0,y:0,width:x.width,height:n},c.style)});b.toBack()}return this.applyItemStates(t,a),a},e.prototype.adjustNavigation=function(t,e){var n=this,i=this.startX,r=this.startY,o=this.get("layout"),a=e.findAll((function(t){return"legend-item"===t.get("name")})),s=this.get("maxWidth"),l=this.get("maxHeight"),u=this.get("itemWidth"),c=this.get("itemSpacing"),h=this.getItemHeight(),p=(0,S.b$)({},Wo,this.get("pageNavigator")),f=this.drawNavigation(t,o,"00/00",p),d=f.getBBox(),g={x:i,y:r},v=1,m=0,y=0,x=0,b=this.get("itemMarginBottom");if("horizontal"===o){var w=this.get("maxRow")||1,A=h+(1===w?0:b);this.pageHeight=A*w,(0,S.S6)(a,(function(t){var e=t.getBBox(),r=u||e.width;(m&&m<g.x+r+c||s<g.x+r+c+d.width)&&(1===v&&(m=g.x+c,n.pageWidth=m,n.moveElementTo(f,{x:s-c-d.width-d.minX,y:g.y+h/2-d.height/2-d.minY})),v+=1,g.x=i,g.y+=A),n.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:r+c,height:h}}),g.x+=r+c}))}else{(0,S.S6)(a,(function(t){var e=t.getBBox();e.width>y&&(y=e.width)})),x=y,y+=c,s&&(y=Math.min(s,y),x=Math.min(s,x)),this.pageWidth=y,this.pageHeight=l-Math.max(d.height,h+b);var C=Math.floor(this.pageHeight/(h+b));(0,S.S6)(a,(function(t,e){0!==e&&e%C===0&&(v+=1,g.x+=y,g.y=r),n.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:y,height:h}}),g.y+=h+b})),this.totalPagesCnt=v,this.moveElementTo(f,{x:i+x/2-d.width/2-d.minX,y:l-d.height-d.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(v/this.get("maxRow")):this.totalPagesCnt=v,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(f),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,i){var r={x:0,y:0},o=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),a=(0,S.U2)(i.marker,"style",{}),s=a.size,l=void 0===s?12:s,u=(0,C._T)(a,["size"]),c=this.drawArrow(o,r,Zo,"horizontal"===e?"up":"left",l,u);c.on("click",this.onNavigationBack);var h=c.getBBox();r.x+=h.width+2;var p=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,C.pi)({x:r.x,y:r.y+l/2,text:n,textBaseline:"middle"},(0,S.U2)(i.text,"style"))}),f=p.getBBox();r.x+=f.width+2;var d=this.drawArrow(o,r,Qo,"horizontal"===e?"down":"right",l,u);return d.on("click",this.onNavigationAfter),o},e.prototype.updateNavigation=function(t){var e=(0,S.b$)({},Wo,this.get("pageNavigator")),n=e.marker.style,i=n.fill,r=n.opacity,o=n.inactiveFill,a=n.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId(Zo)):this.getElementByLocalId(Zo),c=t?t.findById(this.getElementId(Qo)):this.getElementByLocalId(Qo);l.attr("text",s),u.attr("opacity",1===this.currentPageIndex?a:r),u.attr("fill",1===this.currentPageIndex?o:i),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?a:r),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?o:i),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var h=u.getBBox().maxX+2;l.attr("x",h),h+=l.getBBox().width+2,this.updateArrowPath(c,{x:h,y:0})},e.prototype.drawArrow=function(t,e,n,i,r,o){var a=e.x,s=e.y,l=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,C.pi)({size:r,direction:i,path:[["M",a+r/2,s],["L",a,s+r],["L",a+r,s+r],["Z"]],cursor:"pointer"},o)});return l.attr("matrix",Di({x:a+r/2,y:s+r/2},qo[i])),l},e.prototype.updateArrowPath=function(t,e){var n=e.x,i=e.y,r=t.attr(),o=r.size,a=r.direction,s=Di({x:n+o/2,y:i+o/2},qo[a]);t.attr("path",[["M",n+o/2,i],["L",n,i+o],["L",n+o,i+o],["Z"]]),t.attr("matrix",s)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,i=t.pageHeight,r=this.get("layout"),o="horizontal"===r?{x:0,y:i*(1-e)}:{x:n*(1-e),y:0};return Pi(o)},e.prototype.applyItemStates=function(t,e){var n=this.getItemStates(t),i=n.length>0;if(i){var r=e.getChildren(),o=this.get("itemStates");(0,S.S6)(r,(function(e){var n=e.get("name"),i=n.split("-")[2],r=Qr(t,i,o);r&&(e.attr(r),"marker"!==i||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(Go),Ko=Jo,$o=1.4,ta=.4,ea=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:br.textColor,textBaseline:"middle",fontFamily:br.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:br.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue(),r=i[1];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue(),r=i[0];r>n&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var i=e.getValueByCanvasPoint(n.x,n.y),r=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),l=r-i;l<0?o[0]+l>s.min?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.min,s.min+a]):l>0&&(l>0&&o[1]+l<s.max?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.max-a,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),i=n.style,r=n.align,o=n.formatter,a=this.get(t),s=this.getLabelAlignAttrs(t,r),l="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(l),name:"legend-label-"+t,attrs:(0,C.pi)((0,C.pi)({x:0,y:0,text:(0,S.mf)(o)?o(a):a},i),s)})},e.prototype.getLabelAlignAttrs=function(t,e){var n=this.isVertical(),i="center",r="middle";return n?(i="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",i="min"===t?"start":"end"):(i="start",r="middle"),{textAlign:i,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,i){var r=this.get("rail"),o=r.size,a=r.defaultLength,s=r.type,l=this.isVertical(),u=a,c=n,h=i;c||(c=l?o:u),h||(h=l?u:o);var p=[];return"color"===s?(p.push(["M",t,e]),p.push(["L",t+c,e]),p.push(["L",t+c,e+h]),p.push(["L",t,e+h]),p.push(["Z"])):(p.push(["M",t+c,e]),p.push(["L",t+c,e+h]),p.push(["L",t,e+h]),p.push(["Z"])),p},e.prototype.drawRail=function(t){var e=this.get("rail"),n=e.style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:(0,C.pi)({path:this.getRailPath(0,0)},n)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var i=0;i<n;i++){var r=i/(n-1);e+=" "+r+":"+t[i]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t),n=e.attr("path");return(0,S.d9)(n)},e.prototype.getClipTrackAttrs=function(t){var e,n,i,r,o=this.getCurrentValue(),a=o[0],s=o[1],l=this.getRailBBox(t),u=this.getPointByValue(a,t),c=this.getPointByValue(s,t),h=this.isVertical();return h?(e=l.minX,n=u.y,i=l.width,r=c.y-u.y):(e=u.x,n=l.minY,i=c.x-u.x,r=l.height),{x:e,y:n,width:i,height:r}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),i=this.getTrackPath(t);return(0,S.CD)({path:i,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),i=e.findById(n),r=i.getClip(),o=this.getClipTrackAttrs(t);r?r.attr(o):i.setClip({type:"rect",attrs:o})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),i=this.getTrackAttrs(t);n?n.attr(i):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:i})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),i=n.min,r=n.max,o=(t-i)/(r-i),a=this.getRailBBox(e),s=this.isVertical(),l={x:0,y:0};return s?(l.x=a.minX+a.width/2,l.y=Gi(a.minY,a.maxY,o)):(l.x=Gi(a.minX,a.maxX,o),l.y=a.minY+a.height/2),l},e.prototype.getRailShape=function(t){var e=t||this.get("group");return e.findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){var e=this.getRailShape(t),n=e.getBBox();return n},e.prototype.getRailCanvasBBox=function(){var t=this.get("group"),e=t.findById(this.getElementId("rail")),n=e.getCanvasBBox();return n},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,i=this.getRange(),r=i.min,o=i.max,a=this.getRailCanvasBBox(),s=this.isVertical(),l=this.get("step");n=s?(e-a.minY)/a.height:(t-a.minX)/a.width;var u=Gi(r,o,n);if(l){var c=Math.round((u-r)/l);u=r+c*l}return u>o&&(u=o),u<r&&(u=r),u},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,(0,C.pr)(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,(0,C.pr)(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],i=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",i)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),i=[],r=t.size,o=e.x,a=e.y,s=r*$o,l=r/2,u=r/6;if(n){var c=o+s*ta;i.push(["M",o,a]),i.push(["L",c,a+l]),i.push(["L",o+s,a+l]),i.push(["L",o+s,a-l]),i.push(["L",c,a-l]),i.push(["Z"]),i.push(["M",c,a+u]),i.push(["L",o+s-2,a+u]),i.push(["M",c,a-u]),i.push(["L",o+s-2,a-u])}else{var h=a+s*ta;i.push(["M",o,a]),i.push(["L",o-l,h]),i.push(["L",o-l,a+s]),i.push(["L",o+l,a+s]),i.push(["L",o+l,h]),i.push(["Z"]),i.push(["M",o-u,h]),i.push(["L",o-u,a+s-2]),i.push(["M",o+u,h]),i.push(["L",o+u,a+s-2])}return i},e.prototype.resetHandler=function(t,e,n){var i=this.getPointByValue(n,t),r=this.get("handler"),o=this.getHandlerPath(r,i),a=this.getElementId("handler-"+e),s=t.findById(a),l=this.isVertical();s?s.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:a,attrs:(0,C.pi)((0,C.pi)({path:o},r.style),{cursor:l?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),i=t.findById(this.getElementId("label-max")),r=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,i,e,r):this.fixedHorizontal(n,i,e,r)},e.prototype.fitRailLength=function(t,e,n,i){var r=this.isVertical(),o=r?"height":"width",a=this.get("label"),s=a.align,l=a.spacing,u=this.get("max"+(0,S.jC)(o));if(u){var c="rail"===s?n[o]+t[o]+e[o]+2*l:n[o],h=c-u;h>0&&this.changeRailLength(i,o,n[o]-h)}},e.prototype.changeRailLength=function(t,e,n){var i,r=t.getBBox();i="height"===e?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height),t.attr("path",i)},e.prototype.changeRailPosition=function(t,e,n){var i=t.getBBox(),r=this.getRailPath(e,n,i.width,i.height);t.attr("path",r)},e.prototype.fixedHorizontal=function(t,e,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:i.x,y:i.y+c/2}),this.changeRailPosition(n,i.x+l.width+a,i.y),e.attr({x:i.x+l.width+s.width+2*a,y:i.y+c/2})):"top"===o?(t.attr({x:i.x,y:i.y}),e.attr({x:i.x+s.width,y:i.y}),this.changeRailPosition(n,i.x,i.y+l.height+a)):(this.changeRailPosition(n,i.x,i.y),t.attr({x:i.x,y:i.y+s.height+a}),e.attr({x:i.x+s.width,y:i.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===o)t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+l.height+a),e.attr({x:i.x,y:i.y+l.height+s.height+2*a});else if("right"===o)t.attr({x:i.x+s.width+a,y:i.y}),this.changeRailPosition(n,i.x,i.y),e.attr({x:i.x+s.width+a,y:i.y+s.height});else{var c=Math.max(l.width,u.width);t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x+c+a,i.y),e.attr({x:i.x,y:i.y+s.height})}},e}(Go),na=ea,ia="g2-tooltip",ra="g2-tooltip-title",oa="g2-tooltip-list",aa="g2-tooltip-list-item",sa="g2-tooltip-marker",la="g2-tooltip-value",ua="g2-tooltip-name",ca="g2-tooltip-crosshair-x",ha="g2-tooltip-crosshair-y",pa=(Uo={},Uo[""+ia]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:br.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},Uo[""+ra]={marginBottom:"4px"},Uo[""+oa]={margin:"0px",listStyleType:"none",padding:"0px"},Uo[""+aa]={listStyleType:"none",marginBottom:"4px"},Uo[""+sa]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},Uo[""+la]={display:"inline-block",float:"right",marginLeft:"30px"},Uo[""+ca]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},Uo[""+ha]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},Uo);function fa(t,e,n,i,r){var o={left:t<r.x,right:t+n>r.x+r.width,top:e<r.y,bottom:e+i>r.y+r.height};return o}function da(t,e,n,i,r,o){var a=t,s=e;switch(o){case"left":a=t-i-n,s=e-r/2;break;case"right":a=t+n,s=e-r/2;break;case"top":a=t-i/2,s=e-r-n;break;case"bottom":a=t-i/2,s=e+n;break;default:a=t+n,s=e-r-n;break}return{x:a,y:s}}function ga(t,e,n,i,r,o,a){var s=da(t,e,n,i,r,o);if(a){var l=fa(s.x,s.y,i,r,a);"auto"===o?(l.right&&(s.x=Math.max(0,t-i-n)),l.top&&(s.y=Math.max(0,e-r-n))):"top"===o||"bottom"===o?(l.left&&(s.x=a.x),l.right&&(s.x=a.x+a.width-i),"top"===o&&l.top&&(s.y=e+n),"bottom"===o&&l.bottom&&(s.y=e-r-n)):(l.top&&(s.y=a.y),l.bottom&&(s.y=a.y+a.height-r),"left"===o&&l.left&&(s.x=t+n),"right"===o&&l.right&&(s.x=t-i-n))}return s}function va(t,e){var n=!1;return(0,S.S6)(e,(function(e){if((0,S.wH)(t,e))return n=!0,!1})),n}var ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+ia+'"><div class="'+ra+'"></div><ul class="'+oa+'"></ul></div>',itemTpl:'<li class="'+aa+'" data-index={index}>\n <span class="'+sa+'" style="background:{color}"></span>\n <span class="'+ua+'">{name}</span>:\n <span class="'+la+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+ca+'"></div>',yCrosshairTpl:'<div class="'+ha+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:ia,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:pa})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),X(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),X(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");n&&X(n,{display:e}),i&&X(i,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){this.get("customContent")?this.renderCustomContent():(va(e,["title","showTitle"])&&this.resetTitle(),(0,S.wH)(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),i=this.get("offset"),r=this.getOffset(),o=r.offsetX,a=r.offsetY,s=this.get("position"),l=this.get("region"),u=this.getContainer(),c=this.getBBox(),h=c.width,p=c.height;l&&(t=Yi(l));var f=ga(e,n,i,h,p,s,t);X(u,{left:Ki(f.x+o),top:Ki(f.y+a)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=(0,S.kK)(n)?n:H(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(ra)[0],n=t.getElementsByClassName(oa)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title"),e=this.get("showTitle");e&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=Yi(t),i=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),i&&(i.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),i=this.get(t);X(n,"x"===t?{left:Ki(i),top:Ki(e.y),height:Ki(e.height)}:{top:Ki(i),left:Ki(e.x),width:Ki(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",i="CROSSHAIR_"+t.toUpperCase(),r=c[i],o=this.get(e),a=this.get("parent");return o||(o=H(this.get(n)),this.applyStyle(r,o),a.appendChild(o),this.set(e,o)),o},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&((0,S.S6)(t,(function(t){var i=Vt.toCSSGradient(t.color),r=(0,C.pi)((0,C.pi)({},t),{color:i}),o=(0,S.ng)(e,r),a=H(o);n.appendChild(a)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Ni(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(Gr),ya=ma,xa={opacity:0},ba={stroke:"#C5C5C5",strokeOpacity:.85},wa={fill:"#CACED4",opacity:.85},Aa=n(9499);function Ca(t){return(0,S.UI)(t,(function(t,e){var n=0===e?"M":"L",i=t[0],r=t[1];return[n,i,r]}))}function Sa(t){return Ca(t)}function Ma(t){if(t.length<=2)return Sa(t);var e=[];(0,S.S6)(t,(function(t){(0,S.Xy)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=(0,Aa.e9)(e,!1),i=(0,S.YM)(t),r=i[0],o=i[1];return n.unshift(["M",r,o]),n}function ka(t,e,n,i){void 0===i&&(i=!0);var r=new tn({values:t}),o=new re({values:(0,S.UI)(t,(function(t,e){return e}))}),a=(0,S.UI)(t,(function(t,i){return[o.scale(i)*e,n-r.scale(t)*n]}));return i?Ma(a):Sa(a)}function Ea(t,e){var n=new tn({values:t}),i=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(i)*e}function Fa(t,e,n,i){var r=(0,C.pr)(t),o=Ea(i,n);return r.push(["L",e,o]),r.push(["L",0,o]),r.push(["Z"]),r}var Ta=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:xa,lineStyle:ba,areaStyle:wa})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,r=e.data,o=e.smooth,a=e.isArea,s=e.backgroundStyle,l=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,C.pi)({x:0,y:0,width:n,height:i},s)});var c=ka(r,n,i,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,C.pi)({path:c},l)}),a){var h=Fa(c,n,i,r);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,C.pi)({path:h},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(sr),Ia={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},Ba=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:Ia})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,r=e.style,o=r.fill,a=r.stroke,s=r.radius,l=r.opacity,u=r.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:i,fill:o,stroke:a,radius:s,opacity:l,cursor:u}});var c=1/3*n,h=2/3*n,p=1/4*i,f=3/4*i;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:p,x2:c,y2:f,stroke:a,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:p,x2:h,y2:f,stroke:a,cursor:u}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(sr),Da={fill:"#416180",opacity:.05},Pa={fill:"#5B8FF9",opacity:.15,cursor:"move"},La=10,Oa={width:La,height:24},Ra={textBaseline:"middle",fill:"#000",opacity:.45},za="sliderchange",_a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var i=n.originalEvent;i.stopPropagation(),i.preventDefault(),e.prevX=(0,S.U2)(i,"touches.0.pageX",i.pageX),e.prevY=(0,S.U2)(i,"touches.0.pageY",i.pageY);var r=e.getContainerDOM();r.addEventListener("mousemove",e.onMouseMove),r.addEventListener("mouseup",e.onMouseUp),r.addEventListener("mouseleave",e.onMouseUp),r.addEventListener("touchmove",e.onMouseMove),r.addEventListener("touchend",e.onMouseUp),r.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,i=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var r=(0,S.U2)(t,"touches.0.pageX",t.pageX),o=(0,S.U2)(t,"touches.0.pageY",t.pageY),a=r-e.prevX,s=e.adjustOffsetRange(a/n);e.updateStartEnd(s),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=r,e.prevY=o,e.draw(),e.emit(za,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:i,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return(0,C.ZT)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),i=this.get("end"),r=(0,S.uZ)(n,t,e),o=(0,S.uZ)(i,t,e);this.get("isInit")||n===r&&i===o||this.setValue([r,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if((0,S.kJ)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:(0,S.uZ)(t[0],e.min,e.max),end:(0,S.uZ)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:Da,foregroundStyle:Pa,handlerStyle:Oa,textStyle:Ra}})},e.prototype.update=function(e){var n=e.start,i=e.end,r=(0,C.pi)({},e);(0,S.UM)(n)||(r.start=(0,S.uZ)(n,0,1)),(0,S.UM)(i)||(r.end=(0,S.uZ)(i,0,1)),t.prototype.update.call(this,r),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",(0,S.uZ)(this.get("start"),0,1)),this.set("end",(0,S.uZ)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),i=e.height,r=e.trendCfg,o=void 0===r?{}:r,a=e.minText,s=e.maxText,l=e.backgroundStyle,u=void 0===l?{}:l,c=e.foregroundStyle,h=void 0===c?{}:c,p=e.textStyle,f=void 0===p?{}:p,d=(0,S.b$)({},Ia,this.cfg.handlerStyle);(0,S.dp)((0,S.U2)(o,"data"))&&(this.trend=this.addComponent(t,(0,C.pi)({component:Ta,id:this.getElementId("trend"),x:0,y:0,width:n,height:i},o))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,C.pi)({x:0,y:0,width:n,height:i},u)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,C.pi)({y:i/2,textAlign:"right",text:a,silent:!1},f)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,C.pi)({y:i/2,textAlign:"left",text:s,silent:!1},f)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,C.pi)({y:0,height:i},h)});var g=(0,S.U2)(d,"width",La),v=(0,S.U2)(d,"height",24);this.minHandler=this.addComponent(t,{component:Ba,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(i-v)/2,width:g,height:v,cursor:"ew-resize",style:d}),this.maxHandler=this.addComponent(t,{component:Ba,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(i-v)/2,width:g,height:v,cursor:"ew-resize",style:d})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var i=this.cfg,r=i.start,o=i.end,a=i.width,s=i.minText,l=i.maxText,u=i.handlerStyle,c=i.height,h=r*a,p=o*a;this.trend&&(this.trend.update({width:a,height:c}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",h),t.attr("width",p-h);var f=(0,S.U2)(u,"width",La);e.attr("text",s),n.attr("text",l);var d=this._dodgeText([h,p],e,n),g=d[0],v=d[1];this.minHandler&&(this.minHandler.update({x:h-f/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,S.S6)(g,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:p-f/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,S.S6)(v,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":var r=0-n,o=1-n;return Math.min(o,Math.max(r,t));case"maxHandler":r=0-i,o=1-i;return Math.min(o,Math.max(r,t));case"foreground":r=0-n,o=1-i;return Math.min(o,Math.max(r,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":i+=t;break;case"foreground":n+=t,i+=t;break}this.set("start",n),this.set("end",i)},e.prototype._dodgeText=function(t,e,n){var i,r,o=this.cfg,a=o.handlerStyle,s=o.width,l=2,u=(0,S.U2)(a,"width",La),c=t[0],h=t[1],p=!1;c>h&&(i=[h,c],c=i[0],h=i[1],r=[n,e],e=r[0],n=r[1],p=!0);var f=e.getBBox(),d=n.getBBox(),g=f.width>c-l?{x:c+u/2+l,textAlign:"left"}:{x:c-u/2-l,textAlign:"right"},v=d.width>s-h-l?{x:h-u/2-l,textAlign:"right"}:{x:h+u/2+l,textAlign:"left"};return p?[v,g]:[g,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(sr);function Ua(t,e,n){if(t){if("function"===typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"===typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}var Na={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},Va={default:Na,hover:{thumbColor:"rgba(0,0,0,0.2)"}},Ya=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=S.ZT,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var i=t?(0,S.U2)(n.originalEvent,"touches.0.clientX"):n.clientX,r=t?(0,S.U2)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?i:r,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Ua(t,"touchmove",e.onMouseMove),Ua(t,"touchend",e.onMouseUp),Ua(t,"touchcancel",e.onMouseUp)]:[Ua(t,"mousemove",e.onMouseMove),Ua(t,"mouseup",e.onMouseUp),Ua(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,i=n.isHorizontal,r=n.thumbOffset;t.preventDefault();var o=e.isMobile?(0,S.U2)(t,"touches.0.clientX"):t.clientX,a=e.isMobile?(0,S.U2)(t,"touches.0.clientY"):t.clientY,s=i?o:a,l=s-e.startPos;e.startPos=s,e.updateThumbOffset(r+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,i=n.isHorizontal,r=n.x,o=n.y,a=n.thumbLen,s=e.getContainerDOM(),l=s.getBoundingClientRect(),u=t.clientX,c=t.clientY,h=i?u-l.left-r-a/2:c-l.top-o-a/2,p=e.validateRange(h);e.updateThumbOffset(p)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return(0,C.ZT)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),i=(0,S.uZ)(n,t,e);n===i||this.get("isInit")||this.setValue(i)},e.prototype.getRange=function(){var t=this.get("minLimit")||0,e=this.get("maxLimit")||1;return{min:t,max:e}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,S.uZ)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return(0,S.uZ)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,C.pi)((0,C.pi)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:Va})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,i=e.theme,r=void 0===i?{default:{}}:i,o=(0,S.b$)({},Va,r).default,a=o.lineCap,s=o.trackColor,l=o.size,u=(0,S.U2)(this.cfg,"size",l),c=this.get("isHorizontal")?{x1:0+u/2,y1:u/2,x2:n-u/2,y2:u/2,lineWidth:u,stroke:s,lineCap:a}:{x1:u/2,y1:0+u/2,x2:u/2,y2:n-u/2,lineWidth:u,stroke:s,lineCap:a};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:c})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,i=e.thumbLen,r=e.theme,o=(0,S.b$)({},Va,r).default,a=o.size,s=o.lineCap,l=o.thumbColor,u=(0,S.U2)(this.cfg,"size",a),c=this.get("isHorizontal")?{x1:n+u/2,y1:u/2,x2:n+i-u/2,y2:u/2,lineWidth:u,stroke:l,lineCap:s,cursor:"default"}:{x1:u/2,y1:n+u/2,x2:u/2,y2:n+i-u/2,lineWidth:u,stroke:l,lineCap:s,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:c})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var e=t.findById(this.getElementId("track"));e.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,i=e.trackLen,r=t;return t+n>i?r=i-n:t+n<n&&(r=0),r},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,i=e.isHorizontal,r=e.thumbLen,o=e.size,a=this.validateRange(t);if(a!==n){var s=this.getElementByLocalId("thumb");i?s.attr({x1:a+o/2,x2:a+r-o/2}):s.attr({y1:a+o/2,y2:a+r-o/2}),this.emitOffsetChange(a)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,i=e.trackLen,r=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:(0,S.uZ)(t/(i-r),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(sr),Ha=wo,Xa=Co,Ga=Ho,Wa=Vo,ja=Ko,Qa=na,Za=ya;function qa(t){if((0,S.xb)(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,r=t[0].y;return(0,S.S6)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,r=r<t.y?t.y:r})),{minX:e,maxX:n,minY:i,maxY:r,centerX:(e+n)/2,centerY:(i+r)/2}}function Ja(t){return 1===Array.from(new Set(t)).length}function Ka(t){return((0,S.VV)(t)+(0,S.Fp)(t))/2}function $a(t,e,n,i){return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}function ts(t,e,n,i,r,o){void 0===o&&(o=0);var a=$a(t,e,n,i),s=$a(t,e,n,r),l=$a(t,e,o,i),u=$a(t,e,o,r);if(r-i===2*Math.PI){var c=$a(t,e,n,i+Math.PI),h=$a(t,e,o,i+Math.PI),p=[["M",a.x,a.y],["A",n,n,0,1,1,c.x,c.y],["A",n,n,0,1,1,s.x,s.y],["M",l.x,l.y]];return o&&(p.push(["A",o,o,0,1,0,h.x,h.y]),p.push(["A",o,o,0,1,0,u.x,u.y])),p.push(["M",a.x,a.y]),p.push(["Z"]),p}var f=r-i<=Math.PI?0:1,d=[["M",a.x,a.y],["A",n,n,0,f,1,s.x,s.y],["L",u.x,u.y]];return o&&d.push(["A",o,o,0,f,0,l.x,l.y]),d.push(["L",a.x,a.y]),d.push(["Z"]),d}function es(t,e,n,i,r){var o=$a(t,e,n,i),a=$a(t,e,n,r);if((0,S.vQ)(r-i,2*Math.PI)){var s=$a(t,e,n,i+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var l=r-i<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,l,1,a.x,a.y]]}function ns(t,e){var n,i,r=t.points,o=qa(r),a=e.startAngle,s=e.endAngle,l=s-a;return e.isTransposed?(n=o.maxY*l,i=o.minY*l):(n=o.maxX*l,i=o.minX*l),n+=a,i+=a,{startAngle:i,endAngle:n}}function is(t,e){if((0,S.hj)(t)&&(0,S.hj)(e))return[t,e];if(t=t,e=e,Ja(t)||Ja(e))return[Ka(t),Ka(e)];var n,i,r=-1,o=0,a=0,s=t.length-1,l=0;while(++r<t.length)n=s,s=r,l+=i=t[n]*e[s]-t[s]*e[n],o+=(t[n]+t[s])*i,a+=(e[n]+e[s])*i;return l*=3,[o/l,a/l]}function rs(t,e){var n=t.attr(),i=e.attr();return(0,S.S6)(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i}function os(t,e,n){var i=Math.min(e,n),r=Math.max(e,n);return t>=i&&t<=r}function as(t,e,n){if((0,S.HD)(t))return t.padEnd(e,n);if((0,S.kJ)(t)){var i=t.length;if(i<e)for(var r=e-i,o=0;o<r;o++)t.push(n)}return t}function ss(t,e){return"object"===typeof t&&e.forEach((function(e){delete t[e]})),t}function ls(t,e,n){var i,r;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=(0,C.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;n.has(s)||(e.push(s),n.set(s,!0))}}catch(l){i={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return e}var us=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=t,this.y=e,this.height=i,this.width=n}return t.fromRange=function(e,n,i,r){return new t(e,n,i-e,r-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return(0,S.S6)(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return(0,S.S6)(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var i=e.width,r=e.height;switch(n){case m.TOP:case m.TOP_LEFT:case m.TOP_RIGHT:return t.fromRange(this.minX,this.minY+r,this.maxX,this.maxY);case m.RIGHT:case m.RIGHT_TOP:case m.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-i,this.maxY);case m.BOTTOM:case m.BOTTOM_LEFT:case m.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-r);case m.LEFT:case m.LEFT_TOP:case m.LEFT_BOTTOM:return t.fromRange(this.minX+i,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=(0,C.CR)(e,4),i=n[0],r=n[1],o=n[2],a=n[3];return new t(this.x+a,this.y+i,this.width-a-r,this.height-i-o)},t.prototype.expand=function(e){var n=(0,C.CR)(e,4),i=n[0],r=n[1],o=n[2],a=n[3];return new t(this.x-a,this.y-i,this.width+a+r,this.height+i+o)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function cs(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function hs(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function ps(t){if(t.isPolar){var e=t.startAngle,n=t.endAngle;return n-e===2*Math.PI}return!1}function fs(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function ds(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,r=t.end;n=os(e.x,i.x,r.x)&&os(e.y,i.y,r.y)}else{var o=t.invert(e);n=os(o.x,0,1)&&os(o.y,0,1)}return n}function gs(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function vs(t,e){void 0===e&&(e=0);var n,i=t.start,r=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var s=t.startAngle,l=t.endAngle,u=t.getCenter(),c=t.getRadius();return{type:"path",startState:{path:ts(u.x,u.y,c+e,s,s)},endState:function(t){var n=(l-s)*t+s,i=ts(u.x,u.y,c+e,s,n);return{path:i}},attrs:{path:ts(u.x,u.y,c+e,s,l)}}}return n=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:i.x-e,y:r.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:n,attrs:{x:i.x-e,y:r.y-e,width:o+2*e,height:a+2*e}}}function ms(t,e){void 0===e&&(e=0);var n=t.start,i=t.end,r=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,i.x),s=Math.min(n.y,i.y);return us.fromRange(a-e,s-e,a+r+e,s+o+e)}var ys=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function xs(t){var e="linear";return ys.test(t)?e="timeCat":(0,S.HD)(t)&&(e="cat"),e}function bs(t,e,n,i){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&L.includes(n)&&["interval"].includes(i)||t.isCategory?"cat":t.type}function ws(t,e,n){var i=e||[];if((0,S.hj)(t)||(0,S.UM)((0,S.Wx)(i,t))&&(0,S.xb)(n)){var r=vn("identity");return new r({field:t.toString(),values:[t]})}var o=(0,S.I)(i,t),a=(0,S.U2)(n,"type",xs(o[0])),s=vn(a);return new s((0,C.pi)({field:t,values:o},n))}function As(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);t.change(n)}}function Cs(t){return t.alias||t.field}function Ss(t,e,n){var i,r=t.values,o=r.length;if(1===o)i=[.5,1];else{var a=1,s=0;ps(e)?e.isTransposed?(a=(0,S.U2)(n,"widthRatio.multiplePie",1/1.3),s=1/o*a,i=[s/2,1-s/2]):i=[0,1-1/o]:(s=1/o/2,i=[s,1-s])}return i}function Ms(t){var e=t.values.filter((function(t){return!(0,S.UM)(t)&&!isNaN(t)}));return Math.max.apply(Math,(0,C.ev)((0,C.ev)([],(0,C.CR)(e),!1),[(0,S.UM)(t.max)?-1/0:t.max],!1))}function ks(t){var e,n;switch(t){case m.TOP:e={x:0,y:1},n={x:1,y:1};break;case m.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case m.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case m.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function Es(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function Fs(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=ks(e):t.isPolar&&(n=Es(t));var i=n.start,r=n.end;return{start:t.convert(i),end:t.convert(r)}}function Ts(t){var e=t.start,n=t.end;return e.x===n.x}function Is(t,e){var n=t.start,i=t.end,r=Ts(t);return r?(n.y-i.y)*(e.x-n.x)>0?1:-1:(i.x-n.x)*(n.y-e.y)>0?-1:1}function Bs(t,e){var n=(0,S.U2)(t,["components","axis"],{});return(0,S.b$)({},(0,S.U2)(n,["common"],{}),(0,S.b$)({},(0,S.U2)(n,[e],{})))}function Ds(t,e,n){var i=(0,S.U2)(t,["components","axis"],{});return(0,S.b$)({},(0,S.U2)(i,["common","title"],{}),(0,S.b$)({},(0,S.U2)(i,[e,"title"],{})),n)}function Ps(t){var e=t.x,n=t.y,i=t.circleCenter,r=n.start>n.end,o=t.isTransposed?t.convert({x:r?0:1,y:0}):t.convert({x:0,y:r?0:1}),a=[o.x-i.x,o.y-i.y],s=[1,0],l=o.y>i.y?Ai.EU(a,s):-1*Ai.EU(a,s),u=l+(e.end-e.start),c=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2));return{center:i,radius:c,startAngle:l,endAngle:u}}function Ls(t,e){return(0,S.jn)(t)?!1!==t&&{}:(0,S.U2)(t,[e])}function Os(t,e){return(0,S.U2)(t,"position",e)}function Rs(t,e){return(0,S.U2)(e,["title","text"],Cs(t))}var zs=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=(0,S.b$)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,i=t.padding,r=void 0===i?this.cfg.padding:i,o=this.view.createView({region:e,padding:r});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){var t=this.view.getLayer(v.FORE);return t.addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;(0,S.S6)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height,i=this.cfg.spacing;return i.map((function(t,i){return(0,S.hj)(t)?t/(0===i?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return(0,S.S6)(t,(function(t){var r=t[e];(0,S.UM)(r)||i[r]||(n.push(r),i[r]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var r=(0,C.CR)(this.parseSpacing(),2),o=r[0],a=r[1],s=(1+o)/(0===e?1:e)-o,l=(1+a)/(0===t?1:t)-a,u={x:(s+o)*n,y:(l+a)*i},c={x:u.x+s,y:u.y+l};return{start:u,end:c}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){var t=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:t}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),i=n.coordinate,r=t.geometries,o=(0,S.U2)(i,"type","rect");if("rect"===o&&r.length){(0,S.UM)(n.axes)&&(n.axes={});var a=n.axes,s=(0,C.CR)(r[0].getXYFields(),2),l=s[0],u=s[1],c=Ls(a,l),h=Ls(a,u);!1!==c&&(n.axes[l]=this.getXAxisOption(l,a,c,e)),!1!==h&&(n.axes[u]=this.getYAxisOption(u,a,h,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return(0,S.yW)(t,(function(t){var n=t.field,i=t.value;return!(!(0,S.UM)(i)&&n)||e[n]===i}))}},t}(),_s={},Us=function(t){return _s[(0,S.vl)(t)]},Ns=function(t,e){_s[(0,S.vl)(t)]=e},Vs=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){(0,S.f0)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Ys=Vs,Hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(Ys),Xs=Hs,Gs={};function Ws(t,e){var n=Gs[t],i=null;if(n){var r=n.ActionClass,o=n.cfg;i=new r(e,o),i.name=t,i.init()}return i}function js(t){var e=Gs[t];return(0,S.U2)(e,"ActionClass")}function Qs(t,e,n){Gs[t]={ActionClass:e,cfg:n}}function Zs(t,e){var n=new Xs(e);return n.callback=t,n.name="callback",n}function qs(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i<r;i+=1){var o=t[i];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}function Js(t,e){for(var n=[t[0]],i=1,r=t.length;i<r;i+=2){var o=e.convert({x:t[i],y:t[i+1]});n.push(o.x,o.y)}return n}function Ks(t,e){var n=e.isTransposed,i=t[1],r=t[6],o=t[7],a=e.convert({x:r,y:o}),s=n?0:1;return["A",i,i,0,0,s,a.x,a.y]}function $s(t,e,n){var i=n.isTransposed,r=n.startAngle,o=n.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},l=[],u=i?"y":"x",c=Math.abs(s[u]-a[u])*(o-r),h=s[u]>=a[u]?1:0,p=c>Math.PI?1:0,f=n.convert(s),d=fs(n,f);if(d>=.5)if(c===2*Math.PI){var g={x:(s.x+a.x)/2,y:(s.y+a.y)/2},v=n.convert(g);l.push(["A",d,d,0,p,h,v.x,v.y]),l.push(["A",d,d,0,p,h,f.x,f.y])}else l.push(["A",d,d,0,p,h,f.x,f.y]);return l}function tl(t){(0,S.S6)(t,(function(e,n){var i=e;if("a"===i[0].toLowerCase()){var r=t[n-1],o=t[n+1];o&&"a"===o[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&o&&"l"===o[0].toLowerCase()&&(o[0]="M")}}))}var el=function(t,e,n,i){var r,o,a,s,l,u,c,h,p=[],f=!!i;if(f){r=(0,C.CR)(i,2),s=r[0],l=r[1];for(var d=0,g=t.length;d<g;d++){var v=t[d];s=Ai.VV([0,0],s,v),l=Ai.Fp([0,0],l,v)}}d=0;for(var m=t.length;d<m;d++){v=t[d];if(0!==d||n)if(d!==m-1||n){o=t[n?d?d-1:m-1:d-1],a=t[n?(d+1)%m:d+1];var y=[0,0];y=Ai.lu(y,a,o),y=Ai.bA(y,y,e);var x=Ai.TE(v,o),b=Ai.TE(v,a),w=x+b;0!==w&&(x/=w,b/=w);var A=Ai.bA([0,0],y,-x),S=Ai.bA([0,0],y,b);c=Ai.IH([0,0],v,A),u=Ai.IH([0,0],v,S),u=Ai.VV([0,0],u,Ai.Fp([0,0],a,v)),u=Ai.Fp([0,0],u,Ai.VV([0,0],a,v)),A=Ai.lu([0,0],u,v),A=Ai.bA([0,0],A,-x/b),c=Ai.IH([0,0],v,A),c=Ai.VV([0,0],c,Ai.Fp([0,0],o,v)),c=Ai.Fp([0,0],c,Ai.VV([0,0],o,v)),S=Ai.lu([0,0],v,c),S=Ai.bA([0,0],S,b/x),u=Ai.IH([0,0],v,S),f&&(c=Ai.Fp([0,0],c,s),c=Ai.VV([0,0],c,l),u=Ai.Fp([0,0],u,s),u=Ai.VV([0,0],u,l)),p.push(h),p.push(c),h=u}else c=v,p.push(h),p.push(c);else h=v}return n&&p.push(p.shift()),p};function nl(t,e,n){for(var i=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,l,u,c=el(r,.4,i,n),h=r.length,p=[];for(o=0;o<h-1;o++)s=c[2*o],l=c[2*o+1],u=r[o+1],p.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]]);return i&&(s=c[h],l=c[h+1],u=r[0],p.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]])),p}function il(t,e){return qs(t,e)}function rl(t,e,n){var i=[],r=t[0],o=null;if(t.length<=2)return il(t,e);for(var a=0,s=t.length;a<s;a++){var l=t[a];o&&o.x===l.x&&o.y===l.y||(i.push(l.x),i.push(l.y),o=l)}var u=n||[[0,0],[1,1]],c=nl(i,e,u);return c.unshift(["M",r.x,r.y]),c}function ol(t,e){var n=[];return(0,S.S6)(e,(function(e){var i=e[0];switch(i.toLowerCase()){case"m":case"l":case"c":n.push(Js(e,t));break;case"a":n.push(Ks(e,t));break;case"z":default:n.push(e);break}})),n}function al(t,e){var n,i,r,o,a=[];return(0,S.S6)(e,(function(s,l){var u=s[0];switch(u.toLowerCase()){case"m":case"c":case"q":a.push(Js(s,t));break;case"l":n=e[l-1],i=s,r=t.isTransposed,o=r?n[n.length-2]===i[1]:n[n.length-1]===i[2],o?a=a.concat($s(n,i,t)):a.push(Js(s,t));break;case"a":a.push(Ks(s,t));break;case"z":default:a.push(s);break}})),tl(a),a}function sl(t,e){var n=t.event,i=n.target,r=i.getCanvasBBox();return r.width>=e||r.height>=e?r:null}function ll(t,e){var n=t.event,i=n.target,r=i.getCanvasBBox();return r.width>=e||r.height>=e?i.attr("path"):null}function ul(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}function cl(t){var e,n=t.event,i=n.target;return i&&(e=i.get("delegateObject")),e}function hl(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function pl(t){return t&&t.component&&t.component.isList()}function fl(t){return t&&t.component&&t.component.isSlider()}function dl(t){var e=t.event,n=e.target;return n&&"mask"===n.get("name")}function gl(t,e){var n=t.event.target;if("path"===n.get("type")){var i=ll(t,e);if(!i)return;return Sl(t.view,i)}var r=sl(t,e);return r?Al(t.view,r):null}function vl(t,e,n){var i=sl(t,n);if(!i)return null;var r=t.view,o=Bl(r,e,{x:i.x,y:i.y}),a=Bl(r,e,{x:i.maxX,y:i.maxY}),s={minX:o.x,minY:o.y,maxX:a.x,maxY:a.y};return Al(e,s)}function ml(t){var e=t.geometries,n=[];return(0,S.S6)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&(0,S.S6)(t.views,(function(t){n=n.concat(ml(t))})),n}function yl(t,e,n){var i=ml(t);return i.filter((function(t){return bl(t,e)===n}))}function xl(t,e){var n=t.geometries,i=[];return(0,S.S6)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function bl(t,e){var n,i=t.getModel(),r=i.data;return n=(0,S.kJ)(r)?r[0][e]:r[e],n}function wl(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function Al(t,e){var n=ml(t),i=[];return(0,S.S6)(n,(function(t){var n=t.shape,r=n.getCanvasBBox();wl(e,r)&&i.push(t)})),i}function Cl(t){var e=[];return(0,S.S6)(t,(function(t){var n=t[0];if("A"!==n)for(var i=1;i<t.length;i+=2)e.push([t[i],t[i+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function Sl(t,e){var n=ml(t),i=Cl(e),r=n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=Cl(n.attr("path"));else{var r=n.getCanvasBBox();e=cs(r)}return(0,Aa.Wq)(i,e)}));return r}function Ml(t){return t.getComponents().map((function(t){return t.component}))}function kl(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}function El(t,e){if(t.length<=2)return il(t,!1);var n=t[0],i=[];(0,S.S6)(t,(function(t){i.push(t.x),i.push(t.y)}));var r=nl(i,e,null);return r.unshift(["M",n.x,n.y]),r}function Fl(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function Tl(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function Il(t,e){var n=t.getCoordinate();return n.invert(e)}function Bl(t,e,n){var i=Il(t,n);return e.getCoordinate().convert(i)}function Dl(t,e,n,i){var r=!1;return(0,S.S6)(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return r=!0,!1})),r}function Pl(t,e){var n=t.getScaleByField(e);return!n&&t.views&&(0,S.S6)(t.views,(function(t){if(n=Pl(t,e),n)return!1})),n}var Ll=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;if(t){if(t.target instanceof HTMLElement){var e=this.view.getCanvas(),n=e.getPointByClient(t.clientX,t.clientY);return n}return{x:t.x,y:t.y}}return null},t.prototype.getCurrentShape=function(){return(0,S.U2)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=Ml(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var i=e.getBBox();return t?e.get("name")===t&&Fl(i,n):Fl(i,n)}))},t.prototype.destroy=function(){(0,S.S6)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),Ol=Ll,Rl=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}(),zl=Rl;function _l(t,e,n){var i=t.split(":"),r=i[0],o=e.getAction(r)||Ws(r,e);if(!o)throw new Error("There is no action named ".concat(r));var a=i[1];return{action:o,methodName:a,arg:n}}function Ul(t){var e=t.action,n=t.methodName,i=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](i)}var Nl={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},Vl=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.callbackCaches={},i.emitCaches={},i.steps=n,i}return(0,C.ZT)(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;(0,S.S6)(this.steps,(function(e,n){(0,S.S6)(e,(function(e){var i=t.getActionCallback(n,e);i&&t.bindEvent(e.trigger,i)}))}))},e.prototype.clearEvents=function(){var t=this;(0,S.S6)(this.steps,(function(e,n){(0,S.S6)(e,(function(e){var i=t.getActionCallback(n,e);i&&t.offEvent(e.trigger,i)}))}))},e.prototype.initContext=function(){var t=this.view,e=new Ol(t);this.context=e;var n=this.steps;(0,S.S6)(n,(function(t){(0,S.S6)(t,(function(t){if((0,S.mf)(t.action))t.actionObject={action:Zs(t.action,e),methodName:"execute"};else if((0,S.HD)(t.action))t.actionObject=_l(t.action,e,t.arg);else if((0,S.kJ)(t.action)){var n=t.action,i=(0,S.kJ)(t.arg)?t.arg:[t.arg];t.actionObject=[],(0,S.S6)(n,(function(n,r){t.actionObject.push(_l(n,e,i[r]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===Nl.SHOW_ENABLE)return!0;if(t===Nl.PROCESSING)return e===Nl.START;if(t===Nl.START)return e!==Nl.PROCESSING;if(t===Nl.END)return e===Nl.PROCESSING||e===Nl.START;if(t===Nl.ROLLBACK){if(n[Nl.END])return e===Nl.END;if(e===Nl.START)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==Nl.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,i=this.context,r=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!r[a]){var s=function(r){i.event=r,n.isAllowExecute(t,e)?((0,S.kJ)(o)?(0,S.S6)(o,(function(t){i.event=r,Ul(t)})):(i.event=r,Ul(o)),n.afterExecute(t,e),e.callback&&(i.event=r,e.callback(i))):i.event=null};e.debounce?r[a]=(0,S.Ds)(s,e.debounce.wait,e.debounce.immediate):e.throttle?r[a]=(0,S.P2)(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):r[a]=s}return r[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(zl),Yl=Vl,Hl={};function Xl(t){return Hl[(0,S.vl)(t)]}function Gl(t,e){Hl[(0,S.vl)(t)]=e}function Wl(t,e,n){var i=Xl(t);if(!i)return null;if((0,S.PO)(i)){var r=(0,S.CD)((0,S.d9)(i),n);return new Yl(e,r)}var o=i;return new o(e,n)}function jl(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}function Ql(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}function Zl(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},i=jl(t),r=Ql(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var i=ns(t.getModel(),e),r=i.startAngle,o=i.endAngle,a=(r+o)/2,s=7.5,l=s*Math.cos(a),u=s*Math.sin(a);return{matrix:mi.vs(null,[["t",l,u]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:(0,C.pi)((0,C.pi)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,C.pi)((0,C.pi)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,C.pi)((0,C.pi)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,C.pi)((0,C.pi)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,C.pi)((0,C.pi)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,C.pi)((0,C.pi)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,C.pi)((0,C.pi)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,C.pi)((0,C.pi)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,S.b$)({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,S.b$)({},i.grid,{line:{type:"circle"}})}},legend:{common:r,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:r.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(ia)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(ra)]={marginBottom:"12px",marginTop:"12px"},e["".concat(oa)]={margin:0,listStyleType:"none",padding:0},e["".concat(aa)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(sa)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(la)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var ql={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Jl={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Kl=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],$l=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],tu=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],eu=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?Kl:e,i=t.paletteQualitative20,r=void 0===i?$l:i,o=t.brandColor,a=void 0===o?n[0]:o,s={backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:tu,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:ql[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:ql[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Jl[85],axisTickLineBorderColor:ql[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:ql[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:ql[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:ql[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:ql[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:ql[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:ql[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:ql[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:ql[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:ql[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:ql[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:ql[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:ql[25],annotationArcBorderColor:ql[15],annotationArcBorder:1,annotationLineBorderColor:ql[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:ql[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:ql[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:ql[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:ql[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:ql[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Jl[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:ql[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Jl[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:ql[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Jl[100],pointBorderOpacity:1,pointActiveBorderColor:ql[100],pointSelectedBorder:2,pointSelectedBorderColor:ql[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:Jl[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:ql[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ql[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ql[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ql[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ql[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ql[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Jl[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ql[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ql[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,C.pi)((0,C.pi)({},s),t)};eu();function nu(t){var e=t.styleSheet,n=void 0===e?{}:e,i=(0,C._T)(t,["styleSheet"]),r=eu(n);return(0,S.b$)({},Zl(r),i)}var iu=nu({}),ru={default:iu};function ou(t){return(0,S.U2)(ru,(0,S.vl)(t),ru.default)}function au(t,e){ru[(0,S.vl)(t)]=nu(e)}function su(t,e,n){var i=n.translate(t),r=n.translate(e);return(0,S.vQ)(i,r)}function lu(t,e){var n=e.coordinate,i=e.getXScale(),r=i.range,o=r[r.length-1],a=r[0],s=n.invert(t),l=s.x;return n.isPolar&&l>(1+o)/2&&(l=a),i.translate(i.invert(l))}function uu(t,e,n){var i=n.coordinate,r=n.getYScale(),o=r.field,a=i.invert(e),s=r.invert(a.y),l=(0,S.sE)(t,(function(t){var e=t[O];return e[o][0]<=s&&e[o][1]>=s}));return l||t[t.length-1]}var cu=(0,S.HP)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,o=0;o<n;o++){var a=e[o],s=t.translate(a);s<i&&(i=s),s>r&&(r=s)}return(r-i)/(n-1)}));function hu(t,e,n){var i=e.getAttribute("position"),r=i.getFields(),o=e.scales,a=(0,S.mf)(n)||!n?r[0]:n,s=o[a],l=s?s.getText(t[a]):t[a]||a;return(0,S.mf)(n)?n(l,t):l}function pu(t){var e=(0,S.VO)(t.attributes);return(0,S.hX)(e,(function(t){return(0,S.FX)(L,t.type)}))}function fu(t){var e,n,i,r=pu(t);try{for(var o=(0,C.XA)(r),a=o.next();!a.done;a=o.next()){var s=a.value,l=s.getScale(s.type);if(l&&l.isLinear){var u=(0,S.U2)(t.scaleDefs,l.field),c=bs(l,u,s.type,t.type);if("cat"!==c){i=l;break}}}}catch(f){e={error:f}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}var h=t.getXScale(),p=t.getYScale();return i||p||h}function du(t,e){var n=e.field,i=t[n];if((0,S.kJ)(i)){var r=i.map((function(t){return e.getText(t)}));return r.join("-")}return e.getText(i)}function gu(t,e){var n,i=e.getGroupScales();if(i.length&&(n=i[0]),n){var r=n.field;return n.getText(t[r])}var o=fu(e);return Cs(o)}function vu(t,e,n){if(0===e.length)return null;var i=n.type,r=n.getXScale(),o=n.getYScale(),a=r.field,s=o.field,l=null;if("heatmap"===i||"point"===i){for(var u=n.coordinate,c=u.invert(t),h=r.invert(c.x),p=o.invert(c.y),f=1/0,d=0;d<e.length;d++){var g=e[d],v=g[O],m=Math.pow(v[a]-h,2)+Math.pow(v[s]-p,2);m<f&&(f=m,l=g)}return l}var y=e[0],x=e[e.length-1],b=lu(t,n),w=y[O][a],A=y[O][s],C=x[O][a],M=o.isLinear&&(0,S.kJ)(A);if((0,S.kJ)(w)){for(d=0;d<e.length;d++){var k=e[d];v=k[O];if(r.translate(v[a][0])<=b&&r.translate(v[a][1])>=b){if(!M){l=k;break}(0,S.kJ)(l)||(l=[]),l.push(k)}}(0,S.kJ)(l)&&(l=uu(l,t,n))}else{var E=void 0;if(r.isLinear||"timeCat"===r.type){if((b>r.translate(C)||b<r.translate(w))&&(b>r.max||b<r.min))return null;var F=0,T=e.length-1,I=void 0;while(F<=T){I=Math.floor((F+T)/2);var B=e[I][O][a];if(su(B,b,r))return e[I];r.translate(B)<=r.translate(b)?(F=I+1,x=e[I],E=e[I+1]):(0===T&&(x=e[0]),T=I-1)}}else{for(d=0;d<e.length;d++){k=e[d],v=k[O];if(su(v[a],b,r)){if(!M){l=k;break}(0,S.kJ)(l)||(l=[]),l.push(k)}else r.translate(v[a])<=b&&(x=k,E=e[d+1])}(0,S.kJ)(l)&&(l=uu(l,t,n))}x&&E&&Math.abs(r.translate(x[O][a])-b)>Math.abs(r.translate(E[O][a])-b)&&(x=E)}var D=cu(n.getXScale());return!l&&Math.abs(r.translate(x[O][a])-b)<=D/2&&(l=x),l}function mu(t,e,n,i){var r,o;void 0===n&&(n=""),void 0===i&&(i=!1);var a,s,l=t[O],u=hu(l,e,n),c=e.tooltipOption,h=e.theme.defaultColor,p=[];function f(e,n){if(i||!(0,S.UM)(n)&&""!==n){var r={title:u,data:l,mappingData:t,name:e,value:n,color:t.color||h,marker:!0};p.push(r)}}if((0,S.Kn)(c)){var d=c.fields,g=c.callback;if(g){var v=d.map((function(e){return t[O][e]})),m=g.apply(void 0,(0,C.ev)([],(0,C.CR)(v),!1)),y=(0,C.pi)({data:t[O],mappingData:t,title:u,color:t.color||h,marker:!0},m);p.push(y)}else{var x=e.scales;try{for(var b=(0,C.XA)(d),w=b.next();!w.done;w=b.next()){var A=w.value;if(!(0,S.UM)(l[A])){var M=x[A];a=Cs(M),s=M.getText(l[A]),f(a,s)}}}catch(E){r={error:E}}finally{try{w&&!w.done&&(o=b.return)&&o.call(b)}finally{if(r)throw r.error}}}}else{var k=fu(e);s=du(l,k),a=gu(l,e),f(a,s)}return p}function yu(t,e,n,i){var r,o,a=i.showNil,s=[],l=t.dataArray;if(!(0,S.xb)(l)){t.sort(l);try{for(var u=(0,C.XA)(l),c=u.next();!c.done;c=u.next()){var h=c.value,p=vu(e,h,t);if(p){var f=t.getElementId(p),d=t.elementsMap[f];if("heatmap"===t.type||d.visible){var g=mu(p,t,n,a);g.length&&s.push(g)}}}}catch(v){r={error:v}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}}return s}function xu(t,e,n,i){var r=i.showNil,o=[],a=t.container,s=a.getShape(e.x,e.y);if(s&&s.get("visible")&&s.get("origin")){var l=s.get("origin").mappingData,u=mu(l,t,n,r);u.length&&o.push(u)}return o}function bu(t,e,n){var i,r,o=[],a=t.geometries,s=n.shared,l=n.title,u=n.reversed;try{for(var c=(0,C.XA)(a),h=c.next();!h.done;h=c.next()){var p=h.value;if(p.visible&&!1!==p.tooltipOption){var f=p.type,d=void 0;d=["point","edge","polygon"].includes(f)?xu(p,e,l,n):["area","line","path","heatmap"].includes(f)||!1!==s?yu(p,e,l,n):xu(p,e,l,n),d.length&&(u&&d.reverse(),o.push(d))}}}catch(g){i={error:g}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}return o}function wu(t,e,n){var i,r,o=bu(t,e,n);try{for(var a=(0,C.XA)(t.views),s=a.next();!s.done;s=a.next()){var l=s.value;o=o.concat(bu(l,e,n))}}catch(u){i={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function Au(t){return!(0,S.hj)(t)&&!(0,S.kJ)(t)}function Cu(t){void 0===t&&(t=0);var e=(0,S.kJ)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=(0,C.ev)((0,C.ev)([],(0,C.CR)(e),!1),(0,C.CR)(e),!1);break;case 3:e=(0,C.ev)((0,C.ev)([],(0,C.CR)(e),!1),[e[1]],!1);break;default:e=e.slice(0,4);break}return e}var Su={};function Mu(t,e){Su[t]=e}function ku(){return Object.keys(Su)}function Eu(t){return Su[t]}var Fu=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return(0,S.G)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,r=n.cfg,o="theta"===i,a=(0,C.pi)({start:t,end:e},r),s=Fi(o?"polar":i);return this.coordinate=new s(a),this.coordinate.type=i,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return(0,C.pi)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;(0,S.S6)(n,(function(n){var i,r=(0,C.CR)(n),o=r[0],a=r.slice(1),s=!!(0,S.UM)(t)||t.includes(o);s&&(i=e.coordinate)[o].apply(i,(0,C.ev)([],(0,C.CR)(a),!1))}))},t}(),Tu=Fu,Iu=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new K.Event(n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}(),Bu=Iu;function Du(t){var e=t.getController("axis"),n=t.getController("legend"),i=t.getController("annotation"),r=t.getController("slider"),o=t.getController("scrollbar");[e,r,o,n,i].forEach((function(t){t&&t.layout()}))}var Pu=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,i){var r=n,o=this.getScaleMeta(i);if(0===e.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),r=(0,S.b$)(s,o.scaleDef,n)}var l=ws(t,e,r);return this.cacheScale(l,n,i),l},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(i,r){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=[];(0,S.S6)(i,(function(t){var e=n.getScale(t);a=(0,S.hj)(e.max)?Math.max(a,e.max):a,o=(0,S.hj)(e.min)?Math.min(o,e.min):o,(0,S.S6)(e.values,(function(t){s.includes(t)||s.push(t)}))})),(0,S.S6)(i,(function(i){var r=n.getScale(i);if(r.isContinuous)r.change({min:o,max:a,values:s});else if(r.isCategory){var l=r.range,u=n.getScaleMeta(i);s&&!(0,S.U2)(u,["scaleDef","range"])&&(l=Ss((0,S.b$)({},r,{values:s}),t,e)),r.change({values:s,range:l})}}))}))},t.prototype.cacheScale=function(t,e,n){var i=this.getScaleMeta(n);i&&i.scale.type===t.type?(As(i.scale,t),i.scaleDef=e):(i={key:n,scale:t,scaleDef:e},this.scales.set(n,i));var r=this.getSyncKey(i);if(i.syncKey=r,this.removeFromSyncScales(n),r){var o=this.syncScales.get(r);o||(o=[],this.syncScales.set(r,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=(0,S.Z$)(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,i=this.syncScales.get(n);if(i&&i.length){var r=i.indexOf(t);-1!==r&&i.splice(r,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,i){var r=n.indexOf(t);if(-1!==r)return n.splice(r,1),0===n.length&&e.syncScales.delete(i),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,r=(0,S.U2)(n,["sync"]);return!0===r?i:!1===r?void 0:r},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),Lu=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.top=t,this.right=e,this.bottom=n,this.left=i}return t.instance=function(e,n,i,r){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),new t(e,n,i,r)},t.prototype.max=function(t){var e=(0,C.CR)(t,4),n=e[0],i=e[1],r=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,r),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=(0,C.CR)(t,4),n=e[0],i=e[1],r=e[2],o=e[3];return this.top+=n,this.right+=i,this.bottom+=r,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,i=t.height;switch(e){case m.TOP:case m.TOP_LEFT:case m.TOP_RIGHT:this.top+=i;break;case m.RIGHT:case m.RIGHT_TOP:case m.RIGHT_BOTTOM:this.right+=n;break;case m.BOTTOM:case m.BOTTOM_LEFT:case m.BOTTOM_RIGHT:this.bottom+=i;break;case m.LEFT:case m.LEFT_TOP:case m.LEFT_BOTTOM:this.left+=n;break;default:break}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,(0,C.ev)([void 0],(0,C.CR)(this.getPadding()),!1)))},t}();function Ou(t){var e=t.padding;if(!Au(e))return new(Lu.bind.apply(Lu,(0,C.ev)([void 0],(0,C.CR)(Cu(e)),!1)));var n=t.viewBBox,i=new Lu,r=[],o=[],a=[];return(0,S.S6)(t.getComponents(),(function(t){var e=t.type;e===y.AXIS?r.push(t):[y.LEGEND,y.SLIDER,y.SCROLLBAR].includes(e)?o.push(t):e!==y.GRID&&e!==y.TOOLTIP&&a.push(t)})),(0,S.S6)(r,(function(t){var e=t.component,r=e.getLayoutBBox(),o=new us(r.x,r.y,r.width,r.height),a=o.exceed(n);i.max(a)})),(0,S.S6)(o,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),o=e.get("padding"),a=new us(r.x,r.y,r.width,r.height).expand(o);i.inc(a,n)})),(0,S.S6)(a,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),o=new us(r.x,r.y,r.width,r.height);i.inc(o,n)})),i}function Ru(t,e,n){var i=n.instance();e.forEach((function(t){t.autoPadding=i.max(t.autoPadding.getPadding())}))}var zu=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=ku(),n.scalePool=new Pu,n.layoutFunc=Du,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var i=n.createViewEvent(t);n.doPlotEvent(i),n.emit(e,i)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var i=n.createViewEvent(t);n.emit(e,i)}};var i=e.id,r=void 0===i?(0,S.EL)("view"):i,o=e.parent,a=e.canvas,s=e.backgroundGroup,l=e.middleGroup,u=e.foregroundGroup,c=e.region,h=void 0===c?{start:{x:0,y:0},end:{x:1,y:1}}:c,p=e.padding,f=e.appendPadding,d=e.theme,g=e.options,v=e.limitInPlot,m=e.syncViewPadding;return n.parent=o,n.canvas=a,n.backgroundGroup=s,n.middleGroup=l,n.foregroundGroup=u,n.region=h,n.padding=p,n.appendPadding=f,n.options=(0,C.pi)((0,C.pi)({},n.options),g),n.limitInPlot=v,n.id=r,n.syncViewPadding=m,n.themeObject=(0,S.Kn)(d)?(0,S.b$)({},ou("default"),nu(d)):ou(d),n.init(),n}return(0,C.ZT)(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(M.BEFORE_RENDER,Bu.fromData(this,M.BEFORE_RENDER,e)),this.paint(t),this.emit(M.AFTER_RENDER,Bu.fromData(this,M.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(M.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var i=this.controllers;for(n=0;n<i.length;n++)"annotation"===i[n].name?i[n].clear(!0):i[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var r=this.views;for(n=0;n<r.length;n++)r[n].clear();this.emit(M.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(M.BEFORE_DESTROY);var e=this.interactions;(0,S.S6)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,i=0,r=n.length;i<r;i++){var o=n[i];o.destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,i=0,r=n.length;i<r;i++){var o=n[i];o.changeVisible(e)}var a=this.controllers;for(i=0,r=a.length;i<r;i++){var s=a[i];s.changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return(0,S.t8)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return(0,S.mf)(e)?((0,S.t8)(this.options,["filters",t],e),this):(!e&&(0,S.U2)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return(0,S.jn)(t)?(0,S.t8)(this.options,["axes"],t):(0,S.t8)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return(0,S.jn)(t)?(0,S.t8)(this.options,["legends"],t):(0,S.HD)(t)?((0,S.t8)(this.options,["legends",t],e),(0,S.PO)(e)&&(null===e||void 0===e?void 0:e.selected)&&(0,S.t8)(this.options,["filters",t],(function(t){var n;return null===(n=null===e||void 0===e?void 0:e.selected[t])||void 0===n||n}))):(0,S.t8)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return(0,S.HD)(t)?(0,S.t8)(this.options,["scales",t],e):(0,S.Kn)(t)&&(0,S.S6)(t,(function(t,e){(0,S.t8)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return(0,S.t8)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return(0,S.HD)(t)?(0,S.t8)(this.options,"coordinate",{type:t,cfg:e}):(0,S.t8)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=Us(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,(0,C.pi)((0,C.pi)({},e),{type:t})),this},e.prototype.animate=function(t){return(0,S.t8)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),(0,S.CD)(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return(0,S.t8)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=(0,S.Kn)(t)?(0,S.b$)({},this.themeObject,nu(t)):ou(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var i=Wl(t,this,e);return i&&(i.init(),this.interactions[t]=i),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(M.BEFORE_CHANGE_DATA,Bu.fromData(this,M.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.changeData(t)}this.emit(M.AFTER_CHANGE_DATA,Bu.fromData(this,M.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:(0,S.d9)(this.options.scales),axes:(0,S.d9)(this.options.axes),coordinate:(0,S.d9)(this.coordinateController.getOption()),tooltip:(0,S.d9)(this.options.tooltip),legends:(0,S.d9)(this.options.legends),animate:this.options.animate,visible:this.visible},i=new e((0,C.pi)((0,C.pi)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:T.BG}),middleGroup:this.middleGroup.addGroup({zIndex:T.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:T.FORE}),theme:this.themeObject,padding:this.padding},t),{options:(0,C.pi)((0,C.pi)({},n),(0,S.U2)(t,"options",{}))}));return this.views.push(i),i},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=(0,S.Od)(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var i=n.getYScale(),r=i.field;t[r]||(t[r]=!0,e.push(i))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},i=0,r=e.length;i<r;i++){var o=e[i],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return(0,S.u4)(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===v.BG?this.backgroundGroup:t===v.MID?this.middleGroup:(v.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return ds(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return(0,S.xH)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return ls((0,S.xH)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){var t=this;while(1){if(!t.parent)break;t=t.parent}return t},e.prototype.getXY=function(t){var e,n,i=this.getCoordinate(),r=this.getScalesByDim("x"),o=this.getScalesByDim("y");if((0,S.S6)(t,(function(t,i){r[i]&&(e=r[i].scale(t)),o[i]&&(n=o[i].scale(t))})),!(0,S.UM)(e)&&!(0,S.UM)(n))return i.convert({x:e,y:n})},e.prototype.getController=function(t){return(0,S.sE)(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],i=0,r=e.length;i<r;i++){var o=e[i],a=o.dataArray;o.sort(a);for(var s=void 0,l=0,u=a.length;l<u;l++){var c=a[l];s=vu(t,c,o),s&&n.push(s)}}var h=this.views;for(i=0,r=h.length;i<r;i++){var p=h[i],f=p.getSnapRecords(t);n=n.concat(f)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,i=e.length;n<i;n++){var r=e[n];t=t.concat(r.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===(0,S.dp)(e)?t:(0,S.hX)(t,(function(t,n){var i=Object.keys(e);return i.every((function(i){var r=e[i];return r(t[i],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,i=(0,S.U2)(n,t);return(0,S.o8)(i)?e:e.filter((function(e,n){return i(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,i=this.coordinateBBox.bl,r=this.coordinateBBox.tr;(0,S.Xy)(e,i)&&(0,S.Xy)(n,r)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(i,r))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(M.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(M.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=(0,S.U2)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,i=e.y,r=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:i,width:r,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=Ou(this).shrink(Cu(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?Ru:(0,S.mf)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,Lu),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,i=0,r=n.length;i<r;i++){var o=n[i];o.renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=vs(this.coordinateInstance),i=n.type,r=n.attrs;e.setClip({type:i,attrs:r})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,s=o.length;a<s;a++){var l=o[a];l.renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,i){var r=(0,S.U2)(this.options.scales,[t]),o=(0,C.pi)((0,C.pi)({},r),n);return this.parent?this.parent.createScale(t,e,o,i):this.scalePool.createScale(t,e,o,i)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,i;if(this.parent){var r=this.parent.coordinateBBox;t=r.x,e=r.y,n=r.width,i=r.height}else t=0,e=0,n=this.canvas.get("width"),i=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,l=new us(t+n*a.x,e+i*a.y,n*(s.x-a.x),i*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(l)||(this.viewBBox=new us(t+n*a.x,e+i*a.y,n*(s.x-a.x),i*(s.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var i=t[e],r=Eu(i);r&&this.controllers.push(new r(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,i=e?e.get("origin"):null,r=new Bu(this,t,i);return r.type=n,r},e.prototype.doPlotEvent=function(t){var e=t.type,n=t.x,i=t.y,r={x:n,y:i},o=["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"];if(o.includes(e)){var a=this.isPointInPlot(r),s=t.clone();if(a){var l="plot:".concat(e);s.type=l,this.emit(l,s),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!a?("mousemove"===e&&(s.type=E.MOUSE_LEAVE,this.emit(E.MOUSE_LEAVE,s)),s.type=E.LEAVE,this.emit(E.LEAVE,s)):!this.isPreMouseInPlot&&a&&("mousemove"===e&&(s.type=E.MOUSE_ENTER,this.emit(E.MOUSE_ENTER,s)),s.type=E.ENTER,this.emit(E.ENTER,s)),this.isPreMouseInPlot=a):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(s.type=E.MOUSE_LEAVE,this.emit(E.MOUSE_LEAVE,s)),s.type=E.LEAVE,this.emit(E.LEAVE,s),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=(0,S.U2)(this.options,"scales",{}),i=this.geometries,r=0,o=i.length;r<o;r++){var a=i[r];a.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(s):a.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),i=n.data,r=n.scales,o=void 0===r?{}:r,a=this.filteredData,s=0,l=t.length;s<l;s++){var u=t[s],c=o[u],h=this.getScaleKey(u);this.createScale(u,e.includes(u)?i:a,c,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var i=t[n];e[i]=this.getScaleByField(i)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,i=0;i<n.length;i++){var r=n[i],o=r.getScaleFields();ls(o,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,i=0;i<n.length;i++){var r=n[i],o=r.getGroupFields();ls(o,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=(0,C.ev)([this.getXScale()],(0,C.CR)(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),i=this.options.scales;(0,S.S6)(e,(function(e){var r=e.field,o=e.values,a=e.isCategory,s=e.isIdentity;(a||s)&&o&&!(0,S.U2)(i,[r,"range"])&&(e.range=Ss(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var i=e[n];t?i.update():(i.clear(),i.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),i={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},r=this.geometries,o=0;o<r.length;o++){var a=r[o];a.coordinate=n,a.canvasRegion=i,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){var n=this.getComponents()[e];n.component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,i=void 0===n?[]:n,r=e.interactions,o=void 0===r?[]:r,a=e.views,s=void 0===a?[]:a,l=e.annotations,u=void 0===l?[]:l,c=e.coordinate,h=e.events,p=e.facets;this.coordinateController?c&&this.coordinateController.update(c):this.coordinateController=new Tu(c);for(var f=0;f<i.length;f++){var d=i[f];this.createGeometry(d)}for(var g=0;g<o.length;g++){var v=o[g],m=v.type,y=v.cfg;this.interaction(m,y)}for(var x=0;x<s.length;x++){var b=s[x];this.createView(b)}for(var w=this.getController("annotation"),A=0;A<u.length;A++){var M=u[A];w.annotation(M)}h&&(0,S.S6)(h,(function(e,n){t.on(n,e)})),p&&(0,S.S6)(p,(function(e){var n=e.type,i=(0,C._T)(e,["type"]);t.facet(n,i)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,i=void 0===n?{}:n;if(this[e]){var r=this[e](i);(0,S.S6)(t,(function(t,e){(0,S.mf)(r[e])&&r[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(J);function _u(t,e){zu.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=(0,C.pi)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}}var Uu=zu,Nu=function(t){function e(e){var n=this,i=e.container,r=e.width,o=e.height,a=e.autoFit,s=void 0!==a&&a,l=e.padding,u=e.appendPadding,c=e.renderer,h=void 0===c?"canvas":c,p=e.pixelRatio,f=e.localRefresh,d=void 0===f||f,g=e.visible,v=void 0===g||g,m=e.supportCSSTransform,y=void 0!==m&&m,x=e.defaultInteractions,b=void 0===x?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:x,w=e.options,A=e.limitInPlot,M=e.theme,k=e.syncViewPadding,E=(0,S.HD)(i)?document.getElementById(i):i,F=H('<div style="position:relative;"></div>');E.appendChild(F);var I=j(E,s,r,o),B=N(h),D=new B.Canvas((0,C.pi)({container:F,pixelRatio:p,localRefresh:d,supportCSSTransform:y},I));return n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:T.BG}),middleGroup:D.addGroup({zIndex:T.MID}),foregroundGroup:D.addGroup({zIndex:T.FORE}),padding:l,appendPadding:u,visible:v,options:w,limitInPlot:A,theme:M,syncViewPadding:k})||this,n.onResize=(0,S.Ds)((function(){n.forceFit()}),300),n.ele=E,n.canvas=D,n.width=I.width,n.height=I.height,n.autoFit=s,n.localRefresh=d,n.renderer=h,n.wrapperElement=F,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(b),n}return(0,C.ZT)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;(0,S.S6)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(M.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(M.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),Q(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=j(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){X(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(Uu),Vu=Nu,Yu=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){(0,S.S6)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();function Hu(t){for(var e=[],n=function(n){var i=t[n],r=(0,S.sE)(e,(function(t){return t.color===i.color&&t.name===i.name&&t.value===i.value&&t.title===i.title}));r||e.push(i)},i=0;i<t.length;i++)n(i);return e}var Xu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return(0,C.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){var t=this.view.getOptions().tooltip;return!1!==t},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var i=this.getTitle(n),r={x:n[0].x,y:n[0].y};e.emit("tooltip:show",Bu.fromData(e,"tooltip:show",(0,C.pi)({items:n,title:i},t)));var o=this.getTooltipCfg(),a=o.follow,s=o.showMarkers,l=o.showCrosshairs,u=o.showContent,c=o.marker,h=this.items,p=this.title;if((0,S.Xy)(p,i)&&(0,S.Xy)(h,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",Bu.fromData(e,"tooltip:change",(0,C.pi)({items:n,title:i},t))),((0,S.mf)(u)?u(n):u)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,S.CD)({},o,{items:this.getItemsAfterProcess(n),title:i},a?t:{})),this.tooltip.show()),s&&this.renderTooltipMarkers(n,c)),this.items=n,this.title=i,l){var f=(0,S.U2)(o,["crosshairs","follow"],!1);this.renderCrosshairs(f?t:r,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){var t=this.getTooltipCfg().follow;if(t){var e=this.tooltipMarkersGroup;e&&e.hide();var n=this.xCrosshair,i=this.yCrosshair;n&&n.hide(),i&&i.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",Bu.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this,e=t.tooltip,n=t.xCrosshair,i=t.yCrosshair,r=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),i&&i.clear(),r&&r.clear(),(null===e||void 0===e?void 0:e.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this,n=e.tooltip,i=e.tooltipMarkersGroup,r=e.xCrosshair,o=e.yCrosshair;t?(n&&n.show(),i&&i.show(),r&&r.show(),o&&o.show()):(n&&n.hide(),i&&i.hide(),r&&r.hide(),o&&o.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,i,r,o,a,s=this.findItemsFromView(this.view,t);if(s.length){s=(0,S.xH)(s);try{for(var l=(0,C.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var h=(i=void 0,(0,C.XA)(c)),p=h.next();!p.done;p=h.next()){var f=p.value,d=f.mappingData,g=d.x,v=d.y;f.x=(0,S.kJ)(g)?g[g.length-1]:g,f.y=(0,S.kJ)(v)?v[v.length-1]:v}}catch(k){i={error:k}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}}}catch(E){e={error:E}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}var m=this.getTooltipCfg().shared;if(!1===m&&s.length>1){var y=s[0],x=Math.abs(t.y-y[0].y);try{for(var b=(0,C.XA)(s),w=b.next();!w.done;w=b.next()){var A=w.value,M=Math.abs(t.y-A[0].y);M<=x&&(y=A,x=M)}}catch(F){o={error:F}}finally{try{w&&!w.done&&(a=b.return)&&a.call(b)}finally{if(o)throw o.error}}s=[y]}return Hu((0,S.xH)(s))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var i=e.getBoundingClientRect(),r=i.x,o=i.y,a=i.width,s=i.height;return new us(r,o,a,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),i=t.getTheme(),r=(0,S.U2)(i,["components","tooltip"],{}),o=(0,S.U2)(n,"enterable",r.enterable);return(0,S.b$)({},r,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if((0,S.jn)(t)||!(0,S.U2)(t,"customContent"))return t;var e=t.customContent,n=function(t,n){var i=e(t,n)||"";return(0,S.HD)(i)?'<div class="g2-tooltip">'+i+"</div>":i};return(0,C.pi)((0,C.pi)({},t),{customContent:n})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new Za((0,C.pi)((0,C.pi)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var n,i,r=this.getTooltipMarkersGroup(),o=this.view.getRootView(),a=o.limitInPlot;try{for(var s=(0,C.XA)(t),l=s.next();!l.done;l=s.next()){var u=l.value,c=u.x,h=u.y;if(a||(null===r||void 0===r?void 0:r.getClip())){var p=vs(o.getCoordinate()),f=p.type,d=p.attrs;null===r||void 0===r||r.setClip({type:f,attrs:d})}else null===r||void 0===r||r.setClip(void 0);var g=(0,C.pi)((0,C.pi)({fill:u.color,symbol:"circle",shadowColor:u.color},e),{x:c,y:h});r.addShape("marker",{attrs:g})}}catch(v){n={error:v}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=(0,S.U2)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(ds(n,t)){var i,r;if(n.isRect)n.isTransposed?(i={x:n.start.x,y:t.y},r={x:n.end.x,y:t.y}):(i={x:t.x,y:n.end.y},r={x:t.x,y:n.start.y});else{var o=gs(n,t),a=n.getCenter(),s=n.getRadius();r=$a(a.x,a.y,s,o),i=a}var l=(0,S.b$)({start:i,end:r,container:this.getTooltipCrosshairsGroup()},(0,S.U2)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var u=this.xCrosshair;u?u.update(l):(u=new Eo(l),u.init()),u.render(),u.show(),this.xCrosshair=u}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(ds(n,t)){var i,r;if(n.isRect){var o=void 0,a=void 0;n.isTransposed?(o={x:t.x,y:n.end.y},a={x:t.x,y:n.start.y}):(o={x:n.start.x,y:t.y},a={x:n.end.x,y:t.y}),i={start:o,end:a},r="Line"}else i={center:n.getCenter(),radius:fs(n,t),startAngle:n.startAngle,endAngle:n.endAngle},r="Circle";i=(0,S.b$)({container:this.getTooltipCrosshairsGroup()},i,(0,S.U2)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e)),delete i.type;var s=this.yCrosshair;s?n.isRect&&"circle"===s.get("type")||!n.isRect&&"line"===s.get("type")?(s=new u[r](i),s.init()):s.update(i):(s=new u[r](i),s.init()),s.render(),s.show(),this.yCrosshair=s}},e.prototype.getCrosshairsText=function(t,e,n){var i=(0,S.U2)(n,["crosshairs","text"]),r=(0,S.U2)(n,["crosshairs","follow"]),o=this.items;if(i){var a=this.getViewWithGeometry(this.view),s=o[0],l=a.getXScale(),u=a.getYScales()[0],c=void 0,h=void 0;if(r){var p=this.view.getCoordinate().invert(e);c=l.invert(p.x),h=u.invert(p.y)}else c=s.data[l.field],h=s.data[u.field];var f="x"===t?c:h;return(0,S.mf)(i)?i=i(t,f,o,e):i.content=f,{text:i}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,i;if(!1===t.getOptions().tooltip)return[];var r=this.getTooltipCfg(),o=bu(t,e,r);try{for(var a=(0,C.XA)(t.views),s=a.next();!s.done;s=a.next()){var l=s.value;o=o.concat(this.findItemsFromView(l,e))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:(0,S.sE)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems,n=e||function(t){return t};return n(t)},e}(Yu),Gu=Xu,Wu={};function ju(t){return Wu[t.toLowerCase()]}function Qu(t,e){Wu[t.toLowerCase()]=e}var Zu={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},qu={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Ju={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){var e;return e=t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy",{animation:e}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Ku(t,e){return{delay:(0,S.mf)(t.delay)?t.delay(e):t.delay,easing:(0,S.mf)(t.easing)?t.easing(e):t.easing,duration:(0,S.mf)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}function $u(t,e,n){var i=qu[t];return i&&((0,S.mf)(i)&&(i=i(e)),i=(0,S.b$)({},Zu,i),n)?i[n]:i}function tc(t,e,n){var i=(0,S.U2)(t.get("origin"),"data",O),r=e.animation,o=Ku(e,i);if(r){var a=ju(r);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}function ec(t,e,n,i,r){if(Ju[n]){var o=Ju[n](i),a=ju((0,S.U2)(o,"animation",""));if(a){var s=(0,C.pi)((0,C.pi)((0,C.pi)({},Zu.appear),o),e);t.stopAnimate(),a(t,s,{coordinate:i,minYPoint:r,toAttrs:null})}}}var nc="element-background",ic=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var i=e.shapeFactory,r=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,l=void 0===s||s;return n.shapeFactory=i,n.container=r,n.offscreenGroup=o,n.visible=l,n.elementIndex=a,n}return(0,C.ZT)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this,n=e.shapeFactory,i=e.shape;if(i){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(i,t);var r=this.getOffscreenGroup(),o=n.drawShape(this.shapeType,t,r);o.cfg.data=this.data,o.cfg.origin=t,o.cfg.element=this,this.syncShapeStyle(i,o,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this,n=e.shapeFactory,i=e.shape;if(i){var r=this.getAnimateCfg("leave");r?tc(i,r,{coordinate:n.coordinate,toAttrs:(0,C.pi)({},i.attr())}):i.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,i=n.states,r=n.shapeFactory,o=n.model,a=n.shape,s=n.shapeType,l=i.indexOf(t);if(e){if(l>-1)return;i.push(t),"active"!==t&&"selected"!==t||null===a||void 0===a||a.toFront()}else{if(-1===l)return;if(i.splice(l,1),"active"===t||"selected"===t){var u=this.geometry,c=u.sortZIndex,h=u.zIndexReversed,p=h?this.geometry.elements.length-this.elementIndex:this.elementIndex;c?a.setZIndex(p):a.set("zIndex",p)}}var f=r.drawShape(s,o,this.getOffscreenGroup());i.length?this.syncShapeStyle(a,f,i,null):this.syncShapeStyle(a,f,["reset"],null),f.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),Ii(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;(0,S.S6)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this,e=t.shape,n=t.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(i=e.getCanvasBBox()),n&&n.forEach((function(t){var e=t.getCanvasBBox();i.x=Math.min(e.x,i.x),i.y=Math.min(e.y,i.y),i.minX=Math.min(e.minX,i.minX),i.minY=Math.min(e.minY,i.minY),i.maxX=Math.max(e.maxX,i.maxX),i.maxY=Math.max(e.maxY,i.maxY)})),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,i=t.shapeFactory,r=n.stateOption,o=i.defaultShapeType,a=i.theme[e]||i.theme[o];this.statesStyle=(0,S.b$)({},a,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),i=(0,S.U2)(n,[t,"style"],{}),r=i[e]||i;return(0,S.mf)(r)?r(this):r},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var i=n[t];return i?(0,C.pi)((0,C.pi)({},i),{callback:function(){var t;(0,S.mf)(i.callback)&&i.callback(),null===(t=e.geometry)||void 0===t||t.emit(k.AFTER_DRAW_ANIMATE)}}):i}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var i=this,r=i.shapeFactory,o=i.container,a=i.shapeType;if(this.shape=r.drawShape(a,t,o),this.shape){this.setShapeInfo(this.shape,t);var s=this.shape.cfg.name;s?(0,S.HD)(s)&&(this.shape.cfg.name=["element",s]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var l=e?"enter":"appear",u=this.getAnimateCfg(l);u&&(null===(n=this.geometry)||void 0===n||n.emit(k.BEFORE_DRAW_ANIMATE),tc(this.shape,u,{coordinate:r.coordinate,toAttrs:(0,C.pi)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;if(t.cfg.origin=e,t.cfg.element=this,t.isGroup()){var i=t.get("children");i.forEach((function(t){n.setShapeInfo(t,e)}))}},e.prototype.syncShapeStyle=function(t,e,n,i,r){var o,a=this;if(void 0===n&&(n=[]),void 0===r&&(r=0),t&&e){var s=t.get("clipShape"),l=e.get("clipShape");if(this.syncShapeStyle(s,l,n,i),t.isGroup())for(var u=t.get("children"),c=e.get("children"),h=0;h<u.length;h++)this.syncShapeStyle(u[h],c[h],n,i,r+h);else{if(!(0,S.xb)(n)&&!(0,S.Xy)(n,["reset"])){var p=t.get("name");(0,S.kJ)(p)&&(p=p[1]),(0,S.S6)(n,(function(t){if(e.get("name")!==nc){var n=a.getStateStyle(t,p||r);e.attr(n)}}))}var f=rs(t,e);this.animate?i?(null===(o=this.geometry)||void 0===o||o.emit(k.BEFORE_DRAW_ANIMATE),tc(t,i,{coordinate:this.shapeFactory.coordinate,toAttrs:f,shapeModel:this.model})):(0,S.xb)(n)?t.attr(f):(t.stopAnimate(),t.animate(f,{duration:300})):t.attr(f)}}},e.prototype.getShapeType=function(t){var e=(0,S.U2)(t,"shape");return(0,S.kJ)(e)?e[0]:e},e}(J),rc=ic,oc={},ac={};function sc(t){return oc[t.toLowerCase()]}function lc(t,e){oc[t.toLowerCase()]=e}function uc(t){return ac[t.toLowerCase()]}function cc(t,e){ac[t.toLowerCase()]=e}var hc={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return(0,S.U2)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var i=this.defaultShapeType;n=this.getShape(i)}var r=this.theme,o=(0,S.U2)(r,[t,"default"],{}),a=n.getMarker(e);return(0,S.b$)({},o,a)},drawShape:function(t,e,n){var i=this.getShape(t);return i.draw(e,n)}},pc={coordinate:null,parsePath:function(t){var e=this.coordinate,n=(0,Aa.tr)(t);return n=e.isPolar?al(e,n):ol(e,n),n},parsePoint:function(t){var e=this.coordinate;return e.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},fc={};function dc(t,e){var n=(0,S.jC)(t),i=(0,C.pi)((0,C.pi)((0,C.pi)({},hc),e),{geometryType:t});return fc[n]=i,i}function gc(t,e,n){var i=(0,S.jC)(t),r=fc[i],o=(0,C.pi)((0,C.pi)({},pc),n);return r[e]=o,o}function vc(t){var e=(0,S.jC)(t);return fc[e]}function mc(t,e,n){var i,r;if(void 0===n&&(n={}),!e)return[t];var o=(0,S.Ms)(t,e),a=[];if(1===e.length&&n[e[0]]){var s=n[e[0]];try{for(var l=(0,C.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=o["_".concat(c)];h&&a.push(h)}}catch(d){i={error:d}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}}else for(var p in o)if(o.hasOwnProperty(p)){var f=o[p];a.push(f)}return a}function yc(t,e){return(0,S.G)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!(0,S.Xy)(t[n],e[n])}))}function xc(t){return(0,S.kJ)(t)?t:t.split("*")}function bc(t,e){for(var n=[],i=[],r=[],o=new Map,a=0;a<e.length;a++){var s=e[a];t[s]?i.push(s):n.push(s),o.set(s,!0)}return Object.keys(t).forEach((function(t){o.has(t)||r.push(t)})),{added:n,updated:i,removed:r}}var wc=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var i=e.container,r=e.labelsContainer,o=e.coordinate,a=e.data,s=e.sortable,l=void 0!==s&&s,u=e.visible,c=void 0===u||u,h=e.theme,p=e.scales,f=void 0===p?{}:p,d=e.scaleDefs,g=void 0===d?{}:d,v=e.intervalPadding,m=e.dodgePadding,y=e.maxColumnWidth,x=e.minColumnWidth,b=e.columnWidthRatio,w=e.roseWidthRatio,A=e.multiplePieWidthRatio,C=e.zIndexReversed,S=e.sortZIndex,M=e.useDeferredLabel;return n.container=i,n.labelsContainer=r,n.coordinate=o,n.data=a,n.sortable=l,n.visible=c,n.userTheme=h,n.scales=f,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=m,n.maxColumnWidth=y,n.minColumnWidth=x,n.columnWidthRatio=b,n.roseWidthRatio=w,n.multiplePieWidthRatio=A,n.zIndexReversed=C,n.sortZIndex=S,n.useDeferredLabel=M?"number"===typeof M?M:1/0:null,n}return(0,C.ZT)(e,t),e.prototype.position=function(t){var e=t;(0,S.PO)(t)||(e={fields:xc(t)});var n=(0,S.U2)(e,"fields");return 1===n.length&&(n.unshift("1"),(0,S.t8)(e,"fields",n)),(0,S.t8)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return((0,S.HD)(t)||(0,S.PO)(t))&&(e=[t]),(0,S.S6)(e,(function(t,n){(0,S.Kn)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if((0,S.HD)(t)){var n=xc(t);this.styleOption={fields:n,callback:e}}else{var i=t,r=(n=i.fields,i.callback),o=i.cfg;this.styleOption=n||r||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if((0,S.HD)(t)){var n=xc(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if((0,S.HD)(t)){var i={},r=xc(t);i.fields=r,(0,S.mf)(e)?i.callback=e:(0,S.PO)(e)&&(i.cfg=e),n&&(i.cfg=n),this.labelOption=i}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,i=t.isCoordinateChanged,r=this,o=r.attributeOption,a=r.lastAttributeOption;(0,S.Xy)(o,a)?!e||!n&&(0,S.Xy)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=i},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=(0,S.b$)({},$u(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[];var n=this.getOffscreenGroup();n.clear();var i=this.beforeMappingData,r=this.beforeMapping(i);this.dataArray=new Array(r.length);for(var o=0;o<r.length;o++){var a=r[o];this.dataArray[o]=this.mapping(a)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var s=this.container,l=this.type,u=this.coordinate,c=(0,S.U2)(this.animateOption,"appear"),h=this.getYScale(),p=u.convert({x:0,y:h.scale(this.getYMinValue())});ec(s,c,l,u,p)}if(this.labelOption){var f=this.useDeferredLabel,d=function(){return e.renderLabels((0,S.xH)(e.dataArray),t)}.bind(this);if("number"===typeof f){var g="number"===typeof f&&f!==1/0?f:0;if(window.requestIdleCallback){var v=g&&g!==1/0?{timeout:g}:void 0;window.requestIdleCallback(d,v)}else setTimeout(d,g)}else d()}this.lastAttributeOption=(0,C.pi)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this,e=t.container,n=t.geometryLabel,i=t.offscreenGroup;e&&e.clear(),n&&n.clear(),i&&i.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear();var e=this.container;e.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return(0,S.S6)(this.attributes,(function(e){L.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&(0,S.xb)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],i=t.scales,r=0,o=i.length;r<o;r++){var a=i[r],s=a.field;a.isIdentity?n.push(a.values):n.push(e[s])}return t.mapping.apply(t,(0,C.ev)([],(0,C.CR)(n),!1))},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){var n=this.getShapeFactory();return n.getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){t=(0,S.kJ)(t)?t[0]:t;var e=t[O];if(this.idFields.length){for(var n=e[this.idFields[0]],i=1;i<this.idFields.length;i++)n+="-"+e[this.idFields[i]];return n}var r,o,a=this.type,s=this.getXScale(),l=this.getYScale(),u=s.field||"x",c=l.field||"y",h=e[c];r="identity"===s.type?s.values[0]:e[u],o="interval"===a||"schema"===a?"".concat(r):"line"===a||"area"===a||"path"===a?a:"".concat(r,"-").concat(h);for(var p=this.groupScales,f=(i=0,p.length);i<f;i++){var d=p[i],g=d.field;o="".concat(o,"-").concat(e[g])}var v=this.getAdjust("dodge");if(v){var m=v.dodgeBy;m&&(o="".concat(o,"-").concat(e[m]))}return this.getAdjust("jitter")&&(o="".concat(o,"-").concat(t.x,"-").concat(t.y)),o},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this,i=n.attributeOption,r=n.labelOption,o=n.tooltipOption;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];s.fields?ls(s.fields,t,e):s.values&&ls(s.values,t,e)}return r&&r.fields&&ls(r.fields,t,e),(0,S.Kn)(o)&&o.fields&&ls(o.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,i=0,r=n.length;i<r;i++){var o=n[i];o.changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){var i=(null===n||void 0===n?void 0:n.fields)||[];i.forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,i=L.length;n<i;n++){var r=L[n],o=this.attributeOption[r];o&&o.fields&&ls(o.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=(0,C.CR)(this.attributeOption.position.fields,2),e=t[0],n=t[1];return[e,n]},e.prototype.getXField=function(){return(0,S.U2)(this.getXYFields(),[0])},e.prototype.getYField=function(){return(0,S.U2)(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,i=0;i<t.length;i++){var r=t[i];r.sort((function(t,i){return e.translate(t[O][n])-e.translate(i[O][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(vc(t))return this.shapeFactory||(this.shapeFactory=(0,S.d9)(vc(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e,n=this.getXScale(),i=this.getYScale(),r=this.normalizeValues(t[n.field],n);return e=i?this.normalizeValues(t[i.field],i):t.y?t.y:.1,{x:r,y:e,y0:i?i.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var i=this.container,r=this.getDrawCfg(t),o=this.getShapeFactory(),a=new rc({shapeFactory:o,container:i,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(r,n),a},e.prototype.getDrawCfg=function(t){var e=t[O],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},i=t.shape;!i&&this.getShapeFactory()&&(i=this.getShapeFactory().defaultShapeType),n.shape=i;var r=this.theme.geometries[this.shapeType];n.defaultStyle=(0,S.U2)(r,[i,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(r));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,i,r,o,a,s;void 0===e&&(e=!1);for(var l=new Map,u=[],c=new Map,h=0,p=0;p<t.length;p++)for(var f=t[p],d=0;d<f.length;d++){var g=f[d],v=this.getElementId(g),m=l.has(v)?"".concat(v,"-").concat(p,"-").concat(d):v;u.push(m),l.set(m,g),c.set(m,h),h++}this.elements=new Array(h);var y=bc(this.lastElementsMap,u),x=y.added,b=y.updated,w=y.removed;try{for(var A=(0,C.XA)(x),S=A.next();!S.done;S=A.next()){v=S.value,g=l.get(v),p=c.get(v);var M=this.createElement(g,p,e);this.elements[p]=M,this.elementsMap[v]=M,M.shape&&M.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(D){n={error:D}}finally{try{S&&!S.done&&(i=A.return)&&i.call(A)}finally{if(n)throw n.error}}try{for(var k=(0,C.XA)(b),E=k.next();!E.done;E=k.next()){v=E.value,M=this.lastElementsMap[v],g=l.get(v);var F=this.getDrawCfg(g),T=M.getModel();p=c.get(v);(this.isCoordinateChanged||yc(F,T))&&(M.animate=this.animateOption,M.update(F)),this.elements[p]=M,this.elementsMap[v]=M,M.shape&&M.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(P){r={error:P}}finally{try{E&&!E.done&&(o=k.return)&&o.call(k)}finally{if(r)throw r.error}}this.container&&this.container.sort();try{for(var I=(0,C.XA)(w),B=I.next();!B.done;B=I.next()){v=B.value,M=this.lastElementsMap[v];M.animate=this.animateOption,M.destroy()}}catch(L){a={error:L}}finally{try{B&&!B.done&&(s=I.return)&&s.call(I)}finally{if(a)throw a.error}}},e.prototype.getLabelType=function(){var t=this,e=t.labelOption,n=t.coordinate,i=t.type,r=n.type,o=n.isTransposed,a=(0,S.U2)(e,["cfg","type"]);return a||(a="polar"===r?o?"pie":"polar":"theta"===r?"pie":"interval"===i||"polygon"===i?"interval":"base"),a},e.prototype.getYMinValue=function(){var t,e=this.getYScale(),n=e.min,i=e.max;return t=n>=0?n:i<=0?i:0,t},e.prototype.createAttrOption=function(t,e,n){if((0,S.UM)(e)||(0,S.Kn)(e))(0,S.Kn)(e)&&(0,S.Xy)(Object.keys(e),["values"])?(0,S.t8)(this.attributeOption,t,{fields:e.values}):(0,S.t8)(this.attributeOption,t,e);else{var i={};(0,S.hj)(e)?i.values=[e]:i.fields=xc(e),n&&((0,S.mf)(n)?i.callback=n:i.values=n),(0,S.t8)(this.attributeOption,t,i)}},e.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,i=e.attributeOption,r=e.theme,o=e.shapeType;this.groupScales=[];var a={},s=function(e){if(i.hasOwnProperty(e)){var s=i[e];if(!s)return{value:void 0};var l=(0,C.pi)({},s),u=l.callback,c=l.values,h=l.fields,p=void 0===h?[]:h,f=p.map((function(n){var i=t.scales[n];if(!a[n]&&L.includes(e)){var r=bs(i,(0,S.U2)(t.scaleDefs,n),e,t.type);"cat"===r&&(t.groupScales.push(i),a[n]=!0)}return i}));l.scales=f,"position"!==e&&1===f.length&&"identity"===f[0].type?l.values=f[0].values:u||c||("size"===e?l.values=r.sizes:"shape"===e?l.values=r.shapes[o]||[]:"color"===e&&(f.length?l.values=f[0].values.length<=10?r.colors10:r.colors20:l.values=r.colors10));var d=hi(e);n[e]=new d(l)}};for(var l in i){var u=s(l);if("object"===typeof u)return u.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var i=this.getAttribute("position").scales,r=i.filter((function(t){return t.isCategory})),o=this.groupData(t),a=[],s=0,l=o.length;s<l;s++){for(var u=o[s],c=[],h=0,p=u.length;h<p;h++){var f=u[h],d={};for(var g in f)d[g]=f[g];d[O]=f;try{for(var v=(e=void 0,(0,C.XA)(r)),m=v.next();!m.done;m=v.next()){var y=m.value,x=y.field;d[x]=y.translate(d[x])}}catch(w){e={error:w}}finally{try{m&&!m.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}c.push(d)}a.push(c)}var b=this.adjustData(a);return this.beforeMappingData=b,b},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this,i=n.intervalPadding,r=n.dodgePadding,o=n.theme,a=this.maxColumnWidth||o.maxColumnWidth,s=this.minColumnWidth||o.minColumnWidth,l=this.columnWidthRatio||o.columnWidthRatio,u=t;if(e){var c=this.getXScale(),h=this.getYScale(),p=c.field,f=h?h.field:null,d=hs(this.coordinate),g=c.values.length,v=this.getAttribute("size"),m=void 0;v&&(m=v.values[0]);for(var y=0,x=e.length;y<x;y++){var b=e[y],w=(0,C.pi)({xField:p,yField:f,intervalPadding:i,dodgePadding:r,xDimensionLength:d,groupNum:g,defaultSize:m,maxColumnWidth:a,minColumnWidth:s,columnWidthRatio:l},b),A=b.type;if("dodge"===A){var M=[];if(c.isCategory||"identity"===c.type)M.push("x");else{if(h)throw new Error("dodge is not support linear attribute, please use category attribute!");M.push("y")}w.adjustNames=M,w.dodgeRatio=l}else if("stack"===A){var k=this.coordinate;if(!h){w.height=k.getHeight();var E=this.getDefaultValue("size")||3;w.size=E}!k.isTransposed&&(0,S.UM)(w.reverseOrder)&&(w.reverseOrder=!0)}var F=at(A);w.dimValuesMap={},c&&c.values&&(w.dimValuesMap[c.field]=c.values.map((function(t){return c.translate(t)})));var T=new F(w);u=T.process(u),this.adjusts[A]=T}}return u},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,i={},r=[],o=0;o<e.length;o++){var a=e[o],s=a.field;r.push(s),(0,S.U2)(n,[s,"values"])&&(i[s]=n[s].values)}return mc(t,r,i)},e.prototype.updateStackRange=function(t,e){for(var n=(0,S.xH)(e),i=t.field,r=t.min,o=t.max,a=0;a<n.length;a++){var s=n[a],l=Math.min.apply(null,s[i]),u=Math.max.apply(null,s[i]);l<r&&(r=l),u>o&&(o=u)}var c=this.scaleDefs,h={};r<t.min&&!(0,S.U2)(c,[i,"min"])&&(h.min=r),o>t.max&&!(0,S.U2)(c,[i,"max"])&&(h.max=o),t.change(h)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,i=e.length;n<i;n++){var r=e[n];this.generateShapePoints(r);var o=e[n+1];o&&(this.generateShapePoints(o),r[0].nextPoints=o[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),i=0;i<t.length;i++){var r=t[i],o=this.createShapePointsCfg(r),a=n?this.getAttributeValues(n,r):null,s=e.getShapePoints(a,o);r.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if((0,S.kJ)(t))for(var i=0;i<t.length;i++){var r=t[i];n.push(e.scale(r))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],i=0;i<t.length;i++){var r=t[i],o={_origin:r[O],points:r.points,nextPoints:r.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],l=s.names,u=this.getAttributeValues(s,r);if(l.length>1)for(var c=0;c<u.length;c+=1){var h=u[c],p=l[c];o[p]=(0,S.kJ)(h)&&1===h.length?h[0]:h}else o[l[0]]=1===u.length?u[0]:u}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e,n,i,r=t.x,o=t.y,a=this.coordinate;if((0,S.kJ)(r)&&(0,S.kJ)(o)){e=[],n=[];for(var s=0,l=0,u=r.length,c=o.length;s<u&&l<c;s+=1,l+=1)i=a.convert({x:r[s],y:o[l]}),e.push(i.x),n.push(i.y)}else if((0,S.kJ)(o)){n=[];for(var h=0;h<o.length;h++){var p=o[h];i=a.convert({x:r,y:p}),e&&e!==i.x?((0,S.kJ)(e)||(e=[e]),e.push(i.x)):e=i.x,n.push(i.y)}}else if((0,S.kJ)(r)){e=[];for(h=0;h<r.length;h++){var f=r[h];i=a.convert({x:f,y:o}),n&&n!==i.y?((0,S.kJ)(n)||(n=[n]),n.push(i.y)):n=i.y,e.push(i.x)}}else{var d=a.convert({x:r,y:o});e=d.x,n=d.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,i=void 0===n?[]:n,r=t.callback,o=t.cfg;if(o)return o;var a=i.map((function(t){return e[t]}));return r.apply(void 0,(0,C.ev)([],(0,C.CR)(a),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,i=t.data,r=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),i&&(this.data=i),o&&(this.scaleDefs=o,this.idFields=[],(0,S.S6)(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),r&&(this.theme=this.userTheme?(0,S.b$)({},r,this.userTheme):r)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),(0,C.mG)(this,void 0,void 0,(function(){var n,i,r,o,a,s,l,u,c,h,p,f,d=this;return(0,C.Jh)(this,(function(g){switch(g.label){case 0:return n=this.geometryLabel,this.emit(k.BEFORE_RENDER_LABEL),n||(i=this.getLabelType(),r=sc(i),n=new r(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:g.sent(),o=n.labelsRenderer.shapesMap,a=new Map,(0,S.S6)(o,(function(t,e){for(var n=t.getChildren()||[],i=0;i<n.length;i++){var r=n[i],o=d.elementsMap[r.get("elementId")||e.split(" ")[0]];if(o){r.cfg.name=["element","label"],r.cfg.element=o;var s=a.get(o)||new Set;s.add(t),a.set(o,s)}}}));try{for(s=(0,C.XA)(a.entries()),l=s.next();!l.done;l=s.next())u=(0,C.CR)(l.value,2),c=u[0],h=u[1],c.labelShape=(0,C.ev)([],(0,C.CR)(h),!1)}catch(v){p={error:v}}finally{try{l&&!l.done&&(f=s.return)&&f.call(s)}finally{if(p)throw p.error}}return this.emit(k.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===(0,S.U2)(this.animateOption,"appear")||(0,S.U2)(this.animateOption,"appear")&&void 0===(0,S.U2)(this.animateOption,["appear","animation"]))},e}(J),Ac=wc,Cc=mi.vs;function Sc(t,e,n){var i=Cc(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)}function Mc(t,e){var n=t.attr(),i=n.x,r=n.y,o=Cc(t.getMatrix(),[["t",-i,-r],["r",e],["t",i,r]]);return o}function kc(t,e){var n=Mc(t,e);t.setMatrix(n)}function Ec(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,r=(n.minY+n.maxY)/2;t.applyToMatrix([i,r,1]);var o=Cc(t.getMatrix(),[["t",-i,-r],["s",e,e],["t",i,r]]);t.setMatrix(o)}function Fc(t){return t.find((function(t){return"text"===t.get("type")}))}function Tc(t,e,n){void 0===n&&(n=[0,0,0,0]);var i=t&&t.getChildren()[0];if(i){var r=i.clone();(null===e||void 0===e?void 0:e.rotate)&&kc(r,-e.rotate);var o=r.getCanvasBBox(),a=o.x,s=o.y,l=o.width,u=o.height;r.destroy();var c=n;return(0,S.UM)(c)?c=[2,2,2,2]:(0,S.hj)(c)&&(c=new Array(4).fill(c)),{x:a-c[3],y:s-c[0],width:l+c[1]+c[3],height:u+c[0]+c[2],rotation:(null===e||void 0===e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function Ic(t,e,n){void 0===n&&(n=0);var i=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),r=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return i*r}function Bc(t,e){var n=t.getBBox();return(0,S.G)(e,(function(t){var e=t.getBBox();return Ic(n,e,2)>0}))}function Dc(t,e,n){var i=n.data,r=n.origin,o=n.animateCfg,a=n.coordinate,s=(0,S.U2)(o,"update");t.set("data",i),t.set("origin",r),t.set("animateCfg",o),t.set("coordinate",a),t.set("visible",e.get("visible")),t.getChildren().forEach((function(l,u){var c=e.getChildByIndex(u);if(c){l.set("data",i),l.set("origin",r),l.set("animateCfg",o),l.set("coordinate",a);var h=rs(l,c);s?tc(l,s,{toAttrs:h,coordinate:a}):l.attr(h),c.isGroup()&&Dc(l,c,n)}else t.removeChild(l),l.remove(!0)})),(0,S.S6)(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}var Pc=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),(0,C.mG)(this,void 0,void 0,(function(){var i,r,o,a,s,l,u,c,h=this;return(0,C.Jh)(this,(function(p){switch(p.label){case 0:if(i={},r=this.createOffscreenGroup(),!t.length)return[3,2];try{for(o=(0,C.XA)(t),a=o.next();!a.done;a=o.next())s=a.value,s&&(i[s.id]=this.renderLabel(s,r))}catch(f){u={error:f}}finally{try{a&&!a.done&&(c=o.return)&&c.call(o)}finally{if(u)throw u.error}}return[4,this.doLayout(t,e,i)];case 1:p.sent(),this.renderLabelLine(t,i),this.renderLabelBackground(t,i),this.adjustLabel(t,i),p.label=2;case 2:return l=this.shapesMap,(0,S.S6)(i,(function(t,e){if(t.destroyed)delete i[e];else{if(l[e]){var r=t.get("data"),o=t.get("origin"),a=t.get("coordinate"),s=t.get("animateCfg"),u=l[e];Dc(u,i[e],{data:r,origin:o,animateCfg:s,coordinate:a}),i[e]=u}else{if(h.container.destroyed)return;h.container.add(t);var c=(0,S.U2)(t.get("animateCfg"),n?"enter":"appear");c&&tc(t,c,{toAttrs:(0,C.pi)({},t.attr()),coordinate:t.get("coordinate")})}delete l[e]}})),(0,S.S6)(l,(function(t){var e=(0,S.U2)(t.get("animateCfg"),"leave");e?tc(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=i,r.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,i=t.id,r=t.elementId,o=t.data,a=t.mappingData,s=t.coordinate,l=t.animate,u=t.content,c={id:i,elementId:r,data:o,origin:(0,C.pi)((0,C.pi)({},a),{data:a[O]}),coordinate:s},h=e.addGroup((0,C.pi)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&(0,S.b$)({},this.animate,l)},c));if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var p=u.getCanvasBBox(),f=p.width,d=p.height,g=(0,S.U2)(t,"textAlign","left"),v=t.x,m=t.y-d/2;"center"===g?v-=f/2:"right"!==g&&"end"!==g||(v-=f),Sc(u,v,m),n=u,h.add(u)}else{var y=(0,S.U2)(t,["style","fill"]);n=h.addShape("text",(0,C.pi)({attrs:(0,C.pi)((0,C.pi)({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:(0,S.U2)(t,"textBaseline","middle"),text:t.content},t.style),{fill:(0,S.Ft)(y)?t.color:y})},c))}return t.rotate&&kc(n,t.rotate),h},t.prototype.doLayout=function(t,e,n){return(0,C.mG)(this,void 0,void 0,(function(){var i,r=this;return(0,C.Jh)(this,(function(o){switch(o.label){case 0:return this.layout?(i=(0,S.kJ)(this.layout)?this.layout:[this.layout],[4,Promise.all(i.map((function(i){var o=uc((0,S.U2)(i,"type",""));if(o){var a=[],s=[];return(0,S.S6)(n,(function(t,n){a.push(t),s.push(e[t.get("elementId")])})),o(t,a,s,r.region,i.cfg)}})))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){(0,S.S6)(t,(function(t){var n=(0,S.U2)(t,"coordinate");if(t&&n){var i=n.getCenter(),r=n.getRadius();if(t.labelLine){var o=(0,S.U2)(t,"labelLine",{}),a=t.id,s=o.path;if(!s){var l=$a(i.x,i.y,r,t.angle);s=[["M",l.x,l.y],["L",t.x,t.y]]}var u=e[a];u.destroyed||u.addShape("path",{capture:!1,attrs:(0,C.pi)({path:s,stroke:t.color?t.color:(0,S.U2)(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){(0,S.S6)(t,(function(t){var n=(0,S.U2)(t,"coordinate"),i=(0,S.U2)(t,"background");if(i&&n){var r=t.id,o=e[r];if(!o.destroyed){var a=o.getChildren()[0];if(a){var s=Tc(o,t,i.padding),l=s.rotation,u=(0,C._T)(s,["rotation"]),c=o.addShape("rect",{attrs:(0,C.pi)((0,C.pi)({},u),i.style||{}),id:r,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(c.setZIndex(-1),l){var h=a.getMatrix();c.setMatrix(h)}}}}}))},t.prototype.createOffscreenGroup=function(){var t=this.container,e=t.getGroupBase(),n=new e({});return n},t.prototype.adjustLabel=function(t,e){(0,S.S6)(t,(function(t){if(t){var n=t.id,i=e[n];if(!i.destroyed){var r=i.findAll((function(t){return"path"!==t.get("type")}));(0,S.S6)(r,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}(),Lc=Pc;function Oc(t){var e=0;return(0,S.S6)(t,(function(t){e+=t})),e/t.length}var Rc=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],i=this.getLabelCfgs(t);return(0,S.S6)(t,(function(t,r){var o=i[r];if(!o||(0,S.UM)(t.x)||(0,S.UM)(t.y))n.push(null);else{var a=(0,S.kJ)(o.content)?o.content:[o.content];o.content=a;var s=a.length;(0,S.S6)(a,(function(i,r){if((0,S.UM)(i)||""===i)n.push(null);else{var a=(0,C.pi)((0,C.pi)({},o),e.getLabelPoint(o,t,r));a.textAlign||(a.textAlign=e.getLabelAlign(a,r,s)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),(0,C.mG)(this,void 0,void 0,(function(){var n,i,r;return(0,C.Jh)(this,(function(o){switch(o.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),r=this.getGeometryShapes(),[4,i.render(n,r,e)];case 1:return o.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,i=n.type,r=n.theme;return"polygon"===i||"interval"===i&&"middle"===e||t<0&&!["line","point","path"].includes(i)?(0,S.U2)(r,"innerLabels",{}):(0,S.U2)(r,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e,n=this.geometry,i=this.getDefaultLabelCfg(),r=n.type,o=n.theme;return e="polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?(0,S.b$)({},i,o.innerLabels,t):(0,S.b$)({},i,o.labels,t),e},t.prototype.setLabelPosition=function(t,e,n,i){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var i=t.offset,r=this.getCoordinate(),o=r.isTransposed,a=o?"x":"y",s=o?1:-1,l={x:0,y:0};return l[a]=e>0||1===n?i*s:i*s*-1,l},t.prototype.getLabelPoint=function(t,e,n){var i=this.getCoordinate(),r=t.content.length;function o(e,n,i){void 0===i&&(i=!1);var r=e;return(0,S.kJ)(r)&&(r=1===t.content.length?i?Oc(r):r.length<=2?r[e.length-1]:Oc(r):r[n]),r}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=(0,S.kJ)(e.shape)?e.shape[0]:e.shape,l="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var u=is(e.x,e.y);a.x=u[0],a.y=u[1]}else"interval"!==this.geometry.type||l?(a.x=o(e.x,n),a.y=o(e.y,n)):(a.x=o(e.x,n,!0),a.y=o(e.y,n));if(l){var c=(0,S.U2)(e,"nextPoints"),h=(0,S.U2)(e,"points");if(c){var p=i.convert(h[1]),f=i.convert(c[1]);a.x=(p.x+f.x)/2,a.y=(p.y+f.y)/2}else if("pyramid"===s){p=i.convert(h[1]),f=i.convert(h[2]);a.x=(p.x+f.x)/2,a.y=(p.y+f.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var d=this.getLabelOffsetPoint(t,n,r);return a.start={x:a.x,y:a.y},a.x+=d.x,a.y+=d.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var i="center",r=this.getCoordinate();if(r.isTransposed){var o=t.offset;i=o<0?"right":0===o?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,i=e.getXScale(),r=e.getYScale(),o=t[O],a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[i.field]):"path"===n&&(a+=" ".concat(o[i.field],"-").concat(o[r.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,i=t.canvasRegion,r=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new Lc({container:e,layout:(0,S.U2)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=i,a.animate=!!r&&$u("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,i=n.labelOption,r=n.scales,o=n.coordinate,a=i,s=a.fields,l=a.callback,u=a.cfg,c=s.map((function(t){return r[t]})),h=[];return(0,S.S6)(t,(function(t,n){var i,r=t[O],a=e.getLabelText(r,c);if(l){var p=s.map((function(t){return r[t]}));if(i=l.apply(void 0,(0,C.ev)([],(0,C.CR)(p),!1)),(0,S.UM)(i))return void h.push(null)}var f=(0,C.pi)((0,C.pi)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:o},u),i);(0,S.mf)(f.position)&&(f.position=f.position(r,t,n));var d=e.getLabelOffset(f.offset||0),g=e.getDefaultLabelCfg(d,f.position);f=(0,S.b$)({},g,f),f.offset=e.getLabelOffset(f.offset||0);var v=f.content;(0,S.mf)(v)?f.content=v(r,t,n):(0,S.o8)(v)&&(f.content=a[0]),h.push(f)})),h},t.prototype.getLabelText=function(t,e){var n=[];return(0,S.S6)(e,(function(e){var i=t[e.field];i=(0,S.kJ)(i)?i.map((function(t){return e.getText(t)})):e.getText(i),(0,S.UM)(i)||""===i?n.push(null):n.push(i)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return(0,S.hj)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return(0,S.S6)(t.elementsMap,(function(t,n){e[n]=t.shape})),(0,S.S6)(t.getOffscreenGroup().getChildren(),(function(n){var i=t.getElementId(n.get("origin").mappingData);e[i]=n})),e},t}(),zc=Rc;function _c(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var r=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,(0,C.ev)([e],(0,C.CR)(r),!1)).join("")}else i=t.mapping(e).join("");return i||n}var Uc={hexagon:function(t,e,n){var i=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]},bowtie:function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},Nc=["line","cross","tick","plus","hyphen"];function Vc(t,e){return(0,S.mf)(e)?e(t):(0,S.b$)({},t,e)}function Yc(t,e){var n=t.symbol;if((0,S.HD)(n)&&-1!==Nc.indexOf(n)){var i=(0,S.U2)(t,"style",{}),r=(0,S.U2)(i,"lineWidth",1),o=i.stroke||i.fill||e;t.style=(0,S.b$)({},t.style,{lineWidth:r,stroke:o,fill:null})}}function Hc(t){var e=t.symbol;(0,S.HD)(e)&&Uc[e]&&(t.symbol=Uc[e])}function Xc(t){return t.startsWith(m.LEFT)||t.startsWith(m.RIGHT)?"vertical":"horizontal"}function Gc(t,e,n,i,r){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,s=e.getAttribute("color"),l=e.getAttribute("shape"),u=t.getTheme().defaultColor,c=e.coordinate.isPolar;return o.getTicks().map((function(n,h){var p,f=n.text,d=n.value,g=f,v=o.invert(d),m=0===t.filterFieldData(a,[(p={},p[a]=v,p)]).length;(0,S.S6)(t.views,(function(t){var e;t.filterFieldData(a,[(e={},e[a]=v,e)]).length||(m=!0)}));var y=_c(s,v,u),x=_c(l,v,"point"),b=e.getShapeMarker(x,{color:y,isInPolar:c}),w=r;return(0,S.mf)(w)&&(w=w(g,h,(0,C.pi)({name:g,value:v},(0,S.b$)({},i,b)))),b=(0,S.b$)({},i,b,ss((0,C.pi)({},w),["style"])),Yc(b,y),w&&w.style&&(b.style=Vc(b.style,w.style)),Hc(b),{id:v,name:g,value:v,marker:b,unchecked:m}}))}return[]}function Wc(t,e,n){return n.map((function(n,i){var r=e;(0,S.mf)(r)&&(r=r(n.name,i,(0,S.b$)({},t,n)));var o=(0,S.mf)(n.marker)?n.marker(n.name,i,(0,S.b$)({},t,n)):n.marker,a=(0,S.b$)({},t,r,o);return Hc(a),n.marker=a,n}))}function jc(t,e){var n=(0,S.U2)(t,["components","legend"],{});return(0,S.b$)({},(0,S.U2)(n,["common"],{}),(0,S.b$)({},(0,S.U2)(n,[e],{})))}function Qc(t){return!t&&(null===t||void 0===t||isNaN(t))}function Zc(t){if((0,S.kJ)(t))return Qc(t[1].y);var e=t.y;return(0,S.kJ)(e)?Qc(e[0]):Qc(e)}function qc(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r];Zc(a)||i.push(a)}return[i]}var s=[],l=[];for(r=0,o=t.length;r<o;r++){a=t[r];Zc(a)?l.length&&((1!==l.length||n)&&s.push(l),l=[]):l.push(a)}return l.length&&s.push(l),s}function Jc(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(i){var r=0===n?"M":"L";e.push([r,i.x,i.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function Kc(t){for(var e=t.length/2,n=[],i=[],r=0;r<t.length;r++)r<e?n.push(t[r]):i.push(t[r]);var o=rl(n,!1),a=rl(i,!1);i.length&&o.push(["L",i[0].x,i[0].y]),a.shift();var s=o.concat(a);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}function $c(t,e,n,i){void 0===i&&(i="");var r=t.style,o=void 0===r?{}:r,a=t.defaultStyle,s=t.color,l=t.size,u=(0,C.pi)((0,C.pi)({},a),o);return s&&(e&&(o.stroke||(u.stroke=s)),n&&(o.fill||(u.fill=s))),i&&(0,S.UM)(o[i])&&!(0,S.UM)(l)&&(u[i]=l),u}function th(t){return(0,S.b$)({},{fill:"#CCD6EC",fillOpacity:.3},(0,S.U2)(t,["background","style"]))}function eh(t){var e=t.x,n=(0,S.kJ)(t.y)?t.y:[t.y];return n.map((function(t,n){return{x:(0,S.kJ)(e)?e[n]:e,y:t}}))}var nh={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function ih(t,e){var n=t.color;return{symbol:nh[e],style:{lineWidth:2,r:6,stroke:n}}}function rh(t,e,n){for(var i=t.isStack,r=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,s=$c(t,!0,!1,"lineWidth"),l=qc(t.points,r,a),u=[],c=0,h=l.length;c<h;c++){var p=l[c];u=u.concat(sh(p,o,i,e,n,s))}return s.path=u,s}function oh(t,e,n,i,r){return 1===t.length?[["M",t[0].x,t[0].y-r.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+r.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=rl(t,!1,i)):(o=il(t,!1),e&&o.push(["Z"])),o);var o}function ah(t,e,n,i,r,o){var a=[],s=[];(0,S.S6)(t,(function(t){var e=eh(t);a.push(e[1]),s.push(e[0])}));var l=oh(a,e,i,r,o),u=oh(s,e,i,r,o);return n?l:l.concat(u)}function sh(t,e,n,i,r,o){if(t.length){var a=t[0];return(0,S.kJ)(a.y)?ah(t,e,n,i,r,o):oh(t,e,i,r,o)}return[]}dc("line",{defaultShapeType:"line"});(0,S.S6)(["line","dot","dash","smooth"],(function(t){gc("line",t,{draw:function(e,n){var i,r="smooth"===t;if(r){var o=this.coordinate,a=o.start,s=o.end;i=[[a.x,s.y],[s.x,a.y]]}var l=rh(e,r,i),u=n.addShape({type:"path",attrs:l,name:"line",capture:!r});return u},getMarker:function(e){return ih(e,t)}})}));var lh={getLegendItems:Gc,translate:Sc,rotate:kc,zoom:Ec,transform:Cc,getAngle:ns,getSectorPath:ts,polarToCartesian:$a,getDelegationObject:cl,getTooltipItems:mu,getMappingValue:_c,getPath:sh,getPathPoints:qc},uh={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},ch={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},hh=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],ph=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],fh=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],dh=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?hh:e,i=t.paletteQualitative20,r=void 0===i?ph:i,o=t.brandColor,a=void 0===o?n[0]:o,s={backgroundColor:"#141414",brandColor:a,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:fh,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:ch[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:ch[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:uh[85],axisTickLineBorderColor:ch[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:ch[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:ch[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:ch[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:ch[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:hh[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:ch[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:ch[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:ch[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:ch[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:ch[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:ch[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:uh[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:uh[25],annotationArcBorderColor:ch[15],annotationArcBorder:1,annotationLineBorderColor:ch[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:ch[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:ch[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:ch[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:ch[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:ch[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:uh[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:ch[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:uh[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:ch[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:hh[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:uh[100],pointBorderOpacity:1,pointActiveBorderColor:ch[100],pointSelectedBorder:2,pointSelectedBorderColor:ch[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:hh[0],hollowPointBorderOpacity:.95,hollowPointFillColor:uh[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:ch[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ch[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:hh[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:hh[0],areaFillOpacity:.25,areaActiveFillColor:hh[0],areaActiveFillOpacity:.5,areaSelectedFillColor:hh[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:hh[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ch[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ch[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:hh[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ch[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ch[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:hh[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:uh[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ch[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ch[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,C.pi)((0,C.pi)({},s),t)},gh=dh();function vh(){return window?window.devicePixelRatio:1}function mh(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function yh(t,e,n,i,r,o){return r>=t&&r<=t+n&&o>=e&&o<=e+i}function xh(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function bh(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function wh(t,e){return t[0]===e[0]&&t[1]===e[1]}var Ah=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Ch=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Sh=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Mh=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function kh(t,e){var n=t.match(Mh);(0,S.S6)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function Eh(t,e,n){var i,r,o=Ah.exec(n),a=parseFloat(o[1])%360*(Math.PI/180),s=o[2],l=e.getBBox();a>=0&&a<.5*Math.PI?(i={x:l.minX,y:l.minY},r={x:l.maxX,y:l.maxY}):.5*Math.PI<=a&&a<Math.PI?(i={x:l.maxX,y:l.minY},r={x:l.minX,y:l.maxY}):Math.PI<=a&&a<1.5*Math.PI?(i={x:l.maxX,y:l.maxY},r={x:l.minX,y:l.minY}):(i={x:l.minX,y:l.maxY},r={x:l.maxX,y:l.minY});var u=Math.tan(a),c=u*u,h=(r.x-i.x+u*(r.y-i.y))/(c+1)+i.x,p=u*(r.x-i.x+u*(r.y-i.y))/(c+1)+i.y,f=t.createLinearGradient(i.x,i.y,h,p);return kh(s,f),f}function Fh(t,e,n){var i=Ch.exec(n),r=parseFloat(i[1]),o=parseFloat(i[2]),a=parseFloat(i[3]),s=i[4];if(0===a){var l=s.match(Mh);return l[l.length-1].split(":")[1]}var u=e.getBBox(),c=u.maxX-u.minX,h=u.maxY-u.minY,p=Math.sqrt(c*c+h*h)/2,f=t.createRadialGradient(u.minX+c*r,u.minY+h*o,0,u.minX+c/2,u.minY+h/2,a*p);return kh(s,f),f}function Th(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var i,r,o=Sh.exec(n),a=o[1],s=o[2];function l(){i=t.createPattern(r,a),e.set("pattern",i),e.set("patternSource",n)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;case"n":a="no-repeat";break;default:a="no-repeat"}return r=new Image,s.match(/^data:/i)||(r.crossOrigin="Anonymous"),r.src=s,r.complete?l():(r.onload=l,r.src=r.src),i}function Ih(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if((0,S.HD)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return Eh(t,e,n);if("r"===n[0])return Fh(t,e,n);if("p"===n[0])return Th(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function Bh(t){var e=0,n=0,i=0,r=0;return(0,S.kJ)(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,[e,n,i,r]}function Dh(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ph(t,e){return Dh(t)*Dh(e)?(t[0]*e[0]+t[1]*e[1])/(Dh(t)*Dh(e)):1}function Lh(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ph(t,e))}function Oh(t,e){var n=e[1],i=e[2],r=(0,S.wQ)((0,S.c$)(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],l=t[1],u=e[6],c=e[7],h=Math.cos(r)*(s-u)/2+Math.sin(r)*(l-c)/2,p=-1*Math.sin(r)*(s-u)/2+Math.cos(r)*(l-c)/2,f=h*h/(n*n)+p*p/(i*i);f>1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var d=n*n*(p*p)+i*i*(h*h),g=d?Math.sqrt((n*n*(i*i)-d)/d):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=i?g*n*p/i:0,m=n?g*-i*h/n:0,y=(s+u)/2+Math.cos(r)*v-Math.sin(r)*m,x=(l+c)/2+Math.sin(r)*v+Math.cos(r)*m,b=[(h-v)/n,(p-m)/i],w=[(-1*h-v)/n,(-1*p-m)/i],A=Lh([1,0],b),C=Lh(b,w);return Ph(b,w)<=-1&&(C=Math.PI),Ph(b,w)>=1&&(C=0),0===a&&C>0&&(C-=2*Math.PI),1===a&&C<0&&(C+=2*Math.PI),{cx:y,cy:x,rx:wh(t,[u,c])?0:n,ry:wh(t,[u,c])?0:i,startAngle:A,endAngle:A+C,xRotation:r,arcFlag:o,sweepFlag:a}}var Rh=Math.sin,zh=Math.cos,_h=Math.atan2,Uh=Math.PI;function Nh(t,e,n,i,r,o,a){var s=e.stroke,l=e.lineWidth,u=n-r,c=i-o,h=_h(c,u),p=new Rp({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*zh(Uh/6)+","+10*Rh(Uh/6)+" L0,0 L"+10*zh(Uh/6)+",-"+10*Rh(Uh/6),stroke:s,lineWidth:l}});p.translate(r,o),p.rotateAtPoint(r,o,h),t.set(a?"startArrowShape":"endArrowShape",p)}function Vh(t,e,n,i,r,o,a){var s=e.startArrow,l=e.endArrow,u=e.stroke,c=e.lineWidth,h=a?s:l,p=h.d,f=h.fill,d=h.stroke,g=h.lineWidth,v=(0,C._T)(h,["d","fill","stroke","lineWidth"]),m=n-r,y=i-o,x=_h(y,m);p&&(r-=zh(x)*p,o-=Rh(x)*p);var b=new Rp({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:(0,C.pi)((0,C.pi)({},v),{stroke:d||u,lineWidth:g||c,fill:f})});b.translate(r,o),b.rotateAtPoint(r,o,x),t.set(a?"startArrowShape":"endArrowShape",b)}function Yh(t,e,n,i,r){var o=_h(i-e,n-t);return{dx:zh(o)*r,dy:Rh(o)*r}}function Hh(t,e,n,i,r,o){"object"===typeof e.startArrow?Vh(t,e,n,i,r,o,!0):e.startArrow?Nh(t,e,n,i,r,o,!0):t.set("startArrowShape",null)}function Xh(t,e,n,i,r,o){"object"===typeof e.endArrow?Vh(t,e,n,i,r,o,!1):e.endArrow?Nh(t,e,n,i,r,o,!1):t.set("startArrowShape",null)}var Gh={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Wh(t,e){var n=e.attr();for(var i in n){var r=n[i],o=Gh[i]?Gh[i]:i;"matrix"===o&&r?t.transform(r[0],r[1],r[3],r[4],r[6],r[7]):"lineDash"===o&&t.setLineDash?(0,S.kJ)(r)&&t.setLineDash(r):("strokeStyle"===o||"fillStyle"===o?r=Ih(t,e,r):"globalAlpha"===o&&(r*=t.globalAlpha),t[o]=r)}}function jh(t,e,n){for(var i=0;i<e.length;i++){var r=e[i];r.cfg.visible?r.draw(t,n):r.skipDraw()}}function Qh(t,e,n){var i=t.get("refreshElements");(0,S.S6)(i,(function(e){if(e!==t){var n=e.cfg.parent;while(n&&n!==t&&!n.cfg.refresh)n.cfg.refresh=!0,n=n.cfg.parent}})),i[0]===t?Jh(e,n):Zh(e,n)}function Zh(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i.cfg.visible)if(i.cfg.hasChanged)i.cfg.refresh=!0,i.isGroup()&&Jh(i.cfg.children,e);else if(i.cfg.refresh)i.isGroup()&&Zh(i.cfg.children,e);else{var r=Kh(i,e);i.cfg.refresh=r,r&&i.isGroup()&&Zh(i.cfg.children,e)}}}function qh(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&qh(n.cfg.children)}}function Jh(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.cfg.refresh=!0,i.isGroup()&&Jh(i.get("children"),e)}}function Kh(t,e){var n=t.cfg.cacheCanvasBBox,i=t.cfg.isInView&&n&&xh(n,e);return i}function $h(t,e,n,i){var r=n.path,o=n.startArrow,a=n.endArrow;if(r){var s=[0,0],l=[0,0],u={dx:0,dy:0};e.beginPath();for(var c=0;c<r.length;c++){var h=r[c],p=h[0];if(0===c&&o&&o.d){var f=t.getStartTangent();u=Yh(f[0][0],f[0][1],f[1][0],f[1][1],o.d)}else if(c===r.length-2&&"Z"===r[c+1][0]&&a&&a.d){var d=r[c+1];if("Z"===d[0]){f=t.getEndTangent();u=Yh(f[0][0],f[0][1],f[1][0],f[1][1],a.d)}}else if(c===r.length-1&&a&&a.d&&"Z"!==r[0]){f=t.getEndTangent();u=Yh(f[0][0],f[0][1],f[1][0],f[1][1],a.d)}var g=u.dx,v=u.dy;switch(p){case"M":e.moveTo(h[1]-g,h[2]-v),l=[h[1],h[2]];break;case"L":e.lineTo(h[1]-g,h[2]-v);break;case"Q":e.quadraticCurveTo(h[1],h[2],h[3]-g,h[4]-v);break;case"C":e.bezierCurveTo(h[1],h[2],h[3],h[4],h[5]-g,h[6]-v);break;case"A":var m=void 0;i?(m=i[c],m||(m=Oh(s,h),i[c]=m)):m=Oh(s,h);var y=m.cx,x=m.cy,b=m.rx,w=m.ry,A=m.startAngle,C=m.endAngle,S=m.xRotation,M=m.sweepFlag;if(e.ellipse)e.ellipse(y,x,b,w,S,A,C,1-M);else{var k=b>w?b:w,E=b>w?1:b/w,F=b>w?w/b:1;e.translate(y,x),e.rotate(S),e.scale(E,F),e.arc(0,0,k,A,C,1-M),e.scale(1/E,1/F),e.rotate(-S),e.translate(-y,-x)}break;case"Z":e.closePath();break;default:break}if("Z"===p)s=l;else{var T=h.length;s=[h[T-2],h[T-1]]}}}}function tp(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function ep(t){var e;if(t.destroyed)e=t["_cacheCanvasBBox"];else{var n=t.get("cacheCanvasBBox"),i=n&&!(!n.width||!n.height),r=t.getCanvasBBox(),o=r&&!(!r.width||!r.height);i&&o?e=bh(n,r):i?e=n:o&&(e=r)}return e}function np(t){if(!t.length)return null;var e=[],n=[],i=[],r=[];return(0,S.S6)(t,(function(t){var o=ep(t);o&&(e.push(o.minX),n.push(o.minY),i.push(o.maxX),r.push(o.maxY))})),{minX:(0,S.VV)(e),minY:(0,S.VV)(n),maxX:(0,S.Fp)(i),maxY:(0,S.Fp)(r)}}function ip(t,e){return t&&e&&xh(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}var rp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.onCanvasChange=function(t){tp(this,t)},e.prototype.getShapeBase=function(){return h},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Wh(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];(0,S.S6)(t,(function(t){var i=t.cfg.cacheCanvasBBox;i&&t.cfg.isInView&&(e.push(i.minX,i.maxX),n.push(i.minY,i.maxY))}));var i=null;if(e.length){var r=(0,S.VV)(e),o=(0,S.Fp)(e),a=(0,S.VV)(n),s=(0,S.Fp)(n);i={minX:r,minY:a,x:r,y:a,maxX:o,maxY:s,width:o-r,height:s-a};var l=this.cfg.canvas;if(l){var u=l.getViewRange();this.set("isInView",xh(i,u))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(t,e){var n=this.cfg.children,i=!e||this.cfg.refresh;n.length&&i&&(t.save(),Wh(t,this),this._applyClip(t,this.getClip()),jh(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(K.AbstractGroup),op=rp,ap=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return h},e.prototype.getGroupBase=function(){return op},e.prototype.onCanvasChange=function(t){tp(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=(0,K.getBBoxMethod)(t),i=n(this),r=e/2,o=i.x-r,a=i.y-r,s=i.x+i.width+r,l=i.y+i.height+r;return{x:o,minX:o,y:a,minY:a,width:i.width+e,height:i.height+e,maxX:s,maxY:l}},e.prototype.isFill=function(){return!!this.attrs["fill"]||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs["stroke"]},e.prototype._applyClip=function(t,e){e&&(t.save(),Wh(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var i=this.getCanvasBBox();if(!xh(e,i))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Wh(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=xh(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&((0,S.UM)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=i)),this.isStroke()&&n>0&&((0,S.UM)(r)||1===r||(t.globalAlpha=r),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),i=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t["lineWidth"]+t["lineAppendWidth"]},e}(K.AbstractShape),sp=ap,lp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),a=o.x,s=o.y,l=o.r,u=r/2,c=mh(a,s,t,e);return i&&n?c<=l+u:i?c<=l:!!n&&(c>=l-u&&c<=l+u)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()},e}(sp),up=lp;function cp(t,e,n,i){return t/(n*n)+e/(i*i)}var hp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),a=r/2,s=o.x,l=o.y,u=o.rx,c=o.ry,h=(t-s)*(t-s),p=(e-l)*(e-l);return i&&n?cp(h,p,u+a,c+a)<=1:i?cp(h,p,u,c)<=1:!!n&&(cp(h,p,u-a,c-a)>=1&&cp(h,p,u+a,c+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,i,r,o,0,0,2*Math.PI,!1);else{var a=r>o?r:o,s=r>o?1:r/o,l=r>o?o/r:1;t.save(),t.translate(n,i),t.scale(s,l),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(sp),pp=hp;function fp(t){return t instanceof HTMLElement&&(0,S.HD)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var dp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if((0,S.HD)(t)){var i=new Image;i.onload=function(){if(e.destroyed)return!1;e.attr("img",i),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},i.crossOrigin="Anonymous",i.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):fp(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,i=e.y,r=e.width,o=e.height,a=e.sx,s=e.sy,l=e.swidth,u=e.sheight,c=e.img;(c instanceof Image||fp(c))&&((0,S.UM)(a)||(0,S.UM)(s)||(0,S.UM)(l)||(0,S.UM)(u)?t.drawImage(c,n,i,r,o):t.drawImage(c,a,s,l,u,n,i,r,o))},e}(sp),gp=dp,vp=n(2793);function mp(t,e,n,i,r,o,a){var s=Math.min(t,n),l=Math.max(t,n),u=Math.min(e,i),c=Math.max(e,i),h=r/2;return o>=s-h&&o<=l+h&&a>=u-h&&a<=c+h&&vp.x1.pointToLine(t,e,n,i,o,a)<=r/2}var yp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2,o=t.startArrow,a=t.endArrow;o&&Hh(this,t,i,r,e,n),a&&Xh(this,t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var o=this.attr(),a=o.x1,s=o.y1,l=o.x2,u=o.y2;return mp(a,s,l,u,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,l={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(l=Yh(n,i,r,o,e.startArrow.d)),s&&s.d&&(u=Yh(n,i,r,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,i+l.dy),t.lineTo(r-u.dx,o-u.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return vp.x1.length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2;return vp.x1.pointAt(n,i,r,o,t)},e}(sp),xp=yp,bp={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["Z"]]},"triangle-down":function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},wp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return(0,S.UM)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,i=this.attr(),r=i.x,o=i.y,a=i.symbol||"circle",s=this._getR(i);if((0,S.mf)(a))t=a,n=t(r,o,s),n=(0,Aa.wb)(n);else{if(t=e.Symbols[a],!t)return console.warn(a+" marker is not supported."),null;n=t(r,o,s)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");$h(this,t,{path:e},n)},e.Symbols=bp,e}(sp),Ap=wp;function Cp(t,e,n){var i=(0,K.getOffScreenContext)();return t.createPath(i),i.isPointInPath(e,n)}var Sp=1e-6;function Mp(t){return Math.abs(t)<Sp?0:t<0?-1:1}function kp(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function Ep(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=t[o],s=t[(o+1)%r];if(kp(a,s,[e,n]))return!0;Mp(a[1]-n)>0!==Mp(s[1]-n)>0&&Mp(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}function Fp(t,e,n,i,r,o,a,s){var l=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(l<i||l>r)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return mh(u.x,u.y,a,s)<=o/2}var Tp=mi.vs;function Ip(t){for(var e=!1,n=t.length,i=0;i<n;i++){var r=t[i],o=r[0];if("C"===o||"A"===o||"Q"===o){e=!0;break}}return e}function Bp(t,e,n,i,r){for(var o=!1,a=e/2,s=0;s<t.length;s++){var l=t[s],u=l.currentPoint,c=l.params,h=l.prePoint,p=l.box;if(!p||yh(p.x-a,p.y-a,p.width+e,p.height+e,n,i)){switch(l.command){case"L":case"Z":o=mp(h[0],h[1],u[0],u[1],e,n,i);break;case"Q":var f=vp.lD.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],n,i);o=f<=e/2;break;case"C":var d=vp.Ll.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6],n,i,r);o=d<=e/2;break;case"A":var g=l.arcParams,v=g.cx,m=g.cy,y=g.rx,x=g.ry,b=g.startAngle,w=g.endAngle,A=g.xRotation,C=[n,i,1],S=y>x?y:x,M=y>x?1:y/x,k=y>x?x/y:1,E=Tp(null,[["t",-v,-m],["r",-A],["s",1/M,1/k]]);gi(C,C,E),o=Fp(0,0,S,b,w,e,C[0],C[1]);break;default:break}if(o)break}}return o}function Dp(t){for(var e=t.length,n=[],i=[],r=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(r.length&&(i.push(r),r=[]),r.push([a[1],a[2]])):"Z"===s?r.length&&(n.push(r),r=[]):r.push([a[1],a[2]])}return r.length>0&&i.push(r),{polygons:n,polylines:i}}var Pp=(0,C.pi)({hasArc:Ip,extractPolygons:Dp,isPointInStroke:Bp},K.PathUtil);function Lp(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];if(i=Ep(o,e,n),i)break}return i}var Op=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=(0,Aa.wb)(t);var e=Pp.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=(0,Aa.zx)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var i=this.getStartTangent();Hh(this,t,i[0][0],i[0][1],i[1][0],i[1][1])}if(n){i=this.getEndTangent();Xh(this,t,i[0][0],i[0][1],i[1][0],i[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var l=this.getTotalLength();s=Pp.isPointInStroke(o,r,t,e,l)}if(!s&&i)if(a)s=Cp(this,t,e);else{var u=this.attr("path"),c=Pp.extractPolygons(u);s=Lp(c.polygons,t,e)||Lp(c.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");$h(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return(0,S.UM)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,i=this.get("tCache");i||(this._calculateCurve(),this._setTcache(),i=this.get("tCache"));var r=this.get("curve");if(!i||0===i.length)return r?{x:r[0][1],y:r[0][2]}:null;(0,S.S6)(i,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}));var o=r[n];if((0,S.UM)(o)||(0,S.UM)(n))return null;var a=o.length,s=r[n+1];return vp.Ll.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Pp.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,o=0,a=[],s=this.get("curve");s&&((0,S.S6)(s,(function(t,e){n=s[e+1],i=t.length,n&&(r+=vp.Ll.length(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",r),0!==r?((0,S.S6)(s,(function(l,u){n=s[u+1],i=l.length,n&&(t=[],t[0]=o/r,e=vp.Ll.length(l[i-2],l[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/r,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,i=e[1].currentPoint,r=e[1].startTangent;t=[],r?(t.push([n[0]-r[0],n[1]-r[1]]),t.push([n[0],n[1]])):(t.push([i[0],i[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var i=e[n-2].currentPoint,r=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([r[0]-o[0],r[1]-o[1]]),t.push([r[0],r[1]])):(t.push([i[0],i[1]]),t.push([r[0],r[1]]))}return t},e}(sp),Rp=Op;function zp(t,e,n,i,r){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){var s=t[a][0],l=t[a][1],u=t[a+1][0],c=t[a+1][1];if(mp(s,l,u,c,e,n,i))return!0}if(r){var h=t[0],p=t[o-1];if(mp(h[0],h[1],p[0],p[1],e,n,i))return!0}return!1}var _p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr().points,a=!1;return n&&(a=zp(o,r,t,e,!0)),!a&&i&&(a=Ep(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr(),n=e.points;if(!(n.length<2)){t.beginPath();for(var i=0;i<n.length;i++){var r=n[i];0===i?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(sp),Up=_p,Np=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,i=e.startArrow,r=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],l=n[o-1][0],u=n[o-1][1];i&&Hh(this,t,n[1][0],n[1][1],a,s),r&&Xh(this,t,n[o-2][0],n[o-2][1],l,u)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var o=this.attr().points;return zp(o,r,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,i=e.startArrow,r=e.endArrow,o=n.length;if(!(n.length<2)){var a=n[0][0],s=n[0][1],l=n[o-1][0],u=n[o-1][1];if(i&&i.d){var c=Yh(a,s,n[1][0],n[1][1],i.d);a+=c.dx,s+=c.dy}if(r&&r.d){c=Yh(n[o-2][0],n[o-2][1],l,u,r.d);l-=c.dx,u-=c.dy}t.beginPath(),t.moveTo(a,s);for(var h=0;h<o-1;h++){var p=n[h];t.lineTo(p[0],p[1])}t.lineTo(l,u)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,S.UM)(e)?(this.set("totalLength",vp.aH.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),(0,S.S6)(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),vp.x1.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,o=[];(0,S.S6)(t,(function(a,s){t[s+1]&&(n=[],n[0]=r/e,i=vp.x1.length(a[0],a[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(sp),Vp=Np;function Yp(t,e,n,i,r,o,a){var s=r/2;return yh(t-s,e-s,n,r,o,a)||yh(t+n-s,e-s,r,i,o,a)||yh(t+s,e+i-s,n,r,o,a)||yh(t-s,e+s,r,i,o,a)}function Hp(t,e,n,i,r,o,a,s){return mp(t+r,e,t+n-r,e,o,a,s)||mp(t+n,e+r,t+n,e+i-r,o,a,s)||mp(t+n-r,e+i,t+r,e+i,o,a,s)||mp(t,e+i-r,t,e+r,o,a,s)||Fp(t+n-r,e+r,r,1.5*Math.PI,2*Math.PI,o,a,s)||Fp(t+n-r,e+i-r,r,0,.5*Math.PI,o,a,s)||Fp(t+r,e+i-r,r,.5*Math.PI,Math.PI,o,a,s)||Fp(t+r,e+r,r,Math.PI,1.5*Math.PI,o,a,s)}var Xp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),a=o.x,s=o.y,l=o.width,u=o.height,c=o.radius;if(c){var h=!1;return n&&(h=Hp(a,s,l,u,c,r,t,e)),!h&&i&&(h=Cp(this,t,e)),h}var p=r/2;return i&&n?yh(a-p,s-p,l+p,u+p,t,e):i?yh(a,s,l,u,t,e):n?Yp(a,s,l,u,r,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,i,r,o);else{var s=Bh(a),l=s[0],u=s[1],c=s[2],h=s[3];t.moveTo(n+l,i),t.lineTo(n+r-u,i),0!==u&&t.arc(n+r-u,i+u,u,-Math.PI/2,0),t.lineTo(n+r,i+o-c),0!==c&&t.arc(n+r-c,i+o-c,c,0,Math.PI/2),t.lineTo(n+h,i+o),0!==h&&t.arc(n+h,i+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,i+l),0!==l&&t.arc(n+l,i+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(sp),Gp=Xp,Wp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,K.assembleFont)(t)},e.prototype._setText=function(t){var e=null;(0,S.HD)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var i,r=this.attrs,o=r.textBaseline,a=r.x,s=r.y,l=1*r.fontSize,u=this._getSpaceingY(),c=(0,K.getTextHeight)(r.text,r.fontSize,r.lineHeight);(0,S.S6)(e,(function(e,r){i=s+r*(u+l)-c+l,"middle"===o&&(i+=c-l-(c-l)/2),"top"===o&&(i+=c-l),(0,S.UM)(e)||(n?t.fillText(e,a,i):t.strokeText(e,a,i))}))},e.prototype._drawText=function(t,e){var n=this.attr(),i=n.x,r=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;(0,S.UM)(a)||(e?t.fillText(a,i,r):t.strokeText(a,i,r))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&((0,S.UM)(r)||1===r||(t.globalAlpha=i),this.stroke(t)),this.isFill()&&((0,S.UM)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=i)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(sp),jp=Wp;function Qp(t,e){if(e){var n=(0,K.invert)(e);return(0,K.multiplyVec2)(n,t)}return t}function Zp(t,e,n){var i=t.getTotalMatrix();if(i){var r=Qp([e,n,1],i),o=r[0],a=r[1];return[o,a]}return[e,n]}function qp(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,K.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var i=Zp(t,e,n),r=i[0],o=i[1];if(t.isClipped(r,o))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&n>=a.minY&&n<=a.maxY}function Jp(t,e,n){if(!qp(t,e,n))return null;for(var i=null,r=t.getChildren(),o=r.length,a=o-1;a>=0;a--){var s=r[a];if(s.isGroup())i=Jp(s,e,n);else if(qp(s,e,n)){var l=s,u=Zp(s,e,n),c=u[0],h=u[1];l.isInShape(c,h)&&(i=s)}if(i)break}return i}var Kp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["renderer"]="canvas",e["autoDraw"]=!0,e["localRefresh"]=!0,e["refreshElements"]=[],e["clipView"]=!0,e["quickHit"]=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return h},e.prototype.getGroupBase=function(){return op},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||vh();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var i=this.get("context"),r=this.get("el"),o=this.getPixelRatio();r.width=o*e,r.height=o*n,o>1&&i.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){var i;return i=this.get("quickHit")?Jp(this,e,n):t.prototype.getShape.call(this,e,n,null),i},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();if(e.length&&e[0]===this)t=n;else if(t=np(e),t){t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1;var i=this.get("clipView");i&&(t=ip(t,n))}return t},e.prototype.refreshElement=function(t){var e=this.get("refreshElements");e.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,S.VS)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Wh(t,this),jh(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),i=this._getRefreshRegion();i?(t.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.save(),t.beginPath(),t.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.clip(),Wh(t,this),Qh(this,n,i),jh(t,n,i),t.restore()):e.length&&qh(e),(0,S.S6)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=(0,S.U7)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(K.AbstractCanvas),$p=Kp,tf="0.5.12",ef={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},nf={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function rf(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function of(t){var e=ef[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var i=rf(e);if(t.get("id")&&(i.id=t.get("id")),t.set("el",i),t.set("attrs",{}),n){var r=n.get("el");r||(r=n.createDom(),n.set("el",r)),r.appendChild(i)}return i}function af(t,e){var n=t.get("el"),i=(0,S.qo)(n.children).sort(e),r=document.createDocumentFragment();i.forEach((function(t){r.appendChild(t)})),n.appendChild(r)}function sf(t,e){var n=t.parentNode,i=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),r=i[e],o=i.indexOf(t);if(r){if(o>e)n.insertBefore(t,r);else if(o<e){var a=i[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}function lf(t,e){var n=t.cfg.el,i=t.attr(),r={dx:i.shadowOffsetX,dy:i.shadowOffsetY,blur:i.shadowBlur,color:i.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=e.find("filter",r);o||(o=e.addShadow(r)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function uf(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,i=[],r=0;r<9;r+=3)i.push(e[r]+","+e[r+1]);i=i.join(","),-1===i.indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",e)}}function cf(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){of(n),n.createPath(e);var r=e.addClip(n);i.setAttribute("clip-path","url(#"+r+")")}}else i.removeAttribute("clip-path")}function hf(t,e){e.forEach((function(e){e.draw(t)}))}function pf(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context"),r=t.getParent(),o=r?r.getChildren():[n],a=t.get("el");if("remove"===e){var s=t.get("isClipShape");if(s){var l=a&&a.parentNode,u=l&&l.parentNode;l&&u&&u.removeChild(l)}else a&&a.parentNode&&a.parentNode.removeChild(a)}else if("show"===e)a.setAttribute("visibility","visible");else if("hide"===e)a.setAttribute("visibility","hidden");else if("zIndex"===e)sf(a,o.indexOf(t));else if("sort"===e){var c=t.get("children");c&&c.length&&af(t,(function(t,e){return c.indexOf(t)-c.indexOf(e)?1:0}))}else"clear"===e?a&&(a.innerHTML=""):"matrix"===e?uf(t):"clip"===e?cf(t,i):"attr"===e||"add"===e&&t.draw(i)}}var ff=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=rf("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.createPath(i,e)}},e.prototype.onCanvasChange=function(t){pf(this,t)},e.prototype.getShapeBase=function(){return f},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),cf(this,t),this.createPath(t),e.length&&hf(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");(0,S.S6)(e||n,(function(t,e){nf[e]&&i.setAttribute(nf[e],t)})),uf(this)},e}(K.AbstractGroup),df=ff,gf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.draw(i,e)}},e.prototype.getShapeBase=function(){return f},e.prototype.getGroupBase=function(){return df},e.prototype.onCanvasChange=function(t){pf(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=(0,K.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var i=e.x,r=e.y,o=e.width,a=e.height,s=this.getHitLineWidth(),l=s/2,u=i-l,c=r-l,h=i+o+l,p=r+a+l;return{x:u,y:c,minX:u,minY:c,maxX:h,maxY:p,width:o+s,height:a+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||of(this),cf(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),i=n.fill,r=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,u=n.lineWidth,c=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",i):"fillStyle"in n&&this._setColor(t,"fill",r):this._setColor(t,"fill",i||r),s&&c.setAttribute(nf.fillOpacity,s)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),l&&c.setAttribute(nf.strokeOpacity,l),u&&c.setAttribute(nf.lineWidth,u))},e.prototype._setColor=function(t,e,n){var i=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var r=t.find("gradient",n);r||(r=t.addGradient(n)),i.setAttribute(nf[e],"url(#"+r+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){r=t.find("pattern",n);r||(r=t.addPattern(n)),i.setAttribute(nf[e],"url(#"+r+")")}else i.setAttribute(nf[e],n);else i.setAttribute(nf[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),i=e||n,r=i.shadowOffsetX,o=i.shadowOffsetY,a=i.shadowBlur,s=i.shadowColor;(r||o||a||s)&&lf(this,t)},e.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&uf(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),i=this.get("canvas"),r=i.get("el").getBoundingClientRect(),o=t+r.left,a=e+r.top,s=document.elementFromPoint(o,a);return!(!s||!s.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(K.AbstractShape),vf=gf,mf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");(0,S.S6)(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):nf[e]&&i.setAttribute(nf[e],t)}))},e}(vf),yf=mf,xf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return(0,C.ZT)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");if((0,S.S6)(e||n,(function(t,e){nf[e]&&i.setAttribute(nf[e],t)})),"function"===typeof n["html"]){var r=n["html"].call(this,n);if(r instanceof Element||r instanceof HTMLDocument){for(var o=i.childNodes,a=o.length-1;a>=0;a--)i.removeChild(o[a]);i.appendChild(r)}else i.innerHTML=r}else i.innerHTML=n["html"]},e}(vf),bf=xf,wf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");(0,S.S6)(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):nf[e]&&i.setAttribute(nf[e],t)}))},e}(vf),Af=wf,Cf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");(0,S.S6)(e||i,(function(t,e){"img"===e?n._setImage(i.img):nf[e]&&r.setAttribute(nf[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if((0,S.HD)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,S.HD)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",i.toDataURL())}},e}(vf),Sf=Cf,Mf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");(0,S.S6)(e||n,(function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var o=(0,S.Kn)(e)?t.addArrow(n,nf[r]):t.getDefaultArrow(n,nf[r]);i.setAttribute(nf[r],"url(#"+o+")")}else i.removeAttribute(nf[r]);else nf[r]&&i.setAttribute(nf[r],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return vp.x1.length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2;return vp.x1.pointAt(n,i,r,o,t)},e}(vf),kf=Mf,Ef={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},triangleDown:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},Ff={get:function(t){return Ef[t]},register:function(t,e){Ef[t]=e},remove:function(t){delete Ef[t]},getAll:function(){return Ef}},Tf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return(0,C.ZT)(e,t),e.prototype.createPath=function(t){var e=this.get("el");e.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,S.kJ)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,i=e.y,r=e.r||e.radius,o=e.symbol||"circle";return t=(0,S.mf)(o)?o:Ff.get(o),t?t(n,i,r):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=Ff,e}(vf),If=Tf,Bf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");(0,S.S6)(e||i,(function(e,o){if("path"===o&&(0,S.kJ)(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=(0,S.Kn)(e)?t.addArrow(i,nf[o]):t.getDefaultArrow(i,nf[o]);r.setAttribute(nf[o],"url(#"+a+")")}else r.removeAttribute(nf[o]);else nf[o]&&r.setAttribute(nf[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var i=e?e.getPointAtLength(t*n):null;return i?{x:i.x,y:i.y}:null},e}(vf),Df=Bf,Pf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return(0,C.ZT)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");(0,S.S6)(e||n,(function(t,e){"points"===e&&(0,S.kJ)(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):nf[e]&&i.setAttribute(nf[e],t)}))},e}(vf),Lf=Pf,Of=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");(0,S.S6)(e||n,(function(t,e){"points"===e&&(0,S.kJ)(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):nf[e]&&i.setAttribute(nf[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,S.UM)(e)?(this.set("totalLength",vp.aH.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),(0,S.S6)(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),vp.x1.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,o=[];(0,S.S6)(t,(function(a,s){t[s+1]&&(n=[],n[0]=r/e,i=vp.x1.length(a[0],a[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(vf),Rf=Of;function zf(t){var e=0,n=0,i=0,r=0;return(0,S.kJ)(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}}var _f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el"),o=!1,a=["x","y","width","height","radius"];(0,S.S6)(e||i,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&nf[e]&&r.setAttribute(nf[e],t):(r.setAttribute("d",n._assembleRect(i)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+i+",0 l 0,"+r+" l"+-i+" 0 z";var a=zf(o);(0,S.kJ)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o;var s=[["M "+(e+a.r1)+","+n],["l "+(i-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(r-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-i)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-r)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]];return s.join(" ")},e}(vf),Uf=_f,Nf=n(3631),Vf=.3,Yf={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Hf={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},Xf={left:"left",start:"left",center:"middle",right:"end",end:"end"},Gf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return(0,C.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,C.pi)((0,C.pi)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");this._setFont(),(0,S.S6)(e||i,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?uf(n):nf[e]&&r.setAttribute(nf[e],t)})),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,i=e.textAlign,r=(0,Nf.qY)();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",Hf[n]||"alphabetic"):t.setAttribute("alignment-baseline",Yf[n]||"baseline"),t.setAttribute("text-anchor",Xf[i]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),i=n.x,r=n.textBaseline,o=void 0===r?"bottom":r;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,l="";(0,S.S6)(a,(function(t,e){0===e?"alphabetic"===o?l+='<tspan x="'+i+'" dy="'+-s+'em">'+t+"</tspan>":"top"===o?l+='<tspan x="'+i+'" dy="0.9em">'+t+"</tspan>":"middle"===o?l+='<tspan x="'+i+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===o?l+='<tspan x="'+i+'" dy="-'+(s+Vf)+'em">'+t+"</tspan>":"hanging"===o&&(l+='<tspan x="'+i+'" dy="'+(-(s-1)-Vf)+'em">'+t+"</tspan>"):l+='<tspan x="'+i+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(vf),Wf=Gf,jf=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Qf=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Zf=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function qf(t){var e=t.match(Zf);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),(0,S.S6)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function Jf(t,e){var n,i,r=jf.exec(t),o=(0,S.wQ)((0,S.c$)(parseFloat(r[1])),2*Math.PI),a=r[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var s=Math.tan(o),l=s*s,u=(i.x-n.x+s*(i.y-n.y))/(l+1)+n.x,c=s*(i.x-n.x+s*(i.y-n.y))/(l+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",u),e.setAttribute("y2",c),e.innerHTML=qf(a)}function Kf(t,e){var n=Qf.exec(t),i=parseFloat(n[1]),r=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",i),e.setAttribute("cy",r),e.setAttribute("r",o),e.innerHTML=qf(a)}var $f=function(){function t(t){this.cfg={};var e=null,n=(0,S.EL)("gradient_");return"l"===t.toLowerCase()[0]?(e=rf("linearGradient"),Jf(t,e)):(e=rf("radialGradient"),Kf(t,e)),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),td=$f,ed={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},nd={x:"-40%",y:"-40%",width:"200%",height:"200%"},id=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=rf("filter");return(0,S.S6)(nd,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=(0,S.EL)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return(0,S.S6)(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[ed[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}(),rd=id,od=function(){function t(t,e){this.cfg={};var n=rf("marker"),i=(0,S.EL)("marker_");n.setAttribute("id",i);var r=rf("path");r.setAttribute("stroke",t.stroke||"none"),r.setAttribute("fill",t.fill||"none"),n.appendChild(r),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=r,this.id=i;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,r):(this.cfg=o,this._setMarker(t.lineWidth,r)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,r=this.cfg.d;(0,S.kJ)(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),r&&n.setAttribute("refX",""+r/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),ad=od,sd=function(){function t(t){this.type="clip",this.cfg={};var e=rf("clipPath");this.el=e,this.id=(0,S.EL)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),ld=sd,ud=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,cd=function(){function t(t){this.cfg={};var e=rf("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=rf("image");e.appendChild(n);var i=(0,S.EL)("pattern_");e.id=i,this.el=e,this.id=i,this.cfg=t;var r=ud.exec(t),o=r[2];n.setAttribute("href",o);var a=new Image;function s(){e.setAttribute("width",""+a.width),e.setAttribute("height",""+a.height)}return o.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=o,a.complete?s():(a.onload=s,a.src=a.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),hd=cd,pd=function(){function t(t){var e=rf("defs"),n=(0,S.EL)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,i=null,r=0;r<n.length;r++)if(n[r].match(t,e)){i=n[r].id;break}return i},t.prototype.findById=function(t){for(var e=this.children,n=null,i=0;i<e.length;i++)if(e[i].id===t){n=e[i];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new ad(t,e);return this.defaultArrow[n]=i,this.el.appendChild(i.el),this.add(i),i.id},t.prototype.addGradient=function(t){var e=new td(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new ad(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new rd(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new hd(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new ld(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),fd=pd,dd=function(t){function e(e){return t.call(this,(0,C.pi)((0,C.pi)({},e),{autoDraw:!0,renderer:"svg"}))||this}return(0,C.ZT)(e,t),e.prototype.getShapeBase=function(){return f},e.prototype.getGroupBase=function(){return df},e.prototype.getShape=function(t,e,n){var i=n.target||n.srcElement;if(!ef[i.tagName]){var r=i.parentNode;while(r&&!ef[r.tagName])r=r.parentNode;i=r}return this.find((function(t){return t.get("el")===i}))},e.prototype.createDom=function(){var t=rf("svg"),e=new fd(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var i=this.get("children");i&&i.length&&af(this,(function(t,e){return i.indexOf(t)-i.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var r=e.el;r.innerHTML="",n.appendChild(r)}}else"matrix"===t?uf(this):"clip"===t?cf(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();cf(this,t),e.length&&hf(t,e)},e}(K.AbstractCanvas),gd=dd,vd="0.5.6",md=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var i=e.connectNulls,r=void 0!==i&&i,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=r,n.showSinglePoint=a,n}return(0,C.ZT)(e,t),e.prototype.updateElements=function(t,e){var n,i,r,o,a,s;void 0===e&&(e=!1);for(var l=new Map,u=new Map,c=[],h=0,p=0;p<t.length;p++){var f=t[p],d=this.getElementId(f);c.push(d),l.set(d,f),u.set(d,h),h++}this.elements=new Array(h);var g=bc(this.lastElementsMap,c),v=g.added,m=g.updated,y=g.removed;try{for(var x=(0,C.XA)(v),b=x.next();!b.done;b=x.next()){d=b.value,f=l.get(d);var w=this.getShapeFactory(),A=this.getShapeInfo(f),S=(p=u.get(d),new rc({shapeFactory:w,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:p}));S.geometry=this,S.animate=this.animateOption,S.draw(A,e),this.elementsMap[d]=S,this.elements[p]=S}}catch(I){n={error:I}}finally{try{b&&!b.done&&(i=x.return)&&i.call(x)}finally{if(n)throw n.error}}try{for(var M=(0,C.XA)(m),k=M.next();!k.done;k=M.next()){d=k.value,f=l.get(d),S=this.lastElementsMap[d],p=u.get(d),A=this.getShapeInfo(f);var E=S.getModel();(this.isCoordinateChanged||yc(E,A))&&(S.animate=this.animateOption,S.update(A)),this.elementsMap[d]=S,this.elements[p]=S}}catch(B){r={error:B}}finally{try{k&&!k.done&&(o=M.return)&&o.call(M)}finally{if(r)throw r.error}}try{for(var F=(0,C.XA)(y),T=F.next();!T.done;T=F.next()){d=T.value,S=this.lastElementsMap[d];S.animate=this.animateOption,S.destroy()}}catch(D){a={error:D}}finally{try{T&&!T.done&&(s=F.return)&&s.call(F)}finally{if(a)throw a.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var o=t[i];e.push({x:o.x,y:o.y}),n.push(o[O])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),i=n.points,r=n.data;return e.mappingData=t,e.data=r,e.isStack=!!this.getAdjust("stack"),e.points=i,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(Ac),yd=md;function xd(t,e,n,i,r){var o=[];if(t.length){for(var a=[],s=[],l=0,u=t.length;l<u;l++){var c=t[l];a.push(c[1]),s.push(c[0])}s=s.reverse(),(0,S.S6)([a,s],(function(t,l){var u=[],c=i.parsePoints(t),h=c[0];1===a.length&&1===s.length?u=0===l?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&c.push({x:h.x,y:h.y}),u=n?rl(c,!1,r):il(c,!1),l>0&&(u[0][0]="L")),o=o.concat(u)})),o.push(["Z"])}return o}function bd(t,e,n,i,r){for(var o=$c(t,e,!e,"lineWidth"),a=t.connectNulls,s=t.isInCircle,l=t.points,u=t.showSinglePoint,c=qc(l,a,u),h=[],p=0,f=c.length;p<f;p++){var d=c[p];h=h.concat(xd(d,s,n,i,r))}return o.path=h,o}function wd(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}dc("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0,i=(0,S.kJ)(t.y)?t.y:[n,t.y];return i.map((function(t){return{x:e,y:t}}))}});gc("area","area",{draw:function(t,e){var n=bd(t,!1,!1,this),i=e.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:e}}}});var Ad=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var i=e.startOnZero,r=void 0===i||i,o=e.sortable,a=void 0!==o&&o,s=e.showSinglePoint,l=void 0!==s&&s;return n.startOnZero=r,n.sortable=a,n.showSinglePoint=l,n}return(0,C.ZT)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var o=t[i];e.push(o.points),n.push(o[O])}return{points:e,data:n}},e.prototype.getYMinValue=function(){if(this.startOnZero)return t.prototype.getYMinValue.call(this);var e=this.getYScale();return e.min},e}(yd),Cd=Ad;dc("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return eh(t)}});gc("edge","line",{draw:function(t,e){var n=$c(t,!0,!1,"lineWidth"),i=il(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Sd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return(0,C.ZT)(e,t),e}(Ac),Md=Sd,kd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return(0,C.ZT)(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var i=t[n],r=this.prepareRange(i),o=this.prepareSize(),a=(0,S.U2)(this.styleOption,["cfg","shadowBlur"]);(0,S.hj)(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(i,r,o,a)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!==typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color"),n=e.getFields()[0],i=1/0,r=-1/0;return t.forEach((function(t){var e=t[O][n];e>r&&(r=e),e<i&&(i=e)})),i===r&&(i=r-1),[i,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return(0,S.hj)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),i=t+e,r=n.getContext("2d");n.width=n.height=2*i,r.clearRect(0,0,n.width,n.height),r.shadowOffsetX=r.shadowOffsetY=2*i,r.shadowBlur=e,r.shadowColor="black",r.beginPath(),r.arc(-i,-i,t,0,2*Math.PI,!0),r.closePath(),r.fill()},e.prototype.drawWithRange=function(t,e,n,i){var r,o,a=this.coordinate,s=a.start,l=a.end,u=this.coordinate.getWidth(),c=this.coordinate.getHeight(),h=this.getAttribute("color"),p=h.getFields()[0];this.clearShadowCanvasCtx();var f=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[O][p]<=e[1]&&t[O][p]>=e[0]})));var d=this.scales[p];try{for(var g=(0,C.XA)(t),v=g.next();!v.done;v=g.next()){var m=v.value,y=this.getDrawCfg(m),x=y.x,b=y.y,w=d.scale(m[O][p]);this.drawGrayScaleBlurredCircle(x-s.x,b-l.y,n+i,w,f)}}catch(M){r={error:M}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(r)throw r.error}}var A=f.getImageData(0,0,u,c);this.clearShadowCanvasCtx(),this.colorize(A),f.putImageData(A,0,0);var S=this.getImageShape();S.attr("x",s.x),S.attr("y",l.y),S.attr("width",u),S.attr("height",c),S.attr("img",f.canvas),S.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,i,r){var o=this.getGrayScaleBlurredCanvas();r.globalAlpha=i,r.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,i=this.paletteCache,r=3;r<n.length;r+=4){var o=n[r];if((0,S.hj)(o)){var a=i[o]?i[o]:Vt.rgb2arr(e.gradient(o/256));n[r-3]=a[0],n[r-2]=a[1],n[r-1]=a[2],n[r]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape;if(t)return t;var e=this.container;return t=e.addShape({type:"image",attrs:{}}),this.imageShape=t,t},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t[O]}));return(0,C.pi)((0,C.pi)({},e),{mappingData:t,data:n})},e}(Ac),Ed=kd;function Fd(t){var e,n,i,r,o,a,s=t.x,l=t.y,u=t.y0,c=t.size;(0,S.kJ)(l)?(e=(0,C.CR)(l,2),i=e[0],r=e[1]):(i=u,r=l),(0,S.kJ)(s)?(n=(0,C.CR)(s,2),o=n[0],a=n[1]):(o=s-c/2,a=s+c/2);var h=[{x:o,y:i},{x:o,y:r}];return h.push({x:a,y:r},{x:a,y:i}),h}function Td(t,e){void 0===e&&(e=!0);var n=[],i=t[0];n.push(["M",i.x,i.y]);for(var r=1,o=t.length;r<o;r++)n.push(["L",t[r].x,t[r].y]);return e&&(n.push(["L",i.x,i.y]),n.push(["z"])),n}function Id(t,e){var n=0,i=0,r=0,o=0;return(0,S.kJ)(t)?1===t.length?n=i=r=o=t[0]:2===t.length?(n=r=t[0],i=o=t[1]):3===t.length?(n=t[0],i=o=t[1],r=t[2]):(n=t[0],i=t[1],r=t[2],o=t[3]):n=i=r=o=t,n+i>e&&(n=n?e/(1+i/n):0,i=e-n),r+o>e&&(r=r?e/(1+o/r):0,o=e-r),[n||0,i||0,r||0,o||0]}function Bd(t,e,n){var i=[];if(n.isRect){var r=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=(0,S.U2)(t,["background","style","radius"]);if(a){var s=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,l=n.isTransposed?n.getWidth():n.getHeight(),u=(0,C.CR)(Id(a,Math.min(s,l)),4),c=u[0],h=u[1],p=u[2],f=u[3];i.push(["M",r.x,o.y+c]),0!==c&&i.push(["A",c,c,0,0,1,r.x+c,o.y]),i.push(["L",o.x-h,o.y]),0!==h&&i.push(["A",h,h,0,0,1,o.x,o.y+h]),i.push(["L",o.x,r.y-p]),0!==p&&i.push(["A",p,p,0,0,1,o.x-p,r.y]),i.push(["L",r.x+f,r.y]),0!==f&&i.push(["A",f,f,0,0,1,r.x,r.y-f])}else i.push(["M",r.x,r.y]),i.push(["L",o.x,r.y]),i.push(["L",o.x,o.y]),i.push(["L",r.x,o.y]),i.push(["L",r.x,r.y]);i.push(["z"])}if(n.isPolar){var d=n.getCenter(),g=ns(t,n),v=g.startAngle,m=g.endAngle;if("theta"===n.type||n.isTransposed){var y=function(t){return Math.pow(t,2)};c=Math.sqrt(y(d.x-e[0].x)+y(d.y-e[0].y)),h=Math.sqrt(y(d.x-e[2].x)+y(d.y-e[2].y));i=ts(d.x,d.y,c,n.startAngle,n.endAngle,h)}else i=ts(d.x,d.y,n.getRadius(),v,m)}return i}function Dd(t,e,n){var i=n.getWidth(),r=n.getHeight(),o="rect"===n.type,a=[],s=(t[2].x-t[1].x)/2,l=n.isTransposed?s*r/i:s*i/r;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+l]),a.push(["L",t[1].x,t[1].y-l]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y-l]),a.push(["L",t[3].x,t[3].y+l]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y+l])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=Td(t),a}function Pd(t,e,n){var i=[];return(0,S.UM)(e)?n?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i}function Ld(t,e){return[e,t]}function Od(t,e,n){var i,r,o,a,s,l,u,c=(0,C.CR)((0,C.ev)([],(0,C.CR)(t),!1),4),h=c[0],p=c[1],f=c[2],d=c[3],g=(0,C.CR)("number"===typeof n?Array(4).fill(n):n,4),v=g[0],m=g[1],y=g[2],x=g[3];e.isTransposed&&(i=(0,C.CR)(Ld(p,d),2),p=i[0],d=i[1]),e.isReflect("y")&&(r=(0,C.CR)(Ld(h,p),2),h=r[0],p=r[1],o=(0,C.CR)(Ld(f,d),2),f=o[0],d=o[1]),e.isReflect("x")&&(a=(0,C.CR)(Ld(h,d),2),h=a[0],d=a[1],s=(0,C.CR)(Ld(p,f),2),p=s[0],f=s[1]);var b=[],w=function(t){return Math.abs(t)};return l=(0,C.CR)(Id([v,m,y,x],Math.min(w(d.x-h.x),w(p.y-h.y))).map((function(t){return w(t)})),4),v=l[0],m=l[1],y=l[2],x=l[3],e.isTransposed&&(u=(0,C.CR)([x,v,m,y],4),v=u[0],m=u[1],y=u[2],x=u[3]),h.y<p.y?(b.push(["M",d.x,d.y+y]),0!==y&&b.push(["A",y,y,0,0,0,d.x-y,d.y]),b.push(["L",h.x+x,h.y]),0!==x&&b.push(["A",x,x,0,0,0,h.x,h.y+x]),b.push(["L",p.x,p.y-v]),0!==v&&b.push(["A",v,v,0,0,0,p.x+v,p.y]),b.push(["L",f.x-m,f.y]),0!==m&&b.push(["A",m,m,0,0,0,f.x,f.y-m]),b.push(["L",d.x,d.y+y]),b.push(["z"])):d.x<h.x?(b.push(["M",f.x+m,f.y]),0!==m&&b.push(["A",m,m,0,0,0,f.x,f.y+m]),b.push(["L",d.x,d.y-y]),0!==y&&b.push(["A",y,y,0,0,0,d.x+y,d.y]),b.push(["L",h.x-x,h.y]),0!==x&&b.push(["A",x,x,0,0,0,h.x,h.y-x]),b.push(["L",p.x,p.y+v]),0!==v&&b.push(["A",v,v,0,0,0,p.x-v,p.y]),b.push(["L",f.x+m,f.y]),b.push(["z"])):(b.push(["M",p.x,p.y+v]),0!==v&&b.push(["A",v,v,0,0,1,p.x+v,p.y]),b.push(["L",f.x-m,f.y]),0!==m&&b.push(["A",m,m,0,0,1,f.x,f.y+m]),b.push(["L",d.x,d.y-y]),0!==y&&b.push(["A",y,y,0,0,1,d.x-y,d.y]),b.push(["L",h.x+x,h.y]),0!==x&&b.push(["A",x,x,0,0,1,h.x,h.y-x]),b.push(["L",p.x,p.y+v]),b.push(["z"])),b}dc("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Fd(t)}});gc("interval","rect",{draw:function(t,e){var n,i=$c(t,!1,!0),r=e,o=null===t||void 0===t?void 0:t.background;if(o){r=e.addGroup();var a=th(t),s=Bd(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},a),{path:s}),zIndex:-1,name:nc})}n=i.radius&&this.coordinate.isRect?Od(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath(Dd(t.points,i.lineCap,this.coordinate));var l=r.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},i),{path:n}),name:"interval"});return o?r:l},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});function Rd(t,e){var n=t.length,i=t;(0,S.HD)(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var r=i[1]-i[0],o=2;o<n;o++){var a=i[o]-i[o-1];r>a&&(r=a)}return r}function zd(t,e){if(e){var n=(0,S.xH)(t),i=(0,S.I)(n,e);return i.length}return t.length}function _d(t){var e=t.theme,n=t.coordinate,i=t.getXScale(),r=i.values,o=t.beforeMappingData,a=r.length,s=hs(t.coordinate),l=t.intervalPadding,u=t.dodgePadding,c=t.maxColumnWidth||e.maxColumnWidth,h=t.minColumnWidth||e.minColumnWidth,p=t.columnWidthRatio||e.columnWidthRatio,f=t.multiplePieWidthRatio||e.multiplePieWidthRatio,d=t.roseWidthRatio||e.roseWidthRatio;if(i.isLinear&&r.length>1){r.sort();var g=Rd(r,i);a=(i.max-i.min)/g,r.length>a&&(a=r.length)}var v=i.range,m=1/a,y=1;if(n.isPolar?y=n.isTransposed&&a>1?f:d:(i.isLinear&&(m*=v[1]-v[0]),y=p),!(0,S.UM)(l)&&l>=0){var x=l/s;m=(1-(a-1)*x)/a}else m*=y;if(t.getAdjust("dodge")){var b=t.getAdjust("dodge"),w=b.dodgeBy,A=zd(o,w);if(!(0,S.UM)(u)&&u>=0){var C=u/s;m=(m-C*(A-1))/A}else!(0,S.UM)(l)&&l>=0?(m*=y,m/=A):m/=A;m=m>=0?m:0}if(!(0,S.UM)(c)&&c>=0){var M=c/s;m>M&&(m=M)}if(!(0,S.UM)(h)&&h>=0){var k=h/s;m<k&&(m=k)}return m}var Ud=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var i=e.background;return n.background=i,n}return(0,C.ZT)(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var o=this.coordinate,a=hs(o);n/=a}else this.defaultSize||(this.defaultSize=_d(this)),n=this.defaultSize;return i.size=n,i},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:Ms(e)});else{var n=this.scaleDefs,i=e.field,r=e.min,o=e.max,a=e.type;"time"!==a&&(r>0&&!(0,S.U2)(n,[i,"min"])&&e.change({min:0}),o<=0&&!(0,S.U2)(n,[i,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(Ac),Nd=Ud,Vd=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var i=e.sortable,r=void 0!==i&&i;return n.sortable=r,n}return(0,C.ZT)(e,t),e}(yd),Yd=Vd,Hd=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Xd=["cross","tick","plus","hyphen","line"];function Gd(t,e,n,i,r){var o,a,s=$c(e,r,!r,"r"),l=t.parsePoints(e.points),u=l[0];if(e.isStack)u=l[1];else if(l.length>1){var c=n.addGroup();try{for(var h=(0,C.XA)(l),p=h.next();!p.done;p=h.next()){var f=p.value;c.addShape({type:"marker",attrs:(0,C.pi)((0,C.pi)((0,C.pi)({},s),{symbol:Uc[i]||i}),f)})}}catch(d){o={error:d}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return c}return n.addShape({type:"marker",attrs:(0,C.pi)((0,C.pi)((0,C.pi)({},s),{symbol:Uc[i]||i}),u)})}dc("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return eh(t)}});(0,S.S6)(Hd,(function(t){gc("point","hollow-".concat(t),{draw:function(e,n){return Gd(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:Uc[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var Wd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return(0,C.ZT)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return(0,C.pi)((0,C.pi)({},n),{isStack:!!this.getAdjust("stack")})},e}(Ac),jd=Wd;function Qd(t){var e=t[0],n=1,i=[["M",e.x,e.y]];while(n<t.length){var r=t[n];r.x===t[n-1].x&&r.y===t[n-1].y||(i.push(["L",r.x,r.y]),r.x===e.x&&r.y===e.y&&n<t.length-1&&(e=t[n+1],i.push(["Z"]),i.push(["M",e.x,e.y]),n++)),n++}return(0,S.Xy)((0,S.Z$)(i),e)||i.push(["L",e.x,e.y]),i.push(["Z"]),i}dc("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return(0,S.S6)(t.x,(function(n,i){var r=t.y[i];e.push({x:n,y:r})})),e}});gc("polygon","polygon",{draw:function(t,e){if(!(0,S.xb)(t.points)){var n=$c(t,!0,!0),i=this.parsePath(Qd(t.points));return e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i}),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}});var Zd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return(0,C.ZT)(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=i.x,o=i.y;if(!(0,S.kJ)(r)||!(0,S.kJ)(o)){var a=this.getXScale(),s=this.getYScale(),l=a.values.length,u=s.values.length,c=.5/l,h=.5/u;a.isCategory&&s.isCategory?(r=[r-c,r-c,r+c,r+c],o=[o-h,o+h,o+h,o-h]):(0,S.kJ)(r)?(n=r,r=[n[0],n[0],n[1],n[1]],o=[o-h/2,o+h/2,o+h/2,o-h/2]):(0,S.kJ)(o)&&(n=o,o=[n[0],n[1],n[1],n[0]],r=[r-c/2,r-c/2,r+c/2,r+c/2]),i.x=r,i.y=o}return i},e}(Ac),qd=Zd,Jd=(dc("schema",{defaultShapeType:""}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return(0,C.ZT)(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var o=this.coordinate,a=hs(o);n/=a}else this.defaultSize||(this.defaultSize=_d(this)),n=this.defaultSize;return i.size=n,i},e}(Ac)),Kd=Jd;function $d(t){if(!(0,S.kJ)(t))return[];var e=(0,S.Fp)(t);return(0,S.UI)(t,(function(t){return t/e}))}dc("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],i=$d(t._size);return(0,S.S6)(t.y,(function(r,o){var a=i[o]*e,s=0===o,l=o===t.y.length-1;n.push({isMin:s,isMax:l,x:t.x-a,y:r}),n.unshift({isMin:s,isMax:l,x:t.x+a,y:r})})),n}});gc("violin","violin",{draw:function(t,e){var n=$c(t,!0,!0),i=this.parsePath(Jc(t.points));return e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i}),name:"violin"})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:e}}}});var tg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return(0,C.ZT)(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var o=this.coordinate,a=hs(o);n/=a}else this.defaultSize||(this.defaultSize=_d(this)),n=this.defaultSize;return i.size=n,i._size=(0,S.U2)(e[O],[this._sizeField]),i},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(Ac),eg=tg;function ng(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function ig(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return(0,S.S6)(n,(function(t){i.push(t.x,t.y)})),i}function rg(t,e,n){var i=ig(e,n),r=[["M",t.x,t.y]];return r.push(i),r}function og(t,e){var n=ig(t[1],e),i=ig(t[3],e),r=[["M",t[0].x,t[0].y]];return r.push(i),r.push(["L",t[3].x,t[3].y]),r.push(["L",t[2].x,t[2].y]),r.push(n),r.push(["L",t[1].x,t[1].y]),r.push(["L",t[0].x,t[0].y]),r.push(["Z"]),r}function ag(t,e){var n=ng(t,e),i=[["M",t.x,t.y]];return i.push(n),i}gc("area","line",{draw:function(t,e){var n=bd(t,!0,!1,this),i=e.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:e,fill:null}}}}),gc("area","smooth",{draw:function(t,e){var n=this.coordinate,i=bd(t,!1,!0,this,wd(n)),r=e.addShape({type:"path",attrs:i,name:"area"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:e}}}}),gc("area","smooth-line",{draw:function(t,e){var n=this.coordinate,i=bd(t,!0,!0,this,wd(n)),r=e.addShape({type:"path",attrs:i,name:"area"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:e,fill:null}}}}),gc("edge","arc",{draw:function(t,e){var n,i=$c(t,!0,!1,"lineWidth"),r=t.points,o=r.length>2?"weight":"normal";if(t.isInCircle){var a={x:0,y:1};return"normal"===o?n=rg(r[0],r[1],a):(i.fill=i.stroke,n=og(r,a)),n=this.parsePath(n),e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},i),{path:n})})}if("normal"===o)return r=this.parsePoints(r),n=es((r[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},i),{path:n})});var s=ng(r[1],r[3]),l=ng(r[2],r[0]);return n=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],s,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],l,["Z"]],n=this.parsePath(n),i.fill=i.stroke,e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),gc("edge","smooth",{draw:function(t,e){var n=$c(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(ag(i[0],i[1]));return e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var sg=1/3;function lg(t,e){var n=[];n.push({x:t.x,y:t.y*(1-sg)+e.y*sg}),n.push({x:e.x,y:t.y*(1-sg)+e.y*sg}),n.push(e);var i=[["M",t.x,t.y]];return(0,S.S6)(n,(function(t){i.push(["L",t.x,t.y])})),i}function ug(t){var e=t.x,n=t.y,i=t.y0;return(0,S.kJ)(n)?n.map((function(t,n){return{x:(0,S.kJ)(e)?e[n]:e,y:t}})):[{x:e,y:i},{x:e,y:n}]}function cg(t){var e,n,i,r=t.x,o=t.y,a=t.y0,s=t.size;(0,S.kJ)(o)?(e=(0,C.CR)(o,2),n=e[0],i=e[1]):(n=a,i=o);var l=r+s/2,u=r-s/2;return[{x:r,y:n},{x:r,y:i},{x:u,y:n},{x:l,y:n},{x:u,y:i},{x:l,y:i}]}function hg(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]]}gc("edge","vhv",{draw:function(t,e){var n=$c(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(lg(i[0],i[1]));return e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),gc("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Fd(t)},draw:function(t,e){var n=$c(t,!1,!0),i=this.parsePath(Pd(t.points,t.nextPoints,!1)),r=e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),gc("interval","hollow-rect",{draw:function(t,e){var n=$c(t,!0,!1),i=e,r=null===t||void 0===t?void 0:t.background;if(r){i=e.addGroup();var o=th(t),a=Bd(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},o),{path:a}),zIndex:-1,name:nc})}var s=this.parsePath(Td(t.points)),l=i.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:s}),name:"interval"});return r?i:l},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),gc("interval","line",{getPoints:function(t){return ug(t)},draw:function(t,e){var n=$c(t,!0,!1,"lineWidth"),i=ss((0,C.pi)({},n),["fill"]),r=this.parsePath(Td(t.points,!1)),o=e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},i),{path:r}),name:"interval"});return o},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:e}}}}),gc("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Fd(t)},draw:function(t,e){var n=$c(t,!1,!0),i=this.parsePath(Pd(t.points,t.nextPoints,!0)),r=e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),gc("interval","tick",{getPoints:function(t){return cg(t)},draw:function(t,e){var n=$c(t,!0,!1),i=this.parsePath(hg(t.points)),r=e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:e}}}});var pg=function(t,e,n){var i,r=t.x,o=t.y,a=e.x,s=e.y;switch(n){case"hv":i=[{x:a,y:o}];break;case"vh":i=[{x:r,y:s}];break;case"hvh":var l=(a+r)/2;i=[{x:l,y:o},{x:l,y:s}];break;case"vhv":var u=(o+s)/2;i=[{x:r,y:u},{x:a,y:u}];break;default:break}return i};function fg(t,e){var n=[];return(0,S.S6)(t,(function(i,r){var o=t[r+1];if(n.push(i),o){var a=pg(i,o,e);n=n.concat(a)}})),n}function dg(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function gg(t,e){var n=qc(t.points,t.connectNulls,t.showSinglePoint),i=[];return(0,S.S6)(n,(function(t){var n=fg(t,e);i=i.concat(dg(n))})),(0,C.pi)((0,C.pi)({},$c(t,!0,!1,"lineWidth")),{path:i})}function vg(t){var e=(0,S.kJ)(t)?t:[t],n=e[0],i=e[e.length-1],r=e.length>1?e[1]:n,o=e.length>3?e[3]:i,a=e.length>2?e[2]:r;return{min:n,max:i,min1:r,max1:o,median:a}}function mg(t,e,n){var i,r=n/2;if((0,S.kJ)(e)){var o=vg(e),a=o.min,s=o.max,l=o.median,u=o.min1,c=o.max1,h=t-r,p=t+r;i=[[h,s],[p,s],[t,s],[t,c],[h,u],[h,c],[p,c],[p,u],[t,u],[t,a],[h,a],[p,a],[h,l],[p,l]]}else{e=(0,S.UM)(e)?.5:e;var f=vg(t),d=(a=f.min,s=f.max,l=f.median,u=f.min1,c=f.max1,e-r),g=e+r;i=[[a,d],[a,g],[a,e],[u,e],[u,d],[u,g],[c,g],[c,d],[c,e],[s,e],[s,d],[s,g],[l,d],[l,g]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function yg(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}function xg(t){var e=(0,S.kJ)(t)?t:[t],n=e.sort((function(t,e){return e-t}));return as(n,4,n[n.length-1])}function bg(t,e,n){var i=xg(e);return[{x:t,y:i[0]},{x:t,y:i[1]},{x:t-n/2,y:i[2]},{x:t-n/2,y:i[1]},{x:t+n/2,y:i[1]},{x:t+n/2,y:i[2]},{x:t,y:i[2]},{x:t,y:i[3]}]}function wg(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}function Ag(t,e){var n=Math.abs(t[0].x-t[2].x),i=Math.abs(t[0].y-t[2].y),r=Math.min(n,i);e&&(r=(0,S.uZ)(e,0,Math.min(n,i))),r/=2;var o=(t[0].x+t[2].x)/2,a=(t[0].y+t[2].y)/2;return{x:o-r,y:a-r,width:2*r,height:2*r}}(0,S.S6)(["hv","vh","hvh","vhv"],(function(t){gc("line",t,{draw:function(e,n){var i=gg(e,t),r=n.addShape({type:"path",attrs:i,name:"line"});return r},getMarker:function(e){return ih(e,t)}})})),(0,S.S6)(Xd,(function(t){gc("point",t,{draw:function(e,n){return Gd(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:Uc[t],style:{r:4.5,stroke:n,fill:null}}}})})),gc("point","image",{draw:function(t,e){var n,i,r=$c(t,!1,!1,"r").r,o=this.parsePoints(t.points),a=o[0];if(t.isStack)a=o[1];else if(o.length>1){var s=e.addGroup();try{for(var l=(0,C.XA)(o),u=l.next();!u.done;u=l.next()){var c=u.value;s.addShape("image",{attrs:{x:c.x-r/2,y:c.y-r,width:r,height:r,img:t.shape[1]}})}}catch(h){n={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return s}return e.addShape("image",{attrs:{x:a.x-r/2,y:a.y-r,width:r,height:r,img:t.shape[1]}})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4.5,fill:e}}}}),(0,S.S6)(Hd,(function(t){gc("point",t,{draw:function(e,n){return Gd(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:Uc[t]||t,style:{r:4.5,fill:n}}}})})),gc("schema","box",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return mg(e,n,i)},draw:function(t,e){var n=$c(t,!0,!1),i=this.parsePath(yg(t.points)),r=e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i,name:"schema"})});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=[e-6,e-3,e,e+3,e+6],r=mg(t,i,n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:e}}}}),gc("schema","candle",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return bg(e,n,i)},draw:function(t,e){var n=$c(t,!0,!0),i=this.parsePath(wg(t.points)),r=e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i,name:"schema"})});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=[e+7.5,e+3,e-3,e-7.5],r=bg(t,i,n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),gc("polygon","square",{draw:function(t,e){if(!(0,S.xb)(t.points)){var n=$c(t,!0,!0),i=this.parsePoints(t.points);return e.addShape("rect",{attrs:(0,C.pi)((0,C.pi)({},n),Ag(i,t.size)),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),gc("violin","smooth",{draw:function(t,e){var n=$c(t,!0,!0),i=this.parsePath(Kc(t.points));return e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{stroke:null,r:4,fill:e}}}}),gc("violin","hollow",{draw:function(t,e){var n=$c(t,!0,!1),i=this.parsePath(Jc(t.points));return e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}}),gc("violin","hollow-smooth",{draw:function(t,e){var n=$c(t,!0,!1),i=this.parsePath(Kc(t.points));return e.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}});var Cg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getLabelValueDir=function(t){var e="y",n=t.points;return n[0][e]<=n[2][e]?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i,r){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,n,i),s=this.getCoordinate(),l=s.isTransposed,u=l?"x":"y",c=this.getLabelValueDir(e.mappingData);return a=(0,C.pi)((0,C.pi)({},a),(o={},o[u]=a[u]*c,o)),s.isReflect("x")&&(a=(0,C.pi)((0,C.pi)({},a),{x:-1*a.x})),s.isReflect("y")&&(a=(0,C.pi)((0,C.pi)({},a),{y:-1*a.y})),a},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),i=e.theme;return(0,S.b$)({},n,i.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,i){var r,o,a,s,l=this.getCoordinate(),u=l.isTransposed,c=e.points,h=l.convert(c[0]),p=l.convert(c[2]),f=this.getLabelValueDir(e),d=(0,S.kJ)(e.shape)?e.shape[0]:e.shape;if("funnel"===d||"pyramid"===d){var g=(0,S.U2)(e,"nextPoints"),v=(0,S.U2)(e,"points");if(g){var m=l.convert(v[0]),y=l.convert(v[1]),x=l.convert(g[0]),b=l.convert(g[1]);u?(r=Math.min(x.y,m.y),a=Math.max(x.y,m.y),o=(y.x+b.x)/2,s=(m.x+x.x)/2):(r=Math.min((y.y+b.y)/2,(m.y+x.y)/2),a=Math.max((y.y+b.y)/2,(m.y+x.y)/2),o=b.x,s=m.x)}else r=Math.min(p.y,h.y),a=Math.max(p.y,h.y),o=p.x,s=h.x}else r=Math.min(p.y,h.y),a=Math.max(p.y,h.y),o=p.x,s=h.x;switch(i){case"right":t.x=o,t.y=(r+a)/2,t.textAlign=(0,S.U2)(t,"textAlign",f>0?"left":"right");break;case"left":t.x=s,t.y=(r+a)/2,t.textAlign=(0,S.U2)(t,"textAlign",f>0?"left":"right");break;case"bottom":u&&(t.x=(o+s)/2),t.y=a,t.textAlign=(0,S.U2)(t,"textAlign","center"),t.textBaseline=(0,S.U2)(t,"textBaseline",f>0?"bottom":"top");break;case"middle":u&&(t.x=(o+s)/2),t.y=(r+a)/2,t.textAlign=(0,S.U2)(t,"textAlign","center"),t.textBaseline=(0,S.U2)(t,"textBaseline","middle");break;case"top":u&&(t.x=(o+s)/2),t.y=r,t.textAlign=(0,S.U2)(t,"textAlign","center"),t.textBaseline=(0,S.U2)(t,"textBaseline",f>0?"bottom":"top");break;default:break}},e}(zc),Sg=Cg,Mg=Math.PI/2,kg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if((0,S.hj)(t))n=t;else if((0,S.HD)(t)&&-1!==t.indexOf("%")){var i=e.getRadius();e.innerRadius>0&&(i*=1-e.innerRadius),n=.01*parseFloat(t)*i}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),i=this.geometry.getYScale();return(0,S.UI)(n,(function(t){if(t&&i){var e=i.scale((0,S.U2)(t.data,i.field));return(0,C.pi)((0,C.pi)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var i=n.getCenter(),r=t.offset;e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?r>0?"left":"right":r>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var i,r=1,o=t.content[n];this.isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(r=-1),i=this.getArcPoint(e,n));var a=t.offset*r,s=this.getPointAngle(i),l=t.labelEmit,u=this.getCirclePoint(s,a,i,l);return 0===u.r?u.content="":(u.content=o,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,a,l):t.rotate,u.start={x:i.x,y:i.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),(0,S.kJ)(t.x)||(0,S.kJ)(t.y)?{x:(0,S.kJ)(t.x)?t.x[e]:t.x,y:(0,S.kJ)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return gs(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var r=this.getCoordinate(),o=r.getCenter(),a=fs(r,n);if(0===a)return(0,C.pi)((0,C.pi)({},o),{r:a});var s=t;if(r.isTransposed&&a>e&&!i){var l=Math.asin(e/(2*a));s=t+2*l}else a+=e;return{x:o.x+a*Math.cos(s),y:o.y+a*Math.sin(s),r:a}},e.prototype.getLabelRotate=function(t,e,n){var i=t+Mg;return n&&(i-=Mg),i&&(i>Mg?i-=Math.PI:i<-Mg&&(i+=Math.PI)),i},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,i={x:0,y:0};return(0,S.S6)(t,(function(t){i.x+=t.x,i.y+=t.y})),i.x/=n,i.y/=n,i=e.convert(i),i},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(zc),Eg=kg,Fg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return(0,C.ZT)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var i=t.prototype.getDefaultLabelCfg.call(this,e,n);return(0,S.b$)({},i,(0,S.U2)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var i;return e<0&&(i=t,i>Math.PI/2&&(i-=Math.PI),i<-Math.PI/2&&(i+=Math.PI)),i},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate(),i=n.getCenter();return e=t.angle<=Math.PI/2&&t.x>=i.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),i={x:(0,S.kJ)(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:(0,S.kJ)(t.x)?t.x[1]:t.x,y:t.y[1]},o=gs(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=gs(n,r);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),r=n.getRadius()+e;return(0,C.pi)((0,C.pi)({},$a(i.x,i.y,r,t)),{angle:t,r:r})},e}(Eg),Tg=Fg,Ig=4;function Bg(t,e,n,i,r,o){var a,s,l,u=!0,c=i.start,h=i.end,p=Math.min(c.y,h.y),f=Math.abs(c.y-h.y),d=0,g=Number.MIN_VALUE,v=e.map((function(t){return t.y>d&&(d=t.y),t.y<g&&(g=t.y),{size:n,targets:[t.y-p]}}));g-=p,d-p>f&&(f=d-p);while(u){v.forEach((function(t){var e=(Math.min.apply(g,t.targets)+Math.max.apply(g,t.targets))/2;t.pos=Math.min(Math.max(g,e-t.size/2),f-t.size)})),u=!1,l=v.length;while(l--)if(l>0){var m=v[l-1],y=v[l];m.pos+m.size>y.pos&&(m.size+=y.size,m.targets=m.targets.concat(y.targets),m.pos+m.size>f&&(m.pos=f-m.size),v.splice(l,1),u=!0)}}l=0,v.forEach((function(t){var i=p+n/2;t.targets.forEach((function(){e[l].y=t.pos+i,i+=n,l++}))}));var x={};try{for(var b=(0,C.XA)(t),w=b.next();!w.done;w=b.next()){var A=w.value;x[A.get("id")]=A}}catch(M){a={error:M}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e<n)t.x=r.x;else{var i=Math.sqrt(e-n);t.x=o?r.x+i:r.x-i}var a=x[t.id];a.attr("x",t.x),a.attr("y",t.y);var s=(0,S.sE)(a.getChildren(),(function(t){return"text"===t.get("type")}));s&&(s.attr("y",t.y),s.attr("x",t.x))}))}function Dg(t,e,n,i){if(t.length&&e.length){var r=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),s=o.getCenter();if(r>0){var l=14,u=a+r,c=2*u+2*l,h={start:o.start,end:o.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.forEach((function(t,n){var i=c/l;t.length>i&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(i,t.length-i)),t.sort((function(t,e){return t.y-e.y})),Bg(e,t,l,h,s,n)}))}(0,S.S6)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,i=$a(s.x,s.y,a,n),r=$a(s.x,s.y,a+e/2,n),o=t.x+(0,S.U2)(t,"offsetX",0),l=t.y+(0,S.U2)(t,"offsetY",0),u={x:o-Math.cos(n)*Ig,y:l-Math.sin(n)*Ig};(0,S.Kn)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(i.x),"".concat(i.y," Q").concat(r.x),"".concat(r.y," ").concat(u.x),u.y].join(",")}}))}}function Pg(t,e,n){var i=t.filter((function(t){return!t.invisible}));i.sort((function(t,e){return t.y-e.y}));var r,o=!0,a=n.minY,s=n.maxY,l=Math.abs(a-s),u=0,c=Number.MIN_VALUE,h=i.map((function(t){return t.y>u&&(u=t.y),t.y<c&&(c=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}}));c-=a,u-a>l&&(l=u-a);while(o){h.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),l-t.size),t.pos=Math.max(0,t.pos)})),o=!1,r=h.length;while(r--)if(r>0){var p=h[r-1],f=h[r];p.pos+p.size>f.pos&&(p.size+=f.size,p.targets=p.targets.concat(f.targets),p.pos+p.size>l&&(p.pos=l-p.size),h.splice(r,1),o=!0)}}r=0,h.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){i[r].y=t.pos+n,n+=e,r++}))}))}var Lg=4;function Og(t,e){var n=e.getCenter(),i=e.getRadius();if(t&&t.labelLine){var r=t.angle,o=t.offset,a=$a(n.x,n.y,i,r),s=t.x+(0,S.U2)(t,"offsetX",0)*(Math.cos(r)>0?1:-1),l=t.y+(0,S.U2)(t,"offsetY",0)*(Math.sin(r)>0?1:-1),u={x:s-Math.cos(r)*Lg,y:l-Math.sin(r)*Lg},c=t.labelLine.smooth,h=[],p=u.x-n.x,f=u.y-n.y,d=Math.atan(f/p);if(p<0&&(d+=Math.PI),!1===c){(0,S.Kn)(t.labelLine)||(t.labelLine={});var g=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&u.y>a.y&&(g=1),r>=0&&r<Math.PI/2&&u.y>a.y&&(g=1),r>=Math.PI/2&&r<Math.PI&&a.y>u.y&&(g=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&a.y>u.y&&(g=1);var v=o/2>4?4:Math.max(o/2-1,0),m=$a(n.x,n.y,i+v,r),y=$a(n.x,n.y,i+o/2,d),x=0;h.push("M ".concat(a.x," ").concat(a.y)),h.push("L ".concat(m.x," ").concat(m.y)),h.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(x," ").concat(g," ").concat(y.x," ").concat(y.y)),h.push("L ".concat(u.x," ").concat(u.y))}else{m=$a(n.x,n.y,i+(o/2>4?4:Math.max(o/2-1,0)),r);var b=a.x<n.x?1:-1;h.push("M ".concat(u.x," ").concat(u.y));var w=(a.y-n.y)/(a.x-n.x),A=(u.y-n.y)/(u.x-n.x);Math.abs(w-A)>Math.pow(Math.E,-16)&&h.push.apply(h,["C",u.x+4*b,u.y,2*m.x-a.x,2*m.y-a.y,a.x,a.y]),h.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=h.join(" ")}}function Rg(t,e,n,i){var r,o,a=(0,S.hX)(t,(function(t){return!(0,S.UM)(t)})),s=e[0]&&e[0].get("coordinate");if(s){var l=s.getCenter(),u=s.getRadius(),c={};try{for(var h=(0,C.XA)(e),p=h.next();!p.done;p=h.next()){var f=p.value;c[f.get("id")]=f}}catch(k){r={error:k}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}var d=(0,S.U2)(a[0],"labelHeight",14),g=(0,S.U2)(a[0],"offset",0);if(!(g<=0)){var v="left",m="right",y=(0,S.vM)(a,(function(t){return t.x<l.x?v:m})),x=s.start,b=s.end,w=Math.min(2*(u+g+d),s.getHeight()),A=w/2,M={minX:x.x,maxX:b.x,minY:l.y-A,maxY:l.y+A};(0,S.S6)(y,(function(t,e){var n=Math.floor(w/d);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,S.S6)(t,(function(t,e){e+1>n&&(c[t.id].set("visible",!1),t.invisible=!0)}))),Pg(t,d,M)})),(0,S.S6)(y,(function(t,e){(0,S.S6)(t,(function(t){var n=e===m,i=c[t.id],r=i.getChildByIndex(0);if(r){var o=u+g,a=t.y-l.y,h=Math.pow(o,2),p=Math.pow(a,2),f=h-p>0?h-p:0,d=Math.sqrt(f),v=Math.abs(Math.cos(t.angle)*o);t.x=n?l.x+Math.max(d,v):l.x-Math.max(d,v)}r&&(r.attr("y",t.y),r.attr("x",t.x)),Og(t,s)}))}))}}}var zg=4,_g=4,Ug=4;function Ng(t,e,n){var i=e.getCenter(),r=e.getRadius(),o={x:t.x-(n?Ug:-Ug),y:t.y},a=$a(i.x,i.y,r+zg,t.angle),s={x:o.x,y:o.y},l={x:a.x,y:a.y},u=$a(i.x,i.y,r,t.angle),c="";if(o.y!==a.y){var h=n?4:-4;s.y=o.y,t.angle<0&&t.angle>=-Math.PI/2&&(s.x=Math.max(a.x,o.x-h),o.y<a.y?l.y=s.y:(l.y=a.y,l.x=Math.max(l.x,s.x-h))),t.angle>0&&t.angle<Math.PI/2&&(s.x=Math.max(a.x,o.x-h),o.y>a.y?l.y=s.y:(l.y=a.y,l.x=Math.max(l.x,s.x-h))),t.angle>Math.PI/2&&(s.x=Math.min(a.x,o.x-h),o.y>a.y?l.y=s.y:(l.y=a.y,l.x=Math.min(l.x,s.x-h))),t.angle<-Math.PI/2&&(s.x=Math.min(a.x,o.x-h),o.y<a.y?l.y=s.y:(l.y=a.y,l.x=Math.min(l.x,s.x-h)))}c=["M ".concat(o.x,",").concat(o.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(a.x,",").concat(a.y),"L ".concat(u.x,",").concat(u.y)].join(" "),t.labelLine=(0,S.b$)({},t.labelLine,{path:c})}function Vg(t,e,n,i){var r,o,a=e[0]&&e[0].get("coordinate");if(a){var s=a.getCenter(),l=a.getRadius(),u={};try{for(var c=(0,C.XA)(e),h=c.next();!h.done;h=c.next()){var p=h.value;u[p.get("id")]=p}}catch(k){r={error:k}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}var f=(0,S.U2)(t[0],"labelHeight",14),d=Math.max((0,S.U2)(t[0],"offset",0),zg);(0,S.S6)(t,(function(t){if(t){var e=(0,S.U2)(u,[t.id]);if(e){var n=t.x>s.x||t.x===s.x&&t.y>s.y,i=(0,S.UM)(t.offsetX)?_g:t.offsetX,r=$a(s.x,s.y,l+zg,t.angle),o=d+i;t.x=s.x+(n?1:-1)*(l+o),t.y=r.y}}}));var g=a.start,v=a.end,m="left",y="right",x=(0,S.vM)(t,(function(t){return t.x<s.x?m:y})),b=2*(l+d)+f;(0,S.S6)(x,(function(t){var e=t.length*f;e>b&&(b=Math.min(e,Math.abs(g.y-v.y)))}));var w={minX:g.x,maxX:v.x,minY:s.y-b/2,maxY:s.y+b/2};(0,S.S6)(x,(function(t,e){var n=b/f;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,S.S6)(t,(function(t,e){e>n&&(u[t.id].set("visible",!1),t.invisible=!0)}))),Pg(t,f,w)}));var A=w.minY,M=w.maxY;(0,S.S6)(x,(function(t,e){var n=e===y;(0,S.S6)(t,(function(t){var e=(0,S.U2)(u,t&&[t.id]);if(e)if(t.y<A||t.y>M)e.set("visible",!1);else{var i=e.getChildByIndex(0),r=i.getCanvasBBox(),o={x:n?r.x:r.maxX,y:r.y+r.height/2};Sc(i,t.x-o.x,t.y-o.y),t.labelLine&&Ng(t,a,n)}}))}))}}function Yg(t,e,n,i){(0,S.S6)(e,(function(t){var e=i.minX,n=i.minY,r=i.maxX,o=i.maxY,a=t.getCanvasBBox(),s=a.minX,l=a.minY,u=a.maxX,c=a.maxY,h=a.x,p=a.y,f=a.width,d=a.height,g=h,v=p;(s<e||u<e)&&(g=e),(l<n||c<n)&&(v=n),s>r?g=r-f:u>r&&(g-=u-r),l>o?v=o-d:c>o&&(v-=c-o),g===h&&v===p||Sc(t,g-h,v-p)}))}function Hg(t,e,n,i){(0,S.S6)(e,(function(t,e){var i=t.getCanvasBBox(),r=n[e].getBBox();(i.minX<r.minX||i.minY<r.minY||i.maxX>r.maxX||i.maxY>r.maxY)&&t.remove(!0)}))}var Xg=100,Gg=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,i=t.yGap,r=void 0===i?8:i;this.xGap=n,this.yGap=r}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,i=Math.round(t.minX),r=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),s=i;s<=r;s+=1)if(n[s]){if(s===i||s===r){for(var l=o;l<=a;l++)if(n[s][l]){e=!1;break}}else if(n[s][o]||n[s][a]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),i=Math.round(t.maxX),r=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=i;a+=1)e[a]||(e[a]={});for(a=n;a<=i;a+=this.xGap){for(var s=r;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=r;a<=o;a+=1)e[n][a]=!0,e[i][a]=!0;if(1!==this.xGap)for(a=n;a<=i;a+=1)e[a][r]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function Wg(t,e,n){void 0===n&&(n=Xg);var i,r=-1,o=t.attr(),a=o.x,s=o.y,l=t.getCanvasBBox(),u=Math.sqrt(l.width*l.width+l.height*l.height),c=-r,h=0,p=0,f=function(t){var e=.1*t;return[e*Math.cos(e),e*Math.sin(e)]};if(e.hasGap(l))return e.fillGap(l),!0;var d=!1,g=0,v={};while(Math.min(Math.abs(h),Math.abs(p))<u&&g<n)if(i=f(c+=r),h=~~i[0],p=~~i[1],(h||p)&&!v["".concat(h,"-").concat(p)]&&(t.attr({x:a+h,y:s+p}),h+p<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,v["".concat(h,"-").concat(p)]=!0;break}return d}function jg(t,e,n,i){var r=t.getCanvasBBox(),o=r.width,a=r.height,s={x:e,y:n,textAlign:"center"};switch(i){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right";break;default:break}return t.attr(s),t.getCanvasBBox()}function Qg(t,e,n,i){var r=new Gg;(0,S.S6)(e,(function(t){var e=t.find((function(t){return"text"===t.get("type")}));Wg(e,r)||t.remove(!0)})),r.destroy()}function Zg(t,e,n,i){var r=new Gg;(0,S.S6)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),i=n.x,o=n.y,a=!1,s=0;s<=8;s++){var l=jg(e,i,o,s);if(r.hasGap(l)){r.fillGap(l),a=!0;break}}a||t.remove(!0)})),r.destroy()}function qg(t,e){return(t[0]||0)*(e[0]||0)+(t[1]||0)*(e[1]||0)+(t[2]||0)*(e[2]||0)}function Jg(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),i=e(t[1],t[2]);return[n,i]}function Kg(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var i=t.x,r=t.y;return{x:(i-n.x)*Math.cos(-e)+(r-n.y)*Math.sin(-e)+n.x,y:(n.x-i)*Math.sin(-e)+(r-n.y)*Math.cos(-e)+n.y}}function $g(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[Kg(e[0],n,e[0]),Kg(e[1],n,e[0]),Kg(e[2],n,e[0]),Kg(e[3],n,e[0])]:e}function tv(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(qg([t.x,t.y],e))})),{min:Math.min.apply(Math,(0,C.ev)([],(0,C.CR)(n),!1)),max:Math.max.apply(Math,(0,C.ev)([],(0,C.CR)(n),!1))}}function ev(t,e){return t.max>e.min&&t.min<e.max}function nv(t){return"number"===typeof t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function iv(t){return["x","y","width","height"].every((function(e){return nv(t[e])}))}function rv(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}function ov(t,e,n){if(void 0===n&&(n=0),!iv(t)||!iv(e))return!1;if(!t.rotation&&!e.rotation)return rv(t,e,n);for(var i=$g(t),r=$g(e),o=Jg(i).concat(Jg(r)),a=0;a<o.length;a++){var s=o[a],l=tv(i,s),u=tv(r,s);if(!ev(l,u))return!1}return!0}function av(t){if("undefined"!==typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){e=new window.BlobBuilder,e.append(t.toString()),e=e.getBlob()}return new Worker(URL.createObjectURL(e))}}var sv=function(t){function e(){function t(t,e){return(t[0]||0)*(e[0]||0)+(t[1]||0)*(e[1]||0)+(t[2]||0)*(e[2]||0)}function e(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),i=e(t[1],t[2]);return[n,i]}function n(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var i=t.x,r=t.y;return{x:(i-n.x)*Math.cos(-e)+(r-n.y)*Math.sin(-e)+n.x,y:(n.x-i)*Math.sin(-e)+(r-n.y)*Math.cos(-e)+n.y}}function i(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],i=t.rotation;return i?[n(e[0],i,e[0]),n(e[1],i,e[0]),n(e[2],i,e[0]),n(e[3],i,e[0])]:e}function r(e,n){if(e.length>4)return{min:0,max:0};var i=[];return e.forEach((function(e){i.push(t([e.x,e.y],n))})),{min:Math.min.apply(null,i),max:Math.max.apply(null,i)}}function o(t,e){return t.max>e.min&&t.min<e.max}function a(t){return"number"===typeof t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function s(t){return["x","y","width","height"].every((function(e){return a(t[e])}))}function l(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}function u(t,n,a){if(void 0===a&&(a=0),!s(t)||!s(n))return!1;if(!t.rotation&&!n.rotation)return l(t,n,a);for(var u=i(t),c=i(n),h=e(u).concat(e(c)),p=0;p<h.length;p++){var f=h[p],d=r(u,f),g=r(c,f);if(!o(d,g))return!1}return!0}return{intersect:u}}var n=e().intersect;function i(t){for(var e=t.slice(),i=0;i<e.length;i++){var r=e[i];if(r.visible)for(var o=i+1;o<e.length;o++){var a=e[o];r!==a&&a.visible&&n(r,a)&&(a.visible=!1)}}return e}var r={"hide-overlap":i};try{var o=JSON.parse(t.data);if(!o||!o.type||!r[o.type])return;var a=o.type,s=o.items,l=r[a](s);self.postMessage(l)}catch(t){throw t}},lv="\n self.onmessage = ".concat(sv.toString(),"\n"),uv=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var i=e[n];if(i.visible)for(var r=n+1;r<e.length;r++){var o=e[r];i!==o&&o.visible&&ov(i,o)&&(o.visible=!1)}}return e},cv=new Map,hv=av(lv);function pv(t,e,n,i){return new Promise((function(n){var i=e.map((function(e,n){return(0,C.pi)((0,C.pi)({},Tc(e,t[n],(0,S.U2)(t[n],"background.padding"))),{visible:!0})})),r=JSON.stringify(i),o=function(t){return cv.set(r,t),(0,S.S6)(t,(function(t,n){var i=t.visible,r=e[n];i?null===r||void 0===r||r.show():null===r||void 0===r||r.hide()})),n(t)};if(cv.get(r))o(cv.get(r));else if(hv)try{hv.postMessage(JSON.stringify({type:"hide-overlap",items:i})),hv.onmessage=function(t){return o(Array.isArray(t.data)?t.data:[])},hv.onmessageerror=function(t){console.warn("[AntV G2] Web worker is not available"),o(uv(i))}}catch(a){console.error(a),o(uv(i))}else o(uv(i))}))}var fv,dv={"#5B8FF9":!0},gv=function(t){var e=Vt.toRGB(t).toUpperCase();if(dv[e])return dv[e];var n=(0,C.CR)(Vt.rgb2arr(e),3),i=n[0],r=n[1],o=n[2],a=(299*i+587*r+114*o)/1e3<128;return a};function vv(t,e,n){if(0!==n.length){var i=n[0].get("element"),r=i.geometry.theme,o=r.labels||{},a=o.fillColorLight,s=o.fillColorDark;n.forEach((function(t,n){var i=e[n],o=i.find((function(t){return"text"===t.get("type")})),l=us.fromObject(t.getBBox()),u=us.fromObject(o.getCanvasBBox()),c=!l.contains(u),h=t.attr("fill"),p=gv(h);c?o.attr(r.overflowLabels.style):p?a&&o.attr("fill",a):s&&o.attr("fill",s)}))}}function mv(t,e,n){var i=t.coordinate,r=Fc(e),o=us.fromObject(r.getCanvasBBox()),a=us.fromObject(n.getBBox());return i.isTransposed?a.height>=o.height:a.width>=o.width}function yv(t,e,n){var i=!!t.getAdjust("stack");return i||e.every((function(e,i){var r=n[i];return mv(t,e,r)}))}function xv(t,e,n){var i=t.coordinate,r=us.fromObject(n.getBBox()),o=Fc(e);i.isTransposed?o.attr({x:r.minX+r.width/2,textAlign:"center"}):o.attr({y:r.minY+r.height/2,textBaseline:"middle"})}function bv(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),o=null===r||void 0===r?void 0:r.geometry;if(o&&"interval"===o.type){var a=yv(o,e,n);a&&n.forEach((function(t,n){var i=e[n];xv(o,i,t)}))}}}function wv(t){var e=500,n=[],i=Math.max(Math.floor(t.length/e),1);return(0,S.S6)(t,(function(t,e){e%i===0?n.push(t):t.set("visible",!1)})),n}function Av(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),o=null===r||void 0===r?void 0:r.geometry;if(o&&"interval"===o.type){var a,s=wv(e),l=(0,C.CR)(o.getXYFields(),1),u=l[0],c=[],h=[],p=(0,S.vM)(s,(function(t){return t.get("data")[u]})),f=(0,S.jj)((0,S.UI)(s,(function(t){return t.get("data")[u]})));s.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&h.push(t.pop()),h.push.apply(h,(0,C.ev)([],(0,C.CR)(t),!1)))};(0,S.dp)(f)>0&&(a=f.shift(),d(p[a])),(0,S.dp)(f)>0&&(a=f.pop(),d(p[a])),(0,S.S6)(f.reverse(),(function(t){d(p[t])}));while(h.length>0){var g=h.shift();g.get("visible")&&(Bc(g,c)?g.set("visible",!1):c.push(g))}}}}function Cv(t,e){var n=t.getXYFields()[1],i=[],r=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,(0,C.ev)([],(0,C.CR)(r),!1)),i}function Sv(t,e,n){return t.some((function(t){return n(t,e)}))}function Mv(t,e,n){void 0===n&&(n=0);var i=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),r=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return i*r}function kv(t,e){return Sv(t,e,(function(t,e){var n=Fc(t),i=Fc(e);return Mv(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function Ev(t,e,n,i,r){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null===s||void 0===s?void 0:s.geometry;if(l&&"point"===l.type){var u=(0,C.CR)(l.getXYFields(),2),c=u[0],h=u[1],p=(0,S.vM)(e,(function(t){return t.get("data")[c]})),f=[],d=r&&r.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;(0,S.UI)((0,S.XP)(p).reverse(),(function(t){var e=Cv(l,p[t]);while(e.length){var n=e.shift(),i=Fc(n);if(Sv(f,n,(function(t,e){return t.get("data")[c]===e.get("data")[c]&&t.get("data")[h]===e.get("data")[h]})))i.set("visible",!1);else{var r=kv(f,n),o=!1;r&&(i.attr("y",i.attr("y")+2*d),o=kv(f,n)),o?i.set("visible",!1):f.push(n)}}}))}}}function Fv(t,e){var n=t.getXYFields()[1],i=[],r=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,(0,C.ev)([],(0,C.CR)(r),!1)),i}function Tv(t,e,n){return t.some((function(t){return n(t,e)}))}function Iv(t,e,n){void 0===n&&(n=0);var i=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),r=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return i*r}function Bv(t,e){return Tv(t,e,(function(t,e){var n=Fc(t),i=Fc(e);return Iv(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function Dv(t,e,n,i,r){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null===s||void 0===s?void 0:s.geometry;if(l&&!(["path","line","area"].indexOf(l.type)<0)){var u=(0,C.CR)(l.getXYFields(),2),c=u[0],h=u[1],p=(0,S.vM)(e,(function(t){return t.get("data")[c]})),f=[],d=r&&r.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;(0,S.UI)((0,S.XP)(p).reverse(),(function(t){var e=Fv(l,p[t]);while(e.length){var n=e.shift(),i=Fc(n);if(Tv(f,n,(function(t,e){return t.get("data")[c]===e.get("data")[c]&&t.get("data")[h]===e.get("data")[h]})))i.set("visible",!1);else{var r=Bv(f,n),o=!1;r&&(i.attr("y",i.attr("y")+2*d),o=Bv(f,n)),o?i.set("visible",!1):f.push(n)}}}))}}}function Pv(){return fv||(fv=document.createElement("canvas").getContext("2d")),fv}var Lv=(0,S.HP)((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,o=e.fontStyle,a=e.fontVariant,s=Pv();return s.font=[o,a,r,"".concat(n,"px"),i].join(" "),s.measureText((0,S.HD)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,C.ev)([t],(0,C.CR)((0,S.VO)(e)),!1).join("")})),Ov=function(t,e,n){var i,r=16,o=Lv("...",n);i=(0,S.HD)(t)?t:(0,S.BB)(t);var a,s,l=e,u=[];if(Lv(t,n)<=e)return t;while(1){if(a=i.substr(0,r),s=Lv(a,n),s+o>l&&s>l)break;if(u.push(a),l-=s,i=i.substr(r),!i)return u.join("")}while(1){if(a=i.substr(0,1),s=Lv(a,n),s+o>l)break;if(u.push(a),l-=s,i=i.substr(1),!i)return u.join("")}return"".concat(u.join(""),"...")};function Rv(t,e,n,i,r){if(!(e.length<=0)){var o=(null===r||void 0===r?void 0:r.direction)||["top","right","bottom","left"],a=(null===r||void 0===r?void 0:r.action)||"translate",s=(null===r||void 0===r?void 0:r.margin)||0,l=e[0].get("coordinate");if(l){var u=ms(l,s),c=u.minX,h=u.minY,p=u.maxX,f=u.maxY;(0,S.S6)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,r=e.maxX,s=e.maxY,l=e.x,u=e.y,d=e.width,g=e.height,v=l,m=u;if(o.indexOf("left")>=0&&(n<c||r<c)&&(v=c),o.indexOf("top")>=0&&(i<h||s<h)&&(m=h),o.indexOf("right")>=0&&(n>p?v=p-d:r>p&&(v-=r-p)),o.indexOf("bottom")>=0&&(i>f?m=f-g:s>f&&(m-=s-f)),v!==l||m!==u){var y=v-l;if("translate"===a)Sc(t,y,m-u);else if("ellipsis"===a){var x=t.findAll((function(t){return"text"===t.get("type")}));x.forEach((function(t){var e=(0,S.ei)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=Ov(t.attr("text"),n.width-Math.abs(y),e);t.attr("text",i)}))}else t.hide()}}))}}}function zv(t,e,n){var i={fillOpacity:(0,S.UM)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:(0,S.UM)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:(0,S.UM)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}function _v(t,e,n){var i={fillOpacity:0,strokeOpacity:0,opacity:0},r=e.easing,o=e.duration,a=e.delay;t.animate(i,o,r,(function(){t.remove(!0)}),a)}function Uv(t,e,n){var i,r=(0,C.CR)(e,2),o=r[0],a=r[1];return t.applyToMatrix([o,a,1]),"x"===n?(t.setMatrix(mi.vs(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),i=mi.vs(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(t.setMatrix(mi.vs(t.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),i=mi.vs(t.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(t.setMatrix(mi.vs(t.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),i=mi.vs(t.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),i}function Nv(t,e,n,i,r){var o,a,s=n.start,l=n.end,u=n.getWidth(),c=n.getHeight();"y"===r?(o=s.x+u/2,a=i.y<s.y?i.y:s.y):"x"===r?(o=i.x>s.x?i.x:s.x,a=s.y+c/2):"xy"===r&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(s.x+l.x)/2,a=(s.y+l.y)/2));var h=Uv(t,[o,a],r);t.animate({matrix:h},e)}function Vv(t,e,n){var i=n.coordinate,r=n.minYPoint;Nv(t,e,i,r,"x")}function Yv(t,e,n){var i=n.coordinate,r=n.minYPoint;Nv(t,e,i,r,"y")}function Hv(t,e,n){var i=n.coordinate,r=n.minYPoint;Nv(t,e,i,r,"xy")}function Xv(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate((function(t){return{lineDashOffset:(1-t)*i}}),e)}function Gv(t,e,n){var i=n.toAttrs,r=i.x,o=i.y;delete i.x,delete i.y,t.attr(i),t.animate({x:r,y:o},e)}function Wv(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,o=r.points,a=o[0].y-o[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([a,s,1]);var l=mi.vs(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(l),t.animate({matrix:mi.vs(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])},e)}function jv(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,a=r.points,s=a[0].y-a[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,s,1]);var l=mi.vs(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(l),t.animate({matrix:mi.vs(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)}function Qv(t,e){var n,i=Oh(t,e),r=i.startAngle,o=i.endAngle;return!(0,S.vQ)(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!(0,S.vQ)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(n=(0,C.CR)([o,r],2),r=n[0],o=n[1]),(0,S.vQ)(r,1.5*Math.PI)&&(r=-.5*Math.PI),(0,S.vQ)(o,-.5*Math.PI)&&(o=1.5*Math.PI),{startAngle:r,endAngle:o}}function Zv(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function qv(t){var e,n,i,r=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===r.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=r[0],a=r.length>1?r[1]:r[0],s=t.indexOf(o),l=t.indexOf(a),u=Zv(t[s-1]),c=Zv(t[l-1]),h=Qv(u,o),p=h.startAngle,f=h.endAngle,d=Qv(c,a),g=d.startAngle,v=d.endAngle;(0,S.vQ)(p,g)&&(0,S.vQ)(f,v)?(n=p,i=f):(n=Math.min(p,g),i=Math.max(f,v));var m=o[1],y=r[r.length-1][1];return m<y?(e=(0,C.CR)([y,m],2),m=e[0],y=e[1]):m===y&&(y=0),{startAngle:n,endAngle:i,radius:m,innerRadius:y}}function Jv(t,e,n){var i=n.toAttrs,r=n.coordinate,o=i.path||[],a=o.map((function(t){return t[0]}));if(!(o.length<1)){var s=qv(o),l=s.startAngle,u=s.endAngle,c=s.radius,h=s.innerRadius,p=qv(t.attr("path")),f=p.startAngle,d=p.endAngle,g=r.getCenter(),v=l-f,m=u-d;0!==v||0!==m?t.animate((function(t){var e=f+t*v,n=d+t*m;return(0,C.pi)((0,C.pi)({},i),{path:(0,S.Xy)(a,["M","A","A","Z"])?es(g.x,g.y,c,e,n):ts(g.x,g.y,c,e,n,h)})}),(0,C.pi)((0,C.pi)({},e),{callback:function(){t.attr("path",o)}})):t.attr("path",o)}}function Kv(t,e,n){var i=vs(n.coordinate,20),r=i.type,o=i.startState,a=i.endState,s=t.setClip({type:r,attrs:o});s.animate(a,(0,C.pi)((0,C.pi)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),s.remove(!0)}}))}function $v(t,e,n){if(t.isGroup())(0,S.S6)(t.getChildren(),(function(t){$v(t,e,n)}));else{var i=t.getBBox(),r=(i.minX+i.maxX)/2,o=(i.minY+i.maxY)/2;if(t.applyToMatrix([r,o,1]),"zoomIn"===n){var a=mi.vs(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]]);t.setMatrix(a),t.animate({matrix:mi.vs(t.getMatrix(),[["t",-r,-o],["s",100,100],["t",r,o]])},e)}else t.animate({matrix:mi.vs(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]])},(0,C.pi)((0,C.pi)({},e),{callback:function(){t.remove(!0)}}))}}function tm(t,e,n){$v(t,e,"zoomIn")}function em(t,e,n){$v(t,e,"zoomOut")}function nm(t){return[m.TOP,m.BOTTOM].includes(t)?{offsetX:0,offsetY:t===m.TOP?-8:8,style:{textAlign:"center",textBaseline:t===m.TOP?"bottom":"top"}}:[m.LEFT,m.RIGHT].includes(t)?{offsetX:t===m.LEFT?-8:8,offsetY:0,style:{textAlign:t===m.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function im(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var rm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){return(0,S.b$)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=.5,i={x:.5,y:.5},r=2*Math.PI/t,o=-1*Math.PI/2+r*e,a=n/(1+1/Math.sin(r/2)),s=im(i,n-a,o),l=5*Math.PI/4,u=1*Math.PI/4;return{start:im(s,a,l),end:im(s,a,u)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,i=n.fields,r=n.type,o=(0,C.CR)(i,1),a=o[0];if(!a)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,a),l=s.length,u=[];return s.forEach((function(n,i){var o=[{field:a,value:n,values:s}],c=(0,S.hX)(t,e.getFacetDataFilter(o)),h={type:r,data:c,region:e.getRegion(l,i),columnValue:n,columnField:a,columnIndex:i,columnValuesLength:l,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};u.push(h)})),u},e.prototype.getXAxisOption=function(t,e,n,i){return n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;(0,S.S6)(this.facets,(function(e){var n=e.columnValue,i=e.view,r=(0,S.U2)(t.cfg.title,"formatter"),o=(0,S.b$)({position:["50%","0%"],content:r?r(n):n},nm(m.TOP),t.cfg.title);i.annotation().text(o)}))},e}(zs),om=rm,am=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){return(0,S.b$)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,i=this.cfg.cols,r=(0,C.CR)(n,1),o=r[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),s=a.length;i=i||s;var l=this.getPageCount(s,i),u=[];return a.forEach((function(n,r){var c=e.getRowCol(r,i),h=c.row,p=c.col,f=[{field:o,value:n,values:a}],d=(0,S.hX)(t,e.getFacetDataFilter(f)),g={type:e.cfg.type,data:d,region:e.getRegion(l,i,p,h),columnValue:n,rowValue:n,columnField:o,rowField:null,columnIndex:p,rowIndex:h,columnValuesLength:i,rowValuesLength:l,total:s};u.push(g)})),u},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?(0,C.pi)((0,C.pi)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?(0,C.pi)((0,C.pi)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,S.S6)(this.facets,(function(e){var n=e.columnValue,i=e.view,r=(0,S.U2)(t.cfg.title,"formatter"),o=(0,S.b$)({position:["50%","0%"],content:r?r(n):n},nm(m.TOP),t.cfg.title);i.annotation().text(o)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){var n=Math.floor(t/e),i=t%e;return{row:n,col:i}},e}(zs),sm=am,lm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){return(0,S.b$)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,C.pi)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,C.pi)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,i=e.type,r=n.length,o=r,a=[],s=0;s<o;s++)for(var l=n[s],u=0;u<r;u++){var c=n[u],h={type:i,data:t,region:this.getRegion(r,o,s,u),columnValue:l,rowValue:c,columnField:l,rowField:c,columnIndex:s,rowIndex:u,columnValuesLength:o,rowValuesLength:r};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?(0,C.pi)((0,C.pi)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?(0,C.pi)((0,C.pi)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,S.S6)(this.facets,(function(e,n){var i=e.columnIndex,r=e.rowIndex,o=e.columnValuesLength,a=(e.rowValuesLength,e.columnValue),s=e.rowValue,l=e.view;if(0===r){var u=(0,S.U2)(t.cfg.columnTitle,"formatter"),c=(0,S.b$)({position:["50%","0%"],content:u?u(a):a},nm(m.TOP),t.cfg.columnTitle);l.annotation().text(c)}if(i===o-1){u=(0,S.U2)(t.cfg.rowTitle,"formatter"),c=(0,S.b$)({position:["100%","50%"],content:u?u(s):s},nm(m.RIGHT),t.cfg.rowTitle);l.annotation().text(c)}}))},e}(zs),um=lm,cm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getDefaultCfg=function(){return(0,S.b$)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2===0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!==0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,i=this,r=(0,C.CR)(this.cfg.fields,1),o=r[0],a=[],s=1,l=1,u=[""],c=[""];return this.cfg.transpose?(e=o,u=this.getFieldValues(t,e).slice(0,2),s=u.length):(n=o,c=this.getFieldValues(t,n).slice(0,2),l=c.length),u.forEach((function(r,o){c.forEach((function(h,p){var f=[{field:e,value:r,values:u},{field:n,value:h,values:c}],d=(0,S.hX)(t,i.getFacetDataFilter(f)),g={type:i.cfg.type,data:d,region:i.getRegion(l,s,o,p),columnValue:r,rowValue:h,columnField:e,rowField:n,columnIndex:o,rowIndex:p,columnValuesLength:s,rowValuesLength:l};a.push(g)}))})),a},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?(0,C.pi)((0,C.pi)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;(0,S.S6)(this.facets,(function(e,n){var i=e.columnValue,r=e.rowValue,o=e.view,a=(0,S.U2)(t.cfg.title,"formatter");if(t.cfg.transpose){var s=(0,S.b$)({position:["50%","0%"],content:a?a(i):i},nm(m.TOP),t.cfg.title);o.annotation().text(s)}else{s=(0,S.b$)({position:["100%","50%"],content:a?a(r):r},nm(m.RIGHT),t.cfg.title);o.annotation().text(s)}}))},e}(zs),hm=cm,pm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return(0,S.b$)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:(0,C.pi)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,C.pi)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=(0,C.CR)(this.cfg.fields,2),i=n[0],r=n[1],o=[],a=1,s=1,l=[""],u=[""];return i&&(l=this.getFieldValues(t,i),a=l.length),r&&(u=this.getFieldValues(t,r),s=u.length),l.forEach((function(n,c){u.forEach((function(h,p){var f=[{field:i,value:n,values:l},{field:r,value:h,values:u}],d=(0,S.hX)(t,e.getFacetDataFilter(f)),g={type:e.cfg.type,data:d,region:e.getRegion(s,a,c,p),columnValue:n,rowValue:h,columnField:i,rowField:r,columnIndex:c,rowIndex:p,columnValuesLength:a,rowValuesLength:s};o.push(g)}))})),o},e.prototype.renderTitle=function(){var t=this;(0,S.S6)(this.facets,(function(e,n){var i=e.columnIndex,r=e.rowIndex,o=e.columnValuesLength,a=e.columnValue,s=e.rowValue,l=e.view;if(0===r){var u=(0,S.U2)(t.cfg.columnTitle,"formatter"),c=(0,S.b$)({position:["50%","0%"],content:u?u(a):a},nm(m.TOP),t.cfg.columnTitle);l.annotation().text(c)}if(i===o-1){u=(0,S.U2)(t.cfg.rowTitle,"formatter"),c=(0,S.b$)({position:["100%","50%"],content:u?u(s):s},nm(m.RIGHT),t.cfg.rowTitle);l.annotation().text(c)}}))},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?(0,C.pi)((0,C.pi)({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?(0,C.pi)((0,C.pi)({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?(0,C.pi)((0,C.pi)({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?(0,C.pi)((0,C.pi)({},n),{title:null}):n},e}(zs),fm=pm,dm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return(0,C.ZT)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(M.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return(0,S.b$)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){var e=this.cfg.fields;if(!e.length)throw new Error("Please specify for the fields for rootFacet!");var n=[],i={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return n.push(i),i.children=this.getChildFacets(t,1,n),this.setRegion(n),n},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,i){var r=1/e,o=1/t,a={x:r*n,y:o*i},s={x:a.x+r,y:a.y+2*o/3};return{start:a,end:s}},e.prototype.forceColIndex=function(t){var e,n,i=this,r=[],o=0;t.forEach((function(t){i.isLeaf(t)&&(r.push(t),t.columnIndex=o,o++)})),r.forEach((function(t){t.columnValuesLength=r.length}));for(var a=this.cfg.fields.length,s=a-1;s>=0;s--){var l=this.getFacetsByLevel(t,s);try{for(var u=(e=void 0,(0,C.XA)(l)),c=u.next();!c.done;c=u.next()){var h=c.value;this.isLeaf(h)||(h.originColIndex=h.columnIndex,h.columnIndex=this.getRegionIndex(h.children),h.columnValuesLength=r.length)}}catch(p){e={error:p}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0],n=t[t.length-1];return(n.columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var i=this,r=this.cfg.fields,o=r.length;if(!(o<e)){var a=[],s=r[e-1],l=this.getFieldValues(t,s);return l.forEach((function(r,o){var u=[{field:s,value:r,values:l}],c=t.filter(i.getFacetDataFilter(u));if(c.length){var h={type:i.cfg.type,data:c,region:null,columnValue:r,rowValue:"",columnField:s,rowField:"",columnIndex:o,rowValuesLength:i.getRows(),columnValuesLength:1,rowIndex:e,children:i.getChildFacets(c,e+1,n)};a.push(h),n.push(h)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;(0,S.S6)(this.facets,(function(e){var n=e.columnValue,i=e.view,r=(0,S.U2)(t.cfg.title,"formatter"),o=(0,S.b$)({position:["50%","0%"],content:r?r(n):n},nm(m.TOP),t.cfg.title);i.annotation().text(o)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,i=t.view,r=i.coordinateBBox,o={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,i={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},r={x:o.x,y:o.y+(i.y-o.y)/2},a={x:i.x,y:r.y};n.drawLine([o,r,a,i])}))},e.prototype.getPath=function(t){var e=[],n=this.cfg.line.smooth;return n?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:(0,S.f0)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?(0,C.pi)((0,C.pi)({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?(0,C.pi)((0,C.pi)({},n),{title:null,label:null}):n},e}(zs),gm=dm;function vm(t){var e=(0,C.ev)([],(0,C.CR)(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2===1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function mm(t){var e=(0,S.u4)(t,(function(t,e){return t+(isNaN(e)||!(0,S.hj)(e)?0:e)}),0);return 0===t.length?0:e/t.length}function ym(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?vm(e.values.map((function(t,e){return e}))):vm(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:mm(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t;break}return e.scale(n)}var xm=["regionFilter","shape"],bm=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(v.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(v.BG).addGroup(),n.option=[],n}return(0,C.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;(0,S.S6)(t.option,(function(n){if((0,S.q9)(xm,n.type)){var i=t.updateOrCreate(n);i&&e.set(t.getCacheKey(n),i)}})),t.cache=t.syncCache(e)}));var e=new Map;(0,S.S6)(this.option,(function(n){if(!(0,S.q9)(xm,n.type)){var i=t.updateOrCreate(n);i&&e.set(t.getCacheKey(n),i)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(k.AFTER_DRAW_ANIMATE,(function(){t()}))})):this.view.getRootView().once(M.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=r[(0,S.jC)(e)];if(n){var i=this.getAnnotationTheme(e),o=this.getAnnotationCfg(e,t,i);if(!o)return null;var a=new n(o);return{component:a,layer:this.isTop(o)?v.FORE:v.BG,direction:m.NONE,type:y.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation((0,C.pi)({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation((0,C.pi)({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation((0,C.pi)({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation((0,C.pi)({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation((0,C.pi)({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation((0,C.pi)({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation((0,C.pi)({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation((0,C.pi)({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation((0,C.pi)({type:"shape"},t))},e.prototype.html=function(t){this.annotation((0,C.pi)({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,i=this.view.getXScale(),r=this.view.getScalesByDim("y"),o=(0,S.mf)(t)?t.call(null,i,r):t,a=0,s=0;if((0,S.kJ)(o)){var l=(0,C.CR)(o,2),u=l[0],c=l[1];if((0,S.HD)(u)&&-1!==u.indexOf("%")&&!isNaN(u.slice(0,-1)))return this.parsePercentPosition(o);a=ym(u,i),s=ym(c,Object.values(r)[0])}else if(!(0,S.UM)(o))try{for(var h=(0,C.XA)((0,S.XP)(o)),p=h.next();!p.done;p=h.next()){var f=p.value,d=o[f];f===i.field&&(a=ym(d,i)),r[f]&&(s=ym(d,r[f]))}}catch(g){e={error:g}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(e)throw e.error}}return isNaN(a)||isNaN(s)?null:this.view.getCoordinate().convert({x:a,y:s})},e.prototype.getRegionPoints=function(t,e){var n,i=this,r=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],s=r.field,l=this.view.getData(),u=(0,S.kJ)(t)?t[0]:t[s],c=(0,S.kJ)(e)?e[0]:e[s],h=[];return(0,S.S6)(l,(function(t,e){if(t[s]===u&&(n=e),e>=n){var r=i.parsePosition([t[s],t[a.field]]);r&&h.push(r)}if(t[s]===c)return!1})),h},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,i=this.view.getCoordinate(),r=i.start,o=i.end,a={x:Math.min(r.x,o.x),y:Math.min(r.y,o.y)},s=i.getWidth()*e+a.x,l=i.getHeight()*n+a.y;return{x:s,y:l}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,i=t.getWidth(),r=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+i,maxY:o.y+r,width:i,height:r}},e.prototype.getAnnotationCfg=function(t,e,n){var i=this,r=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if((0,S.UM)(e))return null;var s=e.start,l=e.end,u=e.position,c=this.parsePosition(s),h=this.parsePosition(l),p=this.parsePosition(u);if(!(!["arc","image","line","region","regionFilter"].includes(t)||c&&h))return null;if(["text","dataMarker","html"].includes(t)&&!p)return null;if("arc"===t){var f=e,d=(f.start,f.end,(0,C._T)(f,["start","end"])),g=gs(r,c),v=gs(r,h);g>v&&(v=2*Math.PI+v),a=(0,C.pi)((0,C.pi)({},d),{center:r.getCenter(),radius:fs(r,c),startAngle:g,endAngle:v})}else if("image"===t){var m=e;m.start,m.end,d=(0,C._T)(m,["start","end"]);a=(0,C.pi)((0,C.pi)({},d),{start:c,end:h,src:e.src})}else if("line"===t){var y=e;y.start,y.end,d=(0,C._T)(y,["start","end"]);a=(0,C.pi)((0,C.pi)({},d),{start:c,end:h,text:(0,S.U2)(e,"text",null)})}else if("region"===t){var x=e;x.start,x.end,d=(0,C._T)(x,["start","end"]);a=(0,C.pi)((0,C.pi)({},d),{start:c,end:h})}else if("text"===t){var b=this.view.getData(),w=e,A=(w.position,w.content),M=(d=(0,C._T)(w,["position","content"]),A);(0,S.mf)(A)&&(M=A(b)),a=(0,C.pi)((0,C.pi)((0,C.pi)({},p),d),{content:M})}else if("dataMarker"===t){var k=e,E=(k.position,k.point),F=k.line,T=k.text,I=k.autoAdjust,B=k.direction;d=(0,C._T)(k,["position","point","line","text","autoAdjust","direction"]);a=(0,C.pi)((0,C.pi)((0,C.pi)({},d),p),{coordinateBBox:this.getCoordinateBBox(),point:E,line:F,text:T,autoAdjust:I,direction:B})}else if("dataRegion"===t){var D=e,P=D.start,L=D.end,O=D.region,R=(T=D.text,D.lineLength);d=(0,C._T)(D,["start","end","region","text","lineLength"]);a=(0,C.pi)((0,C.pi)({},d),{points:this.getRegionPoints(P,L),region:O,text:T,lineLength:R})}else if("regionFilter"===t){var z=e,_=(z.start,z.end,z.apply),U=z.color,N=(d=(0,C._T)(z,["start","end","apply","color"]),this.view.geometries),V=[],Y=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return Y(t)})):V.push(t))};(0,S.S6)(N,(function(t){_?(0,S.FX)(_,t.type)&&(0,S.S6)(t.elements,(function(t){Y(t.shape)})):(0,S.S6)(t.elements,(function(t){Y(t.shape)}))})),a=(0,C.pi)((0,C.pi)({},d),{color:U,shapes:V,start:c,end:h})}else if("shape"===t){var H=e,X=H.render,G=(0,C._T)(H,["render"]),W=function(t){if((0,S.mf)(e.render))return X(t,i.view,{parsePosition:i.parsePosition.bind(i)})};a=(0,C.pi)((0,C.pi)({},G),{render:W})}else if("html"===t){var j=e,Q=j.html,Z=(j.position,G=(0,C._T)(j,["html","position"]),function(t){return(0,S.mf)(Q)?Q(t,i.view):Q});a=(0,C.pi)((0,C.pi)((0,C.pi)({},G),p),{parent:o.get("el").parentNode,html:Z})}var q=(0,S.b$)({},n,(0,C.pi)((0,C.pi)({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(q.container=this.getComponentContainer(q)),q.animate=this.view.getOptions().animate&&q.animate&&(0,S.U2)(e,"animate",q.animate),q.animateOption=(0,S.b$)({},Zu,q.animateOption,e.animateOption),q},e.prototype.isTop=function(t){return(0,S.U2)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return(0,S.U2)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,i=this.getAnnotationTheme(n),r=this.getAnnotationCfg(n,t,i);r&&ss(r,["container"]),e.component.update((0,C.pi)((0,C.pi)({},r||{}),{visible:!!r})),(0,S.q9)(xm,t.type)&&e.component.render()}else e=this.createAnnotation(t),e&&(e.component.init(),(0,S.q9)(xm,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,i){(0,S.sE)(e.option,(function(t){return i===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(i))})),n},e.prototype.getCacheKey=function(t){return t},e}(Yu),wm=bm;function Am(t,e){var n=(0,S.b$)({},(0,S.U2)(t,["components","axis","common"]),(0,S.U2)(t,["components","axis",e]));return(0,S.U2)(n,["grid"],{})}function Cm(t,e,n,i){var r=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.value;if(i)r.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var l=e.value,u=(l+s)/2;r.push({points:[t.convert("y"===n?{x:0,y:u}:{x:u,y:0}),t.convert("y"===n?{x:1,y:u}:{x:u,y:1})]})}return o}),o[0]),r}function Sm(t,e,n,i,r){var o=e.values.length,a=[],s=n.getTicks();return s.reduce((function(e,n){var s=e?e.value:n.value,l=n.value,u=(s+l)/2;return"x"===r?a.push({points:[t.convert({x:i?l:u,y:0}),t.convert({x:i?l:u,y:1})]}):a.push({points:(0,S.UI)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?l:u})}))}),n}),s[0]),a}function Mm(t,e){var n=(0,S.U2)(e,"grid");if(null===n)return!1;var i=(0,S.U2)(t,"grid");return!(void 0===n&&null===i)}var km=["container"],Em=(0,C.pi)((0,C.pi)({},Zu),{appear:null}),Fm=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(v.BG).addGroup(),n.gridForeContainer=n.view.getLayer(v.FORE).addGroup(),n.axisContainer=n.view.getLayer(v.BG).addGroup(),n.axisForeContainer=n.view.getLayer(v.FORE).addGroup(),n}return(0,C.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();(0,S.S6)(this.getComponents(),(function(n){var i,r=n.component,o=n.direction,a=n.type,s=n.extra,l=s.dim,u=s.scale,c=s.alignTick;if(a===y.AXIS)e.isPolar?"x"===l?i=e.isTransposed?Fs(e,o):Ps(e):"y"===l&&(i=e.isTransposed?Ps(e):Fs(e,o)):i=Fs(e,o);else if(a===y.GRID)if(e.isPolar){var h=void 0;h=e.isTransposed?"x"===l?Sm(e,t.view.getYScales()[0],u,c,l):Cm(e,u,l,c):"x"===l?Cm(e,u,l,c):Sm(e,t.view.getXScale(),u,c,l),i={items:h,center:t.view.getCoordinate().getCenter()}}else i={items:Cm(e,u,l,c)};r.update(i)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,i){t.has(i)?e.set(i,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=Ls(this.option,e.field);if(!1!==n){var i=Os(n,m.BOTTOM),r=v.BG,o="x",a=this.view.getCoordinate(),s=this.getId("axis",e.field),l=this.getId("grid",e.field);if(a.isRect){var u=this.cache.get(s);if(u){var c=this.getLineAxisCfg(e,n,i);ss(c,km),u.component.update(c),t.set(s,u)}else u=this.createLineAxis(e,n,r,i,o),this.cache.set(s,u),t.set(s,u);var h=this.cache.get(l);if(h){c=this.getLineGridCfg(e,n,i,o);ss(c,km),h.component.update(c),t.set(l,h)}else h=this.createLineGrid(e,n,r,i,o),h&&(this.cache.set(l,h),t.set(l,h))}else if(a.isPolar){u=this.cache.get(s);if(u){c=a.isTransposed?this.getLineAxisCfg(e,n,m.RADIUS):this.getCircleAxisCfg(e,n,i);ss(c,km),u.component.update(c),t.set(s,u)}else{if(a.isTransposed){if((0,S.o8)(n))return;u=this.createLineAxis(e,n,r,m.RADIUS,o)}else u=this.createCircleAxis(e,n,r,i,o);this.cache.set(s,u),t.set(s,u)}h=this.cache.get(l);if(h){c=a.isTransposed?this.getCircleGridCfg(e,n,m.RADIUS,o):this.getLineGridCfg(e,n,m.CIRCLE,o);ss(c,km),h.component.update(c),t.set(l,h)}else{if(a.isTransposed){if((0,S.o8)(n))return;h=this.createCircleGrid(e,n,r,m.RADIUS,o)}else h=this.createLineGrid(e,n,r,m.CIRCLE,o);h&&(this.cache.set(l,h),t.set(l,h))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();(0,S.S6)(n,(function(n,i){if(n&&!n.isIdentity){var r=n.field,o=Ls(e.option,r);if(!1!==o){var a=v.BG,s="y",l=e.getId("axis",r),u=e.getId("grid",r),c=e.view.getCoordinate();if(c.isRect){var h=Os(o,0===i?m.LEFT:m.RIGHT),p=e.cache.get(l);if(p){var f=e.getLineAxisCfg(n,o,h);ss(f,km),p.component.update(f),t.set(l,p)}else p=e.createLineAxis(n,o,a,h,s),e.cache.set(l,p),t.set(l,p);var d=e.cache.get(u);if(d){f=e.getLineGridCfg(n,o,h,s);ss(f,km),d.component.update(f),t.set(u,d)}else d=e.createLineGrid(n,o,a,h,s),d&&(e.cache.set(u,d),t.set(u,d))}else if(c.isPolar){p=e.cache.get(l);if(p){f=c.isTransposed?e.getCircleAxisCfg(n,o,m.CIRCLE):e.getLineAxisCfg(n,o,m.RADIUS);ss(f,km),p.component.update(f),t.set(l,p)}else{if(c.isTransposed){if((0,S.o8)(o))return;p=e.createCircleAxis(n,o,a,m.CIRCLE,s)}else p=e.createLineAxis(n,o,a,m.RADIUS,s);e.cache.set(l,p),t.set(l,p)}d=e.cache.get(u);if(d){f=c.isTransposed?e.getLineGridCfg(n,o,m.CIRCLE,s):e.getCircleGridCfg(n,o,m.RADIUS,s);ss(f,km),d.component.update(f),t.set(u,d)}else{if(c.isTransposed){if((0,S.o8)(o))return;d=e.createLineGrid(n,o,a,m.CIRCLE,s)}else d=e.createCircleGrid(n,o,a,m.RADIUS,s);d&&(e.cache.set(u,d),t.set(u,d))}}}}}))},e.prototype.createLineAxis=function(t,e,n,i,r){var o={component:new Ha(this.getLineAxisCfg(t,e,i)),layer:n,direction:i===m.RADIUS?m.NONE:i,type:y.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,n,i,r){var o=this.getLineGridCfg(t,e,i,r);if(o){var a={component:new Ga(o),layer:n,direction:m.NONE,type:y.GRID,extra:{dim:r,scale:t,alignTick:(0,S.U2)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,n,i,r){var o={component:new Xa(this.getCircleAxisCfg(t,e,i)),layer:n,direction:i,type:y.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,i,r){var o=this.getCircleGridCfg(t,e,i,r);if(o){var a={component:new Wa(o),layer:n,direction:m.NONE,type:y.GRID,extra:{dim:r,scale:t,alignTick:(0,S.U2)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,n){var i=(0,S.U2)(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=Fs(r,n),a=Rs(t,e),s=Bs(this.view.getTheme(),n),l=(0,S.U2)(e,["title"])?(0,S.b$)({title:{style:{text:a}}},{title:Ds(this.view.getTheme(),n,e.title)},e):e,u=(0,S.b$)((0,C.pi)((0,C.pi)({container:i},o),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:r.isPolar?-1*Is(o,r.getCenter()):Is(o,r.getCenter()),theme:s}),s,l),c=this.getAnimateCfg(u),h=c.animate,p=c.animateOption;u.animateOption=p,u.animate=h;var f=Ts(o),d=(0,S.U2)(u,"verticalLimitLength",f?1/3:.5);if(d<=1){var g=this.view.getCanvas().get("width"),v=this.view.getCanvas().get("height");u.verticalLimitLength=d*(f?g:v)}return u},e.prototype.getLineGridCfg=function(t,e,n,i){if(Mm(Bs(this.view.getTheme(),n),e)){var r=Am(this.view.getTheme(),n),o=(0,S.b$)({container:(0,S.U2)(e,["top"])?this.gridForeContainer:this.gridContainer},r,(0,S.U2)(e,"grid"),this.getAnimateCfg(e));return o.items=Cm(this.view.getCoordinate(),t,i,(0,S.U2)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var i=(0,S.U2)(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(r.endAngle-r.startAngle)!==2*Math.PI||o.pop();var a=Rs(t,e),s=Bs(this.view.getTheme(),m.CIRCLE),l=(0,S.U2)(e,["title"])?(0,S.b$)({title:{style:{text:a}}},{title:Ds(this.view.getTheme(),n,e.title)},e):e,u=(0,S.b$)((0,C.pi)((0,C.pi)({container:i},Ps(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:s}),s,l),c=this.getAnimateCfg(u),h=c.animate,p=c.animateOption;return u.animate=h,u.animateOption=p,u},e.prototype.getCircleGridCfg=function(t,e,n,i){if(Mm(Bs(this.view.getTheme(),n),e)){var r=Am(this.view.getTheme(),m.RADIUS),o=(0,S.b$)({container:(0,S.U2)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},r,(0,S.U2)(e,"grid"),this.getAnimateCfg(e)),a=(0,S.U2)(o,"alignTick",!0),s="x"===i?this.view.getYScales()[0]:this.view.getXScale();return o.items=Sm(this.view.getCoordinate(),s,t,a,i),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,S.U2)(t,"animate"),animateOption:t&&t.animateOption?(0,S.b$)({},Em,t.animateOption):Em}},e}(Yu),Tm=Fm;function Im(t,e,n){return n===m.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===m.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===m.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===m.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===m.TOP_LEFT||n===m.LEFT_TOP?[t.tl.x,t.tl.y]:n===m.TOP_RIGHT||n===m.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===m.BOTTOM_LEFT||n===m.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===m.BOTTOM_RIGHT||n===m.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function Bm(t,e){return(0,S.jn)(t)?!1!==t&&{}:(0,S.U2)(t,[e],t)}function Dm(t){return(0,S.U2)(t,"position",m.BOTTOM)}var Pm=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(v.FORE).addGroup(),n}return(0,C.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,S.S6)(this.components,(function(e){var n=e.component,i=e.direction,r=Xc(i),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(r,o,a),l=n.get("maxWidth"),u=n.get("maxHeight");n.update({maxWidth:Math.min(s.maxWidth,l||0),maxHeight:Math.min(s.maxHeight,u||0)});var c=n.get("padding"),h=n.getLayoutBBox(),p=new us(h.x,h.y,h.width,h.height).expand(c),f=(0,C.CR)(Im(t.view.viewBBox,p,i),2),d=f[0],g=f[1],v=(0,C.CR)(Im(t.layoutBBox,p,i),2),m=v[0],y=v[1],x=0,b=0;i.startsWith("top")||i.startsWith("bottom")?(x=d,b=y):(x=m,b=g),n.setLocation({x:x+c[3],y:b+c[0]}),t.layoutBBox=t.layoutBBox.cut(p,i)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={},n=function(n,i,r){var o=t.getId(r.field),a=t.getComponentById(o);if(a){var s=void 0,l=Bm(t.option,r.field);!1!==l&&((0,S.U2)(l,"custom")?s=t.getCategoryCfg(n,i,r,l,!0):r.isLinear?s=t.getContinuousCfg(n,i,r,l):r.isCategory&&(s=t.getCategoryCfg(n,i,r,l))),s&&(ss(s,["container"]),a.direction=Dm(l),a.component.update(s),e[o]=!0)}else{var u=t.createFieldLegend(n,i,r);u&&(u.component.init(),t.components.push(u),e[o]=!0)}};if((0,S.U2)(this.option,"custom")){var i="global-custom",r=this.getComponentById(i);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);ss(o,["container"]),r.component.update(o),e[i]=!0}else{var a=this.createCustomLegend(void 0,void 0,void 0,this.option);if(a){a.init();var s=v.FORE,l=Dm(this.option);this.components.push({id:i,component:a,layer:s,direction:l,type:y.LEGEND,extra:void 0}),e[i]=!0}}}else this.loopLegends(n);var u=[];(0,S.S6)(this.getComponents(),(function(t){e[t.id]?u.push(t):t.component.destroy()})),this.components=u},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return(0,S.S6)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){var e=this.view.getRootView()===this.view;if(e){var n=this.getGeometries(this.view),i={};(0,S.S6)(n,(function(e){var n=e.getGroupAttributes();(0,S.S6)(n,(function(n){var r=n.getScale(n.type);r&&"identity"!==r.type&&!i[r.field]&&(t(e,n,r),i[r.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var i,r=Bm(this.option,n.field),o=v.FORE,a=Dm(r);if(!1!==r&&((0,S.U2)(r,"custom")?i=this.createCustomLegend(t,e,n,r):n.isLinear?i=this.createContinuousLegend(t,e,n,r):n.isCategory&&(i=this.createCategoryLegend(t,e,n,r))),i)return i.set("field",n.field),{id:this.getId(n.field),component:i,layer:o,direction:a,type:y.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i,!0);return new ja(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,ss(i,["value"]));return new Qa(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new ja(r)},e.prototype.getContinuousCfg=function(t,e,n,i){var r=n.getTicks(),o=(0,S.sE)(r,(function(t){return 0===t.value})),a=(0,S.sE)(r,(function(t){return 1===t.value})),s=r.map((function(t){var i=t.value,r=t.tickValue,o=e.mapping(n.invert(i)).join("");return{value:r,attrValue:o,color:o,scaleValue:i}}));o||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var l={min:(0,S.YM)(s).value,max:(0,S.Z$)(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=s.map((function(t){return t.attrValue})));var u=this.container,c=Dm(i),h=Xc(c),p=(0,S.U2)(i,"title");return p&&(p=(0,S.b$)({text:Cs(n)},p)),l.container=u,l.layout=h,l.title=p,l.animateOption=Zu,this.mergeLegendCfg(l,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,r){var o=this.container,a=(0,S.U2)(i,"position",m.BOTTOM),s=jc(this.view.getTheme(),a),l=(0,S.U2)(s,["marker"]),u=(0,S.U2)(i,"marker"),c=Xc(a),h=(0,S.U2)(s,["pageNavigator"]),p=(0,S.U2)(i,"pageNavigator"),f=r?Wc(l,u,i.items):Gc(this.view,t,e,l,u),d=(0,S.U2)(i,"title");d&&(d=(0,S.b$)({text:n?Cs(n):""},d));var g=(0,S.U2)(i,"maxWidthRatio"),v=(0,S.U2)(i,"maxHeightRatio"),y=this.getCategoryLegendSizeCfg(c,g,v);y.container=o,y.layout=c,y.items=f,y.title=d,y.animateOption=Zu,y.pageNavigator=(0,S.b$)({},h,p);var x=this.mergeLegendCfg(y,i,a);x.reversed&&x.items.reverse();var b=(0,S.U2)(x,"maxItemWidth");return b&&b<=1&&(x.maxItemWidth=this.view.viewBBox.width*b),x},e.prototype.mergeLegendCfg=function(t,e,n){var i=n.split("-")[0],r=jc(this.view.getTheme(),i);return(0,S.b$)({},r,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return(0,S.sE)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=_),void 0===n&&(n=_);var i=this.view.viewBBox,r=i.width,o=i.height;return"vertical"===t?{maxWidth:r*e,maxHeight:o}:{maxWidth:r,maxHeight:o*n}},e}(Yu),Lm=Pm,Om=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=S.ZT,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=(0,C.CR)(t,2),i=e[0],r=e[1];n.start=i,n.end=r,n.changeViewData(i,r)},n.container=n.view.getLayer(v.FORE).addGroup(),n.onChangeFn=(0,S.P2)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(M.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(M.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,C.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(M.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(M.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;(0,S.UM)(this.start)&&(this.start=e,this.end=n);var i=this.view.getOptions().data;this.option&&!(0,S.xb)(i)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=(0,C.CR)(n,4),r=i[0],o=(i[1],i[2],i[3]),a=this.slider.component.getLayoutBBox(),s=new us(a.x,a.y,Math.min(a.width,e),a.height).expand(n),l=this.getMinMaxText(this.start,this.end),u=l.minText,c=l.maxText,h=(0,C.CR)(Im(this.view.viewBBox,s,m.BOTTOM),2),p=(h[0],h[1]),f=(0,C.CR)(Im(this.view.coordinateBBox,s,m.BOTTOM),2),d=f[0];f[1];this.slider.component.update((0,C.pi)((0,C.pi)({},this.getSliderCfg()),{x:d+o,y:p+r,width:this.width,start:this.start,end:this.end,minText:u,maxText:c})),this.view.viewBBox=this.view.viewBBox.cut(s,m.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new _a((0,C.pi)({container:this.container},t));return e.init(),{component:e,layer:v.FORE,direction:m.BOTTOM,type:y.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,i=e.maxText;t=(0,C.pi)((0,C.pi)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,S.Kn)(this.option)){var e=(0,C.pi)({data:this.getData()},(0,S.U2)(this.option,"trendCfg",{}));t=(0,S.b$)({},t,this.getThemeOptions(),this.option),t=(0,C.pi)((0,C.pi)({},t),{trendCfg:e})}return t.start=(0,S.uZ)(Math.min((0,S.UM)(t.start)?0:t.start,(0,S.UM)(t.end)?1:t.end),0,1),t.end=(0,S.uZ)(Math.max((0,S.UM)(t.start)?0:t.start,(0,S.UM)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=(0,C.CR)(this.view.getYScales(),1),n=e[0],i=this.view.getGroupScales();if(i.length){var r=i[0],o=r.field,a=r.ticks;return t.reduce((function(t,e){return e[o]===a[0]&&t.push(e[n.field]),t}),[])}return t.map((function(t){return t[n.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,S.U2)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=!0,o=(0,S.I)(n,i.field);i.isLinear&&(o=o.sort());var a=r?o:o.reverse(),s=(0,S.dp)(n);if(!i||!s)return{};var l=(0,S.dp)(a),u=Math.floor(t*(l-1)),c=Math.floor(e*(l-1)),h=(0,S.U2)(a,[u]),p=(0,S.U2)(a,[c]),f=this.getSliderCfg().formatter;return f&&(h=f(h,n[u],u),p=f(p,n[c],c)),{minText:h,maxText:p}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=(0,S.dp)(n);if(i&&r){var o=!0,a=(0,S.I)(n,i.field),s=this.view.getXScale().isLinear?a.sort((function(t,e){return Number(t)-Number(e)})):a,l=o?s:s.reverse(),u=(0,S.dp)(l),c=Math.floor(t*(u-1)),h=Math.floor(e*(u-1));this.view.filter(i.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||os(n,c,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(Yu),Rm=Om,zm=0,_m=8,Um=32,Nm=20,Vm=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=S.ZT,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,i=n.getValidScrollbarCfg().animate;n.ratio=(0,S.uZ)(e,0,1);var r=n.view.getOptions().animate;i||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(r)},n.container=n.view.getLayer(v.FORE).addGroup(),n.onChangeFn=(0,S.P2)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(M.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(M.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,C.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(M.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(M.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),r=new us(i.x,i.y,Math.min(i.width,e),i.height).expand(n),o=this.getScrollbarComponentCfg(),a=void 0,s=void 0;if(o.isHorizontal){var l=(0,C.CR)(Im(this.view.viewBBox,r,m.BOTTOM),2),u=(l[0],l[1]),c=(0,C.CR)(Im(this.view.coordinateBBox,r,m.BOTTOM),2),h=c[0];c[1];a=h,s=u}else{var p=(0,C.CR)(Im(this.view.viewBBox,r,m.RIGHT),2),f=(p[0],u=p[1],(0,C.CR)(Im(this.view.viewBBox,r,m.RIGHT),2));h=f[0],f[1];a=h,s=u}a+=n[3],s+=n[0],this.trackLen?this.scrollbar.component.update((0,C.pi)((0,C.pi)({},o),{x:a,y:s,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,C.pi)((0,C.pi)({},o),{x:a,y:s})),this.view.viewBBox=this.view.viewBBox.cut(r,o.isHorizontal?m.BOTTOM:m.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,S.U2)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=(0,S.U2)(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,r=(0,C._T)(n,["thumbHighlightColor"]);return{default:(0,S.b$)({},(0,S.U2)(e,["default","style"],{}),r),hover:(0,S.b$)({},(0,S.U2)(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),i=n.trackLen,r=n.thumbLen;this.trackLen=i,this.thumbLen=r,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,S.uZ)(this.ratio,0,1)),e=Math.min(t+this.step-1,this.cnt-1);return[t,e]},e.prototype.changeViewData=function(t,e){var n=this,i=(0,C.CR)(t,2),r=i[0],o=i[1],a=this.getValidScrollbarCfg().type,s="vertical"!==a,l=(0,S.I)(this.data,this.xScaleCfg.field),u=this.view.getXScale().isLinear?l.sort((function(t,e){return Number(t)-Number(e)})):l,c=s?u:u.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=c.indexOf(t);return!(e>-1)||os(e,r,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e="vertical"!==t,n=new Ya((0,C.pi)((0,C.pi)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:v.FORE,direction:e?m.BOTTOM:m.RIGHT,type:y.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?(0,C.pi)((0,C.pi)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,C.pi)({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,i=e.categorySize,r="vertical"!==n;return Math.floor((r?t.width:t.height)/i)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=(0,S.I)(e,t.field);return(0,S.dp)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),r=i.type,o=i.padding,a=i.width,s=i.height,l=i.style,u="vertical"!==r,c=(0,C.CR)(o,4),h=c[0],p=c[1],f=c[2],d=c[3],g=u?{x:e.minX+d,y:n.maxY-s-f}:{x:n.maxX-a-p,y:e.minY+h},v=this.getStep(),m=this.getCnt(),y=u?e.width-d-p:e.height-h-f,x=Math.max(y*(0,S.uZ)(v/m,0,1),Nm);return(0,C.pi)((0,C.pi)({},this.getThemeOptions()),{x:g.x,y:g.y,size:u?s:a,isHorizontal:u,trackLen:y,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(l)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:Um,width:_m,height:_m,padding:[0,0,0,0],animate:!0,style:{}};return(0,S.Kn)(this.option)&&(t=(0,C.pi)((0,C.pi)({},t),this.option)),(0,S.Kn)(this.option)&&this.option.padding||(t.padding="horizontal"===t.type?[zm,0,zm,0]:[0,zm,0,zm]),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=(0,C.ev)([],(0,C.CR)(n),!1).reverse()),n},e}(Yu),Ym=Vm,Hm={fill:"#CCD6EC",opacity:.3};function Xm(t,e,n){var i,r,o,a,s,l,u=wu(t,e,n);if(u.length){u=(0,S.xH)(u);try{for(var c=(0,C.XA)(u),h=c.next();!h.done;h=c.next()){var p=h.value;try{for(var f=(o=void 0,(0,C.XA)(p)),d=f.next();!d.done;d=f.next()){var g=d.value,v=g.mappingData,m=v.x,y=v.y;g.x=(0,S.kJ)(m)?m[m.length-1]:m,g.y=(0,S.kJ)(y)?y[y.length-1]:y}}catch(F){o={error:F}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}}}catch(T){i={error:T}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}var x=n.shared;if(!1===x&&u.length>1){var b=u[0],w=Math.abs(e.y-b[0].y);try{for(var A=(0,C.XA)(u),M=A.next();!M.done;M=A.next()){var k=M.value,E=Math.abs(e.y-k[0].y);E<=w&&(b=k,w=E)}}catch(I){s={error:I}}finally{try{M&&!M.done&&(l=A.return)&&l.call(A)}finally{if(s)throw s.error}}u=[b]}return(0,S.jj)((0,S.xH)(u))}return[]}var Gm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,i=e.getController("tooltip").getTooltipCfg(),r=Xm(e,{x:n.x,y:n.y},i);if(!(0,S.Xy)(r,this.items)&&(this.items=r,r.length)){var o=e.getXScale().field,a=r[0].data[o],s=[],l=e.geometries;if((0,S.S6)(l,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){var e=t.getData();return e[o]===a}));s=s.concat(e)}})),s.length){var u=e.getCoordinate(),c=s[0].shape.getCanvasBBox(),h=s[0].shape.getCanvasBBox(),p=c;(0,S.S6)(s,(function(t){var e=t.shape.getCanvasBBox();u.isTransposed?(e.minY<c.minY&&(c=e),e.maxY>h.maxY&&(h=e)):(e.minX<c.minX&&(c=e),e.maxX>h.maxX&&(h=e)),p.x=Math.min(e.minX,p.minX),p.y=Math.min(e.minY,p.minY),p.width=Math.max(e.maxX,p.maxX)-p.x,p.height=Math.max(e.maxY,p.maxY)-p.y}));var f=e.backgroundGroup,d=e.coordinateBBox,g=void 0;if(u.isRect){var v=e.getXScale(),m=t||{},y=m.appendRatio,x=m.appendWidth;(0,S.UM)(x)&&(y=(0,S.UM)(y)?v.isLinear?0:.25:y,x=u.isTransposed?y*h.height:y*c.width);var b=void 0,w=void 0,A=void 0,M=void 0;u.isTransposed?(b=d.minX,w=Math.min(h.minY,c.minY)-x,A=d.width,M=p.height+2*x):(b=Math.min(c.minX,h.minX)-x,w=d.minY,A=p.width+2*x,M=d.height),g=[["M",b,w],["L",b+A,w],["L",b+A,w+M],["L",b,w+M],["Z"]]}else{var k=(0,S.YM)(s),E=(0,S.Z$)(s),F=ns(k.getModel(),u).startAngle,T=ns(E.getModel(),u).endAngle,I=u.getCenter(),B=u.getRadius(),D=u.innerRadius*B;g=ts(I.x,I.y,B,F,T,D)}if(this.regionPath)this.regionPath.attr("path",g),this.regionPath.show();else{var P=(0,S.U2)(t,"style",Hm);this.regionPath=f.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,C.pi)((0,C.pi)({},P),{path:g})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(Ys),Wm=Gm,jm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return(0,C.ZT)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view,i=n.isTooltipLocked();if(!i){var r=this.timeStamp,o=+new Date,a=(0,S.U2)(t.view.getOptions(),"tooltip.showDelay",16);if(o-r>a){var s=this.location,l={x:e.x,y:e.y};s&&(0,S.Xy)(s,l)||this.showTooltip(n,l),this.timeStamp=o,this.location=l}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,i=n.clientX,r=n.clientY;e.isCursorEntered({x:i,y:r})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(Ys),Qm=jm,Zm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.showTooltip=function(t,e){var n=Tl(t);(0,S.S6)(n,(function(n){var i=Bl(t,n,e);n.showTooltip(i)}))},e.prototype.hideTooltip=function(t){var e=Tl(t);(0,S.S6)(e,(function(t){t.hideTooltip()}))},e}(Qm),qm=Zm,Jm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return(0,C.ZT)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context,e=t.event,n=this.timeStamp,i=+new Date;if(i-n>16){var r=this.location,o={x:e.x,y:e.y};r&&(0,S.Xy)(r,o)||this.showTooltip(o),this.timeStamp=i,this.location=o}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,i=n.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var r=i.get("tip");this.tooltip.update((0,C.pi)({title:r},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,i={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},r=e.getTheme(),o=(0,S.U2)(r,["components","tooltip","domStyles"],{}),a=new Za({parent:n.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:(0,C.pi)({},(0,S.b$)({},o,(t={},t[ia]={"max-width":"50%"},t[ra]={"word-break":"break-all"},t)))});a.init(),a.setCapture(!1),this.tooltip=a},e}(Ys),Km=Jm,$m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return(0,C.ZT)(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=xl(t,this.stateName);(0,S.S6)(n,(function(t){e.setElementState(t,!1)}))},e}(Ys),ty=$m;function ey(t){return(0,S.U2)(t.get("delegateObject"),"item")}var ny=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return(0,C.ZT)(e,t),e.prototype.isItemIgnore=function(t,e){var n=this.ignoreListItemStates,i=n.filter((function(n){return e.hasState(t,n)}));return!!i.length},e.prototype.setStateByComponent=function(t,e,n){var i=this.context.view,r=t.get("field"),o=ml(i);this.setElementsStateByItem(o,r,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var i=this.context.view,r=Pl(i,e),o=bl(t,e);return!(0,S.UM)(o)&&n.name===r.getText(o)},e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;(0,S.S6)(t,(function(t){r.isMathItem(t,e,n)&&t.setState(r.stateName,i)}))},e.prototype.setStateEnable=function(t){var e=ul(this.context);if(e)hl(this.context)&&this.setStateByElement(e,t);else{var n=cl(this.context);if(pl(n)){var i=n.item,r=n.component;if(i&&r&&!this.isItemIgnore(i,r)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&ey(o.fromShape)===ey(o.toShape))return;this.setStateByComponent(r,i,t)}}}},e.prototype.toggle=function(){var t=ul(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(ty),iy=ny,ry=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,C.ZT)(e,t),e.prototype.active=function(){this.setState()},e}(iy),oy=ry,ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return(0,C.ZT)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");if(!n)return null;var i=t.getScaleByField(n.getFields()[0]);return i},e.prototype.getLinkPath=function(t,e){var n=this.context.view,i=n.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),o=e.shape.getCanvasBBox(),a=i?[["M",r.minX,r.minY],["L",o.minX,o.maxY],["L",o.maxX,o.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",o.minX,o.minY],["L",o.minX,o.maxY],["L",r.maxX,r.maxY],["Z"]];return a},e.prototype.addLinkShape=function(t,e,n,i){var r={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:(0,C.pi)((0,C.pi)({},(0,S.b$)({},r,(0,S.mf)(i)?i(r,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,i=this.context.view,r=this.getColorScale(i,t);if(r){var o=bl(t,r.field);if(!this.cache[o]){var a=yl(i,r.field,o),s=this.linkGroup,l=s.addGroup();this.cache[o]=l;var u=a.length;(0,S.S6)(a,(function(t,i){if(i<u-1){var r=a[i+1];n.addLinkShape(l,t,r,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=bl(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=ul(e);n&&this.linkByElement(n,null===t||void 0===t?void 0:t.style)},e.prototype.unlink=function(){var t=ul(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(Ys),sy=ay,ly=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return(0,C.ZT)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(dl(this.context))t=gl(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var i={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},r=this.context.view;t=Al(r,i)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=ml(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,i=this.context.view,r=Tl(i),o=t.map((function(t){return t.getModel().data})),a=i.getXScale().field,s=i.getYScales()[0].field;(0,S.S6)(r,(function(t){var i=ml(t),r=i.filter((function(t){var e=t.getModel().data;return Dl(o,e,a,s)}));n.setElementsState(r,e,i)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,i=Tl(n);dl(this.context)&&(0,S.S6)(i,(function(n){var i=ml(n),r=vl(e.context,n,10);r&&r.length?e.setElementsState(r,t,i):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var i=this;(0,S.S6)(n,(function(n){t.includes(n)?i.setElementState(n,e):i.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=Tl(e);(0,S.S6)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(ty),uy=ly,cy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,C.ZT)(e,t),e.prototype.active=function(){this.setState()},e}(uy),hy=cy,py=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.setStateEnable=function(t){var e=ul(this.context);if(e){if(!hl(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=ul(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(ty),fy=py,dy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,C.ZT)(e,t),e.prototype.active=function(){this.setState()},e}(fy),gy=dy,vy="inactive",my="active";function yy(t){var e=ml(t);(0,S.S6)(e,(function(t){t.hasState(my)&&t.setState(my,!1),t.hasState(vy)&&t.setState(vy,!1)}))}function xy(t,e,n){(0,S.S6)(t,(function(t){e(t)?(t.hasState(vy)&&t.setState(vy,!1),t.setState(my,n)):(t.hasState(my)&&t.setState(my,!1),t.setState(vy,n))}))}var by,wy=F.INACTIVE,Ay=F.ACTIVE,Cy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Ay,e}return(0,C.ZT)(e,t),e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this,o=function(t){return r.isMathItem(t,e,n)};this.setHighlightBy(t,o,i)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(wy)&&t.setState(wy,!1),t.setState(Ay,!0)):t.hasState(Ay)||t.setState(wy,!0)},e.prototype.setHighlightBy=function(t,e,n){var i=this;if(n)(0,S.S6)(t,(function(t){i.setElementHighlight(t,e)}));else{var r=xl(this.context.view,Ay),o=!0;(0,S.S6)(r,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():(0,S.S6)(t,(function(t){e(t)&&(t.hasState(Ay)&&t.setState(Ay,!1),t.setState(wy,!0))}))}},e.prototype.setElementState=function(t,e){var n=this.context.view,i=ml(n);this.setHighlightBy(i,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;yy(t)},e}(iy),Sy=Cy,My=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=t.geometry.getAttribute("color");if(i){var r=n.getScaleByField(i.getFields()[0]),o=bl(t,r.field),a=ml(n),s=a.filter((function(t){return bl(t,r.field)===o}));this.setHighlightBy(a,(function(t){return s.includes(t)}),e)}},e}(Sy),ky=My,Ey=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(wy)&&t.setState(wy,!1),t.setState(Ay,!0)):(t.setState(wy,!0),t.hasState(Ay)&&t.setState(Ay,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=n.getXScale(),r=bl(t,i.field),o=ml(n),a=o.filter((function(t){return bl(t,i.field)===r}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=ul(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(Sy),Fy=Ey;(function(t){t["BEFORE_HIGHLIGHT"]="element-range-highlight:beforehighlight",t["AFTER_HIGHLIGHT"]="element-range-highlight:afterhighlight",t["BEFORE_CLEAR"]="element-range-highlight:beforeclear",t["AFTER_CLEAR"]="element-range-highlight:afterclear"})(by||(by={}));var Ty=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,C.ZT)(e,t),e.prototype.clearViewState=function(t){yy(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n=t.event,i=this.getIntersectElements(),r={view:e,event:n,highlightElements:i};e.emit(by.BEFORE_HIGHLIGHT,Bu.fromData(e,by.BEFORE_HIGHLIGHT,r)),this.setState(),e.emit(by.AFTER_HIGHLIGHT,Bu.fromData(e,by.AFTER_HIGHLIGHT,r))},e.prototype.clear=function(){var e=this.context.view;e.emit(by.BEFORE_CLEAR,Bu.fromData(e,by.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(by.AFTER_CLEAR,Bu.fromData(e,by.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){xy(n,(function(e){return t.indexOf(e)>=0}),e)},e}(uy),Iy=Ty,By=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,C.ZT)(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,i=ml(n);xy(i,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;yy(t)},e}(fy),Dy=By,Py=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,C.ZT)(e,t),e.prototype.selected=function(){this.setState()},e}(uy),Ly=Py,Oy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,C.ZT)(e,t),e.prototype.selected=function(){this.setState()},e}(iy),Ry=Oy,zy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,C.ZT)(e,t),e.prototype.selected=function(){this.setState()},e}(fy),_y=zy,Uy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return(0,C.ZT)(e,t),e.prototype.getTriggerListInfo=function(){var t=cl(this.context),e=null;return pl(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=Ml(e),i=[];return(0,S.S6)(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&i.push(e)})),i},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();(0,S.S6)(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var i=this.context.view,r=Pl(i,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;if(n.length){var i=n.filter((function(n){return e.hasState(t,n)}));return 0===i.length}return!0},e.prototype.setStateByElement=function(t,e,n){var i=t.get("field"),r=this.context.view,o=Pl(r,i),a=bl(e,i),s=o.getText(a);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=ul(this.context);if(n){var i=this.getAllowComponents();(0,S.S6)(i,(function(i){e.setStateByElement(i,n,t)}))}else{var r=cl(this.context);if(pl(r)){var o=r.item,a=r.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var i=this,r=t.getItems();(0,S.S6)(r,(function(r){r.name===e&&i.setItemState(t,r,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=this.hasState(e,n);this.setItemState(e,n,!i)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(Ys),Ny=Uy,Vy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,C.ZT)(e,t),e.prototype.active=function(){this.setState()},e}(Ny),Yy=Vy,Hy="inactive",Xy="active";function Gy(t){var e=t.getItems();(0,S.S6)(e,(function(e){t.hasState(e,Xy)&&t.setItemState(e,Xy,!1),t.hasState(e,Hy)&&t.setItemState(e,Hy,!1)}))}var Wy="inactive",jy="active",Qy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=jy,e.ignoreItemStates=["unchecked"],e}return(0,C.ZT)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var i=t.getItems();if(n)(0,S.S6)(i,(function(n){e(n)?(t.hasState(n,Wy)&&t.setItemState(n,Wy,!1),t.setItemState(n,jy,!0)):t.hasState(n,jy)||t.setItemState(n,Wy,!0)}));else{var r=t.getItemsByState(jy),o=!0;(0,S.S6)(r,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():(0,S.S6)(i,(function(n){e(n)&&(t.hasState(n,jy)&&t.setItemState(n,jy,!1),t.setItemState(n,Wy,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)Gy(t.list);else{var e=this.getAllowComponents();(0,S.S6)(e,(function(t){t.clearItemsState(jy),t.clearItemsState(Wy)}))}},e}(Ny),Zy=Qy,qy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,C.ZT)(e,t),e.prototype.selected=function(){this.setState()},e}(Ny),Jy=qy,Ky=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return(0,C.ZT)(e,t),e.prototype.unchecked=function(){this.setState()},e}(Ny),$y=Ky,tx="unchecked",ex="checked",nx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=ex,e}return(0,C.ZT)(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var i=t.getItems();n&&(0,S.S6)(i,(function(n){e(n)?(t.hasState(n,tx)&&t.setItemState(n,tx,!1),t.setItemState(n,ex,!0)):t.hasState(n,ex)||t.setItemState(n,tx,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=!(0,S.G)(e.getItems(),(function(t){return e.hasState(t,tx)}));i||e.hasState(n,tx)?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();(0,S.S6)(t,(function(t){t.clearItemsState(ex),t.clearItemsState(tx)}))},e}(Ny),ix=nx,rx="unchecked",ox=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.toggle=function(){var t,e,n,i,r,o,a,s,l=this.getTriggerListInfo();if(null===l||void 0===l?void 0:l.item){var u=l.list,c=l.item,h=u.getItems(),p=h.filter((function(t){return!u.hasState(t,rx)})),f=h.filter((function(t){return u.hasState(t,rx)})),d=p[0];if(h.length===p.length)try{for(var g=(0,C.XA)(h),v=g.next();!v.done;v=g.next()){var m=v.value;u.setItemState(m,rx,m.id!==c.id)}}catch(M){t={error:M}}finally{try{v&&!v.done&&(e=g.return)&&e.call(g)}finally{if(t)throw t.error}}else if(h.length-f.length===1)if(d.id===c.id)try{for(var y=(0,C.XA)(h),x=y.next();!x.done;x=y.next()){m=x.value;u.setItemState(m,rx,!1)}}catch(k){n={error:k}}finally{try{x&&!x.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}else try{for(var b=(0,C.XA)(h),w=b.next();!w.done;w=b.next()){m=w.value;u.setItemState(m,rx,m.id!==c.id)}}catch(E){r={error:E}}finally{try{w&&!w.done&&(o=b.return)&&o.call(b)}finally{if(r)throw r.error}}else try{for(var A=(0,C.XA)(h),S=A.next();!S.done;S=A.next()){m=S.value;u.setItemState(m,rx,m.id!==c.id)}}catch(F){a={error:F}}finally{try{S&&!S.done&&(s=A.return)&&s.call(A)}finally{if(a)throw a.error}}}},e}(Ny),ax=ox,sx="showRadio",lx="legend-radio-tip",ux=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return(0,C.ZT)(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,sx,!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,sx,!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context,e=t.event,n=this.timeStamp,i=+new Date,r=this.context.event.target;if(i-n>16&&"legend-item-radio"===r.get("name")){var o=this.location,a={x:e.x,y:e.y};this.timeStamp=i,this.location=a,o&&(0,S.Xy)(o,a)||this.showTooltip(a)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,i=n.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var r=e.view.getCanvas().get("el").getBoundingClientRect(),o=r.x,a=r.y;this.tooltip.update((0,C.pi)((0,C.pi)({title:i.get("tip")},t),{x:t.x+o,y:t.y+a})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=(t={},t[ia]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[ra]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(lx)&&document.body.removeChild(document.getElementById(lx));var n=new Za({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:lx});n.init(),n.setCapture(!1),this.tooltip=n},e}(Ny),cx=ux,hx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return(0,C.ZT)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,i=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,C.pi)({fill:"#C5D4EB",opacity:.3},e)});return n},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null===t||void 0===t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,i=t.y-e.y,r=this.points;(0,S.S6)(r,(function(t){t.x+=n,t.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=(0,S.b$)({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(Ys),px=hx,fx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return(0,C.ZT)(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=(0,S.Z$)(this.points),n=0,i=0,r=0;if(t.length){var o=t[0];n=kl(o,e)/2,i=(e.x+o.x)/2,r=(e.y+o.y)/2}return{x:i,y:r,r:n}},e}(px),dx=fx,gx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return(0,C.ZT)(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:(0,S.YM)(t),end:(0,S.Z$)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),o=Math.abs(n.x-e.x),a=Math.abs(n.y-e.y);return{x:i,y:r,width:o,height:a}},e}(px),vx=gx;function mx(t){t.x=(0,S.uZ)(t.x,0,1),t.y=(0,S.uZ)(t.y,0,1)}var yx,xx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return(0,C.ZT)(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,i=this.dim,r=this.context.view.getCoordinate(),o=r.invert((0,S.YM)(n)),a=r.invert((0,S.Z$)(n));return this.inPlot&&(mx(o),mx(a)),"x"===i?(t=r.convert({x:o.x,y:0}),e=r.convert({x:a.x,y:1})):(t=r.convert({x:0,y:o.y}),e=r.convert({x:1,y:a.y})),{start:t,end:e}},e}(vx),bx=xx,wx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&((0,S.S6)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(px),Ax=wx,Cx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getMaskPath=function(){var t=this.points;return El(t,!0)},e}(Ax),Sx=Cx,Mx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.setCursor=function(t){var e=this.context.view;e.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(Ys),kx=Mx,Ex=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.filterView=function(t,e,n){var i=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&(0,S.S6)(t.views,(function(t){i.filterView(t,e,n)}))},e.prototype.filter=function(){var t=cl(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(pl(t)){if(i){var r=n.getItemsByState("unchecked"),o=Pl(e,i),a=r.map((function(t){return t.name}));a.length?this.filterView(e,i,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(fl(t)){var s=n.getValue(),l=(0,C.CR)(s,2),u=l[0],c=l[1];this.filterView(e,i,(function(t){return t>=u&&t<=c})),e.render(!0)}}},e}(Ys),Fx=Ex;function Tx(t,e,n,i){var r=Math.min(n[e],i[e]),o=Math.max(n[e],i[e]),a=(0,C.CR)(t.range,2),s=a[0],l=a[1];if(r<s&&(r=s),o>l&&(o=l),r===l&&o===l)return null;var u=t.invert(r),c=t.invert(o);if(t.isCategory){var h=t.values.indexOf(u),p=t.values.indexOf(c),f=t.values.slice(h,p+1);return function(t){return f.includes(t)}}return function(t){return t>=u&&t<=c}}(function(t){t["FILTER"]="brush-filter-processing",t["RESET"]="brush-filter-reset",t["BEFORE_FILTER"]="brush-filter:beforefilter",t["AFTER_FILTER"]="brush-filter:afterfilter",t["BEFORE_RESET"]="brush-filter:beforereset",t["AFTER_RESET"]="brush-filter:afterreset"})(yx||(yx={}));var Ix=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return(0,C.ZT)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(dl(this.context)){var n=this.context.event.target,i=n.getCanvasBBox();t={x:i.x,y:i.y},e={x:i.maxX,y:i.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var r=this.context,o=r.view,a=r.event,s={view:o,event:a,dims:this.dims};o.emit(yx.BEFORE_FILTER,Bu.fromData(o,yx.BEFORE_FILTER,s));var l=o.getCoordinate(),u=l.invert(e),c=l.invert(t);if(this.hasDim("x")){var h=o.getXScale(),p=Tx(h,"x",u,c);this.filterView(o,h.field,p)}if(this.hasDim("y")){var f=o.getYScales()[0];p=Tx(f,"y",u,c);this.filterView(o,f.field,p)}this.reRender(o,{source:yx.FILTER}),o.emit(yx.AFTER_FILTER,Bu.fromData(o,yx.AFTER_FILTER,s))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(yx.BEFORE_RESET,Bu.fromData(t,yx.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:yx.RESET}),t.emit(yx.AFTER_RESET,Bu.fromData(t,yx.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(Ys),Bx=Ix,Dx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.filterView=function(t,e,n){var i=Tl(t);(0,S.S6)(i,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Tl(t);(0,S.S6)(e,(function(t){t.render(!0)}))},e}(Bx),Px=Dx,Lx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.filter=function(){var t=cl(this.context),e=this.context.view,n=ml(e);if(dl(this.context)){var i=gl(this.context,10);i&&(0,S.S6)(n,(function(t){i.includes(t)?t.show():t.hide()}))}else if(t){var r=t.component,o=r.get("field");if(pl(t)){if(o){var a=r.getItemsByState("unchecked"),s=Pl(e,o),l=a.map((function(t){return t.name}));(0,S.S6)(n,(function(t){var e=bl(t,o),n=s.getText(e);l.indexOf(n)>=0?t.hide():t.show()}))}}else if(fl(t)){var u=r.getValue(),c=(0,C.CR)(u,2),h=c[0],p=c[1];(0,S.S6)(n,(function(t){var e=bl(t,o);e>=h&&e<=p?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=ml(this.context.view);(0,S.S6)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(Ys),Ox=Lx,Rx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return(0,C.ZT)(e,t),e.prototype.filter=function(){dl(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=gl(this.context,10);if(e){var n=t.getXScale().field,i=t.getYScales()[0].field,r=e.map((function(t){return t.getModel().data})),o=Tl(t);(0,S.S6)(o,(function(t){var e=ml(t);(0,S.S6)(e,(function(t){var e=t.getModel().data;Dl(r,e,n,i)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=Tl(e);(0,S.S6)(n,(function(e){var n=vl(t.context,e,10),i=ml(e);n&&(0,S.S6)(i,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Tl(this.context.view);(0,S.S6)(t,(function(t){var e=ml(t);(0,S.S6)(e,(function(t){t.show()}))}))},e}(Ys),zx=Rx,_x=10,Ux=5,Nx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return(0,C.ZT)(e,t),e.prototype.getButtonCfg=function(){return(0,S.b$)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:(0,C.pi)({text:t.text},t.textStyle)}),i=n.getBBox(),r=Cu(t.padding),o=e.addShape({type:"rect",name:"button-rect",attrs:(0,C.pi)({x:i.x-r[3],y:i.y-r[0],width:i.width+r[1]+r[3],height:i.height+r[0]+r[2]},t.style)});o.toBack(),e.on("mouseenter",(function(){o.attr(t.activeStyle)})),e.on("mouseleave",(function(){o.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),i=this.buttonGroup,r=i.getBBox(),o=mi.vs(null,[["t",n.x-r.width-_x,n.y+r.height+Ux]]);i.setMatrix(o)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(Ys),Vx=Nx,Yx=4,Hx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return(0,C.ZT)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):kl(t,this.startPoint)>Yx&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(Ys),Xx=Hx,Gx=5,Wx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return(0,C.ZT)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint(),n=kl(t,e);if(n>Gx&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,r=mi.vs(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);i.backgroundGroup.setMatrix(r),i.foregroundGroup.setMatrix(r),i.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(Ys),jx=Wx,Qx="x",Zx="y",qx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=[Qx,Zx],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return(0,C.ZT)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim(Qx),this.resetDim(Zx);var t=this.context.view;t.render(!0)},e}(Ys),Jx=qx,Kx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return(0,C.ZT)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;(0,S.S6)(e,(function(e){var n=t.getScale(e),i=n.min,r=n.max,o=n.values;t.startCache[e]={min:i,max:r,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),i=this.context.getCurrentPoint(),r=n.invert(e),o=n.invert(i),a=o.x-r.x,s=o.y-r.y,l=this.context.view,u=this.dims;(0,S.S6)(u,(function(e){t.translateDim(e,{x:-1*a,y:-1*s})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var i=this.context.view,r=this.startCache[t],o=r.min,a=r.max,s=a-o,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),i.scale(e.field,{nice:!1,min:o+l,max:a+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Jx),$x=Kx,tb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return(0,C.ZT)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;(0,S.S6)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var i=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var r=this.cacheScaleDefs[t],o=r.max-r.min,a=e.min,s=e.max,l=n*o,u=a-l,c=s+l,h=c-u,p=h/o;c>u&&p<100&&p>.01&&i.scale(e.field,{nice:!1,min:a-l,max:s+l})},e}(Jx),eb=tb;function nb(t){var e=t.gEvent.originalEvent;return e.deltaY>0}var ib,rb=1,ob=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,i=e.event;if(n.getOptions().scrollbar){var r=(null===t||void 0===t?void 0:t.wheelDelta)||rb,o=n.getController("scrollbar"),a=n.getXScale(),s=n.getOptions().data,l=(0,S.dp)((0,S.I)(s,a.field)),u=(0,S.dp)(a.values),c=o.getValue(),h=Math.floor((l-u)*c),p=h+(nb(i)?r:-r),f=r/(l-u)/1e4,d=(0,S.uZ)(p/(l-u)+f,0,1);o.setValue(d)}},e}(Ys),ab=ob,sb="aixs-description-tooltip",lb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.show=function(){var t=this.context,e=cl(t).axis,n=e.cfg.title,i=n.description,r=n.text,o=n.descriptionTooltipStyle,a=t.event,s=a.x,l=a.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n <div class="'.concat(ia,'" style={').concat(o,'}>\n <div class="').concat(ra,'">\n 字段说明:').concat(i,"\n </div>\n </div>\n ")},x:s,y:l}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,i={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},r=new Za({parent:n.get("el").parentNode,region:i,visible:!1,containerId:sb,domStyles:(0,C.pi)({},(0,S.b$)({},(t={},t[ia]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[ra]={"word-break":"break-all","margin-bottom":"3px"},t)))});r.init(),r.setCapture(!1),this.tooltip=r},e}(Ys),ub=lb;function cb(t){return t.isInPlot()}function hb(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}function pb(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}function fb(t,e){var n={};return null!==t&&"object"===typeof t&&e.forEach((function(e){var i=t[e];void 0!==i&&(n[e]=i)})),n}function db(t,e){return e?(0,S.u4)(e,(function(t,e,n){return t.replace(new RegExp("{\\s*"+n+"\\s*}","g"),e)}),t):t}au("dark",Zl(gh)),V("canvas",p),V("svg",d),_u("Polygon",qd),_u("Interval",Nd),_u("Schema",Kd),_u("Path",yd),_u("Point",jd),_u("Line",Yd),_u("Area",Cd),_u("Edge",Md),_u("Heatmap",Ed),_u("Violin",eg),lc("base",zc),lc("interval",Sg),lc("pie",Tg),lc("polar",Eg),cc("overlap",Zg),cc("distribute",Dg),cc("fixed-overlap",Qg),cc("hide-overlap",pv),cc("limit-in-shape",Hg),cc("limit-in-canvas",Yg),cc("limit-in-plot",Rv),cc("pie-outer",Rg),cc("adjust-color",vv),cc("interval-adjust-position",bv),cc("interval-hide-overlap",Av),cc("point-adjust-position",Ev),cc("pie-spider",Vg),cc("path-adjust-position",Dv),Qu("fade-in",zv),Qu("fade-out",_v),Qu("grow-in-x",Vv),Qu("grow-in-xy",Hv),Qu("grow-in-y",Yv),Qu("scale-in-x",Wv),Qu("scale-in-y",jv),Qu("wave-in",Kv),Qu("zoom-in",tm),Qu("zoom-out",em),Qu("position-update",Gv),Qu("sector-path-update",Jv),Qu("path-in",Xv),Ns("rect",fm),Ns("mirror",hm),Ns("list",sm),Ns("matrix",um),Ns("circle",om),Ns("tree",gm),Mu("axis",Tm),Mu("legend",Lm),Mu("tooltip",Gu),Mu("annotation",wm),Mu("slider",Rm),Mu("scrollbar",Ym),Qs("tooltip",Qm),Qs("sibling-tooltip",qm),Qs("ellipsis-text",Km),Qs("element-active",oy),Qs("element-single-active",gy),Qs("element-range-active",hy),Qs("element-highlight",Sy),Qs("element-highlight-by-x",Fy),Qs("element-highlight-by-color",ky),Qs("element-single-highlight",Dy),Qs("element-range-highlight",Iy),Qs("element-sibling-highlight",Iy,{effectSiblings:!0,effectByRecord:!0}),Qs("element-selected",Ry),Qs("element-single-selected",_y),Qs("element-range-selected",Ly),Qs("element-link-by-color",sy),Qs("active-region",Wm),Qs("list-active",Yy),Qs("list-selected",Jy),Qs("list-highlight",Zy),Qs("list-unchecked",$y),Qs("list-checked",ix),Qs("list-focus",ax),Qs("list-radio",cx),Qs("legend-item-highlight",Zy,{componentNames:["legend"]}),Qs("axis-label-highlight",Zy,{componentNames:["axis"]}),Qs("axis-description",ub),Qs("rect-mask",vx),Qs("x-rect-mask",bx,{dim:"x"}),Qs("y-rect-mask",bx,{dim:"y"}),Qs("circle-mask",dx),Qs("path-mask",Ax),Qs("smooth-path-mask",Sx),Qs("cursor",kx),Qs("data-filter",Fx),Qs("brush",Bx),Qs("brush-x",Bx,{dims:["x"]}),Qs("brush-y",Bx,{dims:["y"]}),Qs("sibling-filter",Px),Qs("sibling-x-filter",Px),Qs("sibling-y-filter",Px),Qs("element-filter",Ox),Qs("element-sibling-filter",zx),Qs("element-sibling-filter-record",zx,{byRecord:!0}),Qs("view-drag",Xx),Qs("view-move",jx),Qs("scale-translate",$x),Qs("scale-zoom",eb),Qs("reset-button",Vx,{name:"reset-button",text:"reset"}),Qs("mousewheel-scroll",ab),Gl("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Gl("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Gl("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Gl("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Gl("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Gl("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Gl("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Gl("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Gl("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Gl("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Gl("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Gl("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Gl("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:cb,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:cb,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:cb,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Gl("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Gl("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:cb,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:cb,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:cb,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Gl("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:cb,action:"path-mask:start"},{trigger:"mousedown",isEnable:cb,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Gl("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Gl("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Gl("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Gl("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Gl("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),Gl("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Gl("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Gl("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return hb(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!hb(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Gl("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Gl("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]}),function(t){t["ERROR"]="error",t["WARN"]="warn",t["INFO"]="log"}(ib||(ib={}));var gb="AntV/G2Plot";function vb(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=0;return gb+": "+t.replace(/%s/g,(function(){return""+e[i++]}))}function mb(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];e||console[t](vb.apply(void 0,(0,C.pr)([n],i)))}function yb(t){if(!t)return{width:0,height:0};var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function xb(t,e){return t.geometries.find((function(t){return t.type===e}))}function bb(t){return(0,S.u4)(t.geometries,(function(t,e){return t.concat(e.elements)}),[])}function wb(t){return(0,S.U2)(t,["views","length"],0)<=0?bb(t):(0,S.u4)(t.views,(function(t,e){return t.concat(wb(e))}),bb(t))}function Ab(t){return(0,S.U2)(t,["views","length"],0)<=0?t.geometries:(0,S.u4)(t.views,(function(t,e){return t.concat(e.geometries)}),t.geometries)}function Cb(t,e){return t.views.find((function(t){return t.id===e}))}function Sb(t){var e=t.parent;return e?e.views:[]}function Mb(t){return Sb(t).filter((function(e){return e!==t}))}function kb(t){if(!(0,S.P9)(t,"Object"))return t;var e=(0,C.pi)({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}function Eb(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i<r;i+=1){var o=t[i];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}var Fb=function(t,e,n,i){var r,o,a,s,l=[],u=!!i;if(u){a=[1/0,1/0],s=[-1/0,-1/0];for(var c=0,h=t.length;c<h;c++){var p=t[c];a=Ai.VV([0,0],a,p),s=Ai.Fp([0,0],s,p)}a=Ai.VV([0,0],a,i[0]),s=Ai.Fp([0,0],s,i[1])}c=0;for(var f=t.length;c<f;c++){p=t[c];if(n)r=t[c?c-1:f-1],o=t[(c+1)%f];else{if(0===c||c===f-1){l.push(p);continue}r=t[c-1],o=t[c+1]}var d=[0,0];d=Ai.lu(d,o,r),d=Ai.bA(d,d,e);var g=Ai.TE(p,r),v=Ai.TE(p,o),m=g+v;0!==m&&(g/=m,v/=m);var y=Ai.bA([0,0],d,-g),x=Ai.bA([0,0],d,v),b=Ai.IH([0,0],p,y),w=Ai.IH([0,0],p,x);u&&(b=Ai.Fp([0,0],b,a),b=Ai.VV([0,0],b,s),w=Ai.Fp([0,0],w,a),w=Ai.VV([0,0],w,s)),l.push(b),l.push(w)}return n&&l.push(l.shift()),l};function Tb(t,e,n){for(var i=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,l,u,c=Fb(r,.4,i,n),h=r.length,p=[];for(o=0;o<h-1;o++)s=c[2*o],l=c[2*o+1],u=r[o+1],p.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]]);return i&&(s=c[h],l=c[h+1],u=r[0],p.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]])),p}function Ib(t,e,n){var i=[],r=t[0],o=null;if(t.length<=2)return Eb(t,e);for(var a=0,s=t.length;a<s;a++){var l=t[a];o&&o.x===l.x&&o.y===l.y||(i.push(l.x),i.push(l.y),o=l)}var u=n||[[0,0],[1,1]],c=Tb(i,e,u);return c.unshift(["M",r.x,r.y]),c}var Bb=5,Db={}.toString,Pb=function(t,e){return Db.call(t)==="[object "+e+"]"},Lb=function(t){return Pb(t,"Array")},Ob=function(t){return"object"===typeof t&&null!==t},Rb=function(t){if(!Ob(t)||!Pb(t,"Object"))return!1;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},zb=function(t,e,n,i){for(var r in n=n||0,i=i||Bb,e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=e[r];o?Rb(o)?(Rb(t[r])||(t[r]={}),n<i?zb(t[r],o,n+1,i):t[r]=e[r]):Lb(o)?(t[r]=[],t[r]=t[r].concat(o)):t[r]=o:t[r]=o}},_b=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)zb(t,e[i]);return t};function Ub(t){if(!t)return t;var e=t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g);return e.map((function(t){return t.toLowerCase()})).join("-")}function Nb(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];(0,S.U2)(t,"fill")&&(e["color"]=t["fill"]);var i=fb(t,n),r=i.shadowColor,o=i.shadowBlur,a=void 0===o?0:o,s=i.shadowOffsetX,l=void 0===s?0:s,u=i.shadowOffsetY,c=void 0===u?0:u;e["text-shadow"]=""+[r,l+"px",c+"px",a+"px"].join(" ");var h=fb(t,n),p=h.stroke,f=h.lineWidth,d=void 0===f?0:f;return e["-webkit-text-stroke"]=""+[d+"px",p].join(" "),(0,S.S6)(t,(function(t,i){["fontSize"].includes(i)&&(0,S.hj)(t)?e[Ub(i)]=t+"px":i&&!n.includes(i)&&(e[Ub(i)]=""+t)})),e}function Vb(t,e){t.style["pointer-events"]="none",(0,S.S6)(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var Yb,Hb=function(t,e,n){var i=e.statistic,r=e.plotType,o=i.title,a=i.content;[o,a].forEach((function(e,i){if(e){var s="";s=0===i?a?"translate(-50%, -100%)":"translate(-50%, -50%)":o?"translate(-50%, 0)":"translate(-50%, -50%)";var l=(0,S.mf)(e.style)?e.style(n):e.style;t.annotation().html((0,C.pi)({position:["50%","50%"],html:function(t,i){var o=i.getCoordinate(),a=0;if("pie"===r||"ring-progress"===r)a=o.getRadius()*o.innerRadius*2;else if("liquid"===r){var u=(0,S.U2)(i.geometries,[0,"elements",0,"shape"]);if(u){var c=u.find((function(t){return"wrap"===t.get("name")})),h=c.getCanvasBBox().width;a=h}}else a||(a=o.getWidth());Vb(t,(0,C.pi)({width:a+"px",transform:s},Nb(l)));var p=i.getData();if(e.customHtml)return e.customHtml(t,i,n,p);var f=e.content;return e.formatter&&(f=e.formatter(n,p)),f?(0,S.HD)(f)?f:""+f:"<div></div>"},key:(0===i?"top":"bottom")+"-statistic"},fb(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},Xb=function(t,e,n){var i=e.statistic,r=i.title,o=i.content;[r,o].forEach((function(e){if(e){var i=(0,S.mf)(e.style)?e.style(n):e.style;t.annotation().html((0,C.pi)({position:["50%","100%"],html:function(t,r){var o=r.getCoordinate(),a=r.views[0].getCoordinate(),s=a.getCenter(),l=a.getRadius(),u=Math.max(Math.sin(a.startAngle),Math.sin(a.endAngle))*l,c=s.y+u-o.y.start-parseFloat((0,S.U2)(i,"fontSize",0)),h=o.getRadius()*o.innerRadius*2;Vb(t,(0,C.pi)({width:h+"px",transform:"translate(-50%, "+c+"px)"},Nb(i)));var p=r.getData();if(e.customHtml)return e.customHtml(t,r,n,p);var f=e.content;return e.formatter&&(f=e.formatter(n,p)),f?(0,S.HD)(f)?f:""+f:"<div></div>"}},fb(e,["offsetX","offsetY","rotate","style","formatter"])))}}))};function Gb(){return Yb||(Yb=document.createElement("canvas").getContext("2d")),Yb}(0,S.HP)((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=void 0===i?"sans-serif":i,o=e.fontWeight,a=e.fontStyle,s=e.fontVariant,l=Gb();l.font=[a,o,s,n+"px",r].join(" ");var u=l.measureText((0,S.HD)(t)?t:"");return u.width}),(function(t,e){return void 0===e&&(e={}),(0,C.pr)([t],(0,S.VO)(e)).join("")}));function Wb(t){return"number"===typeof t&&!isNaN(t)}function jb(t,e,n){var i=Math.min(e,n),r=Math.max(e,n);return t>=i&&t<=r}function Qb(t,e){if(!t)return{};var n=t.filter((function(t){var n=(0,S.U2)(t,[e]);return(0,S.hj)(n)&&!isNaN(n)})),i=n.every((function(t){return(0,S.U2)(t,[e])>=0})),r=n.every((function(t){return(0,S.U2)(t,[e])<=0}));return i?{min:0}:r?{max:0}:{}}function Zb(t,e,n,i,r){if(void 0===r&&(r=[]),!Array.isArray(t))return{nodes:[],links:[]};var o=[],a={},s=-1;return t.forEach((function(t){var l=t[e],u=t[n],c=t[i],h=fb(t,r);a[l]||(a[l]=(0,C.pi)({id:++s,name:l},h)),a[u]||(a[u]=(0,C.pi)({id:++s,name:u},h)),o.push((0,C.pi)({source:a[l].id,target:a[u].id,value:c},h))})),{nodes:Object.values(a).sort((function(t,e){return t.id-e.id})),links:o}}function qb(t,e){var n=(0,S.hX)(t,(function(t){var n=t[e];return null===n||"number"===typeof n&&!isNaN(n)}));return mb(ib.WARN,n.length===t.length,"illegal data existed in chart data."),n}function Jb(t){if((0,S.hj)(t))return[t,t,t,t];if((0,S.kJ)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function Kb(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var i=Jb(t),r=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[i[0]+r[0],i[1]+r[1],i[2]+r[2],i[3]+r[3]]}function $b(t){var e=t.map((function(t){return Jb(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(i,r){t+=e[r][n]})),t}))),n}var tw={locale:"en-US"};var ew={};function nw(t,e){ew[t]=e}function iw(t){return{get:function(e,n){return db((0,S.U2)(ew[t],e)||(0,S.U2)(ew[tw.locale],e)||(0,S.U2)(ew["en-US"],e)||e,n)}}}var rw={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}},ow={locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}},aw=n(8587),sw="data-chart-source-type",lw=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],uw=function(t){function e(e,n){var i=t.call(this)||this;return i.container="string"===typeof e?document.getElementById(e):e,i.options=_b({},i.getDefaultOptions(),n),i.createG2(),i.bindEvents(),i}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,i=t.defaultInteractions;this.chart=new Vu((0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),fb(this.options,lw)),{defaultInteractions:i})),this.container.setAttribute(sw,"G2Plot")},e.prototype.getChartSize=function(t,e){var n=yb(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null===e||void 0===e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=_b({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var i=wb(this.chart);(0,S.S6)(i,(function(i){e(i.getData())&&i.setState(t,n)}))},e.prototype.getStates=function(){var t=wb(this.chart),e=[];return(0,S.S6)(t,(function(t){var n=t.getData(),i=t.getStates();(0,S.S6)(i,(function(i){e.push({data:n,state:i,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=(0,C.pr)(t),i=e.getController("annotation"),r=i.getComponents().map((function(t){return t.extra}));i.clear(!0);for(var o=function(t){var e=r[t],o=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==o&&(e=_b({},e,n[o]),n.splice(o,1)),i.annotation(e)},a=0;a<r.length;a++)o(a);n.forEach((function(t){return i.annotation(t)})),e.render(!0)},e.prototype.removeAnnotations=function(t){var e=this.chart.getController("annotation"),n=e.getComponents().map((function(t){return t.extra}));e.clear(!0);for(var i=function(i){var r=n[i];t.find((function(t){return t.id&&t.id===r.id}))||e.annotation(r)},r=0;r<n.length;r++)i(r);this.chart.render(!0)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(sw)},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,i=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=i,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit,n=void 0===e||e;n&&(this.unbind=(0,aw.ak)(this.container,(function(){var e=yb(t.container),n=e.width,i=e.height;n===t.chart.width&&i===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(Z.Z),cw=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"];function hw(){return"object"===typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function pw(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),i=hw();n.width=t*i,n.height=e*i,n.style.width=t+"px",n.style.height=e+"px";var r=n.getContext("2d");return r.scale(i,i),n}function fw(t,e,n,i){void 0===i&&(i=n);var r=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=r,t.beginPath(),t.fillRect(0,0,n,i),t.closePath()}function dw(t,e,n){var i=t+e;return n?2*i:i}function gw(t,e){var n=e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]];return n}function vw(t,e){var n=e*Math.PI/180,i={a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0};return i}var mw={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function yw(t,e,n,i){var r=e.size,o=e.fill,a=e.lineWidth,s=e.stroke,l=e.fillOpacity;t.beginPath(),t.globalAlpha=l,t.fillStyle=o,t.strokeStyle=s,t.lineWidth=a,t.arc(n,i,r/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}function xw(t){var e=_b({},mw,t),n=e.size,i=e.padding,r=e.isStagger,o=e.rotation,a=dw(n,i,r),s=gw(a,r),l=pw(a,a),u=l.getContext("2d");fw(u,e,a);for(var c=0,h=s;c<h.length;c++){var p=h[c],f=p[0],d=p[1];yw(u,e,f,d)}var g=u.createPattern(l,"repeat");if(g){var v=hw(),m=vw(v,o);g.setTransform(m)}return g}var bw={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function ww(t,e,n){var i=e.stroke,r=e.lineWidth,o=e.strokeOpacity,a=new Path2D(n);t.globalAlpha=o,t.lineCap="square",t.strokeStyle=r?i:"transparent",t.lineWidth=r,t.stroke(a)}function Aw(t){var e=_b({},bw,t),n=e.spacing,i=e.rotation,r=e.lineWidth,o=n+r||1,a=n+r||1,s="\n M 0 0 L "+o+" 0\n M 0 "+a+" L "+o+" "+a+"\n ",l=pw(o,a),u=l.getContext("2d");fw(u,e,o,a),ww(u,e,s);var c=u.createPattern(l,"repeat");if(c){var h=hw(),p=vw(h,i);c.setTransform(p)}return c}var Cw={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function Sw(t,e,n,i){var r=e.stroke,o=e.size,a=e.fill,s=e.lineWidth,l=e.fillOpacity;t.globalAlpha=l,t.strokeStyle=r,t.lineWidth=s,t.fillStyle=a,t.strokeRect(n-o/2,i-o/2,o,o),t.fillRect(n-o/2,i-o/2,o,o)}function Mw(t){var e=_b({},Cw,t),n=e.size,i=e.padding,r=e.isStagger,o=e.rotation,a=dw(n,i,r),s=gw(a,r),l=pw(a,a),u=l.getContext("2d");fw(u,e,a);for(var c=0,h=s;c<h.length;c++){var p=h[c],f=p[0],d=p[1];Sw(u,e,f,d)}var g=u.createPattern(l,"repeat");if(g){var v=hw(),m=vw(v,o);g.setTransform(m)}return g}function kw(t){var e,n=t.type,i=t.cfg;switch(n){case"dot":e=xw(i);break;case"line":e=Aw(i);break;case"square":e=Mw(i);break;default:break}return e}function Ew(t){var e=this;return function(n){var i,r=n.options,o=n.chart,a=r.pattern;if(!a)return n;var s=function(n){for(var i,s,l,u=[],c=1;c<arguments.length;c++)u[c-1]=arguments[c];var h=o.getTheme().defaultColor,p=h,f=null===(s=null===(i=o.geometries)||void 0===i?void 0:i[0])||void 0===s?void 0:s.getAttribute("color");if(f){var d=f.getFields()[0],g=(0,S.U2)(n,d);p=lh.getMappingValue(f,g,(null===(l=f.values)||void 0===l?void 0:l[0])||h)}var v=a;"function"===typeof a&&(v=a.call(e,n,p)),v instanceof CanvasPattern===!1&&(v=kw(_b({},{cfg:{backgroundColor:p}},v)));var m=r[t];return(0,C.pi)((0,C.pi)({},"function"===typeof m?m.call.apply(m,(0,C.pr)([e,n],u)):m||{}),{fill:v||p})};return _b({},n,{options:(i={},i[t]=s,i)})}}function Fw(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,o=n.seriesField;return!1===i?e.legend(!1):(r||o)&&e.legend(r||o,i),t}function Tw(t){var e=t.chart,n=t.options,i=n.tooltip;return void 0!==i&&e.tooltip(i),t}function Iw(t){var e=t.chart,n=t.options,i=n.interactions;return(0,S.S6)(i,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t}function Bw(t){var e=t.chart,n=t.options,i=n.animation;return"boolean"===typeof i?e.animate(i):e.animate(!0),(0,S.S6)(e.geometries,(function(t){t.animate(i)})),t}function Dw(t){var e=t.chart,n=t.options,i=n.theme;return i&&e.theme(i),t}function Pw(t){var e=t.chart,n=t.options,i=n.state;return i&&(0,S.S6)(e.geometries,(function(t){t.state(i)})),t}function Lw(t){var e=t.chart,n=t.options,i=n.slider;return e.option("slider",i),t}function Ow(t){var e=t.chart,n=t.options,i=n.scrollbar;return e.option("scrollbar",i),t}function Rw(t,e){return function(n){var i=n.chart,r=n.options,o={};return(0,S.S6)(t,(function(t,e){o[e]=fb(t,cw)})),o=_b({},e,r.meta,o),i.scale(o),n}}function zw(t){return function(e){var n=e.chart,i=e.options,r=n.getController("annotation");return(0,S.S6)((0,C.pr)(i.annotations||[],t||[]),(function(t){r.annotation(t)})),e}}function _w(t){var e=t.chart,n=t.options,i=n.yAxis,r=n.limitInPlot,o=r;return(0,S.Kn)(i)&&(0,S.UM)(r)&&(o=!!Object.values(fb(i,["min","max","minLimit","maxLimit"])).some((function(t){return!(0,S.UM)(t)}))),e.limitInPlot=o,t}function Uw(t){return void 0===t&&(t="rect"),function(e){var n=e.chart,i=e.options,r=i.coordinate,o=Array.from(r||[]).map((function(t){return"reflectX"===t.type?["reflect","x"]:"reflectY"===t.type?["reflect","y"]:"transpose"===t.type?["transpose"]:null})).filter((function(t){return!!t}));return 0!==o.length&&n.coordinate({type:t,actions:o}),e}}function Nw(t,e){if(!1===t)return{fields:!1};var n=(0,S.U2)(t,"fields"),i=(0,S.U2)(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}}function Vw(t,e){var n=t.type,i=t.xField,r=t.yField,o=t.colorField,a=t.shapeField,s=t.sizeField,l=t.styleField,u=t.rawFields,c=void 0===u?[]:u,h=[];if("color"===e)h=(0,C.pr)([o||i],c);else if("shape"===e)h=(0,C.pr)([a||i],c);else if("size"===e)h=(0,C.pr)([s||i],c);else{h=(0,C.pr)([i,r,o,a,s,l],c);var p=["x","y","color","shape","size","style"].indexOf(e),f=h[p];h.splice(p,1),h.unshift(f)}var d=(0,S.jj)(h.filter((function(t){return!!t}))),g="line"===n&&[i,r].includes(d.join("*"))?"":d.join("*");return{mappingFields:d,tileMappingField:g}}function Yw(t,e){if(e)return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r={};return t.forEach((function(t,e){r[t]=n[e]})),delete r["undefined"],e(r)}}function Hw(t){var e=t.chart,n=t.options,i=n.type,r=n.args,o=n.mapping,a=n.xField,s=n.yField,l=n.colorField,u=n.shapeField,c=n.sizeField,h=n.tooltipFields,p=n.label,f=n.state,d=n.customInfo;if(!o)return t;var g=o.color,v=o.shape,m=o.size,y=o.style,x=o.tooltip,b=e[i](r).position(a+"*"+s);if((0,S.HD)(g))l?b.color(l,g):b.color(g);else if((0,S.mf)(g)){var w=Vw(n,"color"),A=w.mappingFields,M=w.tileMappingField;b.color(M,Yw(A,g))}else l&&b.color(l,g);if((0,S.HD)(v))u?b.shape(u,[v]):b.shape(v);else if((0,S.mf)(v)){var k=Vw(n,"shape");A=k.mappingFields,M=k.tileMappingField;b.shape(M,Yw(A,v))}else u&&b.shape(u,v);if((0,S.hj)(m))c?b.size(c,m):b.size(m);else if((0,S.mf)(m)){var E=Vw(n,"size");A=E.mappingFields,M=E.tileMappingField;b.size(M,Yw(A,m))}else c&&b.size(c,m);if((0,S.mf)(y)){var F=Vw(n,"style");A=F.mappingFields,M=F.tileMappingField;b.style(M,Yw(A,y))}else(0,S.Kn)(y)&&b.style(y);if(!1===h?b.tooltip(!1):(0,S.xb)(h)||b.tooltip(h.join("*"),Yw(h,x)),!1===p)b.label(!1);else if(p){var T=p.callback,I=p.fields,B=(0,C._T)(p,["callback","fields"]);b.label({fields:I||[s],callback:T,cfg:kb(B)})}return f&&b.state(f),d&&b.customInfo(d),[a,s].filter((function(t){return t!==l})).forEach((function(t){e.legend(t,!1)})),(0,C.pi)((0,C.pi)({},t),{ext:{geometry:b}})}function Xw(t){var e=t.options,n=e.area,i=e.xField,r=e.yField,o=e.seriesField,a=e.smooth,s=e.tooltip,l=e.useDeferredLabel,u=Nw(s,[i,r,o]),c=u.fields,h=u.formatter;return n?Hw(_b({},t,{options:{type:"area",colorField:o,tooltipFields:c,mapping:(0,C.pi)({shape:a?"smooth":"area",tooltip:h},n),args:{useDeferredLabel:l}}})):t}function Gw(t){var e=t.options,n=e.line,i=e.stepType,r=e.xField,o=e.yField,a=e.seriesField,s=e.smooth,l=e.connectNulls,u=e.tooltip,c=e.useDeferredLabel,h=Nw(u,[r,o,a]),p=h.fields,f=h.formatter;return n?Hw(_b({},t,{options:{type:"line",colorField:a,tooltipFields:p,mapping:(0,S.b$)({shape:i||(s?"smooth":"line"),tooltip:f},n),args:{connectNulls:l,useDeferredLabel:c}}})):t}function Ww(t){var e=t.options,n=e.point,i=e.xField,r=e.yField,o=e.seriesField,a=e.sizeField,s=e.shapeField,l=e.tooltip,u=e.useDeferredLabel,c=Nw(l,[i,r,o,a,s]),h=c.fields,p=c.formatter;return n?Hw(_b({},t,{options:{type:"point",colorField:o,shapeField:s,tooltipFields:h,mapping:(0,C.pi)({tooltip:p},n),args:{useDeferredLabel:u}}})):t}function jw(t){var e=t.chart,n=t.options,i=t.ext,r=n.seriesField,o=n.isGroup,a=n.isStack,s=n.marginRatio,l=n.widthRatio,u=n.groupField,c=n.theme,h=[];if(r&&(o&&h.push({type:"dodge",dodgeBy:u||r,marginRatio:s}),a&&h.push({type:"stack",marginRatio:s})),h.length&&(null===i||void 0===i?void 0:i.geometry)){var p=null===i||void 0===i?void 0:i.geometry;p.adjust(h)}return(0,S.UM)(l)||e.theme(_b({},(0,S.Kn)(c)?c:ou(c),{columnWidthRatio:l})),t}function Qw(t){var e=t.options,n=e.xField,i=e.yField,r=e.interval,o=e.seriesField,a=e.tooltip,s=e.minColumnWidth,l=e.maxColumnWidth,u=e.columnBackground,c=e.dodgePadding,h=e.intervalPadding,p=e.useDeferredLabel,f=Nw(a,[n,i,o]),d=f.fields,g=f.formatter,v=(r?Hw(_b({},t,{options:{type:"interval",colorField:o,tooltipFields:d,mapping:(0,C.pi)({tooltip:g},r),args:{dodgePadding:c,intervalPadding:h,minColumnWidth:s,maxColumnWidth:l,background:u,useDeferredLabel:p}}})):t).ext;return jw((0,C.pi)((0,C.pi)({},t),{ext:v}))}function Zw(t){var e=t.options,n=e.polygon,i=e.xField,r=e.yField,o=e.seriesField,a=e.tooltip,s=e.useDeferredLabel,l=Nw(a,[i,r,o]),u=l.fields,c=l.formatter;return n?Hw(_b({},t,{options:{type:"polygon",colorField:o,tooltipFields:u,mapping:(0,C.pi)({tooltip:c},n),args:{useDeferredLabel:s}}})):t}function qw(t){var e=t.options,n=e.edge,i=e.xField,r=e.yField,o=e.seriesField,a=e.tooltip,s=e.useDeferredLabel,l=Nw(a,[i,r,o]),u=l.fields,c=l.formatter;return n?Hw(_b({},t,{options:{type:"edge",colorField:o,tooltipFields:u,mapping:(0,C.pi)({tooltip:c},n),args:{useDeferredLabel:s}}})):t}function Jw(t){var e=t.options,n=e.schema,i=e.xField,r=e.yField,o=e.seriesField,a=e.tooltip,s=e.useDeferredLabel,l=Nw(a,[i,r,o]),u=l.fields,c=l.formatter;return n?Hw(_b({},t,{options:{type:"schema",colorField:o,tooltipFields:u,mapping:(0,C.pi)({tooltip:c},n),args:{useDeferredLabel:s}}})):t}function Kw(t){var e=t.options,n=e.violin,i=e.xField,r=e.yField,o=e.seriesField,a=e.sizeField,s=e.tooltip,l=Nw(s,[i,r,o,a]),u=l.fields,c=l.formatter;return n?Hw(_b({},t,{options:{type:"violin",colorField:o,tooltipFields:u,mapping:(0,C.pi)({tooltip:c},n)}})):t}function $w(t){var e=t.chart,n=t.options,i=n.data,r=n.color,o=n.lineStyle,a=n.lineShape,s=n.point,l=n.area,u=n.seriesField,c=null===s||void 0===s?void 0:s.state,h=null===l||void 0===l?void 0:l.state;e.data(i);var p=_b({},t,{options:{shapeField:u,line:{color:r,style:o,shape:a},point:s&&(0,C.pi)({color:r,shape:"circle"},s),area:l&&(0,C.pi)({color:r},l),label:void 0}}),f=_b({},p,{options:{tooltip:!1,state:c}}),d=_b({},p,{options:{tooltip:!1,state:h}});return Gw(p),Ww(f),Xw(d),t}function tA(t){var e,n,i=t.options,r=i.xAxis,o=i.yAxis,a=i.xField,s=i.yField,l=i.data;return pb(Rw((e={},e[a]=r,e[s]=o,e),(n={},n[a]={type:"cat"},n[s]=Qb(l,s),n)))(t)}function eA(t){var e=t.chart,n=t.options,i=n.reflect;if(i){var r=i;(0,S.kJ)(r)||(r=[r]);var o=r.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:o})}return t}function nA(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(a,!1):e.axis(a,r),t}function iA(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField;return i&&r?e.legend(r,i):!1===i&&e.legend(!1),t}function rA(t){var e=t.chart,n=t.options,i=n.label,r=n.yField,o=xb(e,"line");if(i){var a=i.callback,s=(0,C._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:(0,C.pi)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},kb(s))})}else o.label(!1);return t}function oA(t){var e=t.chart,n=t.options,i=n.isStack;return i&&(0,S.S6)(e.geometries,(function(t){t.adjust("stack")})),t}function aA(t){return pb($w,tA,oA,Dw,eA,nA,iA,Tw,rA,Lw,Ow,Iw,Bw,zw(),_w)(t)}var sA=_b({},uw.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),lA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,i=t.geometries.filter((function(t){return"point"===t.type}));(0,S.S6)(i,(function(t){(0,S.S6)(t.elements,(function(t){var e=-1!==(0,S.cx)(n,(function(e){return e.data===t.data}));t.setState("active",e)}))}))}},e.prototype.reset=function(){var t=this.getView(),e=t.geometries.filter((function(t){return"point"===t.type}));(0,S.S6)(e,(function(t){(0,S.S6)(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(Ys);Qs("marker-active",lA),Gl("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var uA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return sA},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;tA({chart:n,options:i}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return aA},e}(uw);function cA(t,e,n,i){var r=(0,S.u4)(t,(function(t,i){var r=i[n],o=t.has(r)?t.get(r):0,a=i[e];return o=Wb(a)?o+a:o,t.set(r,o),t}),new Map);return(0,S.UI)(t,(function(t){var o,a=t[e],s=t[n],l=Wb(a)&&0!==r.get(s)?a/r.get(s):0;return(0,C.pi)((0,C.pi)({},t),(o={},o[i]=l,o))}))}function hA(t,e,n,i){var r=(0,S.u4)(t,(function(t,i){var r=(0,S.u4)(n,(function(t,e){return""+t+i[e]}),""),o=t.has(r)?t.get(r):0,a=i[e];return o=Wb(a)?o+a:o,t.set(r,o),t}),new Map);return(0,S.UI)(t,(function(t){var o,a=t[e],s=(0,S.u4)(n,(function(e,n){return""+e+t[n]}),""),l=Wb(a)&&0!==r.get(s)?a/r.get(s):0;return(0,C.pi)((0,C.pi)({},t),(o={},o[i]=l,o))}))}function pA(t,e,n,i,r){return r?cA(t,e,n,i):t}function fA(t){var e=t.chart,n=t.options,i=n.data,r=n.areaStyle,o=n.color,a=n.point,s=n.line,l=n.isPercent,u=n.xField,c=n.yField,h=n.tooltip,p=n.seriesField,f=n.startOnZero,d=null===a||void 0===a?void 0:a.state,g=pA(i,c,u,c,l);e.data(g);var v=l?(0,C.pi)({formatter:function(t){return{name:t[p]||t[u],value:(100*Number(t[c])).toFixed(2)+"%"}}},h):h,m=_b({},t,{options:{area:{color:o,style:r},point:a&&(0,C.pi)({color:o},a),tooltip:v,label:void 0,args:{startOnZero:f}}}),y={chart:e,options:_b({line:{size:2}},(0,S.CE)(n,["state"]),{line:s&&(0,C.pi)({color:o},s),sizeField:p,state:null===s||void 0===s?void 0:s.state,tooltip:!1,label:void 0,args:{startOnZero:f}})},x=_b({},m,{options:{tooltip:!1,state:d}});return Xw(m),Gw(y),Ww(x),t}function dA(t){var e=t.chart,n=t.options,i=n.label,r=n.yField,o=xb(e,"area");if(i){var a=i.callback,s=(0,C._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:(0,C.pi)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},kb(s))})}else o.label(!1);return t}function gA(t){var e=t.chart,n=t.options,i=n.isStack,r=n.isPercent,o=n.seriesField;return(r||i)&&o&&(0,S.S6)(e.geometries,(function(t){t.adjust("stack")})),t}function vA(t){return pb(Dw,Ew("areaStyle"),Uw("rect"),fA,tA,gA,nA,iA,Tw,dA,Lw,zw(),Iw,Bw,_w)(t)}var mA=_b({},uw.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}}),yA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return mA},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,i=e.xField,r=e.yField,o=this,a=o.chart,s=o.options;tA({chart:a,options:s}),this.chart.changeData(pA(t,r,i,r,n))},e.prototype.getSchemaAdaptor=function(){return vA},e}(uw);function xA(t,e){return(0,S.hj)(t)&&(0,S.hj)(e)?t===e?"100%":0===t?"∞":0===e?"-∞":(100*e/t).toFixed(2)+"%":"-"}function bA(t,e){return _b({size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:!1!==t.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==t.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:xA}},t)}function wA(t,e){return(0,S.UI)(e.getModel().points,(function(e){return t.convertPoint(e)}))}function AA(t,e,n){var i=t.view,r=t.geometry,o=t.group,a=t.options,s=t.horizontal,l=a.offset,u=a.size,c=a.arrow,h=i.getCoordinate(),p=wA(h,e)[3],f=wA(h,n)[0],d=f.y-p.y,g=f.x-p.x;if("boolean"!==typeof c){var v,m=c.headSize,y=a.spacing;s?(g-m)/2<y?(y=Math.max(1,(g-m)/2),v=[[p.x+y,p.y-l],[p.x+y,p.y-l-u],[f.x-y,f.y-l-u/2]]):v=[[p.x+y,p.y-l],[p.x+y,p.y-l-u],[f.x-y-m,f.y-l-u],[f.x-y,f.y-l-u/2],[f.x-y-m,f.y-l]]:(d-m)/2<y?(y=Math.max(1,(d-m)/2),v=[[p.x+l,p.y+y],[p.x+l+u,p.y+y],[f.x+l+u/2,f.y-y]]):v=[[p.x+l,p.y+y],[p.x+l+u,p.y+y],[f.x+l+u,f.y-y-m],[f.x+l+u/2,f.y-y],[f.x+l,f.y-y-m]],o.addShape("polygon",{id:i.id+"-conversion-tag-arrow-"+r.getElementId(e.getModel().mappingData),name:"conversion-tag-arrow",origin:{element:e,nextElement:n},attrs:(0,C.pi)((0,C.pi)({},c.style||{}),{points:v})})}}function CA(t,e,n){var i,r,o,a=t.view,s=t.geometry,l=t.group,u=t.options,c=t.field,h=t.horizontal,p=u.offset,f=u.size;if("boolean"!==typeof u.text){var d=a.getCoordinate(),g=(null===(i=u.text)||void 0===i?void 0:i.formatter)&&(null===(r=u.text)||void 0===r?void 0:r.formatter(e.getData()[c],n.getData()[c])),v=wA(d,e)[h?3:0],m=wA(d,n)[h?0:3],y=l.addShape("text",{id:a.id+"-conversion-tag-text-"+s.getElementId(e.getModel().mappingData),name:"conversion-tag-text",origin:{element:e,nextElement:n},attrs:(0,C.pi)((0,C.pi)({},(null===(o=u.text)||void 0===o?void 0:o.style)||{}),{text:g,x:h?(v.x+m.x)/2:v.x+p+f/2,y:h?v.y-p-f/2:(v.y+m.y)/2})});if(h){var x=m.x-v.x,b=y.getBBox().width;if(b>x){var w=b/g.length,A=Math.max(1,Math.ceil(x/w)-1),S=g.slice(0,A)+"...";y.attr("text",S)}}}}function SA(t,e,n){AA(t,e,n),CA(t,e,n)}function MA(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(i){var r=i.options,o=i.chart,a=r.conversionTag,s=r.theme;return a&&!n&&(o.theme(_b({},(0,S.Kn)(s)?s:ou(s),{columnWidthRatio:1/3})),o.annotation().shape({render:function(n,i){var r=n.addGroup({id:o.id+"-conversion-tag-group",name:"conversion-tag-group"}),s=(0,S.sE)(o.geometries,(function(t){return"interval"===t.type})),l={view:i,geometry:s,group:r,field:t,horizontal:e,options:bA(a,e)},u=s.elements;(0,S.S6)(u,(function(t,e){e>0&&SA(l,u[e-1],t)}))}})),i}}var kA={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},EA=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};function FA(t){return void 0===t&&(t=!1),function(e){var n=e.chart,i=e.options,r=i.connectedArea,o=function(){n.removeInteraction(kA.hover),n.removeInteraction(kA.click)};if(!t&&r){var a=r.trigger||"hover";o(),n.interaction(kA[a],{start:EA(a,r.style)})}else o();return e}}Gl(kA.hover,{start:EA(kA.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Gl(kA.click,{start:EA(kA.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var TA=10,IA=5,BA={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}},DA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=(0,C.pi)({name:"button"},BA),e}return(0,C.ZT)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=(0,S.U2)(t,["interactions","filter-action","cfg","buttonConfig"]);return _b(this.buttonCfg,e,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},e.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:(0,C.pi)({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,i=this.getButtonCfg(),r=Jb(i.padding),o=t.addShape({type:"rect",name:"button-rect",attrs:(0,C.pi)({x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2]},null===(n=i.buttonStyle)||void 0===n?void 0:n.default)});return o.toBack(),t.on("mouseenter",(function(){var t;o.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;o.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.default)})),o},e.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),i=this.buttonGroup,r=i.getBBox(),o=lh.transform(null,[["t",n.x-r.width-TA,n.y+r.height+IA]]);i.setMatrix(o)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(Ys);function PA(t){return t.isInPlot()}function LA(t,e,n){var i=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:PA,action:["brush:start",i+"-mask:start",i+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:PA,action:[i+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:PA,action:["brush:filter","brush:end",i+"-mask:end",i+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[i+"-mask:start",i+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[i+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[i+"-mask:resize"]},{trigger:"mask:drag",action:[i+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[i+"-mask:end"]},{trigger:"mask:dragend",action:[i+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",i+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:PA,action:["brush-x:start",i+"-mask:start",i+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:PA,action:[i+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:PA,action:["brush-x:filter","brush-x:end",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[i+"-mask:start",i+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[i+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[i+"-mask:resize"]},{trigger:"mask:drag",action:[i+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[i+"-mask:end"]},{trigger:"mask:dragend",action:[i+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",i+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:PA,action:["brush-y:start",i+"-mask:start",i+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:PA,action:[i+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:PA,action:["brush-y:filter","brush-y:end",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[i+"-mask:start",i+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[i+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[i+"-mask:resize"]},{trigger:"mask:drag",action:[i+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[i+"-mask:end"]},{trigger:"mask:dragend",action:[i+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",i+"-mask:hide"]}]};default:return{}}}Qs("brush-reset-button",DA,{name:"brush-reset-button"}),Gl("filter-action",{}),Gl("brush",LA("brush")),Gl("brush-highlight",LA("brush-highlight")),Gl("brush-x",LA("brush-x","x-rect")),Gl("brush-y",LA("brush-y","y-rect")),Gl("brush-x-highlight",LA("brush-x-highlight","x-rect")),Gl("brush-y-highlight",LA("brush-y-highlight","y-rect"));var OA=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function RA(t){var e=t.options,n=e.brush,i=(0,S.hX)(e.interactions||[],(function(t){return-1===OA.indexOf(t.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(OA.forEach((function(t){var e,r=!1;switch(n.type){case"x-rect":r=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":r=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:r=t===("highlight"===n.action?"brush-highlight":"brush");break}var o={type:t,enable:r};((null===(e=n.mask)||void 0===e?void 0:e.style)||n.type)&&(o.cfg=LA(t,n.type,n.mask)),i.push(o)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&i.push({type:"filter-action",cfg:{buttonConfig:n.button}})),_b({},t,{options:{interactions:i}})}function zA(t){var e=t.options,n=e.legend,i=e.seriesField,r=e.isStack;return i?!1!==n&&(n=(0,C.pi)({position:r?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function _A(t){var e=t.chart,n=t.options,i=n.data,r=n.columnStyle,o=n.color,a=n.columnWidthRatio,s=n.isPercent,l=n.isGroup,u=n.isStack,c=n.xField,h=n.yField,p=n.seriesField,f=n.groupField,d=n.tooltip,g=n.shape,v=s&&l&&u?hA(i,h,[c,f],h):pA(i,h,c,h,s),m=[];u&&p&&!l?v.forEach((function(t){var e=m.find((function(e){return e[c]===t[c]&&e[p]===t[p]}));e?e[h]+=t[h]||0:m.push((0,C.pi)({},t))})):m=v,e.data(m);var y=s?(0,C.pi)({formatter:function(t){return{name:l&&u?t[p]+" - "+t[f]:t[p]||t[c],value:(100*Number(t[h])).toFixed(2)+"%"}}},d):d,x=_b({},t,{options:{data:m,widthRatio:a,tooltip:y,interval:{shape:g,style:r,color:o}}});return Qw(x),x}function UA(t){var e,n,i=t.options,r=i.xAxis,o=i.yAxis,a=i.xField,s=i.yField,l=i.data,u=i.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return pb(Rw((e={},e[a]=r,e[s]=o,e),(n={},n[a]={type:"cat"},n[s]=(0,C.pi)((0,C.pi)({},Qb(l,s)),c),n)))(t)}function NA(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(a,!1):e.axis(a,r),t}function VA(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField;return i&&r?e.legend(r,i):!1===i&&e.legend(!1),t}function YA(t){var e=t.chart,n=t.options,i=n.label,r=n.yField,o=n.isRange,a=xb(e,"interval");if(i){var s=i.callback,l=(0,C._T)(i,["callback"]);a.label({fields:[r],callback:s,cfg:(0,C.pi)({layout:(null===l||void 0===l?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},kb(o?(0,C.pi)({content:function(t){var e;return null===(e=t[r])||void 0===e?void 0:e.join("-")}},l):l))})}else a.label(!1);return t}function HA(t){var e=t.chart,n=t.options,i=n.tooltip,r=n.isGroup,o=n.isStack,a=n.groupField,s=n.data,l=n.xField,u=n.yField,c=n.seriesField;if(!1===i)e.tooltip(!1);else{var h=i;if(r&&o){var p=(null===h||void 0===h?void 0:h.formatter)||function(t){return{name:t[c]+" - "+t[a],value:t[u]}};h=(0,C.pi)((0,C.pi)({},h),{customItems:function(t){var e=[];return(0,S.S6)(t,(function(t){var n=(0,S.hX)(s,(function(e){return(0,S.BD)(e,fb(t.data,[l,c]))}));n.forEach((function(n){e.push((0,C.pi)((0,C.pi)((0,C.pi)({},t),{value:n[u],data:n,mappingData:{_origin:n}}),p(n)))}))})),e}})}e.tooltip(h)}return t}function XA(t,e){void 0===e&&(e=!1);var n=t.options,i=n.seriesField;return pb(zA,Dw,Ew("columnStyle"),Pw,Uw("rect"),_A,UA,NA,VA,HA,Lw,Ow,YA,RA,Iw,Bw,zw(),MA(n.yField,!e,!!i),FA(!n.isStack),_w)(t)}var GA=_b({},uw.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),WA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return GA},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,i=e.xField,r=e.isPercent,o=this,a=o.chart,s=o.options;UA({chart:a,options:s}),this.chart.changeData(pA(t,n,i,n,r))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return XA},e}(uw);function jA(t){var e=t.options,n=e.xField,i=e.yField,r=e.xAxis,o=e.yAxis,a={left:"bottom",right:"top",top:"left",bottom:"right"},s=!1!==o&&(0,C.pi)({position:a[(null===o||void 0===o?void 0:o.position)||"left"]},o),l=!1!==r&&(0,C.pi)({position:a[(null===r||void 0===r?void 0:r.position)||"bottom"]},r);return(0,C.pi)((0,C.pi)({},t),{options:(0,C.pi)((0,C.pi)({},e),{xField:i,yField:n,xAxis:s,yAxis:l})})}function QA(t){var e=t.options,n=e.label;return n&&!n.position&&(n.position="left",n.layout||(n.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),_b({},t,{options:{label:n}})}function ZA(t){var e=t.options,n=e.seriesField,i=e.isStack,r=e.legend;return n?!1!==r&&(r=(0,C.pi)({position:i?"top-left":"right-top"},r||{})):r=!1,_b({},t,{options:{legend:r}})}function qA(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return _b({},t,{options:{coordinate:n}})}function JA(t){var e=t.chart,n=t.options,i=n.barStyle,r=n.barWidthRatio,o=n.minBarWidth,a=n.maxBarWidth,s=n.barBackground;return XA({chart:e,options:(0,C.pi)((0,C.pi)({},n),{columnStyle:i,columnWidthRatio:r,minColumnWidth:o,maxColumnWidth:a,columnBackground:s})},!0)}function KA(t){return pb(jA,QA,ZA,Tw,qA,JA)(t)}var $A=_b({},uw.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),tC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return $A},e.prototype.changeData=function(t){var e,n;this.updateOption({data:t});var i=this,r=i.chart,o=i.options,a=o.isPercent,s=o.xField,l=o.yField,u=o.xAxis,c=o.yAxis;e=[l,s],s=e[0],l=e[1],n=[c,u],u=n[0],c=n[1];var h=(0,C.pi)((0,C.pi)({},o),{xField:s,yField:l,yAxis:c,xAxis:u});UA({chart:r,options:h}),r.changeData(pA(t,s,l,s,a))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return KA},e}(uw),eC=_b({},uw.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}});function nC(t,e){var n=null;return(0,S.S6)(t,(function(t){"number"===typeof t[e]&&(n+=t[e])})),n}function iC(t,e){var n;switch(t){case"inner":return n="-30%",(0,S.HD)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,(0,S.HD)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function rC(t,e){return(0,S.yW)(qb(t,e),(function(t){return 0===t[e]}))}var oC=[1,0,0,0,1,0,0,0,1];function aC(t,e){var n=e?(0,C.pr)(e):(0,C.pr)(oC);return lh.transform(n,t)}var sC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getActiveElements=function(){var t=lh.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,i=t.item,r=n.get("field");if(r){var o=e.geometries[0].elements;return o.filter((function(t){return t.getModel().data[r]===i.value}))}}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements(),n=t.geometries[0].labelsContainer.getChildren();return n.filter((function(t){return e.find((function(e){return(0,S.Xy)(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,i){var r=n[i],o=e.geometry.coordinate;if(o.isPolar&&o.isTransposed){var a=lh.getAngle(e.getModel(),o),s=a.startAngle,l=a.endAngle,u=(s+l)/2,c=t,h=c*Math.cos(u),p=c*Math.sin(u);e.shape.setMatrix(aC([["t",h,p]])),r.setMatrix(aC([["t",h,p]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(Ys);function lC(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}var uC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getAnnotations=function(t){var e=t||this.context.view;return e.getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(t){var e=this.context,n=e.view,i=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var r=(0,S.U2)(i,["data","data"]);if(i.type.match("legend-item")){var o=lh.getDelegationObject(this.context),a=n.getGroupedFields()[0];if(o&&a){var s=o.item;r=n.getData().find((function(t){return t[a]===s.value}))}}if(r){var l=(0,S.U2)(t,"annotations",[]),u=(0,S.U2)(t,"statistic",{});n.getController("annotation").clear(!0),(0,S.S6)(l,(function(t){"object"===typeof t&&n.annotation()[t.type](t)})),Hb(n,{statistic:u,plotType:"pie"},r),n.render(!0)}var c=lC(this.context);c&&c.shape.toFront()},e.prototype.reset=function(){var t=this.context.view,e=t.getController("annotation");e.clear(!0);var n=this.getInitialAnnotation();(0,S.S6)(n,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(Ys),cC="pie-statistic";function hC(t){var e=t.chart,n=t.options,i=n.data,r=n.angleField,o=n.colorField,a=n.color,s=n.pieStyle,l=qb(i,r);if(rC(l,r)){var u="$$percentage$$";l=l.map((function(t){var e;return(0,C.pi)((0,C.pi)({},t),(e={},e[u]=1/l.length,e))})),e.data(l);var c=_b({},t,{options:{xField:"1",yField:u,seriesField:o,isStack:!0,interval:{color:a,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Qw(c)}else{e.data(l);c=_b({},t,{options:{xField:"1",yField:r,seriesField:o,isStack:!0,interval:{color:a,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Qw(c)}return t}function pC(t){var e,n=t.chart,i=t.options,r=i.meta,o=i.colorField,a=_b({},r);return n.scale(a,(e={},e[o]={type:"cat"},e)),t}function fC(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}),t}function dC(t){var e=t.chart,n=t.options,i=n.label,r=n.colorField,o=n.angleField,a=e.geometries[0];if(i){var s=i.callback,l=(0,C._T)(i,["callback"]),u=kb(l);if(u.content){var c=u.content;u.content=function(t,n,i){var a=t[r],s=t[o],l=e.getScaleByField(o),u=null===l||void 0===l?void 0:l.scale(s);return(0,S.mf)(c)?c((0,C.pi)((0,C.pi)({},t),{percent:u}),n,i):(0,S.HD)(c)?db(c,{value:s,name:a,percentage:(0,S.hj)(u)&&!(0,S.UM)(s)?(100*u).toFixed(2)+"%":null}):c}}var h={inner:"",outer:"pie-outer",spider:"pie-spider"},p=u.type?h[u.type]:"pie-outer",f=u.layout?(0,S.kJ)(u.layout)?u.layout:[u.layout]:[];u.layout=(p?[{type:p}]:[]).concat(f),a.label({fields:r?[o,r]:[o],callback:s,cfg:(0,C.pi)((0,C.pi)({},u),{offset:iC(u.type,u.offset),type:"pie"})})}else a.label(!1);return t}function gC(t){var e=t.innerRadius,n=t.statistic,i=t.angleField,r=t.colorField,o=t.meta,a=t.locale,s=iw(a);if(e&&n){var l=_b({},eC.statistic,n),u=l.title,c=l.content;return!1!==u&&(u=_b({},{formatter:function(t){var e=t?t[r]:(0,S.UM)(u.content)?s.get(["statistic","total"]):u.content,n=(0,S.U2)(o,[r,"formatter"])||function(t){return t};return n(e)}},u)),!1!==c&&(c=_b({},{formatter:function(t,e){var n=t?t[i]:nC(e,i),r=(0,S.U2)(o,[i,"formatter"])||function(t){return t};return t||(0,S.UM)(c.content)?r(n):c.content}},c)),_b({},{statistic:{title:u,content:c}},t)}return t}function vC(t){var e=t.chart,n=t.options,i=gC(n),r=i.innerRadius,o=i.statistic;return e.getController("annotation").clear(!0),pb(zw())(t),r&&o&&Hb(e,{statistic:o,plotType:"pie"}),t}function mC(t){var e=t.chart,n=t.options,i=n.tooltip,r=n.colorField,o=n.angleField,a=n.data;if(!1===i)e.tooltip(i);else if(e.tooltip(_b({},i,{shared:!1})),rC(a,o)){var s=(0,S.U2)(i,"fields"),l=(0,S.U2)(i,"formatter");(0,S.xb)((0,S.U2)(i,"fields"))&&(s=[r,o],l=l||function(t){return{name:t[r],value:(0,S.BB)(t[o])}}),e.geometries[0].tooltip(s.join("*"),Yw(s,l))}return t}function yC(t){var e=t.chart,n=t.options,i=gC(n),r=i.interactions,o=i.statistic,a=i.annotations;return(0,S.S6)(r,(function(t){var n,i;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var r=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(r=[{trigger:"element:mouseenter",action:cC+":change",arg:{statistic:o,annotations:a}}]),(0,S.S6)(null===(i=t.cfg)||void 0===i?void 0:i.start,(function(t){r.push((0,C.pi)((0,C.pi)({},t),{arg:{statistic:o,annotations:a}}))})),e.interaction(t.type,_b({},t.cfg,{start:r}))}else e.interaction(t.type,t.cfg||{})})),t}function xC(t){return pb(Ew("pieStyle"),hC,pC,Dw,fC,Fw,mC,dC,Pw,vC,yC,Bw)(t)}Qs(cC,uC),Gl("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Qs("pie-legend",sC),Gl("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var bC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return eC},e.prototype.changeData=function(t){this.chart.emit(M.BEFORE_CHANGE_DATA,Bu.fromData(this.chart,M.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,i=qb(e.data,n),r=qb(t,n);rC(i,n)||rC(r,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(r),vC({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(M.AFTER_CHANGE_DATA,Bu.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return xC},e}(uw);function wC(t){var e=t.chart,n=t.options,i=n.data,r=n.sectorStyle,o=n.color;return e.data(i),pb(Qw)(_b({},t,{options:{marginRatio:1,interval:{style:r,color:o}}})),t}function AC(t){var e=t.chart,n=t.options,i=n.label,r=n.xField,o=xb(e,"interval");if(!1===i)o.label(!1);else if((0,S.Kn)(i)){var a=i.callback,s=i.fields,l=(0,C._T)(i,["callback","fields"]),u=l.offset,c=l.layout;(void 0===u||u>=0)&&(c=c?(0,S.kJ)(c)?c:[c]:[],l.layout=(0,S.hX)(c,(function(t){return"limit-in-shape"!==t.type})),l.layout.length||delete l.layout),o.label({fields:s||[r],callback:a,cfg:kb(l)})}else mb(ib.WARN,null===i,"the label option must be an Object."),o.label({fields:[r]});return t}function CC(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField;return!1===i?e.legend(!1):r&&e.legend(r,i),t}function SC(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}),t}function MC(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return pb(Rw((e={},e[o]=i,e[a]=r,e)))(t)}function kC(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return i?e.axis(o,i):e.axis(o,!1),r?e.axis(a,r):e.axis(a,!1),t}function EC(t){pb(Ew("sectorStyle"),wC,MC,AC,SC,kC,CC,Tw,Iw,Bw,Dw,zw(),Pw)(t)}var FC=_b({},uw.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),TC=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return FC},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return EC}}(uw),{font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3});function IC(t,e){return e=(0,S.f0)({},TC,e),BC(t,e)}function BC(t,e){var n=JC();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){(0,S.UM)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var i=n.start(),r=i._tags;r.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var o=e.size,a=o[0],s=o[1];return r.push({text:"",value:0,x:0,y:0,opacity:0}),r.push({text:"",value:0,x:a,y:s,opacity:0}),r}var DC=Math.PI/180,PC=64,LC=2048;function OC(t){return t.text}function RC(){return"serif"}function zC(){return"normal"}function _C(t){return t.value}function UC(){return 90*~~(2*Math.random())}function NC(){return 1}function VC(t,e,n,i){if(!e.sprite){var r=t.context,o=t.ratio;r.clearRect(0,0,(PC<<5)/o,LC/o);var a=0,s=0,l=0,u=n.length;--i;while(++i<u){e=n[i],r.save(),r.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var c=r.measureText(e.text+"m").width*o,h=e.size<<1;if(e.rotate){var p=Math.sin(e.rotate*DC),f=Math.cos(e.rotate*DC),d=c*f,g=c*p,v=h*f,m=h*p;c=Math.max(Math.abs(d+m),Math.abs(d-m))+31>>5<<5,h=~~Math.max(Math.abs(g+v),Math.abs(g-v))}else c=c+31>>5<<5;if(h>l&&(l=h),a+c>=PC<<5&&(a=0,s+=l,l=0),s+h>=LC)break;r.translate((a+(c>>1))/o,(s+(h>>1))/o),e.rotate&&r.rotate(e.rotate*DC),r.fillText(e.text,0,0),e.padding&&(r.lineWidth=2*e.padding,r.strokeText(e.text,0,0)),r.restore(),e.width=c,e.height=h,e.xoff=a,e.yoff=s,e.x1=c>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=c}var y=r.getImageData(0,0,(PC<<5)/o,LC/o).data,x=[];while(--i>=0)if(e=n[i],e.hasText){c=e.width;for(var b=c>>5,w=(h=e.y1-e.y0,0);w<h*b;w++)x[w]=0;if(a=e.xoff,null==a)return;s=e.yoff;for(var A=0,C=-1,S=0;S<h;S++){for(w=0;w<c;w++){var M=b*S+(w>>5),k=y[(s+S)*(PC<<5)+(a+w)<<2]?1<<31-w%32:0;x[M]|=k,A|=k}A?C=S:(e.y0++,h--,S--,s++)}e.y1=e.y0+C,e.sprite=x.slice(0,(e.y1-e.y0)*b)}}}function YC(t,e,n){n>>=5;for(var i,r=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,l=32-s,u=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),h=0;h<u;h++){i=0;for(var p=0;p<=o;p++)if((i<<l|(p<o?(i=r[h*o+p])>>>s:0))&e[c+p])return!0;c+=n}return!1}function HC(t,e){var n=t[0],i=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>i.x&&(i.x=e.x+e.x1),e.y+e.y1>i.y&&(i.y=e.y+e.y1)}function XC(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function GC(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function WC(t){var e=4,n=e*t[0]/t[1],i=0,r=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:i+=n;break;case 1:r+=e;break;case 2:i-=n;break;default:r-=e;break}return[i,r]}}function jC(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function QC(){return document.createElement("canvas")}function ZC(t){return(0,S.mf)(t)?t:function(){return t}}var qC={archimedean:GC,rectangular:WC};function JC(){var t=[256,256],e=RC,n=_C,i=zC,r=UC,o=NC,a=GC,s=Math.random,l=[],u=1/0,c=OC,h=zC,p=QC,f={};function d(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(PC<<5)/e,t.height=LC/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function g(e,n,i){var r,o,l,u=n.x,c=n.y,h=Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=a(t),f=s()<.5?1:-1,d=-f;while(r=p(d+=f)){if(o=~~r[0],l=~~r[1],Math.min(Math.abs(o),Math.abs(l))>=h)break;if(n.x=u+o,n.y=c+l,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!i||!YC(n,e,t[0]))&&(!i||XC(n,i))){for(var g=n.sprite,v=n.width>>5,m=t[0]>>5,y=n.x-(v<<4),x=127&y,b=32-x,w=n.y1-n.y0,A=void 0,C=(n.y+n.y0)*m+(y>>5),S=0;S<w;S++){A=0;for(var M=0;M<=v;M++)e[C+M]|=A<<b|(M<v?(A=g[S*v+M])>>>x:0);C+=m}return delete n.sprite,!0}}return!1}return f.start=function(){var a=t[0],v=t[1],m=d(p()),y=f.board?f.board:jC((t[0]>>5)*t[1]),x=l.length,b=[],w=l.map((function(t,a,s){return t.text=c.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=h.call(this,t,a,s),t.weight=i.call(this,t,a,s),t.rotate=r.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),A=-1,C=f.board?[{x:0,y:0},{x:a,y:v}]:null;function S(){var e=Date.now();while(Date.now()-e<u&&++A<x){var n=w[A];n.x=a*(s()+.5)>>1,n.y=v*(s()+.5)>>1,VC(m,n,w,A),n.hasText&&g(y,n,C)&&(b.push(n),C?f.hasImage||HC(C,n):C=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}f._tags=b,f._bounds=C}return S(),f},f.createMask=function(e){var n=document.createElement("canvas"),i=t[0],r=t[1];if(i&&r){var o=i>>5,a=jC((i>>5)*r);n.width=i,n.height=r;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,i,r);for(var l=s.getImageData(0,0,i,r).data,u=0;u<r;u++)for(var c=0;c<i;c++){var h=o*u+(c>>5),p=u*i+c<<2,d=l[p]>=250&&l[p+1]>=250&&l[p+2]>=250,g=d?1<<31-c%32:0;a[h]|=g}f.board=a,f.hasImage=!0}},f.timeInterval=function(t){u=null==t?1/0:t},f.words=function(t){l=t},f.size=function(e){t=[+e[0],+e[1]]},f.font=function(t){e=ZC(t)},f.fontWeight=function(t){i=ZC(t)},f.rotate=function(t){r=ZC(t)},f.spiral=function(t){a=qC[t]||t},f.fontSize=function(t){n=ZC(t)},f.padding=function(t){o=ZC(t)},f.random=function(t){s=ZC(t)},f}function KC(t){var e=t.options,n=t.chart,i=n,r=i.width,o=i.height,a=i.padding,s=i.appendPadding,l=i.ele,u=e.data,c=e.imageMask,h=e.wordField,p=e.weightField,f=e.colorField,d=e.wordStyle,g=e.timeInterval,v=e.random,m=e.spiral,y=e.autoFit,x=void 0===y||y,b=e.placementStrategy;if(!u||!u.length)return[];var w=d.fontFamily,A=d.fontWeight,M=d.padding,k=d.fontSize,E=iS(u,p),F=[aS(E),sS(E)],T=u.map((function(t){return{text:t[h],value:t[p],color:t[f],datum:t}})),I={imageMask:c,font:w,fontSize:nS(k,F),fontWeight:A,size:$C({width:r,height:o,padding:a,appendPadding:s,autoFit:x,container:l}),padding:M,timeInterval:g,random:v,spiral:m,rotate:rS(e)};if((0,S.mf)(b)){var B=T.map((function(t,e,i){return(0,C.pi)((0,C.pi)((0,C.pi)({},t),{hasText:!!t.text,font:ZC(I.font)(t,e,i),weight:ZC(I.fontWeight)(t,e,i),rotate:ZC(I.rotate)(t,e,i),size:ZC(I.fontSize)(t,e,i),style:"normal"}),b.call(n,t,e,i))}));return B.push({text:"",value:0,x:0,y:0,opacity:0}),B.push({text:"",value:0,x:I.size[0],y:I.size[1],opacity:0}),B}return IC(T,I)}function $C(t){var e=t.width,n=t.height,i=t.container,r=t.autoFit,o=t.padding,a=t.appendPadding;if(r){var s=yb(i);e=s.width,n=s.height}e=e||400,n=n||400;var l=tS({padding:o,appendPadding:a}),u=l[0],c=l[1],h=l[2],p=l[3],f=[e-(p+c),n-(u+h)];return f}function tS(t){var e=Jb(t.padding),n=Jb(t.appendPadding),i=e[0]+n[0],r=e[1]+n[1],o=e[2]+n[2],a=e[3]+n[3];return[i,r,o,a]}function eS(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if((0,S.HD)(t)){var i=new Image;return i.crossOrigin="anonymous",i.src=t,i.onload=function(){e(i)},void(i.onerror=function(){mb(ib.ERROR,!1,"image %s load failed !!!",t),n()})}mb(ib.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function nS(t,e){if((0,S.mf)(t))return t;if((0,S.kJ)(t)){var n=t[0],i=t[1];if(!e)return function(){return(i+n)/2};var r=e[0],o=e[1];return o===r?function(){return(i+n)/2}:function(t){var e=t.value;return(i-n)/(o-r)*(e-r)+n}}return function(){return t}}function iS(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"===typeof t&&!isNaN(t)}))}function rS(t){var e=oS(t),n=e.rotation,i=e.rotationSteps;if(!(0,S.kJ)(n))return n;var r=n[0],o=n[1],a=1===i?0:(o-r)/(i-1);return function(){return o===r?o:Math.floor(Math.random()*i)*a}}function oS(t){var e=t.wordStyle.rotationSteps;return e<1&&(mb(ib.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}function aS(t){return Math.min.apply(Math,t)}function sS(t){return Math.max.apply(Math,t)}var lS="color",uS=_b({},uw.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",lS],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}});function cS(t){var e=t.chart,n=t.options,i=n.colorField,r=n.color,o=KC(t);e.data(o);var a=_b({},t,{options:{xField:"x",yField:"y",seriesField:i&&lS,rawFields:(0,S.mf)(r)&&(0,C.pr)((0,S.U2)(n,"rawFields",[]),["datum"]),point:{color:r,shape:"word-cloud"}}}),s=Ww(a).ext;return s.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function hS(t){return pb(Rw({x:{nice:!1},y:{nice:!1}}))(t)}function pS(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField;return!1===i?e.legend(!1):r&&e.legend(lS,i),t}function fS(t){pb(cS,hS,Tw,pS,Iw,Bw,Dw,Pw)(t)}function dS(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}gc("point","word-cloud",{draw:function(t,e){var n=t.x,i=t.y,r=e.addShape("text",{attrs:(0,C.pi)((0,C.pi)({},dS(t)),{x:n,y:i})}),o=t.data.rotate;return"number"===typeof o&&lh.rotate(r,o*Math.PI/180),r}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return uS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(KC({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var e=this;return new Promise((function(n){var i=e.options.imageMask;if(!i)return t.prototype.render.call(e),void n();var r=function(i){e.options=(0,C.pi)((0,C.pi)({},e.options),{imageMask:i||null}),t.prototype.render.call(e),n()};eS(i).then(r).catch(r)}))},e.prototype.getSchemaAdaptor=function(){return fS},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))}})(uw);var gS=n(6645),vS={exp:gS.regressionExp,linear:gS.regressionLinear,loess:gS.regressionLoess,log:gS.regressionLog,poly:gS.regressionPoly,pow:gS.regressionPow,quad:gS.regressionQuad};function mS(t,e){var n=10,i={regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-n,offsetY:-n,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:n,offsetY:-n,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:n,offsetY:n,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-n,offsetY:n,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return i}var yS=function(t,e){var n=e.view,i=e.options,r=i.xField,o=i.yField,a=n.getScaleByField(r),s=n.getScaleByField(o),l=t.map((function(t){return n.getCoordinate().convert({x:a.scale(t[0]),y:s.scale(t[1])})}));return Ib(l,!1)},xS=function(t){var e,n=t.options,i=n.xField,r=n.yField,o=n.data,a=n.regressionLine,s=a.type,l=void 0===s?"linear":s,u=a.algorithm;if(u)e=(0,S.kJ)(u)?u:u(o);else{var c=vS[l]().x((function(t){return t[i]})).y((function(t){return t[r]}));e=c(o)}return yS(e,t)},bS=function(t){var e,n=t.meta,i=void 0===n?{}:n,r=t.xField,o=t.yField,a=t.data,s=a[0][r],l=a[0][o],u=s>0,c=l>0;function h(t,e){var n=(0,S.U2)(i,[t]);function r(t){return(0,S.U2)(n,t)}var o={};return"x"===e?((0,S.hj)(s)&&((0,S.hj)(r("min"))||(o["min"]=u?0:2*s),(0,S.hj)(r("max"))||(o["max"]=u?2*s:0)),o):((0,S.hj)(l)&&((0,S.hj)(r("min"))||(o["min"]=c?0:2*l),(0,S.hj)(r("max"))||(o["max"]=c?2*l:0)),o)}return(0,C.pi)((0,C.pi)({},i),(e={},e[r]=(0,C.pi)((0,C.pi)({},i[r]),h(r,"x")),e[o]=(0,C.pi)((0,C.pi)({},i[o]),h(o,"y")),e))};function wS(t){var e=t.data,n=void 0===e?[]:e,i=t.xField,r=t.yField;if(n.length){for(var o=!0,a=!0,s=n[0],l=void 0,u=1;u<n.length;u++){if(l=n[u],s[i]!==l[i]&&(o=!1),s[r]!==l[r]&&(a=!1),!o&&!a)break;s=l}var c=[];o&&c.push(i),a&&c.push(r);var h=fb(bS(t),c);return _b({},t,{meta:h})}return t}function AS(t){var e=t.chart,n=t.options,i=n.data,r=n.type,o=n.color,a=n.shape,s=n.pointStyle,l=n.shapeField,u=n.colorField,c=n.xField,h=n.yField,p=n.sizeField,f=n.size,d=n.tooltip;p&&(f||(f=[2,8]),(0,S.hj)(f)&&(f=[f,f])),d&&!d.fields&&(d=(0,C.pi)((0,C.pi)({},d),{fields:[c,h,u,p,l]})),e.data(i),Ww(_b({},t,{options:{seriesField:u,point:{color:o,shape:a,size:f,style:s},tooltip:d}}));var g=xb(e,"point");return r&&g.adjust(r),t}function CS(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField,s=wS(n);return pb(Rw((e={},e[o]=i,e[a]=r,e)))(_b({},t,{options:s}))}function SS(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,i),e.axis(a,r),t}function MS(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,o=n.shapeField,a=n.sizeField,s=n.shapeLegend,l=n.sizeLegend,u=!1!==i;return r&&e.legend(r,!!u&&i),o&&(s?e.legend(o,s):e.legend(o,!1!==s&&i)),a&&e.legend(a,l||!1),u||s||l||e.legend(!1),t}function kS(t){var e=t.chart,n=t.options,i=n.label,r=n.yField,o=xb(e,"point");if(i){var a=i.callback,s=(0,C._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:kb(s)})}else o.label(!1);return t}function ES(t){var e=t.options,n=e.quadrant,i=[];if(n){var r=n.xBaseline,o=void 0===r?0:r,a=n.yBaseline,s=void 0===a?0:a,l=n.labels,u=n.regionStyle,c=n.lineStyle,h=mS(o,s),p=new Array(4).join(",").split(",");p.forEach((function(t,e){i.push((0,C.pi)((0,C.pi)({type:"region",top:!1},h.regionStyle[e].position),{style:_b({},h.regionStyle[e].style,null===u||void 0===u?void 0:u[e])}),(0,C.pi)({type:"text",top:!0},_b({},h.labelStyle[e],null===l||void 0===l?void 0:l[e])))})),i.push({type:"line",top:!1,start:["min",s],end:["max",s],style:_b({},h.lineStyle,c)},{type:"line",top:!1,start:[o,"min"],end:[o,"max"],style:_b({},h.lineStyle,c)})}return pb(zw(i))(t)}function FS(t){var e=t.options,n=t.chart,i=e.regressionLine;if(i){var r=i.style,o=i.top,a=void 0!==o&&o,s={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:a,render:function(t,i){var o=t.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),a=xS({view:i,options:e});o.addShape("path",{name:"regression-line",attrs:(0,C.pi)((0,C.pi)({path:a},s),r)})}})}return t}function TS(t){var e=t.chart,n=t.options,i=n.tooltip;return i?e.tooltip(i):!1===i&&e.tooltip(!1),t}function IS(t){return pb(AS,CS,SS,MS,TS,kS,RA,Lw,Ow,Iw,ES,Bw,Dw,FS)(t)}var BS=_b({},uw.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}});Gl("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]});var DS=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.type="scatter",i.on(M.BEFORE_RENDER,(function(t){var e,n,r=i,o=r.options,a=r.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===yx.FILTER){var s=i.chart.filterData(i.chart.getData());CS({chart:a,options:(0,C.pi)((0,C.pi)({},o),{data:s})})}(null===(n=t.data)||void 0===n?void 0:n.source)===yx.RESET&&CS({chart:a,options:o})})),i}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return BS},e.prototype.changeData=function(t){this.updateOption(wS(_b({},this.options,{data:t})));var e=this,n=e.options,i=e.chart;CS({chart:i,options:n}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return IS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(uw);function PS(t){var e=t.chart,n=t.options,i=n.data,r=n.lineStyle,o=n.color,a=n.point,s=n.area;e.data(i);var l=_b({},t,{options:{line:{style:r,color:o},point:a?(0,C.pi)({color:o},a):a,area:s?(0,C.pi)({color:o},s):s,label:void 0}}),u=_b({},l,{options:{tooltip:!1}}),c=(null===a||void 0===a?void 0:a.state)||n.state,h=_b({},l,{options:{tooltip:!1,state:c}});return Gw(l),Ww(h),Xw(u),t}function LS(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return pb(Rw((e={},e[o]=i,e[a]=r,e)))(t)}function OS(t){var e=t.chart,n=t.options,i=n.radius,r=n.startAngle,o=n.endAngle;return e.coordinate("polar",{radius:i,startAngle:r,endAngle:o}),t}function RS(t){var e=t.chart,n=t.options,i=n.xField,r=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(i,r),e.axis(o,a),t}function zS(t){var e=t.chart,n=t.options,i=n.label,r=n.yField,o=xb(e,"line");if(i){var a=i.callback,s=(0,C._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:kb(s)})}else o.label(!1);return t}function _S(t){return pb(PS,LS,Dw,OS,RS,Fw,Tw,zS,Iw,Bw,zw())(t)}var US=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),i=n.shared,r=n.title,o=t.prototype.getTooltipItems.call(this,e);if(o.length>0){var a=this.view.geometries[0],s=a.dataArray,l=o[0].name,u=[];return s.forEach((function(t){t.forEach((function(t){var e=lh.getTooltipItems(t,a),n=e[0];if(!i&&n&&n.name===l){var o=(0,S.UM)(r)?l:r;u.push((0,C.pi)((0,C.pi)({},n),{name:n.title,title:o}))}else if(i&&n){o=(0,S.UM)(r)?n.name||l:r;u.push((0,C.pi)((0,C.pi)({},n),{name:n.title,title:o}))}}))})),u}return[]},e}(Gu);Mu("radar-tooltip",US);var NS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event,e=this.getTooltipController();e.showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},e.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},e}(Ys);Qs("radar-tooltip",NS),Gl("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var VS,YS;(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}(0,C.ZT)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return _b({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return _S}})(uw);(function(t){t["Left"]="Left",t["Right"]="Right"})(VS||(VS={})),function(t){t["Line"]="line",t["Column"]="column"}(YS||(YS={}));var HS="left-axes-view",XS="right-axes-view",GS={nice:!0,label:{autoHide:!0,autoRotate:!1}},WS=(0,C.pi)((0,C.pi)({},GS),{position:"left"}),jS=(0,C.pi)((0,C.pi)({},GS),{position:"right",grid:null});function QS(t){return(0,S.U2)(t,"geometry")===YS.Line}function ZS(t){return(0,S.U2)(t,"geometry")===YS.Column}function qS(t,e,n){return ZS(n)?_b({},{geometry:YS.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):(0,C.pi)({geometry:YS.Line},n)}function JS(t,e){var n=t[0],i=t[1];if((0,S.kJ)(e)){var r=e[0],o=e[1];return[r,o]}var a=(0,S.U2)(e,n),s=(0,S.U2)(e,i);return[a,s]}function KS(t,e){return e===VS.Left?!1!==t&&_b({},WS,t):e===VS.Right?!1!==t&&_b({},jS,t):t}function $S(t){var e=t.view,n=t.geometryOption,i=t.yField,r=t.legend,o=(0,S.U2)(r,"marker"),a=xb(e,QS(n)?"line":"interval");if(!n.seriesField){var s=(0,S.U2)(e,"options.scales."+i+".alias")||i,l=a.getAttribute("color"),u=e.getTheme().defaultColor;l&&(u=lh.getMappingValue(l,s,(0,S.U2)(l,["values",0],u)));var c=((0,S.mf)(o)?o:!(0,S.xb)(o)&&_b({},{style:{stroke:u,fill:u}},o))||(QS(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:u}}:{symbol:"square",style:{fill:u}});return[{value:i,name:s,marker:c,isGeometry:!0,viewId:e.id}]}var h=a.getGroupAttributes();return(0,S.u4)(h,(function(t,n){var i=lh.getLegendItems(e,a,n,e.getTheme(),o);return t.concat(i)}),[])}function tM(t){var e=t.options,n=t.chart,i=e.geometryOption,r=i.isStack,o=i.color,a=i.seriesField,s=i.groupField,l=i.isGroup,u=["xField","yField"];if(QS(i)){Gw(_b({},t,{options:(0,C.pi)((0,C.pi)((0,C.pi)({},fb(e,u)),i),{line:{color:i.color,style:i.lineStyle}})})),Ww(_b({},t,{options:(0,C.pi)((0,C.pi)((0,C.pi)({},fb(e,u)),i),{point:i.point&&(0,C.pi)({color:o,shape:"circle"},i.point)})}));var c=[];l&&c.push({type:"dodge",dodgeBy:s||a,customOffset:0}),r&&c.push({type:"stack"}),c.length&&(0,S.S6)(n.geometries,(function(t){t.adjust(c)}))}return ZS(i)&&XA(_b({},t,{options:(0,C.pi)((0,C.pi)((0,C.pi)({},fb(e,u)),i),{widthRatio:i.columnWidthRatio,interval:(0,C.pi)((0,C.pi)({},fb(i,["color"])),{style:i.columnStyle})})})),t}var eM=function(t,e){var n=e[0],i=e[1],r=t.getOptions().data,o=t.getXScale(),a=(0,S.dp)(r);if(o&&a){var s=!0,l=(0,S.I)(r,o.field),u=s?l:l.reverse(),c=(0,S.dp)(u),h=Math.floor(n*(c-1)),p=Math.floor(i*(c-1));t.filter(o.field,(function(t){var e=u.indexOf(t);return!(e>-1)||jb(e,h,p)})),t.getRootView().render(!0)}};function nM(t){var e,n=t.options,i=n.geometryOptions,r=void 0===i?[]:i,o=n.xField,a=n.yField,s=(0,S.yW)(r,(function(t){var e=t.geometry;return e===YS.Line||void 0===e}));return _b({},{options:{geometryOptions:[],meta:(e={},e[o]={type:"cat",sync:!0,range:s?[0,1]:void 0},e),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:JS(a,n.yAxis),geometryOptions:[qS(o,a[0],r[0]),qS(o,a[1],r[1])],annotations:JS(a,n.annotations)}})}function iM(t){var e,n,i=t.chart,r=t.options,o=r.geometryOptions,a={line:0,column:1},s=[{type:null===(e=o[0])||void 0===e?void 0:e.geometry,id:HS},{type:null===(n=o[1])||void 0===n?void 0:n.geometry,id:XS}];return s.sort((function(t,e){return-a[t.type]+a[e.type]})).forEach((function(t){return i.createView({id:t.id})})),t}function rM(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.geometryOptions,a=n.data,s=n.tooltip,l=[(0,C.pi)((0,C.pi)({},o[0]),{id:HS,data:a[0],yField:r[0]}),(0,C.pi)((0,C.pi)({},o[1]),{id:XS,data:a[1],yField:r[1]})];return l.forEach((function(t){var n=t.id,r=t.data,o=t.yField,a=ZS(t)&&t.isPercent,l=a?cA(r,o,i,o):r,u=Cb(e,n).data(l),c=a?(0,C.pi)({formatter:function(e){return{name:e[t.seriesField]||o,value:(100*Number(e[o])).toFixed(2)+"%"}}},s):s;tM({chart:u,options:{xField:i,yField:o,tooltip:c,geometryOption:t}})})),t}function oM(t){var e,n=t.chart,i=t.options,r=i.geometryOptions,o=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],a=0;return n.once("beforepaint",(function(){(0,S.S6)(r,(function(t,e){var i=Cb(n,0===e?HS:XS);if(!t.color){var r=i.getGroupScales(),s=(0,S.U2)(r,[0,"values","length"],1),l=o.slice(a,a+s).concat(0===e?[]:o);i.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),a+=s}})),n.render(!0)})),t}function aM(t){var e,n,i=t.chart,r=t.options,o=r.xAxis,a=r.yAxis,s=r.xField,l=r.yField;return Rw((e={},e[s]=o,e[l[0]]=a[0],e))(_b({},t,{chart:Cb(i,HS)})),Rw((n={},n[s]=o,n[l[1]]=a[1],n))(_b({},t,{chart:Cb(i,XS)})),t}function sM(t){var e=t.chart,n=t.options,i=Cb(e,HS),r=Cb(e,XS),o=n.xField,a=n.yField,s=n.xAxis,l=n.yAxis;return e.axis(o,!1),e.axis(a[0],!1),e.axis(a[1],!1),i.axis(o,s),i.axis(a[0],KS(l[0],VS.Left)),r.axis(o,!1),r.axis(a[1],KS(l[1],VS.Right)),t}function lM(t){var e=t.chart,n=t.options,i=n.tooltip,r=Cb(e,HS),o=Cb(e,XS);return e.tooltip(i),r.tooltip({shared:!0}),o.tooltip({shared:!0}),t}function uM(t){var e=t.chart;return Iw(_b({},t,{chart:Cb(e,HS)})),Iw(_b({},t,{chart:Cb(e,XS)})),t}function cM(t){var e=t.chart,n=t.options,i=n.annotations,r=(0,S.U2)(i,[0]),o=(0,S.U2)(i,[1]);return zw(r)(_b({},t,{chart:Cb(e,HS),options:{annotations:r}})),zw(o)(_b({},t,{chart:Cb(e,XS),options:{annotations:o}})),t}function hM(t){var e=t.chart;return Dw(_b({},t,{chart:Cb(e,HS)})),Dw(_b({},t,{chart:Cb(e,XS)})),Dw(t),t}function pM(t){var e=t.chart;return Bw(_b({},t,{chart:Cb(e,HS)})),Bw(_b({},t,{chart:Cb(e,XS)})),t}function fM(t){var e=t.chart,n=t.options,i=n.yAxis;return _w(_b({},t,{chart:Cb(e,HS),options:{yAxis:i[0]}})),_w(_b({},t,{chart:Cb(e,XS),options:{yAxis:i[1]}})),t}function dM(t){var e=t.chart,n=t.options,i=n.legend,r=n.geometryOptions,o=n.yField,a=n.data,s=Cb(e,HS),l=Cb(e,XS);if(!1===i)e.legend(!1);else if((0,S.Kn)(i)&&!0===i.custom)e.legend(i);else{var u=(0,S.U2)(r,[0,"legend"],i),c=(0,S.U2)(r,[1,"legend"],i);e.once("beforepaint",(function(){var t=a[0].length?$S({view:s,geometryOption:r[0],yField:o[0],legend:u}):[],n=a[1].length?$S({view:l,geometryOption:r[1],yField:o[1],legend:c}):[];e.legend(_b({},i,{custom:!0,items:t.concat(n)}))})),r[0].seriesField&&s.legend(r[0].seriesField,u),r[1].seriesField&&l.legend(r[1].seriesField,c),e.on("legend-item:click",(function(t){var n=(0,S.U2)(t,"gEvent.delegateObject",{});if(n&&n.item){var i=n.item,r=i.value,a=i.isGeometry,s=i.viewId;if(a){var l=(0,S.cx)(o,(function(t){return t===r}));if(l>-1){var u=(0,S.U2)(Cb(e,s),"geometries");(0,S.S6)(u,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var c=(0,S.U2)(e.getController("legend"),"option.items",[]);(0,S.S6)(e.views,(function(t){var n=t.getGroupScales();(0,S.S6)(n,(function(e){e.values&&e.values.indexOf(r)>-1&&t.filter(e.field,(function(t){var e=(0,S.sE)(c,(function(e){return e.value===t}));return!e.unchecked}))})),e.render(!0)}))}}}))}return t}function gM(t){var e=t.chart,n=t.options,i=n.slider,r=Cb(e,HS),o=Cb(e,XS);return i&&(r.option("slider",i),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,i=e.originValue;(0,S.Xy)(n,i)||eM(o,n)})),e.once("afterpaint",(function(){if(!(0,S.jn)(i)){var t=i.start,e=i.end;(t||e)&&eM(o,[t,e])}}))),t}function vM(t){return pb(nM,iM,hM,rM,aM,sM,fM,lM,uM,cM,pM,oM,dM,gM)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}(0,C.ZT)(e,t),e.prototype.getDefaultOptions=function(){return _b({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return vM}})(uw);var mM="x",yM="y",xM={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+(0,S.U2)(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},bM={appendPadding:2,tooltip:(0,C.pi)({},xM),animation:{}};function wM(t){return(0,S.UI)(t||[],(function(t,e){return{x:""+e,y:t}}))}function AM(t){var e=t.chart,n=t.options,i=n.data,r=n.color,o=n.areaStyle,a=n.point,s=n.line,l=null===a||void 0===a?void 0:a.state,u=wM(i);e.data(u);var c=_b({},t,{options:{xField:mM,yField:yM,area:{color:r,style:o},line:s,point:a}}),h=_b({},c,{options:{tooltip:!1}}),p=_b({},c,{options:{tooltip:!1,state:l}});return Xw(c),Gw(h),Ww(p),e.axis(!1),e.legend(!1),t}function CM(t){var e,n,i=t.options,r=i.xAxis,o=i.yAxis,a=i.data,s=wM(a);return pb(Rw((e={},e[mM]=r,e[yM]=o,e),(n={},n[mM]={type:"cat"},n[yM]=Qb(s,yM),n)))(t)}function SM(t){return pb(Ew("areaStyle"),AM,CM,Tw,Dw,Bw,zw())(t)}function MM(t){var e=t.chart,n=t.options,i=n.data,r=n.color,o=n.lineStyle,a=n.point,s=null===a||void 0===a?void 0:a.state,l=wM(i);e.data(l);var u=_b({},t,{options:{xField:mM,yField:yM,line:{color:r,style:o},point:a}}),c=_b({},u,{options:{tooltip:!1,state:s}});return Gw(u),Ww(c),e.axis(!1),e.legend(!1),t}function kM(t){return pb(MM,CM,Dw,Tw,Bw,zw())(t)}var EM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return bM},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;CM({chart:n,options:i}),n.changeData(wM(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return kM},e}(uw);function FM(t){var e=t.chart,n=t.options,i=n.data,r=n.color,o=n.columnStyle,a=n.columnWidthRatio,s=wM(i);e.data(s);var l=_b({},t,{options:{xField:mM,yField:yM,widthRatio:a,interval:{style:o,color:r}}});return Qw(l),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function TM(t){return pb(Dw,Ew("columnStyle"),FM,CM,Tw,Bw,zw())(t)}var IM={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+(0,S.U2)(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},BM={appendPadding:2,tooltip:(0,C.pi)({},IM),animation:{}},DM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return BM},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;CM({chart:n,options:i}),n.changeData(wM(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return TM},e}(uw),PM={appendPadding:2,tooltip:(0,C.pi)({},xM),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},LM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return PM},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;CM({chart:n,options:i}),n.changeData(wM(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return SM},e}(uw);function OM(t,e,n){if(1===n)return[0,e];var i=Math.floor(t/e);return[e*i,e*(i+1)]}function RM(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function zM(t,e,n,i,r){var o=(0,S.d9)(t);(0,S.MR)(o,e);var a=(0,S.I)(o,e),s=(0,S.rx)(a),l=s.max-s.min,u=n;if(!n&&i&&(u=i>1?l/(i-1):s.max),!n&&!i){var c=RM(a);u=l/c}var h={},p=(0,S.vM)(o,r);(0,S.xb)(p)?(0,S.S6)(o,(function(t){var n=t[e],r=OM(n,u,i),o=r[0]+"-"+r[1];(0,S.wH)(h,o)||(h[o]={range:r,count:0}),h[o].count+=1})):Object.keys(p).forEach((function(t){(0,S.S6)(p[t],(function(n){var o=n[e],a=OM(o,u,i),s=a[0]+"-"+a[1],l=s+"-"+t;(0,S.wH)(h,l)||(h[l]={range:a,count:0},h[l][r]=t),h[l].count+=1}))}));var f=[];return(0,S.S6)(h,(function(t){f.push(t)})),f}var _M="range",UM="count",NM=_b({},uw.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function VM(t){var e=t.chart,n=t.options,i=n.data,r=n.binField,o=n.binNumber,a=n.binWidth,s=n.color,l=n.stackField,u=n.legend,c=n.columnStyle,h=zM(i,r,a,o,l);e.data(h);var p=_b({},t,{options:{xField:_M,yField:UM,seriesField:l,isStack:!0,interval:{color:s,style:c}}});return Qw(p),u&&l&&e.legend(l,u),t}function YM(t){var e,n=t.options,i=n.xAxis,r=n.yAxis;return pb(Rw((e={},e[_M]=i,e[UM]=r,e)))(t)}function HM(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis;return!1===i?e.axis(_M,!1):e.axis(_M,i),!1===r?e.axis(UM,!1):e.axis(UM,r),t}function XM(t){var e=t.chart,n=t.options,i=n.label,r=xb(e,"interval");if(i){var o=i.callback,a=(0,C._T)(i,["callback"]);r.label({fields:[UM],callback:o,cfg:kb(a)})}else r.label(!1);return t}function GM(t){return pb(Dw,Ew("columnStyle"),VM,YM,HM,Pw,XM,Tw,Iw,Bw)(t)}var WM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return NM},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,i=e.binNumber,r=e.binWidth,o=e.stackField;this.chart.changeData(zM(t,n,r,i,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return GM},e}(uw),jM=["#FAAD14","#E8EDF3"],QM={percent:.2,color:jM,animation:{}};function ZM(t){var e=(0,S.uZ)(Wb(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]}function qM(t){var e=t.chart,n=t.options,i=n.percent,r=n.progressStyle,o=n.color,a=n.barWidthRatio;e.data(ZM(i));var s=_b({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:a,interval:{style:r,color:(0,S.HD)(o)?[o,jM[1]]:o},args:{zIndexReversed:!0,sortZIndex:!0}}});return Qw(s),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function JM(t){var e=t.chart;return e.coordinate("rect").transpose(),t}function KM(t){return pb(qM,Rw({}),JM,Bw,Dw,zw())(t)}var $M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return QM},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(ZM(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return KM},e}(uw);function tk(t){var e=t.chart,n=t.options,i=n.innerRadius,r=n.radius;return e.coordinate("theta",{innerRadius:i,radius:r}),t}function ek(t,e){var n=t.chart,i=t.options,r=i.innerRadius,o=i.statistic,a=i.percent,s=i.meta;if(n.getController("annotation").clear(!0),r&&o){var l=(0,S.U2)(s,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},u=o.content;u&&(u=_b({},u,{content:(0,S.UM)(u.content)?l(a):u.content})),Hb(n,{statistic:(0,C.pi)((0,C.pi)({},o),{content:u}),plotType:"ring-progress"},{percent:a})}return e&&n.render(!0),t}function nk(t){return pb(qM,Rw({}),tk,ek,Bw,Dw,zw())(t)}var ik={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},rk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return ik},e.prototype.changeData=function(t){this.chart.emit(M.BEFORE_CHANGE_DATA,Bu.fromData(this.chart,M.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(ZM(t)),ek({chart:this.chart,options:this.options},!0),this.chart.emit(M.AFTER_CHANGE_DATA,Bu.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return nk},e}(uw);function ok(t){var e=t.chart,n=t.options,i=n.data,r=n.type,o=n.xField,a=n.yField,s=n.colorField,l=n.sizeField,u=n.sizeRatio,c=n.shape,h=n.color,p=n.tooltip,f=n.heatmapStyle;e.data(i);var d="polygon";"density"===r&&(d="heatmap");var g=Nw(p,[o,a,s]),v=g.fields,m=g.formatter,y=1;return(u||0===u)&&(c||l?u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):y=u:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),Hw(_b({},t,{options:{type:d,colorField:s,tooltipFields:v,shapeField:l||"",label:void 0,mapping:{tooltip:m,shape:c&&(l?function(t){var e=i.map((function(t){return t[l]})),n=Math.min.apply(Math,e),r=Math.max.apply(Math,e);return[c,((0,S.U2)(t,l)-n)/(r-n),y]}:function(){return[c,1,y]}),color:h||s&&e.getTheme().sequenceColors.join("-"),style:f}}})),t}function ak(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return pb(Rw((e={},e[o]=i,e[a]=r,e)))(t)}function sk(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(a,!1):e.axis(a,r),t}function lk(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,o=n.sizeField,a=n.sizeLegend,s=!1!==i;return r&&e.legend(r,!!s&&i),o&&e.legend(o,void 0===a?i:a),s||a||e.legend(!1),t}function uk(t){var e=t.chart,n=t.options,i=n.label,r=n.colorField,o=n.type,a=xb(e,"density"===o?"heatmap":"polygon");if(i){if(r){var s=i.callback,l=(0,C._T)(i,["callback"]);a.label({fields:[r],callback:s,cfg:kb(l)})}}else a.label(!1);return t}function ck(t){var e=t.chart,n=t.options,i=n.coordinate,r=n.reflect;return i&&e.coordinate({type:i.type||"rect",cfg:i.cfg}),r&&e.coordinate().reflect(r),t}function hk(t){return pb(Dw,Ew("heatmapStyle"),ak,ck,ok,sk,lk,Tw,uk,zw(),Iw,Bw,Pw)(t)}var pk=_b({},uw.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});gc("polygon","circle",{draw:function(t,e){var n,i,r=t.x,o=t.y,a=this.parsePoints(t.points),s=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),u=Math.min(s,l)/2,c=Number(t.shape[1]),h=Number(t.shape[2]),p=Math.sqrt(h),f=u*p*Math.sqrt(c),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill),g=e.addShape("circle",{attrs:(0,C.pi)((0,C.pi)((0,C.pi)({x:r,y:o,r:f},t.defaultStyle),t.style),{fill:d})});return g}}),gc("polygon","square",{draw:function(t,e){var n,i,r=t.x,o=t.y,a=this.parsePoints(t.points),s=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),u=Math.min(s,l),c=Number(t.shape[1]),h=Number(t.shape[2]),p=Math.sqrt(h),f=u*p*Math.sqrt(c),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill),g=e.addShape("rect",{attrs:(0,C.pi)((0,C.pi)((0,C.pi)({x:r-f/2,y:o-f/2,width:f,height:f},t.defaultStyle),t.style),{fill:d})});return g}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return pk},e.prototype.getSchemaAdaptor=function(){return hk},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(uw);var fk,dk="$$range$$",gk="low-q1-median-q3-high",vk="$$y_outliers$$",mk="outliers_view",yk=_b({},uw.getDefaultOptions(),{meta:(fk={},fk[dk]={min:0,alias:gk},fk),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),xk=function(t,e){var n=t;if(Array.isArray(e)){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4];n=(0,S.UI)(t,(function(t){return t[dk]=[t[i],t[r],t[o],t[a],t[s]],t}))}return n};function bk(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.groupField,a=n.color,s=n.tooltip,l=n.boxStyle;e.data(xk(n.data,r));var u=(0,S.kJ)(r)?dk:r,c=r?(0,S.kJ)(r)?r:[r]:[],h=s;!1!==h&&(h=_b({},{fields:(0,S.kJ)(r)?r:[]},h));var p=Jw(_b({},t,{options:{xField:i,yField:u,seriesField:o,tooltip:h,rawFields:c,label:!1,schema:{shape:"box",color:a,style:l}}})).ext;return o&&p.geometry.adjust("dodge"),t}function wk(t){var e=t.chart,n=t.options,i=n.xField,r=n.data,o=n.outliersField,a=n.outliersStyle,s=n.padding,l=n.label;if(!o)return t;var u=e.createView({padding:s,id:mk}),c=r.reduce((function(t,e){var n=e[o];return n.forEach((function(n){var i;return t.push((0,C.pi)((0,C.pi)({},e),(i={},i[o]=n,i)))})),t}),[]);return u.data(c),Ww({chart:u,options:{xField:i,yField:o,point:{shape:"circle",style:a},label:l}}),u.axis(!1),t}function Ak(t){var e,n,i=t.chart,r=t.options,o=r.meta,a=r.xAxis,s=r.yAxis,l=r.xField,u=r.yField,c=r.outliersField,h=Array.isArray(u)?dk:u,p={};if(c){var f=vk;e={},e[c]={sync:f,nice:!0},e[h]={sync:f,nice:!0},p=e}var d=_b(p,o,(n={},n[l]=fb(a,cw),n[h]=fb(s,cw),n));return i.scale(d),t}function Ck(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?dk:a;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(dk,!1):e.axis(s,r),t}function Sk(t){var e=t.chart,n=t.options,i=n.legend,r=n.groupField;return r?i?e.legend(r,i):e.legend(r,{position:"bottom"}):e.legend(!1),t}function Mk(t){return pb(bk,wk,Ak,Ck,Sk,Tw,Iw,Bw,Dw)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return yk},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return t.id===mk}));n&&n.data(t),this.chart.changeData(xk(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Mk}})(uw);var kk=n(3843),Ek=n.n(kk);function Fk(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function Tk(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function Ik(t,e,n,i){n=n||0,i=i||t.length-1;while(i>n){if(i-n>600){var r=i-n+1,o=e-n+1,a=Math.log(r),s=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*s*(r-s)/r);o-r/2<0&&(l*=-1);var u=Math.max(n,Math.floor(e-o*s/r+l)),c=Math.min(i,Math.floor(e+(r-o)*s/r+l));Ik(t,e,u,c)}var h=t[e],p=n,f=i;Tk(t,n,e),t[i]>h&&Tk(t,n,i);while(p<f){Tk(t,p,f),p++,f--;while(t[p]<h)p++;while(t[f]>h)f--}t[n]===h?Tk(t,n,f):(f++,Tk(t,f,i)),f<=e&&(n=f+1),e<=f&&(i=f-1)}}function Bk(t,e){var n=t.slice();if(Array.isArray(e)){Pk(n,e);for(var i=[],r=0;r<e.length;r++)i[r]=Fk(n,e[r]);return i}var o=Ok(n.length,e);return Dk(n,o,0,n.length-1),Fk(n,e)}function Dk(t,e,n,i){e%1===0?Ik(t,e,n,i):(e=Math.floor(e),Ik(t,e,n,i),Ik(t,e+1,e+1,i))}function Pk(t,e){for(var n=[0],i=0;i<e.length;i++)n.push(Ok(t.length,e[i]));n.push(t.length-1),n.sort(Lk);var r=[0,n.length-1];while(r.length){var o=Math.ceil(r.pop()),a=Math.floor(r.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);Dk(t,n[s],Math.floor(n[a]),Math.ceil(n[o])),r.push(a,s,s,o)}}}function Lk(t,e){return t-e}function Ok(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!==0?Math.ceil(n)-1:t%2===0?n-.5:n}var Rk=function(t){return{low:(0,S.VV)(t),high:(0,S.Fp)(t),q1:Bk(t,.25),q3:Bk(t,.75),median:Bk(t,[.5]),minMax:[(0,S.VV)(t),(0,S.Fp)(t)],quantile:[Bk(t,.25),Bk(t,.75)]}},zk=function(t,e){var n=Ek().create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}},_k=function(t){var e=t.xField,n=t.yField,i=t.seriesField,r=t.data,o=t.kde,a={min:o.min,max:o.max,size:o.sampleSize,width:o.width};if(!i){var s=(0,S.vM)(r,e);return Object.keys(s).map((function(t){var e=s[t],i=e.map((function(t){return t[n]}));return(0,C.pi)((0,C.pi)({x:t},zk(i,a)),Rk(i))}))}var l=[],u=(0,S.vM)(r,i);return Object.keys(u).forEach((function(t){var r=(0,S.vM)(u[t],e);return Object.keys(r).forEach((function(e){var o,s=r[e],u=s.map((function(t){return t[n]}));l.push((0,C.pi)((0,C.pi)((o={x:e},o[i]=t,o),zk(u,a)),Rk(u)))}))})),l},Uk="x",Nk="violinY",Vk="violinSize",Yk="minMax",Hk="quantile",Xk="median",Gk="violin_view",Wk="min_max_view",jk="quantile_view",Qk="median_view",Zk=_b({},uw.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),qk=["low","high","q1","q3","median"],Jk=[{type:"dodge",marginRatio:1/32}];function Kk(t){var e=t.chart,n=t.options;return e.data(_k(n)),t}function $k(t){var e=t.chart,n=t.options,i=n.seriesField,r=n.color,o=n.shape,a=void 0===o?"violin":o,s=n.violinStyle,l=n.tooltip,u=n.state,c=e.createView({id:Gk});return Kw({chart:c,options:{xField:Uk,yField:Nk,seriesField:i||Uk,sizeField:Vk,tooltip:(0,C.pi)({fields:qk},l),violin:{style:s,color:r,shape:a},state:u}}),c.geometries[0].adjust(Jk),t}function tE(t){var e=t.chart,n=t.options,i=n.seriesField,r=n.color,o=n.tooltip,a=n.box;if(!1===a)return t;var s=e.createView({id:Wk});Qw({chart:s,options:{xField:Uk,yField:Yk,seriesField:i||Uk,tooltip:(0,C.pi)({fields:qk},o),state:"object"===typeof a?a.state:{},interval:{color:r,size:1,style:{lineWidth:0}}}}),s.geometries[0].adjust(Jk);var l=e.createView({id:jk});Qw({chart:l,options:{xField:Uk,yField:Hk,seriesField:i||Uk,tooltip:(0,C.pi)({fields:qk},o),state:"object"===typeof a?a.state:{},interval:{color:r,size:8,style:{fillOpacity:1}}}}),l.geometries[0].adjust(Jk);var u=e.createView({id:Qk});return Ww({chart:u,options:{xField:Uk,yField:Xk,seriesField:i||Uk,tooltip:(0,C.pi)({fields:qk},o),state:"object"===typeof a?a.state:{},point:{color:r,size:1,style:{fill:"white",lineWidth:0}}}}),u.geometries[0].adjust(Jk),l.axis(!1),s.axis(!1),u.axis(!1),u.legend(!1),s.legend(!1),l.legend(!1),t}function eE(t){var e,n=t.chart,i=t.options,r=i.meta,o=i.xAxis,a=i.yAxis,s={},l=_b(s,r,(e={},e[Uk]=(0,C.pi)((0,C.pi)({sync:!0},fb(o,cw)),{type:"cat"}),e[Nk]=(0,C.pi)({sync:!0},fb(a,cw)),e[Yk]=(0,C.pi)({sync:Nk},fb(a,cw)),e[Hk]=(0,C.pi)({sync:Nk},fb(a,cw)),e[Xk]=(0,C.pi)({sync:Nk},fb(a,cw)),e));return n.scale(l),t}function nE(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=Cb(e,Gk);return!1===i?o.axis(Uk,!1):o.axis(Uk,i),!1===r?o.axis(Nk,!1):o.axis(Nk,r),e.axis(!1),t}function iE(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField,o=n.shape;if(!1===i)e.legend(!1);else{var a=r||Uk,s=(0,S.CE)(i,["selected"]);o&&o.startsWith("hollow")||(0,S.U2)(s,["marker","style","lineWidth"])||(0,S.t8)(s,["marker","style","lineWidth"],0),e.legend(a,s),(0,S.U2)(i,"selected")&&(0,S.S6)(e.views,(function(t){return t.legend(a,i)}))}return t}function rE(t){var e=t.chart,n=Cb(e,Gk);return zw()((0,C.pi)((0,C.pi)({},t),{chart:n})),t}function oE(t){var e=t.chart,n=t.options,i=n.animation;return(0,S.S6)(e.views,(function(t){"boolean"===typeof i?t.animate(i):t.animate(!0),(0,S.S6)(t.geometries,(function(t){t.animate(i)}))})),t}function aE(t){return pb(Dw,Kk,$k,tE,eE,Tw,nE,iE,Iw,rE,oE)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return Zk},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(_k(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return aE}})(uw);var sE=function(t){return function(e,n){var i=[];return i[0]=t(e[0],n[0]),i[1]=t(e[1],n[1]),i[2]=t(e[2],n[2]),i}},lE={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t?255:(t=e/255*255/(1-t/255),t>255?255:t)},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},uE=function(t){if(!lE[t])throw new Error("unknown blend mode "+t);return lE[t]};function cE(t,e,n){void 0===n&&(n="normal");var i=sE(uE(n))(hE(t),hE(e)),r=hE(t),o=r[0],a=r[1],s=r[2],l=r[3],u=hE(e),c=u[0],h=u[1],p=u[2],f=u[3],d=Number((l+f*(1-l)).toFixed(2)),g=Math.round((l*(1-f)*(o/255)+l*f*(i[0]/255)+(1-l)*f*(c/255))/d*255),v=Math.round((l*(1-f)*(a/255)+l*f*(i[1]/255)+(1-l)*f*(h/255))/d*255),m=Math.round((l*(1-f)*(s/255)+l*f*(i[2]/255)+(1-l)*f*(p/255))/d*255);return"rgba("+g+", "+v+", "+m+", "+d+")"}function hE(t){var e,n=t.replace("/s+/g","");return"string"!==typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(e=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(e=Vt.rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):Vt.rgb2arr(Vt.toRGB(n)).concat([1])}var pE=n(9916),fE=1e-10;function dE(t,e){var n,i=vE(t),r=i.filter((function(e){return gE(e,t)})),o=0,a=0,s=[];if(r.length>1){var l=wE(r);for(n=0;n<r.length;++n){var u=r[n];u.angle=Math.atan2(u.x-l.x,u.y-l.y)}r.sort((function(t,e){return e.angle-t.angle}));var c=r[r.length-1];for(n=0;n<r.length;++n){var h=r[n];a+=(c.x+h.x)*(h.y-c.y);for(var p={x:(h.x+c.x)/2,y:(h.y+c.y)/2},f=null,d=0;d<h.parentIndex.length;++d)if(c.parentIndex.indexOf(h.parentIndex[d])>-1){var g=t[h.parentIndex[d]],v=Math.atan2(h.x-g.x,h.y-g.y),m=Math.atan2(c.x-g.x,c.y-g.y),y=m-v;y<0&&(y+=2*Math.PI);var x=m-y/2,b=yE(p,{x:g.x+g.radius*Math.sin(x),y:g.y+g.radius*Math.cos(x)});b>2*g.radius&&(b=2*g.radius),(null===f||f.width>b)&&(f={circle:g,width:b,p1:h,p2:c})}null!==f&&(s.push(f),o+=mE(f.circle.radius,f.width),c=h)}}else{var w=t[0];for(n=1;n<t.length;++n)t[n].radius<w.radius&&(w=t[n]);var A=!1;for(n=0;n<t.length;++n)if(yE(t[n],w)>Math.abs(w.radius-t[n].radius)){A=!0;break}A?o=a=0:(o=w.radius*w.radius*Math.PI,s.push({circle:w,p1:{x:w.x,y:w.y+w.radius},p2:{x:w.x-fE,y:w.y+w.radius},width:2*w.radius}))}return a/=2,e&&(e.area=o+a,e.arcArea=o,e.polygonArea=a,e.arcs=s,e.innerPoints=r,e.intersectionPoints=i),o+a}function gE(t,e){for(var n=0;n<e.length;++n)if(yE(t,e[n])>e[n].radius+fE)return!1;return!0}function vE(t){for(var e=[],n=0;n<t.length;++n)for(var i=n+1;i<t.length;++i)for(var r=bE(t[n],t[i]),o=0;o<r.length;++o){var a=r[o];a.parentIndex=[n,i],e.push(a)}return e}function mE(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function yE(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function xE(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var i=t-(n*n-e*e+t*t)/(2*n),r=e-(n*n-t*t+e*e)/(2*n);return mE(t,i)+mE(e,r)}function bE(t,e){var n=yE(t,e),i=t.radius,r=e.radius;if(n>=i+r||n<=Math.abs(i-r))return[];var o=(i*i-r*r+n*n)/(2*n),a=Math.sqrt(i*i-o*o),s=t.x+o*(e.x-t.x)/n,l=t.y+o*(e.y-t.y)/n,u=-(e.y-t.y)*(a/n),c=-(e.x-t.x)*(a/n);return[{x:s+u,y:l-c},{x:s-u,y:l+c}]}function wE(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function AE(t,e){e=e||{},e.maxIterations=e.maxIterations||500;var n=e.initialLayout||FE,i=e.lossFunction||BE;t=ME(t);var r,o=n(t,e),a=[],s=[];for(r in o)o.hasOwnProperty(r)&&(a.push(o[r].x),a.push(o[r].y),s.push(r));for(var l=(0,pE.nelderMead)((function(e){for(var n={},r=0;r<s.length;++r){var a=s[r];n[a]={x:e[2*r],y:e[2*r+1],radius:o[a].radius}}return i(n,t)}),a,e),u=l.x,c=0;c<s.length;++c)r=s[c],o[r].x=u[2*c],o[r].y=u[2*c+1];return o}var CE=1e-10;function SE(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+CE?Math.abs(t-e):(0,pE.bisect)((function(i){return xE(t,e,i)-n}),0,t+e)}function ME(t){t=t.slice();var e,n,i,r,o=[],a={};for(e=0;e<t.length;++e){var s=t[e];1==s.sets.length?o.push(s.sets[0]):2==s.sets.length&&(i=s.sets[0],r=s.sets[1],a[[i,r]]=!0,a[[r,i]]=!0)}for(o.sort((function(t,e){return t>e?1:-1})),e=0;e<o.length;++e)for(i=o[e],n=e+1;n<o.length;++n)r=o[n],[i,r]in a||t.push({sets:[i,r],size:0});return t}function kE(t,e,n){var i=(0,pE.zerosM)(e.length,e.length),r=(0,pE.zerosM)(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var o=n[t.sets[0]],a=n[t.sets[1]],s=Math.sqrt(e[o].size/Math.PI),l=Math.sqrt(e[a].size/Math.PI),u=SE(s,l,t.size);i[o][a]=i[a][o]=u;var c=0;t.size+1e-10>=Math.min(e[o].size,e[a].size)?c=1:t.size<=1e-10&&(c=-1),r[o][a]=r[a][o]=c})),{distances:i,constraints:r}}function EE(t,e,n,i){var r,o=0;for(r=0;r<e.length;++r)e[r]=0;for(r=0;r<n.length;++r)for(var a=t[2*r],s=t[2*r+1],l=r+1;l<n.length;++l){var u=t[2*l],c=t[2*l+1],h=n[r][l],p=i[r][l],f=(u-a)*(u-a)+(c-s)*(c-s),d=Math.sqrt(f),g=f-h*h;p>0&&d<=h||p<0&&d>=h||(o+=2*g*g,e[2*r]+=4*g*(a-u),e[2*r+1]+=4*g*(s-c),e[2*l]+=4*g*(u-a),e[2*l+1]+=4*g*(c-s))}return o}function FE(t,e){var n=IE(t,e),i=e.lossFunction||BE;if(t.length>=8){var r=TE(t,e),o=i(r,t),a=i(n,t);o+1e-8<a&&(n=r)}return n}function TE(t,e){e=e||{};var n,i=e.restarts||10,r=[],o={};for(n=0;n<t.length;++n){var a=t[n];1==a.sets.length&&(o[a.sets[0]]=r.length,r.push(a))}var s=kE(t,r,o),l=s.distances,u=s.constraints,c=(0,pE.norm2)(l.map(pE.norm2))/l.length;l=l.map((function(t){return t.map((function(t){return t/c}))}));var h,p,f=function(t,e){return EE(t,e,l,u)};for(n=0;n<i;++n){var d=(0,pE.zeros)(2*l.length).map(Math.random);p=(0,pE.conjugateGradient)(f,d,e),(!h||p.fx<h.fx)&&(h=p)}var g=h.x,v={};for(n=0;n<r.length;++n){var m=r[n];v[m.sets[0]]={x:g[2*n]*c,y:g[2*n+1]*c,radius:Math.sqrt(m.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)(0,pE.scale)(e.history[n].x,c);return v}function IE(t,e){for(var n,i=e&&e.lossFunction?e.lossFunction:BE,r={},o={},a=0;a<t.length;++a){var s=t[a];1==s.sets.length&&(n=s.sets[0],r[n]={x:1e10,y:1e10,rowid:Object.keys(r).length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},o[n]=[])}t=t.filter((function(t){return 2==t.sets.length}));for(a=0;a<t.length;++a){var l=t[a],u=l.hasOwnProperty("weight")?l.weight:1,c=l.sets[0],h=l.sets[1];l.size+CE>=Math.min(r[c].size,r[h].size)&&(u=0),o[c].push({set:h,size:l.size,weight:u}),o[h].push({set:c,size:l.size,weight:u})}var p=[];for(n in o)if(o.hasOwnProperty(n)){var f=0;for(a=0;a<o[n].length;++a)f+=o[n][a].size*o[n][a].weight;p.push({set:n,size:f})}function d(t,e){return e.size-t.size}p.sort(d);var g={};function v(t){return t.set in g}function m(t,e){r[e].x=t.x,r[e].y=t.y,g[e]=!0}m({x:0,y:0},p[0].set);for(a=1;a<p.length;++a){var y=p[a].set,x=o[y].filter(v);if(n=r[y],x.sort(d),0===x.length)throw"ERROR: missing pairwise overlap information";for(var b=[],w=0;w<x.length;++w){var A=r[x[w].set],C=SE(n.radius,A.radius,x[w].size);b.push({x:A.x+C,y:A.y}),b.push({x:A.x-C,y:A.y}),b.push({y:A.y+C,x:A.x}),b.push({y:A.y-C,x:A.x});for(var S=w+1;S<x.length;++S)for(var M=r[x[S].set],k=SE(n.radius,M.radius,x[S].size),E=bE({x:A.x,y:A.y,radius:C},{x:M.x,y:M.y,radius:k}),F=0;F<E.length;++F)b.push(E[F])}var T=1e50,I=b[0];for(w=0;w<b.length;++w){r[y].x=b[w].x,r[y].y=b[w].y;var B=i(r,t);B<T&&(T=B,I=b[w])}m(I,y)}return r}function BE(t,e){var n=0;function i(e){return e.map((function(e){return t[e]}))}for(var r=0;r<e.length;++r){var o=e[r],a=void 0;if(1!=o.sets.length){if(2==o.sets.length){var s=t[o.sets[0]],l=t[o.sets[1]];a=xE(s.radius,l.radius,yE(s,l))}else a=dE(i(o.sets));var u=o.hasOwnProperty("weight")?o.weight:1;n+=u*(a-o.size)*(a-o.size)}}return n}function DE(t){var e=function(e){var n=Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),i=Math.min.apply(null,t.map((function(t){return t[e]-t.radius})));return{max:n,min:i}};return{xRange:e("x"),yRange:e("y")}}function PE(t,e,n,i){var r=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),r.push(t[a]));e-=2*i,n-=2*i;var s=DE(r),l=s.xRange,u=s.yRange;if(l.max==l.min||u.max==u.min)return console.log("not scaling solution: zero size detected"),t;for(var c=e/(l.max-l.min),h=n/(u.max-u.min),p=Math.min(h,c),f=(e-(l.max-l.min)*p)/2,d=(n-(u.max-u.min)*p)/2,g={},v=0;v<r.length;++v){var m=r[v];g[o[v]]={radius:p*m.radius,x:i+f+(m.x-l.min)*p,y:i+d+(m.y-u.min)*p}}return g}function LE(t,e,n){var i,r,o=e[0].radius-yE(e[0],t);for(i=1;i<e.length;++i)r=e[i].radius-yE(e[i],t),r<=o&&(o=r);for(i=0;i<n.length;++i)r=yE(n[i],t)-n[i].radius,r<=o&&(o=r);return o}function OE(t,e){var n,i=[];for(n=0;n<t.length;++n){var r=t[n];i.push({x:r.x,y:r.y}),i.push({x:r.x+r.radius/2,y:r.y}),i.push({x:r.x-r.radius/2,y:r.y}),i.push({x:r.x,y:r.y+r.radius/2}),i.push({x:r.x,y:r.y-r.radius/2})}var o=i[0],a=LE(i[0],t,e);for(n=1;n<i.length;++n){var s=LE(i[n],t,e);s>=a&&(o=i[n],a=s)}var l=(0,pE.nelderMead)((function(n){return-1*LE({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:l[0],y:l[1]},c=!0;for(n=0;n<t.length;++n)if(yE(u,t[n])>t[n].radius){c=!1;break}for(n=0;n<e.length;++n)if(yE(u,e[n])<e[n].radius){c=!1;break}if(!c)if(1==t.length)u={x:t[0].x,y:t[0].y};else{var h={};dE(t,h),u=0===h.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==h.arcs.length?{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y}:e.length?OE(t,[]):wE(h.arcs.map((function(t){return t.p1})))}return u}function RE(t){var e={},n=[];for(var i in t)n.push(i),e[i]=[];for(var r=0;r<n.length;r++)for(var o=t[n[r]],a=r+1;a<n.length;++a){var s=t[n[a]],l=yE(o,s);l+s.radius<=o.radius+1e-10?e[n[a]].push(n[r]):l+o.radius<=s.radius+1e-10&&e[n[r]].push(n[a])}return e}function zE(t,e){for(var n={},i=RE(t),r=0;r<e.length;++r){for(var o=e[r].sets,a={},s={},l=0;l<o.length;++l){a[o[l]]=!0;for(var u=i[o[l]],c=0;c<u.length;++c)s[u[c]]=!0}var h=[],p=[];for(var f in t)f in a?h.push(t[f]):f in s||p.push(t[f]);var d=OE(h,p);n[o]=d,d.disjoint&&e[r].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return n}function _E(t,e,n){var i=[],r=t-n,o=e;return i.push("M",r,o),i.push("A",n,n,0,1,0,r+2*n,o),i.push("A",n,n,0,1,0,r,o),i.join(" ")}function UE(t){var e={};dE(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var i=n[0].circle;return _E(i.x,i.y,i.radius)}for(var r=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var a=n[o],s=a.circle.radius,l=a.width>s;r.push("\nA",s,s,0,l?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}var NE="id",VE="path",YE={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]},HE=(0,S.HP)((function(t,e,n,i){var r=new Map,o=t.length;return e.forEach((function(e,a){if(1===e[i].length)r.set(e[NE],t[(a+o)%o]);else{var s=e[i].map((function(t){return r.get(t)}));r.set(e[NE],s.slice(1).reduce((function(t,e){return cE(t,e,n)}),s[0]))}})),r}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)}));function XE(t,e,n,i){void 0===i&&(i=0);var r=t.data,o=t.setsField,a=t.sizeField;if(0===r.length)return mb(ib.WARN,!1,"warn: %s","数据不能为空"),[];var s=r.map((function(t){var e;return(0,C.pi)((0,C.pi)({},t),(e={sets:t[o]||[],size:t[a]},e[VE]="",e[NE]="",e))}));s.sort((function(t,e){return t.sets.length-e.sets.length}));var l=AE(s),u=PE(l,e,n,i),c=zE(u,s);return s.forEach((function(t){var e=t.sets,n=e.join(",");t[NE]=n;var i=e.map((function(t){return u[t]})),r=UE(i);/[zZ]$/.test(r)||(r+=" Z"),t[VE]=r;var o=c[n]||{x:0,y:0};(0,S.f0)(t,o)})),s}function GE(t,e){for(var n=0;n<e.length;n++)if(!t.includes(e[n]))return!1;return!0}function WE(t){return _b({},t.defaultStyle,{fill:t.color},t.style)}gc("schema","venn",{draw:function(t,e){var n=t.data,i=(0,Aa.tr)(n[VE]),r=WE(t),o=e.addGroup({name:"venn-shape"});o.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},r),{path:i}),name:"venn-path"});var a=t.customInfo,s=a.offsetX,l=a.offsetY,u=lh.transform(null,[["t",s,l]]);return o.setMatrix(u),o},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var jE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getLabelPoint=function(t,e,n){var i=t.data,r=i.x,o=i.y,a=t.customLabelInfo,s=a.offsetX,l=a.offsetY;return{content:t.content[n],x:r+s,y:o+l}},e}(zc);function QE(t){if(t){var e=t.geometries[0].elements;e.forEach((function(t){t.shape.toFront()}))}}lc("venn",jE);var ZE=js("element-active"),qE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.syncElementsPos=function(){QE(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(ZE),JE=js("element-highlight"),KE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.syncElementsPos=function(){QE(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(JE),$E=js("element-selected"),tF=js("element-single-selected"),eF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.syncElementsPos=function(){QE(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}($E),nF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.syncElementsPos=function(){QE(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(tF);Qs("venn-element-active",qE),Qs("venn-element-highlight",KE),Qs("venn-element-selected",eF),Qs("venn-element-single-selected",nF),Gl("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Gl("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Gl("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Gl("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Gl("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Gl("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var iF=40;function rF(t,e,n){var i=t.chart,r=t.options,o=r.blendMode,a=r.setsField,s=i.getTheme(),l=s.colors10,u=s.colors20,c=n;(0,S.kJ)(c)||(c=e.filter((function(t){return 1===t[a].length})).length<=10?l:u);var h=HE(c,e,o,a);return function(t){return h.get(t)||c[0]}}function oF(t,e){var n=t.options,i=n.color;if("function"!==typeof i){var r="string"===typeof i?[i]:i,o=rF(t,e,r);return function(t){return o(t[NE])}}return i}function aF(t){var e=t.chart,n=t.options,i=n.legend,r=n.appendPadding,o=n.padding,a=Jb(r);return!1!==i&&(a=Kb(r,(0,S.U2)(i,"position"),iF)),e.appendPadding=$b([a,o]),t}function sF(t){var e=t.options,n=e["data"];n||(mb(ib.WARN,!1,"warn: %s","数据不能为空"),n=[]);var i=n.filter((function(t){return 1===t.sets.length})).map((function(t){return t.sets[0]})),r=n.filter((function(t){var e=t.sets;return GE(i,e)}));return(0,S.Xy)(r,n)||mb(ib.WARN,!1,"warn: %s","交集中不能出现不存在的集合, 请输入合法数据"),(0,S.b$)({},t,{options:{data:r}})}function lF(t){var e=t.chart,n=t.options,i=n.pointStyle,r=n.setsField,o=n.sizeField,a=Jb(e.appendPadding),s=a[0],l=a[1],u=a[2],c=a[3],h={offsetX:c,offsetY:s},p=e.viewBBox,f=p.width,d=p.height,g=XE(n,Math.max(f-(l+c),0),Math.max(d-(s+u),0),0);e.data(g);var v=Jw(_b({},t,{options:{xField:"x",yField:"y",sizeField:o,seriesField:NE,rawFields:[r,o],schema:{shape:"venn",style:i}}})).ext,m=v.geometry;m.customInfo(h);var y=oF(t,g);return"function"===typeof y&&m.color(NE,(function(e){var n=g.find((function(t){return t[NE]===e})),i=rF(t,g)(e);return y(n,i)})),t}function uF(t){var e=t.chart,n=t.options,i=n.label,r=Jb(e.appendPadding),o=r[0],a=r[3],s={offsetX:a,offsetY:o},l=xb(e,"schema");if(i){var u=i.callback,c=(0,C._T)(i,["callback"]);l.label({fields:["id"],callback:u,cfg:(0,S.b$)({},kb(c),{type:"venn",customLabelInfo:s})})}else l.label(!1);return t}function cF(t){var e=t.chart,n=t.options,i=n.legend,r=n.sizeField;return e.legend(NE,i),e.legend(r,!1),t}function hF(t){var e=t.chart;return e.axis(!1),t}function pF(t){var e=t.options,n=t.chart,i=e.interactions;if(i){var r={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};Iw(_b({},t,{options:{interactions:i.map((function(t){return(0,C.pi)((0,C.pi)({},t),{type:r[t.type]||t.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),t}function fF(t){return pb(aF,Dw,sF,lF,uF,Rw({}),cF,hF,Tw,pF,Bw)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="venn",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return YE},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return fF},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}})(uw);var dF="$$stock-range$$",gF="trend",vF="up",mF="down",yF={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var i;if("x"===t){var r=n[0];i=r?r.title:e}else i=e;return{position:"y"===t?"start":"end",content:i,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},xF=_b({},uw.getDefaultOptions(),{tooltip:yF,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"});function bF(t,e){return(0,S.UI)(t,(function(t){if((0,S.kJ)(e)){var n=e[0],i=e[1],r=e[2],o=e[3];t[gF]=t[n]<=t[i]?vF:mF,t[dF]=[t[n],t[i],t[r],t[o]]}return t}))}function wF(t){var e=t.chart,n=t.options,i=n.yField,r=n.data,o=n.risingFill,a=n.fallingFill,s=n.tooltip,l=n.stockStyle;e.data(bF(r,i));var u=s;return!1!==u&&(u=_b({},{fields:i},u)),Jw(_b({},t,{options:{schema:{shape:"candle",color:[o,a],style:l},yField:dF,seriesField:gF,rawFields:i,tooltip:u}})),t}function AF(t){var e,n,i=t.chart,r=t.options,o=r.meta,a=r.xAxis,s=r.yAxis,l=r.xField,u=(e={},e[l]={type:"timeCat",tickCount:6},e[gF]={values:[vF,mF]},e),c=_b(u,o,(n={},n[l]=fb(a,cw),n[dF]=fb(s,cw),n));return i.scale(c),t}function CF(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(dF,!1):e.axis(dF,r),t}function SF(t){var e=t.chart,n=t.options,i=n.tooltip;return!1!==i?e.tooltip(i):e.tooltip(!1),t}function MF(t){var e=t.chart,n=t.options,i=n.legend;return i?e.legend(gF,i):!1===i&&e.legend(!1),t}function kF(t){pb(Dw,wF,AF,CF,SF,MF,Iw,Bw,zw(),Lw)(t)}var EF,FF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return xF},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return kF},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(bF(t,e))},e}(uw),TF="$$percentage$$",IF="$$mappingValue$$",BF="$$conversion$$",DF="$$totalPercentage$$",PF="$$x$$",LF="$$y$$",OF={appendPadding:[0,80],minSize:0,maxSize:1,meta:(EF={},EF[IF]={min:0,max:1,nice:!1},EF),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}};function RF(t,e,n){var i=[],r=n.yField,o=n.maxSize,a=n.minSize,s=(0,S.U2)((0,S.UT)(e,r),[r]),l=(0,S.hj)(o)?o:1,u=(0,S.hj)(a)?a:0;return i=(0,S.UI)(t,(function(e,n){var i=(e[r]||0)/s;return e[TF]=i,e[IF]=(l-u)*i+u,e[BF]=[(0,S.U2)(t,[n-1,r]),e[r]],e})),i}function zF(t){return function(e){var n=e.chart,i=e.options,r=i.conversionTag,o=n.getOptions().data;if(r){var a=r.formatter;o.forEach((function(e,i){if(!(i<=0||Number.isNaN(e[IF]))){var s=t(e,i,o,{top:!0,text:{content:(0,S.mf)(a)?a(e,o):a,offsetX:r.offsetX,offsetY:r.offsetY,position:"end",autoRotate:!1,style:(0,C.pi)({textAlign:"start",textBaseline:"middle"},r.style)}});n.annotation().line(s)}}))}return e}}function _F(t){var e=t.chart,n=t.options,i=n.data,r=void 0===i?[]:i,o=n.yField,a=n.maxSize,s=n.minSize,l=RF(r,r,{yField:o,maxSize:a,minSize:s});return e.data(l),t}function UF(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.shape,u=void 0===l?"funnel":l,c=n.funnelStyle,h=n.state,p=Nw(a,[i,r]),f=p.fields,d=p.formatter;Hw({chart:e,options:{type:"interval",xField:i,yField:IF,colorField:i,tooltipFields:(0,S.kJ)(f)&&f.concat([TF,BF]),mapping:{shape:u,tooltip:d,color:o,style:c},label:s,state:h}});var g=xb(t.chart,"interval");return g.adjust("symmetric"),t}function NF(t){var e=t.chart,n=t.options,i=n.isTransposed;return e.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),t}function VF(t){var e=t.options,n=e.maxSize,i=function(t,e,i,r){var o=n-(n-t[IF])/2;return(0,C.pi)((0,C.pi)({},r),{start:[e-.5,o],end:[e-.5,o+.05]})};return zF(i)(t),t}function YF(t){return pb(_F,UF,NF,VF)(t)}function HF(t){var e,n=t.chart,i=t.options,r=i.data,o=void 0===r?[]:r,a=i.yField;return n.data(o),n.scale((e={},e[a]={sync:!0},e)),t}function XF(t){var e=t.chart,n=t.options,i=n.data,r=n.xField,o=n.yField,a=n.color,s=n.compareField,l=n.isTransposed,u=n.tooltip,c=n.maxSize,h=n.minSize,p=n.label,f=n.funnelStyle,d=n.state,g=n.showFacetTitle;return e.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:g,eachView:function(t,e){var n=l?e.rowIndex:e.columnIndex;l||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var g=RF(e.data,i,{yField:o,maxSize:c,minSize:h});t.data(g);var v=Nw(u,[r,o,s]),m=v.fields,y=v.formatter,x=l?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};Hw({chart:t,options:{type:"interval",xField:r,yField:IF,colorField:r,tooltipFields:(0,S.kJ)(m)&&m.concat([TF,BF]),mapping:{shape:"funnel",tooltip:y,color:a,style:f},label:!1!==p&&_b({},x,p),state:d}})}}),t}function GF(t){var e=t.chart,n=t.options,i=n.conversionTag,r=n.isTransposed;return e.once("beforepaint",(function(){e.views.forEach((function(t,e){var o=function(t,n,o,a){var s=0===e?-1:1;return _b({},a,{start:[n-.5,t[IF]],end:[n-.5,t[IF]+.05],text:r?{style:{textAlign:"start"}}:{offsetX:!1!==i?s*i.offsetX:0,style:{textAlign:0===e?"end":"start"}}})};zF(o)(_b({},{chart:t,options:n}))}))})),t}function WF(t){return pb(HF,XF,GF)(t)}function jF(t){var e,n=t.chart,i=t.options,r=i.data,o=void 0===r?[]:r,a=i.yField;return n.data(o),n.scale((e={},e[a]={sync:!0},e)),t}function QF(t){var e=t.chart,n=t.options,i=n.seriesField,r=n.isTransposed,o=n.showFacetTitle;return e.facet("rect",{fields:[i],padding:[r?0:32,10,0,10],showTitle:o,eachView:function(e,n){YF(_b({},t,{chart:e,options:{data:n.data}}))}}),t}function ZF(t){return pb(jF,QF)(t)}function qF(t){var e=t.chart,n=t.options,i=n.data,r=void 0===i?[]:i,o=n.yField,a=(0,S.u4)(r,(function(t,e){return t+(e[o]||0)}),0),s=(0,S.UT)(r,o)[o],l=(0,S.UI)(r,(function(t,e){var n=[],i=[];if(t[DF]=(t[o]||0)/a,e){var l=r[e-1][PF],u=r[e-1][LF];n[0]=l[3],i[0]=u[3],n[1]=l[2],i[1]=u[2]}else n[0]=-.5,i[0]=1,n[1]=.5,i[1]=1;return i[2]=i[1]-t[DF],n[2]=(i[2]+1)/4,i[3]=i[2],n[3]=-n[2],t[PF]=n,t[LF]=i,t[TF]=(t[o]||0)/s,t[BF]=[(0,S.U2)(r,[e-1,o]),t[o]],t}));return e.data(l),t}function JF(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.funnelStyle,u=n.state,c=Nw(a,[i,r]),h=c.fields,p=c.formatter;return Hw({chart:e,options:{type:"polygon",xField:PF,yField:LF,colorField:i,tooltipFields:(0,S.kJ)(h)&&h.concat([TF,BF]),label:s,state:u,mapping:{tooltip:p,color:o,style:l}}}),t}function KF(t){var e=t.chart,n=t.options,i=n.isTransposed;return e.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),t}function $F(t){var e=function(t,e,n,i){return(0,C.pi)((0,C.pi)({},i),{start:[t[PF][1],t[LF][1]],end:[t[PF][1]+.05,t[LF][1]]})};return zF(e)(t),t}function tT(t){return pb(qF,JF,KF,$F)(t)}function eT(t){var e,n=t.options,i=n.compareField,r=n.xField,o=n.yField,a=n.locale,s=n.funnelStyle,l=n.data,u=iw(a),c={label:i?{fields:[r,o,i,TF,BF],formatter:function(t){return""+t[o]}}:{fields:[r,o,TF,BF],offset:0,position:"middle",formatter:function(t){return t[r]+" "+t[o]}},tooltip:{title:r,formatter:function(t){return{name:t[r],value:t[o]}}},conversionTag:{formatter:function(t){return u.get(["conversionTag","label"])+": "+xA.apply(void 0,t[BF])}}};return(i||s)&&(e=function(t){return _b({},i&&{lineWidth:1,stroke:"#fff"},(0,S.mf)(s)?s(t):s)}),_b({options:c},t,{options:{funnelStyle:e,data:(0,S.d9)(l)}})}function nT(t){var e=t.options,n=e.compareField,i=e.dynamicHeight,r=e.seriesField;return r?ZF(t):n?WF(t):i?tT(t):YF(t)}function iT(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return pb(Rw((e={},e[o]=i,e[a]=r,e)))(t)}function rT(t){var e=t.chart;return e.axis(!1),t}function oT(t){var e=t.chart,n=t.options,i=n.legend;return!1===i?e.legend(!1):e.legend(i),t}function aT(t){return pb(eT,nT,iT,rT,Tw,Iw,oT,Bw,Dw,zw())(t)}var sT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return OF},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return aT},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var i=wb(this.chart);(0,S.S6)(i,(function(i){e(i.getData())&&i.setState(t,n)}))},e.prototype.getStates=function(){var t=wb(this.chart),e=[];return(0,S.S6)(t,(function(t){var n=t.getData(),i=t.getStates();(0,S.S6)(i,(function(i){e.push({data:n,state:i,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=BF,e.PERCENT_FIELD=TF,e.TOTAL_PERCENT_FIELD=DF,e}(uw),lT="liquid";function uT(t){return[{percent:t,type:lT}]}function cT(t){var e=t.chart,n=t.options,i=n.percent,r=n.liquidStyle,o=n.radius,a=n.outline,s=n.wave,l=n.shape,u=n.animation;e.scale({percent:{min:0,max:1}}),e.data(uT(i));var c=n.color||e.getTheme().defaultColor,h=_b({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:c,style:r,shape:"liquid-fill-gauge"}}}),p=Qw(h).ext,f=p.geometry,d=e.getTheme().background,g={radius:o,outline:a,wave:s,shape:l,background:d,animation:u};return f.customInfo(g),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function hT(t,e){var n=t.chart,i=t.options,r=i.statistic,o=i.percent,a=i.meta;n.getController("annotation").clear(!0);var s=(0,S.U2)(a,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},l=r.content;return l&&(l=_b({},l,{content:(0,S.UM)(l.content)?s(o):l.content})),Hb(n,{statistic:(0,C.pi)((0,C.pi)({},r),{content:l}),plotType:"liquid"},{percent:o}),e&&n.render(!0),t}function pT(t){return pb(Dw,Ew("liquidStyle"),cT,hT,Rw({}),Bw,Iw)(t)}var fT={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},dT=5e3;function gT(t,e,n){return t+(e-t)*n}function vT(t){var e=(0,C.pi)({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}function mT(t){var e={fill:"#fff",fillOpacity:0,lineWidth:4},n=(0,S.CD)({},e,t.style);return t.color&&!n.stroke&&(n.stroke=t.color),(0,S.hj)(t.opacity)&&(n.opacity=n.strokeOpacity=t.opacity),n}function yT(t,e,n,i){return 0===e?[[t+.5*n/Math.PI/2,i/2],[t+.5*n/Math.PI,i],[t+n/4,i]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),i],[t+.5*n/Math.PI/2*(Math.PI-1),i/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-i/2],[t+.5*n/Math.PI,-i],[t+n/4,-i]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-i],[t+.5*n/Math.PI/2*(Math.PI-1),-i/2],[t+n/4,0]]}function xT(t,e,n,i,r,o,a){var s=4*Math.ceil(2*t/n*4),l=[],u=i;while(u<2*-Math.PI)u+=2*Math.PI;while(u>0)u-=2*Math.PI;u=u/Math.PI/2*n;var c=o-t+u-2*t;l.push(["M",c,e]);for(var h=0,p=0;p<s;++p){var f=p%4,d=yT(p*n/4,f,n,r);l.push(["C",d[0][0]+c,-d[0][1]+e,d[1][0]+c,-d[1][1]+e,d[2][0]+c,-d[2][1]+e]),p===s-1&&(h=d[2][0])}return l.push(["L",h+c,a+t]),l.push(["L",c,a+t]),l.push(["Z"]),l}function bT(t,e,n,i,r,o,a,s,l,u){for(var c=r.fill,h=r.opacity,p=a.getBBox(),f=p.maxX-p.minX,d=p.maxY-p.minY,g=0;g<i;g++){var v=i<=1?0:g/(i-1),m=o.addShape("path",{name:"waterwave-path",attrs:{path:xT(s,p.minY+d*n,l,0,f/32,t,e),fill:c,opacity:gT(.2,.9,v)*h}});try{if(!1===u)return;var y=aC([["t",l,0]]);m.stopAnimate(),m.animate({matrix:y},{duration:gT(.5*dT,dT,v),repeat:!0})}catch(x){console.warn("off-screen group animate error!")}}}function wT(t,e,n,i){var r=2*n/3,o=Math.max(r,i),a=r/2,s=t,l=a+e-o/2,u=Math.asin(a/(.85*(o-a))),c=Math.sin(u)*a,h=Math.cos(u)*a,p=s-h,f=l+c,d=t,g=l+a/Math.sin(u);return"\n M "+p+" "+f+"\n A "+a+" "+a+" 0 1 1 "+(p+2*h)+" "+f+"\n Q "+d+" "+g+" "+t+" "+(e+o/2)+"\n Q "+d+" "+g+" "+p+" "+f+"\n Z \n "}function AT(t,e,n,i){var r=n/2,o=i/2;return"\n M "+t+" "+(e-o)+" \n a "+r+" "+o+" 0 1 0 0 "+2*o+"\n a "+r+" "+o+" 0 1 0 0 "+2*-o+"\n Z\n "}function CT(t,e,n,i){var r=i/2,o=n/2;return"\n M "+t+" "+(e-r)+"\n L "+(t+o)+" "+e+"\n L "+t+" "+(e+r)+"\n L "+(t-o)+" "+e+"\n Z\n "}function ST(t,e,n,i){var r=i/2,o=n/2;return"\n M "+t+" "+(e-r)+"\n L "+(t+o)+" "+(e+r)+"\n L "+(t-o)+" "+(e+r)+"\n Z\n "}function MT(t,e,n,i){var r=.618,o=i/2,a=n/2*r;return"\n M "+(t-a)+" "+(e-o)+"\n L "+(t+a)+" "+(e-o)+"\n L "+(t+a)+" "+(e+o)+"\n L "+(t-a)+" "+(e+o)+"\n Z\n "}var kT={pin:wT,circle:AT,diamond:CT,triangle:ST,rect:MT};gc("interval","liquid-fill-gauge",{draw:function(t,e){var n=.5,i=.5,r=t.customInfo,o=r,a=o.radius,s=o.shape,l=o.background,u=o.animation,c=r.outline,h=r.wave,p=c.border,f=c.distance,d=h.count,g=h.length,v=(0,S.u4)(t.points,(function(t,e){return Math.min(t,e.x)}),1/0),m=this.parsePoint({x:n,y:i}),y=this.parsePoint({x:v,y:i}),x=m.x-y.x,b=Math.min(x,y.y*a),w=vT(t),A=mT((0,S.CD)({},t,c)),C=b-p/2,M="function"===typeof s?s:kT[s]||kT["circle"],k=M(m.x,m.y,2*C,2*C),E=e.addGroup({name:"waves"}),F=E.setClip({type:"path",attrs:{path:k}});return bT(m.x,m.y,1-t.points[1].y,d,w,E,F,2*b,g,u),e.addShape("path",{name:"distance",attrs:{path:k,fill:"transparent",lineWidth:p+2*f,stroke:"transparent"===l?"#fff":l}}),e.addShape("path",{name:"wrap",attrs:(0,S.CD)(A,{path:k,fill:"transparent",lineWidth:p})}),e}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return fT},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(M.BEFORE_CHANGE_DATA,Bu.fromData(this.chart,M.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(uT(t)),hT({chart:this.chart,options:this.options},!0),this.chart.emit(M.AFTER_CHANGE_DATA,Bu.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return pT}})(uw);function ET(t,e,n){return t.length>1?e+"_"+n:""+e}function FT(t){var e=t.data,n=t.xField,i=t.measureField,r=t.rangeField,o=t.targetField,a=t.layout,s=[],l=[];e.forEach((function(t,e){var a=[t[r]].flat();a.sort((function(t,e){return t-e})),a.forEach((function(i,o){var l,u=0===o?i:a[o]-a[o-1];s.push((l={rKey:r+"_"+o},l[n]=n?t[n]:String(e),l[r]=u,l))}));var u=[t[i]].flat();u.forEach((function(r,o){var a;s.push((a={mKey:ET(u,i,o)},a[n]=n?t[n]:String(e),a[i]=r,a))}));var c=[t[o]].flat();c.forEach((function(i,r){var a;s.push((a={tKey:ET(c,o,r)},a[n]=n?t[n]:String(e),a[o]=i,a))})),l.push(t[r],t[i],t[o])}));var u=Math.min.apply(Math,l.flat(1/0)),c=Math.max.apply(Math,l.flat(1/0));return u=u>0?0:u,"vertical"===a&&s.reverse(),{min:u,max:c,ds:s}}function TT(t){var e=t.chart,n=t.options,i=n.bulletStyle,r=n.targetField,o=n.rangeField,a=n.measureField,s=n.xField,l=n.color,u=n.layout,c=n.size,h=n.label,p=FT(n),f=p.min,d=p.max,g=p.ds;e.data(g);var v=_b({},t,{options:{xField:s,yField:o,seriesField:"rKey",isStack:!0,label:(0,S.U2)(h,"range"),interval:{color:(0,S.U2)(l,"range"),style:(0,S.U2)(i,"range"),size:(0,S.U2)(c,"range")}}});Qw(v),e.geometries[0].tooltip(!1);var m=_b({},t,{options:{xField:s,yField:a,seriesField:"mKey",isStack:!0,label:(0,S.U2)(h,"measure"),interval:{color:(0,S.U2)(l,"measure"),style:(0,S.U2)(i,"measure"),size:(0,S.U2)(c,"measure")}}});Qw(m);var y=_b({},t,{options:{xField:s,yField:r,seriesField:"tKey",label:(0,S.U2)(h,"target"),point:{color:(0,S.U2)(l,"target"),style:(0,S.U2)(i,"target"),size:(0,S.mf)((0,S.U2)(c,"target"))?function(t){return(0,S.U2)(c,"target")(t)/2}:(0,S.U2)(c,"target")/2,shape:"horizontal"===u?"line":"hyphen"}}});return Ww(y),"horizontal"===u&&e.coordinate().transpose(),(0,C.pi)((0,C.pi)({},t),{ext:{data:{min:f,max:d}}})}function IT(t){var e,n,i=t.options,r=t.ext,o=i.xAxis,a=i.yAxis,s=i.targetField,l=i.rangeField,u=i.measureField,c=i.xField,h=r.data;return pb(Rw((e={},e[c]=o,e[u]=a,e),(n={},n[u]={min:null===h||void 0===h?void 0:h.min,max:null===h||void 0===h?void 0:h.max,sync:!0},n[s]={sync:""+u},n[l]={sync:""+u},n)))(t)}function BT(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,l=n.targetField;return e.axis(""+s,!1),e.axis(""+l,!1),!1===i?e.axis(""+o,!1):e.axis(""+o,i),!1===r?e.axis(""+a,!1):e.axis(""+a,r),t}function DT(t){var e=t.chart,n=t.options,i=n.legend;return e.removeInteraction("legend-filter"),e.legend(i),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function PT(t){var e=t.chart,n=t.options,i=n.label,r=n.measureField,o=n.targetField,a=n.rangeField,s=e.geometries,l=s[0],u=s[1],c=s[2];return(0,S.U2)(i,"range")?l.label(""+a,(0,C.pi)({layout:[{type:"limit-in-plot"}]},kb(i.range))):l.label(!1),(0,S.U2)(i,"measure")?u.label(""+r,(0,C.pi)({layout:[{type:"limit-in-plot"}]},kb(i.measure))):u.label(!1),(0,S.U2)(i,"target")?c.label(""+o,(0,C.pi)({layout:[{type:"limit-in-plot"}]},kb(i.target))):c.label(!1),t}function LT(t){pb(TT,IT,BT,DT,Dw,PT,Tw,Iw,Bw)(t)}var OT=_b({},uw.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),RT=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return OT},e.prototype.changeData=function(t){this.updateOption({data:t});var e=FT(this.options),n=e.min,i=e.max,r=e.ds;IT({options:this.options,ext:{data:{min:n,max:i}},chart:this.chart}),this.chart.changeData(r)},e.prototype.getSchemaAdaptor=function(){return LT},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(uw),"nodeIndex"),zT="childNodeCount",_T="nodeAncestor",UT="Invalid field: it must be a string!";function NT(t,e){var n=t.field,i=t.fields;if((0,S.HD)(n))return n;if((0,S.kJ)(n))return console.warn(UT),n[0];if(console.warn(UT+" will try to get fields instead."),(0,S.HD)(i))return i;if((0,S.kJ)(i)&&i.length)return i[0];if(e)return e;throw new TypeError(UT)}function VT(t){var e,n,i=[];t&&t.each?t.each((function(t){var r,o;t.parent!==e?(e=t.parent,n=0):n+=1;var a=(0,S.hX)(((null===(r=t.ancestors)||void 0===r?void 0:r.call(t))||[]).map((function(t){return i.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n<t.depth}));t[_T]=a,t[zT]=(null===(o=t.children)||void 0===o?void 0:o.length)||0,t[RT]=n,i.push(t)})):t&&t.eachNode&&t.eachNode((function(t){i.push(t)}));return i}var YT="ancestor-node",HT="value",XT="path",GT=[XT,RT,_T,zT,"name","depth","height"],WT=_b({},uw.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),jT=4,QT=0,ZT=5,qT="drilldown-bread-crumb",JT={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},KT="hierarchy-data-transform-params",$T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=JT,e}return(0,C.ZT)(e,t),e.prototype.click=function(){var t=(0,S.U2)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),i=this.getButtonCfg().position,r={x:t.start.x,y:t.end.y-(n.height+2*ZT)};t.isPolar&&(r={x:0,y:0}),"bottom-left"===i&&(r={x:t.start.x,y:t.start.y});var o=lh.transform(null,[["t",r.x+QT,r.y+n.height+ZT]]);e.setMatrix(o)}},e.prototype.back=function(){(0,S.dp)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=(0,S.U2)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),i=n((0,C.pi)({data:t.data},t[KT]));e.changeData(i);var r=[],o=t;while(o){var a=o.data;r.unshift({id:a.name+"_"+o.height+"_"+o.depth,name:a.name,children:n((0,C.pi)({data:a},t[KT]))}),o=o.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(r)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=(0,S.Z$)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=(0,S.U2)(t,["interactions","drill-down","cfg","drillDownConfig"]);return _b(this.breadCrumbCfg,null===e||void 0===e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:qT});var i=0;n.forEach((function(r,o){var a=t.breadCrumbGroup.addShape({type:"text",id:r.id,name:qT+"_"+r.name+"_text",attrs:(0,C.pi)((0,C.pi)({text:0!==o||(0,S.UM)(e.rootText)?r.name:e.rootText},e.textStyle),{x:i,y:0})}),s=a.getBBox();if(i+=s.width+jT,a.on("click",(function(e){var i,r=e.target.get("id");if(r!==(null===(i=(0,S.Z$)(n))||void 0===i?void 0:i.id)){var o=n.slice(0,n.findIndex((function(t){return t.id===r}))+1);t.backTo(o)}})),a.on("mouseenter",(function(t){var i,r=t.target.get("id");r!==(null===(i=(0,S.Z$)(n))||void 0===i?void 0:i.id)?a.attr(e.activeTextStyle):a.attr({cursor:"default"})})),a.on("mouseleave",(function(){a.attr(e.textStyle)})),o<n.length-1){var l=t.breadCrumbGroup.addShape({type:"text",name:e.name+"_"+r.name+"_divider",attrs:(0,C.pi)((0,C.pi)({text:e.dividerText},e.textStyle),{x:i,y:0})}),u=l.getBBox();i+=u.width+jT}}))},e.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},e.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),t.prototype.destroy.call(this)},e}(Ys);function tI(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function eI(t,e,n,i,r){var o,a=t.children,s=-1,l=a.length,u=t.value&&(i-e)/t.value;while(++s<l)o=a[s],o.y0=n,o.y1=r,o.x0=e,o.x1=e+=o.value*u}function nI(){var t=1,e=1,n=0,i=!1;function r(r){var a=r.height+1;return r.x0=r.y0=n,r.x1=t,r.y1=e/a,r.eachBefore(o(e,a)),i&&r.eachBefore(tI),r}function o(t,e){return function(i){i.children&&eI(i,i.x0,t*(i.depth+1)/e,i.x1,t*(i.depth+2)/e);var r=i.x0,o=i.y0,a=i.x1-n,s=i.y1-n;a<r&&(r=a=(r+a)/2),s<o&&(o=s=(o+s)/2),i.x0=r,i.y0=o,i.x1=a,i.y1=s}}return r.round=function(t){return arguments.length?(i=!!t,r):i},r.size=function(n){return arguments.length?(t=+n[0],e=+n[1],r):[t,e]},r.padding=function(t){return arguments.length?(n=+t,r):n},r}function iI(t){var e=0,n=t.children,i=n&&n.length;if(i)while(--i>=0)e+=n[i].value;else e=1;t.value=e}function rI(){return this.eachAfter(iI)}function oI(t,e){let n=-1;for(const i of this)t.call(e,i,++n,this);return this}function aI(t,e){var n,i,r=this,o=[r],a=-1;while(r=o.pop())if(t.call(e,r,++a,this),n=r.children)for(i=n.length-1;i>=0;--i)o.push(n[i]);return this}function sI(t,e){var n,i,r,o=this,a=[o],s=[],l=-1;while(o=a.pop())if(s.push(o),n=o.children)for(i=0,r=n.length;i<r;++i)a.push(n[i]);while(o=s.pop())t.call(e,o,++l,this);return this}function lI(t,e){let n=-1;for(const i of this)if(t.call(e,i,++n,this))return i}function uI(t){return this.eachAfter((function(e){var n=+t(e.data)||0,i=e.children,r=i&&i.length;while(--r>=0)n+=i[r].value;e.value=n}))}function cI(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))}function hI(t){var e=this,n=pI(e,t),i=[e];while(e!==n)e=e.parent,i.push(e);var r=i.length;while(t!==n)i.splice(r,0,t),t=t.parent;return i}function pI(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop(),e=i.pop();while(t===e)r=t,t=n.pop(),e=i.pop();return r}function fI(){var t=this,e=[t];while(t=t.parent)e.push(t);return e}function dI(){return Array.from(this)}function gI(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t}function vI(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e}function*mI(){var t,e,n,i,r=this,o=[r];do{t=o.reverse(),o=[];while(r=t.pop())if(yield r,e=r.children)for(n=0,i=e.length;n<i;++n)o.push(e[n])}while(o.length)}function yI(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=wI)):void 0===e&&(e=bI);var n,i,r,o,a,s=new SI(t),l=[s];while(n=l.pop())if((r=e(n.data))&&(a=(r=Array.from(r)).length))for(n.children=r,o=a-1;o>=0;--o)l.push(i=r[o]=new SI(r[o])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(CI)}function xI(){return yI(this).eachBefore(AI)}function bI(t){return t.children}function wI(t){return Array.isArray(t)?t[1]:null}function AI(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function CI(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function SI(t){this.data=t,this.depth=this.height=0,this.parent=null}SI.prototype=yI.prototype={constructor:SI,count:rI,each:oI,eachAfter:sI,eachBefore:aI,find:lI,sum:uI,sort:cI,path:hI,ancestors:fI,descendants:dI,leaves:gI,links:vI,copy:xI,[Symbol.iterator]:mI};var MI={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0};function kI(t,e){e=(0,S.f0)({},MI,e);var n,i=e.as;if(!(0,S.kJ)(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=NT(e)}catch(l){console.warn(l)}var r=function(t){return nI().size(e.size).round(e.round).padding(e.padding)(yI(t).sum((function(t){return(0,S.dp)(t.children)?e.ignoreParentValue?0:t[n]-(0,S.u4)(t.children,(function(t,e){return t+e[n]}),0):t[n]})).sort(e.sort))},o=r(t),a=i[0],s=i[1];return o.each((function(t){var e,n;t[a]=[t.x0,t.x1,t.x1,t.x0],t[s]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(n=t.data)||void 0===n?void 0:n.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach((function(e){-1===i.indexOf(e)&&delete t[e]}))})),VT(o)}function EI(t,e){return t.parent===e.parent?1:2}function FI(t){return t.reduce(TI,0)/t.length}function TI(t,e){return t+e.x}function II(t){return 1+t.reduce(BI,0)}function BI(t,e){return Math.max(t,e.y)}function DI(t){var e;while(e=t.children)t=e[0];return t}function PI(t){var e;while(e=t.children)t=e[e.length-1];return t}function LI(){var t=EI,e=1,n=1,i=!1;function r(r){var o,a=0;r.eachAfter((function(e){var n=e.children;n?(e.x=FI(n),e.y=II(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=DI(r),l=PI(r),u=s.x-t(s,l)/2,c=l.x+t(l,s)/2;return r.eachAfter(i?function(t){t.x=(t.x-r.x)*e,t.y=(r.y-t.y)*n}:function(t){t.x=(t.x-u)/(c-u)*e,t.y=(1-(r.y?t.y/r.y:1))*n})}return r.separation=function(e){return arguments.length?(t=e,r):t},r.size=function(t){return arguments.length?(i=!1,e=+t[0],n=+t[1],r):i?null:[e,n]},r.nodeSize=function(t){return arguments.length?(i=!0,e=+t[0],n=+t[1],r):i?[e,n]:null},r}function OI(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}function RI(t){var e,n,i=t.length;while(i)n=Math.random()*i--|0,e=t[i],t[i]=t[n],t[n]=e;return t}function zI(t){var e,n,i=0,r=(t=RI(Array.from(t))).length,o=[];while(i<r)e=t[i],n&&NI(n,e)?++i:(n=YI(o=_I(o,e)),i=0);return n}function _I(t,e){var n,i;if(VI(e,t))return[e];for(n=0;n<t.length;++n)if(UI(e,t[n])&&VI(XI(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(i=n+1;i<t.length;++i)if(UI(XI(t[n],t[i]),e)&&UI(XI(t[n],e),t[i])&&UI(XI(t[i],e),t[n])&&VI(GI(t[n],t[i],e),t))return[t[n],t[i],e];throw new Error}function UI(t,e){var n=t.r-e.r,i=e.x-t.x,r=e.y-t.y;return n<0||n*n<i*i+r*r}function NI(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function VI(t,e){for(var n=0;n<e.length;++n)if(!NI(t,e[n]))return!1;return!0}function YI(t){switch(t.length){case 1:return HI(t[0]);case 2:return XI(t[0],t[1]);case 3:return GI(t[0],t[1],t[2])}}function HI(t){return{x:t.x,y:t.y,r:t.r}}function XI(t,e){var n=t.x,i=t.y,r=t.r,o=e.x,a=e.y,s=e.r,l=o-n,u=a-i,c=s-r,h=Math.sqrt(l*l+u*u);return{x:(n+o+l/h*c)/2,y:(i+a+u/h*c)/2,r:(h+r+s)/2}}function GI(t,e,n){var i=t.x,r=t.y,o=t.r,a=e.x,s=e.y,l=e.r,u=n.x,c=n.y,h=n.r,p=i-a,f=i-u,d=r-s,g=r-c,v=l-o,m=h-o,y=i*i+r*r-o*o,x=y-a*a-s*s+l*l,b=y-u*u-c*c+h*h,w=f*d-p*g,A=(d*b-g*x)/(2*w)-i,C=(g*v-d*m)/w,S=(f*x-p*b)/(2*w)-r,M=(p*m-f*v)/w,k=C*C+M*M-1,E=2*(o+A*C+S*M),F=A*A+S*S-o*o,T=-(k?(E+Math.sqrt(E*E-4*k*F))/(2*k):F/E);return{x:i+A+C*T,y:r+S+M*T,r:T}}function WI(t,e,n){var i,r,o,a,s=t.x-e.x,l=t.y-e.y,u=s*s+l*l;u?(r=e.r+n.r,r*=r,a=t.r+n.r,a*=a,r>a?(i=(u+a-r)/(2*u),o=Math.sqrt(Math.max(0,a/u-i*i)),n.x=t.x-i*s-o*l,n.y=t.y-i*l+o*s):(i=(u+r-a)/(2*u),o=Math.sqrt(Math.max(0,r/u-i*i)),n.x=e.x+i*s-o*l,n.y=e.y+i*l+o*s)):(n.x=e.x+n.r,n.y=e.y)}function jI(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function QI(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,o=(e.y*n.r+n.y*e.r)/i;return r*r+o*o}function ZI(t){this._=t,this.next=null,this.previous=null}function qI(t){if(!(r=(t=OI(t)).length))return 0;var e,n,i,r,o,a,s,l,u,c,h;if(e=t[0],e.x=0,e.y=0,!(r>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(r>2))return e.r+n.r;WI(n,e,i=t[2]),e=new ZI(e),n=new ZI(n),i=new ZI(i),e.next=i.previous=n,n.next=e.previous=i,i.next=n.previous=e;t:for(s=3;s<r;++s){WI(e._,n._,i=t[s]),i=new ZI(i),l=n.next,u=e.previous,c=n._.r,h=e._.r;do{if(c<=h){if(jI(l._,i._)){n=l,e.next=n,n.previous=e,--s;continue t}c+=l._.r,l=l.next}else{if(jI(u._,i._)){e=u,e.next=n,n.previous=e,--s;continue t}h+=u._.r,u=u.previous}}while(l!==u.next);i.previous=e,i.next=n,e.next=n.previous=n=i,o=QI(e);while((i=i.next)!==n)(a=QI(i))<o&&(e=i,o=a);n=e.next}e=[n._],i=n;while((i=i.next)!==n)e.push(i._);for(i=zI(e),s=0;s<r;++s)e=t[s],e.x-=i.x,e.y-=i.y;return i.r}function JI(t){return qI(t),t}function KI(t){return null==t?null:$I(t)}function $I(t){if("function"!==typeof t)throw new Error;return t}function tB(){return 0}function eB(t){return function(){return t}}function nB(t){return Math.sqrt(t.value)}function iB(){var t=null,e=1,n=1,i=tB;function r(r){return r.x=e/2,r.y=n/2,t?r.eachBefore(rB(t)).eachAfter(oB(i,.5)).eachBefore(aB(1)):r.eachBefore(rB(nB)).eachAfter(oB(tB,1)).eachAfter(oB(i,r.r/Math.min(e,n))).eachBefore(aB(Math.min(e,n)/(2*r.r))),r}return r.radius=function(e){return arguments.length?(t=KI(e),r):t},r.size=function(t){return arguments.length?(e=+t[0],n=+t[1],r):[e,n]},r.padding=function(t){return arguments.length?(i="function"===typeof t?t:eB(+t),r):i},r}function rB(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function oB(t,e){return function(n){if(i=n.children){var i,r,o,a=i.length,s=t(n)*e||0;if(s)for(r=0;r<a;++r)i[r].r+=s;if(o=qI(i),s)for(r=0;r<a;++r)i[r].r-=s;n.r=o+s}}}function aB(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var sB={depth:-1},lB={};function uB(t){return t.id}function cB(t){return t.parentId}function hB(){var t=uB,e=cB;function n(n){var i,r,o,a,s,l,u,c=Array.from(n),h=c.length,p=new Map;for(r=0;r<h;++r)i=c[r],s=c[r]=new SI(i),null!=(l=t(i,r,n))&&(l+="")&&(u=s.id=l,p.set(u,p.has(u)?lB:s)),null!=(l=e(i,r,n))&&(l+="")&&(s.parent=l);for(r=0;r<h;++r)if(s=c[r],l=s.parent){if(a=p.get(l),!a)throw new Error("missing: "+l);if(a===lB)throw new Error("ambiguous: "+l);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=sB,o.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(CI),o.parent=null,h>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=$I(e),n):t},n.parentId=function(t){return arguments.length?(e=$I(t),n):e},n}function pB(t,e){return t.parent===e.parent?1:2}function fB(t){var e=t.children;return e?e[0]:t.t}function dB(t){var e=t.children;return e?e[e.length-1]:t.t}function gB(t,e,n){var i=n/(e.i-t.i);e.c-=i,e.s+=n,t.c+=i,e.z+=n,e.m+=n}function vB(t){var e,n=0,i=0,r=t.children,o=r.length;while(--o>=0)e=r[o],e.z+=n,e.m+=n,n+=e.s+(i+=e.c)}function mB(t,e,n){return t.a.parent===e.parent?t.a:n}function yB(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function xB(t){var e,n,i,r,o,a=new yB(t,0),s=[a];while(e=s.pop())if(i=e._.children)for(e.children=new Array(o=i.length),r=o-1;r>=0;--r)s.push(n=e.children[r]=new yB(i[r],r)),n.parent=e;return(a.parent=new yB(null,0)).children=[a],a}function bB(){var t=pB,e=1,n=1,i=null;function r(r){var s=xB(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),i)r.eachBefore(l);else{var u=r,c=r,h=r;r.eachBefore((function(t){t.x<u.x&&(u=t),t.x>c.x&&(c=t),t.depth>h.depth&&(h=t)}));var p=u===c?1:t(u,c)/2,f=p-u.x,d=e/(c.x+p+f),g=n/(h.depth||1);r.eachBefore((function(t){t.x=(t.x+f)*d,t.y=t.depth*g}))}return r}function o(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){vB(e);var o=(n[0].z+n[n.length-1].z)/2;r?(e.z=r.z+t(e._,r._),e.m=e.z-o):e.z=o}else r&&(e.z=r.z+t(e._,r._));e.parent.A=s(e,r,e.parent.A||i[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,i){if(n){var r,o=e,a=e,s=n,l=o.parent.children[0],u=o.m,c=a.m,h=s.m,p=l.m;while(s=dB(s),o=fB(o),s&&o)l=fB(l),a=dB(a),a.a=e,r=s.z+h-o.z-u+t(s._,o._),r>0&&(gB(mB(s,e,i),e,r),u+=r,c+=r),h+=s.m,u+=o.m,p+=l.m,c+=a.m;s&&!dB(a)&&(a.t=s,a.m+=h-c),o&&!fB(l)&&(l.t=o,l.m+=u-p,i=e)}return i}function l(t){t.x*=e,t.y=t.depth*n}return r.separation=function(e){return arguments.length?(t=e,r):t},r.size=function(t){return arguments.length?(i=!1,e=+t[0],n=+t[1],r):i?null:[e,n]},r.nodeSize=function(t){return arguments.length?(i=!0,e=+t[0],n=+t[1],r):i?[e,n]:null},r}function wB(t,e,n,i,r){var o,a=t.children,s=-1,l=a.length,u=t.value&&(r-n)/t.value;while(++s<l)o=a[s],o.x0=e,o.x1=i,o.y0=n,o.y1=n+=o.value*u}yB.prototype=Object.create(SI.prototype);var AB=(1+Math.sqrt(5))/2;function CB(t,e,n,i,r,o){var a,s,l,u,c,h,p,f,d,g,v,m=[],y=e.children,x=0,b=0,w=y.length,A=e.value;while(x<w){l=r-n,u=o-i;do{c=y[b++].value}while(!c&&b<w);for(h=p=c,g=Math.max(u/l,l/u)/(A*t),v=c*c*g,d=Math.max(p/v,v/h);b<w;++b){if(c+=s=y[b].value,s<h&&(h=s),s>p&&(p=s),v=c*c*g,f=Math.max(p/v,v/h),f>d){c-=s;break}d=f}m.push(a={value:c,dice:l<u,children:y.slice(x,b)}),a.dice?eI(a,n,i,r,A?i+=u*c/A:o):wB(a,n,i,A?n+=l*c/A:r,o),A-=c,x=b}return m}var SB=function t(e){function n(t,n,i,r,o){CB(e,t,n,i,r,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(AB);function MB(){var t=SB,e=!1,n=1,i=1,r=[0],o=tB,a=tB,s=tB,l=tB,u=tB;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=i,t.eachBefore(h),r=[0],e&&t.eachBefore(tI),t}function h(e){var n=r[e.depth],i=e.x0+n,c=e.y0+n,h=e.x1-n,p=e.y1-n;h<i&&(i=h=(i+h)/2),p<c&&(c=p=(c+p)/2),e.x0=i,e.y0=c,e.x1=h,e.y1=p,e.children&&(n=r[e.depth+1]=o(e)/2,i+=u(e)-n,c+=a(e)-n,h-=s(e)-n,p-=l(e)-n,h<i&&(i=h=(i+h)/2),p<c&&(c=p=(c+p)/2),t(e,i,c,h,p))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],i=+t[1],c):[n,i]},c.tile=function(e){return arguments.length?(t=$I(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:eB(+t),c):o},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(a="function"===typeof t?t:eB(+t),c):a},c.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:eB(+t),c):s},c.paddingBottom=function(t){return arguments.length?(l="function"===typeof t?t:eB(+t),c):l},c.paddingLeft=function(t){return arguments.length?(u="function"===typeof t?t:eB(+t),c):u},c}function kB(t,e,n,i,r){var o,a,s=t.children,l=s.length,u=new Array(l+1);for(u[0]=a=o=0;o<l;++o)u[o+1]=a+=s[o].value;function c(t,e,n,i,r,o,a){if(t>=e-1){var l=s[t];return l.x0=i,l.y0=r,l.x1=o,void(l.y1=a)}var h=u[t],p=n/2+h,f=t+1,d=e-1;while(f<d){var g=f+d>>>1;u[g]<p?f=g+1:d=g}p-u[f-1]<u[f]-p&&t+1<f&&--f;var v=u[f]-h,m=n-v;if(o-i>a-r){var y=n?(i*m+o*v)/n:o;c(t,f,v,i,r,y,a),c(f,e,m,y,r,o,a)}else{var x=n?(r*m+a*v)/n:a;c(t,f,v,i,r,o,x),c(f,e,m,i,x,o,a)}}c(0,l,t.value,e,n,i,r)}function EB(t,e,n,i,r){(1&t.depth?wB:eI)(t,e,n,i,r)}var FB=function t(e){function n(t,n,i,r,o){if((a=t._squarify)&&a.ratio===e){var a,s,l,u,c,h=-1,p=a.length,f=t.value;while(++h<p){for(s=a[h],l=s.children,u=s.value=0,c=l.length;u<c;++u)s.value+=l[u].value;s.dice?eI(s,n,i,r,f?i+=(o-i)*s.value/f:o):wB(s,n,i,f?n+=(r-n)*s.value/f:r,o),f-=s.value}}else t._squarify=a=CB(e,t,n,i,r,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(AB),TB={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function IB(t,e){return"treemapSquarify"===t?g[t].ratio(e):g[t]}function BB(t,e){e=(0,S.f0)({},TB,e);var n,i=e.as;if(!(0,S.kJ)(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=NT(e)}catch(u){console.warn(u)}var r=IB(e.tile,e.ratio),o=function(t){return MB().tile(r).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(yI(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))},a=o(t),s=i[0],l=i[1];return a.each((function(t){t[s]=[t.x0,t.x1,t.x1,t.x0],t[l]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===i.indexOf(e)&&delete t[e]}))})),VT(a)}function DB(t){var e=t.data,n=t.colorField,i=t.rawFields,r=t.hierarchyConfig,o=void 0===r?{}:r,a=o.activeDepth,s={partition:kI,treemap:BB},l=t.seriesField,u=t.type||"partition",c=s[u](e,(0,C.pi)((0,C.pi)({field:l||"value"},(0,S.CE)(o,["activeDepth"])),{type:"hierarchy."+u,as:["x","y"]})),h=[];return c.forEach((function(t){var e,r,s,u,c,p;if(0===t.depth)return null;if(a>0&&t.depth>a)return null;var f=t.data.name,d=(0,C.pi)({},t);while(d.depth>1)f=(null===(r=d.parent.data)||void 0===r?void 0:r.name)+" / "+f,d=d.parent;var g=(0,C.pi)((0,C.pi)((0,C.pi)({},fb(t.data,(0,C.pr)(i||[],[o.field]))),(e={},e[XT]=f,e[YT]=d.data.name,e)),t);l&&(g[l]=t.data[l]||(null===(u=null===(s=t.parent)||void 0===s?void 0:s.data)||void 0===u?void 0:u[l])),n&&(g[n]=t.data[n]||(null===(p=null===(c=t.parent)||void 0===c?void 0:c.data)||void 0===p?void 0:p[n])),g.ext=o,g[KT]={hierarchyConfig:o,colorField:n,rawFields:i},h.push(g)})),h}function PB(t){var e,n=t.chart,i=t.options,r=i.color,o=i.colorField,a=void 0===o?YT:o,s=i.sunburstStyle,l=i.rawFields,u=void 0===l?[]:l,c=DB(i);return n.data(c),s&&(e=function(t){return _b({},{fillOpacity:Math.pow(.85,t.depth)},(0,S.mf)(s)?s(t):s)}),Zw(_b({},t,{options:{xField:"x",yField:"y",seriesField:a,rawFields:(0,S.jj)((0,C.pr)(GT,u)),polygon:{color:r,style:e}}})),t}function LB(t){var e=t.chart;return e.axis(!1),t}function OB(t){var e=t.chart,n=t.options,i=n.label,r=xb(e,"polygon");if(i){var o=i.fields,a=void 0===o?["name"]:o,s=i.callback,l=(0,C._T)(i,["fields","callback"]);r.label({fields:a,callback:s,cfg:kb(l)})}else r.label(!1);return t}function RB(t){var e=t.chart,n=t.options,i=n.innerRadius,r=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:i,radius:r}});return o&&a.reflect(o),t}function zB(t){var e,n=t.options,i=n.hierarchyConfig,r=n.meta;return pb(Rw({},(e={},e[HT]=(0,S.U2)(r,(0,S.U2)(i,["field"],"value")),e)))(t)}function _B(t){var e=t.chart,n=t.options,i=n.tooltip;if(!1===i)e.tooltip(!1);else{var r=i;(0,S.U2)(i,"fields")||(r=_b({},{customItems:function(t){return t.map((function(t){var n=(0,S.U2)(e.getOptions(),"scales"),i=(0,S.U2)(n,[XT,"formatter"],(function(t){return t})),r=(0,S.U2)(n,[HT,"formatter"],(function(t){return t}));return(0,C.pi)((0,C.pi)({},t),{name:i(t.data[XT]),value:r(t.data.value)})}))}},r)),e.tooltip(r)}return t}function UB(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?_b({},t,{interactions:(0,C.pr)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:DB}}])}):t}function NB(t){var e=t.chart,n=t.options,i=n.drilldown;return Iw({chart:e,options:UB(n)}),(null===i||void 0===i?void 0:i.enabled)&&(e.appendPadding=Kb(e.appendPadding,(0,S.U2)(i,["breadCrumb","position"]))),t}function VB(t){return pb(Dw,Ew("sunburstStyle"),PB,LB,zB,Fw,RB,_B,OB,NB,Bw,zw())(t)}function YB(t){var e=(0,S.U2)(t,["event","data","data"],{});return(0,S.kJ)(e.children)&&e.children.length>0}function HB(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var i=t.event,r=i.x,o=i.y,a=e.center,s=a.x,l=a.y,u=e.getRadius()*n,c=Math.sqrt(Math.pow(s-r,2)+Math.pow(l-o,2));return c<u}return!1}Qs("drill-down-action",$T),Gl("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:YB},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:HB}],start:[{trigger:"element:click",isEnable:YB,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:HB,action:["drill-down-action:back"]}]});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return WT},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return VB},e.SUNBURST_ANCESTOR_FIELD=YT,e.SUNBURST_PATH_FIELD=XT,e.NODE_ANCESTORS_FIELD=_T})(uw);var XB,GB="range",WB="type",jB="percent",QB="#f0f0f0",ZB="indicator-view",qB="range-view",JB={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(XB={},XB[GB]={sync:"v"},XB[jB]={sync:"v",tickCount:5,tickInterval:.2},XB),animation:!1};function KB(t,e){return t.map((function(n,i){var r;return r={},r[GB]=n-(t[i-1]||0),r[WB]=""+i,r[jB]=e,r})).filter((function(t){return!!t[GB]}))}function $B(t){var e;return[(e={},e[jB]=(0,S.uZ)(t,0,1),e)]}function tD(t,e){var n=(0,S.U2)(e,["ticks"],[]),i=(0,S.dp)(n)?n:[0,(0,S.uZ)(t,0,1),1];return KB(i,t)}function eD(t){var e=t.chart,n=t.options,i=n.percent,r=n.range,o=n.radius,a=n.innerRadius,s=n.startAngle,l=n.endAngle,u=n.axis,c=n.indicator,h=n.gaugeStyle,p=n.type,f=n.meter,d=r.color,g=r.width;if(c){var v=$B(i),m=e.createView({id:ZB});m.data(v),m.point().position(jB+"*1").shape(c.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:c}),m.coordinate("polar",{startAngle:s,endAngle:l,radius:a*o}),m.axis(jB,u),m.scale(jB,fb(u,cw))}var y=tD(i,n.range),x=e.createView({id:qB});x.data(y);var b=(0,S.HD)(d)?[d,QB]:d,w=Qw({chart:x,options:{xField:"1",yField:GB,seriesField:WB,rawFields:[jB],isStack:!0,interval:{color:b,style:h,shape:"meter"===p?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:g,maxColumnWidth:g}}).ext,A=w.geometry;return A.customInfo({meter:f}),x.coordinate("polar",{innerRadius:a,radius:o,startAngle:s,endAngle:l}).transpose(),t}function nD(t){var e;return pb(Rw((e={range:{min:0,max:1,maxLimit:1,minLimit:0}},e[jB]={},e)))(t)}function iD(t,e){var n=t.chart,i=t.options,r=i.statistic,o=i.percent;if(n.getController("annotation").clear(!0),r){var a=r.content,s=void 0;a&&(s=_b({},{content:(100*o).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},a)),Xb(n,{statistic:(0,C.pi)((0,C.pi)({},r),{content:s})},{percent:o})}return e&&n.render(!0),t}function rD(t){var e=t.chart,n=t.options,i=n.tooltip;return i?e.tooltip(_b({showTitle:!1,showMarkers:!1,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){var n=(0,S.U2)(e,[0,"data",jB],0);return(100*n).toFixed(2)+"%"}},i)):e.tooltip(!1),t}function oD(t){var e=t.chart;return e.legend(!1),t}function aD(t){return pb(Dw,Bw,eD,nD,rD,iD,Iw,zw(),oD)(t)}gc("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,i=n.indicator,r=n.defaultColor,o=i,a=o.pointer,s=o.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return a&&l.addShape("line",{name:"pointer",attrs:(0,C.pi)({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:r},a.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,C.pi)({x:u.x,y:u.y,stroke:r},s.style)}),l}}),gc("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,i=void 0===n?{}:n,r=i.steps,o=void 0===r?50:r,a=i.stepRatio,s=void 0===a?.5:a;o=o<1?1:o,s=(0,S.uZ)(s,0,1);var l=this.coordinate,u=l.startAngle,c=l.endAngle,h=0;if(s>0&&s<1){var p=c-u;h=p/o/(s/(1-s)+1-1/o)}for(var f=h/(1-s)*s,d=e.addGroup(),g=this.coordinate.getCenter(),v=this.coordinate.getRadius(),m=lh.getAngle(t,this.coordinate),y=m.startAngle,x=m.endAngle,b=y;b<x;){var w=void 0,A=(b-u)%(f+h);A<f?w=b+(f-A):(b+=f+h-A,w=b+f);var C=lh.getSectorPath(g.x,g.y,v,b,Math.min(w,x),v*this.coordinate.innerRadius);d.addShape("path",{name:"meter-gauge",attrs:{path:C,fill:t.color,stroke:t.color,lineWidth:.5}}),b=w+h}return d}});var sD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return(0,C.ZT)(e,t),e.getDefaultOptions=function(){return JB},e.prototype.changeData=function(t){this.chart.emit(M.BEFORE_CHANGE_DATA,Bu.fromData(this.chart,M.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find((function(t){return t.id===ZB}));e&&e.data($B(t));var n=this.chart.views.find((function(t){return t.id===qB}));n&&n.data(tD(t,this.options.range)),iD({chart:this.chart,options:this.options},!0),this.chart.emit(M.AFTER_CHANGE_DATA,Bu.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return aD},e}(uw),lD="$$yField$$",uD="$$diffField$$",cD="$$absoluteField$$",hD="$$isTotal$$",pD={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}};function fD(t,e,n,i,r){var o,a=[];if((0,S.u4)(t,(function(t,e){var r;mb(ib.WARN,(0,S.hj)(e[n]),e[n]+" is not a valid number");var o=(0,S.o8)(e[n])?null:e[n];return a.push((0,C.pi)((0,C.pi)({},e),(r={},r[i]=[t,t+o],r))),t+o}),0),a.length&&r){var s=(0,S.U2)(a,[[t.length-1],i,[1]]);a.push((o={},o[e]=r.label,o[n]=s,o[i]=[0,s],o))}return a}function dD(t,e,n,i){var r=fD(t,e,n,lD,i);return r.map((function(e,n){var i;return(0,S.Kn)(e)?(0,C.pi)((0,C.pi)({},e),(i={},i[cD]=e[lD][1],i[uD]=e[lD][1]-e[lD][0],i[hD]=n===t.length,i)):e}))}function gD(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(i){var r=0===n?"M":"L";e.push([r,i.x,i.y])}}var o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}function vD(t){return _b({},t.defaultStyle,t.style,{fill:t.color})}function mD(t){var e=t.options,n=e.locale,i=e.total,r=iw(n).get(["waterfall","total"]);return i&&"string"!==typeof i.label&&r&&(t.options.total.label=r),t}function yD(t){var e=t.chart,n=t.options,i=n.data,r=n.xField,o=n.yField,a=n.total,s=n.leaderLine,l=n.columnWidthRatio,u=n.waterfallStyle,c=n.risingFill,h=n.fallingFill,p=n.color;e.data(dD(i,r,o,a));var f=p||function(t){return(0,S.U2)(t,[hD])?(0,S.U2)(a,["style","fill"],""):(0,S.U2)(t,[lD,1])-(0,S.U2)(t,[lD,0])>0?c:h},d=_b({},t,{options:{xField:r,yField:lD,seriesField:r,rawFields:[o,uD,hD,lD],widthRatio:l,interval:{style:u,shape:"waterfall",color:f}}}),g=Qw(d).ext,v=g.geometry;return v.customInfo({leaderLine:s}),t}function xD(t){var e,n,i=t.options,r=i.xAxis,o=i.yAxis,a=i.xField,s=i.yField,l=i.meta,u=_b({},{alias:s},(0,S.U2)(l,s));return pb(Rw((e={},e[a]=r,e[s]=o,e[lD]=o,e),_b({},l,(n={},n[lD]=u,n[uD]=u,n[cD]=u,n))))(t)}function bD(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?(e.axis(a,!1),e.axis(lD,!1)):(e.axis(a,r),e.axis(lD,r)),t}function wD(t){var e=t.chart,n=t.options,i=n.legend,r=n.total,o=n.risingFill,a=n.fallingFill,s=n.locale,l=iw(s);if(!1===i)e.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:a}}}];r&&u.push({name:r.label||"",value:"total",marker:{symbol:"square",style:_b({},{r:5},(0,S.U2)(r,"style"))}}),e.legend(_b({},{custom:!0,position:"top",items:u},i)),e.removeInteraction("legend-filter")}return t}function AD(t){var e=t.chart,n=t.options,i=n.label,r=n.labelMode,o=n.xField,a=xb(e,"interval");if(i){var s=i.callback,l=(0,C._T)(i,["callback"]);a.label({fields:"absolute"===r?[cD,o]:[uD,o],callback:s,cfg:kb(l)})}else a.label(!1);return t}function CD(t){var e=t.chart,n=t.options,i=n.tooltip,r=n.xField,o=n.yField;if(!1!==i){e.tooltip((0,C.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},i));var a=e.geometries[0];(null===i||void 0===i?void 0:i.formatter)?a.tooltip(r+"*"+o,i.formatter):a.tooltip(o)}else e.tooltip(!1);return t}function SD(t){return pb(mD,Dw,yD,xD,bD,wD,CD,AD,Pw,Iw,Bw,zw())(t)}gc("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,r=t.nextPoints,o=e.addGroup(),a=this.parsePath(gD(i)),s=vD(t);o.addShape("path",{attrs:(0,C.pi)((0,C.pi)({},s),{path:a})});var l=(0,S.U2)(n,"leaderLine");if(l&&r){var u=[["M",i[2].x,i[2].y],["L",r[0].x,r[0].y]];i[2].y===r[1].y&&(u[1]=["L",r[1].x,r[1].y]),u=this.parsePath(u),o.addShape("path",{attrs:(0,C.pi)({path:u},l.style||{})})}return o}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return pD},e.prototype.changeData=function(t){var e=this.options,n=e.xField,i=e.yField,r=e.total;this.updateOption({data:t}),this.chart.changeData(dD(t,n,i,r))},e.prototype.getSchemaAdaptor=function(){return SD},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(uw);function MD(t,e,n){var i=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),r=i.length>0?Math.max.apply(Math,i):0,o=Math.abs(t)%360;return o?360*r/o:r}function kD(t,e,n){var i=[];return t.forEach((function(t){var r=i.find((function(n){return n[e]===t[e]}));r?r[n]+=t[n]||null:i.push((0,C.pi)({},t))})),i}function ED(t){var e=t.chart,n=t.options,i=n.barStyle,r=n.color,o=n.tooltip,a=n.colorField,s=n.type,l=n.xField,u=n.yField,c=n.data,h=qb(c,u);e.data(h);var p=_b({},t,{options:{tooltip:o,seriesField:a,interval:{style:i,color:r,shape:"line"===s?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Qw(p),"line"===s&&Ww({chart:e,options:{xField:l,yField:u,seriesField:a,point:{shape:"circle",color:r}}}),t}function FD(t){var e,n=t.options,i=n.yField,r=n.xField,o=n.data,a=n.isStack,s=n.isGroup,l=n.colorField,u=n.maxAngle,c=a&&!s&&l?kD(o,r,i):o,h=qb(c,i);return pb(Rw((e={},e[i]={min:0,max:MD(u,i,h)},e)))(t)}function TD(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}).transpose(),t}function ID(t){var e=t.chart,n=t.options,i=n.xField,r=n.xAxis;return e.axis(i,r),t}function BD(t){var e=t.chart,n=t.options,i=n.label,r=n.yField,o=xb(e,"interval");if(i){var a=i.callback,s=(0,C._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:(0,C.pi)((0,C.pi)({},kb(s)),{type:"polar"})})}else o.label(!1);return t}function DD(t){return pb(Ew("barStyle"),ED,FD,ID,TD,Iw,Bw,Dw,Tw,Fw,zw(),BD)(t)}var PD=_b({},uw.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),LD=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return PD},e.prototype.changeData=function(t){this.updateOption({data:t}),FD({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return DD}}(uw),"first-axes-view"),OD="second-axes-view",RD="series-field-key";function zD(t,e,n,i,r){var o=[];e.forEach((function(e){i.forEach((function(i){var r,a=(r={},r[t]=i[t],r[n]=e,r[e]=i[e],r);o.push(a)}))}));var a=Object.values((0,S.vM)(o,n)),s=a[0],l=void 0===s?[]:s,u=a[1],c=void 0===u?[]:u;return r?[l.reverse(),c.reverse()]:[l,c]}function _D(t){return"vertical"!==t}function UD(t,e,n){var i=e[0],r=e[1],o=i.autoPadding,a=r.autoPadding,s=t.__axisPosition,l=s.layout,u=s.position;if(_D(l)&&"top"===u&&(i.autoPadding=n.instance(o.top,0,o.bottom,o.left),r.autoPadding=n.instance(a.top,o.left,a.bottom,0)),_D(l)&&"bottom"===u&&(i.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),r.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!_D(l)&&"bottom"===u){var c=o.left>=a.left?o.left:a.left;i.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,c),r.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,c)}if(!_D(l)&&"top"===u){c=o.left>=a.left?o.left:a.left;i.autoPadding=n.instance(o.top,o.right,0,c),r.autoPadding=n.instance(0,a.right,o.top,c)}}function ND(t){var e,n,i=t.chart,r=t.options,o=r.data,a=r.xField,s=r.yField,l=r.color,u=r.barStyle,c=r.widthRatio,h=r.legend,p=r.layout,f=zD(a,s,RD,o,_D(p));h?i.legend(RD,h):!1===h&&i.legend(!1);var d=f[0],g=f[1];_D(p)?(e=i.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:LD}),e.coordinate().transpose().reflect("x"),n=i.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:OD}),n.coordinate().transpose(),e.data(d),n.data(g)):(e=i.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:LD}),n=i.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:OD}),n.coordinate().reflect("y"),e.data(d),n.data(g));var v=_b({},t,{chart:e,options:{widthRatio:c,xField:a,yField:s[0],seriesField:RD,interval:{color:l,style:u}}});Qw(v);var m=_b({},t,{chart:n,options:{xField:a,yField:s[1],seriesField:RD,widthRatio:c,interval:{color:l,style:u}}});return Qw(m),t}function VD(t){var e,n,i,r=t.options,o=t.chart,a=r.xAxis,s=r.yAxis,l=r.xField,u=r.yField,c=Cb(o,LD),h=Cb(o,OD),p={};return(0,S.XP)((null===r||void 0===r?void 0:r.meta)||{}).map((function(t){(0,S.U2)(null===r||void 0===r?void 0:r.meta,[t,"alias"])&&(p[t]=r.meta[t].alias)})),o.scale((e={},e[RD]={sync:!0,formatter:function(t){return(0,S.U2)(p,t,t)}},e)),Rw((n={},n[l]=a,n[u[0]]=s[u[0]],n))(_b({},t,{chart:c})),Rw((i={},i[l]=a,i[u[1]]=s[u[1]],i))(_b({},t,{chart:h})),t}function YD(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField,s=n.layout,l=Cb(e,LD),u=Cb(e,OD);return"bottom"===(null===i||void 0===i?void 0:i.position)?u.axis(o,(0,C.pi)((0,C.pi)({},i),{label:{formatter:function(){return""}}})):u.axis(o,!1),!1===i?l.axis(o,!1):l.axis(o,(0,C.pi)({position:_D(s)?"top":"bottom"},i)),!1===r?(l.axis(a[0],!1),u.axis(a[1],!1)):(l.axis(a[0],r[a[0]]),u.axis(a[1],r[a[1]])),e.__axisPosition={position:l.getOptions().axes[o].position,layout:s},t}function HD(t){var e=t.chart;return Iw(_b({},t,{chart:Cb(e,LD)})),Iw(_b({},t,{chart:Cb(e,OD)})),t}function XD(t){var e=t.chart,n=t.options,i=n.yField,r=n.yAxis;return _w(_b({},t,{chart:Cb(e,LD),options:{yAxis:r[i[0]]}})),_w(_b({},t,{chart:Cb(e,OD),options:{yAxis:r[i[1]]}})),t}function GD(t){var e=t.chart;return Dw(_b({},t,{chart:Cb(e,LD)})),Dw(_b({},t,{chart:Cb(e,OD)})),Dw(t),t}function WD(t){var e=t.chart;return Bw(_b({},t,{chart:Cb(e,LD)})),Bw(_b({},t,{chart:Cb(e,OD)})),t}function jD(t){var e,n,i=this,r=t.chart,o=t.options,a=o.label,s=o.yField,l=o.layout,u=Cb(r,LD),c=Cb(r,OD),h=xb(u,"interval"),p=xb(c,"interval");if(a){var f=a.callback,d=(0,C._T)(a,["callback"]);d.position||(d.position="middle"),void 0===d.offset&&(d.offset=2);var g=(0,C.pi)({},d);if(_D(l)){var v=(null===(e=g.style)||void 0===e?void 0:e.textAlign)||("middle"===d.position?"center":"left");d.style=_b({},d.style,{textAlign:v});var m={left:"right",right:"left",center:"center"};g.style=_b({},g.style,{textAlign:m[v]})}else{var y={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof d.position?d.position=y[d.position]:"function"===typeof d.position&&(d.position=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return y[d.position.apply(i,t)]});var x=(null===(n=g.style)||void 0===n?void 0:n.textBaseline)||"bottom";g.style=_b({},g.style,{textBaseline:x});var b={top:"bottom",bottom:"top",middle:"middle"};d.style=_b({},d.style,{textBaseline:b[x]})}h.label({fields:[s[0]],callback:f,cfg:kb(g)}),p.label({fields:[s[1]],callback:f,cfg:kb(d)})}else h.label(!1),p.label(!1);return t}function QD(t){return pb(ND,VD,YD,XD,GD,jD,Tw,HD,WD)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return _b({},t.getDefaultOptions.call(this),{syncViewPadding:UD})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(M.BEFORE_CHANGE_DATA,Bu.fromData(this.chart,M.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=e.xField,i=e.yField,r=e.layout,o=zD(n,i,RD,t,_D(r)),a=o[0],s=o[1],l=Cb(this.chart,LD),u=Cb(this.chart,OD);l.data(a),u.data(s),this.chart.render(!0),this.chart.emit(M.AFTER_CHANGE_DATA,Bu.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return QD},e.SERIES_FIELD_KEY=RD})(uw);function ZD(t,e){if((0,S.kJ)(t))return t.find((function(t){return t.type===e}))}function qD(t,e){var n=ZD(t,e);return n&&!1!==n.enable}function JD(t){var e=t.interactions,n=t.drilldown;return(0,S.U2)(n,"enabled")||qD(e,"treemap-drill-down")}function KD(t){var e=t.interactions["drill-down"];if(e){var n=e.context.actions.find((function(t){return"drill-down-action"===t.name}));n.reset()}}function $D(t){var e=t.data,n=t.colorField,i=t.enableDrillDown,r=t.hierarchyConfig,o=BB(e,(0,C.pi)((0,C.pi)({},r),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),a=[];return o.forEach((function(t){if(0===t.depth)return null;if(i&&1!==t.depth)return null;if(!i&&t.children)return null;var o=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),s=i&&(0,S.kJ)(e.path)?o.concat(e.path.slice(1)):o,l=Object.assign({},t.data,(0,C.pi)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:s},t));if(!t.data[n]&&t.parent){var u=t.ancestors().find((function(t){return t.data[n]}));l[n]=null===u||void 0===u?void 0:u.data[n]}else l[n]=t.data[n];l[KT]={hierarchyConfig:r,colorField:n,enableDrillDown:i},a.push(l)})),a}function tP(t){var e=t.options,n=e.colorField;return _b({options:{rawFields:["value"],tooltip:{fields:["name","value",n,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function eP(t){var e=t.chart,n=t.options,i=n.color,r=n.colorField,o=n.rectStyle,a=n.hierarchyConfig,s=n.rawFields,l=$D({data:n.data,colorField:n.colorField,enableDrillDown:JD(n),hierarchyConfig:a});return e.data(l),Zw(_b({},t,{options:{xField:"x",yField:"y",seriesField:r,rawFields:s,polygon:{color:i,style:o}}})),e.coordinate().reflect("y"),t}function nP(t){var e=t.chart;return e.axis(!1),t}function iP(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n,r=JD(t);return r?_b({},t,{interactions:(0,C.pr)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:$D}}])}):t}function rP(t){var e=t.chart,n=t.options,i=n.interactions,r=n.drilldown;Iw({chart:e,options:iP(n)});var o=ZD(i,"view-zoom");o&&(!1!==o.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel"));var a=JD(n);return a&&(e.appendPadding=Kb(e.appendPadding,(0,S.U2)(r,["breadCrumb","position"]))),t}function oP(t){return pb(tP,Dw,Ew("rectStyle"),eP,nP,Fw,Tw,rP,Bw,zw())(t)}var aP={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return aP},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,i=e.interactions,r=e.hierarchyConfig;this.updateOption({data:t});var o=$D({data:t,colorField:n,enableDrillDown:qD(i,"treemap-drill-down"),hierarchyConfig:r});this.chart.changeData(o),KD(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return oP}})(uw);function sP(t){return t.target.depth}function lP(t){return t.depth}function uP(t,e){return e-1-t.height}function cP(t,e){return t.sourceLinks.length?t.depth:e-1}function hP(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?(0,S.F)(t.sourceLinks,sP)-1:0}function pP(t){return function(){return t}}function fP(t,e){for(var n=0,i=0;i<t.length;i++)n+=e(t[i]);return n}function dP(t,e){for(var n=-1/0,i=0;i<t.length;i++)n=Math.max(e(t[i]),n);return n}function gP(t,e){for(var n=1/0,i=0;i<t.length;i++)n=Math.min(e(t[i]),n);return n}function vP(t,e){return yP(t.source,e.source)||t.index-e.index}function mP(t,e){return yP(t.target,e.target)||t.index-e.index}function yP(t,e){return t.y0-e.y0}function xP(t){return t.value}function bP(t){return t.index}function wP(t){return t.nodes}function AP(t){return t.links}function CP(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function SP(t){for(var e=t.nodes,n=0,i=e;n<i.length;n++){for(var r=i[n],o=r.y0,a=o,s=0,l=r.sourceLinks;s<l.length;s++){var u=l[s];u.y0=o+u.width/2,o+=u.width}for(var c=0,h=r.targetLinks;c<h.length;c++){u=h[c];u.y1=a+u.width/2,a+=u.width}}}function MP(){var t,e,n,i,r=0,o=0,a=1,s=1,l=24,u=8,c=bP,h=cP,p=wP,f=AP,d=6;function g(t){var e={nodes:p(t),links:f(t)};return v(e),m(e),y(e),x(e),A(e),SP(e),e}function v(t){var e=t.nodes,n=t.links;e.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var r=new Map(e.map((function(t){return[c(t),t]})));if(n.forEach((function(t,e){t.index=e;var n=t.source,i=t.target;"object"!==typeof n&&(n=t.source=CP(r,n)),"object"!==typeof i&&(i=t.target=CP(r,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),null!=i)for(var o=0,a=e;o<a.length;o++){var s=a[o],l=s.sourceLinks,u=s.targetLinks;l.sort(i),u.sort(i)}}function m(t){for(var e=t.nodes,n=0,i=e;n<i.length;n++){var r=i[n];r.value=void 0===r.fixedValue?Math.max(fP(r.sourceLinks,xP),fP(r.targetLinks,xP)):r.fixedValue}}function y(t){var n=t.nodes,i=n.length,r=new Set(n),o=new Set,a=0;while(r.size){if(r.forEach((function(t){t.depth=a;for(var e=0,n=t.sourceLinks;e<n.length;e++){var i=n[e].target;o.add(i)}})),++a>i)throw new Error("circular link");r=o,o=new Set}if(e)for(var s=Math.max(dP(n,(function(t){return t.depth}))+1,0),l=void 0,u=0;u<n.length;u++)l=n[u],l.depth=e.call(null,l,s)}function x(t){var e=t.nodes,n=e.length,i=new Set(e),r=new Set,o=0;while(i.size){if(i.forEach((function(t){t.height=o;for(var e=0,n=t.targetLinks;e<n.length;e++){var i=n[e].source;r.add(i)}})),++o>n)throw new Error("circular link");i=r,r=new Set}}function b(t){for(var e=t.nodes,i=Math.max(dP(e,(function(t){return t.depth}))+1,0),o=(a-r-l)/(i-1),s=new Array(i).fill(0).map((function(){return[]})),u=0,c=e;u<c.length;u++){var p=c[u],f=Math.max(0,Math.min(i-1,Math.floor(h.call(null,p,i))));p.layer=f,p.x0=r+f*o,p.x1=p.x0+l,s[f]?s[f].push(p):s[f]=[p]}if(n)for(var d=0,g=s;d<g.length;d++){var v=g[d];v.sort(n)}return s}function w(e){for(var n=gP(e,(function(e){return(s-o-(e.length-1)*t)/fP(e,xP)})),i=0,r=e;i<r.length;i++){for(var a=r[i],l=o,u=0,c=a;u<c.length;u++){var h=c[u];h.y0=l,h.y1=l+h.value*n,l=h.y1+t;for(var p=0,f=h.sourceLinks;p<f.length;p++){var d=f[p];d.width=d.value*n}}l=(s-l+t)/(a.length+1);for(var g=0;g<a.length;++g){h=a[g];h.y0+=l*(g+1),h.y1+=l*(g+1)}T(a)}}function A(e){var n=b(e);t=Math.min(u,(s-o)/(dP(n,(function(t){return t.length}))-1)),w(n);for(var i=0;i<d;++i){var r=Math.pow(.99,i),a=Math.max(1-r,(i+1)/d);S(n,r,a),C(n,r,a)}}function C(t,e,i){for(var r=1,o=t.length;r<o;++r){for(var a=t[r],s=0,l=a;s<l.length;s++){for(var u=l[s],c=0,h=0,p=0,f=u.targetLinks;p<f.length;p++){var d=f[p],g=d.source,v=d.value,m=v*(u.layer-g.layer);c+=I(g,u)*m,h+=m}if(h>0){var y=(c/h-u.y0)*e;u.y0+=y,u.y1+=y,F(u)}}void 0===n&&a.sort(yP),a.length&&M(a,i)}}function S(t,e,i){for(var r=t.length,o=r-2;o>=0;--o){for(var a=t[o],s=0,l=a;s<l.length;s++){for(var u=l[s],c=0,h=0,p=0,f=u.sourceLinks;p<f.length;p++){var d=f[p],g=d.target,v=d.value,m=v*(g.layer-u.layer);c+=B(u,g)*m,h+=m}if(h>0){var y=(c/h-u.y0)*e;u.y0+=y,u.y1+=y,F(u)}}void 0===n&&a.sort(yP),a.length&&M(a,i)}}function M(e,n){var i=e.length>>1,r=e[i];E(e,r.y0-t,i-1,n),k(e,r.y1+t,i+1,n),E(e,s,e.length-1,n),k(e,o,0,n)}function k(e,n,i,r){for(;i<e.length;++i){var o=e[i],a=(n-o.y0)*r;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function E(e,n,i,r){for(;i>=0;--i){var o=e[i],a=(o.y1-n)*r;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function F(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===i){for(var r=0,o=n;r<o.length;r++){var a=o[r].source.sourceLinks;a.sort(mP)}for(var s=0,l=e;s<l.length;s++){var u=l[s].target.targetLinks;u.sort(vP)}}}function T(t){if(void 0===i)for(var e=0,n=t;e<n.length;e++){var r=n[e],o=r.sourceLinks,a=r.targetLinks;o.sort(mP),a.sort(vP)}}function I(e,n){for(var i=e.y0-(e.sourceLinks.length-1)*t/2,r=0,o=e.sourceLinks;r<o.length;r++){var a=o[r],s=a.target,l=a.width;if(s===n)break;i+=l+t}for(var u=0,c=n.targetLinks;u<c.length;u++){var h=c[u];s=h.source,l=h.width;if(s===e)break;i-=l}return i}function B(e,n){for(var i=n.y0-(n.targetLinks.length-1)*t/2,r=0,o=n.targetLinks;r<o.length;r++){var a=o[r],s=a.source,l=a.width;if(s===e)break;i+=l+t}for(var u=0,c=e.sourceLinks;u<c.length;u++){var h=c[u];s=h.target,l=h.width;if(s===n)break;i-=l}return i}return g.update=function(t){return SP(t),t},g.nodeId=function(t){return arguments.length?(c="function"===typeof t?t:pP(t),g):c},g.nodeAlign=function(t){return arguments.length?(h="function"===typeof t?t:pP(t),g):h},g.nodeDepth=function(t){return arguments.length?(e=t,g):e},g.nodeSort=function(t){return arguments.length?(n=t,g):n},g.nodeWidth=function(t){return arguments.length?(l=+t,g):l},g.nodePadding=function(e){return arguments.length?(u=t=+e,g):u},g.nodes=function(t){return arguments.length?(p="function"===typeof t?t:pP(t),g):p},g.links=function(t){return arguments.length?(f="function"===typeof t?t:pP(t),g):f},g.linkSort=function(t){return arguments.length?(i=t,g):i},g.size=function(t){return arguments.length?(r=o=0,a=+t[0],s=+t[1],g):[a-r,s-o]},g.extent=function(t){return arguments.length?(r=+t[0][0],a=+t[1][0],o=+t[0][1],s=+t[1][1],g):[[r,o],[a,s]]},g.iterations=function(t){return arguments.length?(d=+t,g):d},g}var kP={left:lP,right:uP,center:hP,justify:cP},EP={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function FP(t){var e=(0,S.HD)(t)?kP[t]:(0,S.mf)(t)?t:null;return e||cP}function TP(t){return(0,S.f0)({},EP,t)}function IP(t,e){var n=TP(t),i=n.nodeId,r=n.nodeSort,o=n.nodeAlign,a=n.nodeWidth,s=n.nodePadding,l=n.nodeDepth,u=MP().nodeSort(r).nodeWidth(a).nodePadding(s).nodeDepth(l).nodeAlign(FP(o)).extent([[0,0],[1,1]]).nodeId(i),c=u(e),h=c.nodes.map((function(t){var e=t.x0,n=t.x1,i=t.y0,r=t.y1;return t.x=[e,n,n,e],t.y=[i,i,r,r],t})).filter((function(t){return null!==t.name})),p=c.links.map((function(t){var e=t.source,n=t.target,i=e.x1,r=n.x0;t.x=[i,i,r,r];var o=t.width/2;return t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o],t})).filter((function(t){var e=t.source,n=t.target;return null!==e.name&&null!==n.name}));return{nodes:h,links:p}}function BP(t,e,n){var i=[];return t.forEach((function(t){var r=t[e],o=t[n];i.includes(r)||i.push(r),i.includes(o)||i.push(o)})),i}function DP(t,e,n,i){var r={};return e.forEach((function(t){r[t]={},e.forEach((function(e){r[t][e]=0}))})),t.forEach((function(t){r[t[n]][t[i]]=1})),r}function PP(t,e,n){if(!(0,S.kJ)(t))return[];var i=[],r=BP(t,e,n),o=DP(t,r,e,n),a={};function s(t){a[t]=1,r.forEach((function(e){if(0!=o[t][e])if(1==a[e])i.push(t+"_"+e);else{if(-1==a[e])return;s(e)}})),a[t]=-1}return r.forEach((function(t){a[t]=0})),r.forEach((function(t){-1!=a[t]&&s(t)})),0!==i.length&&console.warn("sankey data contains circle, "+i.length+" records removed.",i),t.filter((function(t){return i.findIndex((function(i){return i===t[e]+"_"+t[n]}))<0}))}function LP(t){return"node-link"===t}function OP(t,e,n){return Wb(t)?t/n:e}function RP(t,e,n){return Wb(t)?t/n:e}function zP(t,e,n){var i,r=t.dataType,o=t.data,a=t.sourceField,s=t.targetField,l=t.weightField,u=t.nodeAlign,c=t.nodeSort,h=t.nodePadding,p=t.nodePaddingRatio,f=t.nodeWidth,d=t.nodeWidthRatio,g=t.nodeDepth,v=t.rawFields,m=void 0===v?[]:v;i=LP(r)?o:Zb(PP(o,a,s),a,s,l,m);var y=IP({nodeAlign:u,nodePadding:RP(h,p,n),nodeWidth:OP(f,d,e),nodeSort:c,nodeDepth:g},i),x=y.nodes,b=y.links;return{nodes:x.map((function(t){return(0,C.pi)((0,C.pi)({},fb(t,(0,C.pr)(["x","y","name"],m))),{isNode:!0})})),edges:b.map((function(t){return(0,C.pi)((0,C.pi)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},fb(t,(0,C.pr)(["x","y","value"],m))),{isNode:!1})}))}}var _P="x",UP="y",NP="name",VP="nodes",YP="edges";function HP(t){var e=t.options,n=e.rawFields,i=void 0===n?[]:n;return _b({},{options:{tooltip:{fields:(0,S.jj)((0,C.pr)(["name","source","target","value","isNode"],i))},label:{fields:(0,S.jj)((0,C.pr)(["x","name"],i))}}},t)}function XP(t){var e=t.chart,n=t.options,i=n.color,r=n.nodeStyle,o=n.edgeStyle,a=n.label,s=n.tooltip,l=n.nodeState,u=n.edgeState;e.legend(!1),e.tooltip(s),e.axis(!1),e.coordinate().reflect("y");var c=zP(n,e.width,e.height),h=c.nodes,p=c.edges,f=e.createView({id:YP});f.data(p),qw({chart:f,options:{xField:_P,yField:UP,seriesField:NP,edge:{color:i,style:o,shape:"arc"},tooltip:s,state:u}});var d=e.createView({id:VP});return d.data(h),Zw({chart:d,options:{xField:_P,yField:UP,seriesField:NP,polygon:{color:i,style:r},label:a,tooltip:s,state:l}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),t}function GP(t){var e=t.chart,n=t.options,i=n.animation;"boolean"===typeof i?e.animate(i):e.animate(!0);var r=(0,C.pr)(e.views[0].geometries,e.views[1].geometries);return r.forEach((function(t){t.animate(i)})),t}function WP(t){var e=t.chart,n=t.options,i=n.nodeDraggable,r="sankey-node-draggable";return i?e.interaction(r):e.removeInteraction(r),t}function jP(t){var e=t.chart,n=t.options,i=n.interactions,r=void 0===i?[]:i,o=[].concat(r,n.nodeInteractions||[]),a=[].concat(r,n.edgeInteractions||[]),s=Cb(e,VP),l=Cb(e,YP);return o.forEach((function(t){!1===(null===t||void 0===t?void 0:t.enable)?s.removeInteraction(t.type):s.interaction(t.type,t.cfg||{})})),a.forEach((function(t){!1===(null===t||void 0===t?void 0:t.enable)?l.removeInteraction(t.type):l.interaction(t.type,t.cfg||{})})),t}function QP(t){return pb(HP,XP,jP,WP,GP,Dw)(t)}var ZP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return(0,C.ZT)(e,t),e.prototype.isNodeElement=function(){var t=(0,S.U2)(this.context,"event.target");if(t){var e=t.get("element");return e&&e.getModel().data.isNode}return!1},e.prototype.getNodeView=function(){return Cb(this.context.view,VP)},e.prototype.getEdgeView=function(){return Cb(this.context.view,YP)},e.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},e.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:(0,S.U2)(this.context,"event.x"),y:(0,S.U2)(this.context,"event.y")};var t=this.context.event.target.get("element"),e=this.getCurrentDatumIdx(t);if(-1===e)return;this.currentElementIdx=e,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},e.prototype.translate=function(){if(this.isDragging){var t=this.context.view,e={x:(0,S.U2)(this.context,"event.x"),y:(0,S.U2)(this.context,"event.y")},n=e.x-this.prevPoint.x,i=e.y-this.prevPoint.y,r=this.getNodeView(),o=r.geometries[0].elements[this.currentElementIdx];if(o&&o.getModel()){var a=o.getModel().data,s=r.getOptions().data,l=r.getCoordinate(),u={x:n/l.getWidth(),y:i/l.getHeight()},c=(0,C.pi)((0,C.pi)({},a),{x:a.x.map((function(t){return t+u.x})),y:a.y.map((function(t){return t+u.y}))}),h=(0,C.pr)(s);h[this.currentElementIdx]=c,r.data(h);var p=a.name,f=this.getEdgeView(),d=f.getOptions().data;d.forEach((function(t){t.source===p&&(t.x[0]+=u.x,t.x[1]+=u.x,t.y[0]+=u.y,t.y[1]+=u.y),t.target===p&&(t.x[2]+=u.x,t.x[3]+=u.x,t.y[2]+=u.y,t.y[3]+=u.y)})),f.data(d),this.prevPoint=e,t.render(!0)}}},e.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},e}(Ys);Qs("sankey-node-drag",ZP),Gl("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(t){return t.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(t){var e=t.name;return e},callback:function(t){var e=1===t[1];return{style:{fill:"#545454",textAlign:e?"end":"start"},offsetX:e?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(t){return!(0,S.U2)(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,i=t.value;return{name:e+" -> "+n,value:i}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=zP(this.options,this.chart.width,this.chart.height),n=e.nodes,i=e.edges,r=Cb(this.chart,VP),o=Cb(this.chart,YP);r.changeData(n),o.changeData(i)},e.prototype.getSchemaAdaptor=function(){return QP},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(uw);var qP={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function JP(t,e,n){(0,S.U5)(t,(function(t,i){t.inEdges=e.filter((function(t){return""+n.target(t)===""+i})),t.outEdges=e.filter((function(t){return""+n.source(t)===""+i})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}function KP(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}},i=n[e.sortBy];!i&&(0,S.mf)(e.sortBy)&&(i=e.sortBy),i&&t.sort(i)}function $P(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var i=e.nodePaddingRatio;if(i<0||i>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var r=i/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-i),t.height=o})),t.forEach((function(n,i){for(var a=0,s=i-1;s>=0;s--)a+=t[s].width+2*r;var l=n.minX=r+a,u=n.maxX=n.minX+n.width,c=n.minY=e.y-o/2,h=n.maxY=c+o;n.x=[l,u,u,l],n.y=[c,c,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}function tL(t,e,n){if(n.weight){var i={};(0,S.U5)(t,(function(t,e){i[e]=t.value})),e.forEach((function(e){var r=n.source(e),o=n.target(e),a=t[r],s=t[o];if(a&&s){var l=i[r],u=n.sourceWeight(e),c=a.minX+(a.value-l)/a.value*a.width,h=c+u/a.value*a.width;i[r]-=u;var p=i[o],f=n.targetWeight(e),d=s.minX+(s.value-p)/s.value*s.width,g=d+f/s.value*s.width;i[o]-=f;var v=n.y;e.x=[c,h,d,g],e.y=[v,v,v,v],e.source=a,e.target=s}}))}else e.forEach((function(e){var i=t[n.source(e)],r=t[n.target(e)];i&&r&&(e.x=[i.x,r.x],e.y=[i.y,r.y],e.source=i,e.target=r)}));return e}function eL(t){return(0,S.f0)({},qP,t)}function nL(t,e){var n=eL(t),i={},r=e.nodes,o=e.links;r.forEach((function(t){var e=n.id(t);i[e]=t})),JP(i,o,n),KP(r,n);var a=$P(r,n),s=tL(i,o,n);return{nodes:a,links:s}}var iL="x",rL="y",oL="name",aL="source",sL={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){var n=(t[0]+t[1])/2,i=n>.5?-4:4;return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:i,content:e}}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!(0,S.U2)(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,i=t.value;return{name:e+" -> "+n,value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function lL(t){var e=t.options,n=e.data,i=e.sourceField,r=e.targetField,o=e.weightField,a=e.nodePaddingRatio,s=e.nodeWidthRatio,l=e.rawFields,u=void 0===l?[]:l,c=Zb(n,i,r,o),h=nL({weight:!0,nodePaddingRatio:a,nodeWidthRatio:s},c),p=h.nodes,f=h.links,d=p.map((function(t){return(0,C.pi)((0,C.pi)({},fb(t,(0,C.pr)(["id","x","y","name"],u))),{isNode:!0})})),g=f.map((function(t){return(0,C.pi)((0,C.pi)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},fb(t,(0,C.pr)(["x","y","value"],u))),{isNode:!1})}));return(0,C.pi)((0,C.pi)({},t),{ext:(0,C.pi)((0,C.pi)({},t.ext),{chordData:{nodesData:d,edgesData:g}})})}function uL(t){var e,n=t.chart;return n.scale((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},e[oL]={sync:"color"},e[aL]={sync:"color"},e)),t}function cL(t){var e=t.chart;return e.axis(!1),t}function hL(t){var e=t.chart;return e.legend(!1),t}function pL(t){var e=t.chart,n=t.options,i=n.tooltip;return e.tooltip(i),t}function fL(t){var e=t.chart;return e.coordinate("polar").reflect("y"),t}function dL(t){var e=t.chart,n=t.options,i=t.ext.chordData.nodesData,r=n.nodeStyle,o=n.label,a=n.tooltip,s=e.createView();return s.data(i),Zw({chart:s,options:{xField:iL,yField:rL,seriesField:oL,polygon:{style:r},label:o,tooltip:a}}),t}function gL(t){var e=t.chart,n=t.options,i=t.ext.chordData.edgesData,r=n.edgeStyle,o=n.tooltip,a=e.createView();a.data(i);var s={xField:iL,yField:rL,seriesField:aL,edge:{style:r,shape:"arc"},tooltip:o};return qw({chart:a,options:s}),t}function vL(t){var e=t.chart,n=t.options,i=n.animation;return"boolean"===typeof i?e.animate(i):e.animate(!0),(0,S.S6)(Ab(e),(function(t){t.animate(i)})),t}function mL(t){return pb(Dw,lL,fL,uL,cL,hL,pL,gL,dL,Iw,Pw,vL)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return sL},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return mL}})(uw);var yL={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function xL(t,e){e=(0,S.f0)({},yL,e);var n,i=e.as;if(!(0,S.kJ)(i)||3!==i.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=NT(e)}catch(u){console.warn(u)}var r=function(t){return iB().size(e.size).padding(e.padding)(yI(t).sum((function(t){return t[n]})).sort(e.sort))},o=r(t),a=i[0],s=i[1],l=i[2];return o.each((function(t){t[a]=t.x,t[s]=t.y,t[l]=t.r})),VT(o)}function bL(t){var e=t.data,n=t.hierarchyConfig,i=t.rawFields,r=void 0===i?[]:i,o=t.enableDrillDown,a=xL(e,(0,C.pi)((0,C.pi)({},n),{field:"value",as:["x","y","r"]})),s=[];return a.forEach((function(t){var e,i=t.data.name,a=(0,C.pi)({},t);while(a.depth>1)i=(null===(e=a.parent.data)||void 0===e?void 0:e.name)+" / "+i,a=a.parent;if(o&&t.depth>2)return null;var l=_b({},t.data,(0,C.pi)((0,C.pi)((0,C.pi)({},fb(t.data,r)),{path:i}),t));l.ext=n,l[KT]={hierarchyConfig:n,rawFields:r,enableDrillDown:o},s.push(l)})),s}function wL(t,e,n){var i=$b([t,e]),r=i[0],o=i[1],a=i[2],s=i[3],l=n.width,u=n.height,c=l-(s+o),h=u-(r+a),p=Math.min(c,h),f=(c-p)/2,d=(h-p)/2,g=r+d,v=o+f,m=a+d,y=s+f,x=[g,v,m,y],b=p<0?0:p;return{finalPadding:x,finalSize:b}}var AL=["x","y","r","name","value","path","depth"],CL={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}};function SL(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return _b({options:{size:function(t){var e=t.r;return e*n}}},t)}function ML(t){var e=t.options,n=t.chart,i=n.viewBBox,r=e.padding,o=e.appendPadding,a=e.drilldown,s=o;if(null===a||void 0===a?void 0:a.enabled){var l=Kb(n.appendPadding,(0,S.U2)(a,["breadCrumb","position"]));s=$b([l,o])}var u=wL(r,s,i).finalPadding;return n.padding=u,n.appendPadding=0,t}function kL(t){var e=t.chart,n=t.options,i=e.padding,r=e.appendPadding,o=n.color,a=n.colorField,s=n.pointStyle,l=n.hierarchyConfig,u=n.sizeField,c=n.rawFields,h=void 0===c?[]:c,p=n.drilldown,f=bL({data:n.data,hierarchyConfig:l,enableDrillDown:null===p||void 0===p?void 0:p.enabled,rawFields:h});e.data(f);var d=e.viewBBox,g=wL(i,r,d).finalSize,v=function(t){var e=t.r;return e*g};return u&&(v=function(t){return t[u]*g}),Ww(_b({},t,{options:{xField:"x",yField:"y",seriesField:a,sizeField:u,rawFields:(0,C.pr)(AL,h),point:{color:o,style:s,shape:"circle",size:v}}})),t}function EL(t){return pb(Rw({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function FL(t){var e=t.chart,n=t.options,i=n.tooltip;if(!1===i)e.tooltip(!1);else{var r=i;(0,S.U2)(i,"fields")||(r=_b({},{customItems:function(t){return t.map((function(t){var n=(0,S.U2)(e.getOptions(),"scales"),i=(0,S.U2)(n,["name","formatter"],(function(t){return t})),r=(0,S.U2)(n,["value","formatter"],(function(t){return t}));return(0,C.pi)((0,C.pi)({},t),{name:i(t.data.name),value:r(t.data.value)})}))}},r)),e.tooltip(r)}return t}function TL(t){var e=t.chart;return e.axis(!1),t}function IL(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?_b({},t,{interactions:(0,C.pr)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:bL,enableDrillDown:!0}}])}):t}function BL(t){var e=t.chart,n=t.options;return Iw({chart:e,options:IL(n)}),t}function DL(t){return pb(Ew("pointStyle"),SL,ML,Dw,EL,kL,TL,Fw,FL,BL,Bw,zw())(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return CL},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return DL},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}})(uw),function(t){function e(e,n,i,r){var o=t.call(this,e,_b({},r,n))||this;return o.type="g2-plot",o.defaultOptions=r,o.adaptor=i,o}(0,C.ZT)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}}(uw);var PL={line:aA,pie:xC,column:XA,bar:KA,area:vA,gauge:aD,"tiny-line":kM,"tiny-column":TM,"tiny-area":SM,"ring-progress":nk,progress:KM,scatter:IS,histogram:GM,funnel:aT,stock:kF},LL={line:uA,pie:bC,column:WA,bar:tC,area:yA,gauge:sD,"tiny-line":EM,"tiny-column":DM,"tiny-area":LM,"ring-progress":rk,progress:$M,scatter:DS,histogram:WM,funnel:sT,stock:FF},OL={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function RL(t,e,n){var i=LL[t];if(i){var r=PL[t];r({chart:e,options:_b({},i.getDefaultOptions(),(0,S.U2)(OL,t,{}),n)})}else console.error("could not find "+t+" plot")}function zL(t){var e=t.chart,n=t.options,i=n.views,r=n.legend;return(0,S.S6)(i,(function(t){var n=t.region,i=t.data,r=t.meta,o=t.axes,a=t.coordinate,s=t.interactions,l=t.annotations,u=t.tooltip,c=t.geometries,h=e.createView({region:n});h.data(i);var p={};o&&(0,S.S6)(o,(function(t,e){p[e]=fb(t,cw)})),p=_b({},r,p),h.scale(p),o?(0,S.S6)(o,(function(t,e){h.axis(e,t)})):h.axis(!1),h.coordinate(a),(0,S.S6)(c,(function(t){var e=Hw({chart:h,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),(0,S.S6)(s,(function(t){!1===t.enable?h.removeInteraction(t.type):h.interaction(t.type,t.cfg)})),(0,S.S6)(l,(function(t){h.annotation()[t.type]((0,C.pi)({},t))})),"boolean"===typeof t.animation?h.animate(!1):(h.animate(!0),(0,S.S6)(h.geometries,(function(e){e.animate(t.animation)}))),u&&(h.interaction("tooltip"),h.tooltip(u))})),r?(0,S.S6)(r,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function _L(t){var e=t.chart,n=t.options,i=n.plots,r=n.data,o=void 0===r?[]:r;return(0,S.S6)(i,(function(t){var n=t.type,i=t.region,r=t.options,a=void 0===r?{}:r,s=t.top,l=a.tooltip;if(s)RL(n,e,(0,C.pi)((0,C.pi)({},a),{data:o}));else{var u=e.createView((0,C.pi)({region:i},fb(a,lw)));l&&u.interaction("tooltip"),RL(n,u,(0,C.pi)({data:o},a))}})),t}function UL(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function NL(t){return pb(Bw,zL,_L,Iw,Bw,Dw,Tw,UL,zw())(t)}function VL(t,e){var n,i=t.getModel(),r=i.data;return n=(0,S.kJ)(r)?r[0][e]:r[e],n}function YL(t){var e=bb(t);(0,S.S6)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}var HL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,C.ZT)(e,t),e.prototype.getAssociationItems=function(t,e){var n,i=this.context.event,r=e||{},o=r.linkField,a=r.dim,s=[];if(null===(n=i.data)||void 0===n?void 0:n.data){var l=i.data.data;(0,S.S6)(t,(function(t){var e,n,i=o;if("x"===a?i=t.getXScale().field:"y"===a?i=null===(e=t.getYScales().find((function(t){return t.field===i})))||void 0===e?void 0:e.field:i||(i=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),i){var r=(0,S.UI)(bb(t),(function(e){var n=!1,r=!1,o=(0,S.kJ)(l)?(0,S.U2)(l[0],i):(0,S.U2)(l,i);return VL(e,i)===o?n=!0:r=!0,{element:e,view:t,active:n,inactive:r}}));s.push.apply(s,r)}}))}return s},e.prototype.showTooltip=function(t){var e=Mb(this.context.view),n=this.getAssociationItems(e,t);(0,S.S6)(n,(function(t){if(t.active){var e=t.element.shape.getCanvasBBox();t.view.showTooltip({x:e.minX+e.width/2,y:e.minY+e.height/2})}}))},e.prototype.hideTooltip=function(){var t=Mb(this.context.view);(0,S.S6)(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=Sb(this.context.view),n=this.getAssociationItems(e,t);(0,S.S6)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=Sb(this.context.view),n=this.getAssociationItems(e,t);(0,S.S6)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=Sb(this.context.view),n=this.getAssociationItems(e,t);(0,S.S6)(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=Sb(this.context.view);(0,S.S6)(t,(function(t){YL(t)}))},e}(Ys);Qs("association",HL),Gl("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Gl("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Gl("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Gl("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var XL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return(0,C.ZT)(e,t),e.prototype.getSchemaAdaptor=function(){return NL},e}(uw);function GL(t,e){var n=e.data,i=e.coordinate,r=e.interactions,o=e.annotations,a=e.animation,s=e.tooltip,l=e.axes,u=e.meta,c=e.geometries;n&&t.data(n);var h={};l&&(0,S.S6)(l,(function(t,e){h[e]=fb(t,cw)})),h=_b({},u,h),t.scale(h),i&&t.coordinate(i),!1===l?t.axis(!1):(0,S.S6)(l,(function(e,n){t.axis(n,e)})),(0,S.S6)(c,(function(e){var n=Hw({chart:t,options:e}).ext,i=e.adjust;i&&n.geometry.adjust(i)})),(0,S.S6)(r,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),(0,S.S6)(o,(function(e){t.annotation()[e.type]((0,C.pi)({},e))})),"boolean"===typeof a?t.animate(!1):(t.animate(!0),(0,S.S6)(t.geometries,(function(t){t.animate(a)}))),s?(t.interaction("tooltip"),t.tooltip(s)):!1===s&&t.removeInteraction("tooltip")}function WL(t){var e=t.chart,n=t.options,i=n.type,r=n.data,o=n.fields,a=n.eachView,s=(0,S.CE)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(r),e.facet(i,(0,C.pi)((0,C.pi)({},s),{fields:o,eachView:function(t,e){var n=a(t,e);if(n.geometries)GL(t,n);else{var i=n,r=i.options;r.tooltip&&t.interaction("tooltip"),RL(i.type,t,r)}}})),t}function jL(t){var e=t.chart,n=t.options,i=n.axes,r=n.meta,o=n.tooltip,a=n.coordinate,s=n.theme,l=n.legend,u=n.interactions,c=n.annotations,h={};return i&&(0,S.S6)(i,(function(t,e){h[e]=fb(t,cw)})),h=_b({},r,h),e.scale(h),e.coordinate(a),i?(0,S.S6)(i,(function(t,n){e.axis(n,t)})):e.axis(!1),o?(e.interaction("tooltip"),e.tooltip(o)):!1===o&&e.removeInteraction("tooltip"),e.legend(l),s&&e.theme(s),(0,S.S6)(u,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),(0,S.S6)(c,(function(t){e.annotation()[t.type]((0,C.pi)({},t))})),t}function QL(t){return pb(Dw,WL,jL)(t)}var ZL,qL={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}(0,C.ZT)(e,t),e.getDefaultOptions=function(){return qL},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return QL}})(uw);function JL(t,e){console.warn(t===ZL.DEV?"Plot '"+e+"' is in DEV stage, just give us issues.":t===ZL.BETA?"Plot '"+e+"' is in BETA stage, DO NOT use it in production env.":t===ZL.STABLE?"Plot '"+e+"' is in STABLE stage, import it by \"import { "+e+" } from '@antv/g2plot'\".":"invalid Stage type.")}(function(t){t["DEV"]="DEV",t["BETA"]="BETA",t["STABLE"]="STABLE"})(ZL||(ZL={}));(function(){function t(){}Object.defineProperty(t,"MultiView",{get:function(){return JL(ZL.STABLE,"MultiView"),XL},enumerable:!1,configurable:!0})})();nw("en-US",rw),nw("zh-CN",ow);var KL={data(){return{radio:1,chartLine(){}}},methods:{renderLine(){this.chartLine=new uA("container",{data:[],xField:"time",yField:"bytes",label:{},yAxis:{},meta:{time:{alias:"时间"},bytes:{alias:"容量"}},point:{size:0,shape:"diamond",style:{fill:"white",stroke:"#5B8FF9",lineWidth:2}},tooltip:{showMarkers:!1},state:{active:{style:{shadowBlur:4,stroke:"#000",fill:"blue"}}},interactions:[{type:"marker-active"}]}),this.chartLine.render(),this.getLineChartOfStorage()},async getLineChartOfStorage(){let t={classname:"webmanage.dataanalysis.MediaCenter",method:"getLineChartOfStorage",content:{date:"2022-06-06",type:this.radio}};const e=await this.$api.requested(t);this.chartLine.changeData(e.data)}},mounted(){this.renderLine()}},$L=KL,tO=n(1001),eO=(0,tO.Z)($L,w,A,!1,null,"b55bd090",null),nO=eO.exports,iO=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"flex-align-center flex-between"},[n("p",{staticClass:"title"},[t._v("下载流量")]),n("el-radio-group",{attrs:{size:"small"},on:{change:t.getLineChartOfDownload},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[n("el-radio-button",{attrs:{label:1}},[t._v("年")]),n("el-radio-button",{attrs:{label:2}},[t._v("月")]),n("el-radio-button",{attrs:{label:3}},[t._v("日")])],1)],1),n("div",{attrs:{id:"container_t"}})])},rO=[],oO={data(){return{radio:1,chartLine(){}}},methods:{renderLine(){this.chartLine=new uA("container_t",{data:[],xField:"time",yField:"bytes",label:{},yAxis:{},meta:{time:{alias:"时间"},bytes:{alias:"容量"}},point:{size:0,shape:"diamond",style:{fill:"white",stroke:"#5B8FF9",lineWidth:2}},tooltip:{showMarkers:!1},state:{active:{style:{shadowBlur:4,stroke:"#000",fill:"blue"}}},interactions:[{type:"marker-active"}]}),this.chartLine.render(),this.getLineChartOfDownload()},async getLineChartOfDownload(){let t={classname:"webmanage.dataanalysis.MediaCenter",method:"getLineChartOfDownload",content:{date:"2022-06-06",type:this.radio}};const e=await this.$api.requested(t);this.chartLine.changeData(e.data)}},mounted(){this.renderLine()}},aO=oO,sO=(0,tO.Z)(aO,iO,rO,!1,null,"3d4b1356",null),lO=sO.exports,uO=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},cO=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",{staticClass:"title"},[t._v("文件类型存储占比")]),n("div",{attrs:{id:"container_filetype"}})])}],hO={data(){return{chartPie:null}},methods:{renderPie(){this.chartPie=new bC("container_filetype",{appendPadding:10,data:[],angleField:"count",colorField:"postfix",radius:1,innerRadius:.75,content:"",tooltip:{},legend:{position:"left"},label:{type:"inner",offset:"-50%",autoRotate:!1,style:{textAlign:"center"},formatter:({percent:t})=>`${(100*t).toFixed(0)}%`},statistic:{title:{formatter:()=>"文件总存储量",offsetY:-8},content:{offsetY:-4}}}),this.chartPie.render(),this.getProportionOfFileType()},async getProportionOfFileType(){let t={classname:"webmanage.dataanalysis.MediaCenter",method:"getProportionOfFileType",content:{}};const e=await this.$api.requested(t);this.chartPie.changeData(e.data)}},mounted(){this.renderPie()}},pO=hO,fO=(0,tO.Z)(pO,uO,cO,!1,null,"e735ed18",null),dO=fO.exports,gO=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},vO=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",{staticClass:"title"},[t._v("各模块文件存储占比")]),n("div",{attrs:{id:"container_modulestype"}})])}],mO={data(){return{chartPie:null}},methods:{renderPie(){this.chartPie=new bC("container_modulestype",{appendPadding:10,data:[],angleField:"count",colorField:"type",radius:1,innerRadius:.75,content:"",tooltip:{},legend:{position:"left"},label:{type:"inner",offset:"-50%",autoRotate:!1,style:{textAlign:"center"},formatter:({percent:t})=>`${(100*t).toFixed(0)}%`},statistic:{title:{formatter:()=>"文件总存储量",offsetY:-8},content:{offsetY:-4}}}),this.chartPie.render(),this.getProportionOfFileModel()},async getProportionOfFileModel(){let t={classname:"webmanage.dataanalysis.MediaCenter",method:"getProportionOfFileModel",content:{}};const e=await this.$api.requested(t);this.chartPie.changeData(e.data)}},mounted(){this.renderPie()}},yO=mO,xO=(0,tO.Z)(yO,gO,vO,!1,null,"029fc8ae",null),bO=xO.exports,wO={components:{storageCapacity:nO,downloadTraffic:lO,fileTypeProportion:dO,modulesProportion:bO},data(){return{}}},AO=wO,CO=(0,tO.Z)(AO,x,b,!1,null,null,null),SO=CO.exports},5583:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return K}});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-row",[n("el-col",{attrs:{span:17}},[n("list",{ref:"list",on:{onNameChange:t.onNameChange,folderChecked:t.folderChecked,toFolderDetail:t.toFolderDetail}},[t.showBtnGroup?[n("el-button-group",{attrs:{slot:"btngroup"},slot:"btngroup"},[t.tool.checkAuth(t.$route.name,"download")?n("download",{attrs:{checklist:t.checklist}}):t._e(),t.tool.checkAuth(t.$route.name,"delete")?n("delete-file",{attrs:{checklist:t.checklist},on:{onSuccess:t.onSuccess}}):t._e(),t.tool.checkAuth(t.$route.name,"update")?n("more-operation",{ref:"edit",attrs:{checklist:t.checklist},on:{restName:t.restName,onSuccess:t.onSuccess}}):t._e()],1)]:[t.tool.checkAuth(t.$route.name,"upload")?n("h-upload",{attrs:{slot:"upload",folderid:t.folderid},on:{onSuccess:t.onSuccess},slot:"upload"}):t._e(),t.tool.checkAuth(t.$route.name,"insert")?n("add",{ref:"add",staticStyle:{"margin-left":"10px"},attrs:{slot:"add"},on:{addClick:t.addClick,onSuccess:t.onSuccess},slot:"add"}):t._e()]],2)],1),n("el-col",{attrs:{span:7}},[n("fileInfo",{ref:"filelist",attrs:{filelist:t.checklist}})],1)],1)},r=[],o=n(9121),a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"flex-align-center flex-between border-bottom container normal-panel"},[i("div",{staticClass:"flex-align-center"},[t._t("upload"),t._t("add"),t._t("btngroup")],2),i("div",{staticClass:"flex-align-center"},[i("el-input",{staticStyle:{width:"160px","margin-right":"16px"},attrs:{size:"small","prefix-icon":"el-icon-search",placeholder:"搜索全部",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.queryAttachment(t.params.content.pageNumber=1)}},model:{value:t.params.content.where.condition,callback:function(e){t.$set(t.params.content.where,"condition",e)},expression:"params.content.where.condition"}}),i("sort",{attrs:{sort:t.sort},on:{onSort:t.onSort}}),i("i",{staticClass:"el-icon-refresh",staticStyle:{"margin-left":"16px"},on:{click:function(e){return t.queryAttachment(t.params.content.where.condition="")}}})],1)]),i("div",{staticClass:"container normal-panel",staticStyle:{height:"calc(100vh - 255px)","overflow-y":"scroll"}},[i("el-row",{staticClass:"folder-list",attrs:{gutter:10}},t._l(t.list,(function(e){return i("el-col",{directives:[{name:"show",rawName:"v-show",value:"FOLDER"===e.postfix,expression:"folder.postfix === 'FOLDER'"}],key:e.id,attrs:{span:3}},[i("div",{staticClass:"folder-item",class:e.ischeck?"checked":""},[i("el-checkbox",{staticClass:"folder-checkbox",on:{change:function(n){return t.onChange(e)}},model:{value:e.ischeck,callback:function(n){t.$set(e,"ischeck",n)},expression:"folder.ischeck"}}),i("div",{staticClass:"img-panel"},[i("img",{attrs:{src:n(5609),alt:""},on:{click:function(n){return t.folderDetails(e.attachmentid)}}})]),e.newfolder?i("input",{directives:[{name:"model",rawName:"v-model",value:e.document,expression:"folder.document"}],attrs:{type:"text",autofocus:"",size:"mini"},domProps:{value:e.document},on:{blur:function(n){return t.changeFolderName(e)},input:function(n){n.target.composing||t.$set(e,"document",n.target.value)}}}):i("p",{on:{click:function(n){return t.folderDetails(e.attachmentid)}}},[t._v(t._s(e.document))])],1)])})),1),i("el-row",{staticClass:"folder-list",attrs:{gutter:10}},t._l(t.list,(function(e){return i("el-col",{directives:[{name:"show",rawName:"v-show",value:"FOLDER"!==e.postfix,expression:"folder.postfix !== 'FOLDER'"}],key:e.id,attrs:{span:3}},[i("div",{staticClass:"folder-item",class:e.ischeck?"checked":""},[i("el-checkbox",{staticClass:"folder-checkbox",on:{change:function(n){return t.onChange(e)}},model:{value:e.ischeck,callback:function(n){t.$set(e,"ischeck",n)},expression:"folder.ischeck"}}),i("div",{staticClass:"img-panel"},["DOC"===e.postfix||"DOCX"===e.postfix?i("img",{attrs:{src:n(2349),alt:""}}):"PDF"===e.postfix?i("img",{attrs:{src:n(8813),alt:""}}):"MP4"===e.postfix||"AVI"===e.postfix?i("img",{attrs:{src:n(9902),alt:""}}):"XLS"===e.postfix||"XLSX"===e.postfix?i("img",{attrs:{src:n(6155),alt:""}}):"PNG"===e.postfix||"JPG"===e.postfix||"JPEG"===e.postfix?i("img",{attrs:{src:n(5968),alt:""}}):"PPT"===e.postfix||"PPTX"===e.postfix?i("img",{attrs:{src:n(4858),alt:""}}):"TXT"===e.postfix?i("img",{attrs:{src:n(7244),alt:""}}):"FOLDER"===e.postfix?i("img",{attrs:{src:n(5609),alt:""}}):i("img",{attrs:{src:n(3899),alt:""}})]),e.newfolder?i("input",{directives:[{name:"model",rawName:"v-model",value:e.document,expression:"folder.document"}],attrs:{type:"text",autofocus:"",size:"mini"},domProps:{value:e.document},on:{blur:function(n){return t.changeFolderName(e)},input:function(n){n.target.composing||t.$set(e,"document",n.target.value)}}}):i("p",[t._v(t._s(e.document))])],1)])})),1),0===t.list.length?i("div",{staticClass:"flex-align-center",staticStyle:{height:"calc(100vh - 200px)","justify-content":"space-around"}},[i("el-empty",{attrs:{description:"暂无文件,请点击左上角的“上传”按钮添加"}})],1):t._e()],1),i("div",{staticStyle:{margin:"16px 0","text-align":"right"}},[i("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.params.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])},s=[],l={data(){return{params:{classname:"system.attachment.MediaCenter",method:"queryAttachment",content:{pageNumber:1,pageSize:20,where:{condition:"",parentid:""}}},list:[],sort:[],total:0,currentPage:0}},methods:{onSort(t){this.params.content.sort=[t],this.queryAttachment(this.params.content.where.parentid)},async queryAttachment(){this.params.content.where.parentid=this.$route.query.id?this.$route.query.id:0;const t=await this.$api.requested(this.params);t.data.map((t=>{t.postfix=t.postfix.toUpperCase(),t.ischeck=!1})),this.list=t.data,this.total=t.total,this.currentPage=t.pageNumber,this.sort=t.sort},handleSizeChange(t){this.params.content.pageSize=t,this.queryAttachment(this.params.content.where.parentid)},handleCurrentChange(t){this.params.content.pageNumber=t,this.queryAttachment(this.params.content.where.parentid)},changeFolderName(t){this.$emit("onNameChange",t)},onChange(t){let e=[];this.list.forEach(((t,n)=>{!0===t.ischeck&&e.push(t)})),this.$emit("folderChecked",e)},folderDetails(t){this.$router.push({path:"/mediaStock",query:{id:t}}),this.$emit("toFolderDetail",t),this.queryAttachment(t)},restChecked(){this.list.forEach(((t,e)=>{t.ischeck=!1}))}},mounted(){this.queryAttachment()},watch:{$route(){this.queryAttachment(),this.$emit("folderChecked",[])}}},u=l,c=n(1001),h=(0,c.Z)(u,a,s,!1,null,"eba8624e",null),p=h.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{size:"small",icon:"el-icon-plus"},on:{click:t.createFolder}},[t._v("新建文件夹")])],1)},d=[],g={data(){return{params:{classname:"system.attachment.MediaCenter",method:"createFolder",content:{foldername:"文件夹名称",parentid:""}}}},methods:{createFolder(){this.$emit("addClick")},async createFolderComplete(t){let e=this.$route.query.id?this.$route.query.id:0;this.params.content.parentid=e,this.params.content.foldername=t.document;const n=await this.$api.requested(this.params);1===n.code?(this.$emit("onSuccess"),this.$message({message:"新建文件夹成功",type:"success"})):this.$message({message:n.data,type:"error"})}}},v=g,m=(0,c.Z)(v,f,d,!1,null,null,null),y=m.exports,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-button",{attrs:{icon:"el-icon-download",size:"small"},on:{click:t.clickDownload}},[t._v("下 载")])},b=[],w={props:["checklist"],data(){return{}},methods:{clickDownload(){this.checklist.forEach((t=>{"FOLDER"===t.postfix?(this.downLoadFolder(t.attachmentid),this.$store.dispatch("createdownlog",{linksid:"",attachmentid:t.attachmentid})):(this.dowFile(t.url),this.$store.dispatch("createdownlog",{linksid:"",attachmentid:t.attachmentid}))}))},async downLoadFolder(t){const e=await this.$api.requested({classname:"system.attachment.huawei.OBS",method:"createAndGetPackFileUrl",content:{attachmentid:t}});window.open(e.url,"_self")},dowFile(t){window.open(t,"_self")}}},A=w,C=(0,c.Z)(A,x,b,!1,null,null,null),S=C.exports,M=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-button",{attrs:{icon:"el-icon-delete",size:"small"},on:{click:t.clickDelete}},[t._v("删 除")])},k=[],E={props:["checklist"],data(){return{filecount:0}},methods:{clickDelete(){this.filecount=0,this.$confirm(`确定删除这${this.checklist.length}个文件吗?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.checklist.forEach((t=>{this.deleteFiles(t.attachmentid)}))})).catch((()=>{this.$message({type:"info",message:"已取消删除"})}))},async deleteFiles(t){this.filecount++;let e={classname:"system.attachment.MediaCenter",method:"deleteAttachment",content:{attachmentid:t}};await this.$api.requested(e);this.$emit("onSuccess")}},watch:{filecount(t){this.checklist.length===t&&this.$message({message:`成功,共删除${this.checklist.length}个文件`,type:"success"})}}},F=E,T=(0,c.Z)(F,M,k,!1,null,null,null),I=T.exports,B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:1===t.checklist.length,expression:"checklist.length === 1"}],staticStyle:{"border-left":"1px solid #dcdfe6"}},[n("el-button",{attrs:{size:"small"}},[n("i",{staticClass:"el-icon-more"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},["FOLDER"!==t.checklist[0].postfix?n("el-dropdown-item",{nativeOn:{click:function(e){return t.showShareurl.apply(null,arguments)}}},[t._v("分 享")]):t._e(),n("el-dropdown-item",{nativeOn:{click:function(e){return t.restName.apply(null,arguments)}}},[t._v("重命名")]),n("el-dropdown-item",{nativeOn:{click:function(e){return t.showFileTree.apply(null,arguments)}}},[t._v("移动到")])],1),n("modifyLocation",{ref:"modefy",attrs:{checklist:t.checklist},on:{onChangeFolderModify:t.onChangeFolderModify}}),n("el-dialog",{attrs:{title:"分享",visible:t.urlDialog,width:"500px"},on:{"update:visible":function(e){t.urlDialog=e}}},[n("div",{staticClass:"border"},[n("el-input",{attrs:{placeholder:"链接地址"},model:{value:t.checklist[0].url,callback:function(e){t.$set(t.checklist[0],"url",e)},expression:"checklist[0].url"}},[n("el-button",{attrs:{slot:"append"},on:{click:t.test},slot:"append"},[t._v("复制")])],1)],1)])],1)},D=[],P=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"移动到",visible:t.dialogTreeVisible,width:"500px"},on:{"update:visible":function(e){t.dialogTreeVisible=e}}},[i("div",{staticClass:"border"},[i("el-tree",{attrs:{data:t.data,props:t.defaultProps,load:t.loadNode,lazy:"","highlight-current":"",accordion:""},on:{"node-click":t.handleNodeClick},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.node,o=e.data;return i("div",{class:o.class},[i("div",{staticClass:"flex-align-center"},[i("img",{staticStyle:{"margin-right":"10px"},attrs:{src:n(5609),width:"15",alt:""}}),i("p",[t._v(t._s(r.label))])])])}}])})],1),t.errormsg?i("el-alert",{staticStyle:{"margin-top":"10px"},attrs:{title:"不能将文件移动到自身或其子文件夹下",type:"error","show-icon":""}}):t._e(),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogTreeVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.changeAttachment}},[t._v("确 定")])],1)],1)},L=[],O={props:["checklist"],data(){return{dialogTreeVisible:!1,errormsg:!1,activeid:0,data:[],children:[],defaultProps:{children:"children",label:"document"},params:{classname:"system.attachment.MediaCenter",method:"queryAttachment",content:{where:{condition:"",parentid:0,isonlyfolder:1}}}}},methods:{queryAttachment(t){return new Promise((async(e,n)=>{this.params.content.where.parentid=t;const i=await this.$api.requested(this.params);0===t?(this.data=i.data,this.data.forEach((t=>{t.children=[]}))):(this.children=i.data,i.data.forEach((t=>{t.isLeaf=!0}))),e()}))},async handleNodeClick(t){this.checklist[0].attachmentid!==t.attachmentid?(await this.queryAttachment(t.attachmentid),this.activeid=t.attachmentid,this.errormsg=!1):this.errormsg=!0},loadNode(t,e){if(0===t.level)return e(this.data);setTimeout((()=>{e(this.children)}),1e3)},async changeAttachment(){let t=[{attachmentid:this.checklist[0].attachmentid,document:this.checklist[0].document,parentid:this.activeid}];const e=await this.$api.requested({classname:"system.attachment.MediaCenter",method:"changeAttachment",content:{files:t}});1===e.code&&(this.$emit("onChangeFolderModify"),this.$message({message:"移动成功",type:"success"}))}},mounted(){}},R=O,z=(0,c.Z)(R,P,L,!1,null,"058bddbe",null),_=z.exports,U={components:{modifyLocation:_},props:["checklist"],data(){return{urlDialog:!1}},methods:{showShareurl(){this.urlDialog=!0},restName(){this.$emit("restName")},async confirmRestName(t){let e={classname:"system.attachment.MediaCenter",method:"changeAttachment",content:{files:[{attachmentid:t.attachmentid,document:t.document,parentid:t.parentid}]}};const n=await this.$api.requested(e);1===n.code?(this.$emit("onSuccess"),this.$message({message:"重命名成功",type:"success"})):this.$message({message:n.data,type:"error"})},showFileTree(){this.$refs.modefy.dialogTreeVisible=!0,this.$refs.modefy.queryAttachment(0)},onChangeFolderModify(){this.$emit("onSuccess")},test(){var t=document.createElement("input");t.value=this.checklist[0].url,document.body.appendChild(t),t.select(),document.execCommand("Copy"),document.body.removeChild(t),this.$message({message:"复制成功,快去分享给好友吧!",type:"success"})}}},N=U,V=(0,c.Z)(N,B,D,!1,null,null,null),Y=V.exports,H=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"info-panel"},[t.filelist.length>1?i("div",[i("p",{staticClass:"bold"},[t._v("多选")]),i("p",{staticClass:"explan"},[t._v("已选"+t._s(t.filelist.length)+"个")])]):i("div",[i("p",{staticClass:"bold"},[t._v(t._s(t.file.document))]),i("p",{staticClass:"info-text"},[t._v(t._s(t.file.postfix))]),"DOC"===t.file.postfix||"DOCX"===t.file.postfix?i("img",{attrs:{src:n(2349),alt:""}}):"PDF"===t.file.postfix?i("img",{attrs:{src:n(8813),alt:""}}):"MP4"===t.file.postfix||"AVI"===t.file.postfix?i("img",{attrs:{src:n(9902),alt:""}}):"XLS"===t.file.postfix||"XLSX"===t.file.postfix?i("img",{attrs:{src:n(6155),alt:""}}):"PNG"===t.file.postfix||"JPG"===t.file.postfix||"JPEG"===t.file.postfix?i("img",{attrs:{src:n(5968),alt:""}}):"PPT"===t.file.postfix||"PPTX"===t.file.postfix?i("img",{attrs:{src:n(4858),alt:""}}):"TXT"===t.file.postfix?i("img",{attrs:{src:n(7244),alt:""}}):"FOLDER"===t.file.postfix?i("img",{attrs:{src:n(5609),alt:""}}):i("img",{attrs:{src:n(3899),alt:""}}),t.file.contentlength?i("p",{staticClass:"info-text"},[t._v("大小: "+t._s(t.file.contentlength>1073741824?(t.file.contentlength/Math.pow(1024,3)).toFixed(2)+"GB":t.file.contentlength>1048576?(t.file.contentlength/Math.pow(1024,2)).toFixed(2)+"MB":t.file.contentlength>1024?(t.file.contentlength/Math.pow(1024,1)).toFixed(2)+"KB":t.file.contentlength+"B"))]):i("p",{staticClass:"info-text"},[t._v("大小:0")]),i("p",{staticClass:"info-text"},[t._v("上传人: "+t._s(t.file.createby))]),i("p",{staticClass:"info-text normal-margin"},[t._v("上传时间: "+t._s(t.file.createdate))]),i("tableLayout",{attrs:{layout:t.tablecols,data:t.list,custom:!0},scopedSlots:t._u([{key:"customcol",fn:function(e){return["appdata"===e.column.columnname?i("p",[i("span",[t._v(t._s(e.column.data.data.appdata))])]):t._e(),"appname"===e.column.columnname?i("p",[i("span",[t._v(t._s(e.column.data.data.appname))])]):i("p",[t._v(t._s(e.column.data[e.column.columnname]))])]}}])})],1)])},X=[],G={props:["filelist"],data(){return{file:{},tablecols:[],list:[]}},methods:{setFileInfo(t){t.length>0?(this.file=t[0],this.queryAttachment_LinkData(t[0].attachmentid)):(this.file={},this.list=[])},async queryAttachment_LinkData(t){let e={classname:"system.attachment.MediaCenter",method:"queryAttachment_LinkData",content:{attachmentid:t}};const n=await this.$api.requested(e);this.list=n.data}},mounted(){this.tablecols=this.tool.tabelCol(this.$route.name)["fileBindTable"].tablecols}},W=G,j=(0,c.Z)(W,H,X,!1,null,"98cdc1e0",null),Q=j.exports,Z={components:{hUpload:o.Z,list:p,add:y,download:S,deleteFile:I,moreOperation:Y,fileInfo:Q},data(){return{showBtnGroup:!1,folderid:"",checklist:[]}},methods:{addClick(){this.$refs.list.list.push({newfolder:!0,document:"新建文件夹",postfix:"FOLDER"})},onNameChange(t){t.attachmentid?this.$refs.edit.confirmRestName(t):this.$refs.add.createFolderComplete(t)},onSuccess(){let t=this.$route.query.id?this.$route.query.id:0;this.$refs.list.queryAttachment(t),this.$refs.list.restChecked(),this.folderChecked([])},folderChecked(t){this.checklist=t,t.length>0?this.showBtnGroup=!0:this.showBtnGroup=!1,this.$refs["filelist"].setFileInfo(t)},toFolderDetail(t){this.folderid=t},restName(){this.checklist[0].newfolder=!0;let t=this.checklist[0];this.$refs.list.list.forEach(((e,n)=>{e.attachmentid===this.checklist[0].attachmentid&&this.$set(this.$refs.list.list,n,t)}))}}},q=Z,J=(0,c.Z)(q,i,r,!1,null,null,null),K=J.exports},8426:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return u}});var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"login-wrap"},[i("div",[i("h4",{staticClass:"title"},[t._v("我的账号")]),i("div",{staticClass:"account"},t._l(t.account_list,(function(e){return i("div",{key:e.index,staticClass:"account-panel",on:{click:function(n){return t.selectAccount(e)}}},[i("img",{staticStyle:{"margin-right":"10px"},attrs:{src:n(8308),width:"50",height:"50",alt:""}}),i("div",{staticStyle:{flex:"1"}},[i("small",{staticClass:"color-info"},[t._v("站点:"+t._s(e.siteid))]),i("br"),i("el-tag",{staticStyle:{"margin-top":"5px"},attrs:{size:"mini",type:"danger"}},[t._v(t._s(e.sitename))])],1)])})),0)])])])},r=[],o={data(){return{account_list:[]}},methods:{selectAccount(t){sessionStorage.setItem("active_account",JSON.stringify(t)),this.query_userauth(),this.querySite_Parameter()},async query_userauth(){const t=await this.$api.requested({classname:"sysmanage.develop.userauth.userauth",method:"query_userauth",content:{}});this.auth_data=t.data,sessionStorage.setItem("module_info",JSON.stringify(this.auth_data)),this.$router.push("/main")},async querySite_Parameter(){const t=await this.$api.requested({classname:"webmanage.site.site",method:"querySite_Parameter",content:{}});let e={appfolderid:t.data.appfolderid,salematerialfolderid:t.data.salematerialfolderid};sessionStorage.setItem("folderid",JSON.stringify(e))}},created(){this.account_list=JSON.parse(sessionStorage.getItem("account_list")),1===this.account_list.length&&this.selectAccount(this.account_list[0])}},a=o,s=n(1001),l=(0,s.Z)(a,i,r,!1,null,"14450682",null),u=l.exports},6645:function(t,e){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){return n(t)||i(t,e)||r()}function n(t){if(Array.isArray(t))return t}function i(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e,n,i){t=t.filter((function(t,i){var r=e(t,i),o=n(t,i);return null!=r&&isFinite(r)&&null!=o&&isFinite(o)})),i&&t.sort((function(t,n){return e(t)-e(n)}));for(var r,o,a,s=t.length,l=new Float64Array(s),u=new Float64Array(s),c=0,h=0,p=0;p<s;)a=t[p],l[p]=r=+e(a,p,t),u[p]=o=+n(a,p,t),++p,c+=(r-c)/p,h+=(o-h)/p;for(var f=0;f<s;++f)l[f]-=c,u[f]-=h;return[l,u,c,h]}function a(t,e,n,i){for(var r=0,o=0,a=t.length;o<a;o++){var s=t[o],l=+e(s,o,t),u=+n(s,o,t);null!=l&&isFinite(l)&&null!=u&&isFinite(u)&&i(l,u,r++)}}function s(t,e,n,i,r){var o=0,s=0;return a(t,e,n,(function(t,e){var n=e-r(t),a=e-i;o+=n*n,s+=a*a})),1-o/s}function l(t){return 180*Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0])/Math.PI}function u(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function c(t,e,n){var i=Math.log(e-t)*Math.LOG10E+1|0,r=1*Math.pow(10,-i/2-1),o=1e4,a=[c(t),c(e)],s=0;while(h(a)&&s<o);return a;function c(t){return[t,n(t)]}function h(t){s++;for(var e=t.length,n=!1,i=0;i<e-1;i++){var o=t[i],a=t[i+1],h=u([o,a]),p=c(h[0]),f=l([o,h]),d=l([o,p]),g=Math.abs(f-d);g>r&&(t.splice(i+1,0,p),n=!0)}return n}}function h(t,e,n,i){var r=i-t*t,o=Math.abs(r)<1e-24?0:(n-t*e)/r,a=e-o*t;return[a,o]}function p(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var o=0,l=0,u=0,p=0,f=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;a(r,n,i,(function(e,n){var i=Math.log(n),r=e*n;++o,l+=(n-l)/o,p+=(r-p)/o,d+=(e*r-d)/o,u+=(n*i-u)/o,f+=(r*i-f)/o,t||(e<g&&(g=e),e>v&&(v=e))}));var m=h(p/l,u/l,f/l,d/l),y=e(m,2),x=y[0],b=y[1];x=Math.exp(x);var w=function(t){return x*Math.exp(b*t)},A=c(g,v,w);return A.a=x,A.b=b,A.predict=w,A.rSquared=s(r,n,i,l,w),A}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}function f(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var o=0,l=0,u=0,c=0,p=0,f=t?+t[0]:1/0,d=t?+t[1]:-1/0;a(r,n,i,(function(e,n){++o,l+=(e-l)/o,u+=(n-u)/o,c+=(e*n-c)/o,p+=(e*e-p)/o,t||(e<f&&(f=e),e>d&&(d=e))}));var g=h(l,u,c,p),v=e(g,2),m=v[0],y=v[1],x=function(t){return y*t+m},b=[[f,x(f)],[d,x(d)]];return b.a=y,b.b=m,b.predict=x,b.rSquared=s(r,n,i,u,x),b}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}function d(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1===0?(t[e-1]+t[e])/2:t[Math.floor(e)]}var g=2,v=1e-12;function m(){var t=function(t){return t[0]},n=function(t){return t[1]},i=.3;function r(r){for(var a=o(r,t,n,!0),s=e(a,4),l=s[0],u=s[1],c=s[2],p=s[3],f=l.length,m=Math.max(2,~~(i*f)),w=new Float64Array(f),A=new Float64Array(f),C=new Float64Array(f).fill(1),S=-1;++S<=g;){for(var M=[0,m-1],k=0;k<f;++k){for(var E=l[k],F=M[0],T=M[1],I=E-l[F]>l[T]-E?F:T,B=0,D=0,P=0,L=0,O=0,R=1/Math.abs(l[I]-E||1),z=F;z<=T;++z){var _=l[z],U=u[z],N=y(Math.abs(E-_)*R)*C[z],V=_*N;B+=N,D+=V,P+=U*N,L+=U*V,O+=_*V}var Y=h(D/B,P/B,L/B,O/B),H=e(Y,2),X=H[0],G=H[1];w[k]=X+G*E,A[k]=Math.abs(u[k]-w[k]),x(l,k+1,M)}if(S===g)break;var W=d(A);if(Math.abs(W)<v)break;for(var j,Q,Z=0;Z<f;++Z)j=A[Z]/(6*W),C[Z]=j>=1?v:(Q=1-j*j)*Q}return b(l,w,c,p)}return r.bandwidth=function(t){return arguments.length?(i=t,r):i},r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(t){return arguments.length?(n=t,r):n},r}function y(t){return(t=1-t*t*t)*t*t}function x(t,e,n){var i=t[e],r=n[0],o=n[1]+1;if(!(o>=t.length))while(e>r&&t[o]-i<=i-t[r])n[0]=++r,n[1]=o,++o}function b(t,e,n,i){for(var r,o=t.length,a=[],s=0,l=0,u=[];s<o;++s)r=t[s]+n,u[0]===r?u[1]+=(e[s]-u[1])/++l:(l=0,u[1]+=i,u=[r,e[s]],a.push(u));return u[1]+=i,a}function w(){var t,n=function(t){return t[0]},i=function(t){return t[1]},r=Math.E;function o(o){var l=0,u=0,p=0,f=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0,m=Math.log(r);a(o,n,i,(function(e,n){var i=Math.log(e)/m;++l,u+=(i-u)/l,p+=(n-p)/l,f+=(i*n-f)/l,d+=(i*i-d)/l,t||(e<g&&(g=e),e>v&&(v=e))}));var y=h(u,p,f,d),x=e(y,2),b=x[0],w=x[1],A=function(t){return w*Math.log(t)/m+b},C=c(g,v,A);return C.a=w,C.b=b,C.predict=A,C.rSquared=s(o,n,i,p,A),C}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(n=t,o):n},o.y=function(t){return arguments.length?(i=t,o):i},o.base=function(t){return arguments.length?(r=t,o):r},o}function A(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var l,u,h,p,f=o(r,n,i),d=e(f,4),g=d[0],v=d[1],m=d[2],y=d[3],x=g.length,b=0,w=0,A=0,C=0,S=0;for(l=0;l<x;)u=g[l],h=v[l++],p=u*u,b+=(p-b)/l,w+=(p*u-w)/l,A+=(p*p-A)/l,C+=(u*h-C)/l,S+=(p*h-S)/l;var M=0,k=0,E=t?+t[0]:1/0,F=t?+t[1]:-1/0;a(r,n,i,(function(e,n){k++,M+=(n-M)/k,t||(e<E&&(E=e),e>F&&(F=e))}));var T=A-b*b,I=b*T-w*w,B=(S*b-C*w)/I,D=(C*T-S*w)/I,P=-B*b,L=function(t){return t-=m,B*t*t+D*t+P+y},O=c(E,F,L);return O.a=B,O.b=D-2*B*m,O.c=P-D*m+B*m*m+y,O.predict=L,O.rSquared=s(r,n,i,M,L),O}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}function C(){var t,n=function(t){return t[0]},i=function(t){return t[1]},r=3;function l(l){if(1===r){var u=f().x(n).y(i).domain(t)(l);return u.coefficients=[u.b,u.a],delete u.a,delete u.b,u}if(2===r){var h=A().x(n).y(i).domain(t)(l);return h.coefficients=[h.c,h.b,h.a],delete h.a,delete h.b,delete h.c,h}var p,d,g,v,m,y=o(l,n,i),x=e(y,4),b=x[0],w=x[1],C=x[2],k=x[3],E=b.length,F=[],T=[],I=r+1,B=0,D=0,P=t?+t[0]:1/0,L=t?+t[1]:-1/0;for(a(l,n,i,(function(e,n){++D,B+=(n-B)/D,t||(e<P&&(P=e),e>L&&(L=e))})),p=0;p<I;++p){for(g=0,v=0;g<E;++g)v+=Math.pow(b[g],p)*w[g];for(F.push(v),m=new Float64Array(I),d=0;d<I;++d){for(g=0,v=0;g<E;++g)v+=Math.pow(b[g],p+d);m[d]=v}T.push(m)}T.push(F);var O=M(T),R=function(t){t-=C;var e=k+O[0]+O[1]*t+O[2]*t*t;for(p=3;p<I;++p)e+=O[p]*Math.pow(t,p);return e},z=c(P,L,R);return z.coefficients=S(I,O,-C,k),z.predict=R,z.rSquared=s(l,n,i,B,R),z}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(n=t,l):n},l.y=function(t){return arguments.length?(i=t,l):i},l.order=function(t){return arguments.length?(r=t,l):r},l}function S(t,e,n,i){var r,o,a,s,l=Array(t);for(r=0;r<t;++r)l[r]=0;for(r=t-1;r>=0;--r)for(a=e[r],s=1,l[r]+=a,o=1;o<=r;++o)s*=(r+1-o)/o,l[r-o]+=a*Math.pow(n,o)*s;return l[0]+=i,l}function M(t){var e,n,i,r,o,a=t.length-1,s=[];for(e=0;e<a;++e){for(r=e,n=e+1;n<a;++n)Math.abs(t[e][n])>Math.abs(t[e][r])&&(r=n);for(i=e;i<a+1;++i)o=t[i][e],t[i][e]=t[i][r],t[i][r]=o;for(n=e+1;n<a;++n)for(i=a;i>=e;i--)t[i][n]-=t[i][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,i=n+1;i<a;++i)o+=t[i][n]*s[i];s[n]=(t[a][n]-o)/t[n][n]}return s}function k(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var o=0,l=0,u=0,p=0,f=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;a(r,n,i,(function(e,n){var i=Math.log(e),r=Math.log(n);++o,l+=(i-l)/o,u+=(r-u)/o,p+=(i*r-p)/o,f+=(i*i-f)/o,d+=(n-d)/o,t||(e<g&&(g=e),e>v&&(v=e))}));var m=h(l,u,p,f),y=e(m,2),x=y[0],b=y[1];x=Math.exp(x);var w=function(t){return x*Math.pow(t,b)},A=c(g,v,w);return A.a=x,A.b=b,A.predict=w,A.rSquared=s(r,n,i,d,w),A}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}t.regressionExp=p,t.regressionLinear=f,t.regressionLoess=m,t.regressionLog=w,t.regressionPoly=C,t.regressionPow=k,t.regressionQuad=A,Object.defineProperty(t,"__esModule",{value:!0})}))},3631:function(t,e,n){"use strict";n.d(e,{qY:function(){return d}});var i=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},r=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),o=function(){function t(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return t}(),a=function(){function t(t,e,n,i){this.name=t,this.version=e,this.os=n,this.bot=i,this.type="bot-device"}return t}(),s=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),l=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),u=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,h=3,p=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",u]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?v(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!==typeof navigator?v(navigator.userAgent):y()}function g(t){return""!==t&&p.reduce((function(e,n){var i=n[0],r=n[1];if(e)return e;var o=r.exec(t);return!!o&&[i,o]}),!1)}function v(t){var e=g(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var l=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);l?l.length<h&&(l=i(i([],l,!0),x(h-l.length),!0)):l=[];var u=l.join("."),p=m(t),f=c.exec(t);return f&&f[1]?new a(n,u,p,f[1]):new r(n,u,p)}function m(t){for(var e=0,n=f.length;e<n;e++){var i=f[e],r=i[0],o=i[1],a=o.exec(t);if(a)return r}return null}function y(){var t="undefined"!==typeof process&&process.version;return t?new o(process.version.slice(1)):null}function x(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}},9916:function(t,e){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e,n,i){i=i||{};var r=i.maxIterations||100,o=i.tolerance||1e-10,a=t(e),s=t(n),l=n-e;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var u=0;u<r;++u){l/=2;var c=e+l,h=t(c);if(h*a>=0&&(e=c),Math.abs(l)<o||0===h)return c}return e+l}function n(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function i(t,e){return n(t).map((function(){return n(e)}))}function r(t,e){for(var n=0,i=0;i<t.length;++i)n+=t[i]*e[i];return n}function o(t){return Math.sqrt(r(t,t))}function a(t,e,n){for(var i=0;i<e.length;++i)t[i]=e[i]*n}function s(t,e,n,i,r){for(var o=0;o<t.length;++o)t[o]=e*n[o]+i*r[o]}function l(t,e,n){n=n||{};var i,r=n.maxIterations||200*e.length,o=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,l=n.minErrorDelta||1e-6,u=n.minErrorDelta||1e-5,c=void 0!==n.rho?n.rho:1,h=void 0!==n.chi?n.chi:2,p=void 0!==n.psi?n.psi:-.5,f=void 0!==n.sigma?n.sigma:.5,d=e.length,g=new Array(d+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(var v=0;v<d;++v){var m=e.slice();m[v]=m[v]?m[v]*o:a,g[v+1]=m,g[v+1].fx=t(m),g[v+1].id=v+1}function y(t){for(var e=0;e<t.length;e++)g[d][e]=t[e];g[d].fx=t.fx}for(var x=function(t,e){return t.fx-e.fx},b=e.slice(),w=e.slice(),A=e.slice(),C=e.slice(),S=0;S<r;++S){if(g.sort(x),n.history){var M=g.map((function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e}));M.sort((function(t,e){return t.id-e.id})),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:M})}for(i=0,v=0;v<d;++v)i=Math.max(i,Math.abs(g[0][v]-g[1][v]));if(Math.abs(g[0].fx-g[d].fx)<l&&i<u)break;for(v=0;v<d;++v){b[v]=0;for(var k=0;k<d;++k)b[v]+=g[k][v];b[v]/=d}var E=g[d];if(s(w,1+c,b,-c,E),w.fx=t(w),w.fx<g[0].fx)s(C,1+h,b,-h,E),C.fx=t(C),C.fx<w.fx?y(C):y(w);else if(w.fx>=g[d-1].fx){var F=!1;if(w.fx>E.fx?(s(A,1+p,b,-p,E),A.fx=t(A),A.fx<E.fx?y(A):F=!0):(s(A,1-p*c,b,p*c,E),A.fx=t(A),A.fx<w.fx?y(A):F=!0),F){if(f>=1)break;for(v=1;v<g.length;++v)s(g[v],1-f,g[0],f,g[v]),g[v].fx=t(g[v])}}else y(w)}return g.sort(x),{fx:g[0].fx,x:g[0]}}function u(t,e,n,i,o,a,l){var u=n.fx,c=r(n.fxprime,e),h=u,p=u,f=c,d=0;function g(p,d,g){for(var v=0;v<16;++v)if(o=(p+d)/2,s(i.x,1,n.x,o,e),h=i.fx=t(i.x,i.fxprime),f=r(i.fxprime,e),h>u+a*o*c||h>=g)d=o;else{if(Math.abs(f)<=-l*c)return o;f*(d-p)>=0&&(d=p),p=o,g=h}return 0}o=o||1,a=a||1e-6,l=l||.1;for(var v=0;v<10;++v){if(s(i.x,1,n.x,o,e),h=i.fx=t(i.x,i.fxprime),f=r(i.fxprime,e),h>u+a*o*c||v&&h>=p)return g(d,o,p);if(Math.abs(f)<=-l*c)return o;if(f>=0)return g(o,d,h);p=h,d=o,o*=2}return o}function c(t,e,n){var i,l,c,h={x:e.slice(),fx:0,fxprime:e.slice()},p={x:e.slice(),fx:0,fxprime:e.slice()},f=e.slice(),d=1;n=n||{},c=n.maxIterations||20*e.length,h.fx=t(h.x,h.fxprime),i=h.fxprime.slice(),a(i,h.fxprime,-1);for(var g=0;g<c;++g){if(d=u(t,i,h,p,d),n.history&&n.history.push({x:h.x.slice(),fx:h.fx,fxprime:h.fxprime.slice(),alpha:d}),d){s(f,1,p.fxprime,-1,h.fxprime);var v=r(h.fxprime,h.fxprime),m=Math.max(0,r(f,p.fxprime)/v);s(i,m,i,-1,p.fxprime),l=h,h=p,p=l}else a(i,h.fxprime,-1);if(o(h.fxprime)<=1e-5)break}return n.history&&n.history.push({x:h.x.slice(),fx:h.fx,fxprime:h.fxprime.slice(),alpha:d}),h}function h(t,e,n){n=n||{};for(var i=n.maxIterations||100*e.length,r=n.learnRate||.001,a={x:e.slice(),fx:0,fxprime:e.slice()},l=0;l<i;++l)if(a.fx=t(a.x,a.fxprime),n.history&&n.history.push({x:a.x.slice(),fx:a.fx,fxprime:a.fxprime.slice()}),s(a.x,1,a.x,-r,a.fxprime),o(a.fxprime)<=1e-5)break;return a}function p(t,e,n){n=n||{};var i,r={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},l=n.maxIterations||100*e.length,c=n.learnRate||1,h=e.slice(),p=n.c1||.001,f=n.c2||.1,d=[];if(n.history){var g=t;t=function(t,e){return d.push(t.slice()),g(t,e)}}r.fx=t(r.x,r.fxprime);for(var v=0;v<l;++v)if(a(h,r.fxprime,-1),c=u(t,h,r,s,c,p,f),n.history&&(n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),functionCalls:d,learnRate:c,alpha:c}),d=[]),i=r,r=s,s=i,0===c||o(r.fxprime)<1e-5)break;return r}t.bisect=e,t.nelderMead=l,t.conjugateGradient=c,t.gradientDescent=h,t.gradientDescentLineSearch=p,t.zeros=n,t.zerosM=i,t.norm2=o,t.weightedSum=s,t.scale=a}))},9685:function(t,e,n){"use strict";n.d(e,{WT:function(){return i}});var i="undefined"!==typeof Float32Array?Float32Array:Array;Math.random;Math.PI;Math.hypot||(Math.hypot=function(){var t=0,e=arguments.length;while(e--)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},5600:function(t,e,n){"use strict";function i(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*a-s*u,p=-c*o+s*l,f=u*o-a*l,d=n*h+i*p+r*f;return d?(d=1/d,t[0]=h*d,t[1]=(-c*i+r*u)*d,t[2]=(s*i-r*a)*d,t[3]=p*d,t[4]=(c*n-r*l)*d,t[5]=(-s*n+r*o)*d,t[6]=f*d,t[7]=(-u*n+i*l)*d,t[8]=(a*n-i*o)*d,t):null}function r(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=n[0],f=n[1],d=n[2],g=n[3],v=n[4],m=n[5],y=n[6],x=n[7],b=n[8];return t[0]=p*i+f*a+d*u,t[1]=p*r+f*s+d*c,t[2]=p*o+f*l+d*h,t[3]=g*i+v*a+m*u,t[4]=g*r+v*s+m*c,t[5]=g*o+v*l+m*h,t[6]=y*i+x*a+b*u,t[7]=y*r+x*s+b*c,t[8]=y*o+x*l+b*h,t}function o(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function a(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function s(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}n.d(e,{U_:function(){return i},Jp:function(){return r},vc:function(){return o},Us:function(){return a},xJ:function(){return s}})},1437:function(t,e,n){"use strict";n.d(e,{IH:function(){return o},$X:function(){return a},VV:function(){return s},Fp:function(){return l},bA:function(){return u},TE:function(){return c},kE:function(){return h},Fv:function(){return p},AK:function(){return f},kK:function(){return d},EU:function(){return g},I6:function(){return v},lu:function(){return m}});var i=n(9685);function r(){var t=new i.WT(2);return i.WT!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function l(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function u(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function c(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.hypot(n,i)}function h(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function p(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function f(t,e){return t[0]*e[0]+t[1]*e[1]}function d(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t}function g(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],a=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+o*o),s=a&&(n*r+i*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function v(t,e){return t[0]===e[0]&&t[1]===e[1]}var m=a;(function(){var t=r()})()},8495:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;
- /**
- * [js-md5]{@link https://github.com/emn178/js-md5}
- *
- * @namespace md5
- * @version 0.7.3
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
- * @copyright Chen, Yi-Cyuan 2014-2017
- * @license MIT
- */(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var n=OUTPUT_TYPES[e];t[n]=createOutputMethod(n)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"===typeof t)return crypto.createHash("md5").update(t,"utf8").digest("hex");if(null===t||void 0===t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(t){if(!this.finalized){var e,n=typeof t;if("string"!==n){if("object"!==n)throw ERROR;if(null===t)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw ERROR;e=!0}var i,r,o=0,a=t.length,s=this.blocks,l=this.buffer8;while(o<a){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),e)if(ARRAY_BUFFER)for(r=this.start;o<a&&r<64;++o)l[r++]=t[o];else for(r=this.start;o<a&&r<64;++o)s[r>>2]|=t[o]<<SHIFT[3&r++];else if(ARRAY_BUFFER)for(r=this.start;o<a&&r<64;++o)i=t.charCodeAt(o),i<128?l[r++]=i:i<2048?(l[r++]=192|i>>6,l[r++]=128|63&i):i<55296||i>=57344?(l[r++]=224|i>>12,l[r++]=128|i>>6&63,l[r++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++o)),l[r++]=240|i>>18,l[r++]=128|i>>12&63,l[r++]=128|i>>6&63,l[r++]=128|63&i);else for(r=this.start;o<a&&r<64;++o)i=t.charCodeAt(o),i<128?s[r>>2]|=i<<SHIFT[3&r++]:i<2048?(s[r>>2]|=(192|i>>6)<<SHIFT[3&r++],s[r>>2]|=(128|63&i)<<SHIFT[3&r++]):i<55296||i>=57344?(s[r>>2]|=(224|i>>12)<<SHIFT[3&r++],s[r>>2]|=(128|i>>6&63)<<SHIFT[3&r++],s[r>>2]|=(128|63&i)<<SHIFT[3&r++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++o)),s[r>>2]|=(240|i>>18)<<SHIFT[3&r++],s[r>>2]|=(128|i>>12&63)<<SHIFT[3&r++],s[r>>2]|=(128|i>>6&63)<<SHIFT[3&r++],s[r>>2]|=(128|63&i)<<SHIFT[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,n,i,r,o,a=this.blocks;this.first?(t=a[0]-680876937,t=(t<<7|t>>>25)-271733879<<0,i=(-1732584194^2004318071&t)+a[1]-117830708,i=(i<<12|i>>>20)+t<<0,n=(-271733879^i&(-271733879^t))+a[2]-1126478375,n=(n<<17|n>>>15)+i<<0,e=(t^n&(i^t))+a[3]-1316259209,e=(e<<22|e>>>10)+n<<0):(t=this.h0,e=this.h1,n=this.h2,i=this.h3,t+=(i^e&(n^i))+a[0]-680876936,t=(t<<7|t>>>25)+e<<0,i+=(n^t&(e^n))+a[1]-389564586,i=(i<<12|i>>>20)+t<<0,n+=(e^i&(t^e))+a[2]+606105819,n=(n<<17|n>>>15)+i<<0,e+=(t^n&(i^t))+a[3]-1044525330,e=(e<<22|e>>>10)+n<<0),t+=(i^e&(n^i))+a[4]-176418897,t=(t<<7|t>>>25)+e<<0,i+=(n^t&(e^n))+a[5]+1200080426,i=(i<<12|i>>>20)+t<<0,n+=(e^i&(t^e))+a[6]-1473231341,n=(n<<17|n>>>15)+i<<0,e+=(t^n&(i^t))+a[7]-45705983,e=(e<<22|e>>>10)+n<<0,t+=(i^e&(n^i))+a[8]+1770035416,t=(t<<7|t>>>25)+e<<0,i+=(n^t&(e^n))+a[9]-1958414417,i=(i<<12|i>>>20)+t<<0,n+=(e^i&(t^e))+a[10]-42063,n=(n<<17|n>>>15)+i<<0,e+=(t^n&(i^t))+a[11]-1990404162,e=(e<<22|e>>>10)+n<<0,t+=(i^e&(n^i))+a[12]+1804603682,t=(t<<7|t>>>25)+e<<0,i+=(n^t&(e^n))+a[13]-40341101,i=(i<<12|i>>>20)+t<<0,n+=(e^i&(t^e))+a[14]-1502002290,n=(n<<17|n>>>15)+i<<0,e+=(t^n&(i^t))+a[15]+1236535329,e=(e<<22|e>>>10)+n<<0,t+=(n^i&(e^n))+a[1]-165796510,t=(t<<5|t>>>27)+e<<0,i+=(e^n&(t^e))+a[6]-1069501632,i=(i<<9|i>>>23)+t<<0,n+=(t^e&(i^t))+a[11]+643717713,n=(n<<14|n>>>18)+i<<0,e+=(i^t&(n^i))+a[0]-373897302,e=(e<<20|e>>>12)+n<<0,t+=(n^i&(e^n))+a[5]-701558691,t=(t<<5|t>>>27)+e<<0,i+=(e^n&(t^e))+a[10]+38016083,i=(i<<9|i>>>23)+t<<0,n+=(t^e&(i^t))+a[15]-660478335,n=(n<<14|n>>>18)+i<<0,e+=(i^t&(n^i))+a[4]-405537848,e=(e<<20|e>>>12)+n<<0,t+=(n^i&(e^n))+a[9]+568446438,t=(t<<5|t>>>27)+e<<0,i+=(e^n&(t^e))+a[14]-1019803690,i=(i<<9|i>>>23)+t<<0,n+=(t^e&(i^t))+a[3]-187363961,n=(n<<14|n>>>18)+i<<0,e+=(i^t&(n^i))+a[8]+1163531501,e=(e<<20|e>>>12)+n<<0,t+=(n^i&(e^n))+a[13]-1444681467,t=(t<<5|t>>>27)+e<<0,i+=(e^n&(t^e))+a[2]-51403784,i=(i<<9|i>>>23)+t<<0,n+=(t^e&(i^t))+a[7]+1735328473,n=(n<<14|n>>>18)+i<<0,e+=(i^t&(n^i))+a[12]-1926607734,e=(e<<20|e>>>12)+n<<0,r=e^n,t+=(r^i)+a[5]-378558,t=(t<<4|t>>>28)+e<<0,i+=(r^t)+a[8]-2022574463,i=(i<<11|i>>>21)+t<<0,o=i^t,n+=(o^e)+a[11]+1839030562,n=(n<<16|n>>>16)+i<<0,e+=(o^n)+a[14]-35309556,e=(e<<23|e>>>9)+n<<0,r=e^n,t+=(r^i)+a[1]-1530992060,t=(t<<4|t>>>28)+e<<0,i+=(r^t)+a[4]+1272893353,i=(i<<11|i>>>21)+t<<0,o=i^t,n+=(o^e)+a[7]-155497632,n=(n<<16|n>>>16)+i<<0,e+=(o^n)+a[10]-1094730640,e=(e<<23|e>>>9)+n<<0,r=e^n,t+=(r^i)+a[13]+681279174,t=(t<<4|t>>>28)+e<<0,i+=(r^t)+a[0]-358537222,i=(i<<11|i>>>21)+t<<0,o=i^t,n+=(o^e)+a[3]-722521979,n=(n<<16|n>>>16)+i<<0,e+=(o^n)+a[6]+76029189,e=(e<<23|e>>>9)+n<<0,r=e^n,t+=(r^i)+a[9]-640364487,t=(t<<4|t>>>28)+e<<0,i+=(r^t)+a[12]-421815835,i=(i<<11|i>>>21)+t<<0,o=i^t,n+=(o^e)+a[15]+530742520,n=(n<<16|n>>>16)+i<<0,e+=(o^n)+a[2]-995338651,e=(e<<23|e>>>9)+n<<0,t+=(n^(e|~i))+a[0]-198630844,t=(t<<6|t>>>26)+e<<0,i+=(e^(t|~n))+a[7]+1126891415,i=(i<<10|i>>>22)+t<<0,n+=(t^(i|~e))+a[14]-1416354905,n=(n<<15|n>>>17)+i<<0,e+=(i^(n|~t))+a[5]-57434055,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~i))+a[12]+1700485571,t=(t<<6|t>>>26)+e<<0,i+=(e^(t|~n))+a[3]-1894986606,i=(i<<10|i>>>22)+t<<0,n+=(t^(i|~e))+a[10]-1051523,n=(n<<15|n>>>17)+i<<0,e+=(i^(n|~t))+a[1]-2054922799,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~i))+a[8]+1873313359,t=(t<<6|t>>>26)+e<<0,i+=(e^(t|~n))+a[15]-30611744,i=(i<<10|i>>>22)+t<<0,n+=(t^(i|~e))+a[6]-1560198380,n=(n<<15|n>>>17)+i<<0,e+=(i^(n|~t))+a[13]+1309151649,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~i))+a[4]-145523070,t=(t<<6|t>>>26)+e<<0,i+=(e^(t|~n))+a[11]-1120210379,i=(i<<10|i>>>22)+t<<0,n+=(t^(i|~e))+a[2]+718787259,n=(n<<15|n>>>17)+i<<0,e+=(i^(n|~t))+a[9]-343485551,e=(e<<21|e>>>11)+n<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=n-1732584194<<0,this.h3=i+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+n<<0,this.h3=this.h3+i<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,n,i="",r=this.array(),o=0;o<15;)t=r[o++],e=r[o++],n=r[o++],i+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return t=r[o],i+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"==",i};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},3807:function(t){"use strict";var e=t.exports;t.exports.isNumber=function(t){return"number"===typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.min(e,t[n]);return e},t.exports.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},t.exports.findMinMulti=function(t){for(var n=e.findMin(t[0]),i=1;i<t.length;i++)n=Math.min(n,e.findMin(t[i]));return n},t.exports.findMaxMulti=function(t){for(var n=e.findMax(t[0]),i=1;i<t.length;i++)n=Math.max(n,e.findMax(t[i]));return n},t.exports.inside=function(t,e,n){return t<=n&&n<=e}},3843:function(t,e,n){"use strict";var i=50,r=2,o=Math.log(2),a=t.exports,s=n(3807);function l(t){return 1-Math.abs(t)}function u(t,e){for(var n={},i=0,r=-e;r<=e;r++)i+=t(r/e),n[r]=i;return n}t.exports.getUnifiedMinMax=function(t,e){return a.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,o=!1,a=s.isNumber(e.width)?e.width:r,l=s.isNumber(e.size)?e.size:i,u=s.isNumber(e.min)?e.min:(n=!0,s.findMinMulti(t)),c=s.isNumber(e.max)?e.max:(o=!0,s.findMaxMulti(t)),h=c-u,p=h/(l-1);return n&&(u-=2*a*p),o&&(c+=2*a*p),{min:u,max:c}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=s.isNumber(e.size)?e.size:i,o=s.isNumber(e.width)?e.width:r,c=a.getUnifiedMinMax(t,{size:n,width:o,min:e.min,max:e.max}),h=c.min,p=c.max,f=p-h,d=f/(n-1);if(0===f)return[{x:h,y:1}];for(var g=[],v=0;v<n;v++)g.push({x:h+v*d,y:0});var m=function(t){return Math.floor((t-h)/d)},y=u(l,o),x=y[o],b=y[o-1]-y[o-2],w=0;t.forEach((function(t){var e=m(t);if(!(e+o<0||e-o>=g.length)){var n=Math.max(e-o,0),i=e,r=Math.min(e+o,g.length-1),a=n-(e-o),l=e+o-r,u=y[-o-1+a]||0,c=y[-o-1+l]||0,h=x/(x-u-c);a>0&&(w+=h*(a-1)*b);var p=Math.max(0,e-o+1);s.inside(0,g.length-1,p)&&(g[p].y+=1*h*b),s.inside(0,g.length-1,i+1)&&(g[i+1].y-=2*h*b),s.inside(0,g.length-1,r+1)&&(g[r+1].y+=1*h*b)}}));var A=w,C=0,S=0;return g.forEach((function(t){C+=t.y,A+=C,t.y=A,S+=A})),S>0&&g.forEach((function(t){t.y/=S})),g},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,i=0,r=0;r<t.length;r++)if(i=r,n+=t[r].y,n>=e)break;return t[i].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/o,Math.pow(2,e)}}},5168:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SensorTabIndex=e.SensorClassName=e.SizeSensorId=void 0;var n="size-sensor-id";e.SizeSensorId=n;var i="size-sensor-object";e.SensorClassName=i;var r="-1";e.SensorTabIndex=r},2177:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var i=this,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){t.apply(i,o)}),e)}};e["default"]=n},6340:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var n=1,i=function(){return"".concat(n++)};e["default"]=i},8587:function(t,e,n){"use strict";e.ak=void 0;var i=n(2955),r=function(t,e){var n=(0,i.getSensor)(t);return n.bind(e),function(){n.unbind(e)}};e.ak=r;var o=function(t){var e=(0,i.getSensor)(t);(0,i.removeSensor)(e)};var a="1.0.1"},2955:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=void 0;var i=a(n(6340)),r=n(2578),o=n(5168);function a(t){return t&&t.__esModule?t:{default:t}}var s={},l=function(t){var e=t.getAttribute(o.SizeSensorId);if(e&&s[e])return s[e];var n=(0,i["default"])();t.setAttribute(o.SizeSensorId,n);var a=(0,r.createSensor)(t);return s[n]=a,a};e.getSensor=l;var u=function(t){var e=t.element.getAttribute(o.SizeSensorId);t.element.removeAttribute(o.SizeSensorId),t.destroy(),e&&s[e]&&delete s[e]};e.removeSensor=u},2578:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i=n(7643),r=n(1743),o="undefined"!==typeof ResizeObserver?r.createSensor:i.createSensor;e.createSensor=o},7643:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i=o(n(2177)),r=n(5168);function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){var e=void 0,n=[],o=function(){"static"===getComputedStyle(t).position&&(t.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",a),a()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",r.SensorClassName),e.setAttribute("tabindex",r.SensorTabIndex),e.type="text/html",t.appendChild(e),e.data="about:blank",e},a=(0,i["default"])((function(){n.forEach((function(e){e(t)}))})),s=function(t){e||(e=o()),-1===n.indexOf(t)&&n.push(t)},l=function(){e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",a),e.parentNode.removeChild(e),e=void 0,n=[])},u=function(t){var i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&e&&l()};return{element:t,bind:s,destroy:l,unbind:u}};e.createSensor=a},1743:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i=r(n(2177));function r(t){return t&&t.__esModule?t:{default:t}}var o=function(t){var e=void 0,n=[],r=(0,i["default"])((function(){n.forEach((function(e){e(t)}))})),o=function(){var e=new ResizeObserver(r);return e.observe(t),r(),e},a=function(t){e||(e=o()),-1===n.indexOf(t)&&n.push(t)},s=function(){e.disconnect(),n=[],e=void 0},l=function(t){var i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&e&&s()};return{element:t,bind:a,destroy:s,unbind:l}};e.createSensor=o},655:function(t,e,n){"use strict";n.d(e,{ZT:function(){return r},pi:function(){return o},_T:function(){return a},mG:function(){return s},Jh:function(){return l},XA:function(){return u},CR:function(){return c},pr:function(){return h},ev:function(){return p}});
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- 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)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{l(i.next(t))}catch(e){o(e)}}function s(t){try{l(i["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):r(t.value).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function l(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;function u(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(i=o.next()).done)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return a}function h(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function p(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}Object.create},5526:function(t,e,n){"use strict";t.exports=n.p+"img/more.58cd973b.svg"},2024:function(t,e,n){"use strict";t.exports=n.p+"img/work_station.550df9c4.svg"},8308:function(t){"use strict";t.exports="data:image/png;base64,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"},8813:function(t){"use strict";t.exports="data:image/png;base64,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"},4858:function(t){"use strict";t.exports="data:image/png;base64,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"},7244:function(t){"use strict";t.exports="data:image/png;base64,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"},5609:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAABFNJREFUeF7tm01IlGEUhc+d0RlktCayTCNaZJY/SCYYtIhsUWRoSlHURnBTEIIQFe1yFUVBi6Ba5qpooZFgmwiKotoYNU70uzJaFUaSZc688U34M7YRHJmZ75wP3Ii+33vOebzce1WDHmoHjFq9xEMAkEMgAAQAuQPk8lUBBAC5A+TyVQEEALkD5PJVAQQAuQPk8lUBBMCsA+7uphIkCxsBeB8leeWN2Tu4RNw64i/z6t5ZvuxMBXD9dTth7gZgVVm+02JePwbneq1j5MpiDmH63hQArr/2NMwu+Ea4Q691xM75Rs8SCjE3ULsHsPtL+I7sHB1Aq7XFBrPz8vx5q7mBumsAjufPlRd803vWHmtb8FeTfqEHwDCALT7UP4lEYIMdeDXqQ20Zk+QB4DJ2Ws4d5DqtfaQv566VQxfyOQDos/ZYZw75nXNX8TsAowj9qrSWD79zzvkcuZDfAQDM7bX9I/6bcjIEkP8BKCq7jfqe6xnyK3+PscAECpKjVtr6ea4I/wMQWQvUd+dvcJm+ueExkDxvq9uGvKP9D4Cn0gPAA0HPHAfcGStrvcgBwPoWoGKH4p/vQMCOcgAQrQKquwTAfw7YAAcAFgQaTgHhqCBId2CMAwBPdOUhYNVWATDPAR4AvPA9CPSkOZAOgPfXASEHFDr47r8Gg2FgzXYgEOREwIqA8DogVAFYaMaDWQDCDlieBAp8/LshzujTVQejQHQ3UNyU+vw/AIqTwLKk7GFyoPQIEGmEuaFah5UJJunSOu1AeQ/MPaxxiOinn5KK4iaYe1LtUk2fHj4HCstg7sVmpc8X/ZwpQAAQx+9NAQJAAFA7QC5eFUAAqAlkZkAVgDn91CpYTSA1AgKAOn5VAPL4BYAAUA/AzYB6AO78NQWQ5y8ABID2ANQMqAegjl9jIHn8AkAAaA/AzYB6AO78NQaS5y8ABID2ANQMqAegjl9jIHn8AkAAaA/AzYB6AO78NQaS5y8ABID2ANQMqAegjl9jIHn8AkAAaA/AzYB6AO78NQaS5y8ABID2ANQMqAegjl9jIHn8AkAAaA/AzYB6AO78NQaS5y8ABID2ANQMqAegjl9jIHn8AkAAaA/AzYB6AO78NQaS5y8ABID2ANQMqAegjl9jIHn8AkAAaA/AzYB6AO78NQaS5y8ABID2ANQMqAegjl9jIHn8AkAAaA/AzYB6AO78NQaS5y8ABID2ANQMqAegjl9jIHn8HgDDzVP48yVI7wSjAYXlCXOvD77HRKySUT+95kjDR3NvT1zC9wcn6c1gNKC8u9s83e5N1zP8eLqN0QNazSv2DdnGyy0pAFIQfDp7FWOPjmHqawGtKQzCgyWTKKq5ZTU3Oz25MwCkIIj3lAPjh+F+7oJLlDD4QaMxEPyGQHgQX57fseb4+LTuNABozJDQGQcEADkMAkAAkDtALl8VQACQO0AuXxVAAJA7QC5fFUAAkDtALl8VQACQO0Au/y8kr5R0xMXUKwAAAABJRU5ErkJggg=="},5968:function(t){"use strict";t.exports="data:image/png;base64,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"},3899:function(t){"use strict";t.exports="data:image/png;base64,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"},9902:function(t){"use strict";t.exports="data:image/png;base64,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"},2349:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADlJJREFUeF7tXXl4FEUWfx0IOSHTSUhCEG/RFfBCUVCRJDMoeCECHiSYkANBCMp6gaKoiKjL8g2IIkaXI6gsCirrhbLCeqP44e16r5IbwpF7JjO938uhYajq6eqanmQq9f7JH1OvXr1f/br61XtVHQVMymTnngwAmKCAch4AnGGym5BXG3lq9LsFDnVkqDqimBl41rLSQk3TnGZ0RdM5b2AU9Oqp7ChwqKNC0TdmAmQ6Sy8B0F4PRWetGDMSQI3pAXVN3ncKHGq6FTas7JOJAJlLS86CMNhl5YBCre92AuC4a5u826Y5VHso+cBGAGdJEQDkhpKDVo+1IwHQVr3L+1a+XR1ttd1A9c9EgKxlpV9pmjYoUMZF6MeXAC0kaPK8me+IvyQU/GMiQKazRAsFp4I5RhIB0H6dS3u9wG4bG8yxmLElCWAGtQ46NAK0kKDJ+2qBQ72M04Sl6pIAnPDqEaAtJtiSb1ev4DRjmbokACe0/gjQGhN4X853qOM4TVmiLgnACasRArTGBN7NBXZ1PKe5gKtLAnBCapQAaKahyftinkOdwGkyoOqSAJxwshCgNTD0bCxwxE/iNBswdUkATihZCdAaE3g25Dvir+U0HRB1SQBOGM0QoJUE2nP5Dtv1nOa51SUBOCE0S4CWmMANxXkZcVmcQ+BSlwTggg+AhwBtMcG6Akf8FM5hmFaXBDANXasiLwFaVgKXd3WeXc3hHIopdUkAU7D9qRQIArSR4Jk8uxr0SqskQBchQBsJivLsaj7nkJjUJQGY4DqycaBWgPaeG12eVbn2+GmcwzKsLglgGCpyw0AToGWL6NZW5mfYpnMOzZC6JIAhmOiNrCBA6+tAezzPbruJc3h+1SUB/EKk38AqAqDVRjcsz82IK+Qcoq66JAAnulYSoGUlcHudeRnqzZzDpKpLAnAiazUBcHhNbu/SqRnqHM6hEtUlAThRDQYB2kiwZGqGeivncI9QlwTgRDRYBGiJCVyeR3Pt8bdzDvkwdUkATjSDSQAcqsutLc7JsM3lHPYf6pIAnEgGmwAtK0Gztig33XYX59Bb1CUBOFEcenwkJMX15OyFXb3J4104NU2dz655uIYkACeCxyeHw8mpEZy9mFN3eeC+nLS4Bea0W7UkAXjQA4CIcAXSB8dw9mJe3d0M92anx91vtgdJALPIddA7OjEcBg3onFUAh+H2eOdnp6kLzbgiCWAGNYLOsX3D4S9HdSIJvNq87FG2h1jdkQRgRUynfe/IMBiQGA4pak8IY0I2MINQAO68Ic32MEtvTMOUt4NZoO2EtoqyvbgwNY3FsiQAC1pdva0kQFefIYvHJwlgMcBdvXtJgK4+QxaPTxLAYoC7eveSAF19hiwenySAxQB39e4lAbr6DFk8PkkAiwHu6t2HKgEuPiMGhh4fRYV30aa9AYE+fXA0XHdhHLWvhS/shf9VuQNia974RGo/u35ugDd31wXEzmGdhCoBsJr24PV9qYDkP1EGjW7+b1TmZthg1KBoqp2NHx6CVz6p5Z6YmIgwWDkthdrPncWVUFLdzG3niA5ClQDoyPyJiTCwXy8iKOt2HIStn/M/MesKU3VB/6HMBfdv5F9txp4VC9dd0Ido65s9TfDQpn2Bn3zsMZQJMGF4b7jynN5EYHBZvvu5Ki7QTunfC+66mr4st3d+8z8qYF+Nh8vWw5lJkBpPPia28YND8Mqn/KsMcYChTAA8UHHnVQlU4LOWlXJNyrXn94FLh8b67WP1Owdh25d8q43eSnPvhir4uSIwcYZQrwB05pGsJOinkp+c5a/th50/NvidQFqDxZlJ0J/yVHbU2f1rIyx5pdq0nYsGRUNeho2o/1OFCxZs4H/FUAcXyisAOpWTbgOM1Eny+a+N8DeTEzMgIRwWTaYHmb72eILOeycmwomUWAYDTAw0LZNQJ8DwgVEw4xI14K+By8+OhUkjyEEZydiKN/bDR9+bW230lv9Fm/bBt3uaLJv/kA4CERU8YevMSYaYyDAiSA+8sBe+L3UxAzh/QiIMTCXvMEidvf9dA6zcup/ZzjknRkLh2HiiXml1M9xRXMncJ5NCqK8A6OzsS+Ph7BMiiX7v+KYeit4+wIRJfGwPcE5NZtKpb/LCtCfLmXSw8a1XJMDpx5IPhmLip/g/B5n7ZFIQgQCjT4+BrIvI2TpNA5iynG03kD4kBnLS6Nk/GsCPvLQPvvyNbbleW5hKvWixZEs17P6lkWk+mRuLQIC+fXrA37PpT+y8Z6vg973Gt1FzLo+HM48jryhVhzyA9kiCiSdMQBkVvW1sXZMXZhVVgNvDn83UHY8IBEAH7746EU7uT35nv/xJDbzwYY2heYnoqcBTM/pRn8qtu+tg9BnkWz1IjjmrKwzZwUYzLlZh+Mnkesb2r+vh6W1sry7Dhjs2FIUAV5/XG8YNI2cF99d5oPBpYxNz7klRMHMMeVeB7/m566t04wOWpM3KghRq8Mqzq2AigigEOCG5Fyy4hp62/euaSqg86L+YMm20DS44hZxXaI/09WoQm3fWwKaP/K82xyaFwwPX0vMM01eVQ22jl2kuTTUWhQDovF4+fc32g/D2F/7TtUaeSr0cwa+Vbpj/vP8aRPaoOMg4jfwq+fD7Bnj8DfYtZbcnQHZaHGQMIYP6S6Ub7vEzMYOPjoA7xtFrC+3ZPn9ZwlvXVkLFAf3VZskNSdRvBOC2FbevQRGRVgCM3DGCp8nMonI4WE9fVjNHxgEeNCGJb75fr06Ae3e9wxv4cQgkAE0CUV00TB6RCIBOP56fAr2jyFlBzNThe5wmek+lb8VPr1L49e9NsHgzvX4/cUQfuOJscpUR076Y/g2aiEaAWWNVGHYieWuFSRVMrpDkuKRwuF8nKPN9Kv2dFdAL4tAO2iNJoA6yGCaQaAQYeWo05NvJpVUEhVa1u+rc3jD+XPI2knbqZ3luMthiyEmhJ986AO99e+R7PDYyDJ4ooB/9wtw/1gCCJqIRAIHTq645X62GT386Mr2q91TSzv3pnRfc+UMDLH/9yEgeD5jg64MkZfub4fZ1Fhd/fA2LSIB54xOoX94gZdj8BWV3PVsFvxFSyfi1r5svIwedrmYN8p4oA6xFdBQ8wUT7NMw/PzgEW6w6+kVbUkQkwGVDY+EaylPm1QCyHys9bGIw8scdAElK9zfDHZSnMiwMoGh6PwjvQf5kwtIt1fBZh2KOogCsmZkK+Jck92yogl+sOvrVnQjQJyoMVuTT37O+VTvc+2MOgCSvfVYLz71HP5GDtXys6ZPkna/q4Zl//5nPTxscDVPTyfFJg8sLBSvZy8ncsYKIKwCC8tDkJDgqgXxW8NVdtfD8+62TigdJMPtHk0Uv7oVvS+gHSvSCTt8axKwxKgw7ibxDCUrtn+SkqAS4/sI+MOZM8l67utYDs59pLQ5h3h/z/yTBpBEmj/QEcw6Ye6AJ3hz6b9uJJIz+cRdAEn9E437Su9MrAH3Fpx9XAZrgZQ7c3mHlDyuAJNnxdT0UGSjJzh2fAKdSPvf2r121sOH9Qy1PPq4ANOE9wm6aIKKuAAjIY3kpEBdNfuI2fVwDmz+uaQni8FwhSWhbRt+2uNLgikOSPfuaYe76ypZ3P8YAJMHDpFj+7RQRmQA3jlbh/FPITzdetHhpZw21dtDswW1cOXhw2+BHUmw94dEp9NUG7/Xdcnk8JFM+EI13CrDW0CkiMgFwWcblmSaYrKEFZZgswhXAqCy8ri8c05ec3sXcg94F05wVZYCE6xQRmQAI6JpZqdQvcOIJn+gI8iuCtSSrdyIJg048aUyS70pc8OCLFt788ccq0Qlw+7gEGELZ4+thc1NRORzSKR376p6Q0gsWTPJ/kdRXb9VbB+BdQs3A37wF7HfRCaB3xo8GotmS7NLsZEiknBim2bpxVTnUBePoF20AohMA/fZ3x98XG8z8YQaQVaaMigMH5ZgXqa/yA81w29ogF398B9IdCKAXoJEmBityWJljldOOiYDbrqQHnb79dUrxpzsSwHF6DEyh3BzyxQOrflj9MyurbuwHUb2MfU8bs5EYIHaqdIcVABM9mPAxIrzXsadfrMIIymWPjvYbXRrkrywzMiRr23QHAiCCy6Ymg0rZinVE+L6Ne+HHMvbbxO194E0fvPHjT1ivkfnrz/Tv3YUAevv0dvDwOz949o9HcPnH14A/we8XBerzcv5s6f7eXQjg7wIpgrTtizpYvd345U4asHpXvtt1Oq340x2DwHafV8/sBz10/jEPfk4GPyvDK/bTYuCGUfTr5bTzgrx2Tel3lxUAwcGTP3gnjyY3PVUOBmo/fnFOiusB902i3/vDKuRWA9fU/BoKRIPuRIBA4CVcH5IAwk0pm0OSAGx4CddaEkC4KWVzSBKADS/hWksCCDelbA5JArDhJVxrSQDhppTNIUkANryEay0JINyUsjkkCcCGl3CtJQGEm1I2hyQB2PASrrUkgHBTyuaQJAAbXsK1lgQQbkrZHJIEYMNLuNaSAMJNKZtDkgBseAnXWhJAuCllc0gSgA0v4VpLAgg3pWwOSQKw4SVca0kA4aaUzSFJADa8hGstCSDclLI5JAnAhpdwrSUBhJtSNockAdjwEq61JIBwU8rmkCQAG17CtZYEEG5K2RyymgBZy0o+0DQYzjYq2TpYCCgAi9fN7j+XxZ6xj+C19ZjpLFkBADNYDMi2wUMgDJTJa2enPstikYkAk517MhRQ3mYxINsGDYHSCI93yNNzBhj/Lj4AMBEAXclaVlqoaZozaG5JQ8YQUJTM4sLU9cYa/9mKmQComuksGaEoyipN0waxGpTtrUBAGVM8O/UNMz2bIgAamrjiq9hIt3qNpmjDQAkbaMa41DGPgOLVKjRFKQGvtr74lv6fme3JNAHMGpR6XQuB/wOhlhvbv0ChzwAAAABJRU5ErkJggg=="},6155:function(t){"use strict";t.exports="data:image/png;base64,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"},5090:function(t){"use strict";t.exports="data:image/png;base64,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"},6058:function(t){"use strict";t.exports="data:image/png;base64,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"},5141:function(t){"use strict";t.exports="data:image/png;base64,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"},914:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAAXNSR0IArs4c6QAAAWhQTFRFAAAA/1UA/4AA/2YA/4AA+IoV+IkU+YgS/44S+YsV+YwU+YsU+osU+osV+4sV+owV+osV+osV+owV+owV+YsV+4sV+owV+osV+owV+owV+osW+osW+owV+owV+osV+owW+o0Z+o8d+pEh+pMk+pYr+pcr+pcs+pgv+poz+pw2+pw3+p46+p8++qFB+qFC+6FB+6FC+6NF+6VI+6VJ+6ZM+6hQ+6lQ+65b+69f+7Be+7Bf+7Nm+7Vq+7lx/LVq/Ldt/Lhx/Llx/Lp0/L58/MB//MCA/MKD/MOH/MWK/MeO/MmR/MmS/MyZ/M2Z/NKk/cyZ/dCg/dKk/dOo/dSn/dSo/dWr/dar/dmy/du2/dy6/d25/d69/d+9/eDB/eLF/eTI/efQ/uTI/uXL/ubM/ufP/ufQ/unT/uvW/uvX/u3a/u3b/u7e/u/e/vDi/vLl/vTp/vbs/vbt/vfw/vn0/vv3/vv4//37////WB/1HAAAAB90Uk5TAAMEBQYlJysriImKjY+PkJGVlZu1tbrA19v1+fr7/caUJKMAAAI7SURBVEjHtdbZW9NAFAXwSxXqCooblOVkqQGsolWhaNlBClilgNogVCjWyGKJppDz7/vQpgifTRo+PU/zkF+SOzM3ExERaevojiEwse6bbVJNy41eNJneay0iIpF7CJG7l0SkA6HSLhLtC0f6otKJkOmUrrCkS2JhSUwQOv+K6LPmEXlkzupNEnXRYS3OotoMMSz+EcsIJsZR7eLDTOaQ5A8jiCilmtjTAO0byZISQBa8N5oAgDRJvvEn6i+PpAEgRZK26kvG63V/BoCVU92QrJMVu2qe6S+fDNgkuepLdrilYYokLZh0Esn1TXLHl5SZBHBAcvyRSx4AeMuyLzlkClBs0lbfsXr/JPd9yQb3nz9Uy2RGd0hWdGCCG75kgeRxYnT7ozFHkvw+u1ThvC8xXJJfASBfn27X8F/9NZIFbB6nknWyFrBhDIf8oJE5rd4ARtBOniT3lan1wdcemQzul1UyH8dIbQ+cX/q/EqVA0vWesaU008ha8bQpi3pSCSDxrPMemukJU5vjz2zcj7yqkJ8AJVcVOQUvyqSTakyeuvwyAgCYOSFPZgAAI0W6jxuSFea94fCeNeyN81xuSDIs1T92ar1svcRMQzJg054/V2x8waZtNC4/YZHczU6PDg3q+uDQ6HR2l6SV8JtkJb3t8kzcQloJWkp9bNm0yiRZtsylMf2/HRYB5AIH3wWO19CH+C250h9O9EdF7oQjt0Xk8oMw4n5ERCRyvadZ0HM1Uvsja21v8heuVUTkNzutq1ryjw7AAAAAAElFTkSuQmCC"}}]);
|