/*! For license information please see 11.4b3ef3ac.chunk.js.LICENSE.txt */ (this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[11],{146:function(t,e,n){"use strict";var r=n(1),i=n(14),a=n(15),o=n(19),s=n(20),l=n(0),u=n(5);e.a=function(t){return function(e){Object(o.a)(l,e);var n=Object(s.a)(l);function l(){var t;Object(i.a)(this,l);for(var e=arguments.length,r=new Array(e),a=0;a2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";e=Number(e).toFixed(2);var a=Object(r.d)(t);return"Income"===a?e>0?"-".concat(n).concat(Math.abs(e)," ").concat(n?"":i):"+".concat(n).concat(Math.abs(e)," ").concat(n?"":i):"Assets"===a?e>0?"+".concat(n).concat(Math.abs(e)," ").concat(n?"":i):"-".concat(n).concat(Math.abs(e)," ").concat(n?"":i):"Expenses"===a?e>0?"-".concat(n).concat(Math.abs(e)," ").concat(n?"":i):"+".concat(n).concat(Math.abs(e)," ").concat(n?"":i):"Liabilities"===a?e>0?"+".concat(n).concat(Math.abs(e)," ").concat(n?"":i):"-".concat(n).concat(Math.abs(e)," ").concat(n?"":i):String(e)}},158:function(t,e,n){var r=n(168),i=n(148),a=n(159),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):o.test(t)?NaN:+t}},159:function(t,e,n){var r=n(170),i=n(173);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},160:function(t,e,n){"use strict";var r=n(1),i=n(16),a=(n(0),n(5)),o=["iconType"];e.a=function(t){var e=t.iconType,n=Object(i.a)(t,o);return Object(a.jsx)("img",Object(r.a)(Object(r.a)({},n),{},{src:"../../web/icons/".concat(e,".png"),alt:"",width:32,height:32}))}},161:function(t,e,n){"use strict";var r=n(0),i=n(162),a=n(156);e.a=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=Object(r.useRef)({}),n=Object(i.a)();return Object(r.useEffect)((function(){var r=a.a.subscribe((function(r){e.current=r,t&&n()}));return function(){return a.a.unsubscribe(r)}}),[]),e.current}},162:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(0);function a(){var t=i.useReducer((function(t){return t+1}),0);return Object(r.a)(t,2)[1]}},164:function(t,e,n){var r;!function(i){"use strict";var a,o,s,l=9e15,u=1e9,c="0123456789abcdef",f="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",d="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",p={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-l,maxE:l,crypto:!1},h=!0,g="[DecimalError] ",v=g+"Invalid argument: ",y=g+"Precision limit exceeded",m=g+"crypto unavailable",b="[object Decimal]",x=Math.floor,_=Math.pow,O=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,P=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,w=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,M=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,S=1e7,A=7,E=f.length-1,C=d.length-1,j={toStringTag:b};function I(t){var e,n,r,i=t.length-1,a="",o=t[0];if(i>0){for(a+=o,e=1;en)throw Error(v+t)}function F(t,e,n,r){var i,a,o,s;for(a=t[0];a>=10;a/=10)--e;return--e<0?(e+=A,i=0):(i=Math.ceil((e+1)/A),e%=A),a=_(10,A-e),s=t[i]%a|0,null==r?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),o=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):o=(n<4&&s+1==a||n>3&&s+1==a/2)&&(t[i+1]/a/100|0)==_(10,e-2)-1||(s==a/2||0==s)&&0==(t[i+1]/a/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),o=(r||n<4)&&9999==s||!r&&n>3&&4999==s):o=((r||n<4)&&s+1==a||!r&&n>3&&s+1==a/2)&&(t[i+1]/a/1e3|0)==_(10,e-3)-1,o}function L(t,e,n){for(var r,i,a=[0],o=0,s=t.length;on-1&&(void 0===a[r+1]&&(a[r+1]=0),a[r+1]+=a[r]/n|0,a[r]%=n)}return a.reverse()}j.absoluteValue=j.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),D(t)},j.ceil=function(){return D(new this.constructor(this),this.e+1,2)},j.clampedTo=j.clamp=function(t,e){var n=this,r=n.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(v+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},j.comparedTo=j.cmp=function(t){var e,n,r,i,a=this,o=a.d,s=(t=new a.constructor(t)).d,l=a.s,u=t.s;if(!o||!s)return l&&u?l!==u?l:o===s?0:!o^l<0?1:-1:NaN;if(!o[0]||!s[0])return o[0]?l:s[0]?-u:0;if(l!==u)return l;if(a.e!==t.e)return a.e>t.e^l<0?1:-1;for(e=0,n=(r=o.length)<(i=s.length)?r:i;es[e]^l<0?1:-1;return r===i?0:r>i^l<0?1:-1},j.cosine=j.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+A,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;r=e.d.length,r<32?i=(1/Q(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=$(t,1,e.times(i),new t(1));for(var a=n;a--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return t.precision-=n,e}(r,J(r,n)),r.precision=t,r.rounding=e,D(2==s||3==s?n.neg():n,t,e,!0)):new r(1):new r(NaN)},j.cubeRoot=j.cbrt=function(){var t,e,n,r,i,a,o,s,l,u,c=this,f=c.constructor;if(!c.isFinite()||c.isZero())return new f(c);for(h=!1,(a=c.s*_(c.s*c,1/3))&&Math.abs(a)!=1/0?r=new f(a.toString()):(n=I(c.d),(a=((t=c.e)-n.length+1)%3)&&(n+=1==a||-2==a?"0":"00"),a=_(n,1/3),t=x((t+1)/3)-(t%3==(t<0?-1:2)),(r=new f(n=a==1/0?"5e"+t:(n=a.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=c.s),o=(t=f.precision)+3;;)if(u=(l=(s=r).times(s).times(s)).plus(c),r=k(u.plus(c).times(s),u.plus(l),o+2,1),I(s.d).slice(0,o)===(n=I(r.d)).slice(0,o)){if("9999"!=(n=n.slice(o-3,o+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(D(r,t+1,1),e=!r.times(r).times(r).eq(c));break}if(!i&&(D(s,t+1,0),s.times(s).times(s).eq(c))){r=s;break}o+=4,i=1}return h=!0,D(r,t,f.rounding,e)},j.decimalPlaces=j.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=((t=e.length-1)-x(this.e/A))*A,t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},j.dividedBy=j.div=function(t){return k(this,new this.constructor(t))},j.dividedToIntegerBy=j.divToInt=function(t){var e=this.constructor;return D(k(this,new e(t),0,1,1),e.precision,e.rounding)},j.equals=j.eq=function(t){return 0===this.cmp(t)},j.floor=function(){return D(new this.constructor(this),this.e+1,3)},j.greaterThan=j.gt=function(t){return this.cmp(t)>0},j.greaterThanOrEqualTo=j.gte=function(t){var e=this.cmp(t);return 1==e||0===e},j.hyperbolicCosine=j.cosh=function(){var t,e,n,r,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(a.e,a.sd())+4,o.rounding=1,(i=a.d.length)<32?e=(1/Q(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),a=$(o,1,a.times(e),new o(1),!0);for(var l,u=t,c=new o(8);u--;)l=a.times(a),a=s.minus(l.times(c.minus(l.times(c))));return D(a,o.precision=n,o.rounding=r,!0)},j.hyperbolicSine=j.sinh=function(){var t,e,n,r,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(e=a.precision,n=a.rounding,a.precision=e+Math.max(i.e,i.sd())+4,a.rounding=1,(r=i.d.length)<3)i=$(a,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=$(a,2,i=i.times(1/Q(5,t)),i,!0);for(var o,s=new a(5),l=new a(16),u=new a(20);t--;)o=i.times(i),i=i.times(s.plus(o.times(l.times(o).plus(u))))}return a.precision=e,a.rounding=n,D(i,e,n,!0)},j.hyperbolicTangent=j.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,k(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},j.inverseCosine=j.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,a=n.rounding;return-1!==r?0===r?e.isNeg()?z(n,i,a):new n(0):new n(NaN):e.isZero()?z(n,i+4,a).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=z(n,i+4,a).times(.5),n.precision=i,n.rounding=a,t.minus(e))},j.inverseHyperbolicCosine=j.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,h=!1,n=n.times(n).minus(1).sqrt().plus(n),h=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},j.inverseHyperbolicSine=j.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,h=!1,n=n.times(n).plus(1).sqrt().plus(n),h=!0,r.precision=t,r.rounding=e,n.ln())},j.inverseHyperbolicTangent=j.atanh=function(){var t,e,n,r,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=a.precision,e=a.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?D(new a(i),t,e,!0):(a.precision=n=r-i.e,i=k(i.plus(1),new a(1).minus(i),n+t,1),a.precision=t+4,a.rounding=1,i=i.ln(),a.precision=t,a.rounding=e,i.times(.5))):new a(NaN)},j.inverseSine=j.asin=function(){var t,e,n,r,i=this,a=i.constructor;return i.isZero()?new a(i):(e=i.abs().cmp(1),n=a.precision,r=a.rounding,-1!==e?0===e?((t=z(a,n+4,r).times(.5)).s=i.s,t):new a(NaN):(a.precision=n+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,i.times(2)))},j.inverseTangent=j.atan=function(){var t,e,n,r,i,a,o,s,l,u=this,c=u.constructor,f=c.precision,d=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&f+4<=C)return(o=z(c,f+4,d).times(.25)).s=u.s,o}else{if(!u.s)return new c(NaN);if(f+4<=C)return(o=z(c,f+4,d).times(.5)).s=u.s,o}for(c.precision=s=f+10,c.rounding=1,t=n=Math.min(28,s/A+2|0);t;--t)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(h=!1,e=Math.ceil(s/A),r=1,l=u.times(u),o=new c(u),i=u;-1!==t;)if(i=i.times(l),a=o.minus(i.div(r+=2)),i=i.times(l),void 0!==(o=a.plus(i.div(r+=2))).d[e])for(t=e;o.d[t]===a.d[t]&&t--;);return n&&(o=o.times(2<this.d.length-2},j.isNaN=function(){return!this.s},j.isNegative=j.isNeg=function(){return this.s<0},j.isPositive=j.isPos=function(){return this.s>0},j.isZero=function(){return!!this.d&&0===this.d[0]},j.lessThan=j.lt=function(t){return this.cmp(t)<0},j.lessThanOrEqualTo=j.lte=function(t){return this.cmp(t)<1},j.logarithm=j.log=function(t){var e,n,r,i,a,o,s,l,u=this,c=u.constructor,f=c.precision,d=c.rounding;if(null==t)t=new c(10),e=!0;else{if(n=(t=new c(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new c(NaN);e=t.eq(10)}if(n=u.d,u.s<0||!n||!n[0]||u.eq(1))return new c(n&&!n[0]?-1/0:1!=u.s?NaN:n?0:1/0);if(e)if(n.length>1)a=!0;else{for(i=n[0];i%10===0;)i/=10;a=1!==i}if(h=!1,o=X(u,s=f+5),r=e?B(c,s+10):X(t,s),F((l=k(o,r,s,1)).d,i=f,d))do{if(o=X(u,s+=10),r=e?B(c,s+10):X(t,s),l=k(o,r,s,1),!a){+I(l.d).slice(i+1,i+15)+1==1e14&&(l=D(l,f+1,0));break}}while(F(l.d,i+=10,d));return h=!0,D(l,f,d)},j.minus=j.sub=function(t){var e,n,r,i,a,o,s,l,u,c,f,d,p=this,g=p.constructor;if(t=new g(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new g(t.d||p.s!==t.s?p:NaN):t=new g(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(u=p.d,d=t.d,s=g.precision,l=g.rounding,!u[0]||!d[0]){if(d[0])t.s=-t.s;else{if(!u[0])return new g(3===l?-0:0);t=new g(p)}return h?D(t,s,l):t}if(n=x(t.e/A),c=x(p.e/A),u=u.slice(),a=c-n){for((f=a<0)?(e=u,a=-a,o=d.length):(e=d,n=c,o=u.length),a>(r=Math.max(Math.ceil(s/A),o)+2)&&(a=r,e.length=1),e.reverse(),r=a;r--;)e.push(0);e.reverse()}else{for((f=(r=u.length)<(o=d.length))&&(o=r),r=0;r0;--r)u[o++]=0;for(r=d.length;r>a;){if(u[--r](o=(a=Math.ceil(s/A))>o?a+1:o+1)&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((o=u.length)-(i=c.length)<0&&(i=o,n=c,c=u,u=n),e=0;i;)e=(u[--i]=u[i]+c[i]+e)/S|0,u[i]%=S;for(e&&(u.unshift(e),++r),o=u.length;0==u[--o];)u.pop();return t.d=u,t.e=N(u,r),h?D(t,s,l):t},j.precision=j.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(v+t);return n.d?(e=V(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},j.round=function(){var t=this,e=t.constructor;return D(new e(t),t.e+1,e.rounding)},j.sine=j.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+A,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:$(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=e.times(1/Q(5,n)),e=$(t,2,e,e);for(var i,a=new t(5),o=new t(16),s=new t(20);n--;)i=e.times(e),e=e.times(a.plus(i.times(o.times(i).minus(s))));return e}(r,J(r,n)),r.precision=t,r.rounding=e,D(s>2?n.neg():n,t,e,!0)):new r(NaN)},j.squareRoot=j.sqrt=function(){var t,e,n,r,i,a,o=this,s=o.d,l=o.e,u=o.s,c=o.constructor;if(1!==u||!s||!s[0])return new c(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);for(h=!1,0==(u=Math.sqrt(+o))||u==1/0?(((e=I(s)).length+l)%2==0&&(e+="0"),u=Math.sqrt(e),l=x((l+1)/2)-(l<0||l%2),r=new c(e=u==1/0?"5e"+l:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+l)):r=new c(u.toString()),n=(l=c.precision)+3;;)if(r=(a=r).plus(k(o,a,n+2,1)).times(.5),I(a.d).slice(0,n)===(e=I(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(D(r,l+1,1),t=!r.times(r).eq(o));break}if(!i&&(D(a,l+1,0),a.times(a).eq(o))){r=a;break}n+=4,i=1}return h=!0,D(r,l,c.rounding,t)},j.tangent=j.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=k(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,D(2==s||4==s?n.neg():n,t,e,!0)):new r(NaN)},j.times=j.mul=function(t){var e,n,r,i,a,o,s,l,u,c=this,f=c.constructor,d=c.d,p=(t=new f(t)).d;if(t.s*=c.s,!d||!d[0]||!p||!p[0])return new f(!t.s||d&&!d[0]&&!p||p&&!p[0]&&!d?NaN:d&&p?0*t.s:t.s/0);for(n=x(c.e/A)+x(t.e/A),(l=d.length)<(u=p.length)&&(a=d,d=p,p=a,o=l,l=u,u=o),a=[],r=o=l+u;r--;)a.push(0);for(r=u;--r>=0;){for(e=0,i=l+r;i>r;)s=a[i]+p[r]*d[i-r-1]+e,a[i--]=s%S|0,e=s/S|0;a[i]=(a[i]+e)%S|0}for(;!a[--o];)a.pop();return e?++n:a.shift(),t.d=a,t.e=N(a,n),h?D(t,f.precision,f.rounding):t},j.toBinary=function(t,e){return tt(this,2,t,e)},j.toDecimalPlaces=j.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(T(t,0,u),void 0===e?e=r.rounding:T(e,0,8),D(n,t+n.e+1,e))},j.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=R(r,!0):(T(t,0,u),void 0===e?e=i.rounding:T(e,0,8),n=R(r=D(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},j.toFixed=function(t,e){var n,r,i=this,a=i.constructor;return void 0===t?n=R(i):(T(t,0,u),void 0===e?e=a.rounding:T(e,0,8),n=R(r=D(new a(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},j.toFraction=function(t){var e,n,r,i,a,o,s,l,u,c,f,d,p=this,g=p.d,y=p.constructor;if(!g)return new y(p);if(u=n=new y(1),r=l=new y(0),o=(a=(e=new y(r)).e=V(g)-p.e-1)%A,e.d[0]=_(10,o<0?A+o:o),null==t)t=a>0?e:u;else{if(!(s=new y(t)).isInt()||s.lt(u))throw Error(v+s);t=s.gt(e)?a>0?e:u:s}for(h=!1,s=new y(I(g)),c=y.precision,y.precision=a=g.length*A*2;f=k(s,e,0,1,1),1!=(i=n.plus(f.times(r))).cmp(t);)n=r,r=i,i=u,u=l.plus(f.times(i)),l=i,i=e,e=s.minus(f.times(i)),s=i;return i=k(t.minus(n),r,0,1,1),l=l.plus(i.times(u)),n=n.plus(i.times(r)),l.s=u.s=p.s,d=k(u,r,a,1).minus(p).abs().cmp(k(l,n,a,1).minus(p).abs())<1?[u,r]:[l,n],y.precision=c,h=!0,d},j.toHexadecimal=j.toHex=function(t,e){return tt(this,16,t,e)},j.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:T(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(h=!1,n=k(n,t,0,e,1).times(t),h=!0,D(n)):(t.s=n.s,n=t),n},j.toNumber=function(){return+this},j.toOctal=function(t,e){return tt(this,8,t,e)},j.toPower=j.pow=function(t){var e,n,r,i,a,o,s=this,l=s.constructor,u=+(t=new l(t));if(!s.d||!t.d||!s.d[0]||!t.d[0])return new l(_(+s,u));if((s=new l(s)).eq(1))return s;if(r=l.precision,a=l.rounding,t.eq(1))return D(s,r,a);if((e=x(t.e/A))>=t.d.length-1&&(n=u<0?-u:u)<=9007199254740991)return i=W(l,s,n,r),t.s<0?new l(1).div(i):D(i,r,a);if((o=s.s)<0){if(el.maxE+1||e0?o/0:0):(h=!1,l.rounding=s.s=1,n=Math.min(12,(e+"").length),(i=U(t.times(X(s,r+n)),r)).d&&F((i=D(i,r+5,1)).d,r,a)&&(e=r+10,+I((i=D(U(t.times(X(s,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=D(i,r+1,0))),i.s=o,h=!0,l.rounding=a,D(i,r,a))},j.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=R(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(T(t,1,u),void 0===e?e=i.rounding:T(e,0,8),n=R(r=D(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},j.toSignificantDigits=j.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(T(t,1,u),void 0===e?e=n.rounding:T(e,0,8)),D(new n(this),t,e)},j.toString=function(){var t=this,e=t.constructor,n=R(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},j.truncated=j.trunc=function(){return D(new this.constructor(this),this.e+1,1)},j.valueOf=j.toJSON=function(){var t=this,e=t.constructor,n=R(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var k=function(){function t(t,e,n){var r,i=0,a=t.length;for(t=t.slice();a--;)r=t[a]*e+i,t[a]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;ie[i]?1:-1;break}return a}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;)t.shift()}return function(r,i,a,s,l,u){var c,f,d,p,h,g,v,y,m,b,_,O,P,w,M,E,C,j,I,T,F=r.constructor,L=r.s==i.s?1:-1,k=r.d,R=i.d;if(!k||!k[0]||!R||!R[0])return new F(r.s&&i.s&&(k?!R||k[0]!=R[0]:R)?k&&0==k[0]||!R?0*L:L/0:NaN);for(u?(h=1,f=r.e-i.e):(u=S,h=A,f=x(r.e/h)-x(i.e/h)),I=R.length,C=k.length,b=(m=new F(L)).d=[],d=0;R[d]==(k[d]||0);d++);if(R[d]>(k[d]||0)&&f--,null==a?(w=a=F.precision,s=F.rounding):w=l?a+(r.e-i.e)+1:a,w<0)b.push(1),g=!0;else{if(w=w/h+2|0,d=0,1==I){for(p=0,R=R[0],w++;(d1&&(R=t(R,p,u),k=t(k,p,u),I=R.length,C=k.length),E=I,O=(_=k.slice(0,I)).length;O=u/2&&++j;do{p=0,(c=e(R,_,I,O))<0?(P=_[0],I!=O&&(P=P*u+(_[1]||0)),(p=P/j|0)>1?(p>=u&&(p=u-1),1==(c=e(v=t(R,p,u),_,y=v.length,O=_.length))&&(p--,n(v,I=10;p/=10)d++;m.e=d+f*h-1,D(m,l?a+m.e+1:a,s,g)}return m}}();function D(t,e,n,r){var i,a,o,s,l,u,c,f,d,p=t.constructor;t:if(null!=e){if(!(f=t.d))return t;for(i=1,s=f[0];s>=10;s/=10)i++;if((a=e-i)<0)a+=A,o=e,l=(c=f[d=0])/_(10,i-o-1)%10|0;else if((d=Math.ceil((a+1)/A))>=(s=f.length)){if(!r)break t;for(;s++<=d;)f.push(0);c=l=0,i=1,o=(a%=A)-A+1}else{for(c=s=f[d],i=1;s>=10;s/=10)i++;l=(o=(a%=A)-A+i)<0?0:c/_(10,i-o-1)%10|0}if(r=r||e<0||void 0!==f[d+1]||(o<0?c:c%_(10,i-o-1)),u=n<4?(l||r)&&(0==n||n==(t.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(a>0?o>0?c/_(10,i-o):0:f[d-1])%10&1||n==(t.s<0?8:7)),e<1||!f[0])return f.length=0,u?(e-=t.e+1,f[0]=_(10,(A-e%A)%A),t.e=-e||0):f[0]=t.e=0,t;if(0==a?(f.length=d,s=1,d--):(f.length=d+1,s=_(10,A-a),f[d]=o>0?(c/_(10,i-o)%_(10,o)|0)*s:0),u)for(;;){if(0==d){for(a=1,o=f[0];o>=10;o/=10)a++;for(o=f[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(t.e++,f[0]==S&&(f[0]=1));break}if(f[d]+=s,f[d]!=S)break;f[d--]=0,s=1}for(a=f.length;0===f[--a];)f.pop()}return h&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e0?a=a.charAt(0)+"."+a.slice(1)+G(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(t.e<0?"e":"e+")+t.e):i<0?(a="0."+G(-i-1)+a,n&&(r=n-o)>0&&(a+=G(r))):i>=o?(a+=G(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+G(r))):((r=i+1)0&&(i+1===o&&(a+="."),a+=G(r))),a}function N(t,e){var n=t[0];for(e*=A;n>=10;n/=10)e++;return e}function B(t,e,n){if(e>E)throw h=!0,n&&(t.precision=n),Error(y);return D(new t(f),e,1,!0)}function z(t,e,n){if(e>C)throw Error(y);return D(new t(d),e,n,!0)}function V(t){var e=t.length-1,n=e*A+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function G(t){for(var e="";t--;)e+="0";return e}function W(t,e,n,r){var i,a=new t(1),o=Math.ceil(r/A+4);for(h=!1;;){if(n%2&&et((a=a.times(e)).d,o)&&(i=!0),0===(n=x(n/2))){n=a.d.length-1,i&&0===a.d[n]&&++a.d[n];break}et((e=e.times(e)).d,o)}return h=!0,a}function Y(t){return 1&t.d[t.d.length-1]}function H(t,e,n){for(var r,i=new t(e[0]),a=0;++a17)return new d(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(h=!1,l=g):l=e,s=new d(.03125);t.e>-2;)t=t.times(s),f+=5;for(l+=r=Math.log(_(2,f))/Math.LN10*2+5|0,n=a=o=new d(1),d.precision=l;;){if(a=D(a.times(t),l,1),n=n.times(++c),I((s=o.plus(k(a,n,l,1))).d).slice(0,l)===I(o.d).slice(0,l)){for(i=f;i--;)o=D(o.times(o),l,1);if(null!=e)return d.precision=g,o;if(!(u<3&&F(o.d,l-r,p,u)))return D(o,d.precision=g,p,h=!0);d.precision=l+=10,n=a=s=new d(1),c=0,u++}o=s}}function X(t,e){var n,r,i,a,o,s,l,u,c,f,d,p=1,g=t,v=g.d,y=g.constructor,m=y.rounding,b=y.precision;if(g.s<0||!v||!v[0]||!g.e&&1==v[0]&&1==v.length)return new y(v&&!v[0]?-1/0:1!=g.s?NaN:v?0:g);if(null==e?(h=!1,c=b):c=e,y.precision=c+=10,r=(n=I(v)).charAt(0),!(Math.abs(a=g.e)<15e14))return u=B(y,c+2,b).times(a+""),g=X(new y(r+"."+n.slice(1)),c-10).plus(u),y.precision=b,null==e?D(g,b,m,h=!0):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=I((g=g.times(t)).d)).charAt(0),p++;for(a=g.e,r>1?(g=new y("0."+n),a++):g=new y(r+"."+n.slice(1)),f=g,l=o=g=k(g.minus(1),g.plus(1),c,1),d=D(g.times(g),c,1),i=3;;){if(o=D(o.times(d),c,1),I((u=l.plus(k(o,new y(i),c,1))).d).slice(0,c)===I(l.d).slice(0,c)){if(l=l.times(2),0!==a&&(l=l.plus(B(y,c+2,b).times(a+""))),l=k(l,new y(p),c,1),null!=e)return y.precision=b,l;if(!F(l.d,c-10,m,s))return D(l,y.precision=b,m,h=!0);y.precision=c+=10,u=o=g=k(f.minus(1),f.plus(1),c,1),d=D(g.times(g),c,1),i=s=1}l=u,i+=2}}function q(t){return String(t.s*t.s/0)}function K(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%A,n<0&&(r+=A),rt.constructor.maxE?(t.d=null,t.e=NaN):t.e-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),M.test(e))return K(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(P.test(e))n=16,e=e.toLowerCase();else if(O.test(e))n=2;else{if(!w.test(e))throw Error(v+e);n=8}for((o=e.search(/p/i))>0?(u=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),s=(o=e.indexOf("."))>=0,r=t.constructor,s&&(o=(l=(e=e.replace(".","")).length)-o,i=W(r,new r(n),o,2*o)),o=f=(c=L(e,n,S)).length-1;0===c[o];--o)c.pop();return o<0?new r(0*t.s):(t.e=N(c,f),t.d=c,h=!1,s&&(t=k(t,i,4*l)),u&&(t=t.times(Math.abs(u)<54?_(2,u):a.pow(2,u))),h=!0,t)}function $(t,e,n,r,i){var a,o,s,l,u=t.precision,c=Math.ceil(u/A);for(h=!1,l=n.times(n),s=new t(r);;){if(o=k(s.times(l),new t(e++*e++),u,1),s=i?r.plus(o):r.minus(o),r=k(o.times(l),new t(e++*e++),u,1),void 0!==(o=s.plus(r)).d[c]){for(a=c;o.d[a]===s.d[a]&&a--;);if(-1==a)break}a=s,s=r,r=o,o=a}return h=!0,o.d.length=c+1,o}function Q(t,e){for(var n=t;--e;)n*=t;return n}function J(t,e){var n,r=e.s<0,i=z(t,t.precision,1),a=i.times(.5);if((e=e.abs()).lte(a))return s=r?4:1,e;if((n=e.divToInt(i)).isZero())s=r?3:2;else{if((e=e.minus(n.times(i))).lte(a))return s=Y(n)?r?2:3:r?4:1,e;s=Y(n)?r?1:4:r?3:2}return e.minus(i).abs()}function tt(t,e,n,r){var i,a,s,l,f,d,p,h,g,v=t.constructor,y=void 0!==n;if(y?(T(n,1,u),void 0===r?r=v.rounding:T(r,0,8)):(n=v.precision,r=v.rounding),t.isFinite()){for(y?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(s=(p=R(t)).indexOf("."))>=0&&(p=p.replace(".",""),(g=new v(1)).e=p.length-s,g.d=L(R(g),10,i),g.e=g.d.length),a=f=(h=L(p,10,i)).length;0==h[--f];)h.pop();if(h[0]){if(s<0?a--:((t=new v(t)).d=h,t.e=a,h=(t=k(t,g,n,r,0,i)).d,a=t.e,d=o),s=h[n],l=i/2,d=d||void 0!==h[n+1],d=r<4?(void 0!==s||d)&&(0===r||r===(t.s<0?3:2)):s>l||s===l&&(4===r||d||6===r&&1&h[n-1]||r===(t.s<0?8:7)),h.length=n,d)for(;++h[--n]>i-1;)h[n]=0,n||(++a,h.unshift(1));for(f=h.length;!h[f-1];--f);for(s=0,p="";s1)if(16==e||8==e){for(s=16==e?4:3,--f;f%s;f++)p+="0";for(f=(h=L(p,i,e)).length;!h[f-1];--f);for(s=1,p="1.";sf)for(a-=f;a--;)p+="0";else ae)return t.length=e,!0}function nt(t){return new this(t).abs()}function rt(t){return new this(t).acos()}function it(t){return new this(t).acosh()}function at(t,e){return new this(t).plus(e)}function ot(t){return new this(t).asin()}function st(t){return new this(t).asinh()}function lt(t){return new this(t).atan()}function ut(t){return new this(t).atanh()}function ct(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,a=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?z(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=z(this,a,1).times(.5)).s=t.s:e.s<0?(this.precision=a,this.rounding=1,n=this.atan(k(t,e,a,1)),e=z(this,a,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(k(t,e,a,1)):(n=z(this,a,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function ft(t){return new this(t).cbrt()}function dt(t){return D(t=new this(t),t.e+1,2)}function pt(t,e,n){return new this(t).clamp(e,n)}function ht(t){if(!t||"object"!==typeof t)throw Error(g+"Object expected");var e,n,r,i=!0===t.defaults,a=["precision",1,u,"rounding",0,8,"toExpNeg",-l,0,"toExpPos",0,l,"maxE",0,l,"minE",-l,0,"modulo",0,9];for(e=0;e=a[e+1]&&r<=a[e+2]))throw Error(v+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=p[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(v+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(m);this[n]=!0}else this[n]=!1}return this}function gt(t){return new this(t).cos()}function vt(t){return new this(t).cosh()}function yt(t,e){return new this(t).div(e)}function mt(t){return new this(t).exp()}function bt(t){return D(t=new this(t),t.e+1,3)}function xt(){var t,e,n=new this(0);for(h=!1,t=0;t=429e7?e[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else{if(!crypto.randomBytes)throw Error(m);for(e=crypto.randomBytes(r*=4);a=214e7?crypto.randomBytes(4).copy(e,a):(s.push(i%1e7),a+=4);a=r/4}else for(;a=10;i/=10)r++;ra.maxE?(i.e=NaN,i.d=null):t.e=10;n/=10)e++;return void(h?e>a.maxE?(i.e=NaN,i.d=null):e=e||n<0||v&&t-h>=c}function x(){var t=i();if(b(t))return _(t);d=setTimeout(x,function(t){var n=e-(t-p);return v?s(n,c-(t-h)):n}(t))}function _(t){return d=void 0,y&&l?m(t):(l=u=void 0,f)}function O(){var t=i(),n=b(t);if(l=arguments,u=this,p=t,n){if(void 0===d)return function(t){return h=t,d=setTimeout(x,e),g?m(t):f}(p);if(v)return clearTimeout(d),d=setTimeout(x,e),m(p)}return void 0===d&&(d=setTimeout(x,e)),f}return e=a(e)||0,r(n)&&(g=!!n.leading,c=(v="maxWait"in n)?o(a(n.maxWait)||0,e):c,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=u=d=void 0},O.flush=function(){return void 0===d?f:_(i())},O}},166:function(t,e,n){var r=n(149);t.exports=function(){return r.Date.now()}},167:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(115))},168:function(t,e,n){var r=n(169),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},169:function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},170:function(t,e,n){var r=n(147),i=n(171),a=n(172),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):a(t)}},171:function(t,e,n){var r=n(147),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(l){}var i=o.call(t);return r&&(e?t[s]=n:delete t[s]),i}},172:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},173:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},176:function(t,e,n){var r;window,r=function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=646)}([function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return Ht.default}}),Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return Tt.default}}),Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return It.default}}),Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return Ft.default}}),Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Lt.default}}),Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return Dt.default}}),Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return Rt.default}}),Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"every",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return Nt.default}}),Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"find",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"get",{enumerable:!0,get:function(){return Ut.default}}),Object.defineProperty(e,"getEllipsisText",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"group",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"has",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return tt.default}}),Object.defineProperty(e,"head",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return Bt.default}}),Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return ct.default}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return ft.default}}),Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return dt.default}}),Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return pt.default}}),Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return ht.default}}),Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return Ct.default}}),Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return zt.default}}),Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return Vt.default}}),Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return Gt.default}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return gt.default}}),Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return yt.default}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return vt.default}}),Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return nt.default}}),Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return mt.default}}),Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return bt.default}}),Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return _t.default}}),Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return Ot.default}}),Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return Pt.default}}),Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return wt.default}}),Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return Mt.default}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return St.default}}),Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return At.default}}),Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return Et.default}}),Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return et.default}}),Object.defineProperty(e,"last",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return it.default}}),Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return at.default}}),Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Wt.default}}),Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return Yt.default}}),Object.defineProperty(e,"max",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return kt.default}}),Object.defineProperty(e,"min",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return Ht.default}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return Kt.default}}),Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return qt.default}}),Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return jt.default}}),Object.defineProperty(e,"set",{enumerable:!0,get:function(){return Xt.default}}),Object.defineProperty(e,"size",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"some",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return ot.default}}),Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Zt.default}}),Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return $t.default}}),Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return Qt.default}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return Jt.default}}),Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return st.default}}),Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return lt.default}}),Object.defineProperty(e,"values",{enumerable:!0,get:function(){return rt.default}}),Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return I.default}});var i=r(n(238)),a=r(n(655)),o=r(n(656)),s=r(n(657)),l=r(n(658)),u=r(n(659)),c=r(n(660)),f=r(n(661)),d=r(n(662)),p=r(n(376)),h=r(n(377)),g=r(n(663)),v=r(n(664)),y=r(n(665)),m=r(n(378)),b=r(n(666)),x=r(n(667)),_=r(n(668)),O=r(n(669)),P=r(n(670)),w=r(n(371)),M=r(n(671)),S=r(n(672)),A=r(n(673)),E=r(n(380)),C=r(n(379)),j=r(n(674)),I=r(n(675)),T=r(n(676)),F=r(n(677)),L=r(n(678)),k=r(n(679)),D=r(n(680)),R=r(n(681)),N=r(n(682)),B=r(n(683)),z=r(n(684)),V=r(n(685)),G=r(n(686)),W=r(n(374)),Y=r(n(687)),H=r(n(375)),U=r(n(688)),X=r(n(689)),q=r(n(690)),K=r(n(691)),Z=r(n(692)),$=r(n(693)),Q=r(n(381)),J=r(n(694)),tt=r(n(695)),et=r(n(373)),nt=r(n(372)),rt=r(n(240)),it=r(n(696)),at=r(n(697)),ot=r(n(698)),st=r(n(699)),lt=r(n(700)),ut=r(n(382)),ct=r(n(701)),ft=r(n(36)),dt=r(n(56)),pt=r(n(702)),ht=r(n(703)),gt=r(n(704)),vt=r(n(57)),yt=r(n(705)),mt=r(n(95)),bt=r(n(706)),xt=r(n(86)),_t=r(n(169)),Ot=r(n(239)),Pt=r(n(138)),wt=r(n(383)),Mt=r(n(707)),St=r(n(85)),At=r(n(68)),Et=r(n(708)),Ct=r(n(709)),jt=r(n(710)),It=r(n(711)),Tt=r(n(712)),Ft=r(n(713)),Lt=r(n(714)),kt=r(n(384)),Dt=r(n(715)),Rt=r(n(107)),Nt=r(n(716)),Bt=r(n(717)),zt=r(n(718)),Vt=r(n(385)),Gt=r(n(719)),Wt=r(n(720)),Yt=r(n(721)),Ht=r(n(241)),Ut=r(n(722)),Xt=r(n(723)),qt=r(n(724)),Kt=r(n(725)),Zt=r(n(726)),$t=r(n(727)),Qt=r(n(108)),Jt=r(n(728)),te=r(n(729)),ee=r(n(730)),ne=r(n(731)),re=r(n(386)),ie=r(n(732)),ae=r(n(733))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.__assign=void 0,e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:c(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof c?Promise.resolve(n.value.v).then(l,u):f(a[0][2],n)}catch(r){f(a[0][3],r)}var n}function l(t){s("next",t)}function u(t){s("throw",t)}function f(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=l(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}},e.__await=c,e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(e){a(e)}}function s(t){try{l(r.throw(t))}catch(e){a(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))},e.__classPrivateFieldGet=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},e.__classPrivateFieldIn=function(t,e){if(null===e||"object"!==(0,i.default)(e)&&"function"!==typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?e===t:t.has(e)},e.__classPrivateFieldSet=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},e.__createBinding=void 0,e.__decorate=function(t,e,n,r){var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"===typeof Reflect?"undefined":(0,i.default)(Reflect))&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__exportStar=function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||s(e,t,n)},e.__extends=function(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}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function c(t){return this instanceof c?(this.v=t,this):new c(t)}e.__createBinding=s;var f=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}},function(t,e,n){"use strict";t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(e,n){e.exports=t},function(t,e,n){"use strict";var r=n(364),i=n(368),a=n(369),o=n(370),s=n(654),l=i.apply(o()),u=function(t,e){return l(Object,arguments)};r(u,{getPolyfill:o,implementation:a,shim:s}),t.exports=u},function(t,e,n){"use strict";function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={flow:!0,pick:!0,template:!0,log:!0,invariant:!0,LEVEL:!0,getContainerSize:!0,findViewById:!0,getViews:!0,getSiblingViews:!0,transformLabel:!0,getSplinePath:!0,deepAssign:!0,kebabCase:!0,renderStatistic:!0,renderGaugeStatistic:!0,measureTextWidth:!0,isBetween:!0,isRealNumber:!0};Object.defineProperty(e,"LEVEL",{enumerable:!0,get:function(){return s.LEVEL}}),Object.defineProperty(e,"deepAssign",{enumerable:!0,get:function(){return p.deepAssign}}),Object.defineProperty(e,"findViewById",{enumerable:!0,get:function(){return c.findViewById}}),Object.defineProperty(e,"flow",{enumerable:!0,get:function(){return i.flow}}),Object.defineProperty(e,"getContainerSize",{enumerable:!0,get:function(){return l.getContainerSize}}),Object.defineProperty(e,"getSiblingViews",{enumerable:!0,get:function(){return c.getSiblingViews}}),Object.defineProperty(e,"getSplinePath",{enumerable:!0,get:function(){return d.getSplinePath}}),Object.defineProperty(e,"getViews",{enumerable:!0,get:function(){return c.getViews}}),Object.defineProperty(e,"invariant",{enumerable:!0,get:function(){return s.invariant}}),Object.defineProperty(e,"isBetween",{enumerable:!0,get:function(){return y.isBetween}}),Object.defineProperty(e,"isRealNumber",{enumerable:!0,get:function(){return y.isRealNumber}}),Object.defineProperty(e,"kebabCase",{enumerable:!0,get:function(){return h.kebabCase}}),Object.defineProperty(e,"log",{enumerable:!0,get:function(){return s.log}}),Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return v.measureTextWidth}}),Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return a.pick}}),Object.defineProperty(e,"renderGaugeStatistic",{enumerable:!0,get:function(){return g.renderGaugeStatistic}}),Object.defineProperty(e,"renderStatistic",{enumerable:!0,get:function(){return g.renderStatistic}}),Object.defineProperty(e,"template",{enumerable:!0,get:function(){return o.template}}),Object.defineProperty(e,"transformLabel",{enumerable:!0,get:function(){return f.transformLabel}});var i=n(1160),a=n(538),o=n(1161),s=n(539),l=n(1162),u=n(1163);Object.keys(u).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||t in e&&e[t]===u[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))}));var c=n(540),f=n(1164),d=n(1165),p=n(541),h=n(1166),g=n(542),v=n(1167),y=n(302),m=n(197);Object.keys(m).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||t in e&&e[t]===m[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return m[t]}}))}));var b=n(121);Object.keys(b).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||t in e&&e[t]===b[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}}))}))},function(t,e,n){"use strict";n.r(e),n.d(e,"VERSION",(function(){return f}));var r=n(235),i=n(619),a=n(25),o=n(66);n.d(e,"registerScale",(function(){return o.registerScale})),n.d(e,"getScale",(function(){return o.getScale})),n.d(e,"registerTickMethod",(function(){return o.registerTickMethod}));var s=n(187);n.d(e,"setGlobal",(function(){return s.setGlobal})),n.d(e,"GLOBAL",(function(){return s.GLOBAL})),n(1318),n(950);var l=n(459);for(var u in n.d(e,"createThemeByStyleSheet",(function(){return l.c})),n.d(e,"antvLight",(function(){return l.b})),n.d(e,"antvDark",(function(){return l.a})),a)["default","registerScale","getScale","registerTickMethod","setGlobal","GLOBAL","VERSION","setDefaultErrorFallback","createThemeByStyleSheet","antvLight","antvDark"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);var c=n(67);n.d(e,"setDefaultErrorFallback",(function(){return c.c})),Object(a.registerEngine)("canvas",r),Object(a.registerEngine)("svg",i);var f="4.1.22",d=r.Canvas.prototype.getPointByClient;r.Canvas.prototype.getPointByClient=function(t,e){var n=d.call(this,t,e),r=this.get("el").getBoundingClientRect(),i=this.get("width"),a=this.get("height"),o=r.width,s=r.height;return{x:n.x/(o/i),y:n.y/(s/a)}}},function(t,e,n){"use strict";t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";function r(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return{width:Object(k.isNumber)(e.width)?e.width:t.clientWidth,height:Object(k.isNumber)(e.height)?e.height:t.clientHeight}}var R=n(16),N=function t(e,n){if(Object(k.isObject)(e)&&Object(k.isObject)(n)){var r=Object.keys(e),i=Object.keys(n);if(r.length!==i.length)return!1;for(var a=!0,o=0;o2&&void 0!==arguments[2]?arguments[2]:function(t){return t},r=x.a.forwardRef((function(e,r){var a=e.title,s=e.description,l=e.autoFit,u=void 0===l||l,c=e.forceFit,f=e.errorContent,d=void 0===f?S.a:f,p=e.containerStyle,h=e.containerProps,g=e.placeholder,v=e.ErrorBoundaryProps,y=e.isMaterial,m=H(e,["title","description","autoFit","forceFit","errorContent","containerStyle","containerProps","placeholder","ErrorBoundaryProps","isMaterial"]),_=n(m),O=Object(b.useRef)(),P=Object(b.useRef)(),w=Object(b.useRef)(),M=Object(b.useState)(0),A=i()(M,2),E=A[0],j=A[1],I=Object(b.useRef)(),T=Object(b.useCallback)((function(){if(O.current){var t=D(O.current,e),n=P.current?D(P.current):{width:0,height:0},r=w.current?D(w.current):{width:0,height:0},i=t.height-n.height-r.height;0===i&&(i=350),i<20&&(i=20),Math.abs(E-i)>1&&j(i)}}),[O.current,P.current,E,w.current]),F=Object(b.useCallback)(Object(k.debounce)(T,500),[T]),N=x.a.isValidElement(d)?function(){return d}:d;if(g&&!_.data){var B=!0===g?U:g;return x.a.createElement(S.b,o()({FallbackComponent:N},v),x.a.createElement("div",{style:{width:e.width||"100%",height:e.height||400,textAlign:"center",position:"relative"}},B))}var V=Object(C.a)(a,!1),G=Object(C.a)(s,!1),W=o()(o()({},q),V.style),Y=o()(o()(o()({},X),G.style),{top:W.height}),K=void 0!==c?c:u;return Object(k.isNil)(c)||z()(!1,"\u8bf7\u4f7f\u7528autoFit\u66ff\u4ee3forceFit"),Object(b.useEffect)((function(){return K?O.current?(T(),I.current=new L.ResizeObserver(F),I.current.observe(O.current)):j(0):O.current&&(T(),I.current&&I.current.unobserve(O.current)),function(){I.current&&O.current&&I.current.unobserve(O.current)}}),[O.current,K]),x.a.createElement(S.b,o()({FallbackComponent:N},v),x.a.createElement("div",o()({ref:function(t){O.current=t,y&&(Object(k.isFunction)(r)?r(t):r&&(r.current=t))},className:"bizcharts-plot"},h,{style:{position:"relative",height:e.height||"100%",width:e.width||"100%"}}),V.visible&&x.a.createElement("div",o()({ref:P},Object(R.d)(_),{className:"bizcharts-plot-title",style:W}),V.text),G.visible&&x.a.createElement("div",o()({ref:w},Object(R.a)(_),{className:"bizcharts-plot-description",style:Y}),G.text),!!E&&x.a.createElement(Z,o()({appendPadding:[10,5,10,10],autoFit:K,ref:y?void 0:r},_,{PlotClass:t,containerStyle:o()(o()({},p),{height:E})}))))}));return r.displayName=e||t.name,r}},function(t,e,n){"use strict";var r=n(734);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(6).default,i=n(735);t.exports=function(t,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=e.BRUSH_FILTER_EVENTS=e.VIEW_LIFE_CIRCLE=void 0;var r=n(1),i=n(25),a=n(206),o=n(106);(0,i.registerTheme)("dark",(0,o.createThemeByStyleSheet)(a.antvDark));var s=(0,r.__importStar)(n(205)),l=(0,r.__importStar)(n(324)),u=n(25);(0,u.registerEngine)("canvas",s),(0,u.registerEngine)("svg",l);var c=n(25),f=(0,r.__importDefault)(n(325)),d=(0,r.__importDefault)(n(326)),p=(0,r.__importDefault)(n(327)),h=(0,r.__importDefault)(n(328)),g=(0,r.__importDefault)(n(329)),v=(0,r.__importDefault)(n(158)),y=(0,r.__importDefault)(n(330)),m=(0,r.__importDefault)(n(331)),b=(0,r.__importDefault)(n(332)),x=(0,r.__importDefault)(n(989));(0,c.registerGeometry)("Polygon",m.default),(0,c.registerGeometry)("Interval",h.default),(0,c.registerGeometry)("Schema",b.default),(0,c.registerGeometry)("Path",v.default),(0,c.registerGeometry)("Point",y.default),(0,c.registerGeometry)("Line",g.default),(0,c.registerGeometry)("Area",f.default),(0,c.registerGeometry)("Edge",d.default),(0,c.registerGeometry)("Heatmap",p.default),(0,c.registerGeometry)("Violin",x.default),n(991),n(992),n(993),n(994),n(995),n(996),n(465),n(466),n(467),n(468),n(469),n(281),n(470),n(471),n(472),n(473),n(474),n(475),n(997),n(998);var _=n(25),O=(0,r.__importDefault)(n(100)),P=(0,r.__importDefault)(n(163)),w=(0,r.__importDefault)(n(164)),M=(0,r.__importDefault)(n(214));(0,_.registerGeometryLabel)("base",O.default),(0,_.registerGeometryLabel)("interval",P.default),(0,_.registerGeometryLabel)("pie",w.default),(0,_.registerGeometryLabel)("polar",M.default);var S=n(25),A=n(333),E=n(999),C=n(1e3),j=n(334),I=n(335),T=n(225),F=n(1001),L=n(1003),k=n(1005),D=n(1006),R=n(1007),N=n(1008),B=n(1009);(0,S.registerGeometryLabelLayout)("overlap",T.overlap),(0,S.registerGeometryLabelLayout)("distribute",A.distribute),(0,S.registerGeometryLabelLayout)("fixed-overlap",T.fixedOverlap),(0,S.registerGeometryLabelLayout)("hide-overlap",F.hideOverlap),(0,S.registerGeometryLabelLayout)("limit-in-shape",I.limitInShape),(0,S.registerGeometryLabelLayout)("limit-in-canvas",j.limitInCanvas),(0,S.registerGeometryLabelLayout)("limit-in-plot",B.limitInPlot),(0,S.registerGeometryLabelLayout)("pie-outer",E.pieOuterLabelLayout),(0,S.registerGeometryLabelLayout)("adjust-color",L.adjustColor),(0,S.registerGeometryLabelLayout)("interval-adjust-position",k.intervalAdjustPosition),(0,S.registerGeometryLabelLayout)("interval-hide-overlap",D.intervalHideOverlap),(0,S.registerGeometryLabelLayout)("point-adjust-position",R.pointAdjustPosition),(0,S.registerGeometryLabelLayout)("pie-spider",C.pieSpiderLabelLayout),(0,S.registerGeometryLabelLayout)("path-adjust-position",N.pathAdjustPosition);var z=n(222),V=n(167),G=n(162),W=n(320),Y=n(223),H=n(321),U=n(322),X=n(224),q=n(25);(0,q.registerAnimation)("fade-in",z.fadeIn),(0,q.registerAnimation)("fade-out",z.fadeOut),(0,q.registerAnimation)("grow-in-x",V.growInX),(0,q.registerAnimation)("grow-in-xy",V.growInXY),(0,q.registerAnimation)("grow-in-y",V.growInY),(0,q.registerAnimation)("scale-in-x",Y.scaleInX),(0,q.registerAnimation)("scale-in-y",Y.scaleInY),(0,q.registerAnimation)("wave-in",U.waveIn),(0,q.registerAnimation)("zoom-in",X.zoomIn),(0,q.registerAnimation)("zoom-out",X.zoomOut),(0,q.registerAnimation)("position-update",W.positionUpdate),(0,q.registerAnimation)("sector-path-update",H.sectorPathUpdate),(0,q.registerAnimation)("path-in",G.pathIn);var K=n(25),Z=(0,r.__importDefault)(n(336)),$=(0,r.__importDefault)(n(337)),Q=(0,r.__importDefault)(n(338)),J=(0,r.__importDefault)(n(339)),tt=(0,r.__importDefault)(n(340)),et=(0,r.__importDefault)(n(341));(0,K.registerFacet)("rect",tt.default),(0,K.registerFacet)("mirror",J.default),(0,K.registerFacet)("list",$.default),(0,K.registerFacet)("matrix",Q.default),(0,K.registerFacet)("circle",Z.default),(0,K.registerFacet)("tree",et.default);var nt=n(25),rt=(0,r.__importDefault)(n(319)),it=(0,r.__importDefault)(n(342)),at=(0,r.__importDefault)(n(343)),ot=(0,r.__importDefault)(n(344)),st=(0,r.__importDefault)(n(204)),lt=(0,r.__importDefault)(n(1013));(0,nt.registerComponentController)("axis",it.default),(0,nt.registerComponentController)("legend",at.default),(0,nt.registerComponentController)("tooltip",st.default),(0,nt.registerComponentController)("annotation",rt.default),(0,nt.registerComponentController)("slider",ot.default),(0,nt.registerComponentController)("scrollbar",lt.default);var ut=n(25),ct=(0,r.__importDefault)(n(345)),ft=(0,r.__importDefault)(n(346)),dt=(0,r.__importDefault)(n(127)),pt=(0,r.__importDefault)(n(347)),ht=(0,r.__importDefault)(n(348)),gt=(0,r.__importDefault)(n(349)),vt=(0,r.__importDefault)(n(350)),yt=(0,r.__importDefault)(n(351)),mt=(0,r.__importDefault)(n(159)),bt=(0,r.__importDefault)(n(352)),xt=(0,r.__importDefault)(n(353)),_t=(0,r.__importStar)(n(226));Object.defineProperty(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",{enumerable:!0,get:function(){return _t.ELEMENT_RANGE_HIGHLIGHT_EVENTS}});var Ot=(0,r.__importDefault)(n(354)),Pt=(0,r.__importDefault)(n(355)),wt=(0,r.__importDefault)(n(356)),Mt=(0,r.__importDefault)(n(357)),St=(0,r.__importDefault)(n(358)),At=(0,r.__importDefault)(n(227)),Et=(0,r.__importDefault)(n(359)),Ct=(0,r.__importDefault)(n(360)),jt=(0,r.__importDefault)(n(1015)),It=(0,r.__importDefault)(n(1016)),Tt=(0,r.__importDefault)(n(1017)),Ft=(0,r.__importDefault)(n(478)),Lt=(0,r.__importDefault)(n(477)),kt=(0,r.__importDefault)(n(1018)),Dt=(0,r.__importDefault)(n(361)),Rt=(0,r.__importDefault)(n(362)),Nt=(0,r.__importStar)(n(479));Object.defineProperty(e,"BRUSH_FILTER_EVENTS",{enumerable:!0,get:function(){return Nt.BRUSH_FILTER_EVENTS}});var Bt=(0,r.__importDefault)(n(1019)),zt=(0,r.__importDefault)(n(1020)),Vt=(0,r.__importDefault)(n(1021)),Gt=(0,r.__importDefault)(n(1022)),Wt=(0,r.__importDefault)(n(1023)),Yt=(0,r.__importDefault)(n(1024)),Ht=(0,r.__importDefault)(n(1025)),Ut=(0,r.__importDefault)(n(1026)),Xt=(0,r.__importDefault)(n(1027));(0,ut.registerAction)("tooltip",dt.default),(0,ut.registerAction)("sibling-tooltip",ft.default),(0,ut.registerAction)("ellipsis-text",pt.default),(0,ut.registerAction)("element-active",ht.default),(0,ut.registerAction)("element-single-active",yt.default),(0,ut.registerAction)("element-range-active",vt.default),(0,ut.registerAction)("element-highlight",mt.default),(0,ut.registerAction)("element-highlight-by-x",xt.default),(0,ut.registerAction)("element-highlight-by-color",bt.default),(0,ut.registerAction)("element-single-highlight",Ot.default),(0,ut.registerAction)("element-range-highlight",_t.default),(0,ut.registerAction)("element-sibling-highlight",_t.default,{effectSiblings:!0,effectByRecord:!0}),(0,ut.registerAction)("element-selected",wt.default),(0,ut.registerAction)("element-single-selected",Mt.default),(0,ut.registerAction)("element-range-selected",Pt.default),(0,ut.registerAction)("element-link-by-color",gt.default),(0,ut.registerAction)("active-region",ct.default),(0,ut.registerAction)("list-active",St.default),(0,ut.registerAction)("list-selected",Et.default),(0,ut.registerAction)("list-highlight",At.default),(0,ut.registerAction)("list-unchecked",Ct.default),(0,ut.registerAction)("list-checked",jt.default),(0,ut.registerAction)("legend-item-highlight",At.default,{componentNames:["legend"]}),(0,ut.registerAction)("axis-label-highlight",At.default,{componentNames:["axis"]}),(0,ut.registerAction)("rect-mask",Lt.default),(0,ut.registerAction)("x-rect-mask",Tt.default,{dim:"x"}),(0,ut.registerAction)("y-rect-mask",Tt.default,{dim:"y"}),(0,ut.registerAction)("circle-mask",It.default),(0,ut.registerAction)("path-mask",Ft.default),(0,ut.registerAction)("smooth-path-mask",kt.default),(0,ut.registerAction)("cursor",Dt.default),(0,ut.registerAction)("data-filter",Rt.default),(0,ut.registerAction)("brush",Nt.default),(0,ut.registerAction)("brush-x",Nt.default,{dims:["x"]}),(0,ut.registerAction)("brush-y",Nt.default,{dims:["y"]}),(0,ut.registerAction)("sibling-filter",Bt.default),(0,ut.registerAction)("sibling-x-filter",Bt.default),(0,ut.registerAction)("sibling-y-filter",Bt.default),(0,ut.registerAction)("element-filter",zt.default),(0,ut.registerAction)("element-sibling-filter",Vt.default),(0,ut.registerAction)("element-sibling-filter-record",Vt.default,{byRecord:!0}),(0,ut.registerAction)("view-drag",Wt.default),(0,ut.registerAction)("view-move",Yt.default),(0,ut.registerAction)("scale-translate",Ht.default),(0,ut.registerAction)("scale-zoom",Ut.default),(0,ut.registerAction)("reset-button",Gt.default,{name:"reset-button",text:"reset"}),(0,ut.registerAction)("mousewheel-scroll",Xt.default);var qt=n(25);function Kt(t){return t.isInPlot()}function Zt(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}(0,qt.registerInteraction)("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"}]}),(0,qt.registerInteraction)("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"}]}),(0,qt.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,qt.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,qt.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,qt.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),(0,qt.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),(0,qt.registerInteraction)("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"]}]}),(0,qt.registerInteraction)("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"]}]}),(0,qt.registerInteraction)("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"]}]}),(0,qt.registerInteraction)("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"]}]}),(0,qt.registerInteraction)("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"]}]}),(0,qt.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Kt,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Kt,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Kt,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"]}]}),(0,qt.registerInteraction)("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"]}]}),(0,qt.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Kt,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Kt,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Kt,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),(0,qt.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Kt,action:"path-mask:start"},{trigger:"mousedown",isEnable:Kt,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"}]}),(0,qt.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),(0,qt.registerInteraction)("legend-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","data-filter:filter"]}]}),(0,qt.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),(0,qt.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),(0,qt.registerInteraction)("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"]}]}),(0,qt.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),(0,qt.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Zt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Zt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),(0,qt.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),(0,qt.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var $t=n(21);Object.defineProperty(e,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return $t.VIEW_LIFE_CIRCLE}}),(0,r.__exportStar)(n(25),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(1056);Object.defineProperty(e,"flow",{enumerable:!0,get:function(){return i.flow}});var a=n(499);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return a.pick}});var o=n(1057);Object.defineProperty(e,"template",{enumerable:!0,get:function(){return o.template}});var s=n(500);Object.defineProperty(e,"log",{enumerable:!0,get:function(){return s.log}}),Object.defineProperty(e,"invariant",{enumerable:!0,get:function(){return s.invariant}}),Object.defineProperty(e,"LEVEL",{enumerable:!0,get:function(){return s.LEVEL}});var l=n(1058);Object.defineProperty(e,"getContainerSize",{enumerable:!0,get:function(){return l.getContainerSize}}),r.__exportStar(n(1059),e);var u=n(501);Object.defineProperty(e,"findViewById",{enumerable:!0,get:function(){return u.findViewById}}),Object.defineProperty(e,"getViews",{enumerable:!0,get:function(){return u.getViews}}),Object.defineProperty(e,"getSiblingViews",{enumerable:!0,get:function(){return u.getSiblingViews}});var c=n(1060);Object.defineProperty(e,"transformLabel",{enumerable:!0,get:function(){return c.transformLabel}});var f=n(1061);Object.defineProperty(e,"getSplinePath",{enumerable:!0,get:function(){return f.getSplinePath}});var d=n(502);Object.defineProperty(e,"deepAssign",{enumerable:!0,get:function(){return d.deepAssign}});var p=n(1062);Object.defineProperty(e,"kebabCase",{enumerable:!0,get:function(){return p.kebabCase}});var h=n(503);Object.defineProperty(e,"renderStatistic",{enumerable:!0,get:function(){return h.renderStatistic}}),Object.defineProperty(e,"renderGaugeStatistic",{enumerable:!0,get:function(){return h.renderGaugeStatistic}});var g=n(1063);Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return g.measureTextWidth}});var v=n(291);Object.defineProperty(e,"isBetween",{enumerable:!0,get:function(){return v.isBetween}}),Object.defineProperty(e,"isRealNumber",{enumerable:!0,get:function(){return v.isRealNumber}}),r.__exportStar(n(292),e),r.__exportStar(n(293),e)},function(t,e,n){"use strict";n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"d",(function(){return g})),n.d(e,"a",(function(){return v}));var r=n(4),i=n.n(r),a=n(17),o=n.n(a),s=n(0),l=n(230),u=n(137),c=function(t,e){t.forEach((function(t){var n=t.sourceKey,r=t.targetKey,i=t.notice,a=Object(s.get)(e,n);a&&(o()(!1,i),Object(s.set)(e,r,a))}))},f=function(t,e){var n=Object(s.get)(t,e);if(!1!==n&&null!==n){if(void 0!==n)if(!0!==n)if(Object(s.isObject)(n)){d(n,"line",null),d(n,"grid",null),d(n,"label",null),d(n,"tickLine",null),d(n,"title",null);var r=Object(s.get)(n,"label");if(r&&Object(s.isObject)(r)){var a=r.suffix;a&&Object(s.set)(r,"formatter",(function(t){return"".concat(t).concat(a)}));var l=r.offsetX,u=r.offsetY,c=r.offset;!Object(s.isNil)(c)||Object(s.isNil)(l)&&Object(s.isNil)(u)||("xAxis"===e&&Object(s.set)(r,"offset",Object(s.isNil)(l)?u:l),"yAxis"===e&&Object(s.set)(r,"offset",Object(s.isNil)(u)?l:u))}t[e]=i()(i()({},n),{label:r})}else o()(!0,"".concat(e," \u914d\u7f6e\u53c2\u6570\u4e0d\u6b63\u786e"));else t[e]={}}else t[e]=null},d=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(s.get)(t,"".concat(e,".visible"));return!1!==r&&null!==r||Object(s.set)(t,e,n),r},p=function(t){var e=i()({},t);if(d(e,"tooltip"),d(e,"legend")){d(e,"legend.title");var n=Object(s.get)(e,"legend.position");n&&Object(s.set)(e,"legend.position",{"top-center":"top","right-center":"right","left-center":"left","bottom-center":"bottom"}[n]||n)}var r=Object(s.get)(e,"legend.formatter");if(r){var a=Object(s.get)(e,"legend.itemName",{});Object(s.set)(e,"legend.itemName",i()(i()({},a),{formatter:r}))}var o=Object(s.get)(e,"legend.text");o&&Object(s.set)(e,"legend.itemName",o),d(e,"label"),f(e,"xAxis"),f(e,"yAxis");var u=Object(s.get)(e,"guideLine",[]),c=Object(s.get)(e,"data",[]),p=Object(s.get)(e,"yField","y");u.forEach((function(t){if(c.length>0){var n="median";switch(t.type){case"max":n=Object(s.maxBy)(c,(function(t){return t[p]}))[p];break;case"mean":n=Object(l.a)(c.map((function(t){return t[p]})))/c.length;break;default:n=Object(s.minBy)(c,(function(t){return t[p]}))[p]}var r=i()(i()({start:["min",n],end:["max",n],style:t.lineStyle,text:{content:n}},t),{type:"line"});Object(s.get)(e,"annotations")||Object(s.set)(e,"annotations",[]),e.annotations.push(r),Object(s.set)(e,"point",!1)}}));var h=Object(s.get)(e,"interactions",[]).find((function(t){return"slider"===t.type}));return h&&Object(s.isNil)(e.slider)&&(e.slider=h.cfg),e},h=function(t,e,n){var r=Object(u.a)(Object(s.get)(e,"events",[])),i=Object(u.a)(Object(s.get)(n,"events",[]));r.forEach((function(n){t.off(n[1],e.events[n[0]])})),i.forEach((function(e){t.on(e[1],n.events[e[0]])}))},g=function(t){var e=Object(s.get)(t,"events",{}),n={};return["onTitleClick","onTitleDblClick","onTitleMouseleave","onTitleMousemove","onTitleMousedown","onTitleMouseup","onTitleMouseenter"].forEach((function(t){e[t]&&(n[t.replace("Title","")]=e[t])})),n},v=function(t){var e=Object(s.get)(t,"events",{}),n={};return["onDescriptionClick","onDescriptionDblClick","onDescriptionMouseleave","onDescriptionMousemove","onDescriptionMousedown","onDescriptionMouseup","onDescriptionMouseenter"].forEach((function(t){e[t]&&(n[t.replace("Description","")]=e[t])})),n}},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50);e.default=function(t,e,n){for(var i=0,a=r.default(e)?e.split("."):e;t&&i=e||n.height>=e?n:null}function l(t){var e=t.geometries,n=[];return(0,r.each)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&(0,r.each)(t.views,(function(t){n=n.concat(l(t))})),n}function u(t,e){var n=t.getModel().data;return(0,r.isArray)(n)?n[0][e]:n[e]}function c(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return p(t.view,n)}var r=s(t,e);return r?f(t.view,r):null},e.getSiblingMaskElements=function(t,e,n){var r=s(t,n);if(!r)return null;var i=t.view,a=h(i,e,{x:r.x,y:r.y}),o=h(i,e,{x:r.maxX,y:r.maxY});return f(e,{minX:a.x,minY:a.y,maxX:o.x,maxY:o.y})},e.getElements=l,e.getElementsByField=function(t,e,n){return l(t).filter((function(t){return u(t,e)===n}))},e.getElementsByState=function(t,e){var n=t.geometries,i=[];return(0,r.each)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i},e.getElementValue=u,e.intersectRect=c,e.getIntersectElements=f,e.getElementsByPath=p,e.getComponents=function(t){return t.getComponents().map((function(t){return t.component}))},e.distance=function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},e.getSpline=function(t,e){if(t.length<=2)return(0,i.getLinePath)(t,!1);var n=t[0],a=[];(0,r.each)(t,(function(t){a.push(t.x),a.push(t.y)}));var o=(0,i.catmullRom2bezier)(a,e,null);return o.unshift(["M",n.x,n.y]),o},e.isInBox=function(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y},e.getSilbings=function(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n},e.getSiblingPoint=h,e.isInRecords=function(t,e,n,i){var a=!1;return(0,r.each)(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return a=!0,!1})),a},e.getScaleByField=function t(e,n){var i=e.getScaleByField(n);return!i&&e.views&&(0,r.each)(e.views,(function(e){if(i=t(e,n))return!1})),i}},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.ext=void 0,Object.defineProperty(e,"mat3",{enumerable:!0,get:function(){return i.mat3}}),Object.defineProperty(e,"vec2",{enumerable:!0,get:function(){return i.vec2}}),Object.defineProperty(e,"vec3",{enumerable:!0,get:function(){return i.vec3}});var i=n(170),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=a?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(751));function o(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}e.ext=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBackgroundRectStyle=e.getStyle=void 0;var r=n(1),i=n(0);e.getStyle=function(t,e,n,a){void 0===a&&(a="");var o=t.style,s=void 0===o?{}:o,l=t.defaultStyle,u=t.color,c=t.size,f=(0,r.__assign)((0,r.__assign)({},l),s);return u&&(e&&(s.stroke||(f.stroke=u)),n&&(s.fill||(f.fill=u))),a&&(0,i.isNil)(s[a])&&!(0,i.isNil)(c)&&(f[a]=c),f},e.getBackgroundRectStyle=function(t){return(0,i.deepMix)({},{fill:"#CCD6EC",fillOpacity:.3},(0,i.get)(t,["background","style"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=e.annotation=e.scale=e.scrollbar=e.slider=e.state=e.theme=e.animation=e.interaction=e.tooltip=e.legend=void 0;var r=n(1),i=n(0),a=n(509),o=n(15);e.legend=function(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,a=n.seriesField;return!1===r?e.legend(!1):(i||a)&&e.legend(i||a,r),t},e.tooltip=function(t){var e=t.chart,n=t.options.tooltip;return void 0!==n&&e.tooltip(n),t},e.interaction=function(t){var e=t.chart,n=t.options.interactions;return i.each(n,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t},e.animation=function(t){var e=t.chart,n=t.options.animation;return"boolean"===typeof n?e.animate(n):e.animate(!0),i.each(e.geometries,(function(t){t.animate(n)})),t},e.theme=function(t){var e=t.chart,n=t.options.theme;return n&&e.theme(n),t},e.state=function(t){var e=t.chart,n=t.options.state;return n&&i.each(e.geometries,(function(t){t.state(n)})),t},e.slider=function(t){var e=t.chart,n=t.options.slider;return e.option("slider",n),t},e.scrollbar=function(t){var e=t.chart,n=t.options.scrollbar;return e.option("scrollbar",n),t},e.scale=function(t,e){return function(n){var r=n.chart,s=n.options,l={};return i.each(t,(function(t,e){l[e]=o.pick(t,a.AXIS_META_CONFIG_KEYS)})),l=o.deepAssign({},e,s.meta,l),r.scale(l),n}},e.annotation=function(t){return function(e){var n=e.chart,a=e.options,o=n.getController("annotation");return i.each(r.__spreadArrays(a.annotations||[],t||[]),(function(t){o.annotation(t)})),e}},e.limitInPlot=function(t){var e=t.chart,n=t.options,r=n.yAxis,a=n.limitInPlot,s=a;return i.isObject(r)&&i.isNil(a)&&(s=!!Object.values(o.pick(r,["min","max","minLimit","maxLimit"])).some((function(t){return!i.isNil(t)}))),e.limitInPlot=s,t};var s=n(153);Object.defineProperty(e,"pattern",{enumerable:!0,get:function(){return s.pattern}})},function(t,e,n){"use strict";var r=n(4),i=n.n(r),a=n(9),o=n.n(a),s=n(10),l=n.n(s),u=n(12),c=n.n(u),f=n(13),d=n.n(f),p=n(5),h=n.n(p),g=n(3),v=n.n(g),y=n(618),m=n.n(y),b=n(202),x=n(221),_=n.n(x),O=n(0),P=n(160);m.a.prototype.render=function(){if(this.get("isReactElement")){var t=this.getContainer(),e=this.get("content"),n=this.get("refreshDeps"),r=v.a.isValidElement(e)?e:e(t);void 0!==this.preRefreshDeps&&Object(O.isEqual)(this.preRefreshDeps,n)||(_.a.render(r,t),this.preRefreshDeps=n)}else{var i=this.getContainer(),a=this.get("html");Object(b.clearDom)(i);var o=Object(O.isFunction)(a)?a(i):a;Object(O.isElement)(o)?i.appendChild(o):Object(O.isString)(o)&&i.appendChild(Object(P.createDom)(o))}this.resetPosition()};var w=n(319),M=n.n(w),S=n(47),A=n(8);function E(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}Object(A.registerComponentController)("annotation",M.a);var C=function(t){c()(n,t);var e=E(n);function n(){var t;return o()(this,n),(t=e.apply(this,arguments)).annotationType="line",t}return l()(n,[{key:"componentDidMount",value:function(){var t=this.getChartIns();this.id=O.uniqueId("annotation"),this.annotation=t.annotation(),"ReactElement"===this.annotationType?this.annotation.annotation(i()({type:"html",isReactElement:!0},this.props)):this.annotation.annotation(i()({type:this.annotationType},this.props)),this.annotation.option[this.annotation.option.length-1].__id=this.id}},{key:"componentDidUpdate",value:function(){var t=this,e=null;this.annotation.option.forEach((function(n,r){n.__id===t.id&&(e=r)})),"ReactElement"===this.annotationType?this.annotation.option[e]=i()(i()({type:"html",isReactElement:!0},this.props),{__id:this.id}):this.annotation.option[e]=i()(i()({type:this.annotationType},this.props),{__id:this.id})}},{key:"componentWillUnmount",value:function(){var t=this,e=null;this.annotation&&(this.annotation.option.forEach((function(n,r){n.__id===t.id&&(e=r)})),null!==e&&this.annotation.option.splice(e,1),this.annotation=null)}},{key:"getChartIns",value:function(){return this.context}},{key:"render",value:function(){return v.a.createElement(v.a.Fragment,null)}}]),n}(v.a.Component);C.contextType=S.a,e.a=C},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(68));e.default=function(t){return Array.isArray?Array.isArray(t):(0,i.default)(t,"Array")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null===t||void 0===t}},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Arc",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Cubic",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Quad",{enumerable:!0,get:function(){return a.default}}),e.Util=void 0;var a=r(n(792)),o=r(n(793)),s=r(n(794)),l=r(n(174)),u=r(n(796)),c=r(n(411)),f=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=d(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(87));function d(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(d=function(t){return t?n:e})(t)}e.Util=f},function(t,e,n){"use strict";var r=n(12),i=n.n(r),a=n(13),o=n.n(a),s=n(5),l=n.n(s),u=n(45),c=n.n(u),f=n(9),d=n.n(f),p=n(10),h=n.n(p),g=n(3),v=n.n(g),y=n(50),m=n.n(y),b=n(28),x=n.n(b),_=n(100),O=n.n(_),P=(n(491),n(47)),w=n(8),M=n(55),S=n.n(M),A=n(23),E=n.n(A),C=n(82),j=function(t,e,n,r){var i,a;null!==t?S()(n,(function(n){i=t[n],a=e[n],Object(C.a)(a,i)||(E()(a)||(a=[a]),r(a,n))})):S()(n,(function(t){var n=e[t];void 0!==n&&(E()(n)||(n=[n]),r(n,t))}))},I=n(17),T=n.n(I),F=(n(290),n(348)),L=n.n(F),k=n(349),D=n.n(k),R=n(350),N=n.n(R),B=n(351),z=n.n(B),V=n(159),G=n.n(V),W=n(353),Y=n.n(W),H=n(352),U=n.n(H),X=n(354),q=n.n(X),K=n(226),Z=n.n(K),$=n(356),Q=n.n($),J=n(357),tt=n.n(J),et=n(355),nt=n.n(et),rt=n(361),it=n.n(rt);Object(w.registerAction)("cursor",it.a),Object(w.registerAction)("element-active",L.a),Object(w.registerAction)("element-single-active",z.a),Object(w.registerAction)("element-range-active",N.a),Object(w.registerAction)("element-highlight",G.a),Object(w.registerAction)("element-highlight-by-x",Y.a),Object(w.registerAction)("element-highlight-by-color",U.a),Object(w.registerAction)("element-single-highlight",q.a),Object(w.registerAction)("element-range-highlight",Z.a),Object(w.registerAction)("element-sibling-highlight",Z.a,{effectSiblings:!0,effectByRecord:!0}),Object(w.registerAction)("element-selected",Q.a),Object(w.registerAction)("element-single-selected",tt.a),Object(w.registerAction)("element-range-selected",nt.a),Object(w.registerAction)("element-link-by-color",D.a),Object(w.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Object(w.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Object(w.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Object(w.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Object(w.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]});var at=n(75);function ot(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l()(t);if(e){var i=l()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o()(this,n)}}Object(w.registerGeometryLabel)("base",O.a);var st=["line","area"],lt=function(){function t(){d()(this,t),this.config={}}return h()(t,[{key:"setView",value:function(t){this.view=t,this.rootChart=t.rootChart||t}},{key:"createGeomInstance",value:function(t,e){this.geom=this.view[t](e);var n=e.sortable;this.geom.__beforeMapping=this.geom.beforeMapping,this.geom.beforeMapping=function(e){var r=this.getXScale();return!1!==n&&e&&e[0]&&st.includes(t)&&["time","timeCat"].includes(r.type)&&this.sort(e),this.__beforeMapping(e)},this.GemoBaseClassName=t}},{key:"update",value:function(t,e){var n=this;this.geom||(this.setView(e.context),this.createGeomInstance(e.GemoBaseClassName,t),this.interactionTypes=e.interactionTypes),j(this.config,t,["position","shape","color","label","style","tooltip","size","animate","state","customInfo"],(function(t,e){var r;T()(!("label"===e&&!0===t[0]),"label \u503c\u7c7b\u578b\u9519\u8bef\uff0c\u5e94\u4e3afalse | LabelOption | FieldString"),(r=n.geom)[e].apply(r,c()(t))})),j(this.config,t,["adjust"],(function(t,e){m()(t[0])?n.geom[e](t[0]):n.geom[e](t)})),this.geom.state(t.state||{}),this.rootChart.on("processElemens",(function(){x()(t.setElements)&&t.setElements(n.geom.elements)})),j(this.config,t,this.interactionTypes,(function(t,e){t[0]?n.rootChart.interaction(e):n.rootChart.removeInteraction(e)})),this.config=Object(at.a)(t)}},{key:"destroy",value:function(){this.geom&&(this.geom.destroy(),this.geom=null),this.config={}}}]),t}(),ut=function(t){i()(n,t);var e=ot(n);function n(t){var r;return d()(this,n),(r=e.call(this,t)).interactionTypes=[],r.geomHelper=new lt,r}return h()(n,[{key:"componentWillUnmount",value:function(){this.geomHelper.destroy()}},{key:"render",value:function(){var t=this;return this.geomHelper.update(this.props,this),v.a.createElement(v.a.Fragment,null,v.a.Children.map(this.props.children,(function(e){return v.a.isValidElement(e)?v.a.cloneElement(e,{parentInstance:t.geomHelper.geom}):v.a.createElement(v.a.Fragment,null)})))}}]),n}(v.a.Component);ut.contextType=P.a,e.a=ut},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n.n(r),a=n(47);function o(){return i.a.useContext(a.a)}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(432),s=n(90),l=n(42),u=r(n(254)),c="update_status",f=["visible","tip","delegateObject"],d=["container","group","shapesMap","isRegister","isUpdating","destroyed"],p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},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,a.each)(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(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").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=(0,s.applyMatrix2BBox)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").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){this.get("group").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),(0,o.propagationDelegate)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},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",(0,l.getBBoxWithClip)(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,r=e.component,a=(0,i.__rest)(e,["id","component"]),o=new r((0,i.__assign)((0,i.__assign)({},a),{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(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+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=(0,s.getMatrixByTranslate)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");(0,a.isNil)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,i=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0);(0,a.each)(s,(function(t){var s=t.get("id"),u=r.getElementById(s),p=t.get("name");if(u)if(t.get("isComponent")){var h=t.get("component"),g=u.get("component"),v=(0,a.pick)(h.cfg,(0,a.difference)((0,a.keys)(h.cfg),d));g.update(v),u.set(c,"update")}else{var y=r.getReplaceAttrs(u,t);i&&o.update?r.updateAnimation(p,u,y,o.update):u.attr(y),t.isGroup()&&r.updateElements(t,u),(0,a.each)(f,(function(e){u.set(e,t.get(e))})),(0,l.updateClip)(u,t),n=u,u.set(c,"update")}else{e.add(t);var m=e.getChildren();if(m.splice(m.length-1,1),n){var b=m.indexOf(n);m.splice(b+1,0,t)}else m.unshift(t);if(r.registerElement(t),t.set(c,"add"),t.get("isComponent")?(h=t.get("component")).set("container",e):t.isGroup()&&r.registerNewGroup(t),n=t,i){var x=r.get("isInit")?o.appear:o.enter;x&&r.addAnimation(p,t,x)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();(0,a.each)(e,(function(t){t.set(c,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;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),(0,a.mix)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return(0,a.each)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();(0,a.each)(n,(function(t){e.registerElement(t),t.set(c,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];(0,a.each)(e,(function(t,e){!t.get(c)||t.destroyed?n.push([e,t]):t.set(c,null)}));var r=this.get("animate"),i=this.get("animateOption");(0,a.each)(n,(function(n){var o=n[0],s=n[1];if(!s.destroyed){var l=s.get("name");if(r&&i.leave){var u=(0,a.mix)({callback:function(){t.removeElement(s)}},i.leave);t.removeAnimation(l,s,u)}else t.removeElement(s)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(u.default),h=p;e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearDom=function(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])},e.createBBox=i,e.distance=o,e.formatPadding=function(t){var e=0,n=0,i=0,a=0;return(0,r.isNumber)(t)?e=n=i=a=t:(0,r.isArray)(t)&&(e=t[0],i=(0,r.isNil)(t[1])?t[0]:t[1],a=(0,r.isNil)(t[2])?t[0]:t[2],n=(0,r.isNil)(t[3])?i:t[3]),[e,i,a,n]},e.getBBoxWithClip=function t(e){var n,a=e.getClip(),o=a&&a.getBBox();if(e.isGroup()){var l=1/0,u=-1/0,c=1/0,f=-1/0,d=e.getChildren();d.length>0?(0,r.each)(d,(function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var n=t(e),r=e.applyToMatrix([n.minX,n.minY,1]),i=e.applyToMatrix([n.minX,n.maxY,1]),a=e.applyToMatrix([n.maxX,n.minY,1]),o=e.applyToMatrix([n.maxX,n.maxY,1]),s=Math.min(r[0],i[0],a[0],o[0]),d=Math.max(r[0],i[0],a[0],o[0]),p=Math.min(r[1],i[1],a[1],o[1]),h=Math.max(r[1],i[1],a[1],o[1]);su&&(u=d),pf&&(f=h)}})):(l=0,u=0,c=0,f=0),n=i(l,c,u-l,f-c)}else n=e.getBBox();return o?s(n,o):n},e.getCirclePoint=function(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}},e.getTextPoint=function(t,e,n,r){var i=o(t,e),s=r/i,l=0;return"start"===n?l=0-s:"end"===n&&(l=1+s),{x:a(t.x,e.x,l),y:a(t.y,e.y,l)}},e.getValueByPercent=a,e.hasClass=function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},e.intersectBBox=s,e.mergeBBox=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),a=Math.max(t.maxX,e.maxX),o=Math.max(t.maxY,e.maxY);return i(n,r,a-n,o-r)},e.near=void 0,e.pointsToBBox=function(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.regionToBBox=function(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.toPx=function(t){return t+"px"},e.updateClip=function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}},e.wait=void 0;var r=n(0);function i(t,e,n,r){var i=t+n,a=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function a(t,e,n){return(1-n)*t+e*n}function o(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function s(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return i(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}e.wait=function(t){return new Promise((function(e){setTimeout(e,t)}))},e.near=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)t.x?t.x:e,n=nt.y?t.y:i,a=a=t&&i<=t+n&&a>=e&&a<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=t&&i<=t+n&&a>=e&&a<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),u&&f.setAttribute(l.SVG_ATTR_MAP.strokeOpacity,u),c&&f.setAttribute(l.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(l.SVG_ATTR_MAP[e],n);else r.setAttribute(l.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,s=r.shadowBlur,l=r.shadowColor;(i||o||s||l)&&a.setShadow(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&a.setTransform(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,a=e+r.top,o=document.elementFromPoint(i,a);return!(!o||!o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(i.AbstractShape);e.default=d},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(26),s=n(149),l=n(74),u=n(274),c=n(54),f=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(190)),d=r(n(275));function p(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}var h=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,a.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,a.__assign)((0,a.__assign)({},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 r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return f},e.prototype.getGroupBase=function(){return d.default},e.prototype.onCanvasChange=function(t){(0,u.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=(0,o.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,s=e.height,l=this.getHitLineWidth(),u=l/2,c=r-u,f=i-u;return{x:c,y:f,minX:c,minY:f,maxX:r+a+u,maxY:i+s+u,width:a+l,height:s+l}}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||(0,l.createDom)(this),(0,s.setClip)(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(),r=n.fill,i=n.fillStyle,a=n.stroke,o=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,u=n.lineWidth,f=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&f.setAttribute(c.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),l&&f.setAttribute(c.SVG_ATTR_MAP.strokeOpacity,l),u&&f.setAttribute(c.SVG_ATTR_MAP.lineWidth,u))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(c.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(c.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(c.SVG_ATTR_MAP[e],n);else r.setAttribute(c.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,o=r.shadowBlur,l=r.shadowColor;(i||a||o||l)&&(0,s.setShadow)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&(0,s.setTransform)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,a=e+r.top,o=document.elementFromPoint(i,a);return!(!o||!o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(o.AbstractShape),g=h;e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTooltipMapping=void 0;var r=n(0);e.getTooltipMapping=function(t,e){if(!1===t)return{fields:!1};var n=r.get(t,"fields"),i=r.get(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTooltipMapping=function(t,e){if(!1===t)return{fields:!1};var n=(0,r.get)(t,"fields"),i=(0,r.get)(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}};var r=n(0)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Identity",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"Linear",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Pow",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Quantile",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"Quantize",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Time",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"TimeCat",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return p.getScale}}),Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return g.getTickMethod}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return p.registerScale}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return g.registerTickMethod}});var i=r(n(141)),a=r(n(426)),o=r(n(827)),s=r(n(427)),l=r(n(830)),u=r(n(831)),c=r(n(832)),f=r(n(428)),d=r(n(833)),p=n(834),h=r(n(835)),g=n(836);(0,p.registerScale)("cat",a.default),(0,p.registerScale)("category",a.default),(0,p.registerScale)("identity",h.default),(0,p.registerScale)("linear",s.default),(0,p.registerScale)("log",l.default),(0,p.registerScale)("pow",u.default),(0,p.registerScale)("time",c.default),(0,p.registerScale)("timeCat",o.default),(0,p.registerScale)("quantize",f.default),(0,p.registerScale)("quantile",d.default)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return l}));var r=n(3),i=n.n(r),a=n(620),o=function(t){var e=t.error;return i.a.createElement("div",{className:"bizcharts-error",role:"alert"},i.a.createElement("p",null,"BizCharts something went wrong:"),i.a.createElement("pre",null,e.message))};function s(t){return o(t)}var l=function(t){o=t};e.b=a.ErrorBoundary},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.Slider=e.HtmlTooltip=e.ContinuousLegend=e.CategoryLegend=e.CircleGrid=e.LineGrid=e.CircleAxis=e.LineAxis=e.Annotation=e.Crosshair=e.Component=e.GroupComponent=e.HtmlComponent=e.Scale=e.registerScale=e.getScale=e.Coordinate=e.registerCoordinate=e.getCoordinate=e.Color=e.Attribute=e.getAttribute=e.Adjust=e.getAdjust=e.registerAdjust=e.AbstractShape=e.AbstractGroup=e.Event=void 0;var r=n(26);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.AbstractGroup}}),Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.AbstractShape}});var i=n(422);Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}}),Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return i.Adjust}});var a=n(251);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return a.getAttribute}}),Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return a.Attribute}});var o=n(251);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return o.Color}});var s=n(848);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return s.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return s.registerCoordinate}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return s.Coordinate}});var l=n(66);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return l.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return l.registerScale}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return l.Scale}});var u=n(179);Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return u.Annotation}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return u.Component}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return u.Crosshair}}),Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return u.GroupComponent}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return u.HtmlComponent}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return u.Slider}}),Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return u.Scrollbar}});var c=u.Axis.Line,f=u.Axis.Circle;e.LineAxis=c,e.CircleAxis=f;var d=u.Grid.Line,p=u.Grid.Circle;e.LineGrid=d,e.CircleGrid=p;var h=u.Legend.Category,g=u.Legend.Continuous;e.CategoryLegend=h,e.ContinuousLegend=g;var v=u.Tooltip.Html;e.HtmlTooltip=v},function(t,e,n){"use strict";var r=n(2)(n(6));Object.defineProperty(e,"__esModule",{value:!0}),e.uniq=e.omit=e.padEnd=e.isBetween=void 0;var i=n(0);e.isBetween=function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i},e.padEnd=function(t,e,n){if((0,i.isString)(t))return t.padEnd(e,n);if((0,i.isArray)(t)){var r=t.length;if(r0&&(a.isNil(i)||1===i||(t.globalAlpha=i),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(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(i.AbstractShape);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moveTo=e.sortDom=e.createDom=e.createSVGElement=void 0;var r=n(0),i=n(52);function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e.createSVGElement=a,e.createDom=function(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=a(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(r)}return r},e.sortDom=function(t,e){var n=t.get("el"),i=r.toArray(n.children).sort(e),a=document.createDocumentFragment();i.forEach((function(t){a.appendChild(t)})),n.appendChild(a)},e.moveTo=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],a=r.indexOf(t);if(i){if(a>e)n.insertBefore(t,i);else if(a0&&((0,s.isNil)(i)||1===i||(t.globalAlpha=i),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(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(o.AbstractShape),p=d;e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDom=function(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=a(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(r)}return r},e.createSVGElement=a,e.moveTo=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],a=r.indexOf(t);if(i){if(a>e)n.insertBefore(t,i);else if(a=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;et.minX&&this.minYt.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}();e.BBox=a,e.getRegionBBox=function(t,e){var n=e.start,r=e.end;return new a(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))},e.toPoints=function(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n.n(r),a=n(76);function o(){return i.a.useContext(a.a).chart}},function(t,e,n){"use strict";var r=n(6),i=n.n(r),a=n(55),o=n.n(a),s=n(23),l=n.n(s),u=n(61),c=n.n(u);function f(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function d(t){return l()(t)?t.length:c()(t)?Object.keys(t).length:0}e.a=function(t,e){if(f(t,e))return!0;if("object"!==i()(t)||null===t||"object"!==i()(e)||null===e)return!1;if(l()(t)!==l()(e))return!1;if(d(t)!==d(e))return!1;var n=!0;return o()(t,(function(t,r){return!!f(t,e[r])||(n=!1)})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Bar=void 0;var r=n(1),i=n(24),a=n(119),o=n(1120),s=n(1124),l=n(524),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return r.__extends(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options,i=n.xField,s=n.yField,u=n.isPercent,c=r.__assign(r.__assign({},n),{xField:s,yField:i});o.meta({chart:e,options:c}),e.changeData(a.getDataWhetherPecentage(l.transformBarData(t),i,s,i,u))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Bar=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Column=void 0;var r=n(1),i=n(24),a=n(119),o=n(195),s=n(1127),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return r.__extends(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent,s=this.chart,l=this.options;o.meta({chart:s,options:l}),this.chart.changeData(a.getDataWhetherPecentage(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Column=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(68));e.default=function(t){return(0,i.default)(t,"String")}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(68)),a=function(t){return(0,i.default)(t,"Number")};e.default=a},function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function i(t){return Math.max.apply(null,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.getBBoxByArray=function(t,e){var n=r(t),a=r(e),o=i(t),s=i(e);return{x:n,y:a,width:o-n,height:s-a}},e.getBBoxRange=function(t,e,n,a){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,a]),maxY:i([e,a])}},e.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"catmullRom2Bezier",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"fillPath",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"fillPathByDiff",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"formatPath",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"getLineIntersect",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parsePathArray",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"parsePathString",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"path2Absolute",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"path2Curve",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"path2Segments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"pathIntersection",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"reactPath",{enumerable:!0,get:function(){return h.default}});var i=r(n(414)),a=r(n(800)),o=r(n(803)),s=r(n(804)),l=r(n(805)),u=r(n(806)),c=r(n(811)),f=r(n(418)),d=r(n(416)),p=r(n(417)),h=r(n(415)),g=r(n(419)),v=r(n(812)),y=r(n(420)),m=r(n(813)),b=r(n(421))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.__assign=void 0,e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:u(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof u?Promise.resolve(n.value.v).then(l,c):f(a[0][2],n)}catch(r){f(a[0][3],r)}var n}function l(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=s(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}},e.__await=u,e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(e){a(e)}}function s(t){try{l(r.throw(t))}catch(e){a(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))},e.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},e.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},e.__createBinding=function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__decorate=function(t,e,n,r){var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"===typeof Reflect?"undefined":(0,i.default)(Reflect))&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__exportStar=function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])},e.__extends=function(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function u(t){return this instanceof u?(this.v=t,this):new u(t)}e.__assign=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyMatrix2BBox=function(t,e){var n=s(t,[e.minX,e.minY]),r=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),a=s(t,[e.maxX,e.maxY]),o=Math.min(n[0],r[0],i[0],a[0]),l=Math.max(n[0],r[0],i[0],a[0]),u=Math.min(n[1],r[1],i[1],a[1]),c=Math.max(n[1],r[1],i[1],a[1]);return{x:o,y:u,minX:o,minY:u,maxX:l,maxY:c,width:l-o,height:c-u}},e.applyRotate=function(t,e,n,r){if(e){var i=a({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}},e.applyTranslate=function(t,e,n){var r=o({x:e,y:n});t.attr("matrix",r)},e.getAngleByMatrix=function(t){var e=[0,0,0];return r.vec3.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])},e.getMatrixByAngle=a,e.getMatrixByTranslate=o;var r=n(32),i=[1,0,0,0,1,0,0,0,1];function a(t,e,n){return void 0===n&&(n=i),e?r.ext.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function o(t,e){return t.x||t.y?r.ext.transform(e||i,[["t",t.x,t.y]]):null}function s(t,e){var n=[0,0];return r.vec2.transformMat3(n,e,t),n}},function(t,e,n){"use strict";var r=n(2)(n(6));Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=n(422),o=n(251),s=n(0),l=n(97),u=(0,i.__importDefault)(n(263)),c=n(21),f=n(70),d=(0,i.__importDefault)(n(269)),p=n(271),h=n(27),g=n(945),v=n(449),y=n(946),m=n(450),b=n(48),x=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 r=e.container,i=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,l=void 0!==s&&s,u=e.visible,c=void 0===u||u,f=e.theme,d=e.scales,p=void 0===d?{}:d,h=e.scaleDefs,g=void 0===h?{}:h,v=e.intervalPadding,y=e.dodgePadding,m=e.maxColumnWidth,b=e.minColumnWidth,x=e.columnWidthRatio,_=e.roseWidthRatio,O=e.multiplePieWidthRatio,P=e.zIndexReversed;return n.container=r,n.labelsContainer=i,n.coordinate=a,n.data=o,n.sortable=l,n.visible=c,n.userTheme=f,n.scales=p,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=y,n.maxColumnWidth=m,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=_,n.multiplePieWidthRatio=O,n.zIndexReversed=P,n}return(0,i.__extends)(e,t),e.prototype.position=function(t){var e=t;(0,s.isPlainObject)(t)||(e={fields:(0,y.parseFields)(t)});var n=(0,s.get)(e,"fields");return 1===n.length&&(n.unshift("1"),(0,s.set)(e,"fields",n)),(0,s.set)(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.isString)(t)||(0,s.isPlainObject)(t))&&(e=[t]),(0,s.each)(e,(function(t,n){(0,s.isObject)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if((0,s.isString)(t)){var n=(0,y.parseFields)(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),a=r.cfg;this.styleOption=n||i||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if((0,s.isString)(t)){var n=(0,y.parseFields)(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.isString)(t)){var r={},i=(0,y.parseFields)(t);r.fields=i,(0,s.isFunction)(e)?r.callback=e:(0,s.isPlainObject)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}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,r=t.isCoordinateChanged,i=this.attributeOption,a=this.lastAttributeOption;(0,s.isEqual)(i,a)?!e||!n&&(0,s.isEqual)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){void 0===t&&(t=!1),this.animateOption&&(this.animateOption=(0,s.deepMix)({},(0,l.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var e=this.beforeMappingData,n=this.beforeMapping(e);this.dataArray=new Array(n.length);for(var r=0;r=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if((0,s.isNil)(e)||(0,s.isObject)(e))(0,s.isObject)(e)&&(0,s.isEqual)(Object.keys(e),["values"])?(0,s.set)(this.attributeOption,t,{fields:e.values}):(0,s.set)(this.attributeOption,t,e);else{var r={};(0,s.isNumber)(e)?r.values=[e]:r.fields=(0,y.parseFields)(e),n&&((0,s.isFunction)(n)?r.callback=n:r.values=n),(0,s.set)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,a=e.attributeOption,s=e.theme,l=e.shapeType;this.groupScales=[];var u={},f=function(e){if(a.hasOwnProperty(e)){var r=a[e];if(!r)return{value:void 0};var f=(0,i.__assign)({},r),d=f.callback,p=f.values,h=f.fields,g=(void 0===h?[]:h).map((function(n){var r=t.scales[n];return r.isCategory&&!u[n]&&c.GROUP_ATTRS.includes(e)&&(t.groupScales.push(r),u[n]=!0),r}));f.scales=g,"position"!==e&&1===g.length&&"identity"===g[0].type?f.values=g[0].values:d||p||("size"===e?f.values=s.sizes:"shape"===e?f.values=s.shapes[l]||[]:"color"===e&&(g.length?f.values=g[0].values.length<=10?s.colors10:s.colors20:f.values=s.colors10));var v=(0,o.getAttribute)(e);n[e]=new v(f)}};for(var d in a){var p=f(d);if("object"===(0,r.default)(p))return p.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),n=this.groupData(t),r=[],i=0,a=n.length;ia&&(a=c)}var f=this.scaleDefs,d={};it.max&&!(0,s.get)(f,[r,"max"])&&(d.max=a),t.change(d)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n1)for(var d=0;d0||1===n?r*o:r*o*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),a=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var a=e;return(0,i.isArray)(a)&&(a=1===t.content.length?r?u(a):a.length<=2?a[e.length-1]:u(a):a[n]),a}var l={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=(0,i.isArray)(e.shape)?e.shape[0]:e.shape,f="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var d=(0,s.getPolygonCentroid)(e.x,e.y);l.x=d[0],l.y=d[1]}else"interval"!==this.geometry.type||f?(l.x=o(e.x,n),l.y=o(e.y,n)):(l.x=o(e.x,n,!0),l.y=o(e.y,n));if(f){var p=(0,i.get)(e,"nextPoints"),h=(0,i.get)(e,"points");if(p){var g=r.convert(h[1]),v=r.convert(p[1]);l.x=(g.x+v.x)/2,l.y=(g.y+v.y)/2}else"pyramid"===c&&(g=r.convert(h[1]),v=r.convert(h[2]),l.x=(g.x+v.x)/2,l.y=(g.y+v.y)/2)}t.position&&this.setLabelPosition(l,e,n,t.position);var y=this.getLabelOffsetPoint(t,n,a);return l.start={x:l.x,y:l.y},l.x+=y.x,l.y+=y.y,l.color=e.color,l},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t[a.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" "+o[r.field]:"path"===n&&(s+=" "+o[r.field]+"-"+o[i.field]),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,a=t.animateOption,s=this.geometry.coordinate,u=this.labelsRenderer;return u||(u=new l.default({container:e,layout:(0,i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=u),u.region=r,u.animate=!!a&&(0,o.getDefaultAnimateCfg)("label",s),u},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,o=n.labelOption,s=n.scales,l=n.coordinate,u=o,c=u.fields,f=u.callback,d=u.cfg,p=c.map((function(t){return s[t]})),h=[];return(0,i.each)(t,(function(t,n){var o,s=t[a.FIELD_ORIGIN],u=e.getLabelText(s,p);if(f){var g=c.map((function(t){return s[t]}));if(o=f.apply(void 0,g),(0,i.isNil)(o))return void h.push(null)}var v=(0,r.__assign)((0,r.__assign)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:l},d),o);(0,i.isFunction)(v.position)&&(v.position=v.position(s,t,n));var y=e.getLabelOffset(v.offset||0),m=e.getDefaultLabelCfg(y,v.position);(v=(0,i.deepMix)({},m,v)).offset=e.getLabelOffset(v.offset||0);var b=v.content;(0,i.isFunction)(b)?v.content=b(s,t,n):(0,i.isUndefined)(b)&&(v.content=u[0]),h.push(v)})),h},t.prototype.getLabelText=function(t,e){var n=[];return(0,i.each)(e,(function(e){var r=t[e.field];r=(0,i.isArray)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),(0,i.isNil)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return(0,i.isNumber)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return(0,i.each)(t.elementsMap,(function(t,n){e[n]=t.shape})),(0,i.each)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConstraint=e.getShapeAttrs=void 0;var r=n(0),i=n(115),a=n(33),o=n(112);function s(t,e,n,i,a){var s=[];if(t.length){for(var l=[],u=[],c=0,f=t.length;c0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}e.getShapeAttrs=function(t,e,n,r,o){for(var l=(0,a.getStyle)(t,e,!e,"lineWidth"),u=t.connectNulls,c=t.isInCircle,f=t.points,d=t.showSinglePoint,p=(0,i.getPathPoints)(f,u,d),h=[],g=0,v=p.length;g180||n<-180?n-360*Math.round(n/360):n):(0,i.default)(isNaN(t)?e:t)};var i=r(n(402));function a(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?a(t,n):(0,i.default)(isNaN(t)?e:t)}},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=a?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(0)),a=n(250);function o(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}var s=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,a=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=a}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===o?0:o-1],i=n[o===s-1?s-1:o+1],0!==o?r+=(e-r)/2:r-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,r=this.getDimValues(e);i.each(t,(function(t,e){i.each(r,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return i.each(t,(function(t){void 0===t[e]&&(t[e]=a.DEFAULT_Y)})),i.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,r=i.assign({},this.dimValuesMap),o=[];return e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach((function(e){r&&r[e]||(r[e]=i.valuesOfKey(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")&&(r.y=[a.DEFAULT_Y,1]),r},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaxScale=e.getDefaultCategoryScaleRange=e.getName=e.syncScale=e.createScaleByField=void 0;var r=n(1),i=n(0),a=n(69),o=n(48),s=/^(?:(?!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]))?$/;e.createScaleByField=function(t,e,n){var o=e||[];if((0,i.isNumber)(t)||(0,i.isNil)((0,i.firstValue)(o,t))&&(0,i.isEmpty)(n))return new((0,a.getScale)("identity"))({field:t.toString(),values:[t]});var l=(0,i.valuesOfKey)(o,t),u=(0,i.get)(n,"type",function(t){var e="linear";return s.test(t)?e="timeCat":(0,i.isString)(t)&&(e="cat"),e}(l[0]));return new((0,a.getScale)(u))((0,r.__assign)({field:t,values:l},n))},e.syncScale=function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}},e.getName=function(t){return t.alias||t.field},e.getDefaultCategoryScaleRange=function(t,e,n){var r,a=t.values.length;if(1===a)r=[.5,1];else{var s=0;r=(0,o.isFullCircle)(e)?e.isTransposed?[(s=1/a*(0,i.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-s/2]:[0,1-1/a]:[s=1/a/2,1-s]}return r},e.getMaxScale=function(t){var e=t.values.filter((function(t){return!(0,i.isNil)(t)&&!isNaN(t)}));return Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],e,!1),[(0,i.isNil)(t.max)?-1/0:t.max],!1))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var r=n(32),i=n(0),a=n(48);function o(t,e){for(var n=[t[0]],r=1,i=t.length;r=s[c]?1:0,p=f>Math.PI?1:0,h=n.convert(l),g=(0,a.getDistanceToCenter)(n,h);if(g>=.5)if(f===2*Math.PI){var v={x:(l.x+s.x)/2,y:(l.y+s.y)/2},y=n.convert(v);u.push(["A",g,g,0,p,d,y.x,y.y]),u.push(["A",g,g,0,p,d,h.x,h.y])}else u.push(["A",g,g,0,p,d,h.x,h.y]);return u}(n,r,t)):l.push(o(i,t));break;case"a":l.push(s(i,t));break;default:l.push(i)}})),function(t){(0,i.each)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(l),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkShapeOverlap=e.getOverlapArea=e.getlLabelBackgroundInfo=e.findLabelTextShape=void 0;var r=n(0),i=n(114);function a(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}e.findLabelTextShape=function(t){return t.find((function(t){return"text"===t.get("type")}))},e.getlLabelBackgroundInfo=function(t,e,n){void 0===n&&(n=[0,0,0,0]);var a=t.getChildren()[0];if(a){var o=a.clone();(null===e||void 0===e?void 0:e.rotate)&&(0,i.rotate)(o,-e.rotate);var s=o.getCanvasBBox(),l=s.x,u=s.y,c=s.width,f=s.height;o.destroy();var d=n;return(0,r.isNil)(d)?d=[2,2,2,2]:(0,r.isNumber)(d)&&(d=new Array(4).fill(d)),{x:l-d[3],y:u-d[0],width:c+d[1]+d[3],height:f+d[0]+d[2],rotation:(null===e||void 0===e?void 0:e.rotate)||0}}},e.getOverlapArea=a,e.checkShapeOverlap=function(t,e){var n=t.getBBox();return(0,r.some)(e,(function(t){var e=t.getBBox();return a(n,e,2)>0}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoom=e.getIdentityMatrix=e.rotate=e.getRotateMatrix=e.translate=e.transform=void 0;var r=n(32).ext.transform;function i(t,e){var n=t.attr(),i=n.x,a=n.y;return r(t.getMatrix(),[["t",-i,-a],["r",e],["t",i,a]])}e.transform=r,e.translate=function(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)},e.getRotateMatrix=i,e.rotate=function(t,e){var n=i(t,e);t.setMatrix(n)},e.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},e.zoom=function(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2;t.applyToMatrix([i,a,1]);var o=r(t.getMatrix(),[["t",-i,-a],["s",e,e],["t",i,a]]);t.setMatrix(o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSmoothViolinPath=e.getViolinPath=e.getPathPoints=void 0;var r=n(0),i=n(112);function a(t){return!t&&(null===t||void 0===t||isNaN(t))}function o(t){if((0,r.isArray)(t))return a(t[1].y);var e=t.y;return(0,r.isArray)(e)?a(e[0]):a(e)}e.getPathPoints=function(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 r=[],i=0,a=t.length;i0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n};var r=n(0);function i(t){if((0,r.isNumber)(t))return[t,t,t,t];if((0,r.isArray)(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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pattern=function(t){var e=this;return function(n){var l,u=n.options,c=n.chart,f=u.pattern;return f?(0,s.deepAssign)({},n,{options:(l={},l[t]=function(n){for(var l,d,p,h=[],g=1;g(0,i.get)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,s={x:e.x,y:e.y};o&&(0,i.isEqual)(o,s)||this.showTooltip(n,s),this.timeStamp=a,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||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}((0,r.__importDefault)(n(44)).default);e.default=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(325),h=n.n(p),g=n(39),v=n(8);function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}n(278),Object(v.registerGeometry)("Area",h.a);var m=function(t){l()(n,t);var e=y(n);function n(){var t;return o()(this,n),(t=e.apply(this,arguments)).GemoBaseClassName="area",t}return i()(n)}(g.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(329),h=n.n(p),g=(n(281),n(39)),v=n(8);function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}Object(v.registerGeometry)("Line",h.a);var m=function(t){l()(n,t);var e=y(n);function n(){var t;return o()(this,n),(t=e.apply(this,arguments)).GemoBaseClassName="line",t}return i()(n)}(g.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(330),h=n.n(p),g=n(39),v=n(8);function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}n(470),n(471),n(472),Object(v.registerGeometry)("Point",h.a);var m=function(t){l()(n,t);var e=y(n);function n(){var t;return o()(this,n),(t=e.apply(this,arguments)).GemoBaseClassName="point",t}return i()(n)}(g.a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLocale=e.registerLocale=void 0;var r=n(0),i=n(15),a=n(187),o={};e.registerLocale=function(t,e){o[t]=e},e.getLocale=function(t){return{get:function(e,n){return i.template(r.get(o[t],e)||r.get(o[a.GLOBAL.locale],e)||r.get(o["en-US"],e)||e,n)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(4),i=n.n(r),a=n(133),o=n.n(a),s=n(3),l=n.n(s),u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i1&&void 0!==arguments[1]?arguments[1]:"ChartContainer",n=l.a.forwardRef((function(e,n){var r=Object(s.useRef)(),a=Object(s.useState)(!1),c=o()(a,2),f=c[0],d=c[1],p=e,h=p.className,g=void 0===h?"bizcharts":h,v=p.containerStyle,y=u(p,["className","containerStyle"]);return Object(s.useEffect)((function(){d(!0)}),[]),l.a.createElement("div",{ref:r,className:g,style:i()({position:"relative",height:e.height||"100%",width:e.width||"100%"},v)},f?l.a.createElement(t,i()({ref:n,container:r.current},y)):l.a.createElement(l.a.Fragment,null))}));return n.displayName=e||t.name,n}},function(t,e,n){"use strict";var r=n(1033),i=n(1034),a=n(481),o=n(1035);t.exports=function(t,e){return r(t)||i(t,e)||a(t,e)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Area=void 0;var r=n(1),i=n(24),a=n(119),o=n(1125),s=n(1126),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return r.__extends(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField,s=this.chart,l=this.options;o.meta({chart:s,options:l}),this.chart.changeData(a.getDataWhetherPecentage(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Area=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Heatmap=void 0;var r=n(1),i=n(24),a=n(1132),o=n(1133);n(1134),n(1135);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return r.__extends(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(i.Plot);e.Heatmap=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rose=void 0;var r=n(1),i=n(24),a=n(1139),o=n(1140),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return r.__extends(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},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 a.adaptor},e}(i.Plot);e.Rose=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(77),i=n.n(r),a=new RegExp("^on(.*)(?=(".concat(["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave","contextmenu","click","show","hide","change"].map((function(t){return t.replace(/^\S/,(function(t){return t.toUpperCase()}))})).join("|"),"))")),o=function(t){var e=[];return i()(t,(function(t,n){var r=n.match(/^on(.*)/);if(r){var i=n.match(a);if(i){var o=i[1].replace(/([A-Z])/g,"-$1").toLowerCase();(o=o.replace("column","interval"))?e.push([n,"".concat(o.replace("-",""),":").concat(i[2].toLowerCase())]):e.push([n,i[2].toLowerCase()])}else e.push([n,r[1].toLowerCase()])}})),e}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(239)),a=r(n(68)),o=function(t){if(!(0,i.default)(t)||!(0,a.default)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(i){}finally{r=void 0===r?n:r}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),i=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,l=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function u(t){return"#"+d(t[0])+d(t[1])+d(t[2])}var c,f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},d=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},p=function(t){if("#"===t[0]&&7===t.length)return t;c||(c=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}()),c.style.color=t;var e=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return e=u(i.exec(e)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))},h={rgb2arr:f,gradient:function(t){var e=(0,r.isString)(t)?t.split("-"):t,n=(0,r.map)(e,(function(t){return f(-1===t.indexOf("#")?p(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,o=t[i],s=i===r?o:t[i+1];return u([l(o,s,a,0),l(o,s,a,1),l(o,s,a,2)])}(n,t)}},toRGB:(0,r.memoize)(p),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(l=a.exec(t))[1]+90;n=l[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var l;e="radial-gradient(",n=(l=o.exec(t))[4]}var u=n.match(s);return(0,r.each)(u,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")"}return t}};e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),i=n(425),a=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,r.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,r.map)(this.ticks,(function(e,n){return(0,r.isObject)(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,r.isNil)(i)||!(0,r.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,r.assign)(this,this.__cfg__),this.setDomain(),(0,r.isEmpty)(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,r.isString)(t)){var n=(0,i.getTickMethod)(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else(0,r.isFunction)(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,r.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisLabel=function(t,e,n,s){var u;void 0===s&&(s="tail");var c=null!==(u=e.attr("text"))&&void 0!==u?u:"";if("tail"===s){var f=(0,r.pick)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),d=(0,r.getEllipsisText)(c,n,f,"\u2026");return c!==d?(e.attr("text",d),e.set("tip",c),!0):(e.set("tip",null),!1)}var p=l(t,e),h=(0,i.strLen)(c),g=!1;if(n=0?(0,i.ellipsisString)(c,v,s):a)&&(e.attr("text",y),g=!0)}return g?e.set("tip",c):e.set("tip",null),g},e.getLabelLength=l,e.getMaxLabelWidth=function(t){if(t.length>s)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return(0,r.isNil)(e)?"":""+e})),n=0,i=0,a=0;a=19968&&l<=40869?2:1}o>n&&(n=o,i=a)}return t[i].getBBox().width}(t);var e=0;return(0,r.each)(t,(function(t){var n=t.getBBox().width;eO?_:O,E=_>O?1:_/O,C=_>O?O/_:1;e.translate(b,x),e.rotate(M),e.scale(E,C),e.arc(0,0,A,P,w,1-S),e.scale(1/E,1/C),e.rotate(-M),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===h)u=c;else{var j=p.length;u=[p[j-2],p[j-1]]}}}},e.refreshElement=function(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())))},e.getRefreshRegion=d,e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],i=[],a=[];return r.each(t,(function(t){var r=d(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),a.push(r.maxY))})),{minX:r.min(e),minY:r.min(n),maxX:r.max(i),maxY:r.max(a)}},e.mergeView=function(t,e){return t&&e&&o.intersectRect(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}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var r=n(72);e.setShadow=function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var a=e.find("filter",i);a||(a=e.addShadow(i)),n.setAttribute("filter","url(#"+a+")")}else n.removeAttribute("filter")},e.setTransform=function(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}},e.setClip=function(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){r.createDom(n),n.createPath(e);var a=e.addClip(n);i.setAttribute("clip-path","url(#"+a+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["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]]}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return h.default}});var i=r(n(73)),a=r(n(952)),o=r(n(953)),s=r(n(954)),l=r(n(955)),u=r(n(956)),c=r(n(957)),f=r(n(959)),d=r(n(960)),p=r(n(961)),h=r(n(964))},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.applyAttrsToContext=function(t,e){var n=e.attr();for(var r in n){var i=n[r],s=f[r]?f[r]:r;"matrix"===s&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===s&&t.setLineDash?(0,a.isArray)(i)&&t.setLineDash(i):("strokeStyle"===s||"fillStyle"===s?i=(0,o.parseStyle)(t,e,i):"globalAlpha"===s&&(i*=t.globalAlpha),t[s]=i)}},e.checkChildrenRefresh=d,e.checkRefresh=function(t,e,n){var r=t.get("refreshElements");(0,a.each)(r,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),r[0]===t?p(e,n):d(e,n)},e.clearChanged=function t(e){for(var n=0;nO?_:O,E=_>O?1:_/O,C=_>O?O/_:1;e.translate(b,x),e.rotate(M),e.scale(E,C),e.arc(0,0,A,P,w,1-S),e.scale(1/E,1/C),e.rotate(-M),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===h)l=c;else{var j=p.length;l=[p[j-2],p[j-1]]}}}},e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return(0,a.each)(t,(function(t){var a=g(t);a&&(e.push(a.minX),n.push(a.minY),r.push(a.maxX),i.push(a.maxY))})),{minX:(0,a.min)(e),minY:(0,a.min)(n),maxX:(0,a.max)(r),maxY:(0,a.max)(i)}},e.getRefreshRegion=g,e.mergeView=function(t,e){return t&&e&&(0,l.intersectRect)(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},e.refreshElement=function(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())))};var a=n(0),o=n(453),s=r(n(454)),l=n(53),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(188));function c(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}var f={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function d(t,e){for(var n=0;ne&&(i=e-(n=n?e/(1+i/n):0)),a+o>e&&(o=e-(a=a?e/(1+o/a):0)),[n||0,i||0,a||0,o||0]}e.getRectPoints=function(t){var e,n,i,a,o=t.x,s=t.y,l=t.y0,u=t.size;(0,r.isArray)(s)?(e=s[0],n=s[1]):(e=l,n=s),(0,r.isArray)(o)?(i=o[0],a=o[1]):(i=o-u/2,a=o+u/2);var c=[{x:i,y:e},{x:i,y:n}];return c.push({x:a,y:n},{x:a,y:e}),c},e.getRectPath=a,e.parseRadius=o,e.getBackgroundRectPath=function(t,e,n){var a=[];if(n.isRect){var s=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},l=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},u=(0,r.get)(t,["background","style","radius"]);if(u){var c=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,f=n.isTransposed?n.getWidth():n.getHeight(),d=o(u,Math.min(c,f)),p=d[0],h=d[1],g=d[2],v=d[3];a.push(["M",s.x,l.y+p]),0!==p&&a.push(["A",p,p,0,0,1,s.x+p,l.y]),a.push(["L",l.x-h,l.y]),0!==h&&a.push(["A",h,h,0,0,1,l.x,l.y+h]),a.push(["L",l.x,s.y-g]),0!==g&&a.push(["A",g,g,0,0,1,l.x-g,s.y]),a.push(["L",s.x+v,s.y]),0!==v&&a.push(["A",v,v,0,0,1,s.x,s.y-v])}else a.push(["M",s.x,s.y]),a.push(["L",l.x,s.y]),a.push(["L",l.x,l.y]),a.push(["L",s.x,l.y]),a.push(["L",s.x,s.y]);a.push(["z"])}if(n.isPolar){var y=n.getCenter(),m=(0,i.getAngle)(t,n),b=m.startAngle,x=m.endAngle;if("theta"===n.type||n.isTransposed){var _=function(t){return Math.pow(t,2)};p=Math.sqrt(_(y.x-e[0].x)+_(y.y-e[0].y)),h=Math.sqrt(_(y.x-e[2].x)+_(y.y-e[2].y)),a=(0,i.getSectorPath)(y.x,y.y,p,n.startAngle,n.endAngle,h)}else a=(0,i.getSectorPath)(y.x,y.y,n.getRadius(),b,x)}return a},e.getIntervalRectPath=function(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,s=[],l=(t[2].x-t[1].x)/2,u=n.isTransposed?l*i/r:l*r/i;return"round"===e?(o?(s.push(["M",t[0].x,t[0].y+u]),s.push(["L",t[1].x,t[1].y-u]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y-u]),s.push(["L",t[3].x,t[3].y+u]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y+u])):(s.push(["M",t[0].x,t[0].y]),s.push(["L",t[1].x,t[1].y]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y]),s.push(["L",t[3].x,t[3].y]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y])),s.push(["z"])):s=a(t),s},e.getFunnelPath=function(t,e,n){var i=[];return(0,r.isNil)(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},e.getRectWithCornerRadius=function(t,e,n){var r,i,a,s,l=t[0],u=t[1],c=t[2],f=t[3],d=[0,0,0,0],p=d[0],h=d[1],g=d[2],v=d[3];l.yt[1].x?(f=t[0],l=t[1],u=t[2],c=t[3],p=(a=o(n,Math.min(f.x-l.x,l.y-u.y)))[0],v=a[1],g=a[2],h=a[3]):(h=(s=o(n,Math.min(f.x-l.x,l.y-u.y)))[0],g=s[1],v=s[2],p=s[3]));var y=[];return y.push(["M",u.x,u.y+p]),0!==p&&y.push(["A",p,p,0,0,1,u.x+p,u.y]),y.push(["L",c.x-h,c.y]),0!==h&&y.push(["A",h,h,0,0,1,c.x,c.y+h]),y.push(["L",f.x,f.y-g]),0!==g&&y.push(["A",g,g,0,0,1,f.x-g,f.y]),y.push(["L",l.x+v,l.y]),0!==v&&y.push(["A",v,v,0,0,1,l.x,l.y-v]),y.push(["L",u.x,u.y+p]),y.push(["z"]),y}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(44)),o=n(31),s=n(31),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return(0,r.__extends)(e,t),e.prototype.getTriggerListInfo=function(){var t=(0,s.getDelegationObject)(this.context),e=null;return(0,s.isList)(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=(0,o.getComponents)(e),r=[];return(0,i.each)(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&r.push(e)})),r},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();(0,i.each)(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 r=this.context.view,i=(0,s.getScaleByField)(r,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=this.context.view,a=(0,s.getScaleByField)(i,r),o=(0,s.getElementValue)(e,r),l=a.getText(o);this.setItemsState(t,l,n)},e.prototype.setStateEnable=function(t){var e=this,n=(0,s.getCurrentElement)(this.context);if(n){var r=this.getAllowComponents();(0,i.each)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var a=(0,s.getDelegationObject)(this.context);if((0,s.isList)(a)){var o=a.item,l=a.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(o,l)&&this.setItemState(l,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,a=t.getItems();(0,i.each)(a,(function(i){i.name===e&&r.setItemState(t,i,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,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resizeObservers=void 0,e.resizeObservers=[]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pattern=void 0;var r=n(1),i=n(14),a=n(0),o=n(1070),s=n(15);e.pattern=function(t){var e=this;return function(n){var l,u=n.options,c=n.chart,f=u.pattern;return f?s.deepAssign({},n,{options:(l={},l[t]=function(n){for(var l,d,p,h=[],g=1;g
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},e.DEFAULT_OPTIONS={appendPadding:2,tooltip:r.__assign({},e.DEFAULT_TOOLTIP_OPTIONS),animation:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){for(var a,o=t.children,s=-1,l=o.length,u=t.value&&(r-e)/t.value;++s
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}};e.DEFAULT_TOOLTIP_OPTIONS=a;var o={appendPadding:2,tooltip:(0,r.__assign)({},a),animation:{}};e.DEFAULT_OPTIONS=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NODE_INDEX_FIELD=e.NODE_ANCESTORS_FIELD=e.CHILD_NODE_COUNT=void 0,e.getAllNodes=function(t){var e,n,s=[];return t&&t.each?t.each((function(t){var l,u;t.parent!==e?(e=t.parent,n=0):n+=1;var c=(0,r.filter)(((null===(l=t.ancestors)||void 0===l?void 0:l.call(t))||[]).map((function(t){return s.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n0?"left":"right");break;case"left":t.x=l,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",h>0?"left":"right");break;case"bottom":c&&(t.x=(o+l)/2),t.y=s,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",h>0?"bottom":"top");break;case"middle":c&&(t.x=(o+l)/2),t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline","middle");break;case"top":c&&(t.x=(o+l)/2),t.y=a,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",h>0?"bottom":"top")}},e}((0,r.__importDefault)(n(100)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(48),o=n(46),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return(0,r.__extends)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return(0,i.deepMix)({},r,(0,i.get)(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 r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.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(),r={x:(0,i.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},o={x:(0,i.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},s=(0,a.getAngleByPoint)(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var l=(0,a.getAngleByPoint)(n,o);s>=l&&(l+=2*Math.PI),e=s+(l-s)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),a=n.getRadius()+e;return(0,r.__assign)((0,r.__assign)({},(0,o.polarToCartesian)(i.x,i.y,a,t)),{angle:t,r:a})},e}((0,r.__importDefault)(n(214)).default);e.default=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(4),i=n.n(r),a=n(3),o=n.n(a),s=n(50),l=n.n(s),u=n(623),c=n.n(u),f=n(61),d=n.n(f),p=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return l()(t)||o.a.isValidElement(t)?{visible:!0,text:t}:c()(t)?{visible:t}:d()(t)?i()({visible:!0},t):{visible:e}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return O}));var r=n(12),i=n.n(r),a=n(13),o=n.n(a),s=n(5),l=n.n(s),u=n(9),c=n.n(u),f=n(10),d=n.n(f),p=n(203),h=n(127),g=n.n(h),v=n(0),y=n(8);function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l()(t);if(e){var i=l()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o()(this,n)}}var b={},x=function(){function t(e){c()(this,t),this.cfg={shared:!0},this.chartMap={},this.state={},this.id=Object(v.uniqueId)("bx-action"),this.type=e||"tooltip"}return d()(t,[{key:"connect",value:function(t,e,n){return this.chartMap[t]={chart:e,pointFinder:n},e.interaction("connect-".concat(this.type,"-").concat(this.id)),"tooltip"===this.type&&this.cfg.shared&&void 0===Object(v.get)(e,["options","tooltip","shared"])&&Object(v.set)(e,["options","tooltip","shared"],!0),this}},{key:"unConnect",value:function(t){this.chartMap[t].chart.removeInteraction("connect-".concat(this.type,"-").concat(this.id)),delete this.chartMap[t]}},{key:"destroy",value:function(){Object(p.unregisterAction)("connect-".concat(this.type,"-").concat(this.id))}}]),t}(),_=function(){var t=new x("tooltip");return Object(y.registerAction)("connect-tooltip-".concat(t.id),function(e){i()(r,e);var n=m(r);function r(){var e;return c()(this,r),(e=n.apply(this,arguments)).CM=t,e}return d()(r,[{key:"showTooltip",value:function(t,e){var n=t.getTooltipItems(e)||e;Object(v.forIn)(this.CM.chartMap,(function(t){var r=t.chart,i=t.pointFinder;if(!r.destroyed&&r.visible)if(i){var a=i(n,r);a&&r.showTooltip(a)}else r.showTooltip(e)}))}},{key:"hideTooltip",value:function(){Object(v.forIn)(this.CM.chartMap,(function(t){return t.chart.hideTooltip()}))}}]),r}(g.a)),Object(y.registerInteraction)("connect-tooltip-".concat(t.id),{start:[{trigger:"plot:mousemove",action:"connect-tooltip-".concat(t.id,":show")}],end:[{trigger:"plot:mouseleave",action:"connect-tooltip-".concat(t.id,":hide")}]}),t},O=function(t,e,n,r,i){var a=b[t];null===n&&a?a.unConnect(e):a?a.connect(e,n,i):(b[t]=_(),b[t].cfg.shared=!!r,b[t].connect(e,n,i))};e.a=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var r=n(951);e.growInX=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"x")},e.growInY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"y")},e.growInXY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"xy")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(23),i=n(1054);function a(t,e,n,o){for(var s in n=n||0,o=o||5,e)if(e.hasOwnProperty(s)){var l=e[s];null!==l&&i.default(l)?(i.default(t[s])||(t[s]={}),n0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.sqrLen=e.sqrDist=void 0,e.squaredDistance=d,e.squaredLength=p,e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.sub=void 0,e.subtract=l,e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],l=e[1],u=e[2],c=i*u-a*l,f=a*s-r*u,d=r*l-i*s,p=i*d-a*f,h=a*c-r*d,g=r*f-i*c,v=2*o;return c*=v,f*=v,d*=v,p*=2,h*=2,g*=2,t[0]=s+c+p,t[1]=l+f+h,t[2]=u+d+g,t},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=o?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(79));function a(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function s(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function d(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function p(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function h(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}var g=l;e.sub=g;var v=u;e.mul=v;var y=c;e.div=y;var m=f;e.dist=m;var b=d;e.sqrDist=b;var x=s;e.len=x;var _=p;e.sqrLen=_;var O=function(){var t=o();return function(e,n,r,i,a,o){var s,l;for(n||(n=3),r||(r=0),l=i?Math.min(i*n+r,e.length):e.length,s=r;s(n-t)*(n-t)+(r-e)*(r-e)?(0,i.distance)(n,r,a,o):this.pointToLine(t,e,n,r,a,o)},pointToLine:function(t,e,n,r,i,o){var s=[n-t,r-e];if(a.exactEquals(s,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var l=[-s[1],s[0]];a.normalize(l,l);var u=[i-t,o-e];return Math.abs(a.dot(u,l))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};e.default=s},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.YEAR=e.SECOND=e.MONTH=e.MINUTE=e.HOUR=e.DAY=void 0,e.getTickInterval=function(t,e,n){var r=(e-t)/n,i=(0,s.default)((function(t){return t[1]}))(g,r)-1,o=g[i];return i<0?o=g[0]:i>=g.length&&(o=(0,a.last)(g)),o},e.timeFormat=function(t,e){return(o[u]||o.default[u])(t,e)},e.toTimeStamp=function(t){return(0,a.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,a.isDate)(t)&&(t=t.getTime()),t};var a=n(0),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(828)),s=r(n(829));function l(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u="format",c=1e3;e.SECOND=c;var f=6e4;e.MINUTE=f;var d=36e5;e.HOUR=d;var p=24*d;e.DAY=p;var h=31*p;e.MONTH=h,e.YEAR=31536e6;var g=[["HH:mm:ss",c],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",f],["HH:mm",6e5],["HH:mm",18e5],["HH",d],["HH",6*d],["HH",12*d],["YYYY-MM-DD",p],["YYYY-MM-DD",4*p],["YYYY-WW",7*p],["YYYY-MM",h],["YYYY-MM",4*h],["YYYY-MM",6*h],["YYYY",380*p]]},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,i.__extends)(e,t),e.prototype.scale=function(t){if((0,a.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,a.head)(e),r=(0,a.last)(e);nthis.max&&(this.max=r),(0,a.isNil)(this.minLimit)||(this.min=n),(0,a.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=(0,a.getRange)(this.values),e=t.min,n=t.max;(0,a.isNil)(this.min)&&(this.min=e),(0,a.isNil)(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,a.filter)(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}(r(n(141)).default),s=o;e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calBase=function(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)},e.getLogPositiveMin=function(t,e,n){(0,r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return(0,r.each)(t,(function(t){t>0&&t1&&(i=1),i},e.log=function(t,e){return 1===t?1:Math.log(e)/Math.log(t)},e.precisionAdd=function(t,e){var n=i(t),r=i(e),a=Math.pow(10,Math.max(n,r));return(t*a+e*a)/a};var r=n(0);function i(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(1),i=n(32),a=n(0),o=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,a=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed,s=void 0!==o&&o;this.start=e,this.end=n,this.matrix=a,this.originalMatrix=(0,r.__spreadArray)([],a),this.isTransposed=s}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,a.assign)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),i+t*(a-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),(t-i)/(a-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=[t,e,n];return i.vec3.transformMat3(a,a,r),a},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=i.mat3.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return a&&i.vec3.transformMat3(o,o,a),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[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 i.ext.leftTranslate(e,e,[-n.x,-n.y]),i.ext.leftRotate(e,e,t),i.ext.leftTranslate(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,r=this.center;return i.ext.leftTranslate(n,n,[-r.x,-r.y]),i.ext.leftScale(n,n,[t,e]),i.ext.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return i.ext.leftTranslate(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,r.__spreadArray)([],this.originalMatrix)},t}();e.default=o},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0});var a={Annotation:!0,Axis:!0,Crosshair:!0,Grid:!0,Legend:!0,Tooltip:!0,Component:!0,GroupComponent:!0,HtmlComponent:!0,Slider:!0,Scrollbar:!0,propagationDelegate:!0,TOOLTIP_CSS_CONST:!0};e.Axis=e.Annotation=void 0,Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return d.default}}),e.Grid=e.Crosshair=void 0,Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return h.default}}),e.Legend=void 0,Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return v.Scrollbar}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return g.Slider}}),e.Tooltip=e.TOOLTIP_CSS_CONST=void 0,Object.defineProperty(e,"propagationDelegate",{enumerable:!0,get:function(){return b.propagationDelegate}});var o=O(n(854));e.Annotation=o;var s=O(n(866));e.Axis=s;var l=O(n(872));e.Crosshair=l;var u=O(n(877));e.Grid=u;var c=O(n(880));e.Legend=c;var f=O(n(883));e.Tooltip=f;var d=r(n(254)),p=r(n(41)),h=r(n(181)),g=n(887),v=n(894),y=n(896);Object.keys(y).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(a,t)||t in e&&e[t]===y[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return y[t]}}))}));var m=n(897);Object.keys(m).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(a,t)||t in e&&e[t]===m[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return m[t]}}))}));var b=n(432),x=O(n(259));function _(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(_=function(t){return t?n:e})(t)}function O(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=_(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}e.TOOLTIP_CSS_CONST=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTag=function(t,e){var n=e.x,l=e.y,u=e.content,c=e.style,f=e.id,d=e.name,p=e.rotate,h=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,b=t.addGroup({id:f+"-group",name:d+"-group",attrs:{x:n,y:l}}),x=b.addShape({type:"text",id:f,name:d,attrs:(0,r.__assign)({x:0,y:0,text:u},c)}),_=(0,s.formatPadding)((0,i.get)(m,"padding",0));if(h&&g){var O=h-(_[1]+_[3]);(0,a.ellipsisLabel)(!v,x,O,y)}if(m){var P=(0,i.get)(m,"style",{}),w=x.getCanvasBBox(),M=w.minX,S=w.minY,A=w.width,E=w.height;b.addShape("rect",{id:f+"-bg",name:f+"-bg",attrs:(0,r.__assign)({x:M-_[3],y:S-_[0],width:A+_[1]+_[3],height:E+_[0]+_[2]},P)}).toBack()}(0,o.applyTranslate)(b,n,l),(0,o.applyRotate)(b,p,n,l)};var r=n(1),i=n(0),a=n(142),o=n(90),s=n(42)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(96),o=n(0),s=n(42),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,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(0,s.createBBox)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");(0,s.clearDom)(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,o.isNil)(t)){t=this.createDom();var e=this.get("parent");(0,o.isString)(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,o.isString)(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,o.deepMix)({},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&&(0,s.hasClass)(e,n)){var r=t[n];(0,a.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){(0,o.each)(e,(function(e,n){var r=t.getElementsByClassName(n);(0,o.each)(r,(function(t){(0,a.modifyCSS)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");(0,a.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return(0,a.createDom)(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,o.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(r(n(254)).default),u=l;e.default=u},function(t,e,n){"use strict";var r=n(2)(n(6));Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=e.getShortenOffset=void 0;var i=n(1),a=n(143),o=Math.sin,s=Math.cos,l=Math.atan2,u=Math.PI;function c(t,e,n,r,i,c,f){var d=e.stroke,p=e.lineWidth,h=l(r-c,n-i),g=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(u/6)+","+10*o(u/6)+" L0,0 L"+10*s(u/6)+",-"+10*o(u/6),stroke:d,lineWidth:p}});g.translate(i,c),g.rotateAtPoint(i,c,h),t.set(f?"startArrowShape":"endArrowShape",g)}function f(t,e,n,r,u,c,f){var d=e.startArrow,p=e.endArrow,h=e.stroke,g=e.lineWidth,v=f?d:p,y=v.d,m=v.fill,b=v.stroke,x=v.lineWidth,_=i.__rest(v,["d","fill","stroke","lineWidth"]),O=l(r-c,n-u);y&&(u-=s(O)*y,c-=o(O)*y);var P=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:i.__assign(i.__assign({},_),{stroke:b||h,lineWidth:x||g,fill:m})});P.translate(u,c),P.rotateAtPoint(u,c,O),t.set(f?"startArrowShape":"endArrowShape",P)}e.getShortenOffset=function(t,e,n,r,i){var a=l(r-e,n-t);return{dx:s(a)*i,dy:o(a)*i}},e.addStartArrow=function(t,e,n,i,a,o){"object"===(0,r.default)(e.startArrow)?f(t,e,n,i,a,o,!0):e.startArrow?c(t,e,n,i,a,o,!0):t.set("startArrowShape",null)},e.addEndArrow=function(t,e,n,i,a,o){"object"===(0,r.default)(e.endArrow)?f(t,e,n,i,a,o,!1):e.endArrow?c(t,e,n,i,a,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(38);e.default=function(t,e,n,i,a,o,s){var l=Math.min(t,n),u=Math.max(t,n),c=Math.min(e,i),f=Math.max(e,i),d=a/2;return o>=l-d&&o<=u+d&&s>=c-d&&s<=f+d&&r.Line.pointToLine(t,e,n,i,o,s)<=a/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(62);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.default}});var i=n(915);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var a=n(916);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return a.default}});var o=n(917);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return o.default}});var s=n(918);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return s.default}});var l=n(919);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return l.default}});var u=n(920);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return u.default}});var c=n(922);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return c.default}});var f=n(923);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return f.default}});var d=n(924);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return d.default}});var p=n(925);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return p.default}});var h=n(927);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return h.default}})},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var i=n(44);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return r(i).default}});var a=n(203);Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return a.createAction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return a.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return a.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findItemsFromViewRecurisive=e.findItemsFromView=e.getTooltipItems=e.findDataByPoint=void 0;var r=n(1),i=n(0),a=n(21),o=n(111);function s(t,e,n){var r=n.translate(t),a=n.translate(e);return(0,i.isNumberEqual)(r,a)}function l(t,e,n){var r=n.coordinate,o=n.getYScale(),s=o.field,l=r.invert(e),u=o.invert(l.y);return(0,i.find)(t,(function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=u&&e[s][1]>=u}))||t[t.length-1]}var u=(0,i.memoize)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,a=0;ai&&(i=s)}return(i-r)/(n-1)}));function c(t){for(var e,n=function(t){var e=(0,i.values)(t.attributes);return(0,i.filter)(e,(function(t){return(0,i.contains)(a.GROUP_ATTRS,t.type)}))}(t),r=0,o=n;r(1+a)/2&&(s=o),r.translate(r.invert(s))}(t,n),M=O[a.FIELD_ORIGIN][f],S=O[a.FIELD_ORIGIN][d],A=P[a.FIELD_ORIGIN][f],E=c.isLinear&&(0,i.isArray)(S);if((0,i.isArray)(M)){for(m=0;m=w){if(!E){p=L;break}(0,i.isArray)(p)||(p=[]),p.push(L)}(0,i.isArray)(p)&&(p=l(p,t,n))}else{var C=void 0;if(o.isLinear||"timeCat"===o.type){if((w>o.translate(A)||wo.max||wMath.abs(o.translate(C[a.FIELD_ORIGIN][f])-w)&&(P=C)}var k=u(n.getXScale());return!p&&Math.abs(o.translate(P[a.FIELD_ORIGIN][f])-w)<=k/2&&(p=P),p}function d(t,e,n,s){void 0===n&&(n=""),void 0===s&&(s=!1);var l,u,f=t[a.FIELD_ORIGIN],d=function(t,e,n){var r=e.getAttribute("position").getFields(),a=e.scales,o=(0,i.isFunction)(n)||!n?r[0]:n,s=a[o],l=s?s.getText(t[o]):t[o]||o;return(0,i.isFunction)(n)?n(l,t):l}(f,e,n),p=e.tooltipOption,h=e.theme.defaultColor,g=[];function v(e,n){if(s||!(0,i.isNil)(n)&&""!==n){var r={title:d,data:f,mappingData:t,name:e,value:n,color:t.color||h,marker:!0};g.push(r)}}if((0,i.isObject)(p)){var y=p.fields,m=p.callback;if(m){var b=y.map((function(e){return t[a.FIELD_ORIGIN][e]})),x=m.apply(void 0,b),_=(0,r.__assign)({data:t[a.FIELD_ORIGIN],mappingData:t,title:d,color:t.color||h,marker:!0},x);g.push(_)}else for(var O=e.scales,P=0,w=y;P=l-d&&o<=u+d&&s>=c-d&&s<=f+d&&r.Line.pointToLine(t,e,n,i,o,s)<=a/2};var r=n(38)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return g.default}});var i=r(n(63)),a=r(n(967)),o=r(n(968)),s=r(n(969)),l=r(n(970)),u=r(n(971)),c=r(n(972)),f=r(n(974)),d=r(n(975)),p=r(n(976)),h=r(n(977)),g=r(n(979))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.freeze=void 0,e.freeze=function(t){return Object.freeze(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSVG=e.isReplacedElement=e.isHidden=e.isElement=void 0;var r=function(t){return t instanceof SVGElement&&"getBBox"in t};e.isSVG=r,e.isHidden=function(t){if(r(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var a=t,o=a.offsetWidth,s=a.offsetHeight;return!(o||s||t.getClientRects().length)},e.isElement=function(t){var e;if(t instanceof Element)return!0;var n=null===(e=null===t||void 0===t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},e.isReplacedElement=function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cluster",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"hierarchy",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"pack",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"packEnclose",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"packSiblings",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stratify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"tree",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"treemap",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"treemapBinary",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"treemapDice",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"treemapResquarify",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"treemapSlice",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"treemapSliceDice",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"treemapSquarify",{enumerable:!0,get:function(){return y.default}});var i=r(n(1092)),a=r(n(297)),o=r(n(1108)),s=r(n(515)),l=r(n(517)),u=r(n(1109)),c=r(n(1110)),f=r(n(1111)),d=r(n(1112)),p=r(n(1113)),h=r(n(155)),g=r(n(194)),v=r(n(1114)),y=r(n(299)),m=r(n(1115))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){for(var a,o=t.children,s=-1,l=o.length,u=t.value&&(i-n)/t.value;++s=0})),a=n.every((function(t){return(0,i.get)(t,[e])<=0}));return r?{min:0}:a?{max:0}:{}},e.processIllegalData=function(t,e){var n=(0,i.filter)(t,(function(t){var n=t[e];return null===n||"number"===typeof n&&!isNaN(n)}));return(0,a.log)(a.LEVEL.WARN,n.length===t.length,"illegal data existed in chart data."),n},e.transformDataToNodeLinkData=function(t,e,n,i,a){if(void 0===a&&(a=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],l={},u=-1;return t.forEach((function(t){var c=t[e],f=t[n],d=t[i],p=(0,o.pick)(t,a);l[c]||(l[c]=(0,r.__assign)({id:++u,name:c},p)),l[f]||(l[f]=(0,r.__assign)({id:++u,name:f},p)),s.push((0,r.__assign)({source:l[c].id,target:l[f].id,value:d},p))})),{nodes:Object.values(l).sort((function(t,e){return t.id-e.id})),links:s}};var r=n(1),i=n(0),a=n(539),o=n(538)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t,e){void 0===e&&(e=!1);var n=t.options,r=n.seriesField;return(0,f.flow)(p,a.theme,(0,u.pattern)("columnStyle"),a.state,h,g,v,y,b,a.slider,a.scrollbar,m,c.brushInteraction,a.interaction,a.animation,(0,a.annotation)(),(0,o.conversionTag)(n.yField,!e,!!r),(0,s.connectedArea)(!n.isStack),a.limitInPlot)(t)},e.legend=y,e.meta=g;var r=n(1),i=n(0),a=n(22),o=n(1196),s=n(1197),l=n(30),u=n(122),c=n(552),f=n(7),d=n(123);function p(t){var e=t.options,n=e.legend,i=e.seriesField,a=e.isStack;return i?!1!==n&&(n=(0,r.__assign)({position:a?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function h(t){var e=t.chart,n=t.options,i=n.data,a=n.columnStyle,o=n.color,s=n.columnWidthRatio,u=n.isPercent,c=n.isGroup,p=n.isStack,h=n.xField,g=n.yField,v=n.seriesField,y=n.groupField,m=n.tooltip,b=n.shape,x=u&&c&&p?(0,d.getDeepPercent)(i,g,[h,y],g):(0,d.getDataWhetherPecentage)(i,g,h,g,u),_=[];p&&v&&!c?x.forEach((function(t){var e=_.find((function(e){return e[h]===t[h]&&e[v]===t[v]}));e?e[g]+=t[g]||0:_.push((0,r.__assign)({},t))})):_=x,e.data(_);var O=u?(0,r.__assign)({formatter:function(t){return{name:c&&p?t[v]+" - "+t[y]:t[v]||t[h],value:(100*Number(t[g])).toFixed(2)+"%"}}},m):m,P=(0,f.deepAssign)({},t,{options:{data:_,widthRatio:s,tooltip:O,interval:{shape:b,style:a,color:o}}});return(0,l.interval)(P),P}function g(t){var e,n,i=t.options,o=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,c=i.data,d=i.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return(0,f.flow)((0,a.scale)(((e={})[l]=o,e[u]=s,e),((n={})[l]={type:"cat"},n[u]=(0,r.__assign)((0,r.__assign)({},(0,f.adjustYMetaByZero)(c,u)),d),n)))(t)}function v(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(o,!1):e.axis(o,i),t}function y(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function m(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,o=n.isRange,s=(0,f.findGeometry)(e,"interval");if(i){var l=i.callback,u=(0,r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:(0,r.__assign)({layout:(null===u||void 0===u?void 0:u.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},(0,f.transformLabel)(o?(0,r.__assign)({content:function(t){var e;return null===(e=t[a])||void 0===e?void 0:e.join("-")}},u):u))})}else s.label(!1);return t}function b(t){var e=t.chart,n=t.options,a=n.tooltip,o=n.isGroup,s=n.isStack,l=n.groupField,u=n.data,c=n.xField,d=n.yField,p=n.seriesField;if(!1===a)e.tooltip(!1);else{var h=a;if(o&&s){var g=(null===h||void 0===h?void 0:h.formatter)||function(t){return{name:t[p]+" - "+t[l],value:t[d]}};h=(0,r.__assign)((0,r.__assign)({},h),{customItems:function(t){var e=[];return(0,i.each)(t,(function(t){(0,i.filter)(u,(function(e){return(0,i.isMatch)(e,(0,f.pick)(t.data,[c,p]))})).forEach((function(n){e.push((0,r.__assign)((0,r.__assign)((0,r.__assign)({},t),{value:n[d],data:n,mappingData:{_origin:n}}),g(n)))}))})),e}})}e.tooltip(h)}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,i.flow)((0,r.pattern)("areaStyle"),u,c,r.tooltip,r.theme,r.animation,(0,r.annotation)())(t)},e.meta=c;var r=n(22),i=n(7),a=n(30),o=n(156),s=n(124),l=n(197);function u(t){var e=t.chart,n=t.options,r=n.data,l=n.color,u=n.areaStyle,c=n.point,f=n.line,d=null===c||void 0===c?void 0:c.state,p=(0,s.getTinyData)(r);e.data(p);var h=(0,i.deepAssign)({},t,{options:{xField:o.X_FIELD,yField:o.Y_FIELD,area:{color:l,style:u},line:f,point:c}}),g=(0,i.deepAssign)({},h,{options:{tooltip:!1}}),v=(0,i.deepAssign)({},h,{options:{tooltip:!1,state:d}});return(0,a.area)(h),(0,a.line)(g),(0,a.point)(v),e.axis(!1),e.legend(!1),t}function c(t){var e,n,a=t.options,u=a.xAxis,c=a.yAxis,f=a.data,d=(0,s.getTinyData)(f);return(0,i.flow)((0,r.scale)(((e={})[o.X_FIELD]=u,e[o.Y_FIELD]=c,e),((n={})[o.X_FIELD]={type:"cat"},n[o.Y_FIELD]=(0,l.adjustYMetaByZero)(d,o.Y_FIELD),n)))(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PATH_FIELD=e.ID_FIELD=e.DEFAULT_OPTIONS=void 0,e.ID_FIELD="id",e.PATH_FIELD="path",e.DEFAULT_OPTIONS={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"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PADDING_TOP=e.HIERARCHY_DATA_TRANSFORM_PARAMS=e.DrillDownAction=e.DEFAULT_BREAD_CRUMB_CONFIG=e.BREAD_CRUMB_NAME=void 0;var r=n(1),i=n(14),a=n(0),o=n(541);e.PADDING_TOP=5;var s="drilldown-bread-crumb";e.BREAD_CRUMB_NAME=s;var l={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}};e.DEFAULT_BREAD_CRUMB_CONFIG=l;var u="hierarchy-data-transform-params";e.HIERARCHY_DATA_TRANSFORM_PARAMS=u;var c=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=l,e}return(0,r.__extends)(e,t),e.prototype.click=function(){var t=(0,a.get)(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(),r=this.getButtonCfg().position,a={x:t.start.x,y:t.end.y-(n.height+10)};t.isPolar&&(a={x:0,y:0}),"bottom-left"===r&&(a={x:t.start.x,y:t.start.y});var o=i.Util.transform(null,[["t",a.x+0,a.y+n.height+5]]);e.setMatrix(o)}},e.prototype.back=function(){(0,a.size)(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,a.get)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),i=n((0,r.__assign)({data:t.data},t[u]));e.changeData(i);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:l.name+"_"+s.height+"_"+s.depth,name:l.name,children:n((0,r.__assign)({data:l},t[u]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=(0,a.last)(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,a.get)(t,["interactions","drill-down","cfg","drillDownConfig"]);return(0,o.deepAssign)(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:s});var i=0;n.forEach((function(o,l){var u=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:s+"_"+o.name+"_text",attrs:(0,r.__assign)((0,r.__assign)({text:0!==l||(0,a.isNil)(e.rootText)?o.name:e.rootText},e.textStyle),{x:i,y:0})}),c=u.getBBox();if(i+=c.width+4,u.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=(0,a.last)(n))||void 0===r?void 0:r.id)){var o=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(o)}})),u.on("mouseenter",(function(t){var r;t.target.get("id")!==(null===(r=(0,a.last)(n))||void 0===r?void 0:r.id)?u.attr(e.activeTextStyle):u.attr({cursor:"default"})})),u.on("mouseleave",(function(){u.attr(e.textStyle)})),l=0;n--)t.removeChild(e[n])},e.hasClass=function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},e.regionToBBox=function(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.pointsToBBox=function(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.createBBox=i,e.getValueByPercent=a,e.getCirclePoint=function(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}},e.distance=o,e.wait=function(t){return new Promise((function(e){setTimeout(e,t)}))},e.near=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)0?r.each(d,(function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var n=t(e),r=e.applyToMatrix([n.minX,n.minY,1]),i=e.applyToMatrix([n.minX,n.maxY,1]),a=e.applyToMatrix([n.maxX,n.minY,1]),o=e.applyToMatrix([n.maxX,n.maxY,1]),s=Math.min(r[0],i[0],a[0],o[0]),d=Math.max(r[0],i[0],a[0],o[0]),p=Math.min(r[1],i[1],a[1],o[1]),h=Math.max(r[1],i[1],a[1],o[1]);su&&(u=d),pf&&(f=h)}})):(l=0,u=0,c=0,f=0),n=i(l,c,u-l,f-c)}else n=e.getBBox();return o?s(n,o):n},e.updateClip=function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}},e.toPx=function(t){return t+"px"},e.getTextPoint=function(t,e,n,r){var i=r/o(t,e),s=0;return"start"===n?s=0-i:"end"===n&&(s=1+i),{x:a(t.x,e.x,s),y:a(t.y,e.y,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCallbackAction=e.unregisterAction=e.registerAction=e.getActionClass=e.createAction=void 0;var r=(0,n(1).__importDefault)(n(937)),i=n(0),a={};e.createAction=function(t,e){var n=a[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r},e.getActionClass=function(t){var e=a[t];return(0,i.get)(e,"ActionClass")},e.registerAction=function(t,e,n){a[t]={ActionClass:e,cfg:n}},e.unregisterAction=function(t){delete a[t]},e.createCallbackAction=function(t,e){var n=new r.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(69),o=n(48),s=n(46),l=n(186),u=n(80),c=n(104),f=(0,r.__importDefault)(n(268)),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return(0,r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},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 a=this.getTitle(n),o={x:n[0].x,y:n[0].y};e.emit("tooltip:show",f.default.fromData(e,"tooltip:show",(0,r.__assign)({items:n,title:a},t)));var s=this.getTooltipCfg(),l=s.follow,u=s.showMarkers,c=s.showCrosshairs,d=s.showContent,p=s.marker,h=this.items,g=this.title;if((0,i.isEqual)(g,a)&&(0,i.isEqual)(h,n)?(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",f.default.fromData(e,"tooltip:change",(0,r.__assign)({items:n,title:a},t))),((0,i.isFunction)(d)?d(n):d)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,i.mix)({},s,{items:this.getItemsAfterProcess(n),title:a},l?t:{})),this.tooltip.show()),u&&this.renderTooltipMarkers(n,p)),this.items=n,this.title=a,c){var v=(0,i.get)(s,["crosshairs","follow"],!1);this.renderCrosshairs(v?t:o,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",f.default.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,r=t.yCrosshair,i=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),r&&r.clear(),i&&i.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,r=e.tooltipMarkersGroup,i=e.xCrosshair,a=e.yCrosshair;t?(n&&n.show(),r&&r.show(),i&&i.show(),a&&a.show()):(n&&n.hide(),r&&r.hide(),i&&i.hide(),a&&a.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){for(var n=0,r=e=(0,i.flatten)(e);n1){for(var f=e[0],d=Math.abs(t.y-f[0].y),p=0,h=e;p'+r+"":r}})},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 a.HtmlTooltip((0,r.__assign)((0,r.__assign)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),i=0,a=t;i0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),a=this.geometry.getYScale();return(0,i.map)(n,(function(t){if(t&&a){var e=a.scale((0,i.get)(t.data,a.field));return(0,r.__assign)((0,r.__assign)({},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 r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,a=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var o=t.offset*i,s=this.getPointAngle(r),l=t.labelEmit,u=this.getCirclePoint(s,o,r,l);return 0===u.r?u.content="":(u.content=a,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,o,l):t.rotate,u.start={x:r.x,y:r.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),(0,i.isArray)(t.x)||(0,i.isArray)(t.y)?{x:(0,i.isArray)(t.x)?t.x[e]:t.x,y:(0,i.isArray)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return(0,o.getAngleByPoint)(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var o=this.getCoordinate(),s=o.getCenter(),l=(0,a.getDistanceToCenter)(o,n);if(0===l)return(0,r.__assign)((0,r.__assign)({},s),{r:l});var u=t;return o.isTransposed&&l>e&&!i?u=t+2*Math.asin(e/(2*l)):l+=e,{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},e.prototype.getLabelRotate=function(t,e,n){var r=t+l;return n&&(r-=l),r&&(r>l?r-=Math.PI:r<-l&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return(0,i.each)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);e.default=u},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(45),i=n.n(r),a=n(4),o=n.n(a),s=n(37),l=n.n(s),u=n(28),c=n.n(u),f=n(40),d=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([o,s,1]);var l=r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)},e.scaleInY=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,s=a.points,l=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,l,1]);var u=r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,.01],["t",o,l]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,100],["t",o,l]])},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoomOut=e.zoomIn=void 0;var r=n(1),i=n(32),a=n(0);function o(t,e,n){if(t.isGroup())(0,a.each)(t.getChildren(),(function(t){o(t,e,n)}));else{var s=t.getBBox(),l=(s.minX+s.maxX)/2,u=(s.minY+s.maxY)/2;if(t.applyToMatrix([l,u,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",100,100],["t",l,u]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]])},(0,r.__assign)((0,r.__assign)({},e),{callback:function(){t.remove(!0)}}))}}e.zoomIn=function(t,e,n){o(t,e,"zoomIn")},e.zoomOut=function(t,e,n){o(t,e,"zoomOut")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.overlap=e.fixedOverlap=void 0;var r=n(0),i=100,a=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var l=a;l<=o;l++)if(n[s][l]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=r;o+=1)e[o]||(e[o]={});for(o=n;o<=r;o+=this.xGap){for(var s=i;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=i;o<=a;o+=1)e[n][o]=!0,e[r][o]=!0;if(1!==this.xGap)for(o=n;o<=r;o+=1)e[o][i]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function o(t,e,n,r){var i=t.getCanvasBBox(),a=i.width,o=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}e.fixedOverlap=function(t,e,n,o){var s=new a;(0,r.each)(e,(function(t){(function(t,e,n){void 0===n&&(n=i);var r,a=t.attr(),o=a.x,s=a.y,l=t.getCanvasBBox(),u=Math.sqrt(l.width*l.width+l.height*l.height),c=1,f=0,d=0,p=function(t){var e=.1*t;return[e*Math.cos(e),e*Math.sin(e)]};if(e.hasGap(l))return e.fillGap(l),!0;for(var h=!1,g=0,v={};Math.min(Math.abs(f),Math.abs(d))=0}),e)},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(1014),o=(0,r.__importDefault)(n(151)),s="inactive",l="active",u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=l,e.ignoreItemStates=["unchecked"],e}return(0,r.__extends)(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 r=t.getItems();if(n)(0,i.each)(r,(function(n){e(n)?(t.hasState(n,s)&&t.setItemState(n,s,!1),t.setItemState(n,l,!0)):t.hasState(n,l)||t.setItemState(n,s,!0)}));else{var a=t.getItemsByState(l),o=!0;(0,i.each)(a,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():(0,i.each)(r,(function(n){e(n)&&(t.hasState(n,l)&&t.setItemState(n,l,!1),t.setItemState(n,s,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)(0,a.clearList)(t.list);else{var e=this.getAllowComponents();(0,i.each)(e,(function(t){t.clearItemsState(l),t.clearItemsState(s)}))}},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;return function(){var i=this,a=arguments,o=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||t.apply(i,a)}),e),o&&t.apply(i,a)}}},function(t,e,n){"use strict";t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";e.a=function(t){if(0===t.length)return 0;for(var e,n=t[0],r=0,i=1;i=Math.abs(t[i])?r+=n-e+t[i]:r+=t[i]-e+n,n=e;return n+r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ResizeObserver",{enumerable:!0,get:function(){return r.ResizeObserver}}),Object.defineProperty(e,"ResizeObserverEntry",{enumerable:!0,get:function(){return i.ResizeObserverEntry}}),Object.defineProperty(e,"ResizeObserverSize",{enumerable:!0,get:function(){return a.ResizeObserverSize}});var r=n(1039),i=n(483),a=n(485)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Line=void 0;var r=n(1),i=n(24),a=n(512),o=n(1087);n(1088);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return r.__extends(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;a.meta({chart:e,options:n}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Line=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pie=void 0;var r=n(1),i=n(14),a=n(24),o=n(15),s=n(1128),l=n(525),u=n(526);n(527);var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return r.__extends(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=o.processIllegalData(e.data,n),a=o.processIllegalData(t,n);u.isAllZero(r,n)||u.isAllZero(a,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(a),s.pieAnnotation({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e}(a.Plot);e.Pie=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scatter=void 0;var r=n(1),i=n(14),a=n(24),o=n(15),s=n(1154),l=n(1156);n(1157);var u=function(t){function e(e,n){var a=t.call(this,e,n)||this;return a.type="scatter",a.on(i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,(function(t){var e,n,o=a,l=o.options,u=o.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===i.BRUSH_FILTER_EVENTS.FILTER){var c=a.chart.filterData(a.chart.getData());s.meta({chart:u,options:r.__assign(r.__assign({},l),{data:c})})}(null===(n=t.data)||void 0===n?void 0:n.source)===i.BRUSH_FILTER_EVENTS.RESET&&s.meta({chart:u,options:l})})),a}return r.__extends(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption(s.transformOptions(o.deepAssign({},this.options,{data:t})));var e=this.options,n=this.chart;s.meta({chart:n,options:e}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(a.Plot);e.Scatter=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.getArcParams=e.Shape=e.Group=e.Canvas=void 0;var r=n(1),i=n(143);e.Shape=i,r.__exportStar(n(26),e);var a=n(913);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return a.default}});var o=n(260);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return o.default}});var s=n(438);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return s.default}}),e.version="0.5.12"},function(t,e,n){"use strict";var r,i=n(2)(n(6)),a=SyntaxError,o=Function,s=TypeError,l=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(C){u=null}var c=function(){throw new s},f=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(e){return c}}}():c,d=n(650)(),p=Object.getPrototypeOf||function(t){return t.__proto__},h={},g="undefined"===typeof Uint8Array?r:p(Uint8Array),v={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?p(p([][Symbol.iterator]())):r,"%JSON%":"object"===("undefined"===typeof JSON?"undefined":(0,i.default)(JSON))?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?p(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":f,"%TypedArray%":g,"%TypeError%":s,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},y=function t(e){var n;if("%AsyncFunction%"===e)n=l("async function () {}");else if("%GeneratorFunction%"===e)n=l("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=l("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(n=p(i.prototype))}return v[e]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(237),x=n(652),_=b.call(Function.call,Array.prototype.concat),O=b.call(Function.apply,Array.prototype.splice),P=b.call(Function.call,String.prototype.replace),w=b.call(Function.call,String.prototype.slice),M=b.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,E=function(t,e){var n,r=t;if(x(m,r)&&(r="%"+(n=m[r])[0]+"%"),x(v,r)){var i=v[r];if(i===h&&(i=y(r)),"undefined"===typeof i&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new a("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,t))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(t){var e=w(t,0,1),n=w(t,-1);if("%"===e&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return P(t,S,(function(t,e,n,i){r[r.length]=n?P(i,A,"$1"):e||t})),r}(t),r=n.length>0?n[0]:"",i=E("%"+r+"%",e),o=i.name,l=i.value,c=!1,f=i.alias;f&&(r=f[0],O(n,_([0,1],f)));for(var d=1,p=!0;d=n.length){var m=u(l,h);l=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:l[h]}else p=x(l,h),l=l[h];p&&!c&&(v[o]=l)}}return l}},function(t,e,n){"use strict";var r=n(651);t.exports=Function.prototype.bind||r},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(56)),a=function(t,e){return!!(0,i.default)(t)&&t.indexOf(e)>-1};e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6)),a=function(t){return"object"===(0,i.default)(t)&&null!==t};e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(107)),a=r(n(57)),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return(0,i.default)(t,(function(n,r){(0,a.default)(t)&&"prototype"===r||e.push(n)})),e};e.default=o},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.SearchBotDeviceInfo=e.ReactNativeInfo=e.NodeInfo=e.BrowserInfo=e.BotInfo=void 0,e.browserName=function(t){var e=d(t);return e?e[0]:null},e.detect=function(t){return t?p(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!==typeof navigator?p(navigator.userAgent):g()},e.detectOS=h,e.getNodeVersion=g,e.parseUserAgent=p;var n=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i=0&&e._call.call(null,t),e=e._next;--s}function _(){d=(f=h.now())+p,s=l=0;try{x()}finally{s=0,function(){for(var t,e,n=i,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);a=t,P(r)}(),d=0}}function O(){var t=h.now(),e=t-f;e>c&&(p-=e,f=t)}function P(t){s||(l&&(l=clearTimeout(l)),t-d>24?(t<1/0&&(l=setTimeout(_,t-h.now()-p)),u&&(u=clearInterval(u))):(u||(f=h.now(),u=setInterval(O,c)),s=1,g(_)))}m.prototype=b.prototype={constructor:m,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?v():+n)+(null==e?0:+e),this._next||a===this||(a?a._next=this:i=this,a=this),this._call=t,this._time=n,P()},stop:function(){this._call&&(this._call=null,this._time=1/0,P())}}},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.Color=o,e.Rgb=A,e.darker=e.brighter=void 0,e.default=O,e.hsl=k,e.hslConvert=L,e.rgb=S,e.rgbConvert=M;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=o?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(246));function a(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){}var s=.7;e.darker=s;var l=1/s;e.brighter=l;var u="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",f="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d=/^#([0-9a-f]{3,8})$/,p=new RegExp("^rgb\\(".concat(u,",").concat(u,",").concat(u,"\\)$")),h=new RegExp("^rgb\\(".concat(f,",").concat(f,",").concat(f,"\\)$")),g=new RegExp("^rgba\\(".concat(u,",").concat(u,",").concat(u,",").concat(c,"\\)$")),v=new RegExp("^rgba\\(".concat(f,",").concat(f,",").concat(f,",").concat(c,"\\)$")),y=new RegExp("^hsl\\(".concat(c,",").concat(f,",").concat(f,"\\)$")),m=new RegExp("^hsla\\(".concat(c,",").concat(f,",").concat(f,",").concat(c,"\\)$")),b={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 x(){return this.rgb().formatHex()}function _(){return this.rgb().formatRgb()}function O(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=d.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?P(e):3===n?new A(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?w(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?w(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=p.exec(t))?new A(e[1],e[2],e[3],1):(e=h.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=g.exec(t))?w(e[1],e[2],e[3],e[4]):(e=v.exec(t))?w(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=y.exec(t))?F(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?F(e[1],e[2]/100,e[3]/100,e[4]):b.hasOwnProperty(t)?P(b[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function P(t){return new A(t>>16&255,t>>8&255,255&t,1)}function w(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function M(t){return t instanceof o||(t=O(t)),t?new A((t=t.rgb()).r,t.g,t.b,t.opacity):new A}function S(t,e,n,r){return 1===arguments.length?M(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(){return"#".concat(T(this.r)).concat(T(this.g)).concat(T(this.b))}function C(){var t=j(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(I(this.r),", ").concat(I(this.g),", ").concat(I(this.b)).concat(1===t?")":", ".concat(t,")"))}function j(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function I(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function T(t){return((t=I(t))<16?"0":"")+t.toString(16)}function F(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new D(t,e,n,r)}function L(t){if(t instanceof D)return new D(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=O(t)),!t)return new D;if(t instanceof D)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,l=a-i,u=(a+i)/2;return l?(s=e===a?(n-r)/l+6*(n0&&u<1?0:s,new D(s,l,u,t.opacity)}function k(t,e,n,r){return 1===arguments.length?L(t):new D(t,e,n,null==r?1:r)}function D(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function R(t){return(t=(t||0)%360)<0?t+360:t}function N(t){return Math.max(0,Math.min(1,t||0))}function B(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,i.default)(o,O,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:x,formatHex:x,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return L(this).formatHsl()},formatRgb:_,toString:_}),(0,i.default)(A,S,(0,i.extend)(o,{brighter:function(t){return t=null==t?l:Math.pow(l,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?s:Math.pow(s,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new A(I(this.r),I(this.g),I(this.b),j(this.opacity))},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:E,formatHex:E,formatHex8:function(){return"#".concat(T(this.r)).concat(T(this.g)).concat(T(this.b)).concat(T(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:C,toString:C})),(0,i.default)(D,k,(0,i.extend)(o,{brighter:function(t){return t=null==t?l:Math.pow(l,t),new D(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?s:Math.pow(s,t),new D(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,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(B(t>=240?t-240:t+120,i,r),B(t,i,r),B(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new D(R(this.h),N(this.s),N(this.l),j(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=j(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(R(this.h),", ").concat(100*N(this.s),"%, ").concat(100*N(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},e.extend=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Object.defineProperty(e,"__esModule",{value:!0}),e.basis=r,e.default=function(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),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=id&&(d=(i=[f,d])[0],f=i[1]),c<=2)return[f,d];for(var p=(d-f)/(c-1),h=[],g=0;g0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return(0,o.isNumberEqual)(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,o.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),(0,o.each)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var a=0;a0){var n=(0,o.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r===0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.offsetX,s=r.offsetY,u=r.rotate,c=r.formatter,f=this.getSidePoint(t.point,i),d=this.getSideVector(i,f),p=c?c(t.name,t,e):t.name,h=r.style;h=(0,o.isFunction)(h)?(0,o.get)(this.get("theme"),["label","style"],{}):h;var g=(0,o.mix)({x:f.x+a,y:f.y+s,text:p,textAlign:this.getTextAnchor(d),textBaseline:this.getTextBaseline(d)},h);return u&&(g.matrix=(0,l.getMatrixByAngle)(f,u)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,o.each)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),a=(0,o.get)(this.get("theme"),["label","style"],{}),s=this.get("label"),l=s.style,u=s.formatter;if((0,o.isFunction)(l)){var c=i.map((function(t){return(0,o.get)(t.get("delegateObject"),"tick")}));(0,o.each)(i,(function(t,e){var n=t.get("delegateObject").tick,r=u?u(n.name,n,e):n.name,i=(0,o.mix)({},a,l(r,e,c));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,s=void 0===i?0:i,u=t.autoRotate,c=e.fontSize,f=.5;"start"===n?f=0:"end"===n&&(f=1);var d=this.getTickPoint(f),p=this.getSidePoint(d,r||s+c/2),h=(0,o.mix)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,v=g;if((0,o.isNil)(g)&&u){var y=this.getAxisVector(d);v=a.ext.angleTo(y,[1,0],!0)}if(v){var m=(0,l.getMatrixByAngle)(p,v);h.matrix=m}return h},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=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,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var r=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),a=e.getBBox(),o=a.maxX,s=a.maxY,l=a.height,u=this.get("title").iconStyle,c=l/2,f=c/6,d=o+4,p=s-l/2,h=[d+c,p-c],g=h[0],v=h[1],y=[g+c,v+c],m=y[0],b=y[1],x=[g,b+c],_=x[0],O=x[1],P=[d,v+c],w=P[0],M=P[1],S=[d+c,p-l/4],A=S[0],E=S[1],C=[A,E+f],j=C[0],I=C[1],T=[j,I+f],F=T[0],L=T[1],k=[F,L+3*c/4],D=k[0],R=k[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,i.__assign)({path:[["M",g,v],["A",c,c,0,0,1,m,b],["A",c,c,0,0,1,_,O],["A",c,c,0,0,1,w,M],["A",c,c,0,0,1,g,v],["M",A,E],["L",j,I],["M",F,L],["L",D,R]],lineWidth:f,matrix:n},u)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:d,y:p-l/2,width:l,height:l,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var a=(0,u.getStatesStyle)(t,"label",n);a&&i.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&s.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=(0,u.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(o){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&o.attr(l)}}else i&&i.attr(r.style),o&&o.attr(a.style)},e}(s.default),d=f;e.default=d},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(41)),s=n(90),l=r(n(58)),u=n(42),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:l.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:l.default.fontFamily}},textBackground:{padding:5,style:{stroke:l.default.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,r=e.autoRotate,o=e.content;if(!(0,a.isNil)(o)){var l=this.getTextPoint(),u=null;if(r){var c=this.getRotateAngle();u=(0,s.getMatrixByAngle)(l,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},l),{text:o,matrix:u}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,i.__assign)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var a=n.getBBox(),o=(0,u.formatPadding)(r.padding),s=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,i.__assign)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(o.default),f=c;e.default=f},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(41)),s=r(n(58)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:s.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),i=this.get("alternateColor"),o=null;(0,a.each)(r,(function(s,l){var u=s.id||l;if(n){var c=e.getPathStyle();c=(0,a.isFunction)(c)?c(s,l,r):c;var f=e.getElementId("line-"+u),d=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:f,attrs:(0,a.mix)({path:d},c)})}if(i&&l>0){var p=e.getElementId("region-"+u),h=l%2===0;if((0,a.isString)(i))h&&e.drawAlternateRegion(p,t,o.points,s.points,i);else{var g=h?i[1]:i[0];e.drawAlternateRegion(p,t,o.points,s.points,g)}}o=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var a=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:i}})},e}(o.default),u=l;e.default=u},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(41)),o=n(42),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},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"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),(0,o.createBBox)(e.minX,e.minY,i,a)},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"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},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(),r=(0,o.formatPadding)(e.padding),a=(0,i.__assign)({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,i.__assign)({text:o,x:e.x,y:e.y},a)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=(0,o.formatPadding)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(a.default),l=s;e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VALUE_CLASS=e.TITLE_CLASS=e.NAME_CLASS=e.MARKER_CLASS=e.LIST_ITEM_CLASS=e.LIST_CLASS=e.CROSSHAIR_Y=e.CROSSHAIR_X=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-tooltip",e.TITLE_CLASS="g2-tooltip-title",e.LIST_CLASS="g2-tooltip-list",e.LIST_ITEM_CLASS="g2-tooltip-list-item",e.MARKER_CLASS="g2-tooltip-marker",e.VALUE_CLASS="g2-tooltip-value",e.NAME_CLASS="g2-tooltip-name",e.CROSSHAIR_X="g2-tooltip-crosshair-x",e.CROSSHAIR_Y="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(143),o=n(144),s=n(0),l=n(51),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.onCanvasChange=function(t){o.refreshElement(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),o.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];s.each(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=s.min(e),a=s.max(e),o=s.min(n),u=s.max(n);r={minX:i,minY:o,x:i,y:o,maxX:a,maxY:u,width:a-i,height:u-o};var c=this.cfg.canvas;if(c){var f=c.getViewRange();this.set("isInView",l.intersectRect(r,f))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),o.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),o.drawChildren(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}(i.AbstractGroup);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refreshElement=e.drawChildren=void 0;var r=n(145),i=n(72);e.drawChildren=function(t,e){e.forEach((function(e){e.draw(t)}))},e.refreshElement=function(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var a=n.get("context"),o=t.getParent(),s=o?o.getChildren():[n],l=t.get("el");if("remove"===e)if(t.get("isClipShape")){var u=l&&l.parentNode,c=u&&u.parentNode;u&&c&&c.removeChild(u)}else l&&l.parentNode&&l.parentNode.removeChild(l);else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)i.moveTo(l,s.indexOf(t));else if("sort"===e){var f=t.get("children");f&&f.length&&i.sortDom(t,(function(t,e){return f.indexOf(t)-f.indexOf(e)?1:0}))}else"clear"===e?l&&(l.innerHTML=""):"matrix"===e?r.setTransform(t):"clip"===e?r.setClip(t,a):"attr"===e||"add"===e&&t.draw(a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(0),o=n(184),s=n(261),l=n(145),u=n(52),c=n(72),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=c.createSVGElement("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 r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.getShapeBase=function(){return o},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(),l.setClip(this,t),this.createPath(t),e.length&&s.drawChildren(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");a.each(e||n,(function(t,e){u.SVG_ATTR_MAP[e]&&r.setAttribute(u.SVG_ATTR_MAP[e],t)})),l.setTransform(this)},e}(i.AbstractGroup);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return(0,r.__extends)(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}((0,r.__importDefault)(n(126)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=e.Facet=void 0;var r=n(0),i=n(105);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return i.Facet}});var a={};e.getFacet=function(t){return a[(0,r.lowerCase)(t)]},e.registerFacet=function(t,e){a[(0,r.lowerCase)(t)]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAxisTitleText=e.getAxisDirection=e.getAxisOption=e.getCircleAxisCenterRadius=e.getAxisTitleOptions=e.getAxisThemeCfg=e.getAxisFactorByRegion=e.isVertical=e.getAxisFactor=e.getAxisRegion=e.getCircleAxisRelativeRegion=e.getLineAxisRelativeRegion=void 0;var r=n(0),i=n(21),a=n(111),o=n(32);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.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 l(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 u(t){var e=t.start,n=t.end;return e.x===n.x}e.getLineAxisRelativeRegion=s,e.getCircleAxisRelativeRegion=l,e.getAxisRegion=function(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=l(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}},e.getAxisFactor=function(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1},e.isVertical=u,e.getAxisFactorByRegion=function(t,e){var n=t.start,r=t.end;return u(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1},e.getAxisThemeCfg=function(t,e){var n=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(n,["common"],{}),(0,r.deepMix)({},(0,r.get)(n,[e],{})))},e.getAxisTitleOptions=function(t,e,n){var i=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(i,["common","title"],{}),(0,r.deepMix)({},(0,r.get)(i,[e,"title"],{})),n)},e.getCircleAxisCenterRadius=function(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,a=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[a.x-r.x,a.y-r.y],l=[1,0],u=a.y>r.y?o.vec2.angle(s,l):-1*o.vec2.angle(s,l),c=u+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),startAngle:u,endAngle:c}},e.getAxisOption=function(t,e){return(0,r.isBoolean)(t)?!1!==t&&{}:(0,r.get)(t,[e])},e.getAxisDirection=function(t,e){return(0,r.get)(t,"position",e)},e.getAxisTitleText=function(t,e){return(0,r.get)(e,["title","text"],(0,a.getName)(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.Action=e.Interaction=e.createInteraction=e.registerInteraction=e.getInteraction=void 0;var r=n(1),i=n(0),a=(0,r.__importDefault)(n(936)),o={};function s(t){return o[(0,i.lowerCase)(t)]}e.getInteraction=s,e.registerInteraction=function(t,e){o[(0,i.lowerCase)(t)]=e},e.createInteraction=function(t,e,n){var r=s(t);if(!r)return null;if((0,i.isPlainObject)(r)){var o=(0,i.mix)((0,i.clone)(r),n);return new a.default(e,o)}return new r(e,n)};var l=n(445);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var u=n(185);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return u.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return u.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return u.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePadding=e.isAutoPadding=void 0;var r=n(1),i=n(0);e.isAutoPadding=function(t){return!(0,i.isNumber)(t)&&!(0,i.isArray)(t)},e.parsePadding=function(t){void 0===t&&(t=0);var e=(0,i.isArray)(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,r.__spreadArray)((0,r.__spreadArray)([],e,!0),e,!0);break;case 3:e=(0,r.__spreadArray)((0,r.__spreadArray)([],e,!0),[e[1]],!1);break;default:e=e.slice(0,4)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(69),i=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 r.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="+this.type+")]"},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(179),o=n(97),s=(0,r.__importDefault)(n(263)),l=n(46),u=n(21),c=n(270),f=function(t){function e(e){var n=t.call(this,e)||this;n.states=[];var r=e.shapeFactory,i=e.container,a=e.offscreenGroup,o=e.elementIndex,s=e.visible,l=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=a,n.visible=l,n.elementIndex=o,n}return(0,r.__extends)(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.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?(0,o.doAnimate)(n,i,{coordinate:e.coordinate,toAttrs:(0,r.__assign)({},n.attr())}):n.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=void 0,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,r=n.states,i=n.shapeFactory,o=n.model,s=n.shape,l=n.shapeType,u=r.indexOf(t);if(e){if(u>-1)return;r.push(t),"active"!==t&&"selected"!==t||null===s||void 0===s||s.toFront()}else{if(-1===u)return;r.splice(u,1),"active"!==t&&"selected"!==t||(this.geometry.zIndexReversed?s.setZIndex(this.geometry.elements.length-this.elementIndex):s.setZIndex(this.elementIndex))}var c=i.drawShape(l,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,c,r,null):this.syncShapeStyle(s,c,["reset"],null),c.remove(!0);var f={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",f),(0,a.propagationDelegate)(this.shape,"statechange",f)},e.prototype.clearStates=function(){var t=this,e=this.states;(0,i.each)(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.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,r=t.shapeFactory,a=n.stateOption,o=r.defaultShapeType,s=r.theme[e]||r.theme[o];this.statesStyle=(0,i.deepMix)({},s,a)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=(0,i.get)(n,[t,"style"],{}),a=r[e]||r;return(0,i.isFunction)(a)?a(this):a},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var a=n[t];return a?(0,r.__assign)((0,r.__assign)({},a),{callback:function(){var t;(0,i.isFunction)(a.callback)&&a.callback(),null===(t=e.geometry)||void 0===t||t.emit(u.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):a}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var a=this,s=a.shapeFactory,l=a.container,c=a.shapeType;if(this.shape=s.drawShape(c,t,l),this.shape){this.setShapeInfo(this.shape,t);var f=this.shape.cfg.name;f?(0,i.isString)(f)&&(this.shape.cfg.name=["element",f]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var d=e?"enter":"appear",p=this.getAnimateCfg(d);p&&(null===(n=this.geometry)||void 0===n||n.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(this.shape,p,{coordinate:s.coordinate,toAttrs:(0,r.__assign)({},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;t.cfg.origin=e,t.cfg.element=this,t.isGroup()&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,a){var s,f=this;if(void 0===n&&(n=[]),void 0===a&&(a=0),t&&e){var d=t.get("clipShape"),p=e.get("clipShape");if(this.syncShapeStyle(d,p,n,r),t.isGroup())for(var h=t.get("children"),g=e.get("children"),v=0;v1){o.sort();var y=function(t,e){var n=t.length,i=t;(0,r.isString)(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var a=i[1]-i[0],o=2;os&&(a=s)}return a}(o,a);l=(a.max-a.min)/y,o.length>l&&(l=o.length)}var m=a.range,b=1/l,x=1;if(n.isPolar?x=n.isTransposed&&l>1?g:v:(a.isLinear&&(b*=m[1]-m[0]),x=h),!(0,r.isNil)(c)&&c>=0?b=(1-c/u*(l-1))/l:b*=x,t.getAdjust("dodge")){var _=function(t,e){if(e){var n=(0,r.flatten)(t);return(0,r.valuesOfKey)(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);!(0,r.isNil)(f)&&f>=0?b=(b-f/u*(_-1))/_:!(0,r.isNil)(c)&&c>=0?(b*=x,b/=_):b/=_,b=b>=0?b:0}if(!(0,r.isNil)(d)&&d>=0){var O=d/u;b>O&&(b=O)}if(!(0,r.isNil)(p)&&p>=0){var P=p/u;b1){for(var f=n.addGroup(),d=0,p=u;d=r&&t<=i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processIllegalData=e.transformDataToNodeLinkData=e.adjustYMetaByZero=void 0;var r=n(1),i=n(0),a=n(500),o=n(499);e.adjustYMetaByZero=function(t,e){var n=t.filter((function(t){var n=i.get(t,[e]);return i.isNumber(n)&&!isNaN(n)})),r=n.every((function(t){return i.get(t,[e])>=0})),a=n.every((function(t){return i.get(t,[e])<=0}));return r?{min:0}:a?{max:0}:{}},e.transformDataToNodeLinkData=function(t,e,n,i,a){if(void 0===a&&(a=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],l={},u=-1;return t.forEach((function(t){var c=t[e],f=t[n],d=t[i],p=o.pick(t,a);l[c]||(l[c]=r.__assign({id:++u,name:c},p)),l[f]||(l[f]=r.__assign({id:++u,name:f},p)),s.push(r.__assign({source:l[c].id,target:l[f].id,value:d},p))})),{nodes:Object.values(l).sort((function(t,e){return t.id-e.id})),links:s}},e.processIllegalData=function(t,e){var n=i.filter(t,(function(t){var n=t[e];return null===n||"number"===typeof n&&!isNaN(n)}));return a.log(a.LEVEL.WARN,n.length===t.length,"illegal data existed in chart data."),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveAllPadding=e.getAdjustAppendPadding=e.normalPadding=void 0;var r=n(0);function i(t){if(r.isNumber(t))return[t,t,t,t];if(r.isArray(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]}e.normalPadding=i,e.getAdjustAppendPadding=function(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var r=i(t),a=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+a[0],r[1]+a[1],r[2]+a[2],r[3]+a[3]]},e.resolveAllPadding=function(t){var e=t.map((function(t){return i(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n}},function(t,e,n){"use strict";var r=n(2)(n(6));function i(){return"object"===("undefined"===typeof window?"undefined":(0,r.default)(window))?null===window||void 0===window?void 0:window.devicePixelRatio:2}Object.defineProperty(e,"__esModule",{value:!0}),e.transformMatrix=e.getSymbolsPosition=e.getUnitPatternSize=e.drawBackground=e.initCanvas=e.getPixelRatio=void 0,e.getPixelRatio=i,e.initCanvas=function(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),r=i();return n.width=t*r,n.height=e*r,n.style.width=t+"px",n.style.height=e+"px",n.getContext("2d").scale(r,r),n},e.drawBackground=function(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,a=e.opacity;t.globalAlpha=a,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()},e.getUnitPatternSize=function(t,e,n){var r=t+e;return n?2*r:r},e.getSymbolsPosition=function(t,e){return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]},e.transformMatrix=function(t,e){var n=e*Math.PI/180;return{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}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProgressData=void 0;var r=n(0),i=n(291);e.getProgressData=function(t){var e=r.clamp(i.isRealNumber(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(34),i=n(15),a=n(43),o=n(154),s=n(118),l=n(292);function u(t){var e=t.chart,n=t.options,r=n.data,l=n.color,u=n.areaStyle,c=n.point,f=n.line,d=null===c||void 0===c?void 0:c.state,p=s.getTinyData(r);e.data(p);var h=i.deepAssign({},t,{options:{xField:o.X_FIELD,yField:o.Y_FIELD,area:{color:l,style:u},line:f,point:c}}),g=i.deepAssign({},h,{options:{tooltip:!1}}),v=i.deepAssign({},h,{options:{tooltip:!1,state:d}});return a.area(h),a.line(g),a.point(v),e.axis(!1),e.legend(!1),t}function c(t){var e,n,a=t.options,u=a.xAxis,c=a.yAxis,f=a.data,d=s.getTinyData(f);return i.flow(r.scale(((e={})[o.X_FIELD]=u,e[o.Y_FIELD]=c,e),((n={})[o.X_FIELD]={type:"cat"},n[o.Y_FIELD]=l.adjustYMetaByZero(d,o.Y_FIELD),n)))(t)}e.meta=c,e.adaptor=function(t){return i.flow(r.pattern("areaStyle"),u,c,r.tooltip,r.theme,r.animation,r.annotation())(t)}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.Node=P,e.computeHeight=O,e.default=m;var i=r(n(229)),a=r(n(1093)),o=r(n(1094)),s=r(n(1095)),l=r(n(1096)),u=r(n(1097)),c=r(n(1098)),f=r(n(1099)),d=r(n(1100)),p=r(n(1101)),h=r(n(1102)),g=r(n(1103)),v=r(n(1104)),y=r(n(1105));function m(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=x)):void 0===e&&(e=b);for(var n,r,i,a,o,s=new P(t),l=[s];n=l.pop();)if((i=e(n.data))&&(o=(i=Array.from(i)).length))for(n.children=i,a=o-1;a>=0;--a)l.push(r=i[a]=new P(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(O)}function b(t){return t.children}function x(t){return Array.isArray(t)?t[1]:null}function _(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function O(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function P(t){this.data=t,this.depth=this.height=0,this.parent=null}P.prototype=m.prototype=(0,i.default)({constructor:P,count:a.default,each:o.default,eachAfter:l.default,eachBefore:s.default,find:u.default,sum:c.default,sort:f.default,path:d.default,ancestors:p.default,descendants:h.default,leaves:g.default,links:v.default,copy:function(){return m(this).eachBefore(_)}},Symbol.iterator,y.default)},function(t,e,n){"use strict";function r(t){if("function"!==typeof t)throw new Error;return t}Object.defineProperty(e,"__esModule",{value:!0}),e.optional=function(t){return null==t?null:r(t)},e.required=r},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.phi=e.default=void 0,e.squarifyRatio=s;var i=r(n(155)),a=r(n(194)),o=(1+Math.sqrt(5))/2;function s(t,e,n,r,o,s){for(var l,u,c,f,d,p,h,g,v,y,m,b=[],x=e.children,_=0,O=0,P=x.length,w=e.value;_h&&(h=u),m=d*d*y,(g=Math.max(h/m,m/p))>v){d-=u;break}v=g}b.push(l={value:d,dice:c1?e:1)},n}(o);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.conversionTagComponent=e.transformData=void 0;var r=n(1),i=n(0),a=n(120);e.transformData=function(t,e,n){var r=n.yField,o=n.maxSize,s=n.minSize,l=i.get(i.maxBy(e,r),[r]),u=i.isNumber(o)?o:1,c=i.isNumber(s)?s:0;return i.map(t,(function(e,n){var o=(e[r]||0)/l;return e[a.FUNNEL_PERCENT]=o,e[a.FUNNEL_MAPPING_VALUE]=(u-c)*o+c,e[a.FUNNEL_CONVERSATION]=[i.get(t,[n-1,r]),e[r]],e}))},e.conversionTagComponent=function(t){return function(e){var n=e.chart,o=e.options.conversionTag,s=n.getOptions().data;if(o){var l=o.formatter;s.forEach((function(e,u){if(!(u<=0||Number.isNaN(e[a.FUNNEL_MAPPING_VALUE]))){var c=t(e,u,s,{top:!0,text:{content:i.isFunction(l)?l(e,s):l,offsetX:o.offsetX,offsetY:o.offsetY,position:"end",autoRotate:!1,style:r.__assign({textAlign:"start",textBaseline:"middle"},o.style)}});n.annotation().line(c)}}))}return e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=e.IS_TOTAL=e.ABSOLUTE_FIELD=e.DIFF_FIELD=e.Y_FIELD=void 0,e.Y_FIELD="$$yField$$",e.DIFF_FIELD="$$diffField$$",e.ABSOLUTE_FIELD="$$absoluteField$$",e.IS_TOTAL="$$isTotal$$",e.DEFAULT_OPTIONS={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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isBetween=function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i},e.isRealNumber=function(t){return"number"===typeof t&&!isNaN(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(u,c,g,a.theme,f,d,p,a.tooltip,h,a.slider,a.interaction,a.animation,(0,a.annotation)(),a.limitInPlot)(t)},e.adjust=g,e.axis=d,e.legend=p,e.meta=c;var r=n(1),i=n(0),a=n(22),o=n(7),s=n(30),l=n(197);function u(t){var e=t.chart,n=t.options,i=n.data,a=n.color,l=n.lineStyle,u=n.lineShape,c=n.point,f=n.area,d=n.seriesField,p=null===c||void 0===c?void 0:c.state;e.data(i);var h=(0,o.deepAssign)({},t,{options:{shapeField:d,line:{color:a,style:l,shape:u},point:c&&(0,r.__assign)({color:a,shape:"circle"},c),area:f&&(0,r.__assign)({color:a},f),label:void 0}}),g=(0,o.deepAssign)({},h,{options:{tooltip:!1,state:p}}),v=(0,o.deepAssign)({},h,{options:{tooltip:!1,state:p}});return(0,s.line)(h),(0,s.point)(g),(0,s.area)(v),t}function c(t){var e,n,r=t.options,i=r.xAxis,s=r.yAxis,u=r.xField,c=r.yField,f=r.data;return(0,o.flow)((0,a.scale)(((e={})[u]=i,e[c]=s,e),((n={})[u]={type:"cat"},n[c]=(0,l.adjustYMetaByZero)(f,c),n)))(t)}function f(t){var e=t.chart,n=t.options.reflect;if(n){var r=n;(0,i.isArray)(r)||(r=[r]);var a=r.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:a})}return t}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(o,!1):e.axis(o,i),t}function p(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function h(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=(0,o.findGeometry)(e,"line");if(i){var l=i.callback,u=(0,r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:(0,r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},(0,o.transformLabel)(u))})}else s.label(!1);return t}function g(t){var e=t.chart;return t.options.isStack&&(0,i.each)(e.geometries,(function(t){t.adjust("stack")})),t}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.drawBackground=function(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,a=e.opacity;t.globalAlpha=a,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()},e.getPixelRatio=a,e.getSymbolsPosition=function(t,e){return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]},e.getUnitPatternSize=function(t,e,n){var r=t+e;return n?2*r:r},e.initCanvas=function(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),r=a();return n.width=t*r,n.height=e*r,n.style.width=t+"px",n.style.height=e+"px",n.getContext("2d").scale(r,r),n},e.transformMatrix=function(t,e){var n=e*Math.PI/180;return{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}};var i=r(n(6));function a(){return"object"===("undefined"===typeof window?"undefined":(0,i.default)(window))?null===window||void 0===window?void 0:window.devicePixelRatio:2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getGeometryOption=function(t,e,n){return l(n)?(0,a.deepAssign)({},{geometry:o.DualAxesGeometry.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,r.__assign)({geometry:o.DualAxesGeometry.Line},n)},e.getYAxisWithDefault=function(t,e){return e===o.AxisType.Left?!1!==t&&(0,a.deepAssign)({},s.DEFAULT_LEFT_YAXIS_CONFIG,t):e===o.AxisType.Right?!1!==t&&(0,a.deepAssign)({},s.DEFAULT_RIGHT_YAXIS_CONFIG,t):t},e.isColumn=l,e.isLine=function(t){return(0,i.get)(t,"geometry")===o.DualAxesGeometry.Line},e.transformObjectToArray=function(t,e){var n=t[0],r=t[1];if((0,i.isArray)(e))return[e[0],e[1]];var a=(0,i.get)(e,n),o=(0,i.get)(e,r);return[a,o]};var r=n(1),i=n(0),a=n(7),o=n(567),s=n(568);function l(t){return(0,i.get)(t,"geometry")===o.DualAxesGeometry.Column}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,i.flow)(u,(0,a.scale)({}),c,a.animation,a.theme,(0,a.annotation)())(t)},e.geometry=u;var r=n(0),i=n(7),a=n(22),o=n(30),s=n(579),l=n(307);function u(t){var e=t.chart,n=t.options,a=n.percent,u=n.progressStyle,c=n.color,f=n.barWidthRatio;e.data((0,l.getProgressData)(a));var d=(0,i.deepAssign)({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:f,interval:{style:u,color:(0,r.isString)(c)?[c,s.DEFAULT_COLOR[1]]:c},args:{zIndexReversed:!0}}});return(0,o.interval)(d),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function c(t){return t.chart.coordinate("rect").transpose(),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProgressData=function(t){var e=(0,r.clamp)((0,i.isRealNumber)(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]};var r=n(0),i=n(302)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OUTLIERS_VIEW_ID=e.DEFAULT_OPTIONS=e.BOX_SYNC_NAME=e.BOX_RANGE_ALIAS=e.BOX_RANGE=void 0;var r,i=n(19),a=n(7),o="$$range$$";e.BOX_RANGE=o;var s="low-q1-median-q3-high";e.BOX_RANGE_ALIAS=s,e.BOX_SYNC_NAME="$$y_outliers$$",e.OUTLIERS_VIEW_ID="outliers_view";var l=(0,a.deepAssign)({},i.Plot.getDefaultOptions(),{meta:(r={},r[o]={min:0,alias:s},r),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}});e.DEFAULT_OPTIONS=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.placeElementsOrdered=function(t){t&&t.geometries[0].elements.forEach((function(t){t.shape.toFront()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Y_FIELD=e.TREND_UP=e.TREND_FIELD=e.TREND_DOWN=e.DEFAULT_TOOLTIP_OPTIONS=e.DEFAULT_OPTIONS=void 0;var r=n(19),i=n(7);e.Y_FIELD="$$stock-range$$",e.TREND_FIELD="trend",e.TREND_UP="up",e.TREND_DOWN="down";var a={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var r;if("x"===t){var i=n[0];r=i?i.title:e}else r=e;return{position:"y"===t?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}};e.DEFAULT_TOOLTIP_OPTIONS=a;var o=(0,i.deepAssign)({},r.Plot.getDefaultOptions(),{tooltip:a,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"});e.DEFAULT_OPTIONS=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.conversionTagComponent=function(t){return function(e){var n=e.chart,o=e.options.conversionTag,s=n.getOptions().data;if(o){var l=o.formatter;s.forEach((function(e,u){if(!(u<=0||Number.isNaN(e[a.FUNNEL_MAPPING_VALUE]))){var c=t(e,u,s,{top:!0,text:{content:(0,i.isFunction)(l)?l(e,s):l,offsetX:o.offsetX,offsetY:o.offsetY,position:"end",autoRotate:!1,style:(0,r.__assign)({textAlign:"start",textBaseline:"middle"},o.style)}});n.annotation().line(c)}}))}return e}},e.transformData=function(t,e,n){var r=n.yField,o=n.maxSize,s=n.minSize,l=(0,i.get)((0,i.maxBy)(e,r),[r]),u=(0,i.isNumber)(o)?o:1,c=(0,i.isNumber)(s)?s:0;return(0,i.map)(t,(function(e,n){var o=(e[r]||0)/l;return e[a.FUNNEL_PERCENT]=o,e[a.FUNNEL_MAPPING_VALUE]=(u-c)*o+c,e[a.FUNNEL_CONVERSATION]=[(0,i.get)(t,[n-1,r]),e[r]],e}))};var r=n(1),i=n(0),a=n(125)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUNBURST_Y_FIELD=e.SUNBURST_PATH_FIELD=e.SUNBURST_ANCESTOR_FIELD=e.RAW_FIELDS=e.DEFAULT_OPTIONS=void 0;var r=n(19),i=n(7),a=n(157);e.SUNBURST_ANCESTOR_FIELD="ancestor-node",e.SUNBURST_Y_FIELD="value";var o="path";e.SUNBURST_PATH_FIELD=o;var s=[o,a.NODE_INDEX_FIELD,a.NODE_ANCESTORS_FIELD,a.CHILD_NODE_COUNT,"name","depth","height"];e.RAW_FIELDS=s;var l=(0,i.deepAssign)({},r.Plot.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});e.DEFAULT_OPTIONS=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isParentNode=o;var r=n(14),i=n(0),a=n(201);function o(t){var e=(0,i.get)(t,["event","data","data"],{});return(0,i.isArray)(e.children)&&e.children.length>0}function s(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,a=r.y,o=e.center,s=o.x,l=o.y,u=e.getRadius()*n;return Math.sqrt(Math.pow(s-i,2)+Math.pow(l-a,2))=n){var i=r.parsePosition([t[l],t[s.field]]);i&&d.push(i)}if(t[l]===f)return!1})),d},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,a=r.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:r.getWidth()*e+o,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+r,maxY:a.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var a=this,s=this.view.getCoordinate(),u=this.view.getCanvas(),c={};if((0,i.isNil)(e))return null;if("arc"===t){var f=e,d=f.start,p=f.end,h=(0,r.__rest)(f,["start","end"]),g=this.parsePosition(d),v=this.parsePosition(p),y=(0,l.getAngleByPoint)(s,g),m=(0,l.getAngleByPoint)(s,v);y>m&&(m=2*Math.PI+m),c=(0,r.__assign)((0,r.__assign)({},h),{center:s.getCenter(),radius:(0,l.getDistanceToCenter)(s,g),startAngle:y,endAngle:m})}else if("image"===t){var b=e;d=b.start,p=b.end,h=(0,r.__rest)(b,["start","end"]),c=(0,r.__assign)((0,r.__assign)({},h),{start:this.parsePosition(d),end:this.parsePosition(p),src:e.src})}else if("line"===t){var x=e;d=x.start,p=x.end,h=(0,r.__rest)(x,["start","end"]),c=(0,r.__assign)((0,r.__assign)({},h),{start:this.parsePosition(d),end:this.parsePosition(p),text:(0,i.get)(e,"text",null)})}else if("region"===t){var _=e;d=_.start,p=_.end,h=(0,r.__rest)(_,["start","end"]),c=(0,r.__assign)((0,r.__assign)({},h),{start:this.parsePosition(d),end:this.parsePosition(p)})}else if("text"===t){var O=this.view.getData(),P=e,w=P.position,M=P.content,S=(h=(0,r.__rest)(P,["position","content"]),M);(0,i.isFunction)(M)&&(S=M(O)),c=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},this.parsePosition(w)),h),{content:S})}else if("dataMarker"===t){var A=e,E=(w=A.position,A.point),C=A.line,j=A.text,I=A.autoAdjust,T=A.direction;h=(0,r.__rest)(A,["position","point","line","text","autoAdjust","direction"]),c=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},h),this.parsePosition(w)),{coordinateBBox:this.getCoordinateBBox(),point:E,line:C,text:j,autoAdjust:I,direction:T})}else if("dataRegion"===t){var F=e,L=(d=F.start,p=F.end,F.region),k=(j=F.text,F.lineLength);h=(0,r.__rest)(F,["start","end","region","text","lineLength"]),c=(0,r.__assign)((0,r.__assign)({},h),{points:this.getRegionPoints(d,p),region:L,text:j,lineLength:k})}else if("regionFilter"===t){var D=e,R=(d=D.start,p=D.end,D.apply),N=D.color,B=(h=(0,r.__rest)(D,["start","end","apply","color"]),this.view.geometries),z=[],V=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):z.push(e))};(0,i.each)(B,(function(t){R?(0,i.contains)(R,t.type)&&(0,i.each)(t.elements,(function(t){V(t.shape)})):(0,i.each)(t.elements,(function(t){V(t.shape)}))})),c=(0,r.__assign)((0,r.__assign)({},h),{color:N,shapes:z,start:this.parsePosition(d),end:this.parsePosition(p)})}else if("shape"===t){var G=e,W=G.render,Y=(0,r.__rest)(G,["render"]);c=(0,r.__assign)((0,r.__assign)({},Y),{render:function(t){if((0,i.isFunction)(e.render))return W(t,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var H=e,U=H.html;w=H.position,Y=(0,r.__rest)(H,["html","position"]),c=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},Y),this.parsePosition(w)),{parent:u.get("el").parentNode,html:function(t){return(0,i.isFunction)(U)?U(t,a.view):U}})}var X=(0,i.deepMix)({},n,(0,r.__assign)((0,r.__assign)({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(X.container=this.getComponentContainer(X)),X.animate=this.view.getOptions().animate&&X.animate&&(0,i.get)(e,"animate",X.animate),X.animateOption=(0,i.deepMix)({},o.DEFAULT_ANIMATE_CFG,X.animateOption,e.animateOption),X},e.prototype.isTop=function(t){return(0,i.get)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return(0,i.get)(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,r=this.getAnnotationTheme(n),a=this.getAnnotationCfg(n,t,r);(0,u.omit)(a,["container"]),e.component.update(a),(0,i.includes)(d,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),(0,i.includes)(d,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,r){(0,i.find)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(f.Controller);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.positionUpdate=void 0,e.positionUpdate=function(t,e,n){var r=n.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:a},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sectorPathUpdate=void 0;var r=n(1),i=n(205),a=n(0),o=n(46);function s(t,e){var n,r=(0,i.getArcParams)(t,e),o=r.startAngle,s=r.endAngle;return!(0,a.isNumberEqual)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),!(0,a.isNumberEqual)(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),0===e[5]&&(o=(n=[s,o])[0],s=n[1]),(0,a.isNumberEqual)(o,1.5*Math.PI)&&(o=-.5*Math.PI),(0,a.isNumberEqual)(s,-.5*Math.PI)&&(s=1.5*Math.PI),{startAngle:o,endAngle:s}}function l(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 u(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],u=i.length>1?i[1]:i[0],c=t.indexOf(o),f=t.indexOf(u),d=l(t[c-1]),p=l(t[f-1]),h=s(d,o),g=h.startAngle,v=h.endAngle,y=s(p,u),m=y.startAngle,b=y.endAngle;(0,a.isNumberEqual)(g,m)&&(0,a.isNumberEqual)(v,b)?(n=g,r=v):(n=Math.min(g,m),r=Math.max(v,b));var x=o[1],_=i[i.length-1][1];return x<_?(x=(e=[_,x])[0],_=e[1]):x===_&&(_=0),{startAngle:n,endAngle:r,radius:x,innerRadius:_}}e.sectorPathUpdate=function(t,e,n){var i=n.toAttrs,s=n.coordinate,l=i.path||[],c=l.map((function(t){return t[0]}));if(!(l.length<1)){var f=u(l),d=f.startAngle,p=f.endAngle,h=f.radius,g=f.innerRadius,v=u(t.attr("path")),y=v.startAngle,m=v.endAngle,b=s.getCenter(),x=d-y,_=p-m;0!==x||0!==_?t.animate((function(t){var e=y+t*x,n=m+t*_;return(0,r.__assign)((0,r.__assign)({},i),{path:(0,a.isEqual)(c,["M","A","A","Z"])?(0,o.getArcPath)(b.x,b.y,h,e,n):(0,o.getSectorPath)(b.x,b.y,h,e,n,g)})}),(0,r.__assign)((0,r.__assign)({},e),{callback:function(){t.attr("path",l)}})):t.attr("path",l)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.waveIn=void 0;var r=n(1),i=n(48);e.waveIn=function(t,e,n){var a=(0,i.getCoordinateClipCfg)(n.coordinate,20),o=a.type,s=a.startState,l=a.endState,u=t.setClip({type:o,attrs:s});u.animate(l,(0,r.__assign)((0,r.__assign)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),u.remove(!0)}}))}},function(t,e,n){"use strict";n.r(e);var r=n(14);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i)},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0});var a={version:!0,Shape:!0,Canvas:!0,Group:!0};Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return u.default}}),e.version=e.Shape=void 0;var o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(190));e.Shape=o;var s=n(26);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(a,t)||t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}}))}));var l=r(n(980)),u=r(n(275));function c(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(21),a=(0,r.__importDefault)(n(158));n(278);var o=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 r=e.startOnZero,i=void 0===r||r,a=e.sortable,o=void 0!==a&&a,s=e.showSinglePoint,l=void 0!==s&&s;return n.startOnZero=i,n.sortable=o,n.showSinglePoint=l,n}return(0,r.__extends)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;rr&&(r=i),i=e[0]})));for(var d=this.scales[c],p=0,h=t;p0&&!(0,i.get)(n,[r,"min"])&&e.change({min:0}),o<=0&&!(0,i.get)(n,[r,"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}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=(0,r.__importDefault)(n(158));n(276);var a=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return(0,r.__extends)(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=(0,r.__importDefault)(n(91));n(988);var a=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,r.__extends)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return(0,r.__assign)((0,r.__assign)({},n),{isStack:!!this.getAdjust("stack")})},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(91));n(462);var o=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,r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=r.x,o=r.y;if(!(0,i.isArray)(a)||!(0,i.isArray)(o)){var s=this.getXScale(),l=this.getYScale(),u=.5/s.values.length,c=.5/l.values.length;s.isCategory&&l.isCategory?(a=[a-u,a-u,a+u,a+u],o=[o-c,o+c,o+c,o-c]):(0,i.isArray)(a)?(a=[(n=a)[0],n[0],n[1],n[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):(0,i.isArray)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],a=[a-u/2,a-u/2,a+u/2,a+u/2]),r.x=a,r.y=o}return r},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(48),a=(0,r.__importDefault)(n(91));n(463);var o=n(279),s=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,r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=this.getAttribute("size");if(a){n=this.getAttributeValues(a,e)[0];var s=this.coordinate;n/=(0,i.getXDimensionLength)(s)}else this.defaultSize||(this.defaultSize=(0,o.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distribute=void 0;var r=n(0),i=n(46);e.distribute=function(t,e,n,a){if(t.length&&e.length){var o=t[0]?t[0].offset:0,s=e[0].get("coordinate"),l=s.getRadius(),u=s.getCenter();if(o>0){var c=2*(l+o)+28,f={start:s.start,end:s.end},d=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?d[0].push(t):d[1].push(t))})),d.forEach((function(t,n){var i=c/14;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})),function(t,e,n,i,a,o){var s,l=!0,u=i.start,c=i.end,f=Math.min(u.y,c.y),d=Math.abs(u.y-c.y),p=0,h=Number.MIN_VALUE,g=e.map((function(t){return t.y>p&&(p=t.y),t.yd&&(d=p-f);l;)for(g.forEach((function(t){var e=(Math.min.apply(h,t.targets)+Math.max.apply(h,t.targets))/2;t.pos=Math.min(Math.max(h,e-t.size/2),d-t.size)})),l=!1,s=g.length;s--;)if(s>0){var v=g[s-1],y=g[s];v.pos+v.size>y.pos&&(v.size+=y.size,v.targets=v.targets.concat(y.targets),v.pos+v.size>d&&(v.pos=d-v.size),g.splice(s,1),l=!0)}s=0,g.forEach((function(t){var r=f+n/2;t.targets.forEach((function(){e[s].y=t.pos+r,r+=n,s++}))}));for(var m={},b=0,x=t;br?v=r-h:c>r&&(v-=c-r),u>o?y=o-g:f>o&&(y-=f-o),v===d&&y===p||(0,i.translate)(t,v-d,y-p)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInShape=void 0;var r=n(0);e.limitInShape=function(t,e,n,i){(0,r.each)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minXi.maxX||r.maxY>i.maxY)&&t.remove(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(21),o=n(116),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},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=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),a=(0,o.getAnglePoint)({x:.5,y:.5},.5-i,r),s=5*Math.PI/4,l=1*Math.PI/4;return{start:(0,o.getAnglePoint)(a,i,s),end:(0,o.getAnglePoint)(a,i,l)}},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,r=n.fields,a=n.type,o=r[0];if(!o)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,o),l=s.length,u=[];return s.forEach((function(n,r){var c=[{field:o,value:n,values:s}],f=(0,i.filter)(t,e.getFacetDataFilter(c)),d={type:a,data:f,region:e.getRegion(l,r),columnValue:n,columnField:o,columnIndex:r,columnValuesLength:l,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};u.push(d)})),u},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},e}(n(105).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(21),o=n(116),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},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,r=this.cfg.cols,a=n[0];if(!a)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,a),s=o.length;r=r||s;var l=this.getPageCount(s,r),u=[];return o.forEach((function(n,c){var f=e.getRowCol(c,r),d=f.row,p=f.col,h=[{field:a,value:n,values:o}],g=(0,i.filter)(t,e.getFacetDataFilter(h)),v={type:e.cfg.type,data:g,region:e.getRegion(l,r,p,d),columnValue:n,rowValue:n,columnField:a,rowField:null,columnIndex:p,rowIndex:d,columnValuesLength:r,rowValuesLength:l,total:s};u.push(v)})),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,r.__assign)((0,r.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(n(105).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(21),o=n(116),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,r.__assign)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,r.__assign)({},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,r=e.type,i=n.length,a=i,o=[],s=0;s=0;i--)for(var a=0,o=this.getFacetsByLevel(t,i);a-1)||(0,u.isBetween)(n,c,f)})),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}(n(104).Controller);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getItemsOfView=void 0;var r=n(1),i=n(0),a=n(186),o=n(46),s=(0,r.__importDefault)(n(44)),l={fill:"#CCD6EC",opacity:.3};function u(t,e,n){var r=(0,a.findItemsFromViewRecurisive)(t,e,n);if(r.length){for(var o=0,s=r=(0,i.flatten)(r);o1){for(var h=r[0],g=Math.abs(e.y-h[0].y),v=0,y=r;vv.maxY&&(v=e)):(e.minXv.maxX&&(v=e)),y.x=Math.min(e.minX,y.minX),y.y=Math.min(e.minY,y.minY),y.width=Math.max(e.maxX,y.maxX)-y.x,y.height=Math.max(e.maxY,y.maxY)-y.y}));var m=e.backgroundGroup,b=e.coordinateBBox,x=void 0;if(h.isRect){var _=e.getXScale(),O=t||{},P=O.appendRatio,w=O.appendWidth;(0,i.isNil)(w)&&(P=(0,i.isNil)(P)?_.isLinear?0:.25:P,w=h.isTransposed?P*v.height:P*g.width);var M=void 0,S=void 0,A=void 0,E=void 0;h.isTransposed?(M=b.minX,S=Math.min(v.minY,g.minY)-w,A=b.width,E=y.height+2*w):(M=Math.min(g.minX,v.minX)-w,S=b.minY,A=y.width+2*w,E=b.height),x=[["M",M,S],["L",M+A,S],["L",M+A,S+E],["L",M,S+E],["Z"]]}else{var C=(0,i.head)(d),j=(0,i.last)(d),I=(0,o.getAngle)(C.getModel(),h).startAngle,T=(0,o.getAngle)(j.getModel(),h).endAngle,F=h.getCenter(),L=h.getRadius(),k=h.innerRadius*L;x=(0,o.getSectorPath)(F.x,F.y,L,I,T,k)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var D=(0,i.get)(t,"style",l);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,r.__assign)((0,r.__assign)({},D),{path:x})})}}}},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}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(31),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.showTooltip=function(t,e){var n=(0,a.getSilbings)(t);(0,i.each)(n,(function(n){var r=(0,a.getSiblingPoint)(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=(0,a.getSilbings)(t);(0,i.each)(e,(function(t){t.hideTooltip()}))},e}((0,r.__importDefault)(n(127)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(179),o=(0,r.__importDefault)(n(44)),s=n(69),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return(0,r.__extends)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,a={x:t.x,y:t.y};r&&(0,i.isEqual)(r,a)||this.showTooltip(a),this.timeStamp=n,this.location=a}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update((0,r.__assign)({title:n},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,o={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},l=e.getTheme(),u=(0,i.get)(l,["components","tooltip","domStyles"],{}),c=new s.HtmlTooltip({parent:n.get("el").parentNode,region:o,visible:!1,crosshairs:null,domStyles:(0,r.__assign)({},(0,i.deepMix)({},u,(t={},t[a.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[a.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,r.__extends)(e,t),e.prototype.active=function(){this.setState()},e}((0,r.__importDefault)(n(283)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=(0,r.__importDefault)(n(44)),a=n(31),o=n(0),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return(0,r.__extends)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,i){var a={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:(0,r.__assign)((0,r.__assign)({},(0,o.deepMix)({},a,(0,o.isFunction)(i)?i(a,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var s=(0,a.getElementValue)(t,i.field);if(!this.cache[s]){var l=(0,a.getElementsByField)(r,i.field,s),u=this.linkGroup.addGroup();this.cache[s]=u;var c=l.length;(0,o.each)(l,(function(t,r){if(r=u&&t<=c})),e.render(!0)}}},e}(a.default);e.default=s},function(t,e,n){"use strict";var r=n(949);function i(){return"undefined"!==typeof Reflect&&Reflect.get?(t.exports=i=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=i=function(t,e,n){var i=r(t,e);if(i){var a=Object.getOwnPropertyDescriptor(i,e);return a.get?a.get.call(arguments.length<3?t:n):a.value}},t.exports.__esModule=!0,t.exports.default=t.exports),i.apply(this,arguments)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(2)(n(6)),i=n(365),a="function"===typeof Symbol&&"symbol"===(0,r.default)(Symbol("foo")),o=Object.prototype.toString,s=Array.prototype.concat,l=Object.defineProperty,u=n(649)(),c=l&&u,f=function(t,e,n,r){var i;(!(e in t)||"function"===typeof(i=r)&&"[object Function]"===o.call(i)&&r())&&(c?l(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},d=function(t,e){var n=arguments.length>2?arguments[2]:{},r=i(e);a&&(r=s.call(r,Object.getOwnPropertySymbols(e)));for(var o=0;o=0&&"[object Function]"===i.call(t.callee)),n}},function(t,e,n){"use strict";var r=n(2)(n(6));t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===(0,r.default)(Symbol.iterator))return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(t,e);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},function(t,e,n){"use strict";var r=n(237),i=n(236),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(d){u=null}t.exports=function(t){var e=s(r,o,arguments);return l&&u&&l(e,"length").configurable&&u(e,"length",{value:1+c(0,t.length-(arguments.length-1))}),e};var f=function(){return s(r,a,arguments)};u?u(t.exports,"apply",{value:f}):t.exports.apply=f},function(t,e,n){"use strict";var r=n(365),i=n(367)(),a=n(653),o=Object,s=a("Array.prototype.push"),l=a("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var n=o(t);if(1===arguments.length)return n;for(var a=1;a2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else for(;s.length>=e[l]&&(n.push([i].concat(s.splice(0,e[l]))),e[l]););return t})),n};e.parsePathString=s;var l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};e.catmullRomToBezier=l;var u=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),l=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,l,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,f=0;"M"===t[0][0]&&(o=i=+t[0][1],c=a=+t[0][2],f++,r[0]=["M",i,a]);for(var d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,h=void 0,g=f,v=t.length;g1&&(r*=O=Math.sqrt(O),i*=O);var P=r*r,w=i*i,M=(o===s?-1:1)*Math.sqrt(Math.abs((P*w-P*_*_-w*x*x)/(P*_*_+w*x*x)));h=M*r*_/i+(e+l)/2,g=M*-i*x/r+(n+u)/2,d=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((u-g)/i).toFixed(9)),d=ep&&(d-=2*Math.PI),!s&&p>d&&(p-=2*Math.PI)}var S=p-d;if(Math.abs(S)>v){var A=p,E=l,C=u;p=d+v*(s&&p>d?1:-1),m=t(l=h+r*Math.cos(p),u=g+i*Math.sin(p),r,i,a,0,s,E,C,[p,A,h,g])}S=p-d;var j=Math.cos(d),I=Math.sin(d),T=Math.cos(p),F=Math.sin(p),L=Math.tan(S/4),k=4/3*r*L,D=4/3*i*L,R=[e,n],N=[e+k*I,n-D*j],B=[l+k*F,u-D*T],z=[l,u];if(N[0]=2*R[0]-N[0],N[1]=2*R[1]-N[1],c)return[N,B,z].concat(m);for(var V=[],G=0,W=(m=[N,B,z].concat(m).join().split(",")).length;G7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},y=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<12;p++){var h=u*c[p]+u,g=y(h,t,n,i,o),v=y(h,e,r,a,s),m=g*g+v*v;d+=f[p]*Math.sqrt(m)}return u*d},b=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,d=[],p=[[],[]],h=0;h<2;++h)if(0===h?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(f=-c/u)>0&&f<1&&d.push(f)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var y=(-u+v)/(2*l);y>0&&y<1&&d.push(y);var m=(-u-v)/(2*l);m>0&&m<1&&d.push(m)}}for(var b,x=d.length,_=x;x--;)b=1-(f=d[x]),p[0][x]=b*b*b*t+3*b*b*f*n+3*b*f*f*i+f*f*f*o,p[1][x]=b*b*b*e+3*b*b*f*r+3*b*f*f*a+f*f*f*s;return p[0][_]=t,p[1][_]=e,p[0][_+1]=o,p[1][_+1]=s,p[0].length=p[1].length=_+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),d=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},_=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},O=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=v,a};e.rectPath=O;var P=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:O(t,e,n,r),vb:[t,e,n,r].join(" ")}},w=function(t,e,n,i,a,o,s,l){(0,r.isArray)(t)||(t=[t,e,n,i,a,o,s,l]);var u=b.apply(null,t);return P(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},M=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),d=l*l,p=d*l,h=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(a-2*r+e),v=n+2*l*(i-n)+d*(o-2*i+n),y=r+2*l*(a-r)+d*(s-2*a+r);return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:h,y:g},n:{x:v,y:y},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(h-v,g-y)/Math.PI}},S=function(t,e,n){if(!function(t,e){return t=P(t),e=P(e),_(e,t.x,t.y)||_(e,t.x2,t.y)||_(e,t.x,t.y2)||_(e,t.x2,t.y2)||_(t,e.x,e.y)||_(t,e.x2,e.y)||_(t,e.x,e.y2)||_(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(w(t),w(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},l=n?0:[],u=0;u=0&&O<=1&&S>=0&&S<=1&&(n?l+=1:l.push({x:b.x,y:b.y,t1:O,t2:S}))}}return l};function A(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r};e.fillPath=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;l--)o=a[l].index,"add"===a[l].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var f=i-(r=t.length);if(r0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=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(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(126)),o=n(102),s=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,o.mix)(r,e),n}return(0,i.__extends)(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}(a.default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(393)),s=n(102),l={},u="_INDEX";function c(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){c(t,e)}))}}function f(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){f(t,e)}))}}var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?((0,s.each)(l,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?((0,s.each)(l,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,s.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var o=t[a];if((0,s.isAllowCapture)(o)&&(o.isGroup()?i=o.getShape(e,n,r):o.isHit(e,n)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),(0,s.removeFromArray)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&c(t,e),r&&f(t,r),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,e=this.getChildren();(0,s.each)(e,(function(t,e){return t[u]=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e[u]-n[u]:r})),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){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().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,s.each)(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,s.each)(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.default),p=d;e.default=p},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(32),s=n(102),l=n(243),u=r(n(391)),c=o.ext.transform,f="matrix",d=["zIndex","capture","visible","type"],p=["repeat"];function h(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}var g=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,a.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,i.__extends)(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;n0?r=function(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,a.each)(t,(function(t){n+rt.delay&&(0,a.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}(r,_):n.addAnimator(this),r.push(_),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,a.each)(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,a.each)(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").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,a.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents(),"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],u=o.get("name");if(u){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&(0,s.isParent)(o,n))return"break";(0,a.isArray)(u)?(0,a.each)(u,(function(t){r.emitDelegateEvent(o,t,e)})):l.emitDelegateEvent(o,u,e)}},l=this,u=0;u0?(n[0]=2*(u*s+d*r+c*o-f*a)/p,n[1]=2*(c*s+d*a+f*r-u*o)/p,n[2]=2*(f*s+d*o+u*a-c*r)/p):(n[0]=2*(u*s+d*r+c*o-f*a),n[1]=2*(c*s+d*a+f*r-u*o),n[2]=2*(f*s+d*o+u*a-c*r)),l(t,e,n),t},e.fromRotation=function(t,e,n){var r,a,o,s=n[0],l=n[1],u=n[2],c=Math.hypot(s,l,u);return c0?(m=2*Math.sqrt(y+1),t[3]=.25*m,t[0]=(p-g)/m,t[1]=(h-c)/m,t[2]=(l-f)/m):s>d&&s>v?(m=2*Math.sqrt(1+s-d-v),t[3]=(p-g)/m,t[0]=.25*m,t[1]=(l+f)/m,t[2]=(h+c)/m):d>v?(m=2*Math.sqrt(1+d-s-v),t[3]=(h-c)/m,t[0]=(l+f)/m,t[1]=.25*m,t[2]=(p+g)/m):(m=2*Math.sqrt(1+v-s-d),t[3]=(l-f)/m,t[0]=(h+c)/m,t[1]=(p+g)/m,t[2]=.25*m),t},e.getScaling=u,e.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},e.identity=o,e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],p=e[11],h=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*o,b=n*l-i*o,x=n*u-a*o,_=r*l-i*s,O=r*u-a*s,P=i*u-a*l,w=c*g-f*h,M=c*v-d*h,S=c*y-p*h,A=f*v-d*g,E=f*y-p*g,C=d*y-p*v,j=m*C-b*E+x*A+_*S-O*M+P*w;return j?(j=1/j,t[0]=(s*C-l*E+u*A)*j,t[1]=(i*E-r*C-a*A)*j,t[2]=(g*P-v*O+y*_)*j,t[3]=(d*O-f*P-p*_)*j,t[4]=(l*S-o*C-u*M)*j,t[5]=(n*C-i*S+a*M)*j,t[6]=(v*x-h*P-y*b)*j,t[7]=(c*P-d*x+p*b)*j,t[8]=(o*E-s*S+u*w)*j,t[9]=(r*S-n*E-a*w)*j,t[10]=(h*O-g*x+y*m)*j,t[11]=(f*x-c*O-p*m)*j,t[12]=(s*M-o*A-l*w)*j,t[13]=(n*A-r*M+i*w)*j,t[14]=(g*b-h*_-v*m)*j,t[15]=(c*_-f*b+d*m)*j,t):null},e.lookAt=function(t,e,n,r){var a,s,l,u,c,f,d,p,h,g,v=e[0],y=e[1],m=e[2],b=r[0],x=r[1],_=r[2],O=n[0],P=n[1],w=n[2];return Math.abs(v-O)0&&(c*=p=1/Math.sqrt(p),f*=p,d*=p);var h=l*d-u*f,g=u*c-s*d,v=s*f-l*c;return(p=h*h+g*g+v*v)>0&&(h*=p=1/Math.sqrt(p),g*=p,v*=p),t[0]=h,t[1]=g,t[2]=v,t[3]=0,t[4]=f*v-d*g,t[5]=d*h-c*v,t[6]=c*g-f*h,t[7]=0,t[8]=c,t[9]=f,t[10]=d,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},e.translate=function(t,e,n){var r,i,a,o,s,l,u,c,f,d,p,h,g=n[0],v=n[1],y=n[2];return e===t?(t[12]=e[0]*g+e[4]*v+e[8]*y+e[12],t[13]=e[1]*g+e[5]*v+e[9]*y+e[13],t[14]=e[2]*g+e[6]*v+e[10]*y+e[14],t[15]=e[3]*g+e[7]*v+e[11]*y+e[15]):(r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=e[9],p=e[10],h=e[11],t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=f,t[9]=d,t[10]=p,t[11]=h,t[12]=r*g+s*v+f*y+e[12],t[13]=i*g+l*v+d*y+e[13],t[14]=a*g+u*v+p*y+e[14],t[15]=o*g+c*v+h*y+e[15]),t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=o?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(79));function a(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function s(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=e[9],p=e[10],h=e[11],g=e[12],v=e[13],y=e[14],m=e[15],b=n[0],x=n[1],_=n[2],O=n[3];return t[0]=b*r+x*s+_*f+O*g,t[1]=b*i+x*l+_*d+O*v,t[2]=b*a+x*u+_*p+O*y,t[3]=b*o+x*c+_*h+O*m,b=n[4],x=n[5],_=n[6],O=n[7],t[4]=b*r+x*s+_*f+O*g,t[5]=b*i+x*l+_*d+O*v,t[6]=b*a+x*u+_*p+O*y,t[7]=b*o+x*c+_*h+O*m,b=n[8],x=n[9],_=n[10],O=n[11],t[8]=b*r+x*s+_*f+O*g,t[9]=b*i+x*l+_*d+O*v,t[10]=b*a+x*u+_*p+O*y,t[11]=b*o+x*c+_*h+O*m,b=n[12],x=n[13],_=n[14],O=n[15],t[12]=b*r+x*s+_*f+O*g,t[13]=b*i+x*l+_*d+O*v,t[14]=b*a+x*u+_*p+O*y,t[15]=b*o+x*c+_*h+O*m,t}function l(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=r+r,l=i+i,u=a+a,c=r*s,f=r*l,d=r*u,p=i*l,h=i*u,g=a*u,v=o*s,y=o*l,m=o*u;return t[0]=1-(p+g),t[1]=f+m,t[2]=d-y,t[3]=0,t[4]=f-m,t[5]=1-(c+g),t[6]=h+v,t[7]=0,t[8]=d+y,t[9]=h-v,t[10]=1-(c+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function u(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(l,u,c),t}function c(t,e,n,r,i){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t}var f=c;function d(t,e,n,r,i,a,o){var s=1/(e-n),l=1/(r-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(o+a)*u,t[15]=1,t}e.perspective=f;var p=d;function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}e.ortho=p;var g=s;e.mul=g;var v=h;e.sub=v},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.add=void 0,e.calculateW=function(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t},e.clone=void 0,e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},e.copy=void 0,e.create=c,e.exactEquals=e.equals=e.dot=void 0,e.exp=p,e.fromEuler=function(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return t[0]=a*l*c-o*s*u,t[1]=o*s*c+a*l*u,t[2]=o*l*u-a*s*c,t[3]=o*l*c+a*s*u,t},e.fromMat3=v,e.fromValues=void 0,e.getAngle=function(t,e){var n=w(t,e);return Math.acos(2*n*n-1)},e.getAxisAngle=function(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>i.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n},e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t},e.lerp=e.length=e.len=void 0,e.ln=h,e.mul=void 0,e.multiply=d,e.normalize=void 0,e.pow=function(t,e,n){return h(t,e),P(t,t,n),p(t,t),t},e.random=function(t){var e=i.RANDOM(),n=i.RANDOM(),r=i.RANDOM(),a=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*n),t[1]=a*Math.cos(2*Math.PI*n),t[2]=o*Math.sin(2*Math.PI*r),t[3]=o*Math.cos(2*Math.PI*r),t},e.rotateX=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*s,t[1]=i*l+a*s,t[2]=a*l-i*s,t[3]=o*l-r*s,t},e.rotateY=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l-a*s,t[1]=i*l+o*s,t[2]=a*l+r*s,t[3]=o*l-i*s,t},e.rotateZ=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=i*l-r*s,t[2]=a*l+o*s,t[3]=o*l-a*s,t},e.setAxes=e.set=e.scale=e.rotationTo=void 0,e.setAxisAngle=f,e.slerp=g,e.squaredLength=e.sqrLen=e.sqlerp=void 0,e.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"};var i=u(n(79)),a=u(n(394)),o=u(n(171)),s=u(n(397));function l(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function u(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}function c(){var t=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function f(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function d(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-r*u,t[2]=a*c+o*u+r*l-i*s,t[3]=o*c-r*s-i*l-a*u,t}function p(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),l=o>0?s*Math.sin(o)/o:0;return t[0]=n*l,t[1]=r*l,t[2]=i*l,t[3]=s*Math.cos(o),t}function h(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function g(t,e,n,r){var a,o,s,l,u,c=e[0],f=e[1],d=e[2],p=e[3],h=n[0],g=n[1],v=n[2],y=n[3];return(o=c*h+f*g+d*v+p*y)<0&&(o=-o,h=-h,g=-g,v=-v,y=-y),1-o>i.EPSILON?(a=Math.acos(o),s=Math.sin(a),l=Math.sin((1-r)*a)/s,u=Math.sin(r*a)/s):(l=1-r,u=r),t[0]=l*c+u*h,t[1]=l*f+u*g,t[2]=l*d+u*v,t[3]=l*p+u*y,t}function v(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*a+o]-e[3*o+a])*n,t[a]=(e[3*a+i]+e[3*i+a])*n,t[o]=(e[3*o+i]+e[3*i+o])*n}return t}var y=s.clone;e.clone=y;var m=s.fromValues;e.fromValues=m;var b=s.copy;e.copy=b;var x=s.set;e.set=x;var _=s.add;e.add=_;var O=d;e.mul=O;var P=s.scale;e.scale=P;var w=s.dot;e.dot=w;var M=s.lerp;e.lerp=M;var S=s.length;e.length=S;var A=S;e.len=A;var E=s.squaredLength;e.squaredLength=E;var C=E;e.sqrLen=C;var j=s.normalize;e.normalize=j;var I=s.exactEquals;e.exactEquals=I;var T=s.equals;e.equals=T;var F=function(){var t=o.create(),e=o.fromValues(1,0,0),n=o.fromValues(0,1,0);return function(r,i,a){var s=o.dot(i,a);return s<-.999999?(o.cross(t,e,i),o.len(t)<1e-6&&o.cross(t,n,i),o.normalize(t,t),f(r,t,Math.PI),r):s>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(o.cross(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+s,j(r,r))}}();e.rotationTo=F;var L=function(){var t=c(),e=c();return function(n,r,i,a,o,s){return g(t,r,o,s),g(e,i,a,s),g(n,t,e,2*s*(1-s)),n}}();e.sqlerp=L;var k=function(){var t=a.create();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],j(e,v(e,t))}}();e.setAxes=k},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},e.clone=function(t){var e=new i.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.create=o,e.cross=function(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],a=n[0]*r[2]-n[2]*r[0],o=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],l=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],c=e[0],f=e[1],d=e[2],p=e[3];return t[0]=f*u-d*l+p*s,t[1]=-c*u+d*o-p*a,t[2]=c*l-f*o+p*i,t[3]=-c*s+f*a-d*i,t},e.dist=void 0,e.distance=c,e.div=void 0,e.divide=u,e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-l)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},e.forEach=void 0,e.fromValues=function(t,e,n,r){var a=new i.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},e.len=void 0,e.length=d,e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},e.mul=void 0,e.multiply=l,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t},e.random=function(t,e){var n,r,a,o,s,l;e=e||1;do{s=(n=2*i.RANDOM()-1)*n+(r=2*i.RANDOM()-1)*r}while(s>=1);do{l=(a=2*i.RANDOM()-1)*a+(o=2*i.RANDOM()-1)*o}while(l>=1);var u=Math.sqrt((1-s)/l);return t[0]=e*n,t[1]=e*r,t[2]=e*a*u,t[3]=e*o*u,t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.sqrLen=e.sqrDist=void 0,e.squaredDistance=f,e.squaredLength=p,e.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.sub=void 0,e.subtract=s,e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t},e.transformQuat=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*i,f=u*i+l*r-o*a,d=u*a+o*i-s*r,p=-o*r-s*i-l*a;return t[0]=c*u+p*-o+f*-l-d*-s,t[1]=f*u+p*-s+d*-o-c*-l,t[2]=d*u+p*-l+c*-s-f*-o,t[3]=e[3],t},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=o?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(79));function a(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){var t=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.hypot(n,r,i,a)}function f(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function d(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function p(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}var h=s;e.sub=h;var g=l;e.mul=g;var v=u;e.div=v;var y=c;e.dist=y;var m=f;e.sqrDist=m;var b=d;e.len=b;var x=p;e.sqrLen=x;var _=function(){var t=o();return function(e,n,r,i,a,o){var s,l;for(n||(n=4),r||(r=0),l=i?Math.min(i*n+r,e.length):e.length,s=r;s0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.sqrLen=e.sqrDist=void 0,e.squaredDistance=f,e.squaredLength=p,e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.sub=void 0,e.subtract=s,e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.zero=function(t){return t[0]=0,t[1]=0,t};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=o?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(79));function a(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function f(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function d(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function p(t){var e=t[0],n=t[1];return e*e+n*n}var h=d;e.len=h;var g=s;e.sub=g;var v=l;e.mul=v;var y=u;e.div=y;var m=c;e.dist=m;var b=f;e.sqrDist=b;var x=p;e.sqrLen=x;var _=function(){var t=o();return function(e,n,r,i,a,o){var s,l;for(n||(n=2),r||(r=0),l=i?Math.min(i*n+r,e.length):e.length,s=r;sl&&(s=e.slice(l,s),c[u]?c[u]+=s:c[++u]=s),(n=n[0])===(r=r[0])?c[u]?c[u]+=r:c[++u]=r:(c[++u]=null,f.push({i:u,x:(0,i.default)(n,r)})),l=o.lastIndex;return l200&&(f=s/10);for(var d=1/f,p=d/10,h=0;h<=f;h++){var g=h*d,v=[o.apply(null,t.concat([g])),o.apply(null,e.concat([g]))];(x=(0,r.distance)(c[0],c[1],v[0],v[1]))=0&&x1||e<0||t.length<2)return 0;for(var n=o(t),r=n.segments,i=n.totalLength,a=0,s=0,l=0;l=a&&e<=a+d){s=Math.atan2(f[1]-c[1],f[0]-c[0]);break}a+=d}return s},e.distanceAtSegment=function(t,e,n){for(var r=1/0,a=0;a1||e<0||t.length<2)return null;var n=o(t),r=n.segments,a=n.totalLength;if(0===a)return{x:t[0][0],y:t[0][1]};for(var s=0,l=null,u=0;u=s&&e<=s+p){var h=(e-s)/p;l=i.default.pointAt(f[0],f[1],d[0],d[1],h);break}s+=p}return l};var i=r(n(174)),a=n(87);function o(t){for(var e=0,n=[],r=0;r1?e*i+a(e,n)*(i-1):e},e.getTextWidth=function(t,e){var n=(0,i.getOffScreenContext)(),a=0;if((0,r.isNil)(t)||""===t)return a;if(n.save(),n.font=e,(0,r.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,r.each)(o,(function(t){var e=n.measureText(t).width;a1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){void 0===e&&(e=!1);for(var n,r,s=(0,i.default)(t),l={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},u=[],c="",f=s.length,d=[],p=0;p7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return e;var l=[],u=0,c=0,f=0,d=0,p=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(f=u=+h[1],d=c=+h[2],p++,l[0]=["M",u,c]),r=p;for(var g=e.length;r2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else for(;a.length>=e[s]&&(n.push([r].concat(a.splice(0,e[s]))),e[s]););return""})),n};var r=n(0),i="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e[1],i=e[2],l=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),u=e[4],c=e[5],f=t[0],d=t[1],p=e[6],h=e[7],g=Math.cos(l)*(f-p)/2+Math.sin(l)*(d-h)/2,v=-1*Math.sin(l)*(f-p)/2+Math.cos(l)*(d-h)/2,y=g*g/(n*n)+v*v/(i*i);y>1&&(n*=Math.sqrt(y),i*=Math.sqrt(y));var m=n*n*(v*v)+i*i*(g*g),b=m?Math.sqrt((n*n*(i*i)-m)/m):1;u===c&&(b*=-1),isNaN(b)&&(b=0);var x=i?b*n*v/i:0,_=n?b*-i*g/n:0,O=(f+p)/2+Math.cos(l)*x-Math.sin(l)*_,P=(d+h)/2+Math.sin(l)*x+Math.cos(l)*_,w=[(g-x)/n,(v-_)/i],M=[(-1*g-x)/n,(-1*v-_)/i],S=o([1,0],w),A=o(w,M);return a(w,M)<=-1&&(A=Math.PI),a(w,M)>=1&&(A=0),0===c&&A>0&&(A-=2*Math.PI),1===c&&A<0&&(A+=2*Math.PI),{cx:O,cy:P,rx:s(t,[p,h])?0:n,ry:s(t,[p,h])?0:i,startAngle:S,endAngle:S+A,xRotation:l,arcFlag:u,sweepFlag:c}},e.isSamePoint=s;var r=n(0);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1].001*(o.x*o.x+o.y*o.y)*(s.x*s.x+s.y*s.y)){var c=(a.x*s.y-a.y*s.x)/l,f=(a.x*o.y-a.y*o.x)/l;r(c,0,1)&&r(f,0,1)&&(u={x:t.x+c*o.x,y:t.y+c*o.y})}return u};var r=function(t,e,n){return t>=e&&t<=n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=!1,o=t.length;if(o<=2)return!1;for(var s=0;s0!==i(u[1]-n)>0&&i(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(r=!r)}return r};var r=1e-6;function i(t){return Math.abs(t)this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(r(n(141)).default),s=o;e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,i.__extends)(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}(r(n(176)).default),o=a;e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return(0,a.last)(e);if(i<0)return(0,a.head)(e);var o=e[i],s=i/(n-1);return o+(r-s)/((i+1)/(n-1)-s)*(e[i+1]-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,a.last)(e)!==this.max&&e.push(this.max),(0,a.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,a.head)(e))return 0;if(t>(0,a.last)(e))return 1;var n=0;return(0,a.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(r(n(176)).default),s=o;e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.values,n=t.tickInterval,i=t.tickCount,a=t.showLast;if((0,r.isNumber)(n)){var o=(0,r.filter)(e,(function(t,e){return e%n===0})),s=(0,r.last)(e);return a&&(0,r.last)(o)!==s&&o.push(s),o}var l=e.length,u=t.min,c=t.max;if((0,r.isNil)(u)&&(u=0),(0,r.isNil)(c)&&(c=e.length-1),!(0,r.isNumber)(i)||i>=l)return e.slice(u,c+1);if(i<=0||c<=0)return[];for(var f=1===i?l:Math.floor(l/(i-1)),d=[],p=u,h=0;h=c);h++)p=Math.min(u+h*f,c),h===i-1&&a?d.push(e[c]):d.push(e[p]);return d};var r=n(0)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prettyNumber=function(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(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 a=(e-t)/i,o=Math.pow(10,Math.floor(Math.log10(a))),s=o;2*o-a<1.5*(a-s)&&5*o-a<2.75*(a-(s=2*o))&&10*o-a<1.5*(a-(s=5*o))&&(s=10*o);for(var l=Math.ceil(e/s),u=Math.floor(t/s),c=Math.max(l*s,e),f=Math.min(u*s,t),d=Math.floor((c-f)/s)+1,p=new Array(d),h=0;h=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var y=n*n*(g*g)+i*i*(h*h),m=y?Math.sqrt((n*n*(i*i)-y)/y):1;l===u&&(m*=-1),isNaN(m)&&(m=0);var b=i?m*n*g/i:0,x=n?m*-i*h/n:0,_=(c+d)/2+Math.cos(s)*b-Math.sin(s)*x,O=(f+p)/2+Math.sin(s)*b+Math.cos(s)*x,P=[(h-b)/n,(g-x)/i],w=[(-1*h-b)/n,(-1*g-x)/i],M=o([1,0],P),S=o(P,w);return a(P,w)<=-1&&(S=Math.PI),a(P,w)>=1&&(S=0),0===u&&S>0&&(S-=2*Math.PI),1===u&&S<0&&(S+=2*Math.PI),{cx:_,cy:O,rx:r.isSamePoint(t,[d,p])?0:n,ry:r.isSamePoint(t,[d,p])?0:i,startAngle:M,endAngle:M+S,xRotation:s,arcFlag:l,sweepFlag:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26);e.default=function(t,e,n){var i=r.getOffScreenContext();return t.createPath(i),i.isPointInPath(e,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=1e-6;function i(t){return Math.abs(t)0!==i(u[1]-n)>0&&i(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(r=!r)}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51);e.default=function(t,e,n,i,a,o,s,l){var u=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(ua)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return r.distance(c.x,c.y,s,l)<=o/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(183);e.default=function(t,e,n,i,a){var o=t.length;if(o<2)return!1;for(var s=0;s1){var a=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,(0,r.__spreadArray)([e],a,!1)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLegendThemeCfg=e.getCustomLegendItems=e.getLegendItems=e.getLegendLayout=void 0;var r=n(1),i=n(0),a=n(21),o=n(451),s=n(70),l=n(146),u=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;(0,i.isString)(e)&&l.MarkerSymbols[e]&&(t.symbol=l.MarkerSymbols[e])}e.getLegendLayout=function(t){return t.startsWith(a.DIRECTION.LEFT)||t.startsWith(a.DIRECTION.RIGHT)?"vertical":"horizontal"},e.getLegendItems=function(t,e,n,a,l){var f=n.getScale(n.type);if(f.isCategory){var d=f.field,p=e.getAttribute("color"),h=e.getAttribute("shape"),g=t.getTheme().defaultColor,v=e.coordinate.isPolar;return f.getTicks().map((function(n,y){var m,b=n.text,x=n.value,_=b,O=f.invert(x),P=0===t.filterFieldData(d,[(m={},m[d]=O,m)]).length;(0,i.each)(t.views,(function(t){var e;t.filterFieldData(d,[(e={},e[d]=O,e)]).length||(P=!0)}));var w,M,S=(0,o.getMappingValue)(p,O,g),A=(0,o.getMappingValue)(h,O,"point"),E=e.getShapeMarker(A,{color:S,isInPolar:v}),C=l;return(0,i.isFunction)(C)&&(C=C(_,y,(0,r.__assign)({name:_,value:O},(0,i.deepMix)({},a,E)))),function(t,e){var n=t.symbol;if((0,i.isString)(n)&&-1!==u.indexOf(n)){var r=(0,i.get)(t,"style",{}),a=(0,i.get)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=(0,i.deepMix)({},t.style,{lineWidth:a,stroke:o,fill:null})}}(E=(0,i.deepMix)({},a,E,(0,s.omit)((0,r.__assign)({},C),["style"])),S),C&&C.style&&(E.style=(w=E.style,M=C.style,(0,i.isFunction)(M)?M(w):(0,i.deepMix)({},w,M))),c(E),{id:O,name:_,value:O,marker:E,unchecked:P}}))}return[]},e.getCustomLegendItems=function(t,e,n){return n.map((function(n,r){var a=e;(0,i.isFunction)(a)&&(a=a(n.name,r,(0,i.deepMix)({},t,n)));var o=(0,i.isFunction)(n.marker)?n.marker(n.name,r,(0,i.deepMix)({},t,n)):n.marker,s=(0,i.deepMix)({},t,a,o);return c(s),n.marker=s,n}))},e.getLegendThemeCfg=function(t,e){var n=(0,i.get)(t,["components","legend"],{});return(0,i.deepMix)({},(0,i.get)(n,["common"],{}),(0,i.deepMix)({},(0,i.get)(n,[e],{})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseLineGradient=u,e.parsePattern=f,e.parseRadialGradient=c,e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,[e,n,i,a]},e.parseStyle=function(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if((0,r.isString)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return u(t,e,n);if("r"===n[0])return c(t,e,n);if("p"===n[0])return f(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0};var r=n(53),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t,e){var n=t.match(s);(0,r.each)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function u(t,e,n){var r,a,o=i.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),u=o[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var y=n*n*(g*g)+i*i*(h*h),m=y?Math.sqrt((n*n*(i*i)-y)/y):1;l===u&&(m*=-1),isNaN(m)&&(m=0);var b=i?m*n*g/i:0,x=n?m*-i*h/n:0,_=(c+d)/2+Math.cos(s)*b-Math.sin(s)*x,O=(f+p)/2+Math.sin(s)*b+Math.cos(s)*x,P=[(h-b)/n,(g-x)/i],w=[(-1*h-b)/n,(-1*g-x)/i],M=o([1,0],P),S=o(P,w);return a(P,w)<=-1&&(S=Math.PI),a(P,w)>=1&&(S=0),0===u&&S>0&&(S-=2*Math.PI),1===u&&S<0&&(S+=2*Math.PI),{cx:_,cy:O,rx:(0,r.isSamePoint)(t,[d,p])?0:n,ry:(0,r.isSamePoint)(t,[d,p])?0:i,startAngle:M,endAngle:M+S,xRotation:s,arcFlag:l,sweepFlag:u}};var r=n(53);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]0!==i(u[1]-n)>0&&i(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(r=!r)}return r};var r=1e-6;function i(t){return Math.abs(t)a)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return(0,r.distance)(c.x,c.y,s,l)<=o/2};var r=n(53)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,a){var o=t.length;if(o<2)return!1;for(var s=0;s1){for(var o=e.addGroup(),s=0,l=r;s1?e[1]:n;return{min:n,max:r,min1:a,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:a}}function l(t,e,n){var r,a=n/2;if((0,i.isArray)(e)){var o=s(e),l=o.min,u=o.max,c=o.median,f=o.min1,d=t-a,p=t+a;r=[[d,u],[p,u],[t,u],[t,h=o.max1],[d,f],[d,h],[p,h],[p,f],[t,f],[t,l],[d,l],[p,l],[d,c],[p,c]]}else{e=(0,i.isNil)(e)?.5:e;var h,g=s(t),v=(l=g.min,u=g.max,c=g.median,e-a),y=e+a;r=[[l,v],[l,y],[l,e],[f=g.min1,e],[f,v],[f,y],[h=g.max1,y],[h,v],[h,e],[u,e],[u,v],[u,y],[c,v],[c,y]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}(0,a.registerShape)("schema","box",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=l(t,[e-6,e-3,e,e+3,e+6],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:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(70),o=n(27),s=n(33);function l(t,e,n){var r=function(t){var e=((0,i.isArray)(t)?t:[t]).sort((function(t,e){return e-t}));return(0,a.padEnd)(e,4,e[e.length-1])}(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}(0,o.registerShape)("schema","candle",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,s.getStyle)(t,!0,!0),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=l(t,[e+7.5,e+3,e-3,e-7.5],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}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(27),o=n(33);function s(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),a=Math.min(n,r);return e&&(a=(0,i.clamp)(e,0,Math.min(n,r))),a/=2,{x:(t[0].x+t[2].x)/2-a,y:(t[0].y+t[2].y)/2-a,width:2*a,height:2*a}}(0,a.registerShape)("polygon","square",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var n=(0,o.getStyle)(t,!0,!0),a=this.parsePoints(t.points);return e.addShape("rect",{attrs:(0,r.__assign)((0,r.__assign)({},n),s(a,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antiCollision=void 0,e.antiCollision=function(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,a=!0,o=n.minY,s=n.maxY,l=Math.abs(o-s),u=0,c=Number.MIN_VALUE,f=r.map((function(t){return t.y>u&&(u=t.y),t.yl&&(l=u-o);a;)for(f.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)})),a=!1,i=f.length;i--;)if(i>0){var d=f[i-1],p=f[i];d.pos+d.size>p.pos&&(d.size+=p.size,d.targets=d.targets.concat(p.targets),d.pos+d.size>l&&(d.pos=l-d.size),f.splice(i,1),a=!0)}i=0,f.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return(0,r.__extends)(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:(0,i.head)(t),end:(0,i.last)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}((0,r.__importDefault)(n(288)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&((0,i.each)(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}((0,r.__importDefault)(n(288)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BRUSH_FILTER_EVENTS=void 0;var r,i=n(1),a=n(98),o=(0,i.__importDefault)(n(44)),s=n(31);function l(t,e,n,r){var i=Math.min(n[e],r[e]),a=Math.max(n[e],r[e]),o=t.range,s=o[0],l=o[1];if(il&&(a=l),i===l&&a===l)return null;var u=t.invert(i),c=t.invert(a);if(t.isCategory){var f=t.values.indexOf(u),d=t.values.indexOf(c),p=t.values.slice(f,d+1);return function(t){return p.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"}(r||(r={})),e.BRUSH_FILTER_EVENTS=r;var u=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,i.__extends)(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((0,s.isMask)(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.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 i=this.context,o=i.view,u={view:o,event:i.event,dims:this.dims};o.emit(r.BEFORE_FILTER,a.Event.fromData(o,r.BEFORE_FILTER,u));var c=o.getCoordinate(),f=c.invert(e),d=c.invert(t);if(this.hasDim("x")){var p=o.getXScale(),h=l(p,"x",f,d);this.filterView(o,p.field,h)}if(this.hasDim("y")){var g=o.getYScales()[0];h=l(g,"y",f,d),this.filterView(o,g.field,h)}this.reRender(o,{source:r.FILTER}),o.emit(r.AFTER_FILTER,a.Event.fromData(o,r.AFTER_FILTER,u))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(r.BEFORE_RESET,a.Event.fromData(t,r.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:r.RESET}),t.emit(r.AFTER_RESET,a.Event.fromData(t,r.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(185),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return(0,r.__extends)(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("x"),this.resetDim("y"),this.context.view.render(!0)},e}(i.Action);e.default=a},function(t,e,n){"use strict";var r=n(482);t.exports=function(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n {}"),null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),i=n(40);function a(t){var e=Object(i.a)(),n=t.type,a=t.config;return Object(r.useLayoutEffect)((function(){return e.interaction(n,a),function(){e.removeInteraction(n)}})),null}},function(t,e,n){"use strict";var r=n(2)(n(6));Object.defineProperty(e,"__esModule",{value:!0}),e.pick=void 0,e.pick=function(t,e){var n={};return null!==t&&"object"===(0,r.default)(t)&&e.forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.invariant=e.LEVEL=void 0;var r=n(1);!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(e.LEVEL||(e.LEVEL={}));var i="AntV/G2Plot";function a(t){for(var e=[],n=1;n"},key:(0===l?"top":"bottom")+"-statistic"},a.pick(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},e.renderGaugeStatistic=function(t,e,n){var l=e.statistic;[l.title,l.content].forEach((function(e){if(e){var l=i.isFunction(e.style)?e.style(n):e.style;t.annotation().html(r.__assign({position:["50%","100%"],html:function(t,a){var u=a.getCoordinate(),c=a.views[0].getCoordinate(),f=c.getCenter(),d=c.getRadius(),p=Math.max(Math.sin(c.startAngle),Math.sin(c.endAngle))*d,h=f.y+p-u.y.start-parseFloat(i.get(l,"fontSize",0)),g=u.getRadius()*u.innerRadius*2;s(t,r.__assign({width:g+"px",transform:"translate(-50%, "+h+"px)"},o(l)));var v=a.getData();if(e.customHtml)return e.customHtml(t,a,n,v);var y=e.content;return e.formatter&&(y=e.formatter(n,v)),y?i.isString(y)?y:""+y:"
"}},a.pick(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(133),i=n.n(r),a=n(3),o=n(92);function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=Object(o.getTheme)(t);e.name=t;var n=Object(a.useState)(e),r=i()(n,2),s=r[0],l=r[1];return[s,function(t){var e=Object(o.getTheme)(t);e.name=t,l(e)}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var r=n(1065);e.bind=function(t,e){var n=(0,r.getSensor)(t);return n.bind(e),function(){n.unbind(e)}},e.clear=function(t){var e=(0,r.getSensor)(t);(0,r.removeSensor)(e)},e.ver="1.0.1"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},n.prototype.getButtonCfg=function(){var t=this.context.view,e=a.get(t,["interactions","drill-down","cfg","drillDownConfig"]);return o.deepAssign(this.breadCrumbCfg,null===e||void 0===e?void 0:e.breadCrumb,this.cfg)},n.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},n.prototype.drawBreadCrumbGroup=function(){var t=this,n=this.getButtonCfg(),i=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:e.BREAD_CRUMB_NAME});var o=0;i.forEach((function(s,l){var u=t.breadCrumbGroup.addShape({type:"text",id:s.id,name:e.BREAD_CRUMB_NAME+"_"+s.name+"_text",attrs:r.__assign(r.__assign({text:0!==l||a.isNil(n.rootText)?s.name:n.rootText},n.textStyle),{x:o,y:0})}),c=u.getBBox();if(o+=c.width+4,u.on("click",(function(e){var n,r=e.target.get("id");if(r!==(null===(n=a.last(i))||void 0===n?void 0:n.id)){var o=i.slice(0,i.findIndex((function(t){return t.id===r}))+1);t.backTo(o)}})),u.on("mouseenter",(function(t){var e;t.target.get("id")!==(null===(e=a.last(i))||void 0===e?void 0:e.id)?u.attr(n.activeTextStyle):u.attr({cursor:"default"})})),u.on("mouseleave",(function(){u.attr(n.textStyle)})),l(o*=o)?(r=(u+o-i)/(2*u),a=Math.sqrt(Math.max(0,o/u-r*r)),n.x=t.x-r*s-a*l,n.y=t.y-r*l+a*s):(r=(u+i-o)/(2*u),a=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-a*l,n.y=e.y+r*l+a*s)):(n.x=e.x+n.r,n.y=e.y)}function s(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function l(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function u(t){this._=t,this.next=null,this.previous=null}function c(t){if(!(c=(t=(0,i.default)(t)).length))return 0;var e,n,r,c,f,d,p,h,g,v,y;if((e=t[0]).x=0,e.y=0,!(c>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(c>2))return e.r+n.r;o(n,e,r=t[2]),e=new u(e),n=new u(n),r=new u(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(p=3;p0&&n*n>r*r+i*i}function s(t,e){for(var n=0;n0?n:e:e<0?e:n;case"outer":return n=12,r.isString(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}},e.isAllZero=function(t,e){return r.every(i.processIllegalData(t,e),(function(t){return 0===t[e]}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PIE_STATISTIC=void 0;var r=n(14),i=n(1129),a=n(1130);e.PIE_STATISTIC="pie-statistic",r.registerAction(e.PIE_STATISTIC,a.StatisticAction),r.registerInteraction("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),r.registerAction("pie-legend",i.PieLegendAction),r.registerInteraction("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transform=void 0;var r=n(1),i=n(14),a=[1,0,0,0,1,0,0,0,1];e.transform=function(t,e){var n=e?r.__spreadArrays(e):r.__spreadArrays(a);return i.Util.transform(n,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSingleKeyValues=e.getFontSizeMapping=e.processImageMask=e.getSize=e.transform=void 0;var r=n(1),i=n(0),a=n(293),o=n(15),s=n(1137);function l(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,s=t.padding,l=t.appendPadding;if(i){var u=o.getContainerSize(r);e=u.width,n=u.height}e=e||400,n=n||400;var c=function(t){var e=a.normalPadding(t.padding),n=a.normalPadding(t.appendPadding),r=e[0]+n[0],i=e[1]+n[1],o=e[2]+n[2],s=e[3]+n[3];return[r,i,o,s]}({padding:s,appendPadding:l}),f=c[0],d=c[1],p=c[2];return[e-(c[3]+d),n-(f+p)]}function u(t,e){if(i.isFunction(t))return t;if(i.isArray(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var a=e[0],o=e[1];return o===a?function(){return(r+n)/2}:function(t){var e=t.value;return(r-n)/(o-a)*(e-a)+n}}return function(){return t}}function c(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"===typeof t&&!isNaN(t)}))}function f(t){var e=function(t){var e=t.wordStyle.rotationSteps;return e<1&&(o.log(o.LEVEL.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}(t),n=e.rotation,r=e.rotationSteps;if(!i.isArray(n))return n;var a=n[0],s=n[1],l=1===r?0:(s-a)/(r-1);return function(){return s===a?s:Math.floor(Math.random()*r)*l}}function d(t){return Math.max.apply(Math,t)}e.transform=function(t){var e=t.options,n=t.chart,a=n,o=a.width,p=a.height,h=a.padding,g=a.appendPadding,v=a.ele,y=e.data,m=e.imageMask,b=e.wordField,x=e.weightField,_=e.colorField,O=e.wordStyle,P=e.timeInterval,w=e.random,M=e.spiral,S=e.autoFit,A=void 0===S||S,E=e.placementStrategy;if(!y||!y.length)return[];var C,j=O.fontFamily,I=O.fontWeight,T=O.padding,F=O.fontSize,L=c(y,x),k=[(C=L,Math.min.apply(Math,C)),d(L)],D=y.map((function(t){return{text:t[b],value:t[x],color:t[_],datum:t}})),R={imageMask:m,font:j,fontSize:u(F,k),fontWeight:I,size:l({width:o,height:p,padding:h,appendPadding:g,autoFit:A,container:v}),padding:T,timeInterval:P,random:w,spiral:M,rotate:f(e)};if(i.isFunction(E)){var N=D.map((function(t,e,i){return r.__assign(r.__assign(r.__assign({},t),{hasText:!!t.text,font:s.functor(R.font)(t,e,i),weight:s.functor(R.fontWeight)(t,e,i),rotate:s.functor(R.rotate)(t,e,i),size:s.functor(R.fontSize)(t,e,i),style:"normal"}),E.call(n,t,e,i))}));return N.push({text:"",value:0,x:0,y:0,opacity:0}),N.push({text:"",value:0,x:R.size[0],y:R.size[1],opacity:0}),N}return s.wordCloud(D,R)},e.getSize=l,e.processImageMask=function(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if(i.isString(t)){var r=new Image;return r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},void(r.onerror=function(){o.log(o.LEVEL.ERROR,!1,"image %s load failed !!!",t),n()})}o.log(o.LEVEL.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))},e.getFontSizeMapping=u,e.getSingleKeyValues=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=e.WORD_CLOUD_COLOR_FIELD=void 0;var r=n(24),i=n(15);e.WORD_CLOUD_COLOR_FIELD="color",e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",e.WORD_CLOUD_COLOR_FIELD],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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.basicFunnel=void 0;var r=n(1),i=n(0),a=n(15),o=n(64),s=n(59),l=n(120),u=n(300);function c(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,a=n.yField,o=n.maxSize,s=n.minSize,l=u.transformData(i,i,{yField:a,maxSize:o,minSize:s});return e.data(l),t}function f(t){var e=t.chart,n=t.options,r=n.xField,u=n.yField,c=n.color,f=n.tooltip,d=n.label,p=n.shape,h=void 0===p?"funnel":p,g=n.funnelStyle,v=n.state,y=o.getTooltipMapping(f,[r,u]),m=y.fields,b=y.formatter;return s.geometry({chart:e,options:{type:"interval",xField:r,yField:l.FUNNEL_MAPPING_VALUE,colorField:r,tooltipFields:i.isArray(m)&&m.concat([l.FUNNEL_PERCENT,l.FUNNEL_CONVERSATION]),mapping:{shape:h,tooltip:b,color:c,style:g},label:d,state:v}}),a.findGeometry(t.chart,"interval").adjust("symmetric"),t}function d(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function p(t){var e=t.options.maxSize;return u.conversionTagComponent((function(t,n,i,a){var o=e-(e-t[l.FUNNEL_MAPPING_VALUE])/2;return r.__assign(r.__assign({},a),{start:[n-.5,o],end:[n-.5,o+.05]})}))(t),t}e.basicFunnel=function(t){return a.flow(c,f,d,p)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLiquidData=void 0,e.getLiquidData=function(t){return[{percent:t,type:"liquid"}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.binHistogram=void 0;var r=n(0);function i(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}e.binHistogram=function(t,e,n,a,o){var s=r.clone(t);r.sortBy(s,e);var l=r.valuesOfKey(s,e),u=r.getRange(l),c=u.max-u.min,f=n;if(!n&&a&&(f=a>1?c/(a-1):u.max),!n&&!a){var d=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(l);f=c/d}var p={},h=r.groupBy(s,o);r.isEmpty(h)?r.each(s,(function(t){var n=i(t[e],f,a),o=n[0]+"-"+n[1];r.hasKey(p,o)||(p[o]={range:n,count:0}),p[o].count+=1})):Object.keys(h).forEach((function(t){r.each(h[t],(function(n){var s=i(n[e],f,a),l=s[0]+"-"+s[1]+"-"+t;r.hasKey(p,l)||(p[l]={range:s,count:0},p[l][o]=t),p[l].count+=1}))}));var g=[];return r.each(p,(function(t){g.push(t)})),g}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=e.HISTOGRAM_Y_FIELD=e.HISTOGRAM_X_FIELD=void 0;var r=n(24),i=n(15);e.HISTOGRAM_X_FIELD="range",e.HISTOGRAM_Y_FIELD="count",e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformData=e.processData=void 0;var r=n(1),i=n(0),a=n(15),o=n(301);function s(t,e,n,o,s){var l,u=[];if(i.reduce(t,(function(t,e){var s;a.log(a.LEVEL.WARN,i.isNumber(e[n]),e[n]+" is not a valid number");var l=i.isUndefined(e[n])?null:e[n];return u.push(r.__assign(r.__assign({},e),((s={})[o]=[t,t+l],s))),t+l}),0),u.length&&s){var c=i.get(u,[[t.length-1],o,[1]]);u.push(((l={})[e]=s.label,l[n]=c,l[o]=[0,c],l))}return u}e.processData=s,e.transformData=function(t,e,n,a){return s(t,e,n,o.Y_FIELD,a).map((function(e,n){var a;return i.isObject(e)?r.__assign(r.__assign({},e),((a={})[o.ABSOLUTE_FIELD]=e[o.Y_FIELD][1],a[o.DIFF_FIELD]=e[o.Y_FIELD][1]-e[o.Y_FIELD][0],a[o.IS_TOTAL]=n===t.length,a)):e}))}},function(t,e,n){"use strict";var r,i,a,o,s=n(2)(n(6));o=function(t){function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(l){i=!0,a=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(t,e,n,r){t=t.filter((function(t,r){var i=e(t,r),a=n(t,r);return null!=i&&isFinite(i)&&null!=a&&isFinite(a)})),r&&t.sort((function(t,n){return e(t)-e(n)}));for(var i,a,o,s=t.length,l=new Float64Array(s),u=new Float64Array(s),c=0,f=0,d=0;di&&(t.splice(o+1,0,d),r=!0)}return r}}function s(t,e,n,r){var i=r-t*t,a=Math.abs(i)<1e-24?0:(n-t*e)/i;return[e-a*t,a]}function l(){var t,n=function(t){return t[0]},a=function(t){return t[1]};function o(o){var l=0,u=0,c=0,f=0,d=0,p=t?+t[0]:1/0,h=t?+t[1]:-1/0;r(o,n,a,(function(e,n){++l,u+=(e-u)/l,c+=(n-c)/l,f+=(e*n-f)/l,d+=(e*e-d)/l,t||(eh&&(h=e))}));var g=e(s(u,c,f,d),2),v=g[0],y=g[1],m=function(t){return y*t+v},b=[[p,m(p)],[h,m(h)]];return b.a=y,b.b=v,b.predict=m,b.rSquared=i(o,n,a,c,m),b}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?(a=t,o):a},o}function u(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)]}function c(t){return(t=1-t*t*t)*t*t}function f(t,e,n){var r=t[e],i=n[0],a=n[1]+1;if(!(a>=t.length))for(;e>i&&t[a]-r<=r-t[i];)n[0]=++i,n[1]=a,++a}function d(){var t,a=function(t){return t[0]},s=function(t){return t[1]};function l(l){var u,c,f,d,p=e(n(l,a,s),4),h=p[0],g=p[1],v=p[2],y=p[3],m=h.length,b=0,x=0,_=0,O=0,P=0;for(u=0;uA&&(A=e))}));var E=_-b*b,C=b*E-x*x,j=(P*b-O*x)/C,I=(O*E-P*x)/C,T=-j*b,F=function(t){return j*(t-=v)*t+I*t+T+y},L=o(S,A,F);return L.a=j,L.b=I-2*j*v,L.c=T-I*v+j*v*v+y,L.predict=F,L.rSquared=i(l,a,s,w,F),L}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(a=t,l):a},l.y=function(t){return arguments.length?(s=t,l):s},l}t.regressionExp=function(){var t,n=function(t){return t[0]},a=function(t){return t[1]};function l(l){var u=0,c=0,f=0,d=0,p=0,h=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(l,n,a,(function(e,n){var r=Math.log(n),i=e*n;++u,c+=(n-c)/u,d+=(i-d)/u,h+=(e*i-h)/u,f+=(n*r-f)/u,p+=(i*r-p)/u,t||(ev&&(v=e))}));var y=e(s(d/c,f/c,p/c,h/c),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.exp(b*t)},_=o(g,v,x);return _.a=m,_.b=b,_.predict=x,_.rSquared=i(l,n,a,c,x),_}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?(a=t,l):a},l},t.regressionLinear=l,t.regressionLoess=function(){var t=function(t){return t[0]},r=function(t){return t[1]},i=.3;function a(a){for(var o=e(n(a,t,r,!0),4),l=o[0],d=o[1],p=o[2],h=o[3],g=l.length,v=Math.max(2,~~(i*g)),y=new Float64Array(g),m=new Float64Array(g),b=new Float64Array(g).fill(1),x=-1;++x<=2;){for(var _=[0,v-1],O=0;Ol[M]-P?w:M,A=0,E=0,C=0,j=0,I=0,T=1/Math.abs(l[S]-P||1),F=w;F<=M;++F){var L=l[F],k=d[F],D=c(Math.abs(P-L)*T)*b[F],R=L*D;A+=D,E+=R,C+=k*D,j+=k*R,I+=L*R}var N=e(s(E/A,C/A,j/A,I/A),2),B=N[0],z=N[1];y[O]=B+z*P,m[O]=Math.abs(d[O]-y[O]),f(l,O+1,_)}if(2===x)break;var V=u(m);if(Math.abs(V)<1e-12)break;for(var G,W,Y=0;Y=1?1e-12:(W=1-G*G)*W}return function(t,e,n,r){for(var i,a=t.length,o=[],s=0,l=0,u=[];sv&&(v=e))}));var m=e(s(f,d,p,h),2),b=m[0],x=m[1],_=function(t){return x*Math.log(t)/y+b},O=o(g,v,_);return O.a=x,O.b=b,O.predict=_,O.rSquared=i(u,n,a,d,_),O}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(n=t,u):n},u.y=function(t){return arguments.length?(a=t,u):a},u.base=function(t){return arguments.length?(l=t,u):l},u},t.regressionPoly=function(){var t,a=function(t){return t[0]},s=function(t){return t[1]},u=3;function c(c){if(1===u){var f=l().x(a).y(s).domain(t)(c);return f.coefficients=[f.b,f.a],delete f.a,delete f.b,f}if(2===u){var p=d().x(a).y(s).domain(t)(c);return p.coefficients=[p.c,p.b,p.a],delete p.a,delete p.b,delete p.c,p}var h,g,v,y,m,b=e(n(c,a,s),4),x=b[0],_=b[1],O=b[2],P=b[3],w=x.length,M=[],S=[],A=u+1,E=0,C=0,j=t?+t[0]:1/0,I=t?+t[1]:-1/0;for(r(c,a,s,(function(e,n){++C,E+=(n-E)/C,t||(eI&&(I=e))})),h=0;hMath.abs(t[e][i])&&(i=n);for(r=e;r=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=o-1;n>=0;--n){for(a=0,r=n+1;r=0;--i)for(o=e[i],s=1,l[i]+=o,a=1;a<=i;++a)s*=(i+1-a)/a,l[i-a]+=o*Math.pow(n,a)*s;return l[0]+=r,l}(A,T,-O,P),L.predict=F,L.rSquared=i(c,a,s,E,F),L}return c.domain=function(e){return arguments.length?(t=e,c):t},c.x=function(t){return arguments.length?(a=t,c):a},c.y=function(t){return arguments.length?(s=t,c):s},c.order=function(t){return arguments.length?(u=t,c):u},c},t.regressionPow=function(){var t,n=function(t){return t[0]},a=function(t){return t[1]};function l(l){var u=0,c=0,f=0,d=0,p=0,h=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(l,n,a,(function(e,n){var r=Math.log(e),i=Math.log(n);++u,c+=(r-c)/u,f+=(i-f)/u,d+=(r*i-d)/u,p+=(r*r-p)/u,h+=(n-h)/u,t||(ev&&(v=e))}));var y=e(s(c,f,d,p),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.pow(t,b)},_=o(g,v,x);return _.a=m,_.b=b,_.predict=x,_.rSquared=i(l,n,a,h,x),_}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?(a=t,l):a},l},t.regressionQuad=d,Object.defineProperty(t,"__esModule",{value:!0})},"object"===(0,s.default)(e)&&"undefined"!==typeof t?o(e):(i=[e],void 0===(a="function"===typeof(r=o)?r.apply(e,i):r)||(t.exports=a))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformData=void 0,e.transformData=function(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,a=t.targetField,o=t.layout,s=[],l=[];e.forEach((function(t,e){var o;t[i].sort((function(t,e){return t-e})),t[i].forEach((function(r,a){var o,l=0===a?r:t[i][a]-t[i][a-1];s.push(((o={rKey:i+"_"+a})[n]=n?t[n]:String(e),o[i]=l,o))})),t[r].forEach((function(i,a){var o;s.push(((o={mKey:t[r].length>1?r+"_"+a:""+r})[n]=n?t[n]:String(e),o[r]=i,o))})),s.push(((o={tKey:""+a})[n]=n?t[n]:String(e),o[a]=t[a],o)),l.push(t[i],t[r],t[a])}));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"===o&&s.reverse(),{min:u,max:c,ds:s}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.pick=function(t,e){var n={};return null!==t&&"object"===(0,i.default)(t)&&e.forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n};var i=r(n(6))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LEVEL=void 0,e.invariant=function(t,e){for(var n=[],r=2;r"},key:(0===l?"top":"bottom")+"-statistic"},(0,a.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},e.renderGaugeStatistic=function(t,e,n){var l=e.statistic;[l.title,l.content].forEach((function(e){if(e){var l=(0,i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html((0,r.__assign)({position:["50%","100%"],html:function(t,a){var u=a.getCoordinate(),c=a.views[0].getCoordinate(),f=c.getCenter(),d=c.getRadius(),p=Math.max(Math.sin(c.startAngle),Math.sin(c.endAngle))*d,h=f.y+p-u.y.start-parseFloat((0,i.get)(l,"fontSize",0)),g=u.getRadius()*u.innerRadius*2;s(t,(0,r.__assign)({width:g+"px",transform:"translate(-50%, "+h+"px)"},o(l)));var v=a.getData();if(e.customHtml)return e.customHtml(t,a,n,v);var y=e.content;return e.formatter&&(y=e.formatter(n,v)),y?(0,i.isString)(y)?y:""+y:"
"}},(0,a.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GLOBAL=void 0,e.setGlobal=function(t){(0,r.each)(t,(function(t,e){return i[e]=t}))};var r=n(0),i={locale:"en-US"};e.GLOBAL=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Line=void 0;var r=n(1),i=n(19),a=n(303),o=n(1192);n(1193);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;(0,a.meta)({chart:e,options:n}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Line=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasPattern=function(t){var e,n=t.type,o=t.cfg;switch(n){case"dot":e=(0,r.createDotPattern)(o);break;case"line":e=(0,i.createLinePattern)(o);break;case"square":e=(0,a.createSquarePattern)(o)}return e};var r=n(1183),i=n(1184),a=n(1185)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.point=function(t){var e=t.options,n=e.point,s=e.xField,l=e.yField,u=e.seriesField,c=e.sizeField,f=e.shapeField,d=e.tooltip,p=(0,i.getTooltipMapping)(d,[s,l,u,c,f]),h=p.fields,g=p.formatter;return n?(0,o.geometry)((0,a.deepAssign)({},t,{options:{type:"point",colorField:u,shapeField:f,tooltipFields:h,mapping:(0,r.__assign)({tooltip:g},n)}})):t};var r=n(1),i=n(65),a=n(7),o=n(49)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polygon=function(t){var e=t.options,n=e.polygon,s=e.xField,l=e.yField,u=e.seriesField,c=e.tooltip,f=(0,i.getTooltipMapping)(c,[s,l,u]),d=f.fields,p=f.formatter;return n?(0,o.geometry)((0,a.deepAssign)({},t,{options:{type:"polygon",colorField:u,tooltipFields:d,mapping:(0,r.__assign)({tooltip:p},n)}})):t};var r=n(1),i=n(65),a=n(7),o=n(49)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Area=void 0;var r=n(1),i=n(19),a=n(123),o=n(549),s=n(1195),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField,s=this.chart,l=this.options;(0,o.meta)({chart:s,options:l}),this.chart.changeData((0,a.getDataWhetherPecentage)(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Area=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(a.theme,(0,a.pattern)("areaStyle"),c,u.meta,d,u.axis,u.legend,a.tooltip,f,a.slider,(0,a.annotation)(),a.interaction,a.animation,a.limitInPlot)(t)},Object.defineProperty(e,"meta",{enumerable:!0,get:function(){return u.meta}});var r=n(1),i=n(0),a=n(22),o=n(7),s=n(30),l=n(123),u=n(303);function c(t){var e=t.chart,n=t.options,i=n.data,a=n.areaStyle,u=n.color,c=n.point,f=n.line,d=n.isPercent,p=n.xField,h=n.yField,g=n.tooltip,v=n.seriesField,y=n.startOnZero,m=null===c||void 0===c?void 0:c.state,b=(0,l.getDataWhetherPecentage)(i,h,p,h,d);e.data(b);var x=d?(0,r.__assign)({formatter:function(t){return{name:t[v]||t[p],value:(100*Number(t[h])).toFixed(2)+"%"}}},g):g,_=(0,o.deepAssign)({},t,{options:{area:{color:u,style:a},line:f&&(0,r.__assign)({color:u},f),point:c&&(0,r.__assign)({color:u},c),tooltip:x,label:void 0,args:{startOnZero:y}}}),O=(0,o.deepAssign)({options:{line:{size:2}}},_,{options:{sizeField:v,tooltip:!1}}),P=(0,o.deepAssign)({},_,{options:{tooltip:!1,state:m}});return(0,s.area)(_),(0,s.line)(O),(0,s.point)(P),t}function f(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=(0,o.findGeometry)(e,"area");if(i){var l=i.callback,u=(0,r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:(0,r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},(0,o.transformLabel)(u))})}else s.label(!1);return t}function d(t){var e=t.chart,n=t.options,r=n.isStack,a=n.isPercent,o=n.seriesField;return(a||r)&&o&&(0,i.each)(e.geometries,(function(t){t.adjust("stack")})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Column=void 0;var r=n(1),i=n(19),a=n(123),o=n(198),s=n(1200),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent,s=this.chart,l=this.options;(0,o.meta)({chart:s,options:l}),this.chart.changeData((0,a.getDataWhetherPecentage)(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Column=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.conversionTagFormatter=function(t,e){return(0,r.isNumber)(t)&&(0,r.isNumber)(e)?t===e?"100%":0===t?"\u221e":0===e?"-\u221e":(100*e/t).toFixed(2)+"%":"-"};var r=n(0)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.brushInteraction=function(t){var e=t.options,n=e.brush,s=(0,r.filter)(e.interactions||[],(function(t){return-1===o.indexOf(t.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(o.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")}var a={type:t,enable:r};((null===(e=n.mask)||void 0===e?void 0:e.style)||n.type)&&(a.cfg=(0,i.getInteractionCfg)(t,n.type,n.mask)),s.push(a)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&s.push({type:"filter-action",cfg:{buttonConfig:n.button}})),(0,a.deepAssign)({},t,{options:{interactions:s}})};var r=n(0),i=n(1198),a=n(7),o=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Bar=void 0;var r=n(1),i=n(19),a=n(123),o=n(554),s=n(1201),l=n(555),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options,i=n.xField,s=n.yField,u=n.isPercent,c=(0,r.__assign)((0,r.__assign)({},n),{xField:s,yField:i});(0,o.meta)({chart:e,options:c}),e.changeData((0,a.getDataWhetherPecentage)((0,l.transformBarData)(t),i,s,i,u))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Bar=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){var e=t.chart,n=t.options,o=n.xField,s=n.yField,l=n.xAxis,u=n.yAxis,c=n.barStyle,f=n.barWidthRatio,d=n.label,p=n.data,h=n.seriesField,g=n.isStack,v=n.minBarWidth,y=n.maxBarWidth;d&&!d.position&&(d.position="left",d.layout||(d.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]));var m=n.legend;h?!1!==m&&(m=(0,r.__assign)({position:g?"top-left":"right-top",reversed:!g},m||{})):m=!1,t.options.legend=m;var b=n.tooltip;return h&&!1!==b&&(b=(0,r.__assign)({reversed:!g},b||{})),t.options.tooltip=b,e.coordinate().transpose(),(0,i.adaptor)({chart:e,options:(0,r.__assign)((0,r.__assign)({},n),{label:d,xField:s,yField:o,xAxis:u,yAxis:l,columnStyle:c,columnWidthRatio:f,minColumnWidth:v,maxColumnWidth:y,columnBackground:n.barBackground,data:(0,a.transformBarData)(p)})},!0)},Object.defineProperty(e,"meta",{enumerable:!0,get:function(){return i.meta}});var r=n(1),i=n(198),a=n(555)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformBarData=function(t){return t?t.slice().reverse():t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pie=void 0;var r=n(1),i=n(14),a=n(19),o=n(7),s=n(557),l=n(558),u=n(559);n(560);var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=(0,o.processIllegalData)(e.data,n),a=(0,o.processIllegalData)(t,n);(0,u.isAllZero)(r,n)||(0,u.isAllZero)(a,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(a),(0,s.pieAnnotation)({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e}(a.Plot);e.Pie=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,c.flow)((0,l.pattern)("pieStyle"),h,g,a.theme,v,a.legend,x,y,a.state,b,_,a.animation)(t)},e.interaction=_,e.pieAnnotation=b,e.transformStatisticOptions=m;var r=n(1),i=n(0),a=n(22),o=n(49),s=n(30),l=n(122),u=n(196),c=n(7),f=n(558),d=n(559),p=n(560);function h(t){var e=t.chart,n=t.options,i=n.data,a=n.angleField,o=n.colorField,l=n.color,u=n.pieStyle,f=(0,c.processIllegalData)(i,a);if((0,d.isAllZero)(f,a)){var p="$$percentage$$";f=f.map((function(t){var e;return(0,r.__assign)((0,r.__assign)({},t),((e={})[p]=1/f.length,e))})),e.data(f);var h=(0,c.deepAssign)({},t,{options:{xField:"1",yField:p,seriesField:o,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0}}});(0,s.interval)(h)}else e.data(f),h=(0,c.deepAssign)({},t,{options:{xField:"1",yField:a,seriesField:o,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0}}}),(0,s.interval)(h);return t}function g(t){var e,n=t.chart,r=t.options,i=r.meta,a=r.colorField,o=(0,c.deepAssign)({},i);return n.scale(o,((e={})[a]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:a,endAngle:o}}),t}function y(t){var e=t.chart,n=t.options,a=n.label,o=n.colorField,s=n.angleField,l=e.geometries[0];if(a){var u=a.callback,f=(0,r.__rest)(a,["callback"]),p=(0,c.transformLabel)(f);if(p.content){var h=p.content;p.content=function(t,n,a){var l=t[o],u=t[s],f=e.getScaleByField(s),d=null===f||void 0===f?void 0:f.scale(u);return(0,i.isFunction)(h)?h((0,r.__assign)((0,r.__assign)({},t),{percent:d}),n,a):(0,i.isString)(h)?(0,c.template)(h,{value:u,name:l,percentage:(0,i.isNumber)(d)&&!(0,i.isNil)(u)?(100*d).toFixed(2)+"%":null}):h}}var g=p.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[p.type]:"pie-outer",v=p.layout?(0,i.isArray)(p.layout)?p.layout:[p.layout]:[];p.layout=(g?[{type:g}]:[]).concat(v),l.label({fields:o?[s,o]:[s],callback:u,cfg:(0,r.__assign)((0,r.__assign)({},p),{offset:(0,d.adaptOffset)(p.type,p.offset),type:"pie"})})}else l.label(!1);return t}function m(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,a=t.colorField,o=t.meta,s=t.locale,l=(0,u.getLocale)(s);if(e&&n){var p=(0,c.deepAssign)({},f.DEFAULT_OPTIONS.statistic,n),h=p.title,g=p.content;return!1!==h&&(h=(0,c.deepAssign)({},{formatter:function(t){return t?t[a]:(0,i.isNil)(h.content)?l.get(["statistic","total"]):h.content}},h)),!1!==g&&(g=(0,c.deepAssign)({},{formatter:function(t,e){var n=t?t[r]:(0,d.getTotalValue)(e,r),a=(0,i.get)(o,[r,"formatter"])||function(t){return t};return t||(0,i.isNil)(g.content)?a(n):g.content}},g)),(0,c.deepAssign)({},{statistic:{title:h,content:g}},t)}return t}function b(t){var e=t.chart,n=m(t.options),r=n.innerRadius,i=n.statistic;return e.getController("annotation").clear(!0),(0,c.flow)((0,a.annotation)())(t),r&&i&&(0,c.renderStatistic)(e,{statistic:i,plotType:"pie"}),t}function x(t){var e=t.chart,n=t.options,r=n.tooltip,a=n.colorField,s=n.angleField,l=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip((0,c.deepAssign)({},r,{shared:!1})),(0,d.isAllZero)(l,s)){var u=(0,i.get)(r,"fields"),f=(0,i.get)(r,"formatter");(0,i.isEmpty)((0,i.get)(r,"fields"))&&(u=[a,s],f=f||function(t){return{name:t[a],value:(0,i.toString)(t[s])}}),e.geometries[0].tooltip(u.join("*"),(0,o.getMappingFunction)(u,f))}return t}function _(t){var e=t.chart,n=m(t.options),a=n.interactions,o=n.statistic,s=n.annotations;return(0,i.each)(a,(function(t){var n,a;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var l=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(l=[{trigger:"element:mouseenter",action:p.PIE_STATISTIC+":change",arg:{statistic:o,annotations:s}}]),(0,i.each)(null===(a=t.cfg)||void 0===a?void 0:a.start,(function(t){l.push((0,r.__assign)((0,r.__assign)({},t),{arg:{statistic:o,annotations:s}}))})),e.interaction(t.type,(0,c.deepAssign)({},t.cfg,{start:l}))}else e.interaction(t.type,t.cfg||{})})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{legend:{position:"right"},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}}}}});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptOffset=function(t,e){var n;switch(t){case"inner":return n="-30%",(0,r.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,(0,r.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}},e.getTotalValue=function(t,e){var n=null;return(0,r.each)(t,(function(t){"number"===typeof t[e]&&(n+=t[e])})),n},e.isAllZero=function(t,e){return(0,r.every)((0,i.processIllegalData)(t,e),(function(t){return 0===t[e]}))};var r=n(0),i=n(7)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PIE_STATISTIC=void 0;var r=n(14),i=n(1202),a=n(1203),o="pie-statistic";e.PIE_STATISTIC=o,(0,r.registerAction)(o,a.StatisticAction),(0,r.registerInteraction)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),(0,r.registerAction)("pie-legend",i.PieLegendAction),(0,r.registerInteraction)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transform=function(t,e){var n=e?(0,r.__spreadArrays)(e):(0,r.__spreadArrays)(a);return i.Util.transform(n,t)};var r=n(1),i=n(14),a=[1,0,0,0,1,0,0,0,1]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFontSizeMapping=u,e.getSingleKeyValues=c,e.getSize=l,e.processImageMask=function(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if((0,i.isString)(t)){var r=new Image;return r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},void(r.onerror=function(){(0,o.log)(o.LEVEL.ERROR,!1,"image %s load failed !!!",t),n()})}(0,o.log)(o.LEVEL.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))},e.transform=function(t){var e=t.options,n=t.chart,a=n,o=a.width,p=a.height,h=a.padding,g=a.appendPadding,v=a.ele,y=e.data,m=e.imageMask,b=e.wordField,x=e.weightField,_=e.colorField,O=e.wordStyle,P=e.timeInterval,w=e.random,M=e.spiral,S=e.autoFit,A=void 0===S||S,E=e.placementStrategy;if(!y||!y.length)return[];var C,j=O.fontFamily,I=O.fontWeight,T=O.padding,F=O.fontSize,L=c(y,x),k=[(C=L,Math.min.apply(Math,C)),d(L)],D=y.map((function(t){return{text:t[b],value:t[x],color:t[_],datum:t}})),R={imageMask:m,font:j,fontSize:u(F,k),fontWeight:I,size:l({width:o,height:p,padding:h,appendPadding:g,autoFit:A,container:v}),padding:T,timeInterval:P,random:w,spiral:M,rotate:f(e)};if((0,i.isFunction)(E)){var N=D.map((function(t,e,i){return(0,r.__assign)((0,r.__assign)((0,r.__assign)({},t),{hasText:!!t.text,font:(0,s.functor)(R.font)(t,e,i),weight:(0,s.functor)(R.fontWeight)(t,e,i),rotate:(0,s.functor)(R.rotate)(t,e,i),size:(0,s.functor)(R.fontSize)(t,e,i),style:"normal"}),E.call(n,t,e,i))}));return N.push({text:"",value:0,x:0,y:0,opacity:0}),N.push({text:"",value:0,x:R.size[0],y:R.size[1],opacity:0}),N}return(0,s.wordCloud)(D,R)};var r=n(1),i=n(0),a=n(121),o=n(7),s=n(1210);function l(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,s=t.padding,l=t.appendPadding;if(i){var u=(0,o.getContainerSize)(r);e=u.width,n=u.height}e=e||400,n=n||400;var c=function(t){var e=(0,a.normalPadding)(t.padding),n=(0,a.normalPadding)(t.appendPadding),r=e[0]+n[0],i=e[1]+n[1],o=e[2]+n[2],s=e[3]+n[3];return[r,i,o,s]}({padding:s,appendPadding:l}),f=c[0],d=c[1],p=c[2];return[e-(c[3]+d),n-(f+p)]}function u(t,e){if((0,i.isFunction)(t))return t;if((0,i.isArray)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var a=e[0],o=e[1];return o===a?function(){return(r+n)/2}:function(t){var e=t.value;return(r-n)/(o-a)*(e-a)+n}}return function(){return t}}function c(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"===typeof t&&!isNaN(t)}))}function f(t){var e=function(t){var e=t.wordStyle.rotationSteps;return e<1&&((0,o.log)(o.LEVEL.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}(t),n=e.rotation,r=e.rotationSteps;if(!(0,i.isArray)(n))return n;var a=n[0],s=n[1],l=1===r?0:(s-a)/(r-1);return function(){return s===a?s:Math.floor(Math.random()*r)*l}}function d(t){return Math.max.apply(Math,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WORD_CLOUD_COLOR_FIELD=e.DEFAULT_OPTIONS=void 0;var r=n(19),i=n(7),a="color";e.WORD_CLOUD_COLOR_FIELD=a;var o=(0,i.deepAssign)({},r.Plot.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",a],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}});e.DEFAULT_OPTIONS=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scatter=void 0;var r=n(1),i=n(14),a=n(19),o=n(7),s=n(565),l=n(1213);n(1214);var u=function(t){function e(e,n){var a=t.call(this,e,n)||this;return a.type="scatter",a.on(i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,(function(t){var e,n,o=a,l=o.options,u=o.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===i.BRUSH_FILTER_EVENTS.FILTER){var c=a.chart.filterData(a.chart.getData());(0,s.meta)({chart:u,options:(0,r.__assign)((0,r.__assign)({},l),{data:c})})}(null===(n=t.data)||void 0===n?void 0:n.source)===i.BRUSH_FILTER_EVENTS.RESET&&(0,s.meta)({chart:u,options:l})})),a}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption((0,s.transformOptions)((0,o.deepAssign)({},this.options,{data:t})));var e=this.options,n=this.chart;(0,s.meta)({chart:n,options:e}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(a.Plot);e.Scatter=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,a.flow)(f,d,p,h,m,g,s.brushInteraction,l.interaction,v,l.animation,l.theme,y)(t)},e.meta=d,e.tooltip=m,e.transformOptions=c;var r=n(1),i=n(0),a=n(7),o=n(30),s=n(552),l=n(22),u=n(1212);function c(t){var e=t.data,n=void 0===e?[]:e,r=t.xField,i=t.yField;if(n.length){for(var o=!0,s=!0,l=n[0],c=void 0,f=1;f1?c/(a-1):u.max),!n&&!a){var d=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(l);f=c/d}var p={},h=(0,r.groupBy)(s,o);(0,r.isEmpty)(h)?(0,r.each)(s,(function(t){var n=i(t[e],f,a),o=n[0]+"-"+n[1];(0,r.hasKey)(p,o)||(p[o]={range:n,count:0}),p[o].count+=1})):Object.keys(h).forEach((function(t){(0,r.each)(h[t],(function(n){var s=i(n[e],f,a),l=s[0]+"-"+s[1]+"-"+t;(0,r.hasKey)(p,l)||(p[l]={range:s,count:0},p[l][o]=t),p[l].count+=1}))}));var g=[];return(0,r.each)(p,(function(t){g.push(t)})),g};var r=n(0);function i(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(i.theme,(0,a.pattern)("columnStyle"),c,f,d,i.state,p,i.tooltip,i.interaction,i.animation)(t)};var r=n(1),i=n(22),a=n(122),o=n(7),s=n(30),l=n(575),u=n(577);function c(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,a=n.binNumber,c=n.binWidth,f=n.color,d=n.stackField,p=n.legend,h=n.columnStyle,g=(0,l.binHistogram)(r,i,c,a,d);e.data(g);var v=(0,o.deepAssign)({},t,{options:{xField:u.HISTOGRAM_X_FIELD,yField:u.HISTOGRAM_Y_FIELD,seriesField:d,isStack:!0,interval:{color:f,style:h}}});return(0,s.interval)(v),p&&d&&e.legend(d,p),t}function f(t){var e,n=t.options,r=n.xAxis,a=n.yAxis;return(0,o.flow)((0,i.scale)(((e={})[u.HISTOGRAM_X_FIELD]=r,e[u.HISTOGRAM_Y_FIELD]=a,e)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis(u.HISTOGRAM_X_FIELD,!1):e.axis(u.HISTOGRAM_X_FIELD,r),!1===i?e.axis(u.HISTOGRAM_Y_FIELD,!1):e.axis(u.HISTOGRAM_Y_FIELD,i),t}function p(t){var e=t.chart,n=t.options.label,i=(0,o.findGeometry)(e,"interval");if(n){var a=n.callback,s=(0,r.__rest)(n,["callback"]);i.label({fields:[u.HISTOGRAM_Y_FIELD],callback:a,cfg:(0,o.transformLabel)(s)})}else i.label(!1);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HISTOGRAM_Y_FIELD=e.HISTOGRAM_X_FIELD=e.DEFAULT_OPTIONS=void 0;var r=n(19),i=n(7);e.HISTOGRAM_X_FIELD="range",e.HISTOGRAM_Y_FIELD="count";var a=(0,i.deepAssign)({},r.Plot.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});e.DEFAULT_OPTIONS=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Progress=void 0;var r=n(1),i=n(19),a=n(306),o=n(579),s=n(307),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData((0,s.getProgressData)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Progress=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=e.DEFAULT_COLOR=void 0;var r=["#FAAD14","#E8EDF3"];e.DEFAULT_COLOR=r;var i={percent:.2,color:r,animation:{}};e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RingProgress=void 0;var r=n(1),i=n(14),a=n(19),o=n(307),s=n(581),l=n(1226),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data((0,o.getProgressData)(t)),(0,s.statistic)({chart:this.chart,options:this.options},!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e}(a.Plot);e.RingProgress=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,a.flow)(s.geometry,(0,o.scale)({}),l,u,o.animation,o.theme,(0,o.annotation)())(t)},e.statistic=u;var r=n(1),i=n(0),a=n(7),o=n(22),s=n(306);function l(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function u(t,e){var n=t.chart,o=t.options,s=o.innerRadius,l=o.statistic,u=o.percent,c=o.meta;if(n.getController("annotation").clear(!0),s&&l){var f=(0,i.get)(c,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},d=l.content;d&&(d=(0,a.deepAssign)({},d,{content:(0,i.isNil)(d.content)?f(u):d.content})),(0,a.renderStatistic)(n,{statistic:(0,r.__assign)((0,r.__assign)({},l),{content:d}),plotType:"ring-progress"},{percent:u})}return e&&n.render(!0),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformData=void 0;var r=n(0),i=n(308);e.transformData=function(t,e){var n=t;if(Array.isArray(e)){var a=e[0],o=e[1],s=e[2],l=e[3],u=e[4];n=(0,r.map)(t,(function(t){return t[i.BOX_RANGE]=[t[a],t[o],t[s],t[l],t[u]],t}))}return n}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.transformViolinData=e.toViolinValue=e.toBoxValue=void 0;var i=n(1),a=n(0),o=r(n(1236)),s=n(1238),l=function(t){return{low:(0,a.min)(t),high:(0,a.max)(t),q1:(0,s.quantile)(t,.25),q3:(0,s.quantile)(t,.75),median:(0,s.quantile)(t,[.5]),minMax:[(0,a.min)(t),(0,a.max)(t)],quantile:[(0,s.quantile)(t,.25),(0,s.quantile)(t,.75)]}};e.toBoxValue=l;var u=function(t,e){var n=o.default.create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}};e.toViolinValue=u,e.transformViolinData=function(t){var e=t.xField,n=t.yField,r=t.seriesField,o=t.data,s=t.kde,c={min:s.min,max:s.max,size:s.sampleSize,width:s.width};if(!r){var f=(0,a.groupBy)(o,e);return Object.keys(f).map((function(t){var e=f[t].map((function(t){return t[n]}));return(0,i.__assign)((0,i.__assign)({x:t},u(e,c)),l(e))}))}var d=[],p=(0,a.groupBy)(o,r);return Object.keys(p).forEach((function(t){var o=(0,a.groupBy)(p[t],e);return Object.keys(o).forEach((function(e){var a,s=o[e].map((function(t){return t[n]}));d.push((0,i.__assign)((0,i.__assign)(((a={x:e})[r]=t,a),u(s,c)),l(s)))}))})),d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.X_FIELD=e.VIOLIN_Y_FIELD=e.VIOLIN_VIEW_ID=e.VIOLIN_SIZE_FIELD=e.QUANTILE_VIEW_ID=e.QUANTILE_FIELD=e.MIN_MAX_VIEW_ID=e.MIN_MAX_FIELD=e.MEDIAN_VIEW_ID=e.MEDIAN_FIELD=e.DEFAULT_OPTIONS=void 0;var r=n(19),i=n(7);e.X_FIELD="x",e.VIOLIN_Y_FIELD="violinY",e.VIOLIN_SIZE_FIELD="violinSize",e.MIN_MAX_FIELD="minMax",e.QUANTILE_FIELD="quantile",e.MEDIAN_FIELD="median",e.VIOLIN_VIEW_ID="violin_view",e.MIN_MAX_VIEW_ID="min_max_view",e.QUANTILE_VIEW_ID="quantile_view",e.MEDIAN_VIEW_ID="median_view";var a=(0,i.deepAssign)({},r.Plot.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}});e.DEFAULT_OPTIONS=a},function(t,e,n){"use strict";var r,i,a,o,s=n(2)(n(6));o=function(t){function e(t){for(var e=new Array(t),n=0;nu+s*o*c||f>=g)h=o;else{if(Math.abs(p)<=-l*c)return o;p*(h-d)>=0&&(h=d),d=o,g=f}return 0}o=o||1,s=s||1e-6,l=l||.1;for(var v=0;v<10;++v){if(a(i.x,1,r.x,o,e),f=i.fx=t(i.x,i.fxprime),p=n(i.fxprime,e),f>u+s*o*c||v&&f>=d)return g(h,o,d);if(Math.abs(p)<=-l*c)return o;if(p>=0)return g(o,h,f);d=f,h=o,o*=2}return o}t.bisect=function(t,e,n,r){var i=(r=r||{}).maxIterations||100,a=r.tolerance||1e-10,o=t(e),s=t(n),l=n-e;if(o*s>0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===s)return n;for(var u=0;u=0&&(e=c),Math.abs(l)=g[h-1].fx){var E=!1;if(_.fx>A.fx?(a(O,1+d,x,-d,A),O.fx=t(O),O.fx=1)break;for(v=1;v=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return a(t,t-(n*n-e*e+t*t)/(2*n))+a(e,r)},e.containedInCircles=i,e.distance=o,e.getCenter=l,e.intersectionArea=function(t,e){var n,u=function(t){for(var e=[],n=0;n1){var h=l(c);for(n=0;n-1){var _=t[y.parentIndex[x]],O=Math.atan2(y.x-_.x,y.y-_.y),P=Math.atan2(v.x-_.x,v.y-_.y),w=P-O;w<0&&(w+=2*Math.PI);var M=P-w/2,S=o(m,{x:_.x+_.radius*Math.sin(M),y:_.y+_.radius*Math.cos(M)});S>2*_.radius&&(S=2*_.radius),(null===b||b.width>S)&&(b={circle:_,width:S,p1:y,p2:v})}null!==b&&(p.push(b),f+=a(b.circle.radius,b.width),v=y)}}else{var A=t[0];for(n=1;nMath.abs(A.radius-t[n].radius)){E=!0;break}E?f=d=0:(f=A.radius*A.radius*Math.PI,p.push({circle:A,p1:{x:A.x,y:A.y+A.radius},p2:{x:A.x-r,y:A.y+A.radius},width:2*A.radius}))}return d/=2,e&&(e.area=f+d,e.arcArea=f,e.polygonArea=d,e.arcs=p,e.innerPoints=c,e.intersectionPoints=u),f+d};var r=1e-10;function i(t,e){for(var n=0;ne[n].radius+r)return!1;return!0}function a(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function o(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function s(t,e){var n=o(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var a=(r*r-i*i+n*n)/(2*n),s=Math.sqrt(r*r-a*a),l=t.x+a*(e.x-t.x)/n,u=t.y+a*(e.y-t.y)/n,c=-(e.y-t.y)*(s/n),f=-(e.x-t.x)*(s/n);return[{x:l+c,y:u-f},{x:l-c,y:u+f}]}function l(t){for(var e={x:0,y:0},n=0;n1?r+"_"+a:""+r})[n]=n?t[n]:String(e),o[r]=i,o))})),s.push(((o={tKey:""+a})[n]=n?t[n]:String(e),o[a]=t[a],o)),l.push(t[i],t[r],t[a])}));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"===o&&s.reverse(),{min:u,max:c,ds:s}}},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.getTileMethod=u,e.treemap=function(t,e){var n,r=(e=(0,a.assign)({},l,e)).as;if(!(0,a.isArray)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=(0,o.getField)(e)}catch(p){console.warn(p)}var s=u(e.tile,e.ratio),c=function(t){return i.treemap().tile(s).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)(i.hierarchy(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))}(t),f=r[0],d=r[1];return c.each((function(t){t[f]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===r.indexOf(e)&&delete t[e]}))})),(0,o.getAllNodes)(c)};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}(n(193)),a=n(0),o=n(157);function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}var l={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 u(t,e){return"treemapSquarify"===t?i[t].ratio(e):i[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Gauge=void 0;var r=n(1),i=n(14),a=n(19),o=n(595),s=n(314),l=n(596);n(1268),n(1269);var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find((function(t){return t.id===s.INDICATEOR_VIEW_ID}));e&&e.data((0,l.getIndicatorData)(t));var n=this.chart.views.find((function(t){return t.id===s.RANGE_VIEW_ID}));n&&n.data((0,l.getRangeData)(t,this.options.range)),(0,o.statistic)({chart:this.chart,options:this.options},!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(a.Plot);e.Gauge=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,l.flow)(a.theme,a.animation,f,d,p,a.interaction,(0,a.annotation)(),h)(t)},e.statistic=p;var r=n(1),i=n(0),a=n(22),o=n(30),s=n(99),l=n(7),u=n(314),c=n(596);function f(t){var e=t.chart,n=t.options,r=n.percent,a=n.range,f=n.radius,d=n.innerRadius,p=n.startAngle,h=n.endAngle,g=n.axis,v=n.indicator,y=n.gaugeStyle,m=n.type,b=n.meter,x=a.color,_=a.width;if(v){var O=(0,c.getIndicatorData)(r),P=e.createView({id:u.INDICATEOR_VIEW_ID});P.data(O),P.point().position(u.PERCENT+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),P.coordinate("polar",{startAngle:p,endAngle:h,radius:d*f}),P.axis(u.PERCENT,g),P.scale(u.PERCENT,(0,l.pick)(g,s.AXIS_META_CONFIG_KEYS))}var w=(0,c.getRangeData)(r,n.range),M=e.createView({id:u.RANGE_VIEW_ID});M.data(w);var S=(0,i.isString)(x)?[x,u.DEFAULT_COLOR]:x;return(0,o.interval)({chart:M,options:{xField:"1",yField:u.RANGE_VALUE,seriesField:u.RANGE_TYPE,rawFields:[u.PERCENT],isStack:!0,interval:{color:S,style:y,shape:"meter"===m?"meter-gauge":null},args:{zIndexReversed:!0},minColumnWidth:_,maxColumnWidth:_}}).ext.geometry.customInfo({meter:b}),M.coordinate("polar",{innerRadius:d,radius:f,startAngle:p,endAngle:h}).transpose(),t}function d(t){var e;return(0,l.flow)((0,a.scale)(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[u.PERCENT]={},e)))(t)}function p(t,e){var n=t.chart,i=t.options,a=i.statistic,o=i.percent;if(n.getController("annotation").clear(!0),a){var s=a.content,u=void 0;s&&(u=(0,l.deepAssign)({},{content:(100*o).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),(0,l.renderGaugeStatistic)(n,{statistic:(0,r.__assign)((0,r.__assign)({},a),{content:u})},{percent:o})}return e&&n.render(!0),t}function h(t){var e=t.chart;return e.legend(!1),e.tooltip(!1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIndicatorData=function(t){var e;return[(e={},e[i.PERCENT]=(0,r.clamp)(t,0,1),e)]},e.getRangeData=function(t,e){var n=(0,r.get)(e,["ticks"],[]);return a((0,r.size)(n)?n:[0,(0,r.clamp)(t,0,1),1],t)},e.processRangeData=a;var r=n(0),i=n(314);function a(t,e){return t.map((function(n,r){var a;return(a={})[i.RANGE_VALUE]=n-(t[r-1]||0),a[i.RANGE_TYPE]=""+r,a[i.PERCENT]=e,a})).filter((function(t){return!!t[i.RANGE_VALUE]}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processData=s,e.transformData=function(t,e,n,a){return s(t,e,n,o.Y_FIELD,a).map((function(e,n){var a;return(0,i.isObject)(e)?(0,r.__assign)((0,r.__assign)({},e),((a={})[o.ABSOLUTE_FIELD]=e[o.Y_FIELD][1],a[o.DIFF_FIELD]=e[o.Y_FIELD][1]-e[o.Y_FIELD][0],a[o.IS_TOTAL]=n===t.length,a)):e}))};var r=n(1),i=n(0),a=n(7),o=n(315);function s(t,e,n,o,s){var l,u=[];if((0,i.reduce)(t,(function(t,e){var s;(0,a.log)(a.LEVEL.WARN,(0,i.isNumber)(e[n]),e[n]+" is not a valid number");var l=(0,i.isUndefined)(e[n])?null:e[n];return u.push((0,r.__assign)((0,r.__assign)({},e),((s={})[o]=[t,t+l],s))),t+l}),0),u.length&&s){var c=(0,i.get)(u,[[t.length-1],o,[1]]);u.push(((l={})[e]=s.label,l[n]=c,l[o]=[0,c],l))}return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SERIES_FIELD_KEY=e.SECOND_AXES_VIEW=e.FIRST_AXES_VIEW=void 0,e.FIRST_AXES_VIEW="first-axes-view",e.SECOND_AXES_VIEW="second-axes-view",e.SERIES_FIELD_KEY="series-field-key"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isHorizontal=i,e.syncViewPadding=function(t,e,n){var r=e[0],a=e[1],o=r.autoPadding,s=a.autoPadding,l=t.__axisPosition,u=l.layout,c=l.position;if(i(u)&&"top"===c&&(r.autoPadding=n.instance(o.top,0,o.bottom,o.left),a.autoPadding=n.instance(s.top,o.left,s.bottom,0)),i(u)&&"bottom"===c&&(r.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),a.autoPadding=n.instance(s.top,s.right,s.bottom,o.right/2+5)),!i(u)&&"bottom"===c){var f=o.left>=s.left?o.left:s.left;r.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,f),a.autoPadding=n.instance(o.bottom/2+5,s.right,s.bottom,f)}i(u)||"top"!==c||(f=o.left>=s.left?o.left:s.left,r.autoPadding=n.instance(o.top,o.right,0,f),a.autoPadding=n.instance(0,s.right,o.top,f))},e.transformData=function(t,e,n,i,a){var o=[];e.forEach((function(e){i.forEach((function(r){var i,a=((i={})[t]=r[t],i[n]=e,i[e]=r[e],i);o.push(a)}))}));var s=Object.values((0,r.groupBy)(o,n)),l=s[0],u=void 0===l?[]:l,c=s[1],f=void 0===c?[]:c;return a?[u.reverse(),f.reverse()]:[u,f]};var r=n(0);function i(t){return"vertical"!==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enableDrillInteraction=function(t){var e=t.interactions,n=t.drilldown;return(0,i.get)(n,"enabled")||l(e,"treemap-drill-down")},e.enableInteraction=l,e.findInteraction=s,e.resetDrillDown=function(t){var e=t.interactions["drill-down"];e&&e.context.actions.find((function(t){return"drill-down-action"===t.name})).reset()},e.transformData=function(t){var e=t.data,n=t.colorField,s=t.enableDrillDown,l=t.hierarchyConfig,u=(0,o.treemap)(e,(0,r.__assign)((0,r.__assign)({},l),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),c=[];return u.forEach((function(t){if(0===t.depth)return null;if(s&&1!==t.depth)return null;if(!s&&t.children)return null;var o=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),u=s&&(0,i.isArray)(e.path)?o.concat(e.path.slice(1)):o,f=Object.assign({},t.data,(0,r.__assign)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:u},t));if(!t.data[n]&&t.parent){var d=t.ancestors().find((function(t){return t.data[n]}));f[n]=null===d||void 0===d?void 0:d.data[n]}else f[n]=t.data[n];f[a.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:l,colorField:n,enableDrillDown:s},c.push(f)})),c};var r=n(1),i=n(0),a=n(201),o=n(593);function s(t,e){if((0,i.isArray)(t))return t.find((function(t){return t.type===e}))}function l(t,e){var n=s(t,e);return n&&!1!==n.enable}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNodePaddingRatio=u,e.getNodeWidthRatio=l,e.transformToViewsData=function(t,e,n){var c=t.data,f=t.sourceField,d=t.targetField,p=t.weightField,h=t.nodeAlign,g=t.nodeSort,v=t.nodePadding,y=t.nodePaddingRatio,m=t.nodeWidth,b=t.nodeWidthRatio,x=t.nodeDepth,_=t.rawFields,O=void 0===_?[]:_,P=(0,a.transformDataToNodeLinkData)((0,s.cutoffCircle)(c,f,d),f,d,p,O),w=(0,o.sankeyLayout)({nodeAlign:h,nodePadding:u(v,y,n),nodeWidth:l(m,b,e),nodeSort:g,nodeDepth:x},P),M=w.nodes,S=w.links;return{nodes:M.map((function(t){return(0,r.__assign)((0,r.__assign)({},(0,i.pick)(t,(0,r.__spreadArrays)(["x","y","name"],O))),{isNode:!0})})),edges:S.map((function(t){return(0,r.__assign)((0,r.__assign)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},(0,i.pick)(t,(0,r.__spreadArrays)(["x","y","value"],O))),{isNode:!1})}))}};var r=n(1),i=n(7),a=n(197),o=n(1285),s=n(1289);function l(t,e,n){return(0,i.isRealNumber)(t)?t/n:e}function u(t,e,n){return(0,i.isRealNumber)(t)?t/n:e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.center=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?(0,r.minBy)(t.sourceLinks,i)-1:0},e.justify=function(t,e){return t.sourceLinks.length?t.depth:e-1},e.left=function(t){return t.depth},e.right=function(t,e){return e-1-t.height};var r=n(0);function i(t){return t.target.depth}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Y_FIELD=e.X_FIELD=e.NODE_COLOR_FIELD=e.EDGE_COLOR_FIELD=e.DEFAULT_OPTIONS=void 0;var r=n(0);e.X_FIELD="x",e.Y_FIELD="y",e.NODE_COLOR_FIELD="name",e.EDGE_COLOR_FIELD="source";var i={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!(0,r.get)(t,[0,"data","isNode"])},formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RAW_FIELDS=e.DEFAULT_OPTIONS=void 0,e.RAW_FIELDS=["x","y","r","name","value","path","depth"],e.DEFAULT_OPTIONS={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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Mix=void 0;var r=n(1),i=n(19),a=n(1302);n(1303);var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return(0,r.__extends)(e,t),e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Mix=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.execPlotAdaptor=function(t,e,n){var a=L[t];if(a){var o=F[t];o({chart:e,options:(0,i.deepAssign)({},a.getDefaultOptions(),(0,r.get)(k,t,{}),n)})}else console.error("could not find "+t+" plot")};var r=n(0),i=n(7),a=n(303),o=n(557),s=n(198),l=n(554),u=n(549),c=n(595),f=n(570),d=n(572),p=n(199),h=n(581),g=n(306),v=n(565),y=n(576),m=n(589),b=n(544),x=n(556),_=n(553),O=n(550),P=n(548),w=n(594),M=n(569),S=n(573),A=n(571),E=n(580),C=n(578),j=n(564),I=n(574),T=n(588),F={line:a.adaptor,pie:o.adaptor,column:s.adaptor,bar:l.adaptor,area:u.adaptor,gauge:c.adaptor,"tiny-line":f.adaptor,"tiny-column":d.adaptor,"tiny-area":p.adaptor,"ring-progress":h.adaptor,progress:g.adaptor,scatter:v.adaptor,histogram:y.adaptor,funnel:m.adaptor},L={line:b.Line,pie:x.Pie,column:O.Column,bar:_.Bar,area:P.Area,gauge:w.Gauge,"tiny-line":M.TinyLine,"tiny-column":A.TinyColumn,"tiny-area":S.TinyArea,"ring-progress":E.RingProgress,progress:C.Progress,scatter:j.Scatter,histogram:I.Histogram,funnel:T.Funnel},k={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRangeData=e.getIndicatorData=e.processRangeData=void 0;var r=n(0),i=n(317);function a(t,e){return t.map((function(n,r){var a;return(a={})[i.RANGE_VALUE]=n-(t[r-1]||0),a[i.RANGE_TYPE]=""+r,a[i.PERCENT]=e,a})).filter((function(t){return!!t[i.RANGE_VALUE]}))}e.processRangeData=a,e.getIndicatorData=function(t){var e;return[(e={},e[i.PERCENT]=r.clamp(t,0,1),e)]},e.getRangeData=function(t,e){var n=r.get(e,["ticks"],[]);return a(r.size(n)?n:[0,r.clamp(t,0,1),1],t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DualAxesGeometry=e.AxisType=void 0,function(t){t.Left="Left",t.Right="Right"}(e.AxisType||(e.AxisType={})),function(t){t.Line="line",t.Column="column"}(e.DualAxesGeometry||(e.DualAxesGeometry={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_RIGHT_YAXIS_CONFIG=e.DEFAULT_LEFT_YAXIS_CONFIG=e.DEFAULT_YAXIS_CONFIG=e.RIGHT_AXES_VIEW=e.LEFT_AXES_VIEW=void 0;var r=n(1);e.LEFT_AXES_VIEW="left-axes-view",e.RIGHT_AXES_VIEW="right-axes-view",e.DEFAULT_YAXIS_CONFIG={nice:!0,label:{autoHide:!0,autoRotate:!1}},e.DEFAULT_LEFT_YAXIS_CONFIG=r.__assign(r.__assign({},e.DEFAULT_YAXIS_CONFIG),{position:"left"}),e.DEFAULT_RIGHT_YAXIS_CONFIG=r.__assign(r.__assign({},e.DEFAULT_YAXIS_CONFIG),{position:"right",grid:null})},function(t,e,n){"use strict";n.d(e,"x",(function(){return f})),n.d(e,"B",(function(){return p})),n.d(e,"K",(function(){return b})),n.d(e,"J",(function(){return O})),n.d(e,"L",(function(){return S})),n.d(e,"q",(function(){return C})),n.d(e,"M",(function(){return L})),n.d(e,"I",(function(){return k})),n.d(e,"b",(function(){return B})),n.d(e,"F",(function(){return z})),n.d(e,"l",(function(){return W})),n.d(e,"t",(function(){return Y})),n.d(e,"z",(function(){return H})),n.d(e,"a",(function(){return q})),n.d(e,"E",(function(){return K})),n.d(e,"s",(function(){return Z})),n.d(e,"f",(function(){return et})),n.d(e,"m",(function(){return rt})),n.d(e,"G",(function(){return it})),n.d(e,"A",(function(){return at})),n.d(e,"u",(function(){return ot})),n.d(e,"v",(function(){return lt})),n.d(e,"g",(function(){return ct})),n.d(e,"o",(function(){return dt})),n.d(e,"O",(function(){return vt})),n.d(e,"C",(function(){return bt})),n.d(e,"j",(function(){return _t})),n.d(e,"H",(function(){return Pt})),n.d(e,"n",(function(){return Mt})),n.d(e,"y",(function(){return Ft})),n.d(e,"r",(function(){return Dt})),n.d(e,"p",(function(){return Nt})),n.d(e,"h",(function(){return Bt})),n.d(e,"N",(function(){return Vt})),n.d(e,"D",(function(){return Wt})),n.d(e,"c",(function(){return Yt})),n.d(e,"d",(function(){return qt})),n.d(e,"e",(function(){return Zt})),n.d(e,"k",(function(){return Jt})),n.d(e,"i",(function(){return ee})),n.d(e,"w",(function(){return ae}));var r={};n.r(r),n.d(r,"ProgressChart",(function(){return f})),n.d(r,"RingProgressChart",(function(){return p})),n.d(r,"TinyColumnChart",(function(){return b})),n.d(r,"TinyAreaChart",(function(){return O})),n.d(r,"TinyLineChart",(function(){return S}));var i={};n.r(i),n.d(i,"LineChart",(function(){return C})),n.d(i,"TreemapChart",(function(){return L})),n.d(i,"StepLineChart",(function(){return k})),n.d(i,"BarChart",(function(){return B})),n.d(i,"StackedBarChart",(function(){return z})),n.d(i,"GroupedBarChart",(function(){return W})),n.d(i,"PercentStackedBarChart",(function(){return Y})),n.d(i,"RangeBarChart",(function(){return H})),n.d(i,"AreaChart",(function(){return q})),n.d(i,"StackedAreaChart",(function(){return K})),n.d(i,"PercentStackedAreaChart",(function(){return Z})),n.d(i,"ColumnChart",(function(){return et})),n.d(i,"GroupedColumnChart",(function(){return rt})),n.d(i,"StackedColumnChart",(function(){return it})),n.d(i,"RangeColumnChart",(function(){return at})),n.d(i,"PercentStackedColumnChart",(function(){return ot})),n.d(i,"PieChart",(function(){return lt})),n.d(i,"DensityHeatmapChart",(function(){return ct})),n.d(i,"HeatmapChart",(function(){return dt})),n.d(i,"WordCloudChart",(function(){return vt})),n.d(i,"RoseChart",(function(){return bt})),n.d(i,"FunnelChart",(function(){return _t})),n.d(i,"StackedRoseChart",(function(){return Pt})),n.d(i,"GroupedRoseChart",(function(){return Mt})),n.d(i,"RadarChart",(function(){return Ft})),n.d(i,"LiquidChart",(function(){return Dt})),n.d(i,"HistogramChart",(function(){return Nt})),n.d(i,"DonutChart",(function(){return Bt})),n.d(i,"WaterfallChart",(function(){return Vt})),n.d(i,"ScatterChart",(function(){return Wt})),n.d(i,"BubbleChart",(function(){return Yt})),n.d(i,"BulletChart",(function(){return qt})),n.d(i,"CalendarChart",(function(){return Zt})),n.d(i,"GaugeChart",(function(){return Jt})),n.d(i,"DualAxesChart",(function(){return ee}));var a=n(4),o=n.n(a),s=n(3),l=n.n(s),u=n(629),c=n(11),f=Object(c.a)(u.Progress,"ProgressChart",(function(t){return o()({data:t.percent,color:"#5B8FF9"},t)})),d=n(630),p=Object(c.a)(d.RingProgress,"RingProgressChart",(function(t){return o()({data:t.percent,color:"#5B8FF9"},t)})),h=n(631),g=n(20),v=n.n(g),y=n(16),m=n(0),b=Object(c.a)(h.TinyColumn,"TinyColumnChart",(function(t){var e=Object(y.c)(t);if(!Object(m.isNil)(e.yField)){var n=e.data.map((function(t){return t[e.yField]})).filter((function(t){return!Object(m.isNil)(t)}));n&&n.length&&v()(e,"data",n)}return v()(e,"tooltip",!1),e})),x=n(632),_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i2&&void 0!==arguments[2]?arguments[2]:1;if(r>n)delete e.children;else{var i=e.children;i&&i.length&&i.forEach((function(e){t(e,n,r+1)}))}},L=Object(c.a)(j.Treemap,"TreemapChart",(function(t){var e=Object(y.c)(t),n=Object(m.get)(e,"maxLevel",2);if(!Object(m.isNil)(n))if(n<1)T()(!1,"maxLevel \u5fc5\u987b\u5927\u4e8e\u7b49\u4e8e1");else{var r=Object(m.get)(e,"data",{});F(r,n),Object(m.set)(e,"data",r),Object(m.set)(e,"maxLevel",n)}return e})),k=Object(c.a)(A.Line,"StepLineChart",(function(t){return T()(!1,"\u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),t.stepType=t.stepType||t.step||"hv",E(t)})),D=n(83),R=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\uff0c"),Object(m.deepMix)(t,{isStack:!0}),N(t)})),V=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i \u57285.0\u540e\u5373\u5c06\u88ab\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 \u66ff\u4ee3");var e=Object(y.c)(t),n=e.barSize,r=V(e,["barSize"]);return Object(y.f)(G,r),Object(m.isNil)(n)||(r.minBarWidth=n,r.maxBarWidth=n),Object(m.deepMix)(t,{isGroup:!0}),r})),Y=Object(c.a)(D.Bar,"PercentStackedBarChart",(function(t){return T()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),Object(m.deepMix)(t,{isPercent:!0,isStack:!0}),N(t)})),H=Object(c.a)(D.Bar,"RangeBarChart",(function(t){return T()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),Object(m.deepMix)(t,{isRange:!0}),N(t)})),U=n(134),X=function(t){var e=Object(y.c)(t);return Object(y.e)(e,"line"),Object(y.e)(e,"point"),e.isStack=!Object(m.isNil)(e.isStack)&&e.isStack,Object(y.f)([{sourceKey:"stackField",targetKey:"seriesField",notice:"stackField\u662f\u65e7\u7248api\uff0c\u5373\u5c06\u5e9f\u5f03 \u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"}],e),e},q=Object(c.a)(U.Area,"AreaChart",X),K=Object(c.a)(U.Area,"StackedAreaChart",(function(t){return T()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 \u66ff\u4ee3\u3002"),Object(m.deepMix)(t,{isStack:!0}),X(t)})),Z=Object(c.a)(U.Area,"PercentStackedAreaChart",(function(t){return T()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 \u66ff\u4ee3\u3002"),Object(m.deepMix)(t,{isPercent:!0}),X(t)})),$=n(84),Q=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i \u57285.0\u540e\u5373\u5c06\u88ab\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 \u66ff\u4ee3");var e=Object(y.c)(t),n=e.columnSize,r=nt(e,["columnSize"]);return Object(m.isNil)(n)||(r.minColumnWidth=n,r.maxColumnWidth=n),Object(m.deepMix)(t,{isGroup:!0}),r})),it=Object(c.a)($.Column,"StackedColumnChart",(function(t){return T()(!1,"\u5373\u5c06\u57285.0\u4e2d\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),Object(m.deepMix)(t,{isStack:!0}),tt(t)})),at=Object(c.a)($.Column,"RangeColumnChart",(function(t){return T()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),Object(m.deepMix)(t,{isRange:!0}),tt(t)})),ot=Object(c.a)($.Column,"PercentStackedColumnChart",(function(t){return T()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),Object(m.deepMix)(t,{isPercent:!0,isStack:!0}),tt(t)})),st=n(233),lt=Object(c.a)(st.Pie,"PieChart",y.c),ut=n(135),ct=Object(c.a)(ut.Heatmap,"DensityHeatmapChartChart",(function(t){var e=Object(y.c)(t);return Object(y.f)([{sourceKey:"radius",targetKey:"sizeRatio",notice:"radius \u8bf7\u4f7f\u7528sizeRatio\u66ff\u4ee3"}],e),Object(m.set)(e,"type","density"),e})),ft=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=0){var e=t.chart,n=Object(ht.getTheme)();b&&o()(n.geometries.point["hollow-circle"].active.style,b),e.on("afterrender",(function(){e.geometries.length&&e.geometries[0].elements.forEach((function(t,e){e===u&&t.setState("active",!0)}))})),e.on("plot:mousemove",(function(t){if(t.data){var e=t.data.data,n=e.datum,r=e.x,i=e.y,a=e.width,o=e.height;v&&v(n,{x:r,y:i,w:a,h:o},t.event)}else v&&v(void 0,void 0,t.event)})),e.on("plot:click",(function(t){if(t.data){var e=t.data.data,n=e.datum,r=e.x,i=e.y,a=e.width,o=e.height;y&&y(n,{x:r,y:i,w:a,h:o},t.event)}else y&&y(void 0,void 0,t.event)}))}}},m)})),yt=n(136),mt=[{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],bt=Object(c.a)(yt.Rose,"RoseChart",(function(t){var e=Object(y.c)(t);return Object(y.f)(mt,e),!1===M()(e,"tooltip.visible")&&v()(e,"tooltip",!1),!1===M()(e,"label.visible")&&v()(e,"label",!1),"inner"===M()(e,"label.type")&&(e.label.offset=-15,delete e.label.type),"outer"===M()(e,"label.type")&&delete e.label.type,e})),xt=n(636),_t=Object(c.a)(xt.Funnel,"FunnelChart",(function(t){var e=Object(y.c)(t);return Object(y.f)([{sourceKey:"transpose",targetKey:"isTransposed",notice:"transpose \u5373\u5c06\u5e9f\u5f03 \u8bf7\u4f7f\u7528isTransposed\u66ff\u4ee3"}],e),e})),Ot=[{sourceKey:"stackField",targetKey:"seriesField",notice:"stackField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],Pt=Object(c.a)(yt.Rose,"StackedRoseChart",(function(t){T()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\uff0c");var e=Object(y.c)(t);return Object(y.f)(Ot,e),!1===M()(e,"tooltip.visible")&&v()(e,"tooltip",!1),!1===M()(e,"label.visible")&&v()(e,"label",!1),"inner"===M()(e,"label.type")&&(e.label.offset=-15,delete e.label.type),"outer"===M()(e,"label.type")&&delete e.label.type,o()(o()({},e),{isStack:!0})})),wt=[{sourceKey:"groupField",targetKey:"seriesField",notice:"groupField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],Mt=Object(c.a)(yt.Rose,"GroupedRoseChart",(function(t){T()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u3002");var e=Object(y.c)(t);return Object(y.f)(wt,e),"inner"===Object(m.get)(e,"label.type")&&(e.label.offset=-15,delete e.label.type),"outer"===Object(m.get)(e,"label.type")&&delete e.label.type,o()(o()({},e),{isGroup:!0})})),St=n(37),At=n.n(St),Et=n(61),Ct=n.n(Et),jt=n(637),It=[{sourceKey:"angleField",targetKey:"xField",notice:"angleField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"},{sourceKey:"angleAxis",targetKey:"xAxis",notice:"angleAxis \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xAxis\u66ff\u4ee3"},{sourceKey:"radiusAxis",targetKey:"yAxis",notice:"radiusAxis \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yAxis\u66ff\u4ee3"}],Tt=function(t){var e=M()(t,"line",{}),n=e.visible,r=e.size,i=e.style;v()(t,"lineStyle",o()(o()(o()({},i),{opacity:1,lineWidth:"number"===typeof r?r:2}),function(t){return At()(t)||t?{fillOpacity:1,strokeOpacity:1}:{fillOpacity:0,strokeOpacity:0}}(n)))},Ft=Object(c.a)(jt.Radar,"RadarChart",(function(t){Object(y.f)(It,t);var e=Object(y.c)(t);return!1===M()(e,"area.visible")&&v()(e,"area",!1),!1===M()(e,"point.visible")&&v()(e,"point",!1),Tt(e),(Ct()(e.angleAxis)||Ct()(e.radiusAxis))&&(e.angleAxis||(e.angleAxis={}),e.angleAxis.line=M()(e,"angleAxis.line",null),e.angleAxis.tickLine=M()(e,"angleAxis.tickLine",null)),!1===M()(e,"tooltip.visible")&&v()(e,"tooltip",!1),!1===M()(e,"label.visible")&&v()(e,"label",!1),"line"===M()(e,"yAxis.grid.line.type")&&Object(m.deepMix)(e,{xAxis:{line:null,tickLine:null}},e),e})),Lt=n(638),kt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i"),e})),Ht=n(641),Ut=n(23),Xt=n.n(Ut),qt=Object(c.a)(Ht.Bullet,"BulletChart",(function(t){var e=Object(y.c)(t);return At()(M()(t,"measureSize"))||(T()(!1,"measureSize\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528size.measure\u66ff\u4ee3"),v()(e,"size.measure",M()(t,"measureSize"))),At()(M()(t,"rangeSize"))||(T()(!1,"rangeSize\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528size.range\u66ff\u4ee3"),v()(e,"size.range",M()(t,"rangeSize"))),At()(M()(t,"markerSize"))||(T()(!1,"markerSizee\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528size.target\u66ff\u4ee3"),v()(e,"size.target",M()(t,"markerSize"))),At()(M()(t,"measureColors"))||(T()(!1,"measureColors\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528color.measure\u66ff\u4ee3"),v()(e,"color.measure",M()(t,"measureColors"))),At()(M()(t,"rangeColors"))||(T()(!1,"rangeColors\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528color.range\u66ff\u4ee3"),v()(e,"color.range",M()(t,"rangeColors"))),At()(M()(t,"markerColors"))||(T()(!1,"markerColors\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528color.target\u66ff\u4ee3"),v()(e,"color.target",M()(t,"markerColors"))),At()(M()(t,"markerStyle"))||(T()(!1,"markerStyle\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528bulletStyle.target\u66ff\u4ee3"),v()(e,"bulletStyle.target",M()(t,"markerStyle"))),At()(M()(t,"xAxis.line"))&&v()(e,"xAxis.line",!1),At()(M()(t,"yAxis"))&&v()(e,"yAxis",!1),At()(M()(t,"measureField"))&&v()(e,"measureField","measures"),At()(M()(t,"rangeField"))&&v()(e,"rangeField","ranges"),At()(M()(t,"targetField"))&&v()(e,"targetField","target"),T()(!At()(M()(t,"rangeMax")),"\u8be5\u5c5e\u6027\u5df2\u5e9f\u5f03\uff0c\u8bf7\u5728\u6570\u636e\u4e2d\u914d\u7f6erange\uff0c\u5e76\u914d\u7f6erangeField"),Xt()(M()(t,"data"))&&v()(e,"data",t.data.map((function(e){var n={};return At()(M()(t,"rangeMax"))||(n={ranges:[M()(t,"rangeMax")]}),Xt()(e.targets)?o()(o()(o()({},n),{target:e.targets[0]}),e):o()(o()({},n),e)}))),e}));n(642).G2.registerShape("polygon","boundary-polygon",{draw:function(t,e){var n=e.addGroup(),r={stroke:"#fff",lineWidth:1,fill:t.color,paht:[]},i=t.points,a=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[3].x,i[3].y],["Z"]];if(r.path=this.parsePath(a),n.addShape("path",{attrs:r}),Object(m.get)(t,"data.lastWeek")){var o=[["M",i[2].x,i[2].y],["L",i[3].x,i[3].y]];n.addShape("path",{attrs:{path:this.parsePath(o),lineWidth:4,stroke:"#404040"}}),Object(m.get)(t,"data.lastDay")&&n.addShape("path",{attrs:{path:this.parsePath([["M",i[1].x,i[1].y],["L",i[2].x,i[2].y]]),lineWidth:4,stroke:"#404040"}})}return n}});var Kt=[{sourceKey:"colors",targetKey:"color",notice:"colors \u662f g2Plot@1.0 \u7684\u5c5e\u6027\uff0c\u8bf7\u4f7f\u7528 color \u5c5e\u6027\u66ff\u4ee3"},{sourceKey:"valueField",targetKey:"colorField",notice:"valueField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528colorField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],Zt=Object(c.a)(ut.Heatmap,"CalendarChart",(function(t){var e=Object(y.c)(t);return Object(y.f)(Kt,e),Object(m.isNil)(Object(m.get)(t,"shape"))&&Object(m.set)(e,"shape","boundary-polygon"),Object(m.isNil)(Object(m.get)(e,"xField"))&&Object(m.isNil)(Object(m.get)(e,"yField"))&&(Object(m.set)(e,"xField","week"),Object(m.set)(e,"meta.week",o()({type:"cat"},Object(m.get)(e,"meta.week",{}))),Object(m.set)(e,"yField","day"),Object(m.set)(e,"meta.day",{type:"cat",values:["Sun.","Mon.","Tues.","Wed.","Thur.","Fri.","Sat."]}),Object(m.set)(e,"reflect","y"),Object(m.set)(e,"xAxis",o()({tickLine:null,line:null,title:null,label:{offset:20,style:{fontSize:12,fill:"#bbb",textBaseline:"top"},formatter:function(t){return"2"==t?"MAY":"6"===t?"JUN":"10"==t?"JUL":"14"===t?"AUG":"18"==t?"SEP":"24"===t?"OCT":""}}},Object(m.get)(e,"xAxis",{})))),e})),$t=n(643),Qt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=0&&e!==this.chartHelper.chart.width||n>=0&&n!==this.chartHelper.chart.height){var r=e||this.chartHelper.chart.width,i=n||this.chartHelper.chart.height;this.chartHelper.chart.changeSize(r,i),this.chartHelper.chart.emit("resize")}else this.chartHelper.render();else this.chartHelper.render()}}},{key:"componentWillUnmount",value:function(){this.chartHelper.destory(),this.resizeObserver.unobserve(this.props.container)}},{key:"getG2Instance",value:function(){return this.chartHelper.chart}},{key:"render",value:function(){var t=this,e=this.props,n=e.placeholder,r=e.data,a=e.errorContent,o=this.props.ErrorBoundaryProps;if((void 0===r||0===r.length)&&n){this.chartHelper.destory();var s=!0===n?v.a.createElement("div",{style:{position:"relative",top:"48%",color:"#aaa",textAlign:"center"}},"\u6682\u65e0\u6570\u636e"):n;return v.a.createElement(_.b,i()({},o),s)}return this.chartHelper.update(this.props),o=a?i()({fallback:a},o):{FallbackComponent:_.a},v.a.createElement(_.b,i()({},o,{key:this.chartHelper.key,onError:function(){var e;t.isError=!0,Object(J.isFunction)(o.onError)&&(e=o).onError.apply(e,arguments)},onReset:function(){var e;t.isError=!1,Object(J.isFunction)(o.onReset)&&(e=o).onReset.apply(e,arguments)},resetKeys:[this.chartHelper.key],fallback:a}),v.a.createElement(P.a.Provider,{value:this.chartHelper},v.a.createElement(w.a.Provider,{value:this.chartHelper.chart},v.a.createElement(M.a.Provider,{value:this.chartHelper.extendGroup},this.props.children))))}}]),n}(v.a.Component);et.defaultProps={placeholder:!1,visible:!0,interactions:[],filter:[]},e.a=Object(O.a)(et)},function(t,e,n){"use strict";var r=n(9),i=n.n(r),a=n(10),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(3),h=n.n(p),g=n(76),v=n(47),y=n(4),m=n.n(y),b=n(23),x=n.n(b),_=n(168),O=n.n(_),P=n(55),w=n.n(P),M=n(17),S=n.n(M),A=n(82),E=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");s.clearDom(t);var n=a.isFunction(e)?e(t):e;if(a.isElement(n))t.appendChild(n);else if(a.isString(n)||a.isNumber(n)){var r=i.createDom(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,a=this.get("alignX"),o=this.get("alignY"),s=this.get("offsetX"),l=this.get("offsetY"),u=i.getOuterWidth(t),c=i.getOuterHeight(t),f={x:n,y:r};"middle"===a?f.x-=Math.round(u/2):"right"===a&&(f.x-=Math.round(u)),"middle"===o?f.y-=Math.round(c/2):"bottom"===o&&(f.y-=Math.round(c)),s&&(f.x+=s),l&&(f.y+=l),i.modifyCSS(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=void 0;var r=n(1),i=n(184);e.Shape=i,r.__exportStar(n(26),e);var a=n(928);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return a.default}});var o=n(262);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return o.default}}),e.version="0.5.6"},function(t,e,n){"use strict";var r,i,a,o,s=n(2)(n(6));o=function(t,e){function n(t){return t&&"object"===(0,s.default)(t)&&"default"in t?t:{default:t}}var r=n(e),i={error:null},a=function(t){var e,n;function a(){for(var e,n=arguments.length,r=new Array(n),a=0;a2&&void 0!==arguments[2]?arguments[2]:[],i=t;return r&&r.length&&(i=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return v()(n)?e=n:h()(n)?e=function(t,e){for(var r=0;re[i])return 1}return 0}:m()(n)&&(e=function(t,e){return t[n]e[n]?1:0}),t.sort(e)}(t,r)),v()(e)?n=e:h()(e)?n=function(t){return"_".concat(e.map((function(e){return t[e]})).join("-"))}:m()(e)&&(n=function(t){return"_".concat(t[e])}),x()(i,n)},O=function(t,e,n,r){var i=[],a=r?_(t,r):{_data:t};return u()(a,(function(t){var r=Object(c.a)(t.map((function(t){return t[e]})));d()(0!==r,"Invalid data: total sum of field ".concat(e," is 0!")),u()(t,(function(t){var a=o()({},t);a[n]=0===r?0:t[e]/r,i.push(a)}))})),i},P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=1e8;return t>=n?"".concat((t/n).toFixed(e).replace(/\.?0*$/,""),"\u4ebf"):t>=1e4?"".concat((t/1e4).toFixed(e).replace(/\.?0*$/,""),"\u4e07"):t.toFixed(e).replace(/\.?0*$/,"")},w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return"number"===typeof t?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e):t},M=n(165),S=n(75),A=n(82)},function(t,e,n){t.exports=n(647)},function(t,e,n){"use strict";n.r(e),n.d(e,"Util",(function(){return H}));var r=n(4),i=n.n(r),a=n(0),o=n(612);n.d(e,"Annotation",(function(){return o}));var s=n(323);n.d(e,"G2",(function(){return s}));var l=n(611);n.d(e,"GComponents",(function(){return l}));var u=n(645),c=n(614);n.d(e,"Chart",(function(){return c.a}));var f=n(615);n.d(e,"View",(function(){return f.a}));var d=n(613);n.d(e,"Tooltip",(function(){return d.a}));var p=n(616);n.d(e,"Legend",(function(){return p.a}));var h=n(215);n.d(e,"Coordinate",(function(){return h.a}));var g=n(617);n.d(e,"Axis",(function(){return g.a}));var v=n(489);n.d(e,"Facet",(function(){return v.a}));var y=n(490);n.d(e,"Slider",(function(){return y.a}));var m=n(128);n.d(e,"Area",(function(){return m.a}));var b=n(216);n.d(e,"Edge",(function(){return b.a}));var x=n(217);n.d(e,"Heatmap",(function(){return x.a}));var _=n(218);n.d(e,"Interval",(function(){return _.a}));var O=n(129);n.d(e,"Line",(function(){return O.a}));var P=n(130);n.d(e,"Point",(function(){return P.a}));var w=n(219);n.d(e,"Polygon",(function(){return w.a}));var M=n(492);n.d(e,"Schema",(function(){return M.a}));var S=n(39);n.d(e,"BaseGeom",(function(){return S.a}));var A=n(290);n.d(e,"Label",(function(){return A.a}));var E=n(493);n.d(e,"Path",(function(){return E.a}));var C=n(220);n.d(e,"LineAdvance",(function(){return C.a}));var j=n(494);n.d(e,"Geom",(function(){return j.a}));var I=n(495);n.d(e,"Coord",(function(){return I.a}));var T=n(496);n.d(e,"Guide",(function(){return T.a}));var F=n(497);n.d(e,"Effects",(function(){return F.a}));var L=n(498);n.d(e,"Interaction",(function(){return L.a}));var k=n(11);n.d(e,"createPlot",(function(){return k.a}));var D=n(166);n.d(e,"createTooltipConnector",(function(){return D.a}));var R=n(40);n.d(e,"useView",(function(){return R.a}));var N=n(81);n.d(e,"useRootChart",(function(){return N.a})),n.d(e,"useChartInstance",(function(){return N.a}));var B=n(504);n.d(e,"useTheme",(function(){return B.a}));var z=n(47);n.d(e,"withView",(function(){return z.b}));var V=n(76);n.d(e,"withChartInstance",(function(){return V.b}));var G=n(8);for(var W in G)["default","Util","Annotation","G2","GComponents","Chart","View","Tooltip","Legend","Coordinate","Axis","Facet","Slider","Area","Edge","Heatmap","Interval","Line","Point","Polygon","Schema","BaseGeom","Label","Path","LineAdvance","Geom","Coord","Guide","Effects","Interaction","createPlot","createTooltipConnector","useView","useRootChart","useChartInstance","useTheme","withView","withChartInstance"].indexOf(W)<0&&function(t){n.d(e,t,(function(){return G[t]}))}(W);var Y=n(610);n.d(e,"ProgressChart",(function(){return Y.x})),n.d(e,"RingProgressChart",(function(){return Y.B})),n.d(e,"TinyColumnChart",(function(){return Y.K})),n.d(e,"TinyAreaChart",(function(){return Y.J})),n.d(e,"TinyLineChart",(function(){return Y.L})),n.d(e,"LineChart",(function(){return Y.q})),n.d(e,"TreemapChart",(function(){return Y.M})),n.d(e,"StepLineChart",(function(){return Y.I})),n.d(e,"BarChart",(function(){return Y.b})),n.d(e,"StackedBarChart",(function(){return Y.F})),n.d(e,"GroupedBarChart",(function(){return Y.l})),n.d(e,"PercentStackedBarChart",(function(){return Y.t})),n.d(e,"RangeBarChart",(function(){return Y.z})),n.d(e,"AreaChart",(function(){return Y.a})),n.d(e,"StackedAreaChart",(function(){return Y.E})),n.d(e,"PercentStackedAreaChart",(function(){return Y.s})),n.d(e,"ColumnChart",(function(){return Y.f})),n.d(e,"GroupedColumnChart",(function(){return Y.m})),n.d(e,"StackedColumnChart",(function(){return Y.G})),n.d(e,"RangeColumnChart",(function(){return Y.A})),n.d(e,"PercentStackedColumnChart",(function(){return Y.u})),n.d(e,"PieChart",(function(){return Y.v})),n.d(e,"DensityHeatmapChart",(function(){return Y.g})),n.d(e,"HeatmapChart",(function(){return Y.o})),n.d(e,"WordCloudChart",(function(){return Y.O})),n.d(e,"RoseChart",(function(){return Y.C})),n.d(e,"FunnelChart",(function(){return Y.j})),n.d(e,"StackedRoseChart",(function(){return Y.H})),n.d(e,"GroupedRoseChart",(function(){return Y.n})),n.d(e,"RadarChart",(function(){return Y.y})),n.d(e,"LiquidChart",(function(){return Y.r})),n.d(e,"HistogramChart",(function(){return Y.p})),n.d(e,"DonutChart",(function(){return Y.h})),n.d(e,"WaterfallChart",(function(){return Y.N})),n.d(e,"ScatterChart",(function(){return Y.D})),n.d(e,"BubbleChart",(function(){return Y.c})),n.d(e,"BulletChart",(function(){return Y.d})),n.d(e,"CalendarChart",(function(){return Y.e})),n.d(e,"GaugeChart",(function(){return Y.k})),n.d(e,"DualAxesChart",(function(){return Y.i})),n.d(e,"PlotAdapter",(function(){return Y.w}));var H=i()(i()(i()({},a),u),s.Util)},function(t,e,n){"use strict";var r,i=n(2)(n(6));if(!Object.keys){var a=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=n(366),l=Object.prototype.propertyIsEnumerable,u=!l.call({toString:null},"toString"),c=l.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&a.call(window,t)&&null!==window[t]&&"object"===(0,i.default)(window[t]))try{d(window[t])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(t){var e=null!==t&&"object"===(0,i.default)(t),n="[object Function]"===o.call(t),r=s(t),l=e&&"[object String]"===o.call(t),p=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var g=c&&n;if(l&&t.length>0&&!a.call(t,0))for(var v=0;v0)for(var y=0;y-1?i(n):n}},function(t,e,n){"use strict";var r=n(364),i=n(370);t.exports=function(){var t=i();return r(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(371)),a=r(n(238)),o=function(t,e){return void 0===e&&(e=[]),(0,i.default)(t,(function(t){return!(0,a.default)(e,t)}))};e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(57)),a=r(n(372)),o=r(n(36)),s=r(n(138)),l=function(t,e){if(!(0,o.default)(t))return null;var n;if((0,i.default)(e)&&(n=e),(0,s.default)(e)&&(n=function(t){return(0,a.default)(t,e)}),n)for(var r=0;r-1;)i.call(t,s,1);return t};e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(56)),a=r(n(376)),o=function(t,e){var n=[];if(!(0,i.default)(t))return n;for(var r=-1,o=[],s=t.length;++re[i])return 1;if(t[i]n?n:t};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};e.default=r},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(86)),a=function(t){return(0,i.default)(t)&&t%1!==0};e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(86)),a=function(t){return(0,i.default)(t)&&t%2===0};e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(86)),a=Number.isInteger?Number.isInteger:function(t){return(0,i.default)(t)&&t%1===0};e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(86)),a=function(t){return(0,i.default)(t)&&t<0};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)0};e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(36)),a=r(n(57));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=-1/0,o=0;or&&(n=s,r=l)}return n}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(36)),a=r(n(57));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=1/0,o=0;oe?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(r),s=0,r=i=a=null},u}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(56));e.default=function(t){return(0,i.default)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={};e.default=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return t}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,i.default)(t)?0:(0,a.default)(t)?t.length:Object.keys(t).length};var i=r(n(95)),a=r(n(56))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(85)),a=r(n(108)),o=r(n(386));e.default=function(t,e,n,r){void 0===r&&(r="...");var s,l,u=(0,o.default)(r,n),c=(0,i.default)(t)?t:(0,a.default)(t),f=e,d=[];if((0,o.default)(t,n)<=e)return t;for(;s=c.substr(0,16),!((l=(0,o.default)(s,n))+u>f&&l>f);)if(d.push(s),f-=l,!(c=c.substr(16)))return d.join("");for(;s=c.substr(0,1),!((l=(0,o.default)(s,n))+u>f);)if(d.push(s),f-=l,!(c=c.substr(1)))return d.join("");return""+d.join("")+r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=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}();e.default=r},function(t,e,n){"use strict";function r(e,n){return t.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(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)}}}}},function(t,e,n){"use strict";var r,i,a,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){r||(r=document.createElement("table"),i=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in o||(e="*");var n=o[e];t="string"===typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var s=n.childNodes[0];return s&&n.contains(s)&&n.removeChild(s),s}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderTopWidth"))||0,o=parseFloat((0,i.default)(t,"paddingTop"))||0,s=parseFloat((0,i.default)(t,"paddingBottom"))||0,l=parseFloat((0,i.default)(t,"borderBottomWidth"))||0,u=parseFloat((0,i.default)(t,"marginTop"))||0,c=parseFloat((0,i.default)(t,"marginBottom"))||0;return n+r+l+o+s+u+c};var i=r(n(139)),a=r(n(387))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderLeftWidth"))||0,o=parseFloat((0,i.default)(t,"paddingLeft"))||0,s=parseFloat((0,i.default)(t,"paddingRight"))||0,l=parseFloat((0,i.default)(t,"borderRightWidth"))||0,u=parseFloat((0,i.default)(t,"marginRight"))||0,c=parseFloat((0,i.default)(t,"marginLeft"))||0;return n+r+l+o+s+c+u};var i=r(n(139)),a=r(n(388))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(96),a=n(0),o=n(202),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.__assign(r.__assign({},e),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,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 o.createBBox(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");o.clearDom(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(a.isNil(t)){t=this.createDom();var e=this.get("parent");a.isString(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 a.isString(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?a.deepMix({},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&&o.hasClass(e,n)){var r=t[n];i.modifyCSS(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){a.each(e,(function(e,n){var r=t.getElementsByClassName(n);a.each(r,(function(t){i.modifyCSS(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");i.modifyCSS(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return i.createDom(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){a.hasKey(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(743).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(0),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return r.__extends(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")||{};a.each(t,(function(t,r){var i=t;e.get(r)!==t&&(a.isObject(t)&&n[r]&&(i=a.deepMix({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){a.hasKey(t,"visible")&&(t.visible?this.show():this.hide()),a.hasKey(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=r.__assign({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=o[n];return a.each(r,(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");a.each(e,(function(e,n){var r=t.get(n);if(a.isObject(r)){var i=a.deepMix({},e,r);t.set(n,i)}}))},e}(i.Base);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(242),o=r(n(392)),s=n(102),l=r(n(752)),u=r(n(784)),c=(0,a.detect)(),f=c&&"firefox"===c.name,d=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,i.__extends)(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,s.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new u.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new l.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px")},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");s.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(f&&!(0,s.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,s.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,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").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").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}(o.default);e.default=d},function(t,e,n){"use strict";var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:o}catch(t){r=o}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var u,c=[],f=!1,d=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):d=-1,c.length&&h())}function h(){if(!f){var t=l(p);f=!0;for(var e=c.length;e;){for(u=c,c=[];++d1)for(var n=1;n0){n=Math.sqrt(n);var r=e[0]/n,i=e[1]/n,a=e[2]/n,o=e[3]/n,s=e[4],l=e[5],u=e[6],c=e[7],f=r*s+i*l+a*u+o*c;t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=(s-r*f)/n,t[5]=(l-i*f)/n,t[6]=(u-a*f)/n,t[7]=(c-o*f)/n}return t},e.rotateAroundAxis=function(t,e,n,r){if(Math.abs(r)=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.direction=s,e.leftRotate=a,e.leftScale=o,e.leftTranslate=i,e.transform=function(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,l=e.length;sh.length?(p=l.parsePathString(s[f]),h=l.parsePathString(a[f]),h=l.fillPathByDiff(h,p),h=l.formatPath(h,p),e.fromAttrs.path=h,e.toAttrs.path=p):e.pathFormatted||(p=l.parsePathString(s[f]),h=l.parsePathString(a[f]),h=l.formatPath(h,p),e.fromAttrs.path=h,e.toAttrs.path=p,e.pathFormatted=!0),r[f]=[];for(var g=0;g0){for(var a=r.animators.length-1;a>=0;a--)if((t=r.animators[a]).destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],p(t,n,i)&&(e.splice(o,1),n.callback&&n.callback());0===e.length&&r.removeAnimator(a)}r.canvas.get("autoDraw")||r.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}();e.default=h},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"now",{enumerable:!0,get:function(){return i.now}}),Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return i.timer}}),Object.defineProperty(e,"timerFlush",{enumerable:!0,get:function(){return i.timerFlush}});var i=n(244),a=r(n(754)),o=r(n(755))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var i=new r.Timer;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i};var r=n(244)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var i=new r.Timer,a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?(0,r.now)():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)};var r=n(244)},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"interpolateCubehelix",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"interpolateCubehelixLong",{enumerable:!0,get:function(){return P.cubehelixLong}}),Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"interpolateHcl",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"interpolateHclLong",{enumerable:!0,get:function(){return O.hclLong}}),Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return x.hslLong}}),Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"interpolateRgb",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"interpolateRgbBasis",{enumerable:!0,get:function(){return b.rgbBasis}}),Object.defineProperty(e,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return b.rgbBasisClosed}}),Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"interpolateTransformCss",{enumerable:!0,get:function(){return y.interpolateTransformCss}}),Object.defineProperty(e,"interpolateTransformSvg",{enumerable:!0,get:function(){return y.interpolateTransformSvg}}),Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"quantize",{enumerable:!0,get:function(){return M.default}});var a=r(n(172)),o=r(n(403)),s=r(n(247)),l=r(n(401)),u=r(n(404)),c=r(n(759)),f=r(n(760)),d=r(n(173)),p=r(n(248)),h=r(n(405)),g=r(n(761)),v=r(n(406)),y=n(762),m=r(n(765)),b=A(n(400)),x=A(n(766)),_=r(n(767)),O=A(n(768)),P=A(n(769)),w=r(n(770)),M=r(n(771));function S(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(S=function(t){return t?n:e})(t)}function A(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=S(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.Hcl=w,e.Lab=y,e.default=v,e.gray=function(t,e){return new y(t,0,0,null==e?1:e)},e.hcl=P,e.lch=function(t,e,n,r){return 1===arguments.length?O(t):new w(n,e,t,null==r?1:r)};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}(n(246)),a=n(245),o=n(399);function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}var l=.96422,u=1,c=.82521,f=4/29,d=6/29,p=3*d*d,h=d*d*d;function g(t){if(t instanceof y)return new y(t.l,t.a,t.b,t.opacity);if(t instanceof w)return M(t);t instanceof a.Rgb||(t=(0,a.rgbConvert)(t));var e,n,r=_(t.r),i=_(t.g),o=_(t.b),s=m((.2225045*r+.7168786*i+.0606169*o)/u);return r===i&&i===o?e=n=s:(e=m((.4360747*r+.3850649*i+.1430804*o)/l),n=m((.0139322*r+.0971045*i+.7141733*o)/c)),new y(116*s-16,500*(e-s),200*(s-n),t.opacity)}function v(t,e,n,r){return 1===arguments.length?g(t):new y(t,e,n,null==r?1:r)}function y(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function m(t){return t>h?Math.pow(t,1/3):t/p+f}function b(t){return t>d?t*t*t:p*(t-f)}function x(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function _(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function O(t){if(t instanceof w)return new w(t.h,t.c,t.l,t.opacity);if(t instanceof y||(t=g(t)),0===t.a&&0===t.b)return new w(NaN,0180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,r)-2,x:(0,i.default)(t,e)})):e&&n.push(a(n)+"rotate("+e+r)}(o.rotate,s.rotate,l,u),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,r)-2,x:(0,i.default)(t,e)}):e&&n.push(a(n)+"skewX("+e+r)}(o.skewX,s.skewX,l,u),function(t,e,n,r,o,s){if(t!==n||e!==r){var l=o.push(a(o)+"scale(",null,",",null,")");s.push({i:l-4,x:(0,i.default)(t,n)},{i:l-2,x:(0,i.default)(e,r)})}else 1===n&&1===r||o.push(a(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,l,u),o=s=null,function(t){for(var e,n=-1,r=u.length;++n120||u*u+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,a){var o=this._getEventObj(t,e,n,r,i,a);if(r){o.shape=r,s(r,t,o);for(var u=r.getParent();u;)u.emitDelegation(t,o),o.propagationStopped||l(u,t,o),o.propagationPath.push(u),u=u.getParent()}else s(this.canvas,t,o)},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.default=u},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(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(),r=0;r=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,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.multiplyVec2)(e,[t.minX,t.minY]),l=(0,o.multiplyVec2)(e,[t.maxX,t.minY]),u=(0,o.multiplyVec2)(e,[t.minX,t.maxY]),c=(0,o.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],u[0],c[0]),i=Math.max(s[0],l[0],u[0],c[0]),r=Math.min(s[1],l[1],u[1],c[1]),a=Math.max(s[1],l[1],u[1],c[1])}var f=this.attrs;if(f.shadowColor){var d=f.shadowBlur,p=void 0===d?0:d,h=f.shadowOffsetX,g=void 0===h?0:h,v=f.shadowOffsetY,y=void 0===v?0:v,m=n-p+g,b=i+p+g,x=r-p+y,_=a+p+y;n=Math.min(n,m),i=Math.max(i,b),r=Math.min(r,x),a=Math.max(a,_)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},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"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(r&&r.isHit(a,o))return!0}return!1},e}(a.default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}}),Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return i.register}});var i=n(788),a=r(n(789)),o=r(n(790)),s=r(n(791)),l=r(n(797)),u=r(n(798)),c=r(n(799)),f=r(n(814)),d=r(n(815));(0,i.register)("rect",a.default),(0,i.register)("image",a.default),(0,i.register)("circle",o.default),(0,i.register)("marker",o.default),(0,i.register)("polyline",s.default),(0,i.register)("polygon",l.default),(0,i.register)("text",u.default),(0,i.register)("path",c.default),(0,i.register)("line",f.default),(0,i.register)("ellipse",d.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=function(t){return r.get(t)},e.register=function(t,e){r.set(t,e)};var r=new Map},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.width,a=e.height;return{x:n,y:r,width:i,height:a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=t.attr().points,n=[],a=[],o=0;o=0?[i]:[]}function u(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function c(t,e,n,r,a,o,l){var u=s(t,n,a,l),c=s(e,r,o,l),f=i.default.pointAt(t,e,n,r,l),d=i.default.pointAt(n,r,a,o,l);return[[t,e,f.x,f.y,u,c],[u,c,d.x,d.y,a,o]]}function f(t,e,n,r,i,o,s){if(0===s)return((0,a.distance)(t,e,n,r)+(0,a.distance)(n,r,i,o)+(0,a.distance)(t,e,i,o))/2;var l=c(t,e,n,r,i,o,.5),u=l[0],d=l[1];return u.push(s-1),d.push(s-1),f.apply(null,u)+f.apply(null,d)}var d={box:function(t,e,n,r,i,o){var u=l(t,n,i)[0],c=l(e,r,o)[0],f=[t,i],d=[e,o];return void 0!==u&&f.push(s(t,n,i,u)),void 0!==c&&d.push(s(e,r,o,c)),(0,a.getBBoxByArray)(f,d)},length:function(t,e,n,r,i,a){return f(t,e,n,r,i,a,3)},nearestPoint:function(t,e,n,r,i,a,l,u){return(0,o.nearestPoint)([t,n,i],[e,r,a],l,u,s)},pointDistance:function(t,e,n,r,i,o,s,l){var u=this.nearestPoint(t,e,n,r,i,o,s,l);return(0,a.distance)(u.x,u.y,s,l)},interpolationAt:s,pointAt:function(t,e,n,r,i,a,o){return{x:s(t,n,i,o),y:s(e,r,a,o)}},divide:function(t,e,n,r,i,a,o){return c(t,e,n,r,i,a,o)},tangentAngle:function(t,e,n,r,i,o,s){var l=u(t,n,i,s),c=u(e,r,o,s),f=Math.atan2(c,l);return(0,a.piMod)(f)}};e.default=d},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(87),a=r(n(174)),o=n(409);function s(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function l(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function u(t,e,n,r){var a,o,s,l=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,c=3*e-3*t,f=[];if((0,i.isNumberEqual)(l,0))(0,i.isNumberEqual)(u,0)||(a=-c/u)>=0&&a<=1&&f.push(a);else{var d=u*u-4*l*c;(0,i.isNumberEqual)(d,0)?f.push(-u/(2*l)):d>0&&(o=(-u-(s=Math.sqrt(d)))/(2*l),(a=(-u+s)/(2*l))>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i,o,l,u,c){var f=s(t,n,i,l,c),d=s(e,r,o,u,c),p=a.default.pointAt(t,e,n,r,c),h=a.default.pointAt(n,r,i,o,c),g=a.default.pointAt(i,o,l,u,c),v=a.default.pointAt(p.x,p.y,h.x,h.y,c),y=a.default.pointAt(h.x,h.y,g.x,g.y,c);return[[t,e,p.x,p.y,v.x,v.y,f,d],[f,d,y.x,y.y,g.x,g.y,l,u]]}function f(t,e,n,r,i,a,s,l,u){if(0===u)return(0,o.snapLength)([t,n,i,s],[e,r,a,l]);var d=c(t,e,n,r,i,a,s,l,.5),p=d[0],h=d[1];return p.push(u-1),h.push(u-1),f.apply(null,p)+f.apply(null,h)}var d={extrema:u,box:function(t,e,n,r,a,o,l,c){for(var f=[t,l],d=[e,c],p=u(t,n,a,l),h=u(e,r,o,c),g=0;gf&&(f=g)}var v=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),y=1/0,m=-1/0,b=[a,l];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var x=v+p;am&&(m=_)}return{x:c,y:y,width:f-c,height:m-y}},length:function(t,e,n,r,i,a,o){},nearestPoint:function(t,e,n,r,i,o,s,c,f){var d=u(c-t,f-e,-i),p=d[0],h=d[1],g=a.default.nearestPoint(0,0,n,r,p,h),v=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,g.x,g.y);vs&&(g=l(n,r,s));var y=u(g.x,g.y,i);return{x:y[0]+t,y:y[1]+e}},pointDistance:function(t,e,n,r,a,o,s,l,u){var c=this.nearestPoint(t,e,n,r,l,u);return(0,i.distance)(c.x,c.y,l,u)},pointAt:function(t,e,n,r,i,a,l,u){var c=(l-a)*u+a;return{x:o(t,0,n,r,i,c),y:s(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,a,o,s,l){var u=(s-o)*l+o,c=function(t,e,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,a,0,0,u),f=function(t,e,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,a,0,0,u);return(0,i.piMod)(Math.atan2(f,c))}};e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(87);function i(t,e){var n=Math.abs(t);return e>0?n:-1*n}var a={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,a,o){var s=n,l=r;if(0===s||0===l)return{x:t,y:e};for(var u,c,f=a-t,d=o-e,p=Math.abs(f),h=Math.abs(d),g=s*s,v=l*l,y=Math.PI/4,m=0;m<4;m++){u=s*Math.cos(y),c=l*Math.sin(y);var b=(g-v)*Math.pow(Math.cos(y),3)/s,x=(v-g)*Math.pow(Math.sin(y),3)/l,_=u-b,O=c-x,P=p-b,w=h-x,M=Math.hypot(O,_),S=Math.hypot(w,P);y+=M*Math.asin((_*w-O*P)/(M*S))/Math.sqrt(g+v-u*u-c*c),y=Math.min(Math.PI/2,Math.max(0,y))}return{x:t+i(u,f),y:e+i(c,d)}},pointDistance:function(t,e,n,i,a,o){var s=this.nearestPoint(t,e,n,i,a,o);return(0,r.distance)(s.x,s.y,a,o)},pointAt:function(t,e,n,r,i){var a=2*Math.PI*i;return{x:t+n*Math.cos(a),y:e+r*Math.sin(a)}},tangentAngle:function(t,e,n,i,a){var o=2*Math.PI*a,s=Math.atan2(i*Math.cos(o),-n*Math.sin(o));return(0,r.piMod)(s)}};e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(410),a=r(n(411));function o(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}var s={box:function(t){return a.default.box(t)},length:function(t){return(0,i.lengthOfSegment)(o(t))},pointAt:function(t,e){return(0,i.pointAtSegments)(o(t),e)},pointDistance:function(t,e,n){return(0,i.distanceAtSegment)(o(t),e,n)},tangentAngle:function(t,e){return(0,i.angleAtSegments)(o(t),e)}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=t.attr().points,n=[],i=[],a=0;aMath.PI/2?Math.PI-c:c,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(u/2-c)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(f-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(801),i=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!e,a=[],o=0,s=t.length;o=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.direction=s,e.leftRotate=a,e.leftScale=o,e.leftTranslate=i,e.transform=function(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,l=e.length;s=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])}));return c}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)i.push(a)}return i}(t[a],t[a+1],i))}),[]);return u.unshift(t[0]),("Z"===e[i]||"z"===e[i])&&u.push("Z"),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=a(t,e),r=t.length,i=e.length,o=[],s=1,l=1;if(n[r][i]!==r){for(var u=1;u<=r;u++){var c=n[u][u].min;l=u;for(var f=s;f<=i;f++)n[u][f].min=0;u--)s=o[u].index,"add"===o[u].type?t.splice(s,0,[].concat(t[s])):t.splice(s,1)}if((r=t.length)0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],2)}t[a]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return v(t,e)};var i=n(0),a=r(n(415)),o=r(n(416)),s=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},l=function(t,e,n,r,i,a,o,l,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,h=0;h<12;h++){var g=c*f[h]+c,v=s(g,t,n,i,o),y=s(g,e,r,a,l),m=v*v+y*y;p+=d[h]*Math.sqrt(m)}return c*p},u=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,d=[],p=[[],[]],h=0;h<2;++h)if(0===h?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(f=-c/u)>0&&f<1&&d.push(f)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var y=(-u+v)/(2*l);y>0&&y<1&&d.push(y);var m=(-u-v)/(2*l);m>0&&m<1&&d.push(m)}}for(var b,x=d.length,_=x;x--;)b=1-(f=d[x]),p[0][x]=b*b*b*t+3*b*b*f*n+3*b*f*f*i+f*f*f*o,p[1][x]=b*b*b*e+3*b*b*f*r+3*b*f*f*a+f*f*f*s;return p[0][_]=t,p[1][_]=e,p[0][_+1]=o,p[1][_+1]=s,p[0].length=p[1].length=_+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},c=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),d=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},f=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},d=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:(0,a.default)(t,e,n,r),vb:[t,e,n,r].join(" ")}},p=function(t,e,n,r,a,o,s,l){(0,i.isArray)(t)||(t=[t,e,n,r,a,o,s,l]);var c=u.apply(null,t);return d(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},h=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),d=l*l,p=d*l,h=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(a-2*r+e),v=n+2*l*(i-n)+d*(o-2*i+n),y=r+2*l*(a-r)+d*(s-2*a+r);return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:h,y:g},n:{x:v,y:y},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(h-v,g-y)/Math.PI}},g=function(t,e,n){if(!function(t,e){return t=d(t),e=d(e),f(e,t.x,t.y)||f(e,t.x2,t.y)||f(e,t.x,t.y2)||f(e,t.x2,t.y2)||f(t,e.x,e.y)||f(t,e.x2,e.y)||f(t,e.x,e.y2)||f(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(p(t),p(e)))return n?0:[];for(var r=~~(l.apply(0,t)/8),i=~~(l.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],g=0;g=0&&M<=1&&S>=0&&S<=1&&(n?u++:u.push({x:w.x,y:w.y,t1:M,t2:S}))}}return u},v=function(t,e,n){var r,i,a,s,l,u,c,f,d,p;t=(0,o.default)(t),e=(0,o.default)(e);for(var h=n?0:[],v=0,y=t.length;v1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)},s=function(t){var e=t.px,n=t.py,s=t.cx,l=t.cy,u=t.rx,c=t.ry,f=t.xAxisRotation,d=void 0===f?0:f,p=t.largeArcFlag,h=void 0===p?0:p,g=t.sweepFlag,v=void 0===g?0:g,y=[];if(0===u||0===c)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];var m=Math.sin(d*r/360),b=Math.cos(d*r/360),x=b*(e-s)/2+m*(n-l)/2,_=-m*(e-s)/2+b*(n-l)/2;if(0===x&&0===_)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];u=Math.abs(u),c=Math.abs(c);var O=Math.pow(x,2)/Math.pow(u,2)+Math.pow(_,2)/Math.pow(c,2);O>1&&(u*=Math.sqrt(O),c*=Math.sqrt(O));var P=function(t,e,n,i,a,s,l,u,c,f,d,p){var h=Math.pow(a,2),g=Math.pow(s,2),v=Math.pow(d,2),y=Math.pow(p,2),m=h*g-h*y-g*v;m<0&&(m=0),m/=h*y+g*v;var b=(m=Math.sqrt(m)*(l===u?-1:1))*a/s*p,x=m*-s/a*d,_=f*b-c*x+(t+n)/2,O=c*b+f*x+(e+i)/2,P=(d-b)/a,w=(p-x)/s,M=(-d-b)/a,S=(-p-x)/s,A=o(1,0,P,w),E=o(P,w,M,S);return 0===u&&E>0&&(E-=r),1===u&&E<0&&(E+=r),[_,O,A,E]}(e,n,s,l,u,c,h,v,m,b,x,_),w=P[0],M=P[1],S=P[2],A=P[3],E=Math.abs(A)/(r/4);Math.abs(1-E)<1e-7&&(E=1);var C=Math.max(Math.ceil(E),1);A/=C;for(var j=0;jn.maxX||r.maxXn.maxY||r.maxY1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x1,i=e.y1,a=e.x2,o=e.y2,s=Math.min(n,a),l=Math.max(n,a),u=Math.min(i,o),c=Math.max(i,o),f={minX:s,maxX:l,minY:u,maxY:c};return{x:(f=(0,r.mergeArrowBBox)(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}};var r=n(249)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;return{x:n-i,y:r-a,width:2*i,height:2*a}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0});var i={getAdjust:!0,registerAdjust:!0,Adjust:!0};Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return a.default}}),e.registerAdjust=e.getAdjust=void 0;var a=r(n(110)),o=n(423);Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var s={},l=function(t){return s[t.toLowerCase()]};e.getAdjust=l,e.registerAdjust=function(t,e){if(l(t))throw new Error("Adjust type '"+t+"' existed.");s[t.toLowerCase()]=e}},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(89),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(0)),s=n(250);function l(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?s.MARGIN_RATIO:r,a=e.dodgeRatio,o=void 0===a?s.DODGE_RATIO:a,l=e.dodgeBy,u=e.intervalPadding,c=e.dodgePadding,f=e.xDimensionLength,d=e.groupNum,p=e.defaultSize,h=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio,y=e.customOffset;return n.marginRatio=i,n.dodgeRatio=o,n.dodgeBy=l,n.intervalPadding=u,n.dodgePadding=c,n.xDimensionLegenth=f,n.groupNum=d,n.defaultSize=p,n.maxColumnWidth=h,n.minColumnWidth=g,n.columnWidthRatio=v,n.customOffset=y,n}return(0,a.__extends)(e,t),e.prototype.process=function(t){var e=o.clone(t),n=o.flatten(e),r=this.dodgeBy,i=r?o.group(n,r):e;return this.cacheMap={},this.adjustDataArray=i,this.mergeData=n,this.adjustData(i,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var i=this,a=this.customOffset,s=this.getDistribution(t),l=this.groupData(n,t);return o.each(l,(function(n,l){var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:i.getAdjustRange(t,parseFloat(l),e),o.each(n,(function(e){var n=e[t],l=s[n],c=l.indexOf(r);if(o.isNil(a))e[t]=i.getDodgeOffset(u,c,l.length);else{var f=u.pre,d=u.next;e[t]=o.isFunction(a)?a(e,u):(f+d)/2+a}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,i=this,a=i.dodgeRatio,s=i.marginRatio,l=i.intervalPadding,u=i.dodgePadding,c=t.pre,f=t.next,d=f-c;if(!o.isNil(l)&&o.isNil(u)&&l>=0)r=c+this.getIntervalOnlyOffset(n,e);else if(!o.isNil(u)&&o.isNil(l)&&u>=0)r=c+this.getDodgeOnlyOffset(n,e);else if(!o.isNil(l)&&!o.isNil(u)&&l>=0&&u>=0)r=c+this.getIntervalAndDodgeOffset(n,e);else{var p=d*a/n,h=s*p;r=(c+f)/2+(.5*(d-n*p-(n-1)*h)+((e+1)*p+e*h)-.5*p-.5*d)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.intervalPadding,a=n.xDimensionLegenth,s=n.groupNum,l=n.dodgeRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,d=i/a,p=(1-(s-1)*d)/s*l/(t-1),h=((1-d*(s-1))/s-p*(t-1))/t;if(h=o.isNil(f)?h:1/s/t*f,!o.isNil(u)){var g=u/a;h=Math.min(h,g)}if(!o.isNil(c)){var v=c/a;h=Math.max(h,v)}return((.5+e)*(h=r?r/a:h)+e*(p=((1-(s-1)*d)/s-t*h)/(t-1))+.5*d)*s-d/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.dodgePadding,a=n.xDimensionLegenth,s=n.groupNum,l=n.marginRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,d=i/a,p=1*l/(s-1),h=((1-p*(s-1))/s-d*(t-1))/t;if(h=f?1/s/t*f:h,!o.isNil(u)){var g=u/a;h=Math.min(h,g)}if(!o.isNil(c)){var v=c/a;h=Math.max(h,v)}return((.5+e)*(h=r?r/a:h)+e*d+.5*(p=(1-(h*t+d*(t-1))*s)/(s-1)))*s-p/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,r=n.intervalPadding,i=n.dodgePadding,a=n.xDimensionLegenth,o=n.groupNum,s=r/a,l=i/a;return((.5+e)*(((1-s*(o-1))/o-l*(t-1))/t)+e*l+.5*s)*o-s/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},o.each(e,(function(e,n){var i=o.valuesOfKey(e,t);i.length||i.push(0),o.each(i,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(r(n(110)).default);e.default=u},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(89),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(0)),s=n(250);function l(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.process=function(t){var e=o.clone(t),n=o.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,i=this.groupData(n,t);return o.each(i,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*s.GAP;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var i=this,a=this.getAdjustRange(e,n,r);return o.each(t,(function(t){t[e]=i.getAdjustOffset(a)})),t},e}(r(n(110)).default),c=u;e.default=c},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(89),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(0)),s=r(n(110));function l(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=o.Cache,c=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,a=e.height,o=void 0===a?NaN:a,s=e.size,l=void 0===s?10:s,u=e.reverseOrder,c=void 0!==u&&u;return n.adjustNames=i,n.height=o,n.size=l,n.reverseOrder=c,n}return(0,a.__extends)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?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,r=e.yField,i=e.reverseOrder?this.reverse(t):t,s=new u,l=new u;return i.map((function(t){return t.map((function(t){var e,i=o.get(t,n,0),u=o.get(t,[r]),c=i.toString();if(u=o.isArray(u)?u[1]:u,!o.isNil(u)){var f=u>=0?s:l;f.has(c)||f.set(c,0);var d=f.get(c),p=u+d;return f.set(c,p),(0,a.__assign)((0,a.__assign)({},t),((e={})[r]=[d,p],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,r=n.xField,i=n.height,o=n.reverseOrder,s=o?this.reverse(t):t,l=new u;return s.map((function(t){return t.map((function(t){var n,o=e.size,s=t[r],u=2*o/i;l.has(s)||l.set(s,u/2);var c=l.get(s);return l.set(s,c+u),(0,a.__assign)((0,a.__assign)({},t),((n={}).y=c,n))}))}))},e}(s.default);e.default=c},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(89),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(0));function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.process=function(t){var e=o.flatten(t),n=this.xField,r=this.yField,i=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(i).map((function(t){return i[t]})));return o.map(t,(function(t){return o.map(t,(function(t){var e,l,u=t[r],c=t[n];if(o.isArray(u)){var f=(s-i[c])/2;return(0,a.__assign)((0,a.__assign)({},t),((e={})[r]=o.map(u,(function(t){return f+t})),e))}var d=(s-u)/2;return(0,a.__assign)((0,a.__assign)({},t),((l={})[r]=[d,u+d],l))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,i=o.groupBy(t,(function(t){return t[n]}));return o.mapValues(i,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=o.map(t,(function(t){return o.get(t,e,[])})),r=o.flatten(n);return Math.max.apply(Math,r)},e}(r(n(110)).default),u=l;e.default=u},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(89),a=r(n(140)),o=n(0),s=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],(0,o.isString)(n.values)&&(n.linear=!0),n.gradient=a.default.gradient(n.values),n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(r(n(103)).default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(89),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return(0,i.__extends)(e,t),e}(r(n(103)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(89),a=n(0),o=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return(0,i.__extends)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return(0,a.isNil)(t)||(0,a.isNil)(e)?[]:[(0,a.isArray)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),(0,a.isArray)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(r(n(103)).default);e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(89),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(r(n(103)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(89),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return(0,i.__extends)(e,t),e}(r(n(103)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0});var i={getAttribute:!0,registerAttribute:!0,Attribute:!0};Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return a.default}}),e.registerAttribute=e.getAttribute=void 0;var a=r(n(103)),o=n(424);Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var s={},l=function(t){return s[t.toLowerCase()]};e.getAttribute=l,e.registerAttribute=function(t,e){if(l(t))throw new Error("Attribute type '"+t+"' existed.");s[t.toLowerCase()]=e}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(175),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,i.__extends)(e,t),e.prototype.translate=function(t){t=(0,o.toTimeStamp)(t);var e=this.values.indexOf(t);return-1===e&&(e=(0,a.isNumber)(t)&&t-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):(0,o.timeFormat)(r,this.mask)}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,a.each)(e,(function(t,n){e[n]=(0,o.toTimeStamp)(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(r(n(426)).default),l=s;e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=c,e.format=e.defaultI18n=e.default=void 0,e.parse=C,e.setGlobalDateMasks=e.setGlobalDateI18n=void 0;var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",a="\\d\\d",o="[^\\s]+",s=/\[([^]*?)\]/gm;function l(t,e){for(var n=[],r=0,i=t.length;r-1?i:null}};function c(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}};e.defaultI18n=h;var g=c({},h),v=function(t){return g=c(g,t)};e.setGlobalDateI18n=v;var y=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},m=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+m(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+m(Math.floor(Math.abs(e)/60),2)+":"+m(Math.abs(e)%60,2)}},x=function(t){return+t-1},_=[null,i],O=[null,o],P=["isPm",o,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],w=["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}],M={D:["day",i],DD:["day",a],Do:["day",i+o,function(t){return parseInt(t,10)}],M:["month",i,x],MM:["month",a,x],YY:["year",a,function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour",i,void 0,"isPm"],hh:["hour",a,void 0,"isPm"],H:["hour",i],HH:["hour",a],m:["minute",i],mm:["minute",a],s:["second",i],ss:["second",a],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",a,function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:_,dd:_,ddd:O,dddd:O,MMM:["month",o,u("monthNamesShort")],MMMM:["month",o,u("monthNames")],a:P,A:P,ZZ:w,Z:w},S={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"},A=function(t){return c(S,t)};e.setGlobalDateMasks=A;var E=function(t,e,n){if(void 0===e&&(e=S.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=S[e]||e;var i=[];e=e.replace(s,(function(t,e){return i.push(e),"@@@"}));var a=c(c({},g),n);return(e=e.replace(r,(function(e){return b[e](t,a)}))).replace(/@@@/g,(function(){return i.shift()}))};function C(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=S[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],l=e.replace(s,(function(t,e){return o.push(y(e)),"@@@"})),u={},f={};l=y(l).replace(r,(function(t){var e=M[t],n=e[0],r=e[1],i=e[3];if(u[n])throw new Error("Invalid format. "+n+" specified twice in format");return u[n]=!0,i&&(f[i]=!0),a.push(e),"("+r+")"})),Object.keys(f).forEach((function(t){if(!u[t])throw new Error("Invalid format. "+t+" is required in specified format")})),l=l.replace(/@@@/g,(function(){return o.shift()}));var d=t.match(new RegExp(l,"i"));if(!d)return null;for(var p,h=c(c({},g),n),v=1;v11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return p}e.format=E;var j={format:E,parse:C,defaultI18n:h,setGlobalDateI18n:v,setGlobalDateMasks:A};e.default=j},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e,n,i,a){for(var o=(0,r.isNil)(i)?0:i,s=(0,r.isNil)(a)?e.length:a;o>>1;t(e[l])>n?s=l:o=l+1}return o}};var r=n(0)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(177),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=(0,a.log)(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var l=1/(r-(e=(0,a.log)(n,s/n)))*o;if(t=0?1:-1;return Math.pow(o,n)*s},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 r=this.exponent;return((0,a.calBase)(r,t)-(0,a.calBase)(r,n))/((0,a.calBase)(r,e)-(0,a.calBase)(r,n))},e}(r(n(176)).default),s=o;e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(175),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,i.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):(0,o.timeFormat)(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,a.isString)(n)||(0,a.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return(0,o.toTimeStamp)(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,a.isNil)(e)&&(0,a.isNumber)(e)||(this.min=this.translate(this.min)),(0,a.isNil)(n)&&(0,a.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,s=i,l=0;(0,a.each)(t,(function(t){var e=(0,o.toTimeStamp)(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(s=i,i=e):s>e&&(s=e),l1&&(this.minTickInterval=s-i),(0,a.isNil)(e)&&(this.min=i),(0,a.isNil)(n)&&(this.max=l)}},e}(r(n(427)).default),l=s;e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,i.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(r(n(428)).default),o=a;e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return i.default}}),e.getScale=o,e.registerScale=function(t,e){if(o(t))throw new Error("type '"+t+"' existed.");a[t]=e};var i=r(n(141)),a={};function o(t){return a[t]}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,i.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,a.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(r(n(141)).default),s=o;e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return f.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return f.registerTickMethod}});var i=r(n(429)),a=r(n(837)),o=r(n(839)),s=r(n(841)),l=r(n(842)),u=r(n(843)),c=r(n(844)),f=n(425),d=r(n(845)),p=r(n(846)),h=r(n(847));(0,f.registerTickMethod)("cat",i.default),(0,f.registerTickMethod)("time-cat",p.default),(0,f.registerTickMethod)("wilkinson-extended",o.default),(0,f.registerTickMethod)("r-pretty",c.default),(0,f.registerTickMethod)("time",d.default),(0,f.registerTickMethod)("time-pretty",h.default),(0,f.registerTickMethod)("log",s.default),(0,f.registerTickMethod)("pow",l.default),(0,f.registerTickMethod)("quantile",u.default),(0,f.registerTickMethod)("d3-linear",a.default)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.min,n=t.max,r=t.tickInterval,l=t.minLimit,u=t.maxLimit,c=(0,a.default)(t);return(0,i.isNil)(l)&&(0,i.isNil)(u)?r?(0,o.default)(e,n,r).ticks:c:(0,s.default)(t,(0,i.head)(c),(0,i.last)(c))};var i=n(0),a=r(n(838)),o=r(n(252)),s=r(n(253))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.D3Linear=void 0,e.default=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,a=new o;return a.domain([e,n]),r&&a.nice(i),a.ticks(i)};var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2),o=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=5);var r,i=this._domain.slice(),a=0,o=this._domain.length-1,l=this._domain[a],u=this._domain[o];return u0?r=s(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=s(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(u*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,a,o,l=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++l=0?(l>=r?10:l>=i?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=a?2:1)}e.D3Linear=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,l=t.nice,u=t.tickInterval,c=t.minLimit,f=t.maxLimit,d=(0,a.default)(e,n,r,l).ticks;return(0,i.isNil)(c)&&(0,i.isNil)(f)?u?(0,o.default)(e,n,u).ticks:d:(0,s.default)(t,(0,i.head)(d),(0,i.last)(d))};var i=n(0),a=r(n(840)),o=r(n(252)),s=r(n(253))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_Q=e.ALL_Q=void 0,e.default=function(t,e,n,o,p,h){void 0===n&&(n=5),void 0===o&&(o=!0),void 0===p&&(p=a),void 0===h&&(h=[.25,.2,.5,.05]);var g=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!==typeof t||"number"!==typeof e||!g)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===g)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var v=(e-t)/(j=n||5);return{min:t,max:e,ticks:Array(j).fill(null).map((function(e,n){return(0,i.prettyNumber)(t+v*n)}))}}for(var y={score:-2,lmin:0,lmax:0,lstep:0},m=1;m<1/0;){for(var b=0;by.score&&(!o||T<=t&&F>=e)&&(y.lmin=T,y.lmax=F,y.lstep=L,y.score=N)}M+=1}O+=1}}m+=1}var B=(0,i.prettyNumber)(y.lmax),z=(0,i.prettyNumber)(y.lmin),V=(0,i.prettyNumber)(y.lstep),G=Math.floor(function(t){return Math.round(1e12*t)/1e12}((B-z)/V))+1,W=new Array(G);for(W[0]=(0,i.prettyNumber)(z),b=1;b=0&&(c=1),1-u/(l-1)-n+c}function l(t,e,n){var i=(0,r.size)(e);return 1-(0,r.indexOf)(e,t)/(i-1)-n+1}function u(t,e,n,r,i,a){var o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function c(t,e){return t>=e?2-(t-1)/(e-1):1}function f(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function d(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n=t.base,i=t.tickCount,a=t.min,o=t.max,s=t.values,l=(0,r.log)(n,o);if(a>0)e=Math.floor((0,r.log)(n,a));else{var u=(0,r.getLogPositiveMin)(s,n,o);e=Math.floor((0,r.log)(n,u))}for(var c=l-e,f=Math.ceil(c/i),d=[],p=e;p=0?1:-1;return Math.pow(t,e)*n}))};var i=n(177),a=r(n(431))},function(t,e,n){"use strict";function r(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]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(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})),a=[],o=0;o1&&(a*=Math.ceil(s)),i&&ar.YEAR)for(var p=i(n),h=Math.ceil(c/r.YEAR),g=d;g<=p+h;g+=h)f.push(a(g));else if(c>r.MONTH){var v=Math.ceil(c/r.MONTH),y=o(e),m=function(t,e){var n=i(t),r=i(e),a=o(t),s=o(e);return 12*(r-n)+(s-a)%12}(e,n);for(g=0;g<=m+v;g+=v)f.push(s(d,g+y))}else if(c>r.DAY){var b=(w=new Date(e)).getFullYear(),x=w.getMonth(),_=w.getDate(),O=Math.ceil(c/r.DAY),P=function(t,e){return Math.ceil((e-t)/r.DAY)}(e,n);for(g=0;gr.HOUR){b=(w=new Date(e)).getFullYear(),x=w.getMonth(),O=w.getDate();var w,M=w.getHours(),S=Math.ceil(c/r.HOUR),A=function(t,e){return Math.ceil((e-t)/r.HOUR)}(e,n);for(g=0;g<=A+S;g+=S)f.push(new Date(b,x,O,M+g).getTime())}else if(c>r.MINUTE){var E=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),C=Math.ceil(c/r.MINUTE);for(g=0;g<=E+C;g+=C)f.push(e+g*r.MINUTE)}else{var j=c;j=512&&console.warn("Notice: current ticks length("+f.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+c+") is too small, increase the value to solve the problem!"),f};var r=n(175);function i(t){return new Date(t).getFullYear()}function a(t){return new Date(t,0,1).getTime()}function o(t){return new Date(t).getMonth()}function s(t,e){return new Date(t,e,1).getTime()}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return l.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return l.registerCoordinate}});var i=r(n(178)),a=r(n(849)),o=r(n(850)),s=r(n(851)),l=n(852);(0,l.registerCoordinate)("rect",a.default),(0,l.registerCoordinate)("cartesian",a.default),(0,l.registerCoordinate)("polar",s.default),(0,l.registerCoordinate)("helix",o.default)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return(0,i.__extends)(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,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(r(n(178)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(32),o=n(0),s=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=l,n.radius=u,n.initial(),n}return(0,i.__extends)(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,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),a=this.a*i,o=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(a+o),y:this.center.y+Math.sin(i)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=a.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=a.ext.angleTo(r,[1,0],!0),s=i*this.a;a.vec2.length(r)this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-a)*e*r,y:this.center.y-(.5-o)*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(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,s=this.endAngle;this.isReflect("x")&&(i=(e=[s,i])[0],s=e[1]);var l=[1,0,0,0,1,0,0,0,1];a.ext.leftRotate(l,l,i);var u=[1,0,0];a.vec3.transformMat3(u,u,l);var c=[u[0],u[1]],f=a.ext.angleTo(c,r,s0?p:-p;var h=this.invertDim(d,"y"),g={x:0,y:0};return g.x=this.isTransposed?h:p,g.y=this.isTransposed?p:h,g},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)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i1||r<0)&&(r=1),{x:(0,u.getValueByPercent)(t.x,e.x,r),y:(0,u.getValueByPercent)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,a=e.content,o=e.style,l=e.offsetX,u=e.offsetY,c=e.autoRotate,f=e.maxLength,d=e.autoEllipsis,p=e.ellipsisPosition,h=e.background,g=e.isVertical,v=void 0!==g&&g,y=this.getLabelPoint(n,r,i),m=y.x+l,b=y.y+u,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:b,content:a,style:o,maxLength:f,autoEllipsis:d,ellipsisPosition:p,background:h,isVertical:v};if(c){var _=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(_[1],_[0])}(0,s.renderTag)(t,x)},e}(o.default),f=c;e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.charAtLength=i,e.ellipsisString=function(t,e,n){void 0===n&&(n="tail");var a=t.length,o="";if("tail"===n){for(var s=0,l=0;s0&&t.charCodeAt(e)<128?1:2}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(41)),o=n(180),s=n(90),l=r(n(58)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},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:l.default.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:l.default.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,r=e.y,i=this.get("content"),a=this.get("style"),s={id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:a,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")};(0,o.renderTag)(t,s)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");(0,s.applyTranslate)(t,n,r),(0,s.applyRotate)(t,i,n,r)}},e}(a.default),c=u;e.default=c},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(41)),o=n(42),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},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,r=t.startAngle,i=t.endAngle,a=(0,o.getCirclePoint)(e,n,r),s=(0,o.getCirclePoint)(e,n,i),l=i-r>Math.PI?1:0,u=[["M",a.x,a.y]];if(i-r===2*Math.PI){var c=(0,o.getCirclePoint)(e,n,r+Math.PI);u.push(["A",n,n,0,l,1,c.x,c.y]),u.push(["A",n,n,0,l,1,s.x,s.y])}else u.push(["A",n,n,0,l,1,s.x,s.y]);return u},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,i.__assign)({path:e},n)})},e}(a.default),l=s;e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(41)),o=r(n(58)),s=n(42),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:o.default.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"),r=this.get("style"),a=(0,s.regionToBBox)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a.default),u=l;e.default=u},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(41)),o=n(42),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},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"),r=(0,o.regionToBBox)({start:t,end:e}),a=this.get("src");return(0,i.__assign)({x:r.x,y:r.y,img:a,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(a.default),l=s;e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(41)),s=n(180),l=n(90),u=r(n(58)),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},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:u.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.default.fontFamily}}}})},e.prototype.renderInner=function(t){(0,a.get)(this.get("line"),"display")&&this.renderLine(t),(0,a.get)(this.get("text"),"display")&&this.renderText(t),(0,a.get)(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,r=e.y,a=e.text,o=(0,i.__rest)(e,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,f=l.autoEllipsis,d=l.isVertival,p=l.ellipsisPosition,h={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:u,maxLength:c,autoEllipsis:f,isVertival:d,ellipsisPosition:p};(0,s.renderTag)(t,h)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),i=(0,a.get)(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=t.getBBox(),u=s.minX,c=s.maxX,f=s.minY,d=s.maxY,p=t.findById(this.getElementId("text-group")),h=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o){if(p){if(n+u<=o.minX){var v=o.minX-(n+u);(0,l.applyTranslate)(p,p.attr("x")+v,p.attr("y"))}n+c>=o.maxX&&(v=n+c-o.maxX,(0,l.applyTranslate)(p,p.attr("x")-v,p.attr("y")))}if("upward"===e&&r+f<=o.minY||"upward"!==e&&r+d>=o.maxY){var y=void 0,m=void 0;"upward"===e&&r+f<=o.minY?(y="top",m=1):(y="bottom",m=-1),h.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,i*m]]),(0,l.applyTranslate)(p,p.attr("x"),(i+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=(0,a.get)(this.get("line"),"display"),e=(0,a.get)(this.get("point"),"style",{}),n=(0,a.get)(this.get("line"),"style",{}),r=(0,a.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,a.get)(this.get("line"),"length",0):0,l="upward"===o?-1:1;return{point:(0,i.__assign)({x:0,y:0},e),line:(0,i.__assign)({path:[["M",0,0],["L",0,s*l]]},n),text:(0,i.__assign)({x:0,y:(s+2)*l,text:(0,a.get)(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},r)}},e}(o.default),f=c;e.default=f},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(41)),s=r(n(58)),l=n(42),u=n(180),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:s.default.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:s.default.textColor,fontFamily:s.default.fontFamily}}}})},e.prototype.renderInner=function(t){var e=(0,a.get)(this.get("region"),"style",{}),n=((0,a.get)(this.get("text"),"style",{}),this.get("lineLength")||0),r=this.get("points");if(r.length){var o=(0,l.pointsToBBox)(r),s=[];s.push(["M",r[0].x,o.minY-n]),r.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",r[r.length-1].x,r[r.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({path:s},e)});var c=(0,i.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));(0,u.renderTag)(t,c)}},e}(o.default),f=c;e.default=f},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(41)),s=n(42),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},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"),r=this.get("end"),i=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,a.each)(this.get("shapes"),(function(t,n){var r=t.get("type"),o=(0,a.clone)(t.attr());e.adjustShapeAttrs(o),e.addShape(i,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:o})}));var o=(0,s.regionToBBox)({start:n,end:r});i.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}(o.default),u=l;e.default=u},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"shape",draw:a.noop})},e.prototype.renderInner=function(t){var e=this.get("render");(0,a.isFunction)(e)&&e(t)},e}(r(n(41)).default),s=o;e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(96),o=n(0),s=r(n(181)),l=n(42),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");(0,l.clearDom)(t);var n=(0,o.isFunction)(e)?e(t):e;if((0,o.isElement)(n))t.appendChild(n);else if((0,o.isString)(n)||(0,o.isNumber)(n)){var r=(0,a.createDom)(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),s=this.get("offsetX"),l=this.get("offsetY"),u=(0,a.getOuterWidth)(t),c=(0,a.getOuterHeight)(t),f={x:n,y:r};"middle"===i?f.x-=Math.round(u/2):"right"===i&&(f.x-=Math.round(u)),"middle"===o?f.y-=Math.round(c/2):"bottom"===o&&(f.y-=Math.round(c)),s&&(f.x+=s),l&&(f.y+=l),(0,a.modifyCSS)(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(s.default),c=u;e.default=c},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return i.default}});var i=r(n(867)),a=r(n(871)),o=r(n(255))},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(32),s=n(0),l=r(n(255)),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(434));function c(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,a.__assign)((0,a.__assign)({},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"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),a=Math.min(e.y,n.y,r.y),o=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return(0,s.isNumberEqual)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return(0,s.isNumberEqual)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=o.vec2.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return o.vec2.scale([0,0],i,t*r)},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(),r=this.isHorizontal();if(n||r){var i=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),l=i.offset,u=o,c=0,f=0;a&&(c=a.style.fontSize,f=a.spacing),u&&(u=u-l-f-c);var d=this.get("overlapOrder");if((0,s.each)(d,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,u)})),a&&(0,s.isNil)(a.offset)){var p=t.getCanvasBBox(),h=n?p.width:p.height;a.offset=l+h+f+c/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,s.isNil)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=this.isVertical(),o=!1,l=u[t];if(!0===e)this.get("label"),o=l.getDefault()(a,n,r);else if((0,s.isFunction)(e))o=e(a,n,r);else if((0,s.isObject)(e)){var c=e;l[c.type]&&(o=l[c.type](a,n,r,c.cfg))}else l[e]&&(o=l[e](a,n,r));if("autoRotate"===t){if(o){var f=n.getChildren(),d=this.get("verticalFactor");(0,s.each)(f,(function(t){if("center"===t.attr("textAlign")){var e=d>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);(0,s.each)(p,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(l.default),d=f;e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisHead=function(t,e,n){return a(t,e,n,"head")},e.ellipsisMiddle=function(t,e,n){return a(t,e,n,"middle")},e.ellipsisTail=o,e.getDefault=function(){return o};var r=n(0),i=n(142);function a(t,e,n,a){var o=e.getChildren(),s=!1;return(0,r.each)(o,(function(e){var r=(0,i.ellipsisLabel)(t,e,n,a);s=s||r})),s}function o(t,e,n){return a(t,e,n,"tail")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equidistance=c,e.equidistanceWithReverseBoth=function(t,e,n,r){var i=e.getChildren().slice(),a=u(t,e,r);if(i.length>2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),l(t,e,!1,r)&&(a=!0)),s.get("visible")||(s.show(),l(t,e,!0,r)&&(a=!0))}return a},e.getDefault=function(){return c},e.reserveBoth=function(t,e,n,r){var i=(null===r||void 0===r?void 0:r.minGap)||0,a=e.getChildren().slice();if(a.length<=2)return!1;for(var o=!1,l=a.length,u=a[0],c=a[l-1],f=u,d=1;de.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(s));i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}else c=Math.abs(Math.sin(s)),i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l;return i}function l(t,e,n,r){var i=(null===r||void 0===r?void 0:r.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;n&&a.reverse();for(var l=a.length,u=a[0],c=1;c1){g=Math.ceil(g);for(var y=0;yn||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))};var i=n(0),a=n(142),o=n(90),s=r(n(58));function l(t,e,n,r){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var l=(0,a.getMaxLabelWidth)(s),u=!1;return(u=t?!!n&&l>n:l>Math.abs(s[1].attr("x")-s[0].attr("x")))&&function(t,e){(0,i.each)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=(0,o.getMatrixByAngle)({x:n,y:r},e);t.attr("matrix",i)}))}(s,r(n,l)),u}function u(t,e,n,r){return l(t,e,n,(function(){return(0,i.isNumber)(r)?r:t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate}))}},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(0),s=n(32),l=r(n(255)),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(434));function c(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,a.__assign)((0,a.__assign)({},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,r=this.get("radius"),i=r,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var l=this.getCirclePoint(a),u=this.getCirclePoint(o),c=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;s=[["M",e,n],["L",l.x,l.y],["A",r,i,0,c,f,u.x,u.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),a=s.vec2.length(r);return s.vec2.scale(r,r,i*t/a),r},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,o.isNil)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),i=this.get("verticalLimitLength"),a=n.offset,s=i,l=0,u=0;r&&(l=r.style.fontSize,u=r.spacing),s&&(s=s-a-u-l);var c=this.get("overlapOrder");if((0,o.each)(c,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,s)})),r&&(0,o.isNil)(r.offset)){var f=t.getCanvasBBox().height;r.offset=a+f+u+l/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=!1,s=u[t];if(r>0)if(!0===e)a=s.getDefault()(!1,n,r);else if((0,o.isFunction)(e))a=e(!1,n,r);else if((0,o.isObject)(e)){var l=e;s[l.type]&&(a=s[l.type](!1,n,r,l.cfg))}else s[e]&&(a=s[e](!1,n,r));if("autoRotate"===t){if(a){var c=n.getChildren(),f=this.get("verticalFactor");(0,o.each)(c,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var d=n.getChildren().slice(0);(0,o.each)(d,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(l.default),d=f;e.default=d},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return i.default}});var i=r(n(873)),a=r(n(874)),o=r(n(256)),s=r(n(875))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(42),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return(0,a.getTextPoint)(e,n,i,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}(r(n(256)).default),s=o;e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(42),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},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;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,o=r.radius,s=r.startAngle,l=r.endAngle,u="start"===e?s:l,c=this.getRotateAngle()-Math.PI,f=(0,a.getCirclePoint)(i,o,u),d=Math.cos(c)*n,p=Math.sin(c)*n;return{x:f.x+d,y:f.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=null;if(i-r===2*Math.PI){var s=e.x,l=e.y;o=[["M",s,l-n],["A",n,n,0,1,1,s,l+n],["A",n,n,0,1,1,s,l-n],["Z"]]}else{var u=(0,a.getCirclePoint)(e,n,r),c=(0,a.getCirclePoint)(e,n,i),f=Math.abs(i-r)>Math.PI?1:0,d=r>i?0:1;o=[["M",u.x,u.y],["A",n,n,0,f,d,c.x,c.y]]}return o},e}(r(n(256)).default),s=o;e.default=s},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(96),s=n(0),l=n(42),u=r(n(181)),c=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=d(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(435)),f=r(n(876));function d(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(d=function(t){return t?n:e})(t)}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,a.__assign)((0,a.__assign)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:c.CONTAINER_CLASS,defaultStyles:f.default,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=(0,o.createDom)(e);t.appendChild(n),this.applyStyle(c.CROSSHAIR_LINE,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,a=r.offset;return(0,l.getTextPoint)(e,n,i,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=(0,s.substitute)(this.get("textTpl"),t);e=(0,o.createDom)(i),r.appendChild(e),this.applyStyle(c.CROSSHAIR_TEXT,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"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?(0,o.modifyCSS)(t,{width:"1px",height:(0,l.toPx)(Math.abs(n.y-e.y))}):(0,o.modifyCSS)(t,{height:"1px",width:(0,l.toPx)(Math.abs(n.x-e.x))}),(0,o.modifyCSS)(t,{top:(0,l.toPx)(i),left:(0,l.toPx)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}(0,o.modifyCSS)(t,{top:(0,l.toPx)(r.y),left:(0,l.toPx)(r.x)})}},e.prototype.updateInner=function(e){(0,s.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(u.default),h=p;e.default=h},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,o=r(n(58)),s=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(435));function l(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=((a={})[""+s.CONTAINER_CLASS]={position:"relative"},a[""+s.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},a[""+s.CROSSHAIR_TEXT]={position:"absolute",color:o.default.textColor,fontFamily:o.default.fontFamily},a);e.default=u},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return o.default}});var i=r(n(257)),a=r(n(878)),o=r(n(879))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),r=this.get("closed"),i=[];if(t.length)if("circle"===n){var o=this.get("center"),s=t[0],l=function(t,e,n,r){var i=n-t,a=r-e;return Math.sqrt(i*i+a*a)}(o.x,o.y,s.x,s.y),u=e?0:1;r?(i.push(["M",o.x,o.y-l]),i.push(["A",l,l,0,0,u,o.x,o.y+l]),i.push(["A",l,l,0,0,u,o.x,o.y-l]),i.push(["Z"])):(0,a.each)(t,(function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["A",l,l,0,0,u,t.x,t.y])}))}else(0,a.each)(t,(function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["L",t.x,t.y])})),r&&i.push(["Z"]);return i},e}(r(n(257)).default),s=o;e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return(0,a.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(r(n(257)).default),s=o;e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Continuous",{enumerable:!0,get:function(){return a.default}});var i=r(n(881)),a=r(n(882)),o=r(n(258))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(142),s=n(90),l=n(433),u=r(n(58)),c=r(n(258)),f={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},d={fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:u.default.fontFamily,fontWeight:"normal",lineHeight:12},p="navigation-arrow-right",h="navigation-arrow-left",g={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},v=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.currentPageIndexg&&(g=m),"horizontal"===d?(v&&vx&&(x=e.width)})),_=x,x+=d,l&&(x=Math.min(l,x),_=Math.min(l,_)),this.pageWidth=x,this.pageHeight=u-Math.max(v.height,p+O);var M=Math.floor(this.pageHeight/(p+O));(0,a.each)(s,(function(t,e){0!==e&&e%M===0&&(m+=1,y.x+=x,y.y=i),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:x,height:p}}),y.y+=p+O})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+_/2-v.width/2-v.minX,y:u-v.height-v.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(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,r){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,a.get)(r.marker,"style",{}),u=l.size,c=void 0===u?12:u,f=(0,i.__rest)(l,["size"]),d=this.drawArrow(s,o,h,"horizontal"===e?"up":"left",c,f);d.on("click",this.onNavigationBack);var g=d.getBBox();o.x+=g.width+2;var v=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,i.__assign)({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},(0,a.get)(r.text,"style"))}).getBBox();return o.x+=v.width+2,this.drawArrow(s,o,p,"horizontal"===e?"down":"right",c,f).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=(0,a.deepMix)({},f,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,i=e.inactiveFill,o=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId(h)):this.getElementByLocalId(h),c=t?t.findById(this.getElementId(p)):this.getElementByLocalId(p);l.attr("text",s),u.attr("opacity",1===this.currentPageIndex?o:r),u.attr("fill",1===this.currentPageIndex?i:n),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:r),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?i:n),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var d=u.getBBox().maxX+2;l.attr("x",d),d+=l.getBBox().width+2,this.updateArrowPath(c,{x:d,y:0})},e.prototype.drawArrow=function(t,e,n,r,a,o){var l=e.x,u=e.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,i.__assign)({size:a,direction:r,path:[["M",l+a/2,u],["L",l,u+a],["L",l+a,u+a],["Z"]],cursor:"pointer"},o)});return c.attr("matrix",(0,s.getMatrixByAngle)({x:l+a/2,y:u+a/2},g[r])),c},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),a=i.size,o=i.direction,l=(0,s.getMatrixByAngle)({x:n+a/2,y:r+a/2},g[o]);t.attr("path",[["M",n+a/2,r],["L",n,r+a],["L",n+a,r+a],["Z"]]),t.attr("matrix",l)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,r=t.pageHeight,i="horizontal"===this.get("layout")?{x:0,y:r*(1-e)}:{x:n*(1-e),y:0};return(0,s.getMatrixByTranslate)(i)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");(0,a.each)(n,(function(e){var n=e.get("name").split("-")[2],i=(0,l.getStatesStyle)(t,n,r);i&&(e.attr(i),"marker"!==n||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}(c.default),y=v;e.default=y},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(58)),s=n(42),l=r(n(258)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},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:o.default.textColor,textBaseline:"middle",fontFamily:o.default.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:o.default.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),r=e.getCurrentValue()[1];rn&&(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 r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),l=i-r;l<0?a[0]+l>s.min?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.min,s.min+o]):l>0&&(l>0&&a[1]+la&&(c=a),c0&&this.changeRailLength(r,i,n[i]-c)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+l.width+o,r.y),e.attr({x:r.x+l.width+s.width+2*o,y:r.y+c/2})):"top"===a?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+o}),e.attr({x:r.x+s.width,y:r.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o),e.attr({x:r.x,y:r.y+l.height+s.height+2*o});else if("right"===a)t.attr({x:r.x+s.width+o,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+o,y:r.y+s.height});else{var c=Math.max(l.width,u.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+c+o,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(l.default),c=u;e.default=c},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return i.default}});var i=r(n(884))},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=r(n(140)),s=n(96),l=n(0),u=r(n(181)),c=n(42),f=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(259)),d=r(n(885)),p=n(886);function h(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,a.__assign)((0,a.__assign)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:f.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:d.default})},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),(0,s.modifyCSS)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),(0,s.modifyCSS)(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"),r=this.get("yCrosshairDom");n&&(0,s.modifyCSS)(n,{display:e}),r&&(0,s.modifyCSS)(r,{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():(function(t,e){var n=!1;return(0,l.each)(e,(function(e){if((0,l.hasKey)(t,e))return n=!0,!1})),n}(e,["title","showTitle"])&&this.resetTitle(),(0,l.hasKey)(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"),r=this.get("offset"),i=this.getOffset(),a=i.offsetX,o=i.offsetY,l=this.get("position"),u=this.get("region"),f=this.getContainer(),d=this.getBBox(),h=d.width,g=d.height;u&&(t=(0,c.regionToBBox)(u));var v=(0,p.getAlignPoint)(e,n,r,h,g,l,t);(0,s.modifyCSS)(f,{left:(0,c.toPx)(v.x+a),top:(0,c.toPx)(v.y+o)}),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,l.isElement)(n)?n:(0,s.createDom)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(f.TITLE_CLASS)[0],n=t.getElementsByClassName(f.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&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=(0,c.regionToBBox)(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.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),r=this.get(t);"x"===t?(0,s.modifyCSS)(n,{left:(0,c.toPx)(r),top:(0,c.toPx)(e.y),height:(0,c.toPx)(e.height)}):(0,s.modifyCSS)(n,{top:(0,c.toPx)(r),left:(0,c.toPx)(e.x),width:(0,c.toPx)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=f[r],a=this.get(e),o=this.get("parent");return a||(a=(0,s.createDom)(this.get(n)),this.applyStyle(i,a),o.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&((0,l.each)(t,(function(t){var r=o.default.toCSSGradient(t.color),i=(0,a.__assign)((0,a.__assign)({},t),{color:r}),u=(0,l.substitute)(e,i),c=(0,s.createDom)(u);n.appendChild(c)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&(0,c.clearDom)(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}(u.default),v=g;e.default=v},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,o=r(n(58)),s=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(259));function l(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=((a={})[""+s.CONTAINER_CLASS]={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:o.default.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},a[""+s.TITLE_CLASS]={marginBottom:"4px"},a[""+s.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},a[""+s.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},a[""+s.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},a[""+s.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},a[""+s.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},a[""+s.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},a);e.default=u},function(t,e,n){"use strict";function r(t,e,n,r,i){return{left:ti.x+i.width,top:ei.y+i.height}}function i(t,e,n,r,i,a){var o=t,s=e;switch(a){case"left":o=t-r-n,s=e-i/2;break;case"right":o=t+n,s=e-i/2;break;case"top":o=t-r/2,s=e-i-n;break;case"bottom":o=t-r/2,s=e+n;break;default:o=t+n,s=e-i-n}return{x:o,y:s}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAlignPoint=function(t,e,n,a,o,s,l){var u=i(t,e,n,a,o,s);if(l){var c=r(u.x,u.y,a,o,l);"auto"===s?(c.right&&(u.x=Math.max(0,t-a-n)),c.top&&(u.y=Math.max(0,e-o-n))):"top"===s||"bottom"===s?(c.left&&(u.x=l.x),c.right&&(u.x=l.x+l.width-a),"top"===s&&c.top&&(u.y=e+n),"bottom"===s&&c.bottom&&(u.y=e-o-n)):(c.top&&(u.y=l.y),c.bottom&&(u.y=l.y+l.height-o),"left"===s&&c.left&&(u.x=t+n),"right"===s&&c.right&&(u.x=t-a-n))}return u},e.getOutSides=r,e.getPointByPosition=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return r.Slider}});var r=n(888)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Slider=void 0;var i=n(1),a=n(0),o=r(n(41)),s=n(889),l=n(892),u=n(893),c=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 r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=(0,a.get)(r,"touches.0.pageX",r.pageX),e.prevY=(0,a.get)(r,"touches.0.pageY",r.pageY);var i=e.getContainerDOM();i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var i=(0,a.get)(t,"touches.0.pageX",t.pageX),o=(0,a.get)(t,"touches.0.pageY",t.pageY),s=i-e.prevX,l=e.adjustOffsetRange(s/n);e.updateStartEnd(l),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=i,e.prevY=o,e.draw(),e.emit(u.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,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,i.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),i=(0,a.clamp)(n,t,e),o=(0,a.clamp)(r,t,e);this.get("isInit")||n===i&&r===o||this.setValue([i,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,a.isArray)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:(0,a.clamp)(t[0],e.min,e.max),end:(0,a.clamp)(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,i.__assign)((0,i.__assign)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:u.BACKGROUND_STYLE,foregroundStyle:u.FOREGROUND_STYLE,handlerStyle:u.HANDLER_STYLE,textStyle:u.TEXT_STYLE}})},e.prototype.update=function(e){var n=e.start,r=e.end,o=(0,i.__assign)({},e);(0,a.isNil)(n)||(o.start=(0,a.clamp)(n,0,1)),(0,a.isNil)(r)||(o.end=(0,a.clamp)(r,0,1)),t.prototype.update.call(this,o),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,a.clamp)(this.get("start"),0,1)),this.set("end",(0,a.clamp)(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),r=e.height,o=e.trendCfg,c=void 0===o?{}:o,f=e.minText,d=e.maxText,p=e.backgroundStyle,h=void 0===p?{}:p,g=e.foregroundStyle,v=void 0===g?{}:g,y=e.textStyle,m=void 0===y?{}:y,b=(0,a.deepMix)({},l.DEFAULT_HANDLER_STYLE,this.cfg.handlerStyle);(0,a.size)((0,a.get)(c,"data"))&&(this.trend=this.addComponent(t,(0,i.__assign)({component:s.Trend,id:this.getElementId("trend"),x:0,y:0,width:n,height:r},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},h)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"right",text:f,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"left",text:d,silent:!1},m)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,i.__assign)({y:0,height:r},v)});var x=(0,a.get)(b,"width",u.DEFAULT_HANDLER_WIDTH),_=(0,a.get)(b,"height",24);this.minHandler=this.addComponent(t,{component:l.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(r-_)/2,width:x,height:_,cursor:"ew-resize",style:b}),this.maxHandler=this.addComponent(t,{component:l.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(r-_)/2,width:x,height:_,cursor:"ew-resize",style:b})},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 r=this.cfg,i=r.start,o=r.end,s=r.width,l=r.minText,c=r.maxText,f=r.handlerStyle,d=r.height,p=i*s,h=o*s;this.trend&&(this.trend.update({width:s,height:d}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",h-p);var g=(0,a.get)(f,"width",u.DEFAULT_HANDLER_WIDTH);e.attr("text",l),n.attr("text",c);var v=this._dodgeText([p,h],e,n),y=v[0],m=v[1];this.minHandler&&(this.minHandler.update({x:p-g/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,a.each)(y,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:h-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,a.each)(m,(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,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,a=1-n;return Math.min(a,Math.max(i,t));case"maxHandler":return i=0-r,a=1-r,Math.min(a,Math.max(i,t));case"foreground":return i=0-n,a=1-r,Math.min(a,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,i,o=this.cfg,s=o.handlerStyle,l=o.width,c=(0,a.get)(s,"width",u.DEFAULT_HANDLER_WIDTH),f=t[0],d=t[1],p=!1;f>d&&(f=(r=[d,f])[0],d=r[1],e=(i=[n,e])[0],n=i[1],p=!0);var h=e.getBBox(),g=n.getBBox(),v=h.width>f-2?{x:f+c/2+2,textAlign:"left"}:{x:f-c/2-2,textAlign:"right"},y=g.width>l-d-2?{x:d-c/2-2,textAlign:"right"}:{x:d+c/2+2,textAlign:"left"};return p?[y,v]:[v,y]},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}(o.default);e.Slider=c;var f=c;e.default=f},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Trend=void 0;var i=n(1),a=r(n(41)),o=n(890),s=n(891),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:o.BACKGROUND_STYLE,lineStyle:o.LINE_STYLE,areaStyle:o.AREA_STYLE})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,a=e.data,o=e.smooth,l=e.isArea,u=e.backgroundStyle,c=e.lineStyle,f=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},u)});var d=(0,s.dataToPath)(a,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,i.__assign)({path:d},c)}),l){var p=(0,s.linePathToAreaPath)(d,n,r,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,i.__assign)({path:p},f)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(a.default);e.Trend=l;var u=l;e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LINE_STYLE=e.BACKGROUND_STYLE=e.AREA_STYLE=void 0,e.BACKGROUND_STYLE={opacity:0},e.LINE_STYLE={stroke:"#C5C5C5",strokeOpacity:.85},e.AREA_STYLE={fill:"#CACED4",opacity:.85}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dataToPath=function(t,e,n,r){void 0===r&&(r=!0);var i=new a.Linear({values:t}),u=new a.Category({values:(0,o.map)(t,(function(t,e){return e}))}),c=(0,o.map)(t,(function(t,r){return[u.scale(r)*e,n-i.scale(t)*n]}));return r?l(c):s(c)},e.getAreaLineY=u,e.getLinePath=s,e.getSmoothLinePath=l,e.linePathToAreaPath=function(t,e,n,i){var a=(0,r.__spreadArrays)(t),o=u(i,n);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a};var r=n(1),i=n(88),a=n(66),o=n(0);function s(t){return function(t){return(0,o.map)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function l(t){if(t.length<=2)return s(t);var e=[];(0,o.each)(t,(function(t){(0,o.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=(0,i.catmullRom2Bezier)(e,!1),r=(0,o.head)(t),a=r[0],l=r[1];return n.unshift(["M",a,l]),n}function u(t,e){var n=new a.Linear({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Handler=e.DEFAULT_HANDLER_STYLE=void 0;var i=n(1),a=r(n(41)),o={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"};e.DEFAULT_HANDLER_STYLE=o;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:o})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,a=i.fill,o=i.stroke,s=i.radius,l=i.opacity,u=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:a,stroke:o,radius:s,opacity:l,cursor:u}});var c=1/3*n,f=2/3*n,d=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:d,x2:c,y2:p,stroke:o,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:f,y1:d,x2:f,y2:p,stroke:o,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}(a.default);e.Handler=s;var l=s;e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TEXT_STYLE=e.SLIDER_CHANGE=e.HANDLER_STYLE=e.FOREGROUND_STYLE=e.DEFAULT_HANDLER_WIDTH=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={fill:"#416180",opacity:.05},e.FOREGROUND_STYLE={fill:"#5B8FF9",opacity:.15,cursor:"move"},e.DEFAULT_HANDLER_WIDTH=10;var r={width:10,height:24};e.HANDLER_STYLE=r,e.TEXT_STYLE={textBaseline:"middle",fill:"#000",opacity:.45},e.SLIDER_CHANGE="sliderchange"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(895);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.DEFAULT_THEME=void 0;var i=n(1),a=n(96),o=n(0),s=r(n(41)),l={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}};e.DEFAULT_THEME=l;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?(0,o.get)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?(0,o.get)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[(0,a.addEventListener)(t,"touchmove",e.onMouseMove),(0,a.addEventListener)(t,"touchend",e.onMouseUp),(0,a.addEventListener)(t,"touchcancel",e.onMouseUp)]:[(0,a.addEventListener)(t,"mousemove",e.onMouseMove),(0,a.addEventListener)(t,"mouseup",e.onMouseUp),(0,a.addEventListener)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?(0,o.get)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?(0,o.get)(t,"touches.0.clientY"):t.clientY,l=r?a:s,u=l-e.startPos;e.startPos=l,e.updateThumbOffset(i+u)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),l=t.clientX,u=t.clientY,c=r?l-s.left-i-o/2:u-s.top-a-o/2,f=e.validateRange(c);e.updateThumbOffset(f)},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,i.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=(0,o.clamp)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,o.clamp)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return(0,o.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:l})},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,r=e.theme,i=void 0===r?{default:{}}:r,a=(0,o.deepMix)({},l,i).default,s=a.lineCap,u=a.trackColor,c=a.size,f=(0,o.get)(this.cfg,"size",c),d=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:n-f/2,y2:f/2,lineWidth:f,stroke:u,lineCap:s}:{x1:f/2,y1:0+f/2,x2:f/2,y2:n-f/2,lineWidth:f,stroke:u,lineCap:s};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:d})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,a=(0,o.deepMix)({},l,i).default,s=a.size,u=a.lineCap,c=a.thumbColor,f=(0,o.get)(this.cfg,"size",s),d=this.get("isHorizontal")?{x1:n+f/2,y1:f/2,x2:n+r-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"}:{x1:f/2,y1:n+f/2,x2:f/2,y2:n+r-f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:d})},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),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.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,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n=u-c&&f<=u+c},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n,r){return t/(n*n)+e/(r*r)}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){var o=this.attr(),s=a/2,l=o.x,u=o.y,c=o.rx,f=o.ry,d=(t-l)*(t-l),p=(e-u)*(e-u);return r&&n?i(d,p,c+s,f+s)<=1:r?i(d,p,c,f)<=1:!!n&&i(d,p,c-s,f-s)>=1&&i(d,p,c+s,f+s)<=1},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,l=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(n(71).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(71),a=n(51);function o(t){return t instanceof HTMLElement&&a.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},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(a.isString(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):o(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"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,r=e.y,i=e.width,s=e.height,l=e.sx,u=e.sy,c=e.swidth,f=e.sheight,d=e.img;(d instanceof Image||o(d))&&(a.isNil(l)||a.isNil(u)||a.isNil(c)||a.isNil(f)?t.drawImage(d,n,r,i,s):t.drawImage(d,l,u,c,f,n,r,i,s))},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(38),a=n(71),o=n(183),s=n(182),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},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,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&s.addStartArrow(this,t,r,i,e,n),o&&s.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr(),s=a.x1,l=a.y1,u=a.x2,c=a.y2;return o.default(s,l,u,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.startArrow,l=e.endArrow,u={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(u=s.getShortenOffset(n,r,i,a,e.startArrow.d)),l&&l.d&&(c=s.getShortenOffset(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-c.dx,a-c.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,r=t.x2,a=t.y2;return i.Line.length(e,n,r,a)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,a=e.x2,o=e.y2;return i.Line.pointAt(n,r,a,o,t)},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(88),o=n(71),s=n(51),l=n(144),u={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 r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return i.isNil(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,l=r.symbol||"circle",u=this._getR(r);if(s.isFunction(l))n=(t=l)(i,o,u),n=a.path2Absolute(n);else{if(!(t=e.Symbols[l]))return console.warn(l+" marker is not supported."),null;n=t(i,o,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");l.drawPath(this,t,{path:e},n)},e.Symbols=u,e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(38),a=n(0),o=n(71),s=n(88),l=n(144),u=n(439),c=n(440),f=n(906),d=n(182);function p(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var s=o[n];if(a.isNil(s)||a.isNil(n))return null;var l=s.length,u=o[n+1];return i.Cubic.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",f.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,o=0,s=0,l=[],u=this.get("curve");u&&(a.each(u,(function(t,e){n=u[e+1],r=t.length,n&&(o+=i.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",o),0!==o?(a.each(u,(function(a,c){n=u[c+1],r=a.length,n&&((t=[])[0]=s/o,e=i.Cubic.length(a[r-2],a[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),s+=e||0,t[1]=s/o,l.push(t))})),this.set("tCache",l)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[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 r=e[n-2].currentPoint,i=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(o.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(38),o=n(38),s=n(32),l=n(171),u=n(51),c=n(183),f=n(441),d=s.ext.transform;e.default=r.__assign({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var s=!1,p=e/2,h=0;hw?P:w,j=d(null,[["t",-_,-O],["r",-A],["s",1/(P>w?1:P/w),1/(P>w?w/P:1)]]);l.transformMat3(E,E,j),s=f.default(0,0,C,M,S,e,E[0],E[1])}if(s)break}}return s}},i.PathUtil)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(71),a=n(442),o=n(440),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var s=this.attr().points,l=!1;return n&&(l=a.default(s,i,t,e,!0)),!l&&r&&(l=o.default(s,t,e)),l},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),i.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[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,r,a=0,s=[];o.each(t,(function(o,l){t[l+1]&&((n=[])[0]=a/e,r=i.Line.length(o[0],o[1],t[l+1][0],t[l+1][1]),a+=r,n[1]=a/e,s.push(n))})),this.set("tCache",s)}}},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}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(71),a=n(437),o=n(51),s=n(910),l=n(911),u=n(439),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),c=a.x,f=a.y,d=a.width,p=a.height,h=a.radius;if(h){var g=!1;return n&&(g=l.default(c,f,d,p,h,i,t,e)),!g&&r&&(g=u.default(this,t,e)),g}var v=i/2;return r&&n?o.inBox(c-v,f-v,d+v,p+v,t,e):r?o.inBox(c,f,d,p,t,e):n?s.default(c,f,d,p,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,o);else{var l=a.parseRadius(s),u=l[0],c=l[1],f=l[2],d=l[3];t.moveTo(n+u,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+o-f),0!==f&&t.arc(n+i-f,r+o-f,f,0,Math.PI/2),t.lineTo(n+d,r+o),0!==d&&t.arc(n+d,r+o-d,d,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(i.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51);e.default=function(t,e,n,i,a,o,s){var l=a/2;return r.inBox(t-l,e-l,n,a,o,s)||r.inBox(t+n-l,e-l,a,i,o,s)||r.inBox(t+l,e+i-l,n,a,o,s)||r.inBox(t-l,e+l,a,i,o,s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(183),i=n(441);e.default=function(t,e,n,a,o,s,l,u){return r.default(t+o,e,t+n-o,e,s,l,u)||r.default(t+n,e+o,t+n,e+a-o,s,l,u)||r.default(t+n-o,e+a,t+o,e+a,s,l,u)||r.default(t,e+a-o,t,e+o,s,l,u)||i.default(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,s,l,u)||i.default(t+n-o,e+a-o,o,0,.5*Math.PI,s,l,u)||i.default(t+o,e+a-o,o,.5*Math.PI,Math.PI,s,l,u)||i.default(t+o,e+o,o,Math.PI,1.5*Math.PI,s,l,u)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(71),a=n(51),o=n(26),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},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=o.assembleFont(t)},e.prototype._setText=function(t){var e=null;a.isString(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),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 r,i=this.attrs,s=i.textBaseline,l=i.x,u=i.y,c=1*i.fontSize,f=this._getSpaceingY(),d=o.getTextHeight(i.text,i.fontSize,i.lineHeight);a.each(e,(function(e,i){r=u+i*(f+c)-d+c,"middle"===s&&(r+=d-c-(d-c)/2),"top"===s&&(r+=d-c),a.isNil(e)||(n?t.fillText(e,l,r):t.strokeText(e,l,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var s=n.text;a.isNil(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(a.isNil(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(a.isNil(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(914),o=n(143),s=n(260),l=n(51),u=n(144),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(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 o},e.prototype.getGroupBase=function(){return s.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||l.getPixelRatio();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 r=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*n,a>1&&r.scale(a,a)},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){return this.get("quickHit")?a.getShape(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();return e.length&&e[0]===this?t=n:(t=u.getMergedRegion(e))&&(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,this.get("clipView")&&(t=u.mergeView(t,n))),t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(l.clearAnimationFrame(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),u.applyAttrsToContext(t,this),u.drawChildren(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),u.applyAttrsToContext(t,this),u.checkRefresh(this,n,r),u.drawChildren(t,n,r),t.restore()):e.length&&u.clearChanged(e),l.each(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=l.requestAnimationFrame((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}(i.AbstractCanvas);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var r=n(26);function i(t,e,n){var i=t.getTotalMatrix();if(i){var a=function(t,e){if(e){var n=r.invert(e);return r.multiplyVec2(n,t)}return t}([e,n,1],i);return[a[0],a[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!r.isAllowCapture(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var a=i(t,e,n),o=a[0],s=a[1];if(t.isClipped(o,s))return!1}var l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}e.getShape=function t(e,n,r){if(!a(e,n,r))return null;for(var o=null,s=e.getChildren(),l=s.length-1;l>=0;l--){var u=s[l];if(u.isGroup())o=t(u,n,r);else if(a(u,n,r)){var c=u,f=i(u,n,r),d=f[0],p=f[1];c.isInShape(d,p)&&(o=u)}if(o)break}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=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 r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t)}))},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=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 r.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(i.each(e||n,(function(t,e){a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t)})),"function"===typeof n.html){var o=n.html.call(this,n);if(o instanceof Element||o instanceof HTMLDocument){for(var s=r.childNodes,l=s.length-1;l>=0;l--)r.removeChild(s[l]);r.appendChild(o)}else r.innerHTML=o}else r.innerHTML=n.html},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=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 r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t)}))},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=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 r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),o=this.get("el");i.each(e||r,(function(t,e){"img"===e?n._setImage(r.img):a.SVG_ATTR_MAP[e]&&o.setAttribute(a.SVG_ATTR_MAP[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(i.isString(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&&i.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.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",r.toDataURL())}},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(38),a=n(0),o=n(52),s=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 r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");a.each(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var s=a.isObject(e)?t.addArrow(n,o.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,o.SVG_ATTR_MAP[i]);r.setAttribute(o.SVG_ATTR_MAP[i],"url(#"+s+")")}else r.removeAttribute(o.SVG_ATTR_MAP[i]);else o.SVG_ATTR_MAP[i]&&r.setAttribute(o.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,a=t.y2;return i.Line.length(e,n,r,a)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,a=e.x2,o=e.y2;return i.Line.pointAt(n,r,a,o,t)},e}(n(62).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(62),o=n(921),s=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 r.__extends(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return i.isArray(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,a=e.r||e.radius,s=e.symbol||"circle";return(t=i.isFunction(s)?s:o.default.get(s))?t(n,r,a):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=o.default,e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={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 r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=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 r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),o=this.get("el");i.each(e||r,(function(e,s){if("path"===s&&i.isArray(e))o.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var l=i.isObject(e)?t.addArrow(r,a.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,a.SVG_ATTR_MAP[s]);o.setAttribute(a.SVG_ATTR_MAP[s],"url(#"+l+")")}else o.removeAttribute(a.SVG_ATTR_MAP[s]);else a.SVG_ATTR_MAP[s]&&o.setAttribute(a.SVG_ATTR_MAP[s],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 r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=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 r.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,(function(t,e){"points"===e&&i.isArray(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t)}))},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(38),a=n(38),o=n(0),s=n(52),l=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 r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-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(),r=this.get("el");o.each(e||n,(function(t,e){"points"===e&&o.isArray(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):s.SVG_ATTR_MAP[e]&&r.setAttribute(s.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return o.isNil(e)?(this.set("totalLength",i.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),o.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[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,r,i=0,s=[];o.each(t,(function(o,l){t[l+1]&&((n=[])[0]=i/e,r=a.Line.length(o[0],o[1],t[l+1][0],t[l+1][1]),i+=r,n[1]=i/e,s.push(n))})),this.set("tCache",s)}}},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}(n(62).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(62),o=n(52),s=n(926),l=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 r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),a=this.get("el"),s=!1,l=["x","y","width","height","radius"];i.each(e||r,(function(t,e){-1===l.indexOf(e)||s?-1===l.indexOf(e)&&o.SVG_ATTR_MAP[e]&&a.setAttribute(o.SVG_ATTR_MAP[e],t):(a.setAttribute("d",n._assembleRect(r)),s=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,a=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+a+" l"+-r+" 0 z";var l=s.parseRadius(o);return i.isArray(o)?1===o.length?l.r1=l.r2=l.r3=l.r4=o[0]:2===o.length?(l.r1=l.r3=o[0],l.r2=l.r4=o[1]):3===o.length?(l.r1=o[0],l.r2=l.r4=o[1],l.r3=o[2]):(l.r1=o[0],l.r2=o[1],l.r3=o[2],l.r4=o[3]):l.r1=l.r2=l.r3=l.r4=o,[["M "+(e+l.r1)+","+n],["l "+(r-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(a-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-r)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-a)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]].join(" ")},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},e.parsePath=function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(242),o=n(145),s=n(52),l=n(62),u={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},c={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},f={left:"left",start:"left",center:"middle",right:"end",end:"end"},d=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 r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},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,r=this.attr(),a=this.get("el");this._setFont(),i.each(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?o.setTransform(n):s.SVG_ATTR_MAP[e]&&a.setAttribute(s.SVG_ATTR_MAP[e],t)})),a.setAttribute("paint-order","stroke"),a.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=a.detect();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",c[n]||"alphabetic"):t.setAttribute("alignment-baseline",u[n]||"baseline"),t.setAttribute("text-anchor",f[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,a=n.textBaseline,o=void 0===a?"bottom":a;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),l=s.length-1,u="";i.each(s,(function(t,e){0===e?"alphabetic"===o?u+=''+t+"":"top"===o?u+=''+t+"":"middle"===o?u+=''+t+"":"bottom"===o?u+=''+t+"":"hanging"===o&&(u+=''+t+""):u+=''+t+""})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(l.default);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(52),o=n(261),s=n(145),l=n(72),u=n(184),c=n(262),f=n(929),d=function(t){function e(e){return t.call(this,r.__assign(r.__assign({},e),{autoDraw:!0,renderer:"svg"}))||this}return r.__extends(e,t),e.prototype.getShapeBase=function(){return u},e.prototype.getGroupBase=function(){return c.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!a.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!a.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=l.createSVGElement("svg"),e=new f.default(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 r=this.get("children");r&&r.length&&l.sortDom(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?s.setTransform(this):"clip"===t?s.setClip(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();s.setClip(this,t),e.length&&o.drawChildren(t,e)},e}(i.AbstractCanvas);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(930),a=n(931),o=n(932),s=n(933),l=n(934),u=n(72),c=function(){function t(t){var e=u.createSVGElement("defs"),n=r.uniqueId("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,r=null,i=0;i'})),n}var u=function(){function t(t){this.cfg={};var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,o=a.exec(t),s=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),u=o[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(72),a=function(){function t(t,e){this.cfg={};var n=i.createSVGElement("marker"),a=r.uniqueId("marker_");n.setAttribute("id",a);var o=i.createSVGElement("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=a;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,o):(this.cfg=s,this._setMarker(t.lineWidth,o)),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,a=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(72),a=function(){function t(t){this.type="clip",this.cfg={};var e=i.createSVGElement("clipPath");this.el=e,this.id=r.uniqueId("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}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(72),a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){this.cfg={};var e=i.createSVGElement("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=i.createSVGElement("image");e.appendChild(n);var o=r.uniqueId("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];n.setAttribute("href",s);var l=new Image;function u(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?u():(l.onload=u,l.src=l.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(21),o=n(443),s=n(160),l=function(t){function e(e){var n=this,l=e.container,u=e.width,c=e.height,f=e.autoFit,d=void 0!==f&&f,p=e.padding,h=e.appendPadding,g=e.renderer,v=void 0===g?"canvas":g,y=e.pixelRatio,m=e.localRefresh,b=void 0===m||m,x=e.visible,_=void 0===x||x,O=e.supportCSSTransform,P=void 0!==O&&O,w=e.defaultInteractions,M=void 0===w?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:w,S=e.options,A=e.limitInPlot,E=e.theme,C=e.syncViewPadding,j=(0,i.isString)(l)?document.getElementById(l):l,I=(0,s.createDom)('
    ');j.appendChild(I);var T=(0,s.getChartSize)(j,d,u,c),F=new((0,o.getEngine)(v).Canvas)((0,r.__assign)({container:I,pixelRatio:y,localRefresh:b,supportCSSTransform:P},T));return(n=t.call(this,{parent:null,canvas:F,backgroundGroup:F.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:F.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:F.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:h,visible:_,options:S,limitInPlot:A,theme:E,syncViewPadding:C})||this).onResize=(0,i.debounce)((function(){n.forceFit()}),300),n.ele=j,n.canvas=F,n.width=T.width,n.height=T.height,n.autoFit=d,n.localRefresh=b,n.renderer=v,n.wrapperElement=I,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(M),n}return(0,r.__extends)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;(0,i.each)(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(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(a.VIEW_LIFE_CIRCLE.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(),(0,s.removeDom)(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=(0,s.getChartSize)(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){(0,s.modifyCSS)(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}((0,r.__importDefault)(n(444)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseAction=void 0;var r=n(1),i=n(0),a=n(203),o=(0,r.__importDefault)(n(938)),s=(0,r.__importDefault)(n(445));function l(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||(0,a.createAction)(i,e);if(!o)throw new Error("There is no action named "+i);return{action:o,methodName:r[1],arg:n}}function u(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action("+e.name+") doesn't have a method called "+n);e[n](r)}e.parseAction=l;var c="start",f="showEnable",d="end",p="rollback",h="processing",g=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return(0,r.__extends)(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,i.each)(this.steps,(function(e,n){(0,i.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;(0,i.each)(this.steps,(function(e,n){(0,i.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new o.default(t);this.context=e;var n=this.steps;(0,i.each)(n,(function(t){(0,i.each)(t,(function(t){if((0,i.isFunction)(t.action))t.actionObject={action:(0,a.createCallbackAction)(t.action,e),methodName:"execute"};else if((0,i.isString)(t.action))t.actionObject=l(t.action,e,t.arg);else if((0,i.isArray)(t.action)){var n=t.action,r=(0,i.isArray)(t.arg)?t.arg:[t.arg];t.actionObject=[],(0,i.each)(n,(function(n,i){t.actionObject.push(l(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===f)return!0;if(t===h)return e===c;if(t===c)return e!==h;if(t===d)return e===h||e===c;if(t===p){if(n[d])return e===d;if(e===c)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!==f&&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,r=this.context,a=this.callbackCaches,o=e.actionObject;if(e.action&&o){var s=this.getKey(t,e);if(!a[s]){var l=function(a){r.event=a,n.isAllowExecute(t,e)?((0,i.isArray)(o)?(0,i.each)(o,(function(t){r.event=a,u(t)})):(r.event=a,u(o)),n.afterExecute(t,e),e.callback&&(r.event=a,e.callback(r))):r.event=null};e.debounce?a[s]=(0,i.debounce)(l,e.debounce.wait,e.debounce.immediate):e.throttle?a[s]=(0,i.throttle)(l,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):a[s]=l}return a[s]}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}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(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}((0,r.__importDefault)(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(31),a=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=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return(0,r.get)(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=(0,i.getComponents)(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&(0,i.isInBox)(r,n):(0,i.isInBox)(r,n)}))},t.prototype.destroy=function(){(0,r.each)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(1),i=n(0),a=n(106),o=n(161);e.createTheme=function(t){var e=t.styleSheet,n=void 0===e?{}:e,s=(0,r.__rest)(t,["styleSheet"]),l=(0,o.createLightStyleSheet)(n);return(0,i.deepMix)({},(0,a.createThemeByStyleSheet)(l),s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(69),o=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,i.some)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,o=n.cfg,s="theta"===i,l=(0,r.__assign)({start:t,end:e},o),u=(0,a.getCoordinate)(s?"polar":i);return this.coordinate=new u(l),this.coordinate.type=i,s&&(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,r.__assign)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;(0,i.each)(n,(function(n){var r,a=n[0],o=n.slice(1);((0,i.isNil)(t)||t.includes(a))&&(r=e.coordinate)[a].apply(r,o)}))},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScalePool=void 0;var r=n(0),i=n(111),a=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,a){var o=n,s=this.getScaleMeta(a);if(0===e.length&&s){var l=s.scale,u={type:l.type};l.isCategory&&(u.values=l.values),o=(0,r.deepMix)(u,s.scaleDef,n)}var c=(0,i.createScaleByField)(t,e,o);return this.cacheScale(c,n,a),c},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(a,o){var s=Number.MAX_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER,u=[];(0,r.each)(a,(function(t){var e=n.getScale(t);l=(0,r.isNumber)(e.max)?Math.max(l,e.max):l,s=(0,r.isNumber)(e.min)?Math.min(s,e.min):s,(0,r.each)(e.values,(function(t){u.includes(t)||u.push(t)}))})),(0,r.each)(a,(function(a){var o=n.getScale(a);if(o.isContinuous)o.change({min:s,max:l,values:u});else if(o.isCategory){var c=o.range,f=n.getScaleMeta(a);u&&!(0,r.get)(f,["scaleDef","range"])&&(c=(0,i.getDefaultCategoryScaleRange)((0,r.deepMix)({},o,{values:u}),t,e)),o.change({values:u,range:c})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?((0,i.syncScale)(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var a=this.getSyncKey(r);if(r.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=(0,r.last)(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,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,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,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,a=(0,r.get)(n,["sync"]);return!0===a?i:!1===a?void 0:a},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}();e.ScalePool=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePadding=void 0;var r=n(1),i=n(0),a=n(21),o=n(80),s=n(267),l=n(448);e.calculatePadding=function(t){var e=t.padding;if(!(0,s.isAutoPadding)(e))return new(l.PaddingCal.bind.apply(l.PaddingCal,(0,r.__spreadArray)([void 0],(0,s.parsePadding)(e),!1)));var n=t.viewBBox,u=new l.PaddingCal,c=[],f=[],d=[];return(0,i.each)(t.getComponents(),(function(t){var e=t.type;e===a.COMPONENT_TYPE.AXIS?c.push(t):[a.COMPONENT_TYPE.LEGEND,a.COMPONENT_TYPE.SLIDER,a.COMPONENT_TYPE.SCROLLBAR].includes(e)?f.push(t):e!==a.COMPONENT_TYPE.GRID&&e!==a.COMPONENT_TYPE.TOOLTIP&&d.push(t)})),(0,i.each)(c,(function(t){var e=t.component.getLayoutBBox(),r=new o.BBox(e.x,e.y,e.width,e.height).exceed(n);u.max(r)})),(0,i.each)(f,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=e.get("padding"),a=new o.BBox(r.x,r.y,r.width,r.height).expand(i);u.inc(a,n)})),(0,i.each)(d,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new o.BBox(r.x,r.y,r.width,r.height);u.inc(i,n)})),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSyncViewPadding=void 0,e.defaultSyncViewPadding=function(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.group=void 0;var r=n(0);e.group=function(t,e,n){if(void 0===n&&(n={}),!e)return[t];var i=(0,r.groupToMap)(t,e),a=[];if(1===e.length&&n[e[0]])for(var o=0,s=n[e[0]];o=e.getCount()&&(t.destroyed||e.add(t))}))}},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(222),i=n(167),a=n(162),o=n(320),s=n(223),l=n(321),u=n(322),c=n(224),f=n(25);Object(f.registerAnimation)("fade-in",r.fadeIn),Object(f.registerAnimation)("fade-out",r.fadeOut),Object(f.registerAnimation)("grow-in-x",i.growInX),Object(f.registerAnimation)("grow-in-xy",i.growInXY),Object(f.registerAnimation)("grow-in-y",i.growInY),Object(f.registerAnimation)("scale-in-x",s.scaleInX),Object(f.registerAnimation)("scale-in-y",s.scaleInY),Object(f.registerAnimation)("wave-in",u.waveIn),Object(f.registerAnimation)("zoom-in",c.zoomIn),Object(f.registerAnimation)("zoom-out",c.zoomOut),Object(f.registerAnimation)("position-update",o.positionUpdate),Object(f.registerAnimation)("sector-path-update",l.sectorPathUpdate),Object(f.registerAnimation)("path-in",a.pathIn)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doScaleAnimate=e.transformShape=void 0;var r=n(32);function i(t,e,n){var i,a=e[0],o=e[1];return t.applyToMatrix([a,o,1]),"x"===n?(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):"y"===n?(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):"xy"===n&&(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}e.transformShape=i,e.doScaleAnimate=function(t,e,n,r,a){var o,s,l=n.start,u=n.end,c=n.getWidth(),f=n.getHeight();"y"===a?(o=l.x+c/2,s=r.yl.x?r.x:l.x,s=l.y+f/2):"xy"===a&&(n.isPolar?(o=n.getCenter().x,s=n.getCenter().y):(o=(l.x+u.x)/2,s=(l.y+u.y)/2));var d=i(t,[o,s],a);t.animate({matrix:d},e)}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(73)),o=n(53),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,l=a.y,u=a.r,c=i/2,f=(0,o.distance)(s,l,t,e);return r&&n?f<=u+c:r?f<=u:!!n&&f>=u-c&&f<=u+c},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(a.default),l=s;e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1);function a(t,e,n,r){return t/(n*n)+e/(r*r)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=i/2,l=o.x,u=o.y,c=o.rx,f=o.ry,d=(t-l)*(t-l),p=(e-u)*(e-u);return r&&n?a(d,p,c+s,f+s)<=1:r?a(d,p,c,f)<=1:!!n&&a(d,p,c-s,f-s)>=1&&a(d,p,c+s,f+s)<=1},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,l=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(r(n(73)).default),s=o;e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(73)),o=n(53);function s(t){return t instanceof HTMLElement&&(0,o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},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,o.isString)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):s(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"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,r=e.y,i=e.width,a=e.height,l=e.sx,u=e.sy,c=e.swidth,f=e.sheight,d=e.img;(d instanceof Image||s(d))&&((0,o.isNil)(l)||(0,o.isNil)(u)||(0,o.isNil)(c)||(0,o.isNil)(f)?t.drawImage(d,n,r,i,a):t.drawImage(d,l,u,c,f,n,r,i,a))},e}(a.default),u=l;e.default=u},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(38),s=r(n(73)),l=r(n(189)),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(188));function c(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,a.__assign)((0,a.__assign)({},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,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&u.addStartArrow(this,t,r,i,e,n),o&&u.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr(),o=a.x1,s=a.y1,u=a.x2,c=a.y2;return(0,l.default)(o,s,u,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(l=u.getShortenOffset(n,r,i,a,e.startArrow.d)),s&&s.d&&(c=u.getShortenOffset(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-c.dx,a-c.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,r=t.x2,i=t.y2;return o.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2;return o.Line.pointAt(n,r,i,a,t)},e}(s.default),d=f;e.default=d},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(88),s=r(n(73)),l=n(53),u=n(148),c={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 r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return(0,a.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,s=r.symbol||"circle",u=this._getR(r);if((0,l.isFunction)(s))n=(t=s)(i,a,u),n=(0,o.path2Absolute)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,a,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");(0,u.drawPath)(this,t,{path:e},n)},e.Symbols=c,e}(s.default),d=f;e.default=d},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(38),s=n(0),l=r(n(73)),u=n(88),c=n(148),f=r(n(455)),d=r(n(456)),p=r(n(958)),h=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=g(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(188));function g(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(g=function(t){return t?n:e})(t)}function v(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var a=i[n];if((0,s.isNil)(a)||(0,s.isNil)(n))return null;var l=a.length,u=i[n+1];return o.Cubic.pointAt(a[l-2],a[l-1],u[1],u[2],u[3],u[4],u[5],u[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",p.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,a=0,l=[],u=this.get("curve");u&&((0,s.each)(u,(function(t,e){n=u[e+1],r=t.length,n&&(i+=o.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?((0,s.each)(u,(function(s,c){n=u[c+1],r=s.length,n&&((t=[])[0]=a/i,e=o.Cubic.length(s[r-2],s[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),a+=e||0,t[1]=a/i,l.push(t))})),this.set("tCache",l)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[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 r=e[n-2].currentPoint,i=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(l.default),m=y;e.default=m},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(26),s=n(38),l=n(32),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(171)),c=n(53),f=r(n(189)),d=r(n(457));function p(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}var h=l.ext.transform,g=(0,a.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,o=e/2,l=0;lP?O:P,C=h(null,[["t",-x,-_],["r",-S],["s",1/(O>P?1:O/P),1/(O>P?P/O:1)]]);u.transformMat3(A,A,C),a=(0,d.default)(0,0,E,w,M,e,A[0],A[1])}if(a)break}}return a}},o.PathUtil);e.default=g},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(73)),o=r(n(458)),s=r(n(456)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr().points,l=!1;return n&&(l=(0,o.default)(a,i,t,e,!0)),!l&&r&&(l=(0,s.default)(a,t,e)),l},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),o.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[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,r,i=0,a=[];(0,s.each)(t,(function(s,l){t[l+1]&&((n=[])[0]=i/e,r=o.Line.length(s[0],s[1],t[l+1][0],t[l+1][1]),i+=r,n[1]=i/e,a.push(n))})),this.set("tCache",a)}}},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}(l.default),p=d;e.default=p},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(73)),o=n(453),s=n(53),l=r(n(962)),u=r(n(963)),c=r(n(455)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),o=a.x,f=a.y,d=a.width,p=a.height,h=a.radius;if(h){var g=!1;return n&&(g=(0,u.default)(o,f,d,p,h,i,t,e)),!g&&r&&(g=(0,c.default)(this,t,e)),g}var v=i/2;return r&&n?(0,s.inBox)(o-v,f-v,d+v,p+v,t,e):r?(0,s.inBox)(o,f,d,p,t,e):n?(0,l.default)(o,f,d,p,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,a);else{var l=(0,o.parseRadius)(s),u=l[0],c=l[1],f=l[2],d=l[3];t.moveTo(n+u,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+a-f),0!==f&&t.arc(n+i-f,r+a-f,f,0,Math.PI/2),t.lineTo(n+d,r+a),0!==d&&t.arc(n+d,r+a-d,d,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(a.default),d=f;e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i,a,o,s){var l=a/2;return(0,r.inBox)(t-l,e-l,n,a,o,s)||(0,r.inBox)(t+n-l,e-l,a,i,o,s)||(0,r.inBox)(t+l,e+i-l,n,a,o,s)||(0,r.inBox)(t-l,e+l,a,i,o,s)};var r=n(53)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,o,s,l,u){return(0,i.default)(t+o,e,t+n-o,e,s,l,u)||(0,i.default)(t+n,e+o,t+n,e+r-o,s,l,u)||(0,i.default)(t+n-o,e+r,t+o,e+r,s,l,u)||(0,i.default)(t,e+r-o,t,e+o,s,l,u)||(0,a.default)(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,s,l,u)||(0,a.default)(t+n-o,e+r-o,o,0,.5*Math.PI,s,l,u)||(0,a.default)(t+o,e+r-o,o,.5*Math.PI,Math.PI,s,l,u)||(0,a.default)(t+o,e+o,o,Math.PI,1.5*Math.PI,s,l,u)};var i=r(n(189)),a=r(n(457))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(73)),o=n(53),s=n(26),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},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,s.assembleFont)(t)},e.prototype._setText=function(t){var e=null;(0,o.isString)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),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 r,i=this.attrs,a=i.textBaseline,l=i.x,u=i.y,c=1*i.fontSize,f=this._getSpaceingY(),d=(0,s.getTextHeight)(i.text,i.fontSize,i.lineHeight);(0,o.each)(e,(function(e,i){r=u+i*(f+c)-d+c,"middle"===a&&(r+=d-c-(d-c)/2),"top"===a&&(r+=d-c),(0,o.isNil)(e)||(n?t.fillText(e,l,r):t.strokeText(e,l,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;(0,o.isNil)(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(a.default),u=l;e.default=u},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(26),s=n(966),l=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=d(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(147)),u=r(n(273)),c=n(53),f=n(148);function d(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(d=function(t){return t?n:e})(t)}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(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 l},e.prototype.getGroupBase=function(){return u.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(0,c.getPixelRatio)();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 r=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*n,a>1&&r.scale(a,a)},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){return this.get("quickHit")?(0,s.getShape)(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();return e.length&&e[0]===this?t=n:(t=(0,f.getMergedRegion)(e))&&(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,this.get("clipView")&&(t=(0,f.mergeView)(t,n))),t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,c.clearAnimationFrame)(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),(0,f.applyAttrsToContext)(t,this),(0,f.drawChildren)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),(0,f.applyAttrsToContext)(t,this),(0,f.checkRefresh)(this,n,r),(0,f.drawChildren)(t,n,r),t.restore()):e.length&&(0,f.clearChanged)(e),(0,c.each)(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,c.requestAnimationFrame)((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}(o.AbstractCanvas),h=p;e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=function t(e,n,r){if(!a(e,n,r))return null;for(var o=null,s=e.getChildren(),l=s.length-1;l>=0;l--){var u=s[l];if(u.isGroup())o=t(u,n,r);else if(a(u,n,r)){var c=u,f=i(u,n,r),d=f[0],p=f[1];c.isInShape(d,p)&&(o=u)}if(o)break}return o};var r=n(26);function i(t,e,n){var i=t.getTotalMatrix();if(i){var a=function(t,e){if(e){var n=(0,r.invert)(e);return(0,r.multiplyVec2)(n,t)}return t}([e,n,1],i);return[a[0],a[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,r.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var a=i(t,e,n),o=a[0],s=a[1];if(t.isClipped(o,s))return!1}var l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=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,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r(n(63)).default),l=s;e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=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,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,a.each)(e||n,(function(t,e){o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})),"function"===typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var s=r.childNodes,l=s.length-1;l>=0;l--)r.removeChild(s[l]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(r(n(63)).default),l=s;e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=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,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r(n(63)).default),l=s;e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=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,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[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,a.isString)(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,a.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.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",r.toDataURL())}},e}(r(n(63)).default),l=s;e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(38),o=n(0),s=n(54),l=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,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var a=(0,o.isObject)(e)?t.addArrow(n,s.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,s.SVG_ATTR_MAP[i]);r.setAttribute(s.SVG_ATTR_MAP[i],"url(#"+a+")")}else r.removeAttribute(s.SVG_ATTR_MAP[i]);else s.SVG_ATTR_MAP[i]&&r.setAttribute(s.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(r(n(63)).default),u=l;e.default=u},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(63)),s=r(n(973)),l=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,i.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,a.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=(0,a.isFunction)(o)?o:s.default.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=s.default,e}(o.default),u=l;e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={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 r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},i={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}};e.default=i},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=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,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(e,s){if("path"===s&&(0,a.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var l=(0,a.isObject)(e)?t.addArrow(r,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,o.SVG_ATTR_MAP[s]);i.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+l+")")}else i.removeAttribute(o.SVG_ATTR_MAP[s]);else o.SVG_ATTR_MAP[s]&&i.setAttribute(o.SVG_ATTR_MAP[s],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 r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(r(n(63)).default),l=s;e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=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,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"points"===e&&(0,a.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r(n(63)).default),l=s;e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(38),o=n(0),s=n(54),l=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,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-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(),r=this.get("el");(0,o.each)(e||n,(function(t,e){"points"===e&&(0,o.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):s.SVG_ATTR_MAP[e]&&r.setAttribute(s.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,o.isNil)(e)?(this.set("totalLength",a.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,o.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[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,r,i=0,s=[];(0,o.each)(t,(function(o,l){t[l+1]&&((n=[])[0]=i/e,r=a.Line.length(o[0],o[1],t[l+1][0],t[l+1][1]),i+=r,n[1]=i/e,s.push(n))})),this.set("tCache",s)}}},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}(r(n(63)).default),u=l;e.default=u},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(63)),s=n(54),l=n(978),u=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,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,l=["x","y","width","height","radius"];(0,a.each)(e||r,(function(t,e){-1===l.indexOf(e)||o?-1===l.indexOf(e)&&s.SVG_ATTR_MAP[e]&&i.setAttribute(s.SVG_ATTR_MAP[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var s=(0,l.parseRadius)(o);return(0,a.isArray)(o)?1===o.length?s.r1=s.r2=s.r3=s.r4=o[0]:2===o.length?(s.r1=s.r3=o[0],s.r2=s.r4=o[1]):3===o.length?(s.r1=o[0],s.r2=s.r4=o[1],s.r3=o[2]):(s.r1=o[0],s.r2=o[1],s.r3=o[2],s.r4=o[3]):s.r1=s.r2=s.r3=s.r4=o,[["M "+(e+s.r1)+","+n],["l "+(r-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(i-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-r)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-i)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]].join(" ")},e}(o.default),c=u;e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=function(t){return t=t||[],(0,r.isArray)(t)?t:(0,r.isString)(t)?(t=t.match(i),(0,r.each)(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}(0,r.each)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}};var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(242),s=n(149),l=n(54),u=r(n(63)),c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},f={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},d={left:"left",start:"left",center:"middle",right:"end",end:"end"},p=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,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},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,r=this.attr(),i=this.get("el");this._setFont(),(0,a.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?(0,s.setTransform)(n):l.SVG_ATTR_MAP[e]&&i.setAttribute(l.SVG_ATTR_MAP[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=(0,o.detect)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",f[n]||"alphabetic"):t.setAttribute("alignment-baseline",c[n]||"baseline"),t.setAttribute("text-anchor",d[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),l=s.length-1,u="";(0,a.each)(s,(function(t,e){0===e?"alphabetic"===o?u+=''+t+"":"top"===o?u+=''+t+"":"middle"===o?u+=''+t+"":"bottom"===o?u+=''+t+"":"hanging"===o&&(u+=''+t+""):u+=''+t+""})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(u.default),h=p;e.default=h},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(26),s=n(54),l=n(274),u=n(149),c=n(74),f=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(190)),d=r(n(275)),p=r(n(981));function h(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}var g=function(t){function e(e){return t.call(this,(0,a.__assign)((0,a.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return(0,a.__extends)(e,t),e.prototype.getShapeBase=function(){return f},e.prototype.getGroupBase=function(){return d.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!s.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!s.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=(0,c.createSVGElement)("svg"),e=new p.default(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 r=this.get("children");r&&r.length&&(0,c.sortDom)(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?(0,u.setTransform)(this):"clip"===t?(0,u.setClip)(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();(0,u.setClip)(this,t),e.length&&(0,l.drawChildren)(t,e)},e}(o.AbstractCanvas);e.default=g},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(0),a=r(n(982)),o=r(n(983)),s=r(n(984)),l=r(n(985)),u=r(n(986)),c=n(74),f=function(){function t(t){var e=(0,c.createSVGElement)("defs"),n=(0,i.uniqueId)("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,r=null,i=0;i'})),n}var u=function(){function t(t){this.cfg={};var e=null,n=(0,r.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,o=a.exec(t),s=(0,r.mod)((0,r.toRadian)(parseFloat(o[1])),2*Math.PI),u=o[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),i=n(74),a=function(){function t(t,e){this.cfg={};var n=(0,i.createSVGElement)("marker"),a=(0,r.uniqueId)("marker_");n.setAttribute("id",a);var o=(0,i.createSVGElement)("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=a;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,o):(this.cfg=s,this._setMarker(t.lineWidth,o)),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,a=this.cfg.d;(0,r.isArray)(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),i=n(74),a=function(){function t(t){this.type="clip",this.cfg={};var e=(0,i.createSVGElement)("clipPath");this.el=e,this.id=(0,r.uniqueId)("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}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),i=n(74),a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){this.cfg={};var e=(0,i.createSVGElement)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=(0,i.createSVGElement)("image");e.appendChild(n);var o=(0,r.uniqueId)("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];n.setAttribute("href",s);var l=new Image;function u(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?u():(l.onload=u,l.src=l.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=n(270),o=n(33),s=n(150),l=(0,i.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return(0,s.getRectPoints)(t)}});(0,i.registerShape)("interval","rect",{draw:function(t,e){var n,i=(0,o.getStyle)(t,!1,!0),l=e,u=null===t||void 0===t?void 0:t.background;if(u){l=e.addGroup();var c=(0,o.getBackgroundRectStyle)(t),f=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);l.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},c),{path:f}),zIndex:-1,name:a.BACKGROUND_SHAPE})}n=i.radius&&this.coordinate.isRect?(0,s.getRectWithCornerRadius)(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath((0,s.getIntervalRectPath)(t.points,i.lineCap,this.coordinate));var d=l.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:n}),name:"interval"});return u?l:d},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(146),a=n(27),o=n(277),s=n(280),l=(0,a.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return(0,o.splitPoints)(t)}});(0,r.each)(s.SHAPES,(function(t){(0,a.registerShape)("point","hollow-"+t,{draw:function(e,n){return(0,s.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,stroke:n,fill:null}}}})})),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(21),o=n(48),s=n(279),l=(0,r.__importDefault)(n(91));n(990);var u=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,r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),l=this.getAttribute("size");if(l){n=this.getAttributeValues(l,e)[0];var u=this.coordinate;n/=(0,o.getXDimensionLength)(u)}else this.defaultSize||(this.defaultSize=(0,s.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r._size=(0,i.get)(e[a.FIELD_ORIGIN],[this._sizeField]),r},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}(l.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(27),o=n(115),s=n(33),l=(0,a.registerShapeFactory)("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!(0,i.isArray)(t))return[];var e=(0,i.max)(t);return(0,i.map)(t,(function(t){return t/e}))}(t._size);return(0,i.each)(t.y,(function(i,a){var o=r[a]*e,s=0===a,l=a===t.y.length-1;n.push({isMin:s,isMax:l,x:t.x-o,y:i}),n.unshift({isMin:s,isMax:l,x:t.x+o,y:i})})),n}});(0,a.registerShape)("violin","violin",{draw:function(t,e){var n=(0,s.getStyle)(t,!0,!0),i=this.parsePath((0,o.getViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(27),i=n(101);(0,r.registerShape)("area","line",{draw:function(t,e){var n=(0,i.getShapeAttrs)(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){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:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(27),i=n(101);(0,r.registerShape)("area","smooth",{draw:function(t,e){var n=this.coordinate,r=(0,i.getShapeAttrs)(t,!1,!0,this,(0,i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){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:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(27),i=n(101);(0,r.registerShape)("area","smooth-line",{draw:function(t,e){var n=this.coordinate,r=(0,i.getShapeAttrs)(t,!0,!0,this,(0,i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){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:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(46),a=n(27),o=n(33),s=n(464);(0,a.registerShape)("edge","arc",{draw:function(t,e){var n,a=(0,o.getStyle)(t,!0,!1,"lineWidth"),l=t.points,u=l.length>2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===u?n=function(t,e,n){var r=(0,s.getQPath)(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(l[0],l[1],c):(a.fill=a.stroke,n=function(t,e){var n=(0,s.getQPath)(t[1],e),r=(0,s.getQPath)(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(l,c)),n=this.parsePath(n),e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},a),{path:n})})}if("normal"===u)return l=this.parsePoints(l),n=(0,i.getArcPath)((l[1].x+l[0].x)/2,l[0].y,Math.abs(l[1].x-l[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},a),{path:n})});var f=(0,s.getCPath)(l[1],l[3]),d=(0,s.getCPath)(l[2],l[0]);return n=[["M",l[0].x,l[0].y],["L",l[1].x,l[1].y],f,["L",l[3].x,l[3].y],["L",l[2].x,l[2].y],d,["Z"]],n=this.parsePath(n),a.fill=a.stroke,e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},a),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=n(33),o=n(464);(0,i.registerShape)("edge","smooth",{draw:function(t,e){var n=(0,a.getStyle)(t,!0,!1,"lineWidth"),i=t.points,s=this.parsePath(function(t,e){var n=(0,o.getCPath)(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(i[0],i[1]));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(27),o=n(33),s=1/3;(0,a.registerShape)("edge","vhv",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1,"lineWidth"),a=t.points,l=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-s)+e.y*s}),n.push({x:e.x,y:t.y*(1-s)+e.y*s}),n.push(e);var r=[["M",t.x,t.y]];return(0,i.each)(n,(function(t){r.push(["L",t.x,t.y])})),r}(a[0],a[1]));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:l})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=n(115),o=n(33);(0,i.registerShape)("violin","smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!0),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=n(115),o=n(33);(0,i.registerShape)("violin","hollow",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),(0,i.registerShape)("violin","hollow-smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieOuterLabelLayout=void 0;var r=n(0),i=n(46),a=n(476),o=4;e.pieOuterLabelLayout=function(t,e,n,s){var l=(0,r.filter)(t,(function(t){return!(0,r.isNil)(t)})),u=e[0]&&e[0].get("coordinate");if(u){for(var c=u.getCenter(),f=u.getRadius(),d={},p=0,h=e;pn&&(t.sort((function(t,e){return e.percent-t.percent})),(0,r.each)(t,(function(t,e){e+1>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),(0,a.antiCollision)(t,v,w)})),(0,r.each)(b,(function(t,e){(0,r.each)(t,(function(t){var n=e===m,a=d[t.id].getChildByIndex(0);if(a){var s=f+y,l=t.y-c.y,p=Math.pow(s,2),h=Math.pow(l,2),g=p-h>0?p-h:0,v=Math.sqrt(g),b=Math.abs(Math.cos(t.angle)*s);t.x=n?c.x+Math.max(v,b):c.x-Math.max(v,b)}a&&(a.attr("y",t.y),a.attr("x",t.x)),function(t,e){var n=e.getCenter(),a=e.getRadius();if(t&&t.labelLine){var s=t.angle,l=t.offset,u=(0,i.polarToCartesian)(n.x,n.y,a,s),c=t.x+(0,r.get)(t,"offsetX",0)*(Math.cos(s)>0?1:-1),f=t.y+(0,r.get)(t,"offsetY",0)*(Math.sin(s)>0?1:-1),d={x:c-Math.cos(s)*o,y:f-Math.sin(s)*o},p=t.labelLine.smooth,h=[],g=d.x-n.x,v=d.y-n.y,y=Math.atan(v/g);if(g<0&&(y+=Math.PI),!1===p){(0,r.isObject)(t.labelLine)||(t.labelLine={});var m=0;(s<0&&s>-Math.PI/2||s>1.5*Math.PI)&&d.y>u.y&&(m=1),s>=0&&su.y&&(m=1),s>=Math.PI/2&&sd.y&&(m=1),(s<-Math.PI/2||s>=Math.PI&&s<1.5*Math.PI)&&u.y>d.y&&(m=1);var b=l/2>4?4:Math.max(l/2-1,0),x=(0,i.polarToCartesian)(n.x,n.y,a+b,s),_=(0,i.polarToCartesian)(n.x,n.y,a+l/2,y);h.push("M "+u.x+" "+u.y),h.push("L "+x.x+" "+x.y),h.push("A "+n.x+" "+n.y+" 0 0 "+m+" "+_.x+" "+_.y),h.push("L "+d.x+" "+d.y)}else{x=(0,i.polarToCartesian)(n.x,n.y,a+(l/2>4?4:Math.max(l/2-1,0)),s);var O=u.xMath.pow(Math.E,-16)&&h.push.apply(h,["C",d.x+4*O,d.y,2*x.x-u.x,2*x.y-u.y,u.x,u.y]),h.push("L "+u.x+" "+u.y)}t.labelLine.path=h.join(" ")}}(t,u)}))}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieSpiderLabelLayout=void 0;var r=n(0),i=n(46),a=n(476),o=n(114),s=4,l=4;e.pieSpiderLabelLayout=function(t,e,n,u){var c=e[0]&&e[0].get("coordinate");if(c){for(var f=c.getCenter(),d=c.getRadius(),p={},h=0,g=e;hf.x||t.x===f.x&&t.y>f.y,n=(0,r.isNil)(t.offsetX)?4:t.offsetX,a=(0,i.polarToCartesian)(f.x,f.y,d+s,t.angle),o=m+n;t.x=f.x+(e?1:-1)*(d+o),t.y=a.y}}));var b=c.start,x=c.end,_="right",O=(0,r.groupBy)(t,(function(t){return t.xP&&(P=Math.min(e,Math.abs(b.y-x.y)))}));var w={minX:b.x,maxX:x.x,minY:f.y-P/2,maxY:f.y+P/2};(0,r.each)(O,(function(t,e){var n=P/y;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,r.each)(t,(function(t,e){e>n&&(p[t.id].set("visible",!1),t.invisible=!0)}))),(0,a.antiCollision)(t,y,w)}));var M=w.minY,S=w.maxY;(0,r.each)(O,(function(t,e){var n=e===_;(0,r.each)(t,(function(t){var e=(0,r.get)(p,t&&[t.id]);if(e)if(t.yS)e.set("visible",!1);else{var a=e.getChildByIndex(0),u=a.getCanvasBBox(),f=n?u.x:u.maxX,d=u.y+u.height/2;(0,o.translate)(a,t.x-f,t.y-d),t.labelLine&&function(t,e,n){var a,o=e.getCenter(),u=e.getRadius(),c={x:t.x-(n?l:-l),y:t.y},f=(0,i.polarToCartesian)(o.x,o.y,u+s,t.angle),d={x:c.x,y:c.y},p={x:f.x,y:f.y},h=(0,i.polarToCartesian)(o.x,o.y,u,t.angle);if(c.y!==f.y){var g=n?4:-4;d.y=c.y,t.angle<0&&t.angle>=-Math.PI/2&&(d.x=Math.max(f.x,c.x-g),c.y0&&t.anglef.y?p.y=d.y:(p.y=f.y,p.x=Math.max(p.x,d.x-g))),t.angle>Math.PI/2&&(d.x=Math.min(f.x,c.x-g),c.y>f.y?p.y=d.y:(p.y=f.y,p.x=Math.min(p.x,d.x-g))),t.angle<-Math.PI/2&&(d.x=Math.min(f.x,c.x-g),c.y4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function s(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function l(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?[s(e[0],n,e[0]),s(e[1],n,e[0]),s(e[2],n,e[0]),s(e[3],n,e[0])]:e}function u(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(a([t.x,t.y],e))})),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function c(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height=s.height:l.width>=s.width}(t,e,o)}))}e.intervalAdjustPosition=function(t,e,n){var o;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;l&&"interval"===l.type&&a(l,e,n)&&n.forEach((function(t,n){var a=e[n];!function(t,e,n){var a=t.coordinate,o=r.BBox.fromObject(n.getBBox()),s=(0,i.findLabelTextShape)(e);a.isTransposed?s.attr({x:o.minX+o.width/2,textAlign:"center"}):s.attr({y:o.minY+o.height/2,textBaseline:"middle"})}(l,a,t)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalHideOverlap=void 0;var r=n(0),i=n(113);e.intervalHideOverlap=function(t,e,n){var a;if(0!==n.length){var o=null===(a=n[0])||void 0===a?void 0:a.get("element"),s=null===o||void 0===o?void 0:o.geometry;if(s&&"interval"===s.type){var l,u=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return(0,r.each)(t,(function(t,r){r%n===0?e.push(t):t.set("visible",!1)})),e}(e),c=s.getXYFields()[0],f=[],d=[],p=(0,r.groupBy)(u,(function(t){return t.get("data")[c]})),h=(0,r.uniq)((0,r.map)(u,(function(t){return t.get("data")[c]})));u.forEach((function(t){t.set("visible",!0)}));var g=function(t){t&&(t.length&&d.push(t.pop()),d.push.apply(d,t))};for((0,r.size)(h)>0&&(l=h.shift(),g(p[l])),(0,r.size)(h)>0&&(l=h.pop(),g(p[l])),(0,r.each)(h.reverse(),(function(t){g(p[t])}));d.length>0;){var v=d.shift();v.get("visible")&&((0,i.checkShapeOverlap)(v,f)?v.set("visible",!1):f.push(v))}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointAdjustPosition=void 0;var r=n(0),i=n(113);function a(t,e,n){return t.some((function(t){return n(t,e)}))}function o(t,e){return a(t,e,(function(t,e){var n,r,a,o=(0,i.findLabelTextShape)(t),s=(0,i.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(a=2)&&(a=0),Math.max(0,Math.min(n.x+n.width+a,r.x+r.width+a)-Math.max(n.x-a,r.x-a))*Math.max(0,Math.min(n.y+n.height+a,r.y+r.height+a)-Math.max(n.y-a,r.y-a))>0}))}e.pointAdjustPosition=function(t,e,n,s,l){var u,c;if(0!==n.length){var f=null===(u=n[0])||void 0===u?void 0:u.get("element"),d=null===f||void 0===f?void 0:f.geometry;if(d&&"point"===d.type){var p=d.getXYFields(),h=p[0],g=p[1],v=(0,r.groupBy)(e,(function(t){return t.get("data")[h]})),y=[],m=l&&l.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;(0,r.map)((0,r.keys)(v).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,i),r}(d,v[t]);e.length;){var n=e.shift(),r=(0,i.findLabelTextShape)(n);if(a(y,n,(function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[g]===e.get("data")[g]})))r.set("visible",!1);else{var s=!1;o(y,n)&&(r.attr("y",r.attr("y")+2*m),s=o(y,n)),s?r.set("visible",!1):y.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathAdjustPosition=void 0;var r=n(0),i=n(113);function a(t,e,n){return t.some((function(t){return n(t,e)}))}function o(t,e){return a(t,e,(function(t,e){var n,r,a,o=(0,i.findLabelTextShape)(t),s=(0,i.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(a=2)&&(a=0),Math.max(0,Math.min(n.x+n.width+a,r.x+r.width+a)-Math.max(n.x-a,r.x-a))*Math.max(0,Math.min(n.y+n.height+a,r.y+r.height+a)-Math.max(n.y-a,r.y-a))>0}))}e.pathAdjustPosition=function(t,e,n,s,l){var u,c;if(0!==n.length){var f=null===(u=n[0])||void 0===u?void 0:u.get("element"),d=null===f||void 0===f?void 0:f.geometry;if(d&&!(["path","line","area"].indexOf(d.type)<0)){var p=d.getXYFields(),h=p[0],g=p[1],v=(0,r.groupBy)(e,(function(t){return t.get("data")[h]})),y=[],m=l&&l.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;(0,r.map)((0,r.keys)(v).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,i),r}(d,v[t]);e.length;){var n=e.shift(),r=(0,i.findLabelTextShape)(n);if(a(y,n,(function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[g]===e.get("data")[g]})))r.set("visible",!1);else{var s=!1;o(y,n)&&(r.attr("y",r.attr("y")+2*m),s=o(y,n)),s?r.set("visible",!1):y.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=void 0;var r=n(0),i=n(48),a=n(1010),o=n(114);e.limitInPlot=function(t,e,n,s,l){if(!(e.length<=0)){var u=(null===l||void 0===l?void 0:l.direction)||["top","right","bottom","left"],c=(null===l||void 0===l?void 0:l.action)||"translate",f=(null===l||void 0===l?void 0:l.margin)||0,d=e[0].get("coordinate");if(d){var p=(0,i.getCoordinateBBox)(d,f),h=p.minX,g=p.minY,v=p.maxX,y=p.maxY;(0,r.each)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,s=e.maxX,l=e.maxY,f=e.x,d=e.y,p=e.width,m=e.height,b=f,x=d;if(u.indexOf("left")>=0&&(n=0&&(i=0&&(n>v?b=v-p:s>v&&(b-=s-v)),u.indexOf("bottom")>=0&&(i>y?x=y-m:l>y&&(x-=l-y)),b!==f||x!==d){var _=b-f;"translate"===c?(0,o.translate)(t,_,x-d):"ellipsis"===c?t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=(0,r.pick)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=(0,a.getEllipsisText)(t.attr("text"),n.width-Math.abs(_),e);t.attr("text",i)})):t.hide()}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEllipsisText=e.measureTextWidth=void 0;var r=n(1),i=n(0),a=n(1011);e.measureTextWidth=(0,i.memoize)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,o=e.fontWeight,s=e.fontStyle,l=e.fontVariant,u=(0,a.getCanvasContext)();return u.font=[s,l,o,n+"px",r].join(" "),u.measureText((0,i.isString)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,r.__spreadArray)([t],(0,i.values)(e),!0).join("")})),e.getEllipsisText=function(t,n,r){var a,o=(0,e.measureTextWidth)("...",r);a=(0,i.isString)(t)?t:(0,i.toString)(t);var s,l,u=n,c=[];if((0,e.measureTextWidth)(t,r)<=n)return t;for(;s=a.substr(0,16),!((l=(0,e.measureTextWidth)(s,r))+o>u&&l>u);)if(c.push(s),u-=l,!(a=a.substr(16)))return c.join("");for(;s=a.substr(0,1),!((l=(0,e.measureTextWidth)(s,r))+o>u);)if(c.push(s),u-=l,!(a=a.substr(1)))return c.join("");return c.join("")+"..."}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasContext=void 0,e.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showGrid=e.getCircleGridItems=e.getLineGridItems=e.getGridThemeCfg=void 0;var r=n(0);e.getGridThemeCfg=function(t,e){var n=(0,r.deepMix)({},(0,r.get)(t,["components","axis","common"]),(0,r.get)(t,["components","axis",e]));return(0,r.get)(n,["grid"],{})},e.getLineGridItems=function(t,e,n,r){var i=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.value;if(r)i.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(o){var l=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return a}),a[0]),i},e.getCircleGridItems=function(t,e,n,i,a){var o=e.values.length,s=[],l=n.getTicks();return l.reduce((function(e,n){var l=e?e.value:n.value,u=n.value,c=(l+u)/2;return"x"===a?s.push({points:[t.convert({x:i?u:c,y:0}),t.convert({x:i?u:c,y:1})]}):s.push({points:(0,r.map)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?u:c})}))}),n}),l[0]),s},e.showGrid=function(t,e){var n=(0,r.get)(e,"grid");if(null===n)return!1;var i=(0,r.get)(t,"grid");return!(void 0===n&&null===i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(104),a=n(69),o=n(80),s=n(282),l=n(21),u=n(0),c=n(70),f=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=u.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=(0,u.clamp)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(l.LAYER.FORE).addGroup(),n.onChangeFn=(0,u.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,r.__extends)(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(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.VIEW_LIFE_CIRCLE.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(),a=new o.BBox(i.x,i.y,Math.min(i.width,e),i.height).expand(n),u=this.getScrollbarComponentCfg(),c=void 0,f=void 0;if(u.isHorizontal){var d=(0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.BOTTOM),p=(d[0],d[1]),h=(0,s.directionToPosition)(this.view.coordinateBBox,a,l.DIRECTION.BOTTOM),g=h[0];h[1],c=g,f=p}else{var v=(0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),y=(v[0],p=v[1],(0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT));g=y[0],y[1],c=g,f=p}c+=n[3],f+=n[0],this.trackLen?this.scrollbar.component.update((0,r.__assign)((0,r.__assign)({},u),{x:c,y:f,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,r.__assign)((0,r.__assign)({},u),{x:c,y:f})),this.view.viewBBox=this.view.viewBBox.cut(a,u.isHorizontal?l.DIRECTION.BOTTOM:l.DIRECTION.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,u.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=(0,u.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,a=(0,r.__rest)(n,["thumbHighlightColor"]);return{default:(0,u.deepMix)({},(0,u.get)(e,["default","style"],{}),a),hover:(0,u.deepMix)({},(0,u.get)(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(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,u.clamp)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=t[0],i=t[1],a="vertical"!==this.getValidScrollbarCfg().type,o=(0,u.valuesOfKey)(this.data,this.xScaleCfg.field),s=a?o:o.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=s.indexOf(t);return!(e>-1)||(0,c.isBetween)(e,r,i)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new a.Scrollbar((0,r.__assign)((0,r.__assign)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:l.LAYER.FORE,direction:t?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT,type:l.COMPONENT_TYPE.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?(0,r.__assign)((0,r.__assign)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,r.__assign)({},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,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=(0,u.valuesOfKey)(e,t.field);return(0,u.size)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),a=i.type,o=i.padding,s=i.width,l=i.height,c=i.style,f="vertical"!==a,d=o[0],p=o[1],h=o[2],g=o[3],v=f?{x:e.minX+g,y:n.maxY-l-h}:{x:n.maxX-s-p,y:e.minY+d},y=this.getStep(),m=this.getCnt(),b=f?e.width-g-p:e.height-d-h,x=Math.max(b*(0,u.clamp)(y/m,0,1),20);return(0,r.__assign)((0,r.__assign)({},this.getThemeOptions()),{x:v.x,y:v.y,size:f?l:s,isHorizontal:f,trackLen:b,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,u.isObject)(this.option)&&(t=(0,r.__assign)((0,r.__assign)({},t),this.option)),(0,u.isObject)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),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,r.__spreadArray)([],n,!0).reverse()),n},e}(i.Controller);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearList=void 0;var r=n(0),i="inactive",a="active";e.clearList=function(t){var e=t.getItems();(0,r.each)(e,(function(e){t.hasState(e,a)&&t.setItemState(e,a,!1),t.hasState(e,i)&&t.setItemState(e,i,!1)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(151)),o="unchecked",s="checked",l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=s,e}return(0,r.__extends)(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 r=t.getItems();n&&(0,i.each)(r,(function(n){e(n)?(t.hasState(n,o)&&t.setItemState(n,o,!1),t.setItemState(n,s,!0)):t.hasState(n,s)||t.setItemState(n,o,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!(0,i.some)(e.getItems(),(function(t){return e.hasState(t,o)}))||e.hasState(n,o)?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();(0,i.each)(t,(function(t){t.clearItemsState(s),t.clearItemsState(o)}))},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(31),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return(0,r.__extends)(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=(0,i.last)(this.points),n=0,r=0,o=0;if(t.length){var s=t[0];n=(0,a.distance)(s,e)/2,r=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:r,y:o,r:n}},e}((0,r.__importDefault)(n(288)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0);function a(t){t.x=(0,i.clamp)(t.x,0,1),t.y=(0,i.clamp)(t.y,0,1)}var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return(0,r.__extends)(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,o=this.context.view.getCoordinate(),s=o.invert((0,i.head)(n)),l=o.invert((0,i.last)(n));return this.inPlot&&(a(s),a(l)),"x"===r?(t=o.convert({x:s.x,y:0}),e=o.convert({x:l.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:l.y})),{start:t,end:e}},e}((0,r.__importDefault)(n(477)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(31),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getMaskPath=function(){var t=this.points;return(0,i.getSpline)(t,!0)},e}((0,r.__importDefault)(n(478)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(479)),o=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.filterView=function(t,e,n){var r=(0,o.getSilbings)(t);(0,i.each)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=(0,o.getSilbings)(t);(0,i.each)(e,(function(t){t.render(!0)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(44)),o=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context),e=this.context.view,n=(0,o.getElements)(e);if((0,o.isMask)(this.context)){var r=(0,o.getMaskedElements)(this.context,10);r&&(0,i.each)(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var a=t.component,s=a.get("field");if((0,o.isList)(t)){if(s){var l=a.getItemsByState("unchecked"),u=(0,o.getScaleByField)(e,s),c=l.map((function(t){return t.name}));(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,s),n=u.getText(e);c.indexOf(n)>=0?t.hide():t.show()}))}}else if((0,o.isSlider)(t)){var f=a.getValue(),d=f[0],p=f[1];(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,s);e>=d&&e<=p?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=(0,o.getElements)(this.context.view);(0,i.each)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(44)),o=n(31),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return(0,r.__extends)(e,t),e.prototype.filter=function(){(0,o.isMask)(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=(0,o.getMaskedElements)(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,a=e.map((function(t){return t.getModel().data})),s=(0,o.getSilbings)(t);(0,i.each)(s,(function(t){var e=(0,o.getElements)(t);(0,i.each)(e,(function(t){var e=t.getModel().data;(0,o.isInRecords)(a,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=(0,o.getSilbings)(e);(0,i.each)(n,(function(e){var n=(0,o.getSiblingMaskElements)(t.context,e,10),r=(0,o.getElements)(e);n&&(0,i.each)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=(0,o.getSilbings)(this.context.view);(0,i.each)(t,(function(t){var e=(0,o.getElements)(t);(0,i.each)(e,(function(t){t.show()}))}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(32),a=n(0),o=n(267),s=(0,r.__importDefault)(n(44)),l=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,r.__extends)(e,t),e.prototype.getButtonCfg=function(){return(0,a.deepMix)(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,r.__assign)({text:t.text},t.textStyle)}).getBBox(),i=(0,o.parsePadding)(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:(0,r.__assign)({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style)});a.toBack(),e.on("mouseenter",(function(){a.attr(t.activeStyle)})),e.on("mouseleave",(function(){a.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.ext.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},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}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=(0,r.__importDefault)(n(44)),a=n(31),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return(0,r.__extends)(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}):(0,a.distance)(t,this.startPoint)>4&&(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}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(32),a=n(185),o=n(31),s=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,r.__extends)(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();if((0,o.distance)(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=i.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.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}(a.Action);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=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,r.__extends)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;(0,i.each)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,a=n.values;t.startCache[e]={min:r,max:i,values:a}}))},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(),r=this.context.getCurrentPoint(),a=n.invert(e),o=n.invert(r),s=o.x-a.x,l=o.y-a.y,u=this.context.view,c=this.dims;(0,i.each)(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*l})})),u.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 r=this.context.view,i=this.startCache[t],a=i.min,o=i.max,s=o-a,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),r.scale(e.field,{nice:!1,min:a+l,max:o+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}((0,r.__importDefault)(n(480)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return(0,r.__extends)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;(0,i.each)(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 r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],a=i.max-i.min,o=e.min,s=e.max,l=n*a,u=o-l,c=s+l,f=(c-u)/a;c>u&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:o-l,max:s+l})},e}((0,r.__importDefault)(n(480)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(185),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var a=(null===t||void 0===t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),s=n.getXScale(),l=n.getOptions().data,u=(0,i.size)((0,i.valuesOfKey)(l,s.field)),c=(0,i.size)(s.values),f=o.getValue(),d=Math.floor((u-c)*f)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?a:-a),p=a/(u-c)/1e4,h=(0,i.clamp)(d/(u-c)+p,0,1);o.setValue(h)}},e}(a.Action);e.default=o},function(t,e,n){"use strict";(function(t){var e=n(2)(n(6));t.exports=function r(i){var a=n(1030),o=n(3),s=n(1031);function l(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;nTt||(t.current=It[Tt],It[Tt]=null,Tt--)}function Lt(t,e){Tt++,It[Tt]=t.current,t.current=e}var kt={},Dt={current:kt},Rt={current:!1},Nt=kt;function Bt(t,e){var n=t.type.contextTypes;if(!n)return kt;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function zt(t){return null!==(t=t.childContextTypes)&&void 0!==t}function Vt(){Ft(Rt),Ft(Dt)}function Gt(t,e,n){if(Dt.current!==kt)throw Error(l(168));Lt(Dt,e),Lt(Rt,n)}function Wt(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(l(108,A(e)||"Unknown",i));return a({},n,{},r)}function Yt(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||kt,Nt=Dt.current,Lt(Dt,t),Lt(Rt,Rt.current),!0}function Ht(t,e,n){var r=t.stateNode;if(!r)throw Error(l(169));n?(t=Wt(t,e,Nt),r.__reactInternalMemoizedMergedChildContext=t,Ft(Rt),Ft(Dt),Lt(Dt,t)):Ft(Rt),Lt(Rt,n)}var Ut=s.unstable_runWithPriority,Xt=s.unstable_scheduleCallback,qt=s.unstable_cancelCallback,Kt=s.unstable_requestPaint,Zt=s.unstable_now,$t=s.unstable_getCurrentPriorityLevel,Qt=s.unstable_ImmediatePriority,Jt=s.unstable_UserBlockingPriority,te=s.unstable_NormalPriority,ee=s.unstable_LowPriority,ne=s.unstable_IdlePriority,re={},ie=s.unstable_shouldYield,ae=void 0!==Kt?Kt:function(){},oe=null,se=null,le=!1,ue=Zt(),ce=1e4>ue?Zt:function(){return Zt()-ue};function fe(){switch($t()){case Qt:return 99;case Jt:return 98;case te:return 97;case ee:return 96;case ne:return 95;default:throw Error(l(332))}}function de(t){switch(t){case 99:return Qt;case 98:return Jt;case 97:return te;case 96:return ee;case 95:return ne;default:throw Error(l(332))}}function pe(t,e){return t=de(t),Ut(t,e)}function he(t,e,n){return t=de(t),Xt(t,e,n)}function ge(t){return null===oe?(oe=[t],se=Xt(Qt,ye)):oe.push(t),re}function ve(){if(null!==se){var t=se;se=null,qt(t)}ye()}function ye(){if(!le&&null!==oe){le=!0;var t=0;try{var e=oe;pe(99,(function(){for(;t=e&&(ar=!0),t.firstContext=null)}function Te(t,e){if(Se!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(Se=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Me){if(null===we)throw Error(l(308));Me=e,we.dependencies={expirationTime:0,firstContext:e,responders:null}}else Me=Me.next=e;return X?t._currentValue:t._currentValue2}var Fe=!1;function Le(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ke(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function De(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function Re(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function Ne(t,e){var n=t.alternate;null!==n&&ke(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function Be(t,e,n,r){var i=t.updateQueue;Fe=!1;var o=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==o){var l=o.next;o.next=s.next,s.next=l}o=s,i.shared.pending=null,null!==(l=t.alternate)&&null!==(l=l.updateQueue)&&(l.baseQueue=s)}if(null!==o){l=o.next;var u=i.baseState,c=0,f=null,d=null,p=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)c&&(c=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),Ki(s,h.suspenseConfig);t:{var v=t,y=h;switch(s=e,g=n,y.tag){case 1:if("function"===typeof(v=y.payload)){u=v.call(g,u,s);break t}u=v;break t;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null===(s="function"===typeof(v=y.payload)?v.call(g,u,s):v)||void 0===s)break t;u=a({},u,s);break t;case 2:Fe=!0}}null!==h.callback&&(t.effectTag|=32,null===(s=i.effects)?i.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=i.shared.pending))break;h=o.next=s.next,s.next=l,i.baseQueue=o=s,i.shared.pending=null}}null===p?f=u:p.next=d,i.baseState=f,i.baseQueue=p,Zi(c),t.expirationTime=c,t.memoizedState=u}}function ze(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;ed?(p=f,f=null):p=f.sibling;var h=y(e,f,s[d],l);if(null===h){null===f&&(f=p);break}t&&f&&null===h.alternate&&n(e,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===s.length)return r(e,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(e,d,g.value,u);if(null===b){null===d&&(d=h);break}t&&d&&null===b.alternate&&n(e,d),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b,d=h}if(g.done)return r(e,d),c;if(null===d){for(;!g.done;p++,g=s.next())null!==(g=v(e,g.value,u))&&(a=o(g,a,p),null===f?c=g:f.sibling=g,f=g);return c}for(d=i(e,d);!g.done;p++,g=s.next())null!==(g=m(d,e,p,g.value,u))&&(t&&null!==g.alternate&&d.delete(null===g.key?p:g.key),a=o(g,a,p),null===f?c=g:f.sibling=g,f=g);return t&&d.forEach((function(t){return n(e,t)})),c}return function(t,i,o,u){var c="object"===(0,e.default)(o)&&null!==o&&o.type===p&&null===o.key;c&&(o=o.props.children);var h="object"===(0,e.default)(o)&&null!==o;if(h)switch(o.$$typeof){case f:t:{for(h=o.key,c=i;null!==c;){if(c.key===h){if(7===c.tag){if(o.type===p){r(t,c.sibling),(i=a(c,o.props.children)).return=t,t=i;break t}}else if(c.elementType===o.type){r(t,c.sibling),(i=a(c,o.props)).ref=Ze(t,c,o),i.return=t,t=i;break t}r(t,c);break}n(t,c),c=c.sibling}o.type===p?((i=ba(o.props.children,t.mode,u,o.key)).return=t,t=i):((u=ma(o.type,o.key,o.props,null,t.mode,u)).ref=Ze(t,i,o),u.return=t,t=u)}return s(t);case d:t:{for(c=o.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){r(t,i.sibling),(i=a(i,o.children||[])).return=t,t=i;break t}r(t,i);break}n(t,i),i=i.sibling}(i=_a(o,t.mode,u)).return=t,t=i}return s(t)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==i&&6===i.tag?(r(t,i.sibling),(i=a(i,o)).return=t,t=i):(r(t,i),(i=xa(o,t.mode,u)).return=t,t=i),s(t);if(Ke(o))return b(t,i,o,u);if(S(o))return x(t,i,o,u);if(h&&$e(t,o),"undefined"===typeof o&&!c)switch(t.tag){case 1:case 0:throw t=t.type,Error(l(152,t.displayName||t.name||"Component"))}return r(t,i)}}var Je=Qe(!0),tn=Qe(!1),en={},nn={current:en},rn={current:en},an={current:en};function on(t){if(t===en)throw Error(l(174));return t}function sn(t,e){Lt(an,e),Lt(rn,t),Lt(nn,en),t=F(e),Ft(nn),Lt(nn,t)}function ln(){Ft(nn),Ft(rn),Ft(an)}function un(t){var e=on(an.current),n=on(nn.current);n!==(e=L(n,t.type,e))&&(Lt(rn,t),Lt(nn,e))}function cn(t){rn.current===t&&(Ft(nn),Ft(rn))}var fn={current:0};function dn(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||xt(n)||_t(n)))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function pn(t,e){return{responder:t,props:e}}var hn=u.ReactCurrentDispatcher,gn=u.ReactCurrentBatchConfig,vn=0,yn=null,mn=null,bn=null,xn=!1;function _n(){throw Error(l(321))}function On(t,e){if(null===e)return!1;for(var n=0;na))throw Error(l(301));a+=1,bn=mn=null,e.updateQueue=null,hn.current=qn,t=n(r,i)}while(e.expirationTime===vn)}if(hn.current=Hn,e=null!==mn&&null!==mn.next,vn=0,bn=mn=yn=null,xn=!1,e)throw Error(l(300));return t}function wn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===bn?yn.memoizedState=bn=t:bn=bn.next=t,bn}function Mn(){if(null===mn){var t=yn.alternate;t=null!==t?t.memoizedState:null}else t=mn.next;var e=null===bn?yn.memoizedState:bn.next;if(null!==e)bn=e,mn=t;else{if(null===t)throw Error(l(310));t={memoizedState:(mn=t).memoizedState,baseState:mn.baseState,baseQueue:mn.baseQueue,queue:mn.queue,next:null},null===bn?yn.memoizedState=bn=t:bn=bn.next=t}return bn}function Sn(t,e){return"function"===typeof e?e(t):e}function An(t){var e=Mn(),n=e.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=t;var r=mn,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=o=a=null,u=i;do{var c=u.expirationTime;if(cyn.expirationTime&&(yn.expirationTime=c,Zi(c))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),Ki(c,u.suspenseConfig),r=u.eagerReducer===t?u.eagerState:t(r,u.action);u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=o,be(r,e.memoizedState)||(ar=!0),e.memoizedState=r,e.baseState=a,e.baseQueue=s,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function En(t){var e=Mn(),n=e.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,a=e.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=t(a,o.action),o=o.next}while(o!==i);be(a,e.memoizedState)||(ar=!0),e.memoizedState=a,null===e.baseQueue&&(e.baseState=a),n.lastRenderedState=a}return[a,r]}function Cn(t){var e=wn();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:t}).dispatch=Yn.bind(null,yn,t),[e.memoizedState,t]}function jn(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=yn.updateQueue)?(e={lastEffect:null},yn.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function In(){return Mn().memoizedState}function Tn(t,e,n,r){var i=wn();yn.effectTag|=t,i.memoizedState=jn(1|e,n,void 0,void 0===r?null:r)}function Fn(t,e,n,r){var i=Mn();r=void 0===r?null:r;var a=void 0;if(null!==mn){var o=mn.memoizedState;if(a=o.destroy,null!==r&&On(r,o.deps))return void jn(e,n,a,r)}yn.effectTag|=t,i.memoizedState=jn(1|e,n,a,r)}function Ln(t,e){return Tn(516,4,t,e)}function kn(t,e){return Fn(516,4,t,e)}function Dn(t,e){return Fn(4,2,t,e)}function Rn(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function Nn(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,Fn(4,2,Rn.bind(null,e,t),n)}function Bn(){}function zn(t,e){return wn().memoizedState=[t,void 0===e?null:e],t}function Vn(t,e){var n=Mn();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&On(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Gn(t,e){var n=Mn();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&On(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Wn(t,e,n){var r=fe();pe(98>r?98:r,(function(){t(!0)})),pe(97r.tailExpiration&&1e)&&Ti.set(t,e))}}function Bi(t,e){t.expirationTime=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Vi(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=ge(Wi.bind(null,t));else{var e=zi(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=Di();if(r=1073741823===e?99:1===e||2===e?95:0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==re&&qt(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?ge(Wi.bind(null,t)):he(r,Gi.bind(null,t),{timeout:10*(1073741821-e)-ce()}),t.callbackNode=e}}}function Gi(t,e){if(ki=0,e)return Sa(t,e=Di()),Vi(t),null;var n=zi(t);if(0!==n){if(e=t.callbackNode,(di&(ii|ai))!==ni)throw Error(l(327));if(aa(),t===pi&&n===gi||Ui(t,n),null!==hi){var r=di;di|=ii;for(var i=qi();;)try{Qi();break}catch(s){Xi(t,s)}if(Ae(),di=r,ti.current=i,vi===si)throw e=yi,Ui(t,n),wa(t,n),Vi(t),e;if(null===hi)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=vi,pi=null,r){case oi:case si:throw Error(l(345));case li:Sa(t,2=n){t.lastPingedTime=n,Ui(t,n);break}}if(0!==(a=zi(t))&&a!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=Y(na.bind(null,t),i);break}na(t);break;case ci:if(wa(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=ea(i)),Oi&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,Ui(t,n);break}if(0!==(i=zi(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==bi?r=10*(1073741821-bi)-ce():1073741823===mi?r=0:(r=10*(1073741821-mi)-5e3,0>(r=(i=ce())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Jr(r/1960))-r)&&(r=n)),10=(r=0|o.busyMinDurationMs)?r=0:(i=0|o.busyDelayMs,r=(a=ce()-(10*(1073741821-a)-(0|o.timeoutMs||5e3)))<=i?0:i+r-a),10 component higher in the tree to provide a loading indicator or placeholder to display."+jt(s))}vi!==fi&&(vi=li),l=jr(l,s),d=o;do{switch(d.tag){case 3:u=l,d.effectTag|=4096,d.expirationTime=n,Ne(d,Zr(d,u,n));break t;case 1:u=l;var _=d.type,O=d.stateNode;if(0===(64&d.effectTag)&&("function"===typeof _.getDerivedStateFromError||null!==O&&"function"===typeof O.componentDidCatch&&(null===Ei||!Ei.has(O)))){d.effectTag|=4096,d.expirationTime=n,Ne(d,$r(d,u,n));break t}}d=d.return}while(null!==d)}hi=ta(hi)}catch(P){n=P;continue}break}}function qi(){var t=ti.current;return ti.current=Hn,null===t?Hn:t}function Ki(t,e){t_i&&(_i=t)}function $i(){for(;null!==hi;)hi=Ji(hi)}function Qi(){for(;null!==hi&&!ie();)hi=Ji(hi)}function Ji(t){var e=Qr(t.alternate,t,gi);return t.memoizedProps=t.pendingProps,null===e&&(e=ta(t)),ei.current=null,e}function ta(t){hi=t;do{var e=hi.alternate;if(t=hi.return,0===(2048&hi.effectTag)){if(e=Er(e,hi,gi),1===gi||1!==hi.childExpirationTime){for(var n=0,r=hi.child;null!==r;){var i=r.expirationTime,a=r.childExpirationTime;i>n&&(n=i),a>n&&(n=a),r=r.sibling}hi.childExpirationTime=n}if(null!==e)return e;null!==t&&0===(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=hi.firstEffect),null!==hi.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=hi.firstEffect),t.lastEffect=hi.lastEffect),1(t=t.childExpirationTime)?e:t}function na(t){var e=fe();return pe(99,ra.bind(null,t,e)),null}function ra(t,e){do{aa()}while(null!==ji);if((di&(ii|ai))!==ni)throw Error(l(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(l(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=ea(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===pi&&(hi=pi=null,gi=0),1=r?xr(t,n,r):(Lt(fn,1&fn.current),null!==(n=wr(t,n,r))?n.sibling:null);Lt(fn,1&fn.current);break;case 19:if(i=n.childExpirationTime>=r,0!==(64&t.effectTag)){if(i)return Pr(t,n,r);n.effectTag|=64}if(null!==(a=n.memoizedState)&&(a.rendering=null,a.tail=null),Lt(fn,fn.current),!i)return null}return wr(t,n,r)}ar=!1}}else ar=!1;switch(n.expirationTime=0,n.tag){case 2:if(i=n.type,null!==t&&(t.alternate=null,n.alternate=null,n.effectTag|=2),t=n.pendingProps,a=Bt(n,Dt.current),Ie(n,r),a=Pn(null,n,i,t,a,r),n.effectTag|=1,"object"===(0,e.default)(a)&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,zt(i)){var o=!0;Yt(n)}else o=!1;n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Le(n);var s=i.getDerivedStateFromProps;"function"===typeof s&&We(n,i,s,t),a.updater=Ye,n.stateNode=a,a._reactInternalFiber=n,qe(n,i,t,r),n=pr(null,n,i,!0,o,r)}else n.tag=0,or(null,n,a,r),n=n.child;return n;case 16:t:{if(a=n.elementType,null!==t&&(t.alternate=null,n.alternate=null,n.effectTag|=2),t=n.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,n.type=a,o=n.tag=function(t){if("function"===typeof t)return va(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===b)return 11;if(t===O)return 14}return 2}(a),t=Oe(a,t),o){case 0:n=fr(null,n,a,t,r);break t;case 1:n=dr(null,n,a,t,r);break t;case 11:n=sr(null,n,a,t,r);break t;case 14:n=lr(null,n,a,Oe(a.type,t),i,r);break t}throw Error(l(306,a,""))}return n;case 0:return i=n.type,a=n.pendingProps,fr(t,n,i,a=n.elementType===i?a:Oe(i,a),r);case 1:return i=n.type,a=n.pendingProps,dr(t,n,i,a=n.elementType===i?a:Oe(i,a),r);case 3:if(hr(n),i=n.updateQueue,null===t||null===i)throw Error(l(282));if(i=n.pendingProps,a=null!==(a=n.memoizedState)?a.element:null,ke(t,n),Be(n,i,null,r),(i=n.memoizedState.element)===a)rr(),n=wr(t,n,r);else{if((a=n.stateNode.hydrate)&&(Z?(Zn=Pt(n.stateNode.containerInfo),Kn=n,a=$n=!0):a=!1),a)for(r=tn(n,null,i,r),n.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else or(t,n,i,r),rr();n=n.child}return n;case 5:return un(n),null===t&&tr(n),i=n.type,a=n.pendingProps,o=null!==t?t.memoizedProps:null,s=a.children,V(i,a)?s=null:null!==o&&V(i,o)&&(n.effectTag|=16),cr(t,n),4&n.mode&&1!==r&&G(i,a)?(n.expirationTime=n.childExpirationTime=1,n=null):(or(t,n,s,r),n=n.child),n;case 6:return null===t&&tr(n),null;case 13:return xr(t,n,r);case 4:return sn(n,n.stateNode.containerInfo),i=n.pendingProps,null===t?n.child=Je(n,null,i,r):or(t,n,i,r),n.child;case 11:return i=n.type,a=n.pendingProps,sr(t,n,i,a=n.elementType===i?a:Oe(i,a),r);case 7:return or(t,n,n.pendingProps,r),n.child;case 8:case 12:return or(t,n,n.pendingProps.children,r),n.child;case 10:t:{if(i=n.type._context,a=n.pendingProps,s=n.memoizedProps,Ee(n,o=a.value),null!==s){var u=s.value;if(0===(o=be(u,o)?0:0|("function"===typeof i._calculateChangedBits?i._calculateChangedBits(u,o):1073741823))){if(s.children===a.children&&!Rt.current){n=wr(t,n,r);break t}}else for(null!==(u=n.child)&&(u.return=n);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var f=c.firstContext;null!==f;){if(f.context===i&&0!==(f.observedBits&o)){1===u.tag&&((f=De(r,null)).tag=2,Re(u,f)),u.expirationTime=e&&t<=e}function wa(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;ne||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Ma(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Sa(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}var Aa=null;function Ea(t){var e=t._reactInternalFiber;if(void 0===e){if("function"===typeof t.render)throw Error(l(188));throw Error(l(268,Object.keys(t)))}return null===(t=I(e))?null:t.stateNode}function Ca(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime=P},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125>>1,i=t[r];if(!(void 0!==i&&0C(o,n))void 0!==l&&0>C(l,o)?(t[r]=l,t[s]=n,r=s):(t[r]=o,t[a]=n,r=a);else{if(!(void 0!==l&&0>C(l,n)))break t;t[r]=l,t[s]=n,r=s}}}return e}return null}function C(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var j=[],I=[],T=1,F=null,L=3,k=!1,D=!1,R=!1;function N(t){for(var e=A(I);null!==e;){if(null===e.callback)E(I);else{if(!(e.startTime<=t))break;E(I),e.sortIndex=e.expirationTime,S(j,e)}e=A(I)}}function B(t){if(R=!1,N(t),!D)if(null!==A(j))D=!0,r(z);else{var e=A(I);null!==e&&i(B,e.startTime-t)}}function z(t,n){D=!1,R&&(R=!1,a()),k=!0;var r=L;try{for(N(n),F=A(j);null!==F&&(!(F.expirationTime>n)||t&&!o());){var s=F.callback;if(null!==s){F.callback=null,L=F.priorityLevel;var l=s(F.expirationTime<=n);n=e.unstable_now(),"function"===typeof l?F.callback=l:F===A(j)&&E(j),N(n)}else E(j);F=A(j)}if(null!==F)var u=!0;else{var c=A(I);null!==c&&i(B,c.startTime-n),u=!1}return u}finally{F=null,L=r,k=!1}}function V(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var G=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){D||k||(D=!0,r(z))},e.unstable_getCurrentPriorityLevel=function(){return L},e.unstable_getFirstCallbackNode=function(){return A(j)},e.unstable_next=function(t){switch(L){case 1:case 2:case 3:var e=3;break;default:e=L}var n=L;L=e;try{return t()}finally{L=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=G,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=L;L=t;try{return e()}finally{L=n}},e.unstable_scheduleCallback=function(t,n,o){var s=e.unstable_now();if("object"===(0,l.default)(o)&&null!==o){var u=o.delay;u="number"===typeof u&&0s?(t.sortIndex=u,S(I,t),null===A(j)&&t===A(I)&&(R?a():R=!0,i(B,u-s))):(t.sortIndex=o,S(j,t),D||k||(D=!0,r(z))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();N(t);var n=A(j);return n!==F&&null!==F&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime=0&&(a&&o.resizeObservers.splice(o.resizeObservers.indexOf(n),1),n.observationTargets.splice(i,1),(0,r.updateCount)(-1))},t.disconnect=function(t){var e=this,n=s.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}();e.ResizeObserverController=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateCount=e.scheduler=void 0;var r=n(1042),i=n(486),a=n(1049),o=0,s={attributes:!0,characterData:!0,childList:!0,subtree:!0},l=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],u=function(t){return void 0===t&&(t=0),Date.now()+t},c=!1,f=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!c){c=!0;var n=u(t);(0,a.queueResizeObserver)((function(){var i=!1;try{i=(0,r.process)()}finally{if(c=!1,t=n-u(),!o)return;i?e.run(1e3):t>0?e.run(t):e.start()}}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,s)};document.body?e():i.global.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),l.forEach((function(e){return i.global.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),l.forEach((function(e){return i.global.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}());e.scheduler=f,e.updateCount=function(t){!o&&t>0&&f.start(),!(o+=t)&&f.stop()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.process=void 0;var r=n(1043),i=n(1044),a=n(1045),o=n(1046),s=n(1048);e.process=function(){var t=0;for((0,s.gatherActiveObservationsAtDepth)(t);(0,r.hasActiveObservations)();)t=(0,o.broadcastActiveObservations)(),(0,s.gatherActiveObservationsAtDepth)(t);return(0,i.hasSkippedObservations)()&&(0,a.deliverResizeLoopError)(),t>0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasActiveObservations=void 0;var r=n(152);e.hasActiveObservations=function(){return r.resizeObservers.some((function(t){return t.activeTargets.length>0}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasSkippedObservations=void 0;var r=n(152);e.hasSkippedObservations=function(){return r.resizeObservers.some((function(t){return t.skippedTargets.length>0}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deliverResizeLoopError=void 0;var r="ResizeObserver loop completed with undelivered notifications.";e.deliverResizeLoopError=function(){var t;"function"===typeof ErrorEvent?t=new ErrorEvent("error",{message:r}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=r),window.dispatchEvent(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.broadcastActiveObservations=void 0;var r=n(152),i=n(483),a=n(487),o=n(289);e.broadcastActiveObservations=function(){var t=1/0,e=[];r.resizeObservers.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(e){var n=new i.ResizeObserverEntry(e.target),s=(0,a.calculateDepthForNode)(e.target);r.push(n),e.lastReportedSize=(0,o.calculateBoxSize)(e.target,e.observedBox),st?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.queueResizeObserver=void 0;var r=n(1050);e.queueResizeObserver=function(t){(0,r.queueMicroTask)((function(){requestAnimationFrame(t)}))}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.queueMicroTask=void 0;var i=[];e.queueMicroTask=function(t){if(!r){var e=0,n=document.createTextNode("");new MutationObserver((function(){return i.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),r=function(){n.textContent="".concat(e?e--:e++)}}i.push(t),r()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResizeObservation=void 0;var r=n(484),i=n(289),a=n(192),o=function(){function t(t,e){this.target=t,this.observedBox=e||r.ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=(0,i.calculateBoxSize)(this.target,this.observedBox,!0);return t=this.target,(0,a.isSVG)(t)||(0,a.isReplacedElement)(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}();e.ResizeObservation=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResizeObserverDetail=void 0;var r=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e};e.ResizeObserverDetail=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(488),i=n(117);e.default=function(t){if(!r.default(t)||!i.default(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(117);e.default=function(t){return r.default(t,"Number")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flow=void 0,e.flow=function(){for(var t=[],e=0;e
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},e.DEFAULT_OPTIONS={appendPadding:2,tooltip:r.__assign({},e.DEFAULT_TOOLTIP_OPTIONS),animation:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(1),i=n(154);e.DEFAULT_OPTIONS={appendPadding:2,tooltip:r.__assign({},i.DEFAULT_TOOLTIP_OPTIONS),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(15),i=n(34),a=n(43),o=n(296);Object.defineProperty(e,"meta",{enumerable:!0,get:function(){return o.meta}});var s=n(118),l=n(154);function u(t){var e=t.chart,n=t.options,i=n.data,o=n.color,u=n.lineStyle,c=n.point,f=null===c||void 0===c?void 0:c.state,d=s.getTinyData(i);e.data(d);var p=r.deepAssign({},t,{options:{xField:l.X_FIELD,yField:l.Y_FIELD,line:{color:o,style:u},point:c}}),h=r.deepAssign({},p,{options:{tooltip:!1,state:f}});return a.line(p),a.point(h),e.axis(!1),e.legend(!1),t}e.adaptor=function(t){return r.flow(u,o.meta,i.theme,i.tooltip,i.animation,i.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left"},isStack:!1})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=n(1089);r.registerAction("marker-active",i.MarkerActiveAction),r.registerInteraction("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerActiveAction=void 0;var r=n(1),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,r=t.geometries.filter((function(t){return"point"===t.type}));i.each(r,(function(t){i.each(t.elements,(function(t){var e=-1!==i.findIndex(n,(function(e){return e.data===t.data}));t.setState("active",e)}))}))}},e.prototype.reset=function(){var t=this.getView().geometries.filter((function(t){return"point"===t.type}));i.each(t,(function(t){i.each(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(n(14).InteractionAction);e.MarkerActiveAction=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.interaction=void 0;var r=n(1),i=n(0),a=n(510),o=n(34),s=n(153),l=n(15),u=n(293),c=n(513);function f(t){var e=t.options.colorField;return l.deepAssign({options:{rawFields:["value"],tooltip:{fields:["name","value",e,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function d(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,o=n.rectStyle,s=n.hierarchyConfig,u=n.rawFields,f=c.transformData({data:n.data,colorField:n.colorField,enableDrillDown:c.enableDrillInteraction(n),hierarchyConfig:s});return e.data(f),a.polygon(l.deepAssign({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:u,polygon:{color:r,style:o}}})),e.coordinate().reflect("y"),t}function p(t){return t.chart.axis(!1),t}function h(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return c.enableDrillInteraction(t)?l.deepAssign({},t,{interactions:r.__spreadArrays(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:c.transformData}}])}):t}function g(t){var e=t.chart,n=t.options,r=n.interactions,a=n.drilldown;o.interaction({chart:e,options:h(n)});var s=c.findInteraction(r,"view-zoom");return s&&(!1!==s.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel")),c.enableDrillInteraction(n)&&(e.appendPadding=u.getAdjustAppendPadding(e.appendPadding,i.get(a,["breadCrumb","position"]))),t}e.interaction=g,e.adaptor=function(t){return l.flow(f,o.theme,s.pattern("rectStyle"),d,p,o.legend,o.tooltip,g,o.animation,o.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.treemap=e.getTileMethod=void 0;var r=n(1).__importStar(n(193)),i=n(0),a=n(1116),o={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 s(t,e){return"treemapSquarify"===t?r[t].ratio(e):r[t]}e.getTileMethod=s,e.treemap=function(t,e){var n,l=(e=i.assign({},o,e)).as;if(!i.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(p){console.warn(p)}var u=s(e.tile,e.ratio),c=function(t){return r.treemap().tile(u).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)(r.hierarchy(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))}(t),f=l[0],d=l[1];return c.each((function(t){t[f]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===l.indexOf(e)&&delete t[e]}))})),a.getAllNodes(c)}},function(t,e,n){"use strict";function r(t,e){return t.parent===e.parent?1:2}function i(t,e){return t+e.x}function a(t,e){return Math.max(t,e.y)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=r,e=1,n=1,o=!1;function s(r){var s,l=0;r.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(i,0)/t.length}(n),e.y=function(t){return 1+t.reduce(a,0)}(n)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(r),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(r),f=u.x-t(u,c)/2,d=c.x+t(c,u)/2;return r.eachAfter(o?function(t){t.x=(t.x-r.x)*e,t.y=(r.y-t.y)*n}:function(t){t.x=(t.x-f)/(d-f)*e,t.y=(1-(r.y?t.y/r.y:1))*n})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,e=+t[0],n=+t[1],s):o?null:[e,n]},s.nodeSize=function(t){return arguments.length?(o=!0,e=+t[0],n=+t[1],s):o?[e,n]:null},s}},function(t,e,n){"use strict";function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return this.eachAfter(r)}},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(this);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.call(e,o,++i,this)}}catch(s){a.e(s)}finally{a.f()}return this}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n,r,i=this,a=[i],o=-1;i=a.pop();)if(t.call(e,i,++o,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n,r,i,a=this,o=[a],s=[],l=-1;a=o.pop();)if(s.push(a),n=a.children)for(r=0,i=n.length;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(this);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(t.call(e,o,++i,this))return o}}catch(s){a.e(s)}finally{a.f()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return Array.from(this)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=r(n(1106)),a=i.default.mark(o);function o(){var t,e,n,r,o,s;return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=[t=this];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){i.next=8;break}return i.next=5,t;case 5:if(r=t.children)for(o=0,s=r.length;o=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=null,e=1,n=1,r=o.constantZero;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(u(t)).eachAfter(c(r,.5)).eachBefore(f(1)):i.eachBefore(u(l)).eachAfter(c(o.constantZero,1)).eachAfter(c(r,i.r/Math.min(e,n))).eachBefore(f(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=(0,a.optional)(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"===typeof t?t:(0,o.default)(+t),i):r},i};var i=n(515),a=n(298),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}(n(518));function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}function l(t){return Math.sqrt(t.value)}function u(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function c(t,e){return function(n){if(r=n.children){var r,a,o,s=r.length,l=t(n)*e||0;if(l)for(a=0;a0)throw new Error("cycle");return l}return n.id=function(e){return arguments.length?(t=(0,r.required)(e),n):t},n.parentId=function(t){return arguments.length?(e=(0,r.required)(t),n):e},n};var r=n(298),i=n(297),a={depth:-1},o={};function s(t){return t.id}function l(t){return t.parentId}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=i,e=1,n=1,r=null;function c(i){var a=function(t){for(var e,n,r,i,a,o=new u(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new u(r[i],i)),n.parent=e;return(o.parent=new u(null,0)).children=[o],o}(i);if(a.eachAfter(f),a.parent.m=-a.z,a.eachBefore(d),r)i.eachBefore(p);else{var o=i,s=i,l=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>l.depth&&(l=t)}));var c=o===s?1:t(o,s)/2,h=c-o.x,g=e/(s.x+c+h),v=n/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+h)*g,t.y=t.depth*v}))}return i}function f(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var u=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-u):e.z=u}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,u=e,c=e,f=n,d=u.parent.children[0],p=u.m,h=c.m,g=f.m,v=d.m;f=o(f),u=a(u),f&&u;)d=a(d),(c=o(c)).a=e,(i=f.z+g-u.z-p+t(f._,u._))>0&&(s(l(f,e,r),e,i),p+=i,h+=i),g+=f.m,p+=u.m,v+=d.m,h+=c.m;f&&!o(c)&&(c.t=f,c.m+=g-h),u&&!a(d)&&(d.t=u,d.m+=p-v,r=e)}return r}(e,i,e.parent.A||r[0])}function d(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function p(t){t.x*=e,t.y=t.depth*n}return c.separation=function(e){return arguments.length?(t=e,c):t},c.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],c):r?null:[e,n]},c.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],c):r?[e,n]:null},c};var r=n(297);function i(t,e){return t.parent===e.parent?1:2}function a(t){var e=t.children;return e?e[0]:t.t}function o(t){var e=t.children;return e?e[e.length-1]:t.t}function s(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function l(t,e,n){return t.a.parent===e.parent?t.a:n}function u(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}u.prototype=Object.create(r.Node.prototype)},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=o.default,e=!1,n=1,r=1,i=[0],u=l.constantZero,c=l.constantZero,f=l.constantZero,d=l.constantZero,p=l.constantZero;function h(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(g),i=[0],e&&t.eachBefore(a.default),t}function g(e){var n=i[e.depth],r=e.x0+n,a=e.y0+n,o=e.x1-n,s=e.y1-n;o=n-1){var c=s[e];return c.x0=i,c.y0=a,c.x1=o,void(c.y1=l)}for(var f=u[e],d=r/2+f,p=e+1,h=n-1;p>>1;u[g]l-a){var m=r?(i*y+o*v)/r:o;t(e,p,v,i,a,m,l),t(p,n,y,m,a,o,l)}else{var b=r?(a*y+l*v)/r:l;t(e,p,v,i,a,o,b),t(p,n,y,i,b,o,l)}}(0,l,t.value,e,n,r,i)}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,o){(1&t.depth?a.default:i.default)(t,e,n,r,o)};var i=r(n(155)),a=r(n(194))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(155)),a=r(n(194)),o=n(299),s=function t(e){function n(t,n,r,s,l){if((u=t._squarify)&&u.ratio===e)for(var u,c,f,d,p,h=-1,g=u.length,v=t.value;++h1?e:1)},n}(o.phi);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAllNodes=e.getField=e.NODE_ANCESTORS_FIELD=e.CHILD_NODE_COUNT=e.NODE_INDEX_FIELD=void 0;var r=n(0);e.NODE_INDEX_FIELD="nodeIndex",e.CHILD_NODE_COUNT="childNodeCount",e.NODE_ANCESTORS_FIELD="nodeAncestor";var i="Invalid field: it must be a string!";e.getField=function(t,e){var n=t.field,a=t.fields;if(r.isString(n))return n;if(r.isArray(n))return console.warn(i),n[0];if(console.warn(i+" will try to get fields instead."),r.isString(a))return a;if(r.isArray(a)&&a.length)return a[0];if(e)return e;throw new TypeError(i)},e.getAllNodes=function(t){var n,i,a=[];return t&&t.each?t.each((function(t){var o,s;t.parent!==n?(n=t.parent,i=0):i+=1;var l=r.filter(((null===(o=t.ancestors)||void 0===o?void 0:o.call(t))||[]).map((function(t){return a.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n0}function s(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,a=r.y,o=e.center,s=o.x,l=o.y,u=e.getRadius()*n;return Math.sqrt(Math.pow(s-i,2)+Math.pow(l-a,2))_){var P=O/y.length,w=Math.max(1,Math.ceil(_/P)-1),M=y.slice(0,w)+"...";x.attr("text",M)}}}}(t,e,n)}e.conversionTag=function(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(r){var s=r.options,u=r.chart,f=s.conversionTag,d=s.theme;return f&&!n&&(u.theme(o.deepAssign({},i.isObject(d)?d:a.getTheme(d),{columnWidthRatio:1/3})),u.annotation().shape({render:function(n,r){var a=n.addGroup({id:u.id+"-conversion-tag-group",name:"conversion-tag-group"}),o=i.find(u.geometries,(function(t){return"interval"===t.type})),s={view:r,geometry:o,group:a,field:t,horizontal:e,options:l(f,e)},d=e?o.elements:o.elements.slice().reverse();i.each(d,(function(t,e){e>0&&c(s,d[e-1],t)}))}})),r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connectedArea=void 0;var r=n(14),i={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},a=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}]}]};r.registerInteraction(i.hover,{start:a(i.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),r.registerInteraction(i.click,{start:a(i.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]}),e.connectedArea=function(t){return void 0===t&&(t=!1),function(e){var n=e.chart,r=e.options.connectedArea,o=function(){n.removeInteraction(i.hover),n.removeInteraction(i.click)};if(!t&&r){var s=r.trigger||"hover";o(),n.interaction(i[s],{start:a(s,r.style)})}else o();return e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonAction=e.BUTTON_ACTION_CONFIG=void 0;var r=n(1),i=n(14),a=n(0),o=n(15);e.BUTTON_ACTION_CONFIG={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"}}};var s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.buttonGroup=null,n.buttonCfg=r.__assign({name:"button"},e.BUTTON_ACTION_CONFIG),n}return r.__extends(n,t),n.prototype.getButtonCfg=function(){var t=this.context.view,e=a.get(t,["interactions","filter-action","cfg","buttonConfig"]);return o.deepAssign(this.buttonCfg,e,this.cfg)},n.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},n.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:r.__assign({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},n.prototype.drawBackground=function(t,e){var n,i=this.getButtonCfg(),a=o.normalPadding(i.padding),s=t.addShape({type:"rect",name:"button-rect",attrs:r.__assign({x:e.x-a[3],y:e.y-a[0],width:e.width+a[1]+a[3],height:e.height+a[0]+a[2]},null===(n=i.buttonStyle)||void 0===n?void 0:n.default)});return s.toBack(),t.on("mouseenter",(function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.default)})),s},n.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.Util.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},n.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},n.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},n.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},n}(i.Action);e.ButtonAction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(1),i=n(0),a=n(34),o=n(15),s=n(43),l=n(15),u=n(119),c=n(512);function f(t){var e=t.chart,n=t.options,i=n.data,a=n.areaStyle,o=n.color,c=n.point,f=n.line,d=n.isPercent,p=n.xField,h=n.yField,g=n.tooltip,v=n.seriesField,y=n.startOnZero,m=null===c||void 0===c?void 0:c.state,b=u.getDataWhetherPecentage(i,h,p,h,d);e.data(b);var x=d?r.__assign({formatter:function(t){return{name:t[v]||t[p],value:(100*Number(t[h])).toFixed(2)+"%"}}},g):g,_=l.deepAssign({},t,{options:{area:{color:o,style:a},line:f&&r.__assign({color:o},f),point:c&&r.__assign({color:o},c),tooltip:x,label:void 0,args:{startOnZero:y}}}),O=l.deepAssign({options:{line:{size:2}}},_,{options:{sizeField:v,tooltip:!1}}),P=l.deepAssign({},_,{options:{tooltip:!1,state:m}});return s.area(_),s.line(O),s.point(P),t}function d(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=o.findGeometry(e,"area");if(i){var u=i.callback,c=r.__rest(i,["callback"]);s.label({fields:[a],callback:u,cfg:r.__assign({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},l.transformLabel(c))})}else s.label(!1);return t}function p(t){var e=t.chart,n=t.options,r=n.isStack,a=n.isPercent,o=n.seriesField;return(a||r)&&o&&i.each(e.geometries,(function(t){t.adjust("stack")})),t}Object.defineProperty(e,"meta",{enumerable:!0,get:function(){return c.meta}}),e.adaptor=function(t){return l.flow(a.theme,a.pattern("areaStyle"),f,c.meta,p,c.axis,c.legend,a.tooltip,d,a.slider,a.annotation(),a.interaction,a.animation,a.limitInPlot)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left"}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.interaction=e.pieAnnotation=e.transformStatisticOptions=void 0;var r=n(1),i=n(0),a=n(34),o=n(59),s=n(43),l=n(153),u=n(131),c=n(15),f=n(525),d=n(526),p=n(527);function h(t){var e=t.chart,n=t.options,i=n.data,a=n.angleField,o=n.colorField,l=n.color,u=n.pieStyle,f=c.processIllegalData(i,a);if(d.isAllZero(f,a)){var p="$$percentage$$";f=f.map((function(t){var e;return r.__assign(r.__assign({},t),((e={})[p]=1/f.length,e))})),e.data(f);var h=c.deepAssign({},t,{options:{xField:"1",yField:p,seriesField:o,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0}}});s.interval(h)}else e.data(f),h=c.deepAssign({},t,{options:{xField:"1",yField:a,seriesField:o,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0}}}),s.interval(h);return t}function g(t){var e,n=t.chart,r=t.options,i=r.meta,a=r.colorField,o=c.deepAssign({},i);return n.scale(o,((e={})[a]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:a,endAngle:o}}),t}function y(t){var e=t.chart,n=t.options,a=n.label,o=n.colorField,s=n.angleField,l=e.geometries[0];if(a){var u=a.callback,f=r.__rest(a,["callback"]),p=c.transformLabel(f);if(p.content){var h=p.content;p.content=function(t,n,a){var l=t[o],u=t[s],f=e.getScaleByField(s),d=null===f||void 0===f?void 0:f.scale(u);return i.isFunction(h)?h(r.__assign(r.__assign({},t),{percent:d}),n,a):i.isString(h)?c.template(h,{value:u,name:l,percentage:i.isNumber(d)&&!i.isNil(u)?(100*d).toFixed(2)+"%":null}):h}}var g=p.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[p.type]:"pie-outer",v=p.layout?i.isArray(p.layout)?p.layout:[p.layout]:[];p.layout=(g?[{type:g}]:[]).concat(v),l.label({fields:o?[s,o]:[s],callback:u,cfg:r.__assign(r.__assign({},p),{offset:d.adaptOffset(p.type,p.offset),type:"pie"})})}else l.label(!1);return t}function m(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,a=t.colorField,o=t.meta,s=t.locale,l=u.getLocale(s);if(e&&n){var p=c.deepAssign({},f.DEFAULT_OPTIONS.statistic,n),h=p.title,g=p.content;return!1!==h&&(h=c.deepAssign({},{formatter:function(t){return t?t[a]:i.isNil(h.content)?l.get(["statistic","total"]):h.content}},h)),!1!==g&&(g=c.deepAssign({},{formatter:function(t,e){var n=t?t[r]:d.getTotalValue(e,r),a=i.get(o,[r,"formatter"])||function(t){return t};return t||i.isNil(g.content)?a(n):g.content}},g)),c.deepAssign({},{statistic:{title:h,content:g}},t)}return t}function b(t){var e=t.chart,n=m(t.options),r=n.innerRadius,i=n.statistic;return e.getController("annotation").clear(!0),c.flow(a.annotation())(t),r&&i&&c.renderStatistic(e,{statistic:i,plotType:"pie"}),t}function x(t){var e=t.chart,n=t.options,r=n.tooltip,a=n.colorField,s=n.angleField,l=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(c.deepAssign({},r,{shared:!1})),d.isAllZero(l,s)){var u=i.get(r,"fields"),f=i.get(r,"formatter");i.isEmpty(i.get(r,"fields"))&&(u=[a,s],f=f||function(t){return{name:t[a],value:i.toString(t[s])}}),e.geometries[0].tooltip(u.join("*"),o.getMappingFunction(u,f))}return t}function _(t){var e=t.chart,n=m(t.options),a=n.interactions,o=n.statistic,s=n.annotations;return i.each(a,(function(t){var n,a;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var l=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(l=[{trigger:"element:mouseenter",action:p.PIE_STATISTIC+":change",arg:{statistic:o,annotations:s}}]),i.each(null===(a=t.cfg)||void 0===a?void 0:a.start,(function(t){l.push(r.__assign(r.__assign({},t),{arg:{statistic:o,annotations:s}}))})),e.interaction(t.type,c.deepAssign({},t.cfg,{start:l}))}else e.interaction(t.type,t.cfg||{})})),t}e.transformStatisticOptions=m,e.pieAnnotation=b,e.interaction=_,e.adaptor=function(t){return c.flow(l.pattern("pieStyle"),h,g,a.theme,v,a.legend,x,y,a.state,b,_,a.animation)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieLegendAction=void 0;var r=n(1),i=n(14),a=n(0),o=n(528),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getActiveElements=function(){var t=i.Util.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,a=n.get("field");if(a)return e.geometries[0].elements.filter((function(t){return t.getModel().data[a]===r.value}))}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter((function(t){return e.find((function(e){return a.isEqual(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,r){var a=n[r],s=e.geometry.coordinate;if(s.isPolar&&s.isTransposed){var l=i.Util.getAngle(e.getModel(),s),u=(l.startAngle+l.endAngle)/2,c=t,f=c*Math.cos(u),d=c*Math.sin(u);e.shape.setMatrix(o.transform([["t",f,d]])),a.setMatrix(o.transform([["t",f,d]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(i.Action);e.PieLegendAction=s},function(t,e,n){"use strict";var r=n(2)(n(6));Object.defineProperty(e,"__esModule",{value:!0}),e.StatisticAction=void 0;var i=n(1),a=n(14),o=n(0),s=n(503),l=n(1131),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).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 u=o.get(i,["data","data"]);if(i.type.match("legend-item")){var c=a.Util.getDelegationObject(this.context),f=n.getGroupedFields()[0];if(c&&f){var d=c.item;u=n.getData().find((function(t){return t[f]===d.value}))}}if(u){var p=o.get(t,"annotations",[]),h=o.get(t,"statistic",{});n.getController("annotation").clear(!0),o.each(p,(function(t){"object"===(0,r.default)(t)&&n.annotation()[t.type](t)})),s.renderStatistic(n,{statistic:h,plotType:"pie"},u),n.render(!0)}var g=l.getCurrentElement(this.context);g&&g.shape.toFront()},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();o.each(e,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(a.Action);e.StatisticAction=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentElement=void 0,e.getCurrentElement=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(1),i=n(0),a=n(15),o=n(15),s=n(34),l=n(59),u=n(64);function c(t){var e=t.chart,n=t.options,r=n.data,o=n.type,s=n.xField,c=n.yField,f=n.colorField,d=n.sizeField,p=n.sizeRatio,h=n.shape,g=n.color,v=n.tooltip,y=n.heatmapStyle;e.data(r);var m="polygon";"density"===o&&(m="heatmap");var b=u.getTooltipMapping(v,[s,c,f]),x=b.fields,_=b.formatter,O=1;return(p||0===p)&&(h||d?p<0||p>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):O=p:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),l.geometry(a.deepAssign({},t,{options:{type:m,colorField:f,tooltipFields:x,shapeField:d||"",label:void 0,mapping:{tooltip:_,shape:h&&(d?function(t){var e=r.map((function(t){return t[d]})),n=Math.min.apply(Math,e),a=Math.max.apply(Math,e);return[h,(i.get(t,d)-n)/(a-n),O]}:function(){return[h,1,O]}),color:g||f&&e.getTheme().sequenceColors.join("-"),style:y}}})),t}function f(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,l=n.yField;return o.flow(s.scale(((e={})[a]=r,e[l]=i,e)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(o,!1):e.axis(o,i),t}function p(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,a=n.sizeField,o=n.sizeLegend,s=!1!==r;return i&&e.legend(i,!!s&&r),a&&e.legend(a,void 0===o?r:o),s||o||e.legend(!1),t}function h(t){var e=t.chart,n=t.options,i=n.label,s=n.colorField,l=n.type,u=a.findGeometry(e,"density"===l?"heatmap":"polygon");if(i){if(s){var c=i.callback,f=r.__rest(i,["callback"]);u.label({fields:[s],callback:c,cfg:o.transformLabel(f)})}}else u.label(!1);return t}function g(t){var e=t.chart,n=t.options,r=n.coordinate,i=n.reflect;return r&&e.coordinate({type:r.type||"rect",cfg:r.cfg}),i&&e.coordinate().reflect(i),t}e.adaptor=function(t){return o.flow(s.theme,s.pattern("heatmapStyle"),f,g,c,d,p,s.tooltip,h,s.annotation(),s.interaction,s.animation,s.state)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.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"}}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);n(14).registerShape("polygon","circle",{draw:function(t,e){var n,i,a=t.x,o=t.y,s=this.parsePoints(t.points),l=Math.abs(s[2].x-s[1].x),u=Math.abs(s[1].y-s[0].y),c=Math.min(l,u)/2,f=Number(t.shape[1]),d=Number(t.shape[2]),p=c*Math.sqrt(d)*Math.sqrt(f),h=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("circle",{attrs:r.__assign(r.__assign(r.__assign({x:a,y:o,r:p},t.defaultStyle),t.style),{fill:h})})}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);n(14).registerShape("polygon","square",{draw:function(t,e){var n,i,a=t.x,o=t.y,s=this.parsePoints(t.points),l=Math.abs(s[2].x-s[1].x),u=Math.abs(s[1].y-s[0].y),c=Math.min(l,u),f=Number(t.shape[1]),d=Number(t.shape[2]),p=c*Math.sqrt(d)*Math.sqrt(f),h=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("rect",{attrs:r.__assign(r.__assign(r.__assign({x:a-p/2,y:o-p/2,width:p,height:p},t.defaultStyle),t.style),{fill:h})})}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.legend=void 0;var r=n(1),i=n(0),a=n(34),o=n(15),s=n(43),l=n(529),u=n(530);function c(t){var e=t.chart,n=t.options,a=n.colorField,c=n.color,f=l.transform(t);e.data(f);var d=o.deepAssign({},t,{options:{xField:"x",yField:"y",seriesField:a&&u.WORD_CLOUD_COLOR_FIELD,rawFields:i.isFunction(c)&&r.__spreadArrays(i.get(n,"rawFields",[]),["datum"]),point:{color:c,shape:"word-cloud"}}});return s.point(d).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function f(t){return o.flow(a.scale({x:{nice:!1},y:{nice:!1}}))(t)}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend(u.WORD_CLOUD_COLOR_FIELD,r),t}e.legend=d,e.adaptor=function(t){o.flow(c,f,a.tooltip,d,a.interaction,a.animation,a.theme,a.state)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.functor=e.transform=e.wordCloud=void 0;var r=n(0),i={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function a(t,e){var n=function(){var t=[256,256],e=c,n=d,r=f,i=p,a=h,o=b,w=Math.random,M=[],S=1/0,A=u,E=f,C=_,j={};function I(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(s<<5)/e,t.height=l/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function T(e,n,r){for(var i,a,s,l=n.x,u=n.y,c=Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=o(t),d=w()<.5?1:-1,p=-d;(i=f(p+=d))&&(a=~~i[0],s=~~i[1],!(Math.min(Math.abs(a),Math.abs(s))>=c));)if(n.x=l+a,n.y=u+s,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!v(n,e,t[0]))&&(!r||m(n,r))){for(var h=n.sprite,g=n.width>>5,y=t[0]>>5,b=n.x-(g<<4),x=127&b,_=32-x,O=n.y1-n.y0,P=void 0,M=(n.y+n.y0)*y+(b>>5),S=0;S>>x:0);M+=y}return delete n.sprite,!0}return!1}return j.start=function(){var o=t[0],s=t[1],l=I(C()),u=j.board?j.board:x((t[0]>>5)*t[1]),c=M.length,f=[],d=M.map((function(t,o,s){return t.text=A.call(this,t,o,s),t.font=e.call(this,t,o,s),t.style=E.call(this,t,o,s),t.weight=r.call(this,t,o,s),t.rotate=i.call(this,t,o,s),t.size=~~n.call(this,t,o,s),t.padding=a.call(this,t,o,s),t})).sort((function(t,e){return e.size-t.size})),p=-1,h=j.board?[{x:0,y:0},{x:o,y:s}]:null;function v(){for(var e=Date.now();Date.now()-e>1,n.y=s*(w()+.5)>>1,g(l,n,d,p),n.hasText&&T(u,n,h)&&(f.push(n),h?j.hasImage||y(h,n):h=[{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)}j._tags=f,j._bounds=h}return v(),j},j.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var a=r>>5,o=x((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var l=s.getImageData(0,0,r,i).data,u=0;u>5),d=u*r+c<<2,p=l[d]>=250&&l[d+1]>=250&&l[d+2]>=250?1<<31-c%32:0;o[f]|=p}j.board=o,j.hasImage=!0}},j.timeInterval=function(t){S=null==t?1/0:t},j.words=function(t){M=t},j.size=function(e){t=[+e[0],+e[1]]},j.font=function(t){e=O(t)},j.fontWeight=function(t){r=O(t)},j.rotate=function(t){i=O(t)},j.spiral=function(t){o=P[t]||t},j.fontSize=function(t){n=O(t)},j.padding=function(t){a=O(t)},j.random=function(t){w=O(t)},j}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){r.isNil(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var i=n.start()._tags;i.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var a=e.size,o=a[0],w=a[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:o,y:w,opacity:0}),i}e.wordCloud=function(t,e){return a(t,e=r.assign({},i,e))},e.transform=a;var o=Math.PI/180,s=64,l=2048;function u(t){return t.text}function c(){return"serif"}function f(){return"normal"}function d(t){return t.value}function p(){return 90*~~(2*Math.random())}function h(){return 1}function g(t,e,n,r){if(!e.sprite){var i=t.context,a=t.ratio;i.clearRect(0,0,(s<<5)/a,l/a);var u=0,c=0,f=0,d=n.length;for(--r;++r>5<<5,h=~~Math.max(Math.abs(m+b),Math.abs(m-b))}else p=p+31>>5<<5;if(h>f&&(f=h),u+p>=s<<5&&(u=0,c+=f,f=0),c+h>=l)break;i.translate((u+(p>>1))/a,(c+(h>>1))/a),e.rotate&&i.rotate(e.rotate*o),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=p,e.height=h,e.xoff=u,e.yoff=c,e.x1=p>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,u+=p}for(var _=i.getImageData(0,0,(s<<5)/a,l/a).data,O=[];--r>=0;)if((e=n[r]).hasText){for(var P=(p=e.width)>>5,w=(h=e.y1-e.y0,0);w>5),C=_[(c+A)*(s<<5)+(u+w)<<2]?1<<31-w%32:0;O[E]|=C,M|=C}M?S=A:(e.y0++,h--,A--,c++)}e.y1=e.y0+S,e.sprite=O.slice(0,(e.y1-e.y0)*P)}}}function v(t,e,n){n>>=5;for(var r,i=t.sprite,a=t.width>>5,o=t.x-(a<<4),s=127&o,l=32-s,u=t.y1-t.y0,c=(t.y+t.y0)*n+(o>>5),f=0;f>>s:0))&e[c+d])return!0;c+=n}return!1}function y(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function m(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0=0)&&(p=p?i.isArray(p)?p:[p]:[],f.layout=i.filter(p,(function(t){return"limit-in-shape"!==t.type})),f.layout.length||delete f.layout),l.label({fields:c||[s],callback:u,cfg:a.transformLabel(f)})}else a.log(a.LEVEL.WARN,null===o,"the label option must be an Object."),l.label({fields:[s]});return t}function c(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function f(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:a,endAngle:o}}),t}function d(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,l=n.yField;return a.flow(o.scale(((e={})[s]=r,e[l]=i,e)))(t)}function p(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return r?e.axis(a,r):e.axis(a,!1),i?e.axis(o,i):e.axis(o,!1),t}e.legend=c,e.adaptor=function(t){a.flow(o.pattern("sectorStyle"),l,d,u,f,p,c,o.tooltip,o.interaction,o.animation,o.theme,o.annotation(),o.state)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right"},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(0),i=n(34),a=n(131),o=n(15),s=n(521),l=n(531),u=n(1142),c=n(1143),f=n(1144),d=n(120);function p(t){var e,n=t.options,i=n.compareField,l=n.xField,u=n.yField,c=n.locale,f=n.funnelStyle,p=n.data,h=a.getLocale(c),g={label:i?{fields:[l,u,i,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],formatter:function(t){return""+t[u]}}:{fields:[l,u,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],offset:0,position:"middle",formatter:function(t){return t[l]+" "+t[u]}},tooltip:{title:l,formatter:function(t){return{name:t[l],value:t[u]}}},conversionTag:{formatter:function(t){return h.get(["conversionTag","label"])+": "+s.conversionTagFormatter.apply(void 0,t[d.FUNNEL_CONVERSATION])}}};return(i||f)&&(e=function(t){return o.deepAssign({},i&&{lineWidth:1,stroke:"#fff"},r.isFunction(f)?f(t):f)}),o.deepAssign({options:g},t,{options:{funnelStyle:e,data:r.clone(p)}})}function h(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?c.facetFunnel(t):n?u.compareFunnel(t):r?f.dynamicHeightFunnel(t):l.basicFunnel(t)}function g(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,s=n.xField,l=n.yField;return o.flow(i.scale(((e={})[s]=r,e[l]=a,e)))(t)}function v(t){return t.chart.axis(!1),t}function y(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}e.meta=g,e.adaptor=function(t){return o.flow(p,h,g,v,i.tooltip,i.interaction,y,i.animation,i.theme,i.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compareFunnel=void 0;var r=n(0),i=n(15),a=n(64),o=n(59),s=n(120),l=n(300);function u(t){var e,n=t.chart,r=t.options,i=r.data,a=void 0===i?[]:i,o=r.yField;return n.data(a),n.scale(((e={})[o]={sync:!0},e)),t}function c(t){var e=t.chart,n=t.options,u=n.data,c=n.xField,f=n.yField,d=n.color,p=n.compareField,h=n.isTransposed,g=n.tooltip,v=n.maxSize,y=n.minSize,m=n.label,b=n.funnelStyle,x=n.state;return e.facet("mirror",{fields:[p],transpose:!h,padding:h?0:[32,0,0,0],eachView:function(t,e){var n=h?e.rowIndex:e.columnIndex;h||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var _=l.transformData(e.data,u,{yField:f,maxSize:v,minSize:y});t.data(_);var O=a.getTooltipMapping(g,[c,f,p]),P=O.fields,w=O.formatter,M=h?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};o.geometry({chart:t,options:{type:"interval",xField:c,yField:s.FUNNEL_MAPPING_VALUE,colorField:c,tooltipFields:r.isArray(P)&&P.concat([s.FUNNEL_PERCENT,s.FUNNEL_CONVERSATION]),mapping:{shape:"funnel",tooltip:w,color:d,style:b},label:!1!==m&&i.deepAssign({},M,m),state:x}})}}),t}function f(t){var e=t.chart,n=t.options,r=n.conversionTag,a=n.isTransposed;return e.once("beforepaint",(function(){e.views.forEach((function(t,e){l.conversionTagComponent((function(t,n,o,l){var u=0===e?-1:1;return i.deepAssign({},l,{start:[n-.5,t[s.FUNNEL_MAPPING_VALUE]],end:[n-.5,t[s.FUNNEL_MAPPING_VALUE]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:!1!==r?u*r.offsetX:0,style:{textAlign:0===e?"end":"start"}}})}))(i.deepAssign({},{chart:t,options:n}))}))})),t}e.compareFunnel=function(t){return i.flow(u,c,f)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.facetFunnel=void 0;var r=n(15),i=n(531);function a(t){var e,n=t.chart,r=t.options,i=r.data,a=void 0===i?[]:i,o=r.yField;return n.data(a),n.scale(((e={})[o]={sync:!0},e)),t}function o(t){var e=t.chart,n=t.options,a=n.seriesField,o=n.isTransposed;return e.facet("rect",{fields:[a],padding:[o?0:32,10,0,10],eachView:function(e,n){i.basicFunnel(r.deepAssign({},t,{chart:e,options:{data:n.data}}))}}),t}e.facetFunnel=function(t){return r.flow(a,o)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicHeightFunnel=void 0;var r=n(1),i=n(0),a=n(15),o=n(120),s=n(59),l=n(64),u=n(300);function c(t){var e=t.chart,n=t.options,r=n.data,a=void 0===r?[]:r,s=n.yField,l=i.reduce(a,(function(t,e){return t+(e[s]||0)}),0),u=i.maxBy(a,s)[s],c=i.map(a,(function(t,e){var n=[],r=[];if(t[o.FUNNEL_TOTAL_PERCENT]=(t[s]||0)/l,e){var c=a[e-1][o.PLOYGON_X],f=a[e-1][o.PLOYGON_Y];n[0]=c[3],r[0]=f[3],n[1]=c[2],r[1]=f[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t[o.FUNNEL_TOTAL_PERCENT],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t[o.PLOYGON_X]=n,t[o.PLOYGON_Y]=r,t[o.FUNNEL_PERCENT]=(t[s]||0)/u,t[o.FUNNEL_CONVERSATION]=[i.get(a,[e-1,s]),t[s]],t}));return e.data(c),t}function f(t){var e=t.chart,n=t.options,r=n.xField,a=n.yField,u=n.color,c=n.tooltip,f=n.label,d=n.funnelStyle,p=n.state,h=l.getTooltipMapping(c,[r,a]),g=h.fields,v=h.formatter;return s.geometry({chart:e,options:{type:"polygon",xField:o.PLOYGON_X,yField:o.PLOYGON_Y,colorField:r,tooltipFields:i.isArray(g)&&g.concat([o.FUNNEL_PERCENT,o.FUNNEL_CONVERSATION]),label:f,state:p,mapping:{tooltip:v,color:u,style:d}}}),t}function d(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),t}function p(t){return u.conversionTagComponent((function(t,e,n,i){return r.__assign(r.__assign({},i),{start:[t[o.PLOYGON_X][1],t[o.PLOYGON_Y][1]],end:[t[o.PLOYGON_X][1]+.05,t[o.PLOYGON_Y][1]]})}))(t),t}e.dynamicHeightFunnel=function(t){return a.flow(c,f,d,p)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(1),i=n(34),a=n(43),o=n(15);function s(t){var e=t.chart,n=t.options,i=n.data,s=n.lineStyle,l=n.color,u=n.point,c=n.area;e.data(i);var f=o.deepAssign({},t,{options:{line:{style:s,color:l},point:u?r.__assign({color:l},u):u,area:c?r.__assign({color:l},c):c,label:void 0}}),d=o.deepAssign({},f,{options:{tooltip:!1}}),p=(null===u||void 0===u?void 0:u.state)||n.state,h=o.deepAssign({},f,{options:{tooltip:!1,state:p}});return a.line(f),a.point(h),a.area(d),t}function l(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,s=n.xField,l=n.yField;return o.flow(i.scale(((e={})[s]=r,e[l]=a,e)))(t)}function u(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,a=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:a}),t}function c(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,a=n.yField,o=n.yAxis;return e.axis(r,i),e.axis(a,o),t}function f(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=o.findGeometry(e,"line");if(i){var l=i.callback,u=r.__rest(i,["callback"]);s.label({fields:[a],callback:l,cfg:o.transformLabel(u)})}else s.label(!1);return t}e.adaptor=function(t){return o.flow(s,l,i.theme,u,c,i.legend,i.tooltip,f,i.interaction,i.animation,i.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=n(1147);r.registerAction("radar-tooltip",i.RadarTooltipAction),r.registerInteraction("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RadarTooltipAction=e.RadarTooltipController=void 0;var r=n(1),i=n(14),a=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(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(),o=n.shared,s=n.title,l=t.prototype.getTooltipItems.call(this,e);if(l.length>0){var u=this.view.geometries[0],c=u.dataArray,f=l[0].name,d=[];return c.forEach((function(t){t.forEach((function(t){var e=i.Util.getTooltipItems(t,u)[0];if(!o&&e&&e.name===f){var n=a.isNil(s)?f:s;d.push(r.__assign(r.__assign({},e),{name:e.title,title:n}))}else o&&e&&(n=a.isNil(s)?e.name||f:s,d.push(r.__assign(r.__assign({},e),{name:e.title,title:n})))}))})),d}return[]},e}(i.TooltipController);e.RadarTooltipController=o,i.registerComponentController("radar-tooltip",o);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(i.Action);e.RadarTooltipAction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.statistic=void 0;var r=n(1),i=n(0),a=n(34),o=n(15),s=n(43),l=n(532);function u(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,a=n.radius,u=n.outline,c=n.wave,f=n.shape;e.scale({percent:{min:0,max:1}}),e.data(l.getLiquidData(r));var d=n.color||e.getTheme().defaultColor,p=o.deepAssign({},t,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:d,style:i,shape:"liquid-fill-gauge"}}}),h=s.interval(p).ext.geometry,g={radius:a,outline:u,wave:c,shape:f,background:e.getTheme().background};return h.customInfo(g),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function c(t,e){var n=t.chart,a=t.options,s=a.statistic,l=a.percent,u=a.meta;n.getController("annotation").clear(!0);var c=i.get(u,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},f=s.content;return f&&(f=o.deepAssign({},f,{content:i.isNil(f.content)?c(l):f.content})),o.renderStatistic(n,{statistic:r.__assign(r.__assign({},s),{content:f}),plotType:"liquid"},{percent:l}),e&&n.render(!0),t}e.statistic=c,e.adaptor=function(t){return o.flow(a.theme,a.pattern("liquidStyle"),u,c,a.scale({}),a.animation,a.interaction)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0,e.DEFAULT_OPTIONS={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"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(14),a=n(0),o=n(528);function s(t,e,n){return t+(e-t)*n}function l(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function u(t,e,n,r,i,a,o){for(var s=4*Math.ceil(2*t/n*4),u=[],c=r;c<2*-Math.PI;)c+=2*Math.PI;for(;c>0;)c-=2*Math.PI;var f=a-t+(c=c/Math.PI/2*n)-2*t;u.push(["M",f,e]);for(var d=0,p=0;p0?g:v},b=l.deepAssign({},t,{options:{xField:a,yField:u.Y_FIELD,seriesField:a,rawFields:[s,u.DIFF_FIELD,u.IS_TOTAL,u.Y_FIELD],widthRatio:p,interval:{style:h,shape:"waterfall",color:m}}});return o.interval(b).ext.geometry.customInfo({leaderLine:d}),t}function p(t){var e,n,r=t.options,o=r.xAxis,s=r.yAxis,c=r.xField,f=r.yField,d=r.meta,p=l.deepAssign({},{alias:f},i.get(d,f));return l.flow(a.scale(((e={})[c]=o,e[f]=s,e[u.Y_FIELD]=s,e),l.deepAssign({},d,((n={})[u.Y_FIELD]=p,n[u.DIFF_FIELD]=p,n[u.ABSOLUTE_FIELD]=p,n))))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?(e.axis(o,!1),e.axis(u.Y_FIELD,!1)):(e.axis(o,i),e.axis(u.Y_FIELD,i)),t}function g(t){var e=t.chart,n=t.options,r=n.legend,a=n.total,o=n.risingFill,u=n.fallingFill,c=n.locale,f=s.getLocale(c);if(!1===r)e.legend(!1);else{var d=[{name:f.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:f.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:u}}}];a&&d.push({name:a.label||"",value:"total",marker:{symbol:"square",style:l.deepAssign({},{r:5},i.get(a,"style"))}}),e.legend(l.deepAssign({},{custom:!0,position:"top",items:d},r)),e.removeInteraction("legend-filter")}return t}function v(t){var e=t.chart,n=t.options,i=n.label,a=n.labelMode,o=n.xField,s=l.findGeometry(e,"interval");if(i){var c=i.callback,f=r.__rest(i,["callback"]);s.label({fields:"absolute"===a?[u.ABSOLUTE_FIELD,o]:[u.DIFF_FIELD,o],callback:c,cfg:l.transformLabel(f)})}else s.label(!1);return t}function y(t){var e=t.chart,n=t.options,i=n.tooltip,a=n.xField,o=n.yField;if(!1!==i){e.tooltip(r.__assign({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},i));var s=e.geometries[0];(null===i||void 0===i?void 0:i.formatter)?s.tooltip(a+"*"+o,i.formatter):s.tooltip(o)}else e.tooltip(!1);return t}n(1153),e.tooltip=y,e.adaptor=function(t){return l.flow(f,a.theme,d,p,h,g,y,v,a.state,a.interaction,a.animation,a.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(14),a=n(0),o=n(15);i.registerShape("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,s=t.nextPoints,l=e.addGroup(),u=this.parsePath(function(t){for(var e=[],n=0;n0,d=c>0;function p(t,e){var n=a.get(i,[t]);function r(t){return a.get(n,t)}var o={};return"x"===e?(a.isNumber(u)&&(a.isNumber(r("min"))||(o.min=f?0:2*u),a.isNumber(r("max"))||(o.max=f?2*u:0)),o):(a.isNumber(c)&&(a.isNumber(r("min"))||(o.min=d?0:2*c),a.isNumber(r("max"))||(o.max=d?2*c:0)),o)}return r.__assign(r.__assign({},i),((e={})[o]=r.__assign(r.__assign({},i[o]),p(o,"x")),e[s]=r.__assign(r.__assign({},i[s]),p(s,"y")),e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(520)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(1),i=n(0),a=n(34),o=n(15),s=n(43),l=n(537);function u(t){var e=t.chart,n=t.options,a=n.bulletStyle,u=n.targetField,c=n.rangeField,f=n.measureField,d=n.xField,p=n.color,h=n.layout,g=n.size,v=n.label,y=l.transformData(n),m=y.min,b=y.max,x=y.ds;e.data(x);var _=o.deepAssign({},t,{options:{xField:d,yField:c,seriesField:"rKey",isStack:!0,label:i.get(v,"range"),interval:{color:i.get(p,"range"),style:i.get(a,"range"),size:i.get(g,"range")}}});s.interval(_),e.geometries[0].tooltip(!1);var O=o.deepAssign({},t,{options:{xField:d,yField:f,seriesField:"mKey",isStack:!0,label:i.get(v,"measure"),interval:{color:i.get(p,"measure"),style:i.get(a,"measure"),size:i.get(g,"measure")}}});s.interval(O);var P=o.deepAssign({},t,{options:{xField:d,yField:u,seriesField:"tKey",label:i.get(v,"target"),point:{color:i.get(p,"target"),style:i.get(a,"target"),size:i.isFunction(i.get(g,"target"))?function(t){return i.get(g,"target")(t)/2}:i.get(g,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}});return s.point(P),"horizontal"===h&&e.coordinate().transpose(),r.__assign(r.__assign({},t),{ext:{data:{min:m,max:b}}})}function c(t){var e,n,r=t.options,i=t.ext,s=r.xAxis,l=r.yAxis,u=r.targetField,c=r.rangeField,f=r.measureField,d=r.xField,p=i.data;return o.flow(a.scale(((e={})[d]=s,e[f]=l,e),((n={})[f]={min:null===p||void 0===p?void 0:p.min,max:null===p||void 0===p?void 0:p.max,sync:!0},n[u]={sync:""+f},n[c]={sync:""+f},n)))(t)}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.measureField,s=n.rangeField,l=n.targetField;return e.axis(""+s,!1),e.axis(""+l,!1),!1===r?e.axis(""+a,!1):e.axis(""+a,r),!1===i?e.axis(""+o,!1):e.axis(""+o,i),t}function d(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function p(t){var e=t.chart,n=t.options,a=n.label,s=n.measureField,l=n.targetField,u=n.rangeField,c=e.geometries,f=c[0],d=c[1],p=c[2];return i.get(a,"range")?f.label(""+u,r.__assign({layout:[{type:"limit-in-plot"}]},o.transformLabel(a.range))):f.label(!1),i.get(a,"measure")?d.label(""+s,r.__assign({layout:[{type:"limit-in-plot"}]},o.transformLabel(a.measure))):d.label(!1),i.get(a,"target")?p.label(""+l,r.__assign({layout:[{type:"limit-in-plot"}]},o.transformLabel(a.target))):p.label(!1),t}e.meta=c,e.adaptor=function(t){o.flow(u,c,f,d,a.theme,p,a.tooltip,a.interaction,a.animation)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.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}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flow=function(){for(var t=[],e=0;e0&&function(t,e,n){(function(t,e,n){var i=t.view,a=t.geometry,o=t.group,s=t.options,l=t.horizontal,c=s.offset,f=s.size,d=s.arrow,p=i.getCoordinate(),h=u(p,e)[l?3:0],g=u(p,n)[l?0:3],v=g.y-h.y,y=g.x-h.x;if("boolean"!==typeof d){var m,b=d.headSize,x=s.spacing;l?(y-b)/2_){var P=O/y.length,w=Math.max(1,Math.ceil(_/P)-1),M=y.slice(0,w)+"...";x.attr("text",M)}}}}(t,e,n)}(c,p[e-1],t)}))}})),s}};var r=n(1),i=n(0),a=n(14),o=n(7),s=n(551);function l(t,e){return(0,o.deepAssign)({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:s.conversionTagFormatter}},t)}function u(t,e){return(0,i.map)(e.getModel().points,(function(e){return t.convertPoint(e)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connectedArea=function(t){return void 0===t&&(t=!1),function(e){var n=e.chart,r=e.options.connectedArea,o=function(){n.removeInteraction(i.hover),n.removeInteraction(i.click)};if(!t&&r){var s=r.trigger||"hover";o(),n.interaction(i[s],{start:a(s,r.style)})}else o();return e}};var r=n(14),i={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},a=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}]}]};(0,r.registerInteraction)(i.hover,{start:a(i.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),(0,r.registerInteraction)(i.click,{start:a(i.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getInteractionCfg=o;var r=n(14),i=n(1199);function a(t){return t.isInPlot()}function o(t,e,n){var r=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a,action:["brush:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:a,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:a,action:["brush:filter","brush:end",r+"-mask:end",r+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":case"brush-x-highlight":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:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a,action:["brush-x:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:a,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:a,action:["brush-x:filter","brush-x:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a,action:["brush-y:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:a,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:a,action:["brush-y:filter","brush-y:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};default:return{}}}(0,r.registerAction)("brush-reset-button",i.ButtonAction,{name:"brush-reset-button"}),(0,r.registerInteraction)("filter-action",{}),(0,r.registerInteraction)("brush",o("brush")),(0,r.registerInteraction)("brush-highlight",o("brush-highlight")),(0,r.registerInteraction)("brush-x",o("brush-x","x-rect")),(0,r.registerInteraction)("brush-y",o("brush-y","y-rect")),(0,r.registerInteraction)("brush-x-highlight",o("brush-x-highlight","x-rect")),(0,r.registerInteraction)("brush-y-highlight",o("brush-y-highlight","y-rect"))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonAction=e.BUTTON_ACTION_CONFIG=void 0;var r=n(1),i=n(14),a=n(0),o=n(7),s={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"}}};e.BUTTON_ACTION_CONFIG=s;var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=(0,r.__assign)({name:"button"},s),e}return(0,r.__extends)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=(0,a.get)(t,["interactions","filter-action","cfg","buttonConfig"]);return(0,o.deepAssign)(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,r.__assign)({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(),a=(0,o.normalPadding)(i.padding),s=t.addShape({type:"rect",name:"button-rect",attrs:(0,r.__assign)({x:e.x-a[3],y:e.y-a[0],width:e.width+a[1]+a[3],height:e.height+a[0]+a[2]},null===(n=i.buttonStyle)||void 0===n?void 0:n.default)});return s.toBack(),t.on("mouseenter",(function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.default)})),s},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.Util.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},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}(i.Action);e.ButtonAction=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieLegendAction=void 0;var r=n(1),i=n(14),a=n(0),o=n(561),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getActiveElements=function(){var t=i.Util.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,a=n.get("field");if(a)return e.geometries[0].elements.filter((function(t){return t.getModel().data[a]===r.value}))}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter((function(t){return e.find((function(e){return(0,a.isEqual)(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,r){var a=n[r],s=e.geometry.coordinate;if(s.isPolar&&s.isTransposed){var l=i.Util.getAngle(e.getModel(),s),u=(l.startAngle+l.endAngle)/2,c=t,f=c*Math.cos(u),d=c*Math.sin(u);e.shape.setMatrix((0,o.transform)([["t",f,d]])),a.setMatrix((0,o.transform)([["t",f,d]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(i.Action);e.PieLegendAction=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.StatisticAction=void 0;var i=r(n(6)),a=n(1),o=n(14),s=n(0),l=n(542),u=n(1204),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).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,r=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var a=(0,s.get)(r,["data","data"]);if(r.type.match("legend-item")){var c=o.Util.getDelegationObject(this.context),f=n.getGroupedFields()[0];if(c&&f){var d=c.item;a=n.getData().find((function(t){return t[f]===d.value}))}}if(a){var p=(0,s.get)(t,"annotations",[]),h=(0,s.get)(t,"statistic",{});n.getController("annotation").clear(!0),(0,s.each)(p,(function(t){"object"===(0,i.default)(t)&&n.annotation()[t.type](t)})),(0,l.renderStatistic)(n,{statistic:h,plotType:"pie"},a),n.render(!0)}var g=(0,u.getCurrentElement)(this.context);g&&g.shape.toFront()},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();(0,s.each)(e,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(o.Action);e.StatisticAction=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentElement=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rose=void 0;var r=n(1),i=n(19),a=n(1206),o=n(1207),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},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 a.adaptor},e}(i.Plot);e.Rose=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){(0,a.flow)((0,o.pattern)("sectorStyle"),l,d,u,f,p,c,o.tooltip,o.interaction,o.animation,o.theme,(0,o.annotation)(),o.state)(t)},e.legend=c;var r=n(1),i=n(0),a=n(7),o=n(22),s=n(30);function l(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,o=n.color;return e.data(r),(0,a.flow)(s.interval)((0,a.deepAssign)({},t,{options:{marginRatio:1,interval:{style:i,color:o}}})),t}function u(t){var e=t.chart,n=t.options,o=n.label,s=n.xField,l=(0,a.findGeometry)(e,"interval");if(!1===o)l.label(!1);else if((0,i.isObject)(o)){var u=o.callback,c=o.fields,f=(0,r.__rest)(o,["callback","fields"]),d=f.offset,p=f.layout;(void 0===d||d>=0)&&(p=p?(0,i.isArray)(p)?p:[p]:[],f.layout=(0,i.filter)(p,(function(t){return"limit-in-shape"!==t.type})),f.layout.length||delete f.layout),l.label({fields:c||[s],callback:u,cfg:(0,a.transformLabel)(f)})}else(0,a.log)(a.LEVEL.WARN,null===o,"the label option must be an Object."),l.label({fields:[s]});return t}function c(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function f(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:a,endAngle:o}}),t}function d(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,l=n.yField;return(0,a.flow)((0,o.scale)(((e={})[s]=r,e[l]=i,e)))(t)}function p(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return r?e.axis(a,r):e.axis(a,!1),i?e.axis(o,i):e.axis(o,!1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right"},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordCloud=void 0;var r=n(1),i=n(19),a=n(1209),o=n(563),s=n(562);n(1211);var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData((0,s.transform)({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 a=function(i){e.options=(0,r.__assign)((0,r.__assign)({},e.options),{imageMask:i||null}),t.prototype.render.call(e),n()};(0,s.processImageMask)(i).then(a).catch(a)}))},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))},e}(i.Plot);e.WordCloud=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){(0,o.flow)(c,f,a.tooltip,d,a.interaction,a.animation,a.theme,a.state)(t)},e.legend=d;var r=n(1),i=n(0),a=n(22),o=n(7),s=n(30),l=n(562),u=n(563);function c(t){var e=t.chart,n=t.options,a=n.colorField,c=n.color,f=(0,l.transform)(t);e.data(f);var d=(0,o.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:a&&u.WORD_CLOUD_COLOR_FIELD,rawFields:(0,i.isFunction)(c)&&(0,r.__spreadArrays)((0,i.get)(n,"rawFields",[]),["datum"]),point:{color:c,shape:"word-cloud"}}});return(0,s.point)(d).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function f(t){return(0,o.flow)((0,a.scale)({x:{nice:!1},y:{nice:!1}}))(t)}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend(u.WORD_CLOUD_COLOR_FIELD,r),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.functor=O,e.transform=a,e.wordCloud=function(t,e){return e=(0,r.assign)({},i,e),a(t,e)};var r=n(0),i={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function a(t,e){var n=function(){var t=[256,256],e=c,n=d,r=f,i=p,a=h,o=b,w=Math.random,M=[],S=1/0,A=u,E=f,C=_,j={};function I(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(s<<5)/e,t.height=l/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function T(e,n,r){for(var i,a,s,l=n.x,u=n.y,c=Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=o(t),d=w()<.5?1:-1,p=-d;(i=f(p+=d))&&(a=~~i[0],s=~~i[1],!(Math.min(Math.abs(a),Math.abs(s))>=c));)if(n.x=l+a,n.y=u+s,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!v(n,e,t[0]))&&(!r||m(n,r))){for(var h=n.sprite,g=n.width>>5,y=t[0]>>5,b=n.x-(g<<4),x=127&b,_=32-x,O=n.y1-n.y0,P=void 0,M=(n.y+n.y0)*y+(b>>5),S=0;S>>x:0);M+=y}return delete n.sprite,!0}return!1}return j.start=function(){var o=t[0],s=t[1],l=I(C()),u=j.board?j.board:x((t[0]>>5)*t[1]),c=M.length,f=[],d=M.map((function(t,o,s){return t.text=A.call(this,t,o,s),t.font=e.call(this,t,o,s),t.style=E.call(this,t,o,s),t.weight=r.call(this,t,o,s),t.rotate=i.call(this,t,o,s),t.size=~~n.call(this,t,o,s),t.padding=a.call(this,t,o,s),t})).sort((function(t,e){return e.size-t.size})),p=-1,h=j.board?[{x:0,y:0},{x:o,y:s}]:null;function v(){for(var e=Date.now();Date.now()-e>1,n.y=s*(w()+.5)>>1,g(l,n,d,p),n.hasText&&T(u,n,h)&&(f.push(n),h?j.hasImage||y(h,n):h=[{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)}j._tags=f,j._bounds=h}return v(),j},j.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var a=r>>5,o=x((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var l=s.getImageData(0,0,r,i).data,u=0;u>5),d=u*r+c<<2,p=l[d]>=250&&l[d+1]>=250&&l[d+2]>=250?1<<31-c%32:0;o[f]|=p}j.board=o,j.hasImage=!0}},j.timeInterval=function(t){S=null==t?1/0:t},j.words=function(t){M=t},j.size=function(e){t=[+e[0],+e[1]]},j.font=function(t){e=O(t)},j.fontWeight=function(t){r=O(t)},j.rotate=function(t){i=O(t)},j.spiral=function(t){o=P[t]||t},j.fontSize=function(t){n=O(t)},j.padding=function(t){a=O(t)},j.random=function(t){w=O(t)},j}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){(0,r.isNil)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var i=n.start()._tags;i.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var a=e.size,o=a[0],w=a[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:o,y:w,opacity:0}),i}var o=Math.PI/180,s=64,l=2048;function u(t){return t.text}function c(){return"serif"}function f(){return"normal"}function d(t){return t.value}function p(){return 90*~~(2*Math.random())}function h(){return 1}function g(t,e,n,r){if(!e.sprite){var i=t.context,a=t.ratio;i.clearRect(0,0,(s<<5)/a,l/a);var u=0,c=0,f=0,d=n.length;for(--r;++r>5<<5,h=~~Math.max(Math.abs(m+b),Math.abs(m-b))}else p=p+31>>5<<5;if(h>f&&(f=h),u+p>=s<<5&&(u=0,c+=f,f=0),c+h>=l)break;i.translate((u+(p>>1))/a,(c+(h>>1))/a),e.rotate&&i.rotate(e.rotate*o),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=p,e.height=h,e.xoff=u,e.yoff=c,e.x1=p>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,u+=p}for(var _=i.getImageData(0,0,(s<<5)/a,l/a).data,O=[];--r>=0;)if((e=n[r]).hasText){for(var P=(p=e.width)>>5,w=(h=e.y1-e.y0,0);w>5),C=_[(c+A)*(s<<5)+(u+w)<<2]?1<<31-w%32:0;O[E]|=C,M|=C}M?S=A:(e.y0++,h--,A--,c++)}e.y1=e.y0+S,e.sprite=O.slice(0,(e.y1-e.y0)*P)}}}function v(t,e,n){n>>=5;for(var r,i=t.sprite,a=t.width>>5,o=t.x-(a<<4),s=127&o,l=32-s,u=t.y1-t.y0,c=(t.y+t.y0)*n+(o>>5),f=0;f>>s:0))&e[c+d])return!0;c+=n}return!1}function y(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function m(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y00,d=c>0;function p(t,e){var n=(0,a.get)(i,[t]);function r(t){return(0,a.get)(n,t)}var o={};return"x"===e?((0,a.isNumber)(u)&&((0,a.isNumber)(r("min"))||(o.min=f?0:2*u),(0,a.isNumber)(r("max"))||(o.max=f?2*u:0)),o):((0,a.isNumber)(c)&&((0,a.isNumber)(r("min"))||(o.min=d?0:2*c),(0,a.isNumber)(r("max"))||(o.max=d?2*c:0)),o)}return(0,r.__assign)((0,r.__assign)({},i),((e={})[o]=(0,r.__assign)((0,r.__assign)({},i[o]),p(o,"x")),e[s]=(0,r.__assign)((0,r.__assign)({},i[s]),p(s,"y")),e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";n(566)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Radar=void 0;var r=n(1),i=n(19),a=n(7),o=n(1216);n(1217);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}return(0,r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return(0,a.deepAssign)({},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 o.adaptor},e}(i.Plot);e.Radar=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(s,l,i.theme,u,c,i.legend,i.tooltip,f,i.interaction,i.animation,(0,i.annotation)())(t)};var r=n(1),i=n(22),a=n(30),o=n(7);function s(t){var e=t.chart,n=t.options,i=n.data,s=n.lineStyle,l=n.color,u=n.point,c=n.area;e.data(i);var f=(0,o.deepAssign)({},t,{options:{line:{style:s,color:l},point:u?(0,r.__assign)({color:l},u):u,area:c?(0,r.__assign)({color:l},c):c,label:void 0}}),d=(0,o.deepAssign)({},f,{options:{tooltip:!1}}),p=(null===u||void 0===u?void 0:u.state)||n.state,h=(0,o.deepAssign)({},f,{options:{tooltip:!1,state:p}});return(0,a.line)(f),(0,a.point)(h),(0,a.area)(d),t}function l(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,s=n.xField,l=n.yField;return(0,o.flow)((0,i.scale)(((e={})[s]=r,e[l]=a,e)))(t)}function u(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,a=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:a}),t}function c(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,a=n.yField,o=n.yAxis;return e.axis(r,i),e.axis(a,o),t}function f(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=(0,o.findGeometry)(e,"line");if(i){var l=i.callback,u=(0,r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:(0,o.transformLabel)(u)})}else s.label(!1);return t}},function(t,e,n){"use strict";var r=n(14),i=n(1218);(0,r.registerAction)("radar-tooltip",i.RadarTooltipAction),(0,r.registerInteraction)("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RadarTooltipController=e.RadarTooltipAction=void 0;var r=n(1),i=n(14),a=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(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(),o=n.shared,s=n.title,l=t.prototype.getTooltipItems.call(this,e);if(l.length>0){var u=this.view.geometries[0],c=u.dataArray,f=l[0].name,d=[];return c.forEach((function(t){t.forEach((function(t){var e=i.Util.getTooltipItems(t,u)[0];if(!o&&e&&e.name===f){var n=(0,a.isNil)(s)?f:s;d.push((0,r.__assign)((0,r.__assign)({},e),{name:e.title,title:n}))}else o&&e&&(n=(0,a.isNil)(s)?e.name||f:s,d.push((0,r.__assign)((0,r.__assign)({},e),{name:e.title,title:n})))}))})),d}return[]},e}(i.TooltipController);e.RadarTooltipController=o,(0,i.registerComponentController)("radar-tooltip",o);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(i.Action);e.RadarTooltipAction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DualAxes=void 0;var r=n(1),i=n(19),a=n(7),o=n(1220),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}return(0,r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return(0,a.deepAssign)({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.DualAxes=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,s.flow)(g,v,w,y,b,x,S,_,O,P,M,m,A,E)(t)},e.animation=M,e.annotation=P,e.axis=x,e.color=m,e.interaction=O,e.legend=A,e.limitInPlot=S,e.meta=b,e.slider=E,e.theme=w,e.tooltip=_,e.transformOptions=g;var r=n(1),i=n(0),a=n(22),o=n(123),s=n(7),l=n(540),u=n(305),c=n(1221),f=n(1222),d=n(1223),p=n(567),h=n(568);function g(t){var e,n=t.options,r=n.geometryOptions,a=void 0===r?[]:r,o=n.xField,l=n.yField,c=(0,i.every)(a,(function(t){var e=t.geometry;return e===p.DualAxesGeometry.Line||void 0===e}));return(0,s.deepAssign)({},{options:{geometryOptions:[],meta:(e={},e[o]={type:"cat",sync:!0,range:c?[0,1]:void 0},e),tooltip:{showMarkers:c,showCrosshairs:c,shared:!0,crosshairs:{type:"x"}},interactions:c?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:(0,u.transformObjectToArray)(l,n.yAxis),geometryOptions:[(0,u.getGeometryOption)(o,l[0],a[0]),(0,u.getGeometryOption)(o,l[1],a[1])],annotations:(0,u.transformObjectToArray)(l,n.annotations)}})}function v(t){var e,n,r=t.chart,i=t.options.geometryOptions,a={line:0,column:1};return[{type:null===(e=i[0])||void 0===e?void 0:e.geometry,id:h.LEFT_AXES_VIEW},{type:null===(n=i[1])||void 0===n?void 0:n.geometry,id:h.RIGHT_AXES_VIEW}].sort((function(t,e){return-a[t.type]+a[e.type]})).forEach((function(t){return r.createView({id:t.id})})),t}function y(t){var e=t.chart,n=t.options,i=n.xField,a=n.yField,s=n.geometryOptions,c=n.data,d=n.tooltip;return[(0,r.__assign)((0,r.__assign)({},s[0]),{id:h.LEFT_AXES_VIEW,data:c[0],yField:a[0]}),(0,r.__assign)((0,r.__assign)({},s[1]),{id:h.RIGHT_AXES_VIEW,data:c[1],yField:a[1]})].forEach((function(t){var n=t.id,a=t.data,s=t.yField,c=(0,u.isColumn)(t)&&t.isPercent,p=c?(0,o.percent)(a,s,i,s):a,h=(0,l.findViewById)(e,n).data(p),g=c?(0,r.__assign)({formatter:function(e){return{name:e[t.seriesField]||s,value:(100*Number(e[s])).toFixed(2)+"%"}}},d):d;(0,f.drawSingleGeometry)({chart:h,options:{xField:i,yField:s,tooltip:g,geometryOption:t}})})),t}function m(t){var e,n=t.chart,r=t.options.geometryOptions,a=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],o=0;return n.once("beforepaint",(function(){(0,i.each)(r,(function(t,e){var r=(0,l.findViewById)(n,0===e?h.LEFT_AXES_VIEW:h.RIGHT_AXES_VIEW);if(!t.color){var s=r.getGroupScales(),u=(0,i.get)(s,[0,"values","length"],1),c=a.slice(o,o+u).concat(0===e?[]:a);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,c):e.color(c[0])})),o+=u}})),n.render(!0)})),t}function b(t){var e,n,r=t.chart,i=t.options,o=i.xAxis,u=i.yAxis,c=i.xField,f=i.yField;return(0,a.scale)(((e={})[c]=o,e[f[0]]=u[0],e))((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(r,h.LEFT_AXES_VIEW)})),(0,a.scale)(((n={})[c]=o,n[f[1]]=u[1],n))((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(r,h.RIGHT_AXES_VIEW)})),t}function x(t){var e=t.chart,n=t.options,r=(0,l.findViewById)(e,h.LEFT_AXES_VIEW),i=(0,l.findViewById)(e,h.RIGHT_AXES_VIEW),a=n.xField,o=n.yField,s=n.xAxis,c=n.yAxis;return e.axis(a,!1),e.axis(o[0],!1),e.axis(o[1],!1),r.axis(a,s),r.axis(o[0],(0,u.getYAxisWithDefault)(c[0],p.AxisType.Left)),i.axis(a,!1),i.axis(o[1],(0,u.getYAxisWithDefault)(c[1],p.AxisType.Right)),t}function _(t){var e=t.chart,n=t.options.tooltip,r=(0,l.findViewById)(e,h.LEFT_AXES_VIEW),i=(0,l.findViewById)(e,h.RIGHT_AXES_VIEW);return e.tooltip(n),r.tooltip({shared:!0}),i.tooltip({shared:!0}),t}function O(t){var e=t.chart;return(0,a.interaction)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.LEFT_AXES_VIEW)})),(0,a.interaction)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.RIGHT_AXES_VIEW)})),t}function P(t){var e=t.chart,n=t.options.annotations,r=(0,i.get)(n,[0]),o=(0,i.get)(n,[1]);return(0,a.annotation)(r)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.LEFT_AXES_VIEW),options:{annotations:r}})),(0,a.annotation)(o)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.RIGHT_AXES_VIEW),options:{annotations:o}})),t}function w(t){var e=t.chart;return(0,a.theme)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.LEFT_AXES_VIEW)})),(0,a.theme)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.RIGHT_AXES_VIEW)})),(0,a.theme)(t),t}function M(t){var e=t.chart;return(0,a.animation)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.LEFT_AXES_VIEW)})),(0,a.animation)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.RIGHT_AXES_VIEW)})),t}function S(t){var e=t.chart,n=t.options.yAxis;return(0,a.limitInPlot)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.LEFT_AXES_VIEW),options:{yAxis:n[0]}})),(0,a.limitInPlot)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.RIGHT_AXES_VIEW),options:{yAxis:n[1]}})),t}function A(t){var e=t.chart,n=t.options,r=n.legend,a=n.geometryOptions,o=n.yField,u=n.data,f=(0,l.findViewById)(e,h.LEFT_AXES_VIEW),d=(0,l.findViewById)(e,h.RIGHT_AXES_VIEW);if(!1===r)e.legend(!1);else if((0,i.isObject)(r)&&!0===r.custom)e.legend(r);else{var p=(0,i.get)(a,[0,"legend"],r),g=(0,i.get)(a,[1,"legend"],r);e.once("beforepaint",(function(){var t=u[0].length?(0,c.getViewLegendItems)({view:f,geometryOption:a[0],yField:o[0],legend:p}):[],n=u[1].length?(0,c.getViewLegendItems)({view:d,geometryOption:a[1],yField:o[1],legend:g}):[];e.legend((0,s.deepAssign)({},r,{custom:!0,items:t.concat(n)}))})),a[0].seriesField&&f.legend(a[0].seriesField,p),a[1].seriesField&&d.legend(a[1].seriesField,g),e.on("legend-item:click",(function(t){var n=(0,i.get)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,a=r.value,s=r.isGeometry,u=r.viewId;if(s){if((0,i.findIndex)(o,(function(t){return t===a}))>-1){var c=(0,i.get)((0,l.findViewById)(e,u),"geometries");(0,i.each)(c,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var f=(0,i.get)(e.getController("legend"),"option.items",[]);(0,i.each)(e.views,(function(t){var n=t.getGroupScales();(0,i.each)(n,(function(e){e.values&&e.values.indexOf(a)>-1&&t.filter(e.field,(function(t){return!(0,i.find)(f,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))}return t}function E(t){var e=t.chart,n=t.options.slider,r=(0,l.findViewById)(e,h.LEFT_AXES_VIEW),a=(0,l.findViewById)(e,h.RIGHT_AXES_VIEW);return n&&(r.option("slider",n),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,r=e.originValue;(0,i.isEqual)(n,r)||(0,d.doSliderFilter)(a,n)})),e.once("afterpaint",(function(){if(!(0,i.isBoolean)(n)){var t=n.start,e=n.end;(t||e)&&(0,d.doSliderFilter)(a,[t,e])}}))),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getViewLegendItems=function(t){var e=t.view,n=t.geometryOption,s=t.yField,l=t.legend,u=(0,r.get)(l,"marker"),c=(0,a.findGeometry)(e,(0,o.isLine)(n)?"line":"interval");if(!n.seriesField){var f=(0,r.get)(e,"options.scales."+s+".alias")||s,d=c.getAttribute("color"),p=e.getTheme().defaultColor;return d&&(p=i.Util.getMappingValue(d,f,(0,r.get)(d,["values",0],p))),[{value:s,name:f,marker:((0,r.isFunction)(u)?u:!(0,r.isEmpty)(u)&&(0,a.deepAssign)({},{style:{stroke:p,fill:p}},u))||((0,o.isLine)(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:p}}:{symbol:"square",style:{fill:p}}),isGeometry:!0,viewId:e.id}]}var h=c.getGroupAttributes();return(0,r.reduce)(h,(function(t,n){var r=i.Util.getLegendItems(e,c,n,e.getTheme(),u);return t.concat(r)}),[])};var r=n(0),i=n(14),a=n(7),o=n(305)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.drawSingleGeometry=function(t){var e=t.options,n=t.chart,u=e.geometryOption,c=u.isStack,f=u.color,d=u.seriesField,p=u.groupField,h=u.isGroup,g=["xField","yField"];if((0,l.isLine)(u)){(0,a.line)((0,o.deepAssign)({},t,{options:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,o.pick)(e,g)),u),{line:{color:u.color,style:u.lineStyle}})})),(0,a.point)((0,o.deepAssign)({},t,{options:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,o.pick)(e,g)),u),{point:u.point&&(0,r.__assign)({color:f,shape:"circle"},u.point)})}));var v=[];h&&v.push({type:"dodge",dodgeBy:p||d,customOffset:0}),c&&v.push({type:"stack"}),v.length&&(0,i.each)(n.geometries,(function(t){t.adjust(v)}))}return(0,l.isColumn)(u)&&(0,s.adaptor)((0,o.deepAssign)({},t,{options:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,o.pick)(e,g)),u),{widthRatio:u.columnWidthRatio,interval:(0,r.__assign)((0,r.__assign)({},(0,o.pick)(u,["color"])),{style:u.columnStyle})})})),t};var r=n(1),i=n(0),a=n(30),o=n(7),s=n(198),l=n(305)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doSliderFilter=void 0;var r=n(0),i=n(7);e.doSliderFilter=function(t,e){var n=e[0],a=e[1],o=t.getOptions().data,s=t.getXScale(),l=(0,r.size)(o);if(s&&l){var u=(0,r.valuesOfKey)(o,s.field),c=u,f=(0,r.size)(c),d=Math.floor(n*(f-1)),p=Math.floor(a*(f-1));t.filter(s.field,(function(t){var e=c.indexOf(t);return!(e>-1)||(0,i.isBetween)(e,d,p)})),t.render(!0)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_TOOLTIP_OPTIONS=e.DEFAULT_OPTIONS=void 0;var r=n(1),i=n(0),a={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+(0,i.get)(e,[0,"data","y"],0)},containerTpl:'
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}};e.DEFAULT_TOOLTIP_OPTIONS=a;var o={appendPadding:2,tooltip:(0,r.__assign)({},a),animation:{}};e.DEFAULT_OPTIONS=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(1),i=n(156),a={appendPadding:2,tooltip:(0,r.__assign)({},i.DEFAULT_TOOLTIP_OPTIONS),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}};e.DEFAULT_OPTIONS=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0,e.DEFAULT_OPTIONS={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:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Heatmap=void 0;var r=n(1),i=n(19),a=n(1228),o=n(1229);n(1230),n(1231);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(i.Plot);e.Heatmap=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,a.flow)(o.theme,(0,o.pattern)("heatmapStyle"),c,h,u,f,d,o.tooltip,p,(0,o.annotation)(),o.interaction,o.animation,o.state)(t)};var r=n(1),i=n(0),a=n(7),o=n(22),s=n(49),l=n(65);function u(t){var e=t.chart,n=t.options,r=n.data,o=n.type,u=n.xField,c=n.yField,f=n.colorField,d=n.sizeField,p=n.sizeRatio,h=n.shape,g=n.color,v=n.tooltip,y=n.heatmapStyle;e.data(r);var m="polygon";"density"===o&&(m="heatmap");var b=(0,l.getTooltipMapping)(v,[u,c,f]),x=b.fields,_=b.formatter,O=1;return(p||0===p)&&(h||d?p<0||p>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):O=p:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),(0,s.geometry)((0,a.deepAssign)({},t,{options:{type:m,colorField:f,tooltipFields:x,shapeField:d||"",label:void 0,mapping:{tooltip:_,shape:h&&(d?function(t){var e=r.map((function(t){return t[d]})),n=Math.min.apply(Math,e),a=Math.max.apply(Math,e);return[h,((0,i.get)(t,d)-n)/(a-n),O]}:function(){return[h,1,O]}),color:g||f&&e.getTheme().sequenceColors.join("-"),style:y}}})),t}function c(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,l=n.yField;return(0,a.flow)((0,o.scale)(((e={})[s]=r,e[l]=i,e)))(t)}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(o,!1):e.axis(o,i),t}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,a=n.sizeField,o=n.sizeLegend,s=!1!==r;return i&&e.legend(i,!!s&&r),a&&e.legend(a,void 0===o?r:o),s||o||e.legend(!1),t}function p(t){var e=t.chart,n=t.options,i=n.label,o=n.colorField,s=n.type,l=(0,a.findGeometry)(e,"density"===s?"heatmap":"polygon");if(i){if(o){var u=i.callback,c=(0,r.__rest)(i,["callback"]);l.label({fields:[o],callback:u,cfg:(0,a.transformLabel)(c)})}}else l.label(!1);return t}function h(t){var e=t.chart,n=t.options,r=n.coordinate,i=n.reflect;return r&&e.coordinate({type:r.type||"rect",cfg:r.cfg}),i&&e.coordinate().reflect(i),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.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"}}}}});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";var r=n(1);(0,n(14).registerShape)("polygon","circle",{draw:function(t,e){var n,i,a=t.x,o=t.y,s=this.parsePoints(t.points),l=Math.abs(s[2].x-s[1].x),u=Math.abs(s[1].y-s[0].y),c=Math.min(l,u)/2,f=Number(t.shape[1]),d=Number(t.shape[2]),p=c*Math.sqrt(d)*Math.sqrt(f),h=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)((0,r.__assign)({x:a,y:o,r:p},t.defaultStyle),t.style),{fill:h})})}})},function(t,e,n){"use strict";var r=n(1);(0,n(14).registerShape)("polygon","square",{draw:function(t,e){var n,i,a=t.x,o=t.y,s=this.parsePoints(t.points),l=Math.abs(s[2].x-s[1].x),u=Math.abs(s[1].y-s[0].y),c=Math.min(l,u),f=Number(t.shape[1]),d=Number(t.shape[2]),p=c*Math.sqrt(d)*Math.sqrt(f),h=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("rect",{attrs:(0,r.__assign)((0,r.__assign)((0,r.__assign)({x:a-p/2,y:o-p/2,width:p,height:p},t.defaultStyle),t.style),{fill:h})})}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Box=void 0;var r=n(1),i=n(19),a=n(1233),o=n(582),s=n(308),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return t.id===s.OUTLIERS_VIEW_ID}));n&&n.data(t),this.chart.changeData((0,o.transformData)(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Box=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,s.flow)(f,d,p,h,g,a.tooltip,a.interaction,a.animation,a.theme)(t)},e.legend=g;var r=n(1),i=n(0),a=n(22),o=n(30),s=n(7),l=n(99),u=n(308),c=n(582);function f(t){var e=t.chart,n=t.options,r=n.xField,a=n.yField,l=n.groupField,f=n.color,d=n.tooltip,p=n.boxStyle;e.data((0,c.transformData)(n.data,a));var h=(0,i.isArray)(a)?u.BOX_RANGE:a,g=a?(0,i.isArray)(a)?a:[a]:[],v=d;!1!==v&&(v=(0,s.deepAssign)({},{fields:(0,i.isArray)(a)?a:[]},v));var y=(0,o.schema)((0,s.deepAssign)({},t,{options:{xField:r,yField:h,seriesField:l,tooltip:v,rawFields:g,label:!1,schema:{shape:"box",color:f,style:p}}})).ext;return l&&y.geometry.adjust("dodge"),t}function d(t){var e=t.chart,n=t.options,i=n.xField,a=n.data,s=n.outliersField,l=n.outliersStyle,c=n.padding,f=n.label;if(!s)return t;var d=e.createView({padding:c,id:u.OUTLIERS_VIEW_ID}),p=a.reduce((function(t,e){return e[s].forEach((function(n){var i;return t.push((0,r.__assign)((0,r.__assign)({},e),((i={})[s]=n,i)))})),t}),[]);return d.data(p),(0,o.point)({chart:d,options:{xField:i,yField:s,point:{shape:"circle",style:l},label:f}}),d.axis(!1),t}function p(t){var e,n,r=t.chart,i=t.options,a=i.meta,o=i.xAxis,c=i.yAxis,f=i.xField,d=i.yField,p=i.outliersField,h=Array.isArray(d)?u.BOX_RANGE:d,g={};if(p){var v=u.BOX_SYNC_NAME;(e={})[p]={sync:v,nice:!0},e[h]={sync:v,nice:!0},g=e}var y=(0,s.deepAssign)(g,a,((n={})[f]=(0,s.pick)(o,l.AXIS_META_CONFIG_KEYS),n[h]=(0,s.pick)(c,l.AXIS_META_CONFIG_KEYS),n));return r.scale(y),t}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField,s=Array.isArray(o)?u.BOX_RANGE:o;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(u.BOX_RANGE,!1):e.axis(s,i),t}function g(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Violin=void 0;var r=n(1),i=n(19),a=n(1235),o=n(584),s=n(583),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData((0,s.transformViolinData)(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Violin=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,u.flow)(s.theme,g,v,y,m,s.tooltip,b,x,s.interaction,_,O)(t)},e.animation=O;var i=r(n(6)),a=n(1),o=n(0),s=n(22),l=n(30),u=n(7),c=n(99),f=n(583),d=n(584),p=["low","high","q1","q3","median"],h=[{type:"dodge",marginRatio:1/32}];function g(t){var e=t.chart,n=t.options;return e.data((0,f.transformViolinData)(n)),t}function v(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.shape,s=void 0===o?"violin":o,u=n.violinStyle,c=n.tooltip,f=n.state,g=e.createView({id:d.VIOLIN_VIEW_ID});return(0,l.violin)({chart:g,options:{xField:d.X_FIELD,yField:d.VIOLIN_Y_FIELD,seriesField:r||d.X_FIELD,sizeField:d.VIOLIN_SIZE_FIELD,tooltip:(0,a.__assign)({fields:p},c),violin:{style:u,color:i,shape:s},state:f}}),g.geometries[0].adjust(h),t}function y(t){var e=t.chart,n=t.options,r=n.seriesField,o=n.color,s=n.tooltip,u=n.box;if(!1===u)return t;var c=e.createView({id:d.MIN_MAX_VIEW_ID});(0,l.interval)({chart:c,options:{xField:d.X_FIELD,yField:d.MIN_MAX_FIELD,seriesField:r||d.X_FIELD,tooltip:(0,a.__assign)({fields:p},s),state:"object"===(0,i.default)(u)?u.state:{},interval:{color:o,size:1,style:{lineWidth:0}}}}),c.geometries[0].adjust(h);var f=e.createView({id:d.QUANTILE_VIEW_ID});(0,l.interval)({chart:f,options:{xField:d.X_FIELD,yField:d.QUANTILE_FIELD,seriesField:r||d.X_FIELD,tooltip:(0,a.__assign)({fields:p},s),state:"object"===(0,i.default)(u)?u.state:{},interval:{color:o,size:8,style:{fillOpacity:1}}}}),f.geometries[0].adjust(h);var g=e.createView({id:d.MEDIAN_VIEW_ID});return(0,l.point)({chart:g,options:{xField:d.X_FIELD,yField:d.MEDIAN_FIELD,seriesField:r||d.X_FIELD,tooltip:(0,a.__assign)({fields:p},s),state:"object"===(0,i.default)(u)?u.state:{},point:{color:o,size:1,style:{fill:"white",lineWidth:0}}}}),g.geometries[0].adjust(h),f.axis(!1),c.axis(!1),g.axis(!1),g.legend(!1),c.legend(!1),f.legend(!1),t}function m(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.xAxis,s=r.yAxis,l=(0,u.deepAssign)({},i,((e={})[d.X_FIELD]=(0,a.__assign)((0,a.__assign)({sync:!0},(0,u.pick)(o,c.AXIS_META_CONFIG_KEYS)),{type:"cat"}),e[d.VIOLIN_Y_FIELD]=(0,a.__assign)({sync:!0},(0,u.pick)(s,c.AXIS_META_CONFIG_KEYS)),e[d.MIN_MAX_FIELD]=(0,a.__assign)({sync:d.VIOLIN_Y_FIELD},(0,u.pick)(s,c.AXIS_META_CONFIG_KEYS)),e[d.QUANTILE_FIELD]=(0,a.__assign)({sync:d.VIOLIN_Y_FIELD},(0,u.pick)(s,c.AXIS_META_CONFIG_KEYS)),e[d.MEDIAN_FIELD]=(0,a.__assign)({sync:d.VIOLIN_Y_FIELD},(0,u.pick)(s,c.AXIS_META_CONFIG_KEYS)),e));return n.scale(l),t}function b(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=(0,u.findViewById)(e,d.VIOLIN_VIEW_ID);return!1===r?a.axis(d.X_FIELD,!1):a.axis(d.X_FIELD,r),!1===i?a.axis(d.VIOLIN_Y_FIELD,!1):a.axis(d.VIOLIN_Y_FIELD,i),e.axis(!1),t}function x(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField,a=n.shape;if(!1===r)e.legend(!1);else{var s=i||d.X_FIELD,l=(0,o.omit)(r,["selected"]);a&&a.startsWith("hollow")||(0,o.get)(l,["marker","style","lineWidth"])||(0,o.set)(l,["marker","style","lineWidth"],0),e.legend(s,l),(0,o.get)(r,"selected")&&(0,o.each)(e.views,(function(t){return t.legend(s,r)}))}return t}function _(t){var e=t.chart,n=(0,u.findViewById)(e,d.VIOLIN_VIEW_ID);return(0,s.annotation)()((0,a.__assign)((0,a.__assign)({},t),{chart:n})),t}function O(t){var e=t.chart,n=t.options.animation;return(0,o.each)(e.views,(function(t){"boolean"===typeof n?t.animate(n):t.animate(!0),(0,o.each)(t.geometries,(function(t){t.animate(n)}))})),t}},function(t,e,n){"use strict";var r=Math.log(2),i=t.exports,a=n(1237);function o(t){return 1-Math.abs(t)}t.exports.getUnifiedMinMax=function(t,e){return i.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,r=!1,i=a.isNumber(e.width)?e.width:2,o=a.isNumber(e.size)?e.size:50,s=a.isNumber(e.min)?e.min:(n=!0,a.findMinMulti(t)),l=a.isNumber(e.max)?e.max:(r=!0,a.findMaxMulti(t)),u=(l-s)/(o-1);return n&&(s-=2*i*u),r&&(l+=2*i*u),{min:s,max:l}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=a.isNumber(e.size)?e.size:50,r=a.isNumber(e.width)?e.width:2,s=i.getUnifiedMinMax(t,{size:n,width:r,min:e.min,max:e.max}),l=s.min,u=s.max-l,c=u/(n-1);if(0===u)return[{x:l,y:1}];for(var f=[],d=0;d=f.length)){var n=Math.max(e-r,0),i=e,o=Math.min(e+r,f.length-1),s=n-(e-r),u=e+r-o,d=p[-r-1+s]||0,y=p[-r-1+u]||0,m=h/(h-d-y);s>0&&(v+=m*(s-1)*g);var b=Math.max(0,e-r+1);a.inside(0,f.length-1,b)&&(f[b].y+=1*m*g),a.inside(0,f.length-1,i+1)&&(f[i+1].y-=2*m*g),a.inside(0,f.length-1,o+1)&&(f[o+1].y+=1*m*g)}}));var y=v,m=0,b=0;return f.forEach((function(t){m+=t.y,y+=m,t.y=y,b+=y})),b>0&&f.forEach((function(t){t.y/=b})),f},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,r=0,i=0;i=e));i++);return t[r].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/r,Math.pow(2,e)}}},function(t,e,n){"use strict";var r=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;n1)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 i(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function a(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var o=r-n+1,s=e-n+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o);s-o/2<0&&(c*=-1),a(t,e,Math.max(n,Math.floor(e-s*u/o+c)),Math.min(r,Math.floor(e+(o-s)*u/o+c)))}var f=t[e],d=n,p=r;for(i(t,n,e),t[r]>f&&i(t,n,r);df;)p--}t[n]===f?i(t,n,p):i(t,++p,r),p<=e&&(n=p+1),e<=p&&(r=p-1)}}function o(t,e,n,r){e%1===0?a(t,e,n,r):(a(t,e=Math.floor(e),n,r),a(t,e+1,e+1,r))}function s(t,e){return t-e}function l(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}Object.defineProperty(e,"__esModule",{value:!0}),e.quantile=function(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;re?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t||(t=e/255*255/(1-t/255))>255?255:t},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},s=function(t){if(!o[t])throw new Error("unknown blend mode "+t);return o[t]};function l(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=i.default.rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):i.default.rgb2arr(i.default.toRGB(n)).concat([1])}e.innerBlend=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bestInitialLayout=l,e.constrainedMDSLayout=u,e.disjointCluster=p,e.distanceFromIntersectArea=o,e.getDistanceMatrices=s,e.greedyLayout=c,e.lossFunction=f,e.normalizeSolution=function(t,e,n){null===e&&(e=Math.PI/2);var r,i,a=[];for(i in t)if(t.hasOwnProperty(i)){var o=t[i];a.push({x:o.x,y:o.y,radius:o.radius,setid:i})}var s=p(a);for(r=0;re?1:-1})),e=0;e=Math.min(e[r].size,e[s].size)?u=1:t.size<=1e-10&&(u=-1),a[r][s]=a[s][r]=u})),{distances:i,constraints:a}}function l(t,e){var n=c(t,e),r=e.lossFunction||f;if(t.length>=8){var i=u(t,e);r(i,t)+1e-80&&h<=f||d<0&&h>=f||(a+=2*g*g,e[2*i]+=4*g*(o-u),e[2*i+1]+=4*g*(s-c),e[2*l]+=4*g*(u-o),e[2*l+1]+=4*g*(c-s))}return a}(t,e,c,f)};for(n=0;n=Math.min(s[h].size,s[g].size)&&(p=0),l[h].push({set:g,size:d.size,weight:p}),l[g].push({set:h,size:d.size,weight:p})}var v=[];for(n in l)if(l.hasOwnProperty(n)){var y=0;for(u=0;u0){var a=t[0].x,o=t[0].y;for(r=0;r1){var s=Math.atan2(t[1].x,t[1].y)-e,l=void 0,u=void 0,c=Math.cos(s),f=Math.sin(s);for(r=0;r2){for(var d=Math.atan2(t[2].x,t[2].y)-e;d<0;)d+=2*Math.PI;for(;d>2*Math.PI;)d-=2*Math.PI;if(d>Math.PI){var p=t[1].y/(1e-10+t[1].x);for(r=0;r0&&console.log("WARNING: area "+s+" not represented on screen")}return n},e.intersectionAreaPath=function(t){var e={};(0,i.intersectionArea)(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return s(r.x,r.y,r.radius)}for(var a=["\nM",n[0].p2.x,n[0].p2.y],o=0;ou;a.push("\nA",u,u,0,c?1:0,1,l.p1.x,l.p1.y)}return a.join(" ")};var r=n(585),i=n(586);function a(t,e,n){var r,a,o=e[0].radius-(0,i.distance)(e[0],t);for(r=1;r=c&&(u=s[n],c=f)}var d=(0,r.nelderMead)((function(n){return-1*a({x:n[0],y:n[1]},t,e)}),[u.x,u.y],{maxIterations:500,minErrorDelta:1e-10}).x,p={x:d[0],y:d[1]},h=!0;for(n=0;nt[n].radius){h=!1;break}for(n=0;n0;)c-=2*Math.PI;var f=a-t+(c=c/Math.PI/2*n)-2*t;u.push(["M",f,e]);for(var d=0,p=0;p0&&t.depth>p)return null;for(var v=t.data.name,y=(0,r.__assign)({},t);y.depth>1;)v=(null===(i=y.parent.data)||void 0===i?void 0:i.name)+" / "+v,y=y.parent;var b=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,o.pick)(t.data,(0,r.__spreadArrays)(c||[],[d.field]))),((e={})[u.SUNBURST_PATH_FIELD]=v,e[u.SUNBURST_ANCESTOR_FIELD]=y.data.name,e)),t);g&&(b[g]=t.data[g]||(null===(l=null===(s=t.parent)||void 0===s?void 0:s.data)||void 0===l?void 0:l[g])),n&&(b[n]=t.data[n]||(null===(h=null===(f=t.parent)||void 0===f?void 0:f.data)||void 0===h?void 0:h[n])),b.ext=d,b[a.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:d,colorField:n,rawFields:c},m.push(b)})),m};var r=n(1),i=n(0),a=n(201),o=n(7),s=n(1266),l=n(593),u=n(312)},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.partition=function(t,e){var n,r=(e=(0,a.assign)({},l,e)).as;if(!(0,a.isArray)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=(0,o.getField)(e)}catch(f){console.warn(f)}var s=function(t){return i.partition().size(e.size).round(e.round).padding(e.padding)(i.hierarchy(t).sum((function(t){return(0,a.size)(t.children)?e.ignoreParentValue?0:t[n]-(0,a.reduce)(t.children,(function(t,e){return t+e[n]}),0):t[n]})).sort(e.sort))}(t),u=r[0],c=r[1];return s.each((function(t){var e,n;t[u]=[t.x0,t.x1,t.x1,t.x0],t[c]=[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===r.indexOf(e)&&delete t[e]}))})),(0,o.getAllNodes)(s)};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}(n(193)),a=n(0),o=n(157);function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}var l={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0}},function(t,e,n){"use strict";n(313)},function(t,e,n){"use strict";var r=n(1);(0,n(14).registerShape)("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,i=n.indicator,a=n.defaultColor,o=i,s=o.pointer,l=o.pin,u=e.addGroup(),c=this.parsePoint({x:0,y:0});return s&&u.addShape("line",{name:"pointer",attrs:(0,r.__assign)({x1:c.x,y1:c.y,x2:t.x,y2:t.y,stroke:a},s.style)}),l&&u.addShape("circle",{name:"pin",attrs:(0,r.__assign)({x:c.x,y:c.y,stroke:a},l.style)}),u}})},function(t,e,n){"use strict";var r=n(14),i=n(0);(0,r.registerShape)("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,a=void 0===n?{}:n,o=a.steps,s=void 0===o?50:o,l=a.stepRatio,u=void 0===l?.5:l;s=s<1?1:s,u=(0,i.clamp)(u,0,1);var c=this.coordinate,f=c.startAngle,d=c.endAngle,p=0;u>0&&u<1&&(p=(d-f)/s/(u/(1-u)+1-1/s));for(var h=p/(1-u)*u,g=e.addGroup(),v=this.coordinate.getCenter(),y=this.coordinate.getRadius(),m=r.Util.getAngle(t,this.coordinate),b=m.startAngle,x=m.endAngle,_=b;_0?g:v},b=(0,l.deepAssign)({},t,{options:{xField:a,yField:u.Y_FIELD,seriesField:a,rawFields:[s,u.DIFF_FIELD,u.IS_TOTAL,u.Y_FIELD],widthRatio:p,interval:{style:h,shape:"waterfall",color:m}}});return(0,o.interval)(b).ext.geometry.customInfo({leaderLine:d}),t}function p(t){var e,n,r=t.options,o=r.xAxis,s=r.yAxis,c=r.xField,f=r.yField,d=r.meta,p=(0,l.deepAssign)({},{alias:f},(0,i.get)(d,f));return(0,l.flow)((0,a.scale)(((e={})[c]=o,e[f]=s,e[u.Y_FIELD]=s,e),(0,l.deepAssign)({},d,((n={})[u.Y_FIELD]=p,n[u.DIFF_FIELD]=p,n[u.ABSOLUTE_FIELD]=p,n))))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?(e.axis(o,!1),e.axis(u.Y_FIELD,!1)):(e.axis(o,i),e.axis(u.Y_FIELD,i)),t}function g(t){var e=t.chart,n=t.options,r=n.legend,a=n.total,o=n.risingFill,u=n.fallingFill,c=n.locale,f=(0,s.getLocale)(c);if(!1===r)e.legend(!1);else{var d=[{name:f.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:f.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:u}}}];a&&d.push({name:a.label||"",value:"total",marker:{symbol:"square",style:(0,l.deepAssign)({},{r:5},(0,i.get)(a,"style"))}}),e.legend((0,l.deepAssign)({},{custom:!0,position:"top",items:d},r)),e.removeInteraction("legend-filter")}return t}function v(t){var e=t.chart,n=t.options,i=n.label,a=n.labelMode,o=n.xField,s=(0,l.findGeometry)(e,"interval");if(i){var c=i.callback,f=(0,r.__rest)(i,["callback"]);s.label({fields:"absolute"===a?[u.ABSOLUTE_FIELD,o]:[u.DIFF_FIELD,o],callback:c,cfg:(0,l.transformLabel)(f)})}else s.label(!1);return t}function y(t){var e=t.chart,n=t.options,i=n.tooltip,a=n.xField,o=n.yField;if(!1!==i){e.tooltip((0,r.__assign)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},i));var s=e.geometries[0];(null===i||void 0===i?void 0:i.formatter)?s.tooltip(a+"*"+o,i.formatter):s.tooltip(o)}else e.tooltip(!1);return t}n(1272)},function(t,e,n){"use strict";var r=n(1),i=n(14),a=n(0),o=n(7);(0,i.registerShape)("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,s=t.nextPoints,l=e.addGroup(),u=this.parsePath(function(t){for(var e=[],n=0;n0?Math.max.apply(Math,r):0,a=Math.abs(t)%360;return a?360*i/a:i},e.getStackedData=function(t,e,n){var i=[];return t.forEach((function(t){var a=i.find((function(n){return n[e]===t[e]}));a?a[n]+=t[n]||null:i.push((0,r.__assign)({},t))})),i};var r=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BidirectionalBar=void 0;var r=n(1),i=n(14),a=n(19),o=n(7),s=n(1278),l=n(599),u=n(598),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return(0,o.deepAssign)({},t.getDefaultOptions.call(this),{syncViewPadding:l.syncViewPadding})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=e.xField,r=e.yField,a=e.layout,s=(0,l.transformData)(n,r,u.SERIES_FIELD_KEY,t,(0,l.isHorizontal)(a)),c=s[0],f=s[1],d=(0,o.findViewById)(this.chart,u.FIRST_AXES_VIEW),p=(0,o.findViewById)(this.chart,u.SECOND_AXES_VIEW);d.data(c),p.data(f),this.chart.render(!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.SERIES_FIELD_KEY=u.SERIES_FIELD_KEY,e}(a.Plot);e.BidirectionalBar=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,s.flow)(c,f,d,h,g,y,a.tooltip,p,v)(t)},e.animation=v,e.interaction=p,e.limitInPlot=h,e.theme=g;var r=n(1),i=n(0),a=n(22),o=n(30),s=n(7),l=n(598),u=n(599);function c(t){var e,n,r=t.chart,i=t.options,a=i.data,c=i.xField,f=i.yField,d=i.color,p=i.barStyle,h=i.widthRatio,g=i.legend,v=i.layout,y=(0,u.transformData)(c,f,l.SERIES_FIELD_KEY,a,(0,u.isHorizontal)(v));g?r.legend(l.SERIES_FIELD_KEY,g):!1===g&&r.legend(!1);var m=y[0],b=y[1];(0,u.isHorizontal)(v)?((e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:l.FIRST_AXES_VIEW})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:l.SECOND_AXES_VIEW})).coordinate().transpose(),e.data(m),n.data(b)):(e=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:l.FIRST_AXES_VIEW}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:l.SECOND_AXES_VIEW})).coordinate().reflect("y"),e.data(m),n.data(b));var x=(0,s.deepAssign)({},t,{chart:e,options:{widthRatio:h,xField:c,yField:f[0],seriesField:l.SERIES_FIELD_KEY,interval:{color:d,style:p}}});(0,o.interval)(x);var _=(0,s.deepAssign)({},t,{chart:n,options:{xField:c,yField:f[1],seriesField:l.SERIES_FIELD_KEY,widthRatio:h,interval:{color:d,style:p}}});return(0,o.interval)(_),t}function f(t){var e,n,r,o=t.options,u=t.chart,c=o.xAxis,f=o.yAxis,d=o.xField,p=o.yField,h=(0,s.findViewById)(u,l.FIRST_AXES_VIEW),g=(0,s.findViewById)(u,l.SECOND_AXES_VIEW),v={};return(0,i.keys)((null===o||void 0===o?void 0:o.meta)||{}).map((function(t){(0,i.get)(null===o||void 0===o?void 0:o.meta,[t,"alias"])&&(v[t]=o.meta[t].alias)})),u.scale(((e={})[l.SERIES_FIELD_KEY]={sync:!0,formatter:function(t){return(0,i.get)(v,t,t)}},e)),(0,a.scale)(((n={})[d]=c,n[p[0]]=f[p[0]],n))((0,s.deepAssign)({},t,{chart:h})),(0,a.scale)(((r={})[d]=c,r[p[1]]=f[p[1]],r))((0,s.deepAssign)({},t,{chart:g})),t}function d(t){var e=t.chart,n=t.options,i=n.xAxis,a=n.yAxis,o=n.xField,c=n.yField,f=n.layout,d=(0,s.findViewById)(e,l.FIRST_AXES_VIEW),p=(0,s.findViewById)(e,l.SECOND_AXES_VIEW);return"bottom"===(null===i||void 0===i?void 0:i.position)?p.axis(o,(0,r.__assign)((0,r.__assign)({},i),{label:{formatter:function(){return""}}})):p.axis(o,!1),!1===i?d.axis(o,!1):d.axis(o,(0,r.__assign)({position:(0,u.isHorizontal)(f)?"top":"bottom"},i)),!1===a?(d.axis(c[0],!1),p.axis(c[1],!1)):(d.axis(c[0],a[c[0]]),p.axis(c[1],a[c[1]])),e.__axisPosition={position:d.getOptions().axes[o].position,layout:f},t}function p(t){var e=t.chart;return(0,a.interaction)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.FIRST_AXES_VIEW)})),(0,a.interaction)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.SECOND_AXES_VIEW)})),t}function h(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return(0,a.limitInPlot)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.FIRST_AXES_VIEW),options:{yAxis:i[r[0]]}})),(0,a.limitInPlot)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.SECOND_AXES_VIEW),options:{yAxis:i[r[1]]}})),t}function g(t){var e=t.chart;return(0,a.theme)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.FIRST_AXES_VIEW)})),(0,a.theme)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.SECOND_AXES_VIEW)})),t}function v(t){var e=t.chart;return(0,a.animation)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.FIRST_AXES_VIEW)})),(0,a.animation)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.SECOND_AXES_VIEW)})),t}function y(t){var e,n,i=this,a=t.chart,o=t.options,c=o.label,f=o.yField,d=o.layout,p=(0,s.findViewById)(a,l.FIRST_AXES_VIEW),h=(0,s.findViewById)(a,l.SECOND_AXES_VIEW),g=(0,s.findGeometry)(p,"interval"),v=(0,s.findGeometry)(h,"interval");if(c){var y=c.callback,m=(0,r.__rest)(c,["callback"]);m.position||(m.position="middle"),void 0===m.offset&&(m.offset=2);var b=(0,r.__assign)({},m);if((0,u.isHorizontal)(d)){var x=(null===(e=b.style)||void 0===e?void 0:e.textAlign)||("middle"===m.position?"center":"left");m.style=(0,s.deepAssign)({},m.style,{textAlign:x}),b.style=(0,s.deepAssign)({},b.style,{textAlign:{left:"right",right:"left",center:"center"}[x]})}else{var _={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof m.position?m.position=_[m.position]:"function"===typeof m.position&&(m.position=function(){for(var t=[],e=0;e "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=(0,l.transformToViewsData)(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=(0,o.findViewById)(this.chart,u.NODES_VIEW_ID),a=(0,o.findViewById)(this.chart,u.EDGES_VIEW_ID);i.changeData(n),a.changeData(r)},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(a.Plot);e.Sankey=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(c,f,a.interaction,p,d,a.theme)(t)},e.animation=d,e.nodeDraggable=p;var r=n(1),i=n(0),a=n(22),o=n(7),s=n(30),l=n(601),u=n(316);function c(t){var e=t.options.rawFields,n=void 0===e?[]:e;return(0,o.deepAssign)({},{options:{tooltip:{fields:(0,i.uniq)((0,r.__spreadArrays)(["name","source","target","value","isNode"],n))},label:{fields:(0,i.uniq)((0,r.__spreadArrays)(["x","name"],n))}}},t)}function f(t){var e=t.chart,n=t.options,r=n.color,i=n.nodeStyle,a=n.edgeStyle,o=n.label,c=n.tooltip,f=n.nodeState,d=n.edgeState;e.legend(!1),e.tooltip(c),e.axis(!1),e.coordinate().reflect("y");var p=(0,l.transformToViewsData)(n,e.width,e.height),h=p.nodes,g=p.edges,v=e.createView({id:u.EDGES_VIEW_ID});v.data(g),(0,s.edge)({chart:v,options:{xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.COLOR_FIELD,edge:{color:r,style:a,shape:"arc"},tooltip:c,state:d}});var y=e.createView({id:u.NODES_VIEW_ID});return y.data(h),(0,s.polygon)({chart:y,options:{xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.COLOR_FIELD,polygon:{color:r,style:i},label:o,tooltip:c,state:f}}),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 d(t){var e=t.chart,n=t.options.animation;return"boolean"===typeof n?e.animate(n):e.animate(!0),(0,r.__spreadArrays)(e.views[0].geometries,e.views[1].geometries).forEach((function(t){t.animate(n)})),t}function p(t){var e=t.chart,n="sankey-node-draggable";return t.options.nodeDraggable?e.interaction(n):e.removeInteraction(n),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultOptions=l,e.getNodeAlignFunction=s,e.sankeyLayout=function(t,e){var n=l(t),r=n.nodeId,a=n.nodeSort,o=n.nodeAlign,u=n.nodeWidth,c=n.nodePadding,f=n.nodeDepth,d=(0,i.sankey)().nodeSort(a).nodeWidth(u).nodePadding(c).nodeDepth(f).nodeAlign(s(o)).extent([[0,0],[1,1]]).nodeId(r)(e);return d.nodes.forEach((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;t.x=[e,n,n,e],t.y=[r,r,i,i]})),d.links.forEach((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var a=t.width/2;t.y=[t.y0+a,t.y0-a,t.y1+a,t.y1-a]})),d};var r=n(0),i=n(1286),a={left:i.left,right:i.right,center:i.center,justify:i.justify},o={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function s(t){return((0,r.isString)(t)?a[t]:(0,r.isFunction)(t)?t:null)||i.justify}function l(t){return(0,r.assign)({},o,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"center",{enumerable:!0,get:function(){return i.center}}),Object.defineProperty(e,"justify",{enumerable:!0,get:function(){return i.justify}}),Object.defineProperty(e,"left",{enumerable:!0,get:function(){return i.left}}),Object.defineProperty(e,"right",{enumerable:!0,get:function(){return i.right}}),Object.defineProperty(e,"sankey",{enumerable:!0,get:function(){return r.Sankey}});var r=n(1287),i=n(602)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.Sankey=function(){var t,e,n,r,v=0,y=0,m=1,b=1,x=24,_=8,O=f,P=a.justify,w=d,M=p,S=6;function A(a){var s={nodes:w(a),links:M(a)};return function(t){var e=t.nodes,n=t.links;e.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var a=new Map(e.map((function(t){return[O(t),t]})));if(n.forEach((function(t,e){t.index=e;var n=t.source,r=t.target;"object"!==(0,i.default)(n)&&(n=t.source=h(a,n)),"object"!==(0,i.default)(r)&&(r=t.target=h(a,r)),n.sourceLinks.push(t),r.targetLinks.push(t)})),null!=r)for(var o=0,s=e;or)throw new Error("circular link");i=a,a=new Set}if(e)for(var l=Math.max((0,o.maxValueBy)(n,(function(t){return t.depth}))+1,0),u=void 0,c=0;cn)throw new Error("circular link");r=i,i=new Set}}(s),function(e){var r=function(t){for(var e=t.nodes,r=Math.max((0,o.maxValueBy)(e,(function(t){return t.depth}))+1,0),i=(m-v-x)/(r-1),a=new Array(r).fill(0).map((function(){return[]})),s=0,l=e;s0){var m=(f/d-c.y0)*e;c.y0+=m,c.y1+=m,F(c)}}void 0===n&&o.sort(u),o.length&&j(o,r)}}function C(t,e,r){for(var i=t.length-2;i>=0;--i){for(var a=t[i],o=0,s=a;o0){var y=(c/f-l.y0)*e;l.y0+=y,l.y1+=y,F(l)}}void 0===n&&a.sort(u),a.length&&j(a,r)}}function j(e,n){var r=e.length>>1,i=e[r];T(e,i.y0-t,r-1,n),I(e,i.y1+t,r+1,n),T(e,b,e.length-1,n),I(e,y,0,n)}function I(e,n,r,i){for(;r1e-6&&(a.y0+=o,a.y1+=o),n=a.y1+t}}function T(e,n,r,i){for(;r>=0;--r){var a=e[r],o=(a.y1-n)*i;o>1e-6&&(a.y0-=o,a.y1-=o),n=a.y0-t}}function F(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===r){for(var i=0,a=n;i=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),a=e.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;t.forEach((function(t){o+=t.value})),t.forEach((function(t){t.weight=t.value/o,t.width=t.weight*(1-r),t.height=a})),t.forEach((function(n,r){for(var o=0,s=r-1;s>=0;s--)o+=t[s].width+2*i;var l=n.minX=i+o,u=n.maxX=n.minX+n.width,c=n.minY=e.y-a/2,f=n.maxY=c+a;n.x=[l,u,u,l],n.y=[c,c,f,f]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}(o,n),u=function(t,e,n){if(n.weight){var i={};(0,r.forIn)(t,(function(t,e){i[e]=t.value})),e.forEach((function(e){var r=n.source(e),a=n.target(e),o=t[r],s=t[a];if(o&&s){var l=i[r],u=n.sourceWeight(e),c=o.minX+(o.value-l)/o.value*o.width,f=c+u/o.value*o.width;i[r]-=u;var d=i[a],p=n.targetWeight(e),h=s.minX+(s.value-d)/s.value*s.width,g=h+p/s.value*s.width;i[a]-=p;var v=n.y;e.x=[c,f,h,g],e.y=[v,v,v,v],e.source=o,e.target=s}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)}));return e}(i,s,n);return{nodes:l,links:u}},e.getDefaultOptions=a;var r=n(0),i={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 a(t){return(0,r.assign)({},i,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CirclePacking=void 0;var r=n(1),i=n(19),a=n(1297),o=n(604);n(1300);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},e}(i.Plot);e.CirclePacking=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,s.flow)((0,o.pattern)("pointStyle"),f,d,o.theme,h,p,v,o.legend,g,m,o.animation,(0,o.annotation)())(t)},e.meta=h;var r=n(1),i=n(0),a=n(546),o=n(22),s=n(7),l=n(121),u=n(1298),c=n(604);function f(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return(0,s.deepAssign)({options:{size:function(t){return t.r*n}}},t)}function d(t){var e=t.options,n=t.chart,r=n.viewBBox,a=e.padding,o=e.appendPadding,s=e.drilldown,c=o;if(null===s||void 0===s?void 0:s.enabled){var f=(0,l.getAdjustAppendPadding)(n.appendPadding,(0,i.get)(s,["breadCrumb","position"]));c=(0,l.resolveAllPadding)([f,o])}var d=(0,u.resolvePaddingForCircle)(a,c,r).finalPadding;return n.padding=d,n.appendPadding=0,t}function p(t){var e=t.chart,n=t.options,i=e.padding,o=e.appendPadding,l=n.color,f=n.colorField,d=n.pointStyle,p=n.hierarchyConfig,h=n.sizeField,g=n.rawFields,v=void 0===g?[]:g,y=n.drilldown,m=(0,u.transformData)({data:n.data,hierarchyConfig:p,enableDrillDown:null===y||void 0===y?void 0:y.enabled,rawFields:v});e.data(m);var b=e.viewBBox,x=(0,u.resolvePaddingForCircle)(i,o,b).finalSize,_=function(t){return t.r*x};return h&&(_=function(t){return t[h]*x}),(0,a.point)((0,s.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:f,sizeField:h,rawFields:(0,r.__spreadArrays)(c.RAW_FIELDS,v),point:{color:l,style:d,shape:"circle",size:_}}})),t}function h(t){return(0,s.flow)((0,o.scale)({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function g(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var a=n;(0,i.get)(n,"fields")||(a=(0,s.deepAssign)({},{customItems:function(t){return t.map((function(t){var n=(0,i.get)(e.getOptions(),"scales"),a=(0,i.get)(n,["name","formatter"],(function(t){return t})),o=(0,i.get)(n,["value","formatter"],(function(t){return t}));return(0,r.__assign)((0,r.__assign)({},t),{name:a(t.data.name),value:o(t.data.value)})}))}},a)),e.tooltip(a)}return t}function v(t){return t.chart.axis(!1),t}function y(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?(0,s.deepAssign)({},t,{interactions:(0,r.__spreadArrays)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:u.transformData,enableDrillDown:!0}}])}):t}function m(t){var e=t.chart,n=t.options;return(0,o.interaction)({chart:e,options:y(n)}),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolvePaddingForCircle=function(t,e,n){var r=(0,s.resolveAllPadding)([t,e]),i=r[0],a=r[1],o=r[2],l=r[3],u=n.width,c=n.height,f=u-(l+a),d=c-(i+o),p=Math.min(f,d),h=(f-p)/2,g=(d-p)/2;return{finalPadding:[i+g,a+h,o+g,l+h],finalSize:p<0?0:p}},e.transformData=function(t){var e=t.data,n=t.hierarchyConfig,s=t.rawFields,l=void 0===s?[]:s,u=t.enableDrillDown,c=(0,i.pack)(e,(0,r.__assign)((0,r.__assign)({},n),{field:"value",as:["x","y","r"]})),f=[];return c.forEach((function(t){for(var e,i=t.data.name,s=(0,r.__assign)({},t);s.depth>1;)i=(null===(e=s.parent.data)||void 0===e?void 0:e.name)+" / "+i,s=s.parent;if(u&&t.depth>2)return null;var c=(0,a.deepAssign)({},t.data,(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,a.pick)(t.data,l)),{path:i}),t));c.ext=n,c[o.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:n,rawFields:l,enableDrillDown:u},f.push(c)})),f};var r=n(1),i=n(1299),a=n(7),o=n(201),s=n(121)},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.pack=function(t,e){var n,r=(e=(0,a.assign)({},l,e)).as;if(!(0,a.isArray)(r)||3!==r.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=(0,o.getField)(e)}catch(d){console.warn(d)}var s=function(t){return i.pack().size(e.size).padding(e.padding)(i.hierarchy(t).sum((function(t){return t[n]})).sort(e.sort))}(t),u=r[0],c=r[1],f=r[2];return s.each((function(t){t[u]=t.x,t[c]=t.y,t[f]=t.r})),(0,o.getAllNodes)(s)};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}(n(193)),a=n(0),o=n(157);function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}var l={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}}},function(t,e,n){"use strict";n(313)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.P=void 0;var r=n(1),i=n(7),a=function(t){function e(e,n,r,a){var o=t.call(this,e,(0,i.deepAssign)({},a,n))||this;return o.type="g2-plot",o.defaultOptions=a,o.adaptor=r,o}return(0,r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor},e}(n(19).Plot);e.P=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,u.flow)(o.animation,f,d,o.interaction,o.animation,o.theme,o.tooltip)(t)};var r=n(1),i=n(0),a=n(49),o=n(22),s=n(19),l=n(99),u=n(7),c=n(606);function f(t){var e=t.chart,n=t.options,o=n.views,s=n.legend;return(0,i.each)(o,(function(t){var n=t.region,o=t.data,s=t.meta,c=t.axes,f=t.coordinate,d=t.interactions,p=t.annotations,h=t.tooltip,g=t.geometries,v=e.createView({region:n});v.data(o);var y={};c&&(0,i.each)(c,(function(t,e){y[e]=(0,u.pick)(t,l.AXIS_META_CONFIG_KEYS)})),y=(0,u.deepAssign)({},s,y),v.scale(y),c?(0,i.each)(c,(function(t,e){v.axis(e,t)})):v.axis(!1),v.coordinate(f),(0,i.each)(g,(function(t){var e=(0,a.geometry)({chart:v,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),(0,i.each)(d,(function(t){!1===t.enable?v.removeInteraction(t.type):v.interaction(t.type,t.cfg)})),(0,i.each)(p,(function(t){v.annotation()[t.type]((0,r.__assign)({},t))})),"boolean"===typeof t.animation?v.animate(!1):(v.animate(!0),(0,i.each)(v.geometries,(function(e){e.animate(t.animation)}))),h&&(v.interaction("tooltip"),v.tooltip(h))})),s?(0,i.each)(s,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function d(t){var e=t.chart,n=t.options.plots;return(0,i.each)(n,(function(t){var n=t.type,i=t.region,a=t.options,o=void 0===a?{}:a,l=o.tooltip,f=e.createView((0,r.__assign)({region:i},(0,u.pick)(o,s.PLOT_CONTAINER_OPTIONS)));l&&f.interaction("tooltip"),(0,c.execPlotAdaptor)(n,f,o)})),t}},function(t,e,n){"use strict";n(1304)},function(t,e,n){"use strict";var r=n(1),i=n(0),a=n(14),o=n(7),s=n(1305),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getAssociationItems=function(t,e){var n,r=this.context.event,a=e||{},l=a.linkField,u=a.dim,c=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var f=r.data.data;(0,i.each)(t,(function(t){var e,n,r=l;if("x"===u?r=t.getXScale().field:"y"===u?r=null===(e=t.getYScales().find((function(t){return t.field===r})))||void 0===e?void 0:e.field:r||(r=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),r){var a=(0,i.map)((0,o.getAllElements)(t),(function(e){var n=!1,a=!1,o=(0,i.isArray)(f)?(0,i.get)(f[0],r):(0,i.get)(f,r);return(0,s.getElementValue)(e,r)===o?n=!0:a=!0,{element:e,view:t,active:n,inactive:a}}));c.push.apply(c,a)}}))}return c},e.prototype.showTooltip=function(t){var e=(0,o.getSiblingViews)(this.context.view),n=this.getAssociationItems(e,t);(0,i.each)(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=(0,o.getSiblingViews)(this.context.view);(0,i.each)(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=(0,o.getViews)(this.context.view),n=this.getAssociationItems(e,t);(0,i.each)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=(0,o.getViews)(this.context.view),n=this.getAssociationItems(e,t);(0,i.each)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=(0,o.getViews)(this.context.view),n=this.getAssociationItems(e,t);(0,i.each)(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=(0,o.getViews)(this.context.view);(0,i.each)(t,(function(t){(0,s.clearHighlight)(t)}))},e}(a.Action);(0,a.registerAction)("association",l),(0,a.registerInteraction)("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,a.registerInteraction)("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,a.registerInteraction)("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,a.registerInteraction)("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearHighlight=function(t){var e=(0,i.getAllElements)(t);(0,r.each)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))},e.getElementValue=function(t,e){var n=t.getModel().data;return(0,r.isArray)(n)?n[0][e]:n[e]};var r=n(0),i=n(7)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Facet=void 0;var r=n(1),i=n(19),a=n(1307),o=n(1309),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Facet=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,s.flow)(a.theme,c,f)(t)};var r=n(1),i=n(0),a=n(22),o=n(99),s=n(7),l=n(606),u=n(1308);function c(t){var e=t.chart,n=t.options,a=n.type,o=n.data,s=n.fields,c=n.eachView,f=(0,i.omit)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(o),e.facet(a,(0,r.__assign)((0,r.__assign)({},f),{fields:s,eachView:function(t,e){var n=c(t,e);if(n.geometries)(0,u.execViewAdaptor)(t,n);else{var r=n,i=r.options;i.tooltip&&t.interaction("tooltip"),(0,l.execPlotAdaptor)(r.type,t,i)}}})),t}function f(t){var e=t.chart,n=t.options,a=n.axes,l=n.meta,u=n.tooltip,c=n.coordinate,f=n.theme,d=n.legend,p=n.interactions,h=n.annotations,g={};return a&&(0,i.each)(a,(function(t,e){g[e]=(0,s.pick)(t,o.AXIS_META_CONFIG_KEYS)})),g=(0,s.deepAssign)({},l,g),e.scale(g),e.coordinate(c),a?(0,i.each)(a,(function(t,n){e.axis(n,t)})):e.axis(!1),u?(e.interaction("tooltip"),e.tooltip(u)):!1===u&&e.removeInteraction("tooltip"),e.legend(d),f&&e.theme(f),(0,i.each)(p,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),(0,i.each)(h,(function(t){e.annotation()[t.type]((0,r.__assign)({},t))})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.execViewAdaptor=function(t,e){var n=e.data,l=e.coordinate,u=e.interactions,c=e.annotations,f=e.animation,d=e.tooltip,p=e.axes,h=e.meta,g=e.geometries;n&&t.data(n);var v={};p&&(0,i.each)(p,(function(t,e){v[e]=(0,s.pick)(t,o.AXIS_META_CONFIG_KEYS)})),v=(0,s.deepAssign)({},h,v),t.scale(v),l&&t.coordinate(l),!1===p?t.axis(!1):(0,i.each)(p,(function(e,n){t.axis(n,e)})),(0,i.each)(g,(function(e){var n=(0,a.geometry)({chart:t,options:e}).ext,r=e.adjust;r&&n.geometry.adjust(r)})),(0,i.each)(u,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),(0,i.each)(c,(function(e){t.annotation()[e.type]((0,r.__assign)({},e))})),"boolean"===typeof f?t.animate(!1):(t.animate(!0),(0,i.each)(t.geometries,(function(t){t.animate(f)}))),d?(t.interaction("tooltip"),t.tooltip(d)):!1===d&&t.removeInteraction("tooltip")};var r=n(1),i=n(0),a=n(49),o=n(99),s=n(7)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0,e.DEFAULT_OPTIONS={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,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.Lab=void 0,e.notice=a;var r,i=n(605);function a(t,e){console.warn(t===r.DEV?"Plot '"+e+"' is in DEV stage, just give us issues.":t===r.BETA?"Plot '"+e+"' is in BETA stage, DO NOT use it in production env.":t===r.STABLE?"Plot '"+e+"' is in STABLE stage, import it by \"import { "+e+" } from '@antv/g2plot'\".":"invalid Stage type.")}e.Stage=r,function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"}(r||(e.Stage=r={}));var o=function(){function t(){}return Object.defineProperty(t,"MultiView",{get:function(){return a(r.STABLE,"MultiView"),i.Mix},enumerable:!1,configurable:!0}),t}();e.Lab=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.statistic=void 0;var r=n(1),i=n(0),a=n(34),o=n(43),s=n(509),l=n(15),u=n(317),c=n(607);function f(t){var e=t.chart,n=t.options,r=n.percent,a=n.range,f=n.radius,d=n.innerRadius,p=n.startAngle,h=n.endAngle,g=n.axis,v=n.indicator,y=n.gaugeStyle,m=n.type,b=n.meter,x=a.color,_=a.width;if(v){var O=c.getIndicatorData(r),P=e.createView({id:u.INDICATEOR_VIEW_ID});P.data(O),P.point().position(u.PERCENT+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),P.coordinate("polar",{startAngle:p,endAngle:h,radius:d*f}),P.axis(u.PERCENT,g),P.scale(u.PERCENT,l.pick(g,s.AXIS_META_CONFIG_KEYS))}var w=c.getRangeData(r,n.range),M=e.createView({id:u.RANGE_VIEW_ID});M.data(w);var S=i.isString(x)?[x,u.DEFAULT_COLOR]:x;return o.interval({chart:M,options:{xField:"1",yField:u.RANGE_VALUE,seriesField:u.RANGE_TYPE,rawFields:[u.PERCENT],isStack:!0,interval:{color:S,style:y,shape:"meter"===m?"meter-gauge":null},args:{zIndexReversed:!0},minColumnWidth:_,maxColumnWidth:_}}).ext.geometry.customInfo({meter:b}),M.coordinate("polar",{innerRadius:d,radius:f,startAngle:p,endAngle:h}).transpose(),t}function d(t){var e;return l.flow(a.scale(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[u.PERCENT]={},e)))(t)}function p(t,e){var n=t.chart,i=t.options,a=i.statistic,o=i.percent;if(n.getController("annotation").clear(!0),a){var s=a.content,u=void 0;s&&(u=l.deepAssign({},{content:(100*o).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),l.renderGaugeStatistic(n,{statistic:r.__assign(r.__assign({},a),{content:u})},{percent:o})}return e&&n.render(!0),t}function h(t){var e=t.chart;return e.legend(!1),e.tooltip(!1),t}e.statistic=p,e.adaptor=function(t){return l.flow(a.theme,a.animation,f,d,p,a.interaction,a.annotation(),h)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);n(14).registerShape("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,i=n.indicator,a=n.defaultColor,o=i,s=o.pointer,l=o.pin,u=e.addGroup(),c=this.parsePoint({x:0,y:0});return s&&u.addShape("line",{name:"pointer",attrs:r.__assign({x1:c.x,y1:c.y,x2:t.x,y2:t.y,stroke:a},s.style)}),l&&u.addShape("circle",{name:"pin",attrs:r.__assign({x:c.x,y:c.y,stroke:a},l.style)}),u}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=n(0);r.registerShape("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,a=void 0===n?{}:n,o=a.steps,s=void 0===o?50:o,l=a.stepRatio,u=void 0===l?.5:l;s=s<1?1:s,u=i.clamp(u,0,1);var c=this.coordinate,f=c.startAngle,d=c.endAngle,p=0;u>0&&u<1&&(p=(d-f)/s/(u/(1-u)+1-1/s));for(var h=p/(1-u)*u,g=e.addGroup(),v=this.coordinate.getCenter(),y=this.coordinate.getRadius(),m=r.Util.getAngle(t,this.coordinate),b=m.startAngle,x=m.endAngle,_=b;_-1){var c=i.get(l.findViewById(e,u),"geometries");i.each(c,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var f=i.get(e.getController("legend"),"option.items",[]);i.each(e.views,(function(t){var n=t.getGroupScales();i.each(n,(function(e){e.values&&e.values.indexOf(a)>-1&&t.filter(e.field,(function(t){return!i.find(f,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))}return t}function E(t){var e=t.chart,n=t.options.slider,r=l.findViewById(e,h.LEFT_AXES_VIEW),a=l.findViewById(e,h.RIGHT_AXES_VIEW);return n&&(r.option("slider",n),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,r=e.originValue;i.isEqual(n,r)||d.doSliderFilter(a,n)})),e.once("afterpaint",(function(){if(!i.isBoolean(n)){var t=n.start,e=n.end;(t||e)&&d.doSliderFilter(a,[t,e])}}))),t}e.transformOptions=g,e.color=m,e.meta=b,e.axis=x,e.tooltip=_,e.interaction=O,e.annotation=P,e.theme=w,e.animation=M,e.limitInPlot=S,e.legend=A,e.slider=E,e.adaptor=function(t){return s.flow(g,v,w,y,b,x,S,_,O,P,M,m,A,E)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getViewLegendItems=void 0;var r=n(0),i=n(14),a=n(15),o=n(318);e.getViewLegendItems=function(t){var e=t.view,n=t.geometryOption,s=t.yField,l=t.legend,u=r.get(l,"marker"),c=a.findGeometry(e,o.isLine(n)?"line":"interval");if(!n.seriesField){var f=r.get(e,"options.scales."+s+".alias")||s,d=c.getAttribute("color"),p=e.getTheme().defaultColor;return d&&(p=i.Util.getMappingValue(d,f,r.get(d,["values",0],p))),[{value:s,name:f,marker:(r.isFunction(u)?u:!r.isEmpty(u)&&a.deepAssign({},{style:{stroke:p,fill:p}},u))||(o.isLine(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:p}}:{symbol:"square",style:{fill:p}}),isGeometry:!0,viewId:e.id}]}var h=c.getGroupAttributes();return r.reduce(h,(function(t,n){var r=i.Util.getLegendItems(e,c,n,e.getTheme(),u);return t.concat(r)}),[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.drawSingleGeometry=void 0;var r=n(1),i=n(0),a=n(43),o=n(15),s=n(195),l=n(318);e.drawSingleGeometry=function(t){var e=t.options,n=t.chart,u=e.geometryOption,c=u.isStack,f=u.color,d=u.seriesField,p=u.groupField,h=u.isGroup,g=["xField","yField"];if(l.isLine(u)){a.line(o.deepAssign({},t,{options:r.__assign(r.__assign(r.__assign({},o.pick(e,g)),u),{line:{color:u.color,style:u.lineStyle}})})),a.point(o.deepAssign({},t,{options:r.__assign(r.__assign(r.__assign({},o.pick(e,g)),u),{point:u.point&&r.__assign({color:f,shape:"circle"},u.point)})}));var v=[];h&&v.push({type:"dodge",dodgeBy:p||d,customOffset:0}),c&&v.push({type:"stack"}),v.length&&i.each(n.geometries,(function(t){t.adjust(v)}))}return l.isColumn(u)&&s.adaptor(o.deepAssign({},t,{options:r.__assign(r.__assign(r.__assign({},o.pick(e,g)),u),{widthRatio:u.columnWidthRatio,interval:r.__assign(r.__assign({},o.pick(u,["color"])),{style:u.columnStyle})})})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doSliderFilter=void 0;var r=n(0),i=n(15);e.doSliderFilter=function(t,e){var n=e[0],a=e[1],o=t.getOptions().data,s=t.getXScale(),l=r.size(o);if(s&&l){var u=r.valuesOfKey(o,s.field),c=u,f=r.size(c),d=Math.floor(n*(f-1)),p=Math.floor(a*(f-1));t.filter(s.field,(function(t){var e=c.indexOf(t);return!(e>-1)||i.isBetween(e,d,p)})),t.render(!0)}}},function(t,e,n){"use strict";var r=n(9),i=n.n(r),a=n(10),o=n.n(a),s=n(363),l=n.n(s),u=n(12),c=n.n(u),f=n(13),d=n.n(f),p=n(5),h=n.n(p),g=n(66),v=[1,1.2,1.5,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],y=12;function m(t){var e=1;if(0===(t=Math.abs(t)))return e;if(t<1){for(var n=0;t<1;)e/=10,t*=10,n++;return e.toString().length>y&&(e=parseFloat(e.toFixed(n))),e}for(;t>10;)e*=10,t/=10;return e}function b(t,e,n,r){for(var i=!1,a=v[t],o=t;o=r}function _(t){var e=t.toString(),n=e.indexOf("."),r=e.indexOf("e-"),i=r>=0?parseInt(e.substr(r+2),10):e.substr(n+1).length;return i>20&&(i=20),i}function O(t,e){return parseFloat(t.toFixed(e))}function P(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}Object(g.registerTickMethod)("linear-strict-tick-method",(function(t){var e=t||{},n=e.tickCount,r=e.tickInterval,i=t||{},a=i.min,o=i.max;a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=n&&n>=2?n:5,l=r||function(t){var e=t.tickCount,n=t.min,r=t.max;if(n===r)return 1*m(r);for(var i=(r-n)/(e-1),a=m(i),o=i/a,s=r/a,l=n/a,u=0,c=0;c=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}},191:function(t,e,n){"use strict";var r=n(1),i=n(0),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},o=n(11),s=function(t,e){return i.createElement(o.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:a}))};s.displayName="LeftOutlined";e.a=i.forwardRef(s)},200:function(t,e,n){"use strict";function r(t){return Object.keys(t).reduce((function(e,n){return!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n||n.startsWith("data-__")||(e[n]=t[n]),e}),{})}n.d(e,"a",(function(){return r}))},208:function(t,e,n){"use strict";var r=n(3),i=n(2),a=n(1),o=n(0),s=n.n(o),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},u=n(11),c=function(t,e){return o.createElement(u.a,Object(a.a)(Object(a.a)({},t),{},{ref:e,icon:l}))};c.displayName="DoubleLeftOutlined";var f=o.forwardRef(c),d=n(211),p=n(191),h=n(178),g=n(8),v=n.n(g),y=n(14),m=n(15),b=n(19),x=n(20),_=function(t){var e,n="".concat(t.rootPrefixCls,"-item"),i=v()(n,"".concat(n,"-").concat(t.page),(e={},Object(r.a)(e,"".concat(n,"-active"),t.active),Object(r.a)(e,"".concat(n,"-disabled"),!t.page),Object(r.a)(e,t.className,!!t.className),e));return s.a.createElement("li",{title:t.showTitle?t.page:null,className:i,onClick:function(){t.onClick(t.page)},onKeyPress:function(e){t.onKeyPress(e,t.onClick,t.page)},tabIndex:"0"},t.itemRender(t.page,"page",s.a.createElement("a",{rel:"nofollow"},t.page)))},O=13,P=38,w=40,M=function(t){Object(b.a)(n,t);var e=Object(x.a)(n);function n(){var t;Object(y.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a=0||e.relatedTarget.className.indexOf("".concat(a,"-item"))>=0)||i(t.getValidValue()))},t.go=function(e){""!==t.state.goInputText&&(e.keyCode!==O&&"click"!==e.type||(t.setState({goInputText:""}),t.props.quickGo(t.getValidValue())))},t}return Object(m.a)(n,[{key:"getValidValue",value:function(){var t=this.state.goInputText;return!t||isNaN(t)?void 0:Number(t)}},{key:"getPageSizeOptions",value:function(){var t=this.props,e=t.pageSize,n=t.pageSizeOptions;return n.some((function(t){return t.toString()===e.toString()}))?n:n.concat([e.toString()]).sort((function(t,e){return(isNaN(Number(t))?0:Number(t))-(isNaN(Number(e))?0:Number(e))}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.pageSize,r=e.locale,i=e.rootPrefixCls,a=e.changeSize,o=e.quickGo,l=e.goButton,u=e.selectComponentClass,c=e.buildOptionText,f=e.selectPrefixCls,d=e.disabled,p=this.state.goInputText,h="".concat(i,"-options"),g=u,v=null,y=null,m=null;if(!a&&!o)return null;var b=this.getPageSizeOptions();if(a&&g){var x=b.map((function(e,n){return s.a.createElement(g.Option,{key:n,value:e.toString()},(c||t.buildOptionText)(e))}));v=s.a.createElement(g,{disabled:d,prefixCls:f,showSearch:!1,className:"".concat(h,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(t){return t.parentNode},"aria-label":r.page_size,defaultOpen:!1},x)}return o&&(l&&(m="boolean"===typeof l?s.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(h,"-quick-jumper-button")},r.jump_to_confirm):s.a.createElement("span",{onClick:this.go,onKeyUp:this.go},l)),y=s.a.createElement("div",{className:"".concat(h,"-quick-jumper")},r.jump_to,s.a.createElement("input",{disabled:d,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,m)),s.a.createElement("li",{className:"".concat(h)},v,y)}}]),n}(s.a.Component);M.defaultProps={pageSizeOptions:["10","20","50","100"]};var S=M;function A(){}function E(t){var e=Number(t);return"number"===typeof e&&!isNaN(e)&&isFinite(e)&&Math.floor(e)===e}function C(t,e,n){var r="undefined"===typeof t?e.pageSize:t;return Math.floor((n.total-1)/r)+1}var j=function(t){Object(b.a)(n,t);var e=Object(x.a)(n);function n(t){var r;Object(y.a)(this,n),(r=e.call(this,t)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(C(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(t,e){var n=r.props.prefixCls,i=t||s.a.createElement("button",{type:"button","aria-label":e,className:"".concat(n,"-item-link")});return"function"===typeof t&&(i=s.a.createElement(t,Object(a.a)({},r.props))),i},r.savePaginationNode=function(t){r.paginationNode=t},r.isValid=function(t){var e=r.props.total;return E(t)&&t!==r.state.current&&E(e)&&e>0},r.shouldDisplayQuickJumper=function(){var t=r.props,e=t.showQuickJumper;return!(t.total<=r.state.pageSize)&&e},r.handleKeyDown=function(t){t.keyCode!==P&&t.keyCode!==w||t.preventDefault()},r.handleKeyUp=function(t){var e=r.getValidValue(t);e!==r.state.currentInputValue&&r.setState({currentInputValue:e}),t.keyCode===O?r.handleChange(e):t.keyCode===P?r.handleChange(e-1):t.keyCode===w&&r.handleChange(e+1)},r.handleBlur=function(t){var e=r.getValidValue(t);r.handleChange(e)},r.changePageSize=function(t){var e=r.state.current,n=C(t,r.state,r.props);e=e>n?n:e,0===n&&(e=r.state.current),"number"===typeof t&&("pageSize"in r.props||r.setState({pageSize:t}),"current"in r.props||r.setState({current:e,currentInputValue:e})),r.props.onShowSizeChange(e,t),"onChange"in r.props&&r.props.onChange&&r.props.onChange(e,t)},r.handleChange=function(t){var e=r.props,n=e.disabled,i=e.onChange,a=r.state,o=a.pageSize,s=a.current,l=a.currentInputValue;if(r.isValid(t)&&!n){var u=C(void 0,r.state,r.props),c=t;return t>u?c=u:t<1&&(c=1),"current"in r.props||r.setState({current:c}),c!==l&&r.setState({currentInputValue:c}),i(c,o),c}return s},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?n-2:0),i=2;i=n?n:Number(e)}},{key:"getShowSizeChanger",value:function(){var t=this.props,e=t.showSizeChanger,n=t.total,r=t.totalBoundaryShowSizeChanger;return"undefined"!==typeof e?e:n>r}},{key:"renderPrev",value:function(t){var e=this.props,n=e.prevIcon,r=(0,e.itemRender)(t,"prev",this.getItemIcon(n,"prev page")),i=!this.hasPrev();return Object(o.isValidElement)(r)?Object(o.cloneElement)(r,{disabled:i}):r}},{key:"renderNext",value:function(t){var e=this.props,n=e.nextIcon,r=(0,e.itemRender)(t,"next",this.getItemIcon(n,"next page")),i=!this.hasNext();return Object(o.isValidElement)(r)?Object(o.cloneElement)(r,{disabled:i}):r}},{key:"render",value:function(){var t=this,e=this.props,n=e.prefixCls,a=e.className,l=e.style,u=e.disabled,c=e.hideOnSinglePage,f=e.total,d=e.locale,p=e.showQuickJumper,h=e.showLessItems,g=e.showTitle,y=e.showTotal,m=e.simple,b=e.itemRender,x=e.showPrevNextJumpers,O=e.jumpPrevIcon,P=e.jumpNextIcon,w=e.selectComponentClass,M=e.selectPrefixCls,A=e.pageSizeOptions,E=this.state,j=E.current,I=E.pageSize,T=E.currentInputValue;if(!0===c&&f<=I)return null;var F=C(void 0,this.state,this.props),L=[],k=null,D=null,R=null,N=null,B=null,z=p&&p.goButton,V=h?1:2,G=j-1>0?j-1:0,W=j+1f?f:j*I]));if(m)return z&&(B="boolean"===typeof z?s.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):s.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),B=s.a.createElement("li",{title:g?"".concat(d.jump_to).concat(j,"/").concat(F):null,className:"".concat(n,"-simple-pager")},B)),s.a.createElement("ul",Object(i.a)({className:v()(n,"".concat(n,"-simple"),Object(r.a)({},"".concat(n,"-disabled"),u),a),style:l,ref:this.savePaginationNode},Y),H,s.a.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:v()("".concat(n,"-prev"),Object(r.a)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(G)),s.a.createElement("li",{title:g?"".concat(j,"/").concat(F):null,className:"".concat(n,"-simple-pager")},s.a.createElement("input",{type:"text",value:T,disabled:u,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),s.a.createElement("span",{className:"".concat(n,"-slash")},"/"),F),s.a.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:v()("".concat(n,"-next"),Object(r.a)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(W)),B);if(F<=3+2*V){var U={locale:d,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:b};F||L.push(s.a.createElement(_,Object(i.a)({},U,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var X=1;X<=F;X+=1){var q=j===X;L.push(s.a.createElement(_,Object(i.a)({},U,{key:X,page:X,active:q})))}}else{var K=h?d.prev_3:d.prev_5,Z=h?d.next_3:d.next_5;x&&(k=s.a.createElement("li",{title:g?K:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:v()("".concat(n,"-jump-prev"),Object(r.a)({},"".concat(n,"-jump-prev-custom-icon"),!!O))},b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(O,"prev page"))),D=s.a.createElement("li",{title:g?Z:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:v()("".concat(n,"-jump-next"),Object(r.a)({},"".concat(n,"-jump-next-custom-icon"),!!P))},b(this.getJumpNextPage(),"jump-next",this.getItemIcon(P,"next page")))),N=s.a.createElement(_,{locale:d,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:F,page:F,active:!1,showTitle:g,itemRender:b}),R=s.a.createElement(_,{locale:d,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:b});var $=Math.max(1,j-V),Q=Math.min(j+V,F);j-1<=V&&(Q=1+2*V),F-j<=V&&($=F-2*V);for(var J=$;J<=Q;J+=1){var tt=j===J;L.push(s.a.createElement(_,{locale:d,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:J,page:J,active:tt,showTitle:g,itemRender:b}))}j-1>=2*V&&3!==j&&(L[0]=Object(o.cloneElement)(L[0],{className:"".concat(n,"-item-after-jump-prev")}),L.unshift(k)),F-j>=2*V&&j!==F-2&&(L[L.length-1]=Object(o.cloneElement)(L[L.length-1],{className:"".concat(n,"-item-before-jump-next")}),L.push(D)),1!==$&&L.unshift(R),Q!==F&&L.push(N)}var et=!this.hasPrev()||!F,nt=!this.hasNext()||!F;return s.a.createElement("ul",Object(i.a)({className:v()(n,a,Object(r.a)({},"".concat(n,"-disabled"),u)),style:l,ref:this.savePaginationNode},Y),H,s.a.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:et?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(n,"-prev"),Object(r.a)({},"".concat(n,"-disabled"),et)),"aria-disabled":et},this.renderPrev(G)),L,s.a.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:nt?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(n,"-next"),Object(r.a)({},"".concat(n,"-disabled"),nt)),"aria-disabled":nt},this.renderNext(W)),s.a.createElement(S,{disabled:u,locale:d,rootPrefixCls:n,selectComponentClass:w,selectPrefixCls:M,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:j,pageSize:I,pageSizeOptions:A,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n={};if("current"in t&&(n.current=t.current,t.current!==e.current&&(n.currentInputValue=n.current)),"pageSize"in t&&t.pageSize!==e.pageSize){var r=e.current,i=C(t.pageSize,e,t);r=r>i?i:r,"current"in t||(n.current=r,n.currentInputValue=r),n.pageSize=t.pageSize}return n}}]),n}(s.a.Component);j.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:A,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:A,locale:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},style:{},itemRender:function(t,e,n){return n},totalBoundaryShowSizeChanger:50};var I=j,T=n(98),F=n(38),L=n(161),k=n(44),D=n(192),R=function(t){return o.createElement(D.a,Object(i.a)({},t,{size:"small"}))},N=function(t){return o.createElement(D.a,Object(i.a)({},t,{size:"middle"}))};R.Option=D.a.Option,N.Option=D.a.Option;var B=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=0?Object(x.jsxs)(g.Fragment,{children:[Object(x.jsxs)(d.a,{icon:Object(x.jsx)(l.a,{}),color:"#f50",children:[(100*Number(r)/Number(n)).toFixed(2),"%"]}),Object(x.jsxs)(d.a,{color:"#f50",children:["+",Math.abs(r).toFixed(2)]})]}):Object(x.jsxs)(g.Fragment,{children:[Object(x.jsxs)(d.a,{icon:Object(x.jsx)(u.a,{}),color:"#1DA57A",children:[(100*Number(r)/Number(n)).toFixed(2),"%"]}),Object(x.jsxs)(d.a,{color:"#1DA57A",children:["-",Math.abs(r).toFixed(2)]})]})]}):Object(x.jsx)(g.Fragment,{children:Object(x.jsxs)(d.a,{children:["\u51c0\u503c: ",e.costPrice]})})})]})})})}})]})}))}}]),n}(g.Component);e.a=_},255:function(t,e,n){"use strict";var r=n(183),i=n(6),a=n(14),o=n(15),s=n(19),l=n(20),u=n(1),c=n(16),f=n(0),d=n.n(f),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"}}]},name:"tags",theme:"outlined"},h=n(11),g=function(t,e){return f.createElement(h.a,Object(u.a)(Object(u.a)({},t),{},{ref:e,icon:p}))};g.displayName="TagsOutlined";var v=f.forwardRef(g),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 01354 318V184h316v134z"}}]},name:"hourglass",theme:"outlined"},m=function(t,e){return f.createElement(h.a,Object(u.a)(Object(u.a)({},t),{},{ref:e,icon:y}))};m.displayName="HourglassOutlined";var b=f.forwardRef(m),x=n(72),_=n(425),O=n(192),P=n(300),w=n(25),M=n(419),S=n(303),A=n(302),E=n(438),C=n(2),j=n(9),I=n(4),T=n(8),F=n.n(T),L=n(64),k=n(63),D=n(38),R=n(51),N=O.a.Option;function B(t){return t&&t.type&&(t.type.isSelectOption||t.type.isSelectOptGroup)}var z=function(t,e){var n,r=t.prefixCls,i=t.className,a=t.popupClassName,o=t.dropdownClassName,s=t.children,l=t.dataSource,u=Object(L.a)(s);if(1===u.length&&Object(R.c)(u[0])&&!B(u[0])){var c=Object(I.a)(u,1);n=c[0]}var d,p=n?function(){return n}:void 0;return d=u.length&&B(u[0])?s:l?l.map((function(t){if(Object(R.c)(t))return t;switch(Object(j.a)(t)){case"string":return f.createElement(N,{key:t,value:t},t);case"object":var e=t.value;return f.createElement(N,{key:e,value:e},t.text);default:return}})):[],f.createElement(D.a,null,(function(n){var s=(0,n.getPrefixCls)("select",r);return f.createElement(O.a,Object(C.a)({ref:e},Object(k.a)(t,["dataSource"]),{prefixCls:s,popupClassName:a||o,className:F()("".concat(s,"-auto-complete"),i),mode:O.a.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:p}),d)}))},V=f.forwardRef(z);V.Option=N;var G=V,W=n(3),Y=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i0?"-".concat(u):u,b=!!p,x="left"===u&&null!=c,_="right"===u&&null!=c,O=F()(y,"".concat(y,"-").concat(s),(e={},Object(W.a)(e,"".concat(y,"-with-text"),b),Object(W.a)(e,"".concat(y,"-with-text").concat(m),b),Object(W.a)(e,"".concat(y,"-dashed"),!!h),Object(W.a)(e,"".concat(y,"-plain"),!!g),Object(W.a)(e,"".concat(y,"-rtl"),"rtl"===i),Object(W.a)(e,"".concat(y,"-no-default-orientation-margin-left"),x),Object(W.a)(e,"".concat(y,"-no-default-orientation-margin-right"),_),e),d),P=Object(C.a)(Object(C.a)({},x&&{marginLeft:c}),_&&{marginRight:c});return f.createElement("div",Object(C.a)({className:O},v,{role:"separator"}),p&&"vertical"!==s&&f.createElement("span",{className:"".concat(y,"-inner-text"),style:P},p))},U=n(56),X=n(84),q=n.n(X),K=n(164),Z=n.n(K),$=n(82),Q=n(160),J=n(5),tt=["form","initialValue"],et=O.a.Option,nt={required:"${label} \u4e0d\u80fd\u4e3a\u7a7a\uff01"},rt=function(t){var e=t.form,n=t.initialValue,r=Object(c.a)(t,tt);return d.a.useEffect((function(){e.current.setFields([{name:r.name,value:n}])}),[]),Object(J.jsx)(P.a.List,Object(u.a)({},r))},it=function(t){Object(s.a)(n,t);var e=Object(l.a)(n);function n(){var t;Object(a.a)(this,n);for(var o=arguments.length,s=new Array(o),l=0;l=0}));t.setState({autoCompletePayees:n})},t.handleSaveTransactionTemplate=function(){var e=t.formRef.current.getFieldsValue();e&&e.entries&&e.entries.length>0&&t.state.accounts&&t.state.accounts.length>0&&e.entries.forEach((function(e){var n=t.state.accounts.filter((function(t){return t.account===e.account}));n&&1===n.length&&((e=n[0]).number=e.number||"")}));var n=e.payee,r=e.desc;e.templateName="".concat(n||"","-").concat(r||""),t.setState({templateLoading:!0}),Object($.c)("/api/auth/transaction/template",{method:"POST",body:e}).then((function(e){w.b.success("\u4fdd\u5b58\u6a21\u7248\u6210\u529f"),t.queryTransactionTemplates()})).finally((function(){t.setState({templateLoading:!1,drawerVisible:!1})}))},t.handleChangeAmount=function(e){t.setState({balanceAmount:e})},t.handleChangeAccount=function(e,n){var r=t.formRef.current.getFieldsValue().entries,i=t.getAccount(e);i&&(r[n]=i,i.currency!==t.props.commodity.currency&&(r[n].priceCommodity=t.props.commodity.currency)),t.formRef.current.setFieldsValue({entries:r})},t.getAccount=function(e){return t.state.accounts.filter((function(t){return t.account===e}))[0]},t.getAccountCommodity=function(e){var n=t.state.accounts.filter((function(t){return t.account===e}))[0];return n?n.currency:""},t.handleSubmit=function(e){var n=e.divideCount,a=e.divideCycle;if(n&&n>0){var o=q()(e.date);e.divideDateList=[];for(var s=0;s1)return void w.b.error("\u8d26\u76ee\u91d1\u989d\u9879\u4e0d\u80fd\u4e3a\u7a7a");t.setState({loading:!0}),Object($.c)("/api/auth/transaction",{method:"POST",body:e}).then((function(n){w.b.success("\u6dfb\u52a0\u6210\u529f"),t.formRef.current.resetFields(),t.formRef.current.setFieldsValue({date:q()().format("YYYY-MM-DD")});var r=t.state.payees;if(e.payee){var a=Array.from(new Set([].concat(Object(i.a)(r),[e.payee]))),o=a.slice(0,Math.max(a.length,10));t.setState({autoCompletePayees:o})}else t.setState({autoCompletePayees:r.slice(0,Math.max(r.length,10))});t.props.onSubmit&&t.props.onSubmit(e)})).finally((function(){t.setState({loading:!1})}))}else w.b.error("\u8d26\u76ee\u4e0d\u80fd\u4e3a\u7a7a")},t.handleDeleteTransactionTemplate=function(e,n){e.preventDefault(),Object($.c)("/api/auth/transaction/template?id=".concat(n),{method:"DELETE"}).then((function(e){t.setState({templates:t.state.templates.filter((function(t){return t.id!==n}))})}))},t.handleSetTemplate=function(e){if(delete e.date,t.state.accounts&&t.state.accounts.length>0){var n=e.entries.map((function(e){var n=t.state.accounts.filter((function(t){return t.account===e.account}));return n&&1===n.length?Object(u.a)(Object(u.a)({},n[0]),{},{number:e.number}):e}));e.entries=n}t.formRef.current.setFieldsValue(e)},t.handleToggleShowTagInput=function(){t.setState({showTag:!t.state.showTag})},t.handleToggleShowDivideInput=function(){t.setState({isDivide:!t.state.isDivide})},t}return Object(o.a)(n,[{key:"componentDidMount",value:function(){var t=this;this.props.visible&&setTimeout((function(){t.queryAllValidAccounts(),t.queryLatest100Payees(),t.queryTransactionTemplates(),t.queryAllTags()}),1e3)}},{key:"componentWillReceiveProps",value:function(t){t.visible&&!this.loaded&&(this.queryAllValidAccounts(),this.queryLatest100Payees(),this.queryTransactionTemplates(),this.queryAllTags(),this.loaded=!0),this.formRef.current&&t.defaultAccounts&&t.defaultAccounts.length>0&&(!this.props.defaultAccounts||t.defaultAccounts[0].account!==this.props.defaultAccounts[0].account)&&this.formRef.current.setFieldsValue({entries:Object(i.a)(t.defaultAccounts)})}},{key:"computeBalanceAmount",value:function(t,e){var n=Z()(0),r=t.entries.filter((function(t){return t&&t.currency!==e&&(t.number||t.price)}));return t.entries.filter((function(t){return t&&t.currency===e&&t.number})).forEach((function(t){var e=t.number;n=(n||Z()(0)).sub(Z()(e))})),r.forEach((function(t){var r=t.number,i=t.currency,a=t.price;i&&e!==i&&r&&a?n=(n||Z()(0)).sub(Z()(r).mul(Z()(a))):r?n=(n||Z()(0)).sub(Z()(r)):a&&(n=(n||Z()(0)).div(Z()(a)))})),n.toNumber()}},{key:"render",value:function(){var t=this;return Object(J.jsx)(M.a,Object(u.a)(Object(u.a)({title:"\u8bb0\u8d26",placement:"bottom",closable:!0,height:"90vh",className:"page-drawer",bodyStyle:{display:"flex",justifyContent:"center"},forceRender:!0},this.props),{},{children:Object(J.jsxs)(P.a,{className:"page-form",size:"large",ref:this.formRef,onFinish:this.handleSubmit,validateMessages:nt,children:[Object(J.jsx)("div",{style:{marginBottom:"1rem"},children:Object(J.jsx)(S.b,{wrap:!0,children:this.state.templates.map((function(e){return Object(J.jsx)("a",{onClick:function(){t.handleSetTemplate(e)},children:Object(J.jsx)(A.a,{size:"middle",color:"#1DA57A",closable:!0,onClose:function(n){t.handleDeleteTransactionTemplate(n,e.id)},children:e.templateName||e.payee||e.id})},e.id)}))})}),Object(J.jsx)(P.a.Item,{name:"date",initialValue:q()().format("YYYY-MM-DD"),rules:[{required:!0}],children:Object(J.jsx)(E.a,{type:"date",placeholder:"\u4ea4\u6613\u65f6\u95f4"})}),Object(J.jsx)(P.a.Item,{name:"payee",children:Object(J.jsx)(G,{onSearch:this.handleSearchPayee,placeholder:"\u6536\u6b3e\u4eba/\u5546\u6237/\u6536\u5165\u6765\u6e90\u6e20\u9053",children:this.state.autoCompletePayees.map((function(t){return Object(J.jsx)(G.Option,{value:t,children:t},t)}))})}),Object(J.jsx)(P.a.Item,{name:"desc",rules:[{required:!0,message:"\u8be6\u7ec6\u63cf\u8ff0"}],style:{flex:1},children:Object(J.jsx)(E.a,{placeholder:"\u8be6\u7ec6\u63cf\u8ff0\uff0c\u8bb0\u5f55\u7ec6\u8282"})}),Object(J.jsxs)("div",{style:{display:"flex"},children:[Object(J.jsx)(v,{style:{color:this.state.showTag?"#1DA57A":"gray",width:"40px",lineHeight:"40px",fontSize:"20px"},onClick:this.handleToggleShowTagInput}),Object(J.jsx)(b,{style:{color:this.state.isDivide?"#1DA57A":"gray",width:"40px",lineHeight:"40px",fontSize:"20px"},onClick:this.handleToggleShowDivideInput})]}),this.state.showTag&&Object(J.jsxs)(f.Fragment,{children:[Object(J.jsx)(H,{plain:!0,children:"\u6807\u7b7e"}),Object(J.jsx)(P.a.Item,{name:"tags",rules:[{required:!0}],children:Object(J.jsx)(O.a,{mode:"tags",style:{width:"100%"},placeholder:"\u6807\u7b7e\uff08\u4e0d\u652f\u6301\u4e2d\u6587\uff09\uff0c\u65c5\u884c/\u8ba1\u5212/\u5b66\u4e60",children:this.state.tags.map((function(t){return Object(J.jsx)(O.a.Option,{value:t,children:t},t)}))})})]}),this.state.isDivide&&Object(J.jsxs)(f.Fragment,{children:[Object(J.jsx)(H,{plain:!0,children:"\u9884\u652f\u5206\u671f"}),Object(J.jsxs)("div",{style:{display:"flex"},children:[Object(J.jsx)(P.a.Item,{name:"divideCount",rules:[{required:!0,message:"\u5206\u671f\u6570"}],style:{flex:"2",marginRight:"12px"},children:Object(J.jsx)(E.a,{type:"number",step:"1",addonAfter:"\u671f"})}),Object(J.jsx)(P.a.Item,{name:"divideCycle",initialValue:"month",style:{flex:"1"},children:Object(J.jsxs)(O.a,{style:{width:"100%"},children:[Object(J.jsx)(O.a.Option,{value:"day",children:"\u95f4\u9694\u4e00\u5929"}),Object(J.jsx)(O.a.Option,{value:"week",children:"\u95f4\u9694\u4e00\u5468"}),Object(J.jsx)(O.a.Option,{value:"month",children:"\u95f4\u9694\u4e00\u6708"})]})})]})]}),Object(J.jsx)(H,{plain:!0,children:"\u8d26\u6237\u660e\u7ec6"}),Object(J.jsx)(P.a.Item,{children:Object(J.jsx)(rt,{form:this.formRef,name:"entries",children:function(e,n){var r=n.add,i=n.remove;return Object(J.jsxs)("div",{children:[e.map((function(e){var n=null,r=t.formRef.current.getFieldsValue().entries[e.name];r&&(n=t.getAccountCommodity(r.account));var a=t.formRef.current.getFieldsValue(["entries"]),o=t.computeBalanceAmount(a,t.props.commodity.currency);return Object(J.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:8},children:[Object(J.jsx)(P.a.Item,{name:[e.name,"account"],fieldKey:[e.fieldKey,"account"],rules:[{required:!0,message:"\u5fc5\u8f93\u9879"}],children:Object(J.jsx)(O.a,{showSearch:!0,placeholder:"\u9009\u62e9\u8d26\u6237",optionFilterProp:"children",onChange:function(n){t.handleChangeAccount(n,e.name)},style:{marginRight:"10px"},children:t.state.accounts.map((function(t){return Object(J.jsxs)(et,{value:t.account,children:[Object(J.jsx)(Q.a,{style:{width:"22px",height:"22px",marginRight:"6px"},iconType:Object($.e)(t.account)}),t.account]})}))})}),n&&n!==t.props.commodity.currency&&(!r.isAnotherCurrency||!r.priceDate)&&Object(J.jsxs)(f.Fragment,{children:[Object(J.jsx)(P.a.Item,{hidden:!0,name:[e.name,"priceCurrency"],fieldKey:[e.fieldKey,"priceCurrency"],children:Object(J.jsx)(E.a,{})}),Object(J.jsx)(P.a.Item,{name:[e.name,"price"],fieldKey:[e.fieldKey,"price"],children:Object(J.jsx)(E.a,{type:"number",step:"0.01",addonBefore:"1 ".concat(n,"\u2248"),addonAfter:t.props.commodity.currency,placeholder:"\u6c47\u7387/\u51c0\u503c\uff08\u9009\u586b\uff09",onChange:t.handleChangeAmount})})]}),Object(J.jsx)(P.a.Item,{hidden:!0,name:[e.name,"currency"],fieldKey:[e.fieldKey,"currency"],children:Object(J.jsx)(E.a,{})}),Object(J.jsxs)("div",{style:{display:"flex"},children:[Object(J.jsx)(P.a.Item,{name:[e.name,"number"],fieldKey:[e.fieldKey,"number"],style:{flex:1},children:Object(J.jsx)(E.a,{type:"number",step:"0.01",addonBefore:r&&r.price?"".concat(n,"\u2248").concat(r.price).concat(t.props.commodity.currency):n,placeholder:o?"".concat(o,"(\u6309Enter\u952e\u53ef\u5feb\u901f\u4fdd\u5b58)"):"".concat(t.state.isDivide?"\u9884\u652f\u5206\u671f\u603b":"","\u91d1\u989d"),onChange:t.handleChangeAmount,style:{flex:1}})}),Object(J.jsx)(x.a,{style:{width:"40px",lineHeight:"40px",fontSize:"20px"},onClick:function(){i(e.name)}})]}),Object(J.jsx)(H,{})]},e.name)})),Object(J.jsx)(P.a.Item,{children:Object(J.jsxs)(U.a,{type:"dashed",onClick:function(){r()},block:!0,children:[Object(J.jsx)(_.a,{})," \u6dfb\u52a0\u8d26\u76ee"]})})]})}})}),Object(J.jsxs)(P.a.Item,{children:[Object(J.jsx)(U.a,{type:"primary",htmlType:"submit",loading:this.state.loading,className:"submit-button",children:"\u4fdd\u5b58"}),"\xa0\xa0",Object(J.jsx)(U.a,{htmlType:"button",disabled:this.state.loading,loading:this.state.templateLoading,onClick:this.handleSaveTransactionTemplate,block:!0,children:"\u4fdd\u5b58\u4e3a\u6a21\u7248"})]}),Object(J.jsx)(P.a.Item,{})]})}))}}]),n}(f.Component);e.a=it},300:function(t,e,n){"use strict";var r=n(89),i=n(3),a=n(2),o=n(6),s=n(8),l=n.n(s),u=n(33),c=n(0),f=n(38),d=n(43),p=n(4);function h(t){var e=c.useState(t),n=Object(p.a)(e,2),r=n[0],i=n[1];return c.useEffect((function(){var e=setTimeout((function(){i(t)}),t.length?0:10);return function(){clearTimeout(e)}}),[t]),r}var g=[];function v(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"===typeof t?t:"".concat(n,"-").concat(r),error:t,errorStatus:e}}function y(t){var e=t.help,n=t.helpStatus,s=t.errors,p=void 0===s?g:s,y=t.warnings,m=void 0===y?g:y,b=t.className,x=t.fieldId,_=t.onVisibleChanged,O=c.useContext(r.c).prefixCls,P=c.useContext(f.b).getPrefixCls,w="".concat(O,"-item-explain"),M=P(),S=h(p),A=h(m),E=c.useMemo((function(){return void 0!==e&&null!==e?[v(e,n,"help")]:[].concat(Object(o.a)(S.map((function(t,e){return v(t,"error","error",e)}))),Object(o.a)(A.map((function(t,e){return v(t,"warning","warning",e)}))))}),[e,n,S,A]),C={};return x&&(C.id="".concat(x,"_help")),c.createElement(u.b,{motionDeadline:d.a.motionDeadline,motionName:"".concat(M,"-show-help"),visible:!!E.length,onVisibleChanged:_},(function(t){var e=t.className,n=t.style;return c.createElement("div",Object(a.a)({},C,{className:l()(w,e,b),style:n,role:"alert"}),c.createElement(u.a,Object(a.a)({keys:E},d.a,{motionName:"".concat(M,"-show-help-item"),component:!1}),(function(t){var e=t.key,n=t.error,r=t.errorStatus,a=t.className,o=t.style;return c.createElement("div",{key:e,className:l()(a,Object(i.a)({},"".concat(w,"-").concat(r),r)),style:o},n)})))}))}var m=n(9),b=n(91),x=n(65),_=n(53),O=n(99);function P(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function w(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function M(t,e){if(t.clientHeighte||a>t&&o=e&&s>=n?a-t-r:o>e&&sn?o-e+i:0}var A=function(t,e){var n=window,r=e.scrollMode,i=e.block,a=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l="function"==typeof o?o:function(t){return t!==o};if(!P(t))throw new TypeError("Invalid target");for(var u,c,f=document.scrollingElement||document.documentElement,d=[],p=t;P(p)&&l(p);){if((p=null==(c=(u=p).parentElement)?u.getRootNode().host||null:c)===f){d.push(p);break}null!=p&&p===document.body&&M(p)&&!M(document.documentElement)||null!=p&&M(p,s)&&d.push(p)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,m=t.getBoundingClientRect(),b=m.height,x=m.width,_=m.top,O=m.right,w=m.bottom,A=m.left,E="start"===i||"nearest"===i?_:"end"===i?w:_+b/2,C="center"===a?A+x/2:"end"===a?O:A,j=[],I=0;I=0&&A>=0&&w<=g&&O<=h&&_>=D&&w<=N&&A>=B&&O<=R)return j;var z=getComputedStyle(T),V=parseInt(z.borderLeftWidth,10),G=parseInt(z.borderTopWidth,10),W=parseInt(z.borderRightWidth,10),Y=parseInt(z.borderBottomWidth,10),H=0,U=0,X="offsetWidth"in T?T.offsetWidth-T.clientWidth-V-W:0,q="offsetHeight"in T?T.offsetHeight-T.clientHeight-G-Y:0,K="offsetWidth"in T?0===T.offsetWidth?0:k/T.offsetWidth:0,Z="offsetHeight"in T?0===T.offsetHeight?0:L/T.offsetHeight:0;if(f===T)H="start"===i?E:"end"===i?E-g:"nearest"===i?S(y,y+g,g,G,Y,y+E,y+E+b,b):E-g/2,U="start"===a?C:"center"===a?C-h/2:"end"===a?C-h:S(v,v+h,h,V,W,v+C,v+C+x,x),H=Math.max(0,H+y),U=Math.max(0,U+v);else{H="start"===i?E-D-G:"end"===i?E-N+Y+q:"nearest"===i?S(D,N,L,G,Y+q,E,E+b,b):E-(D+L/2)+q/2,U="start"===a?C-B-V:"center"===a?C-(B+k/2)+X/2:"end"===a?C-R+W+X:S(B,R,k,V,W+X,C,C+x,x);var $=T.scrollLeft,Q=T.scrollTop;E+=Q-(H=Math.max(0,Math.min(Q+H/Z,T.scrollHeight-L/Z+q))),C+=$-(U=Math.max(0,Math.min($+U/K,T.scrollWidth-k/K+X)))}j.push({el:T,top:H,left:U})}return j};function E(t){return t===Object(t)&&0!==Object.keys(t).length}var C=function(t,e){var n=t.isConnected||t.ownerDocument.documentElement.contains(t);if(E(e)&&"function"===typeof e.behavior)return e.behavior(n?A(t,e):[]);if(n){var r=function(t){return!1===t?{block:"end",inline:"nearest"}:E(t)?t:{block:"start",inline:"nearest"}}(e);return function(t,e){void 0===e&&(e="auto");var n="scrollBehavior"in document.body.style;t.forEach((function(t){var r=t.el,i=t.top,a=t.left;r.scroll&&n?r.scroll({top:i,left:a,behavior:e}):(r.scrollTop=i,r.scrollLeft=a)}))}(A(t,r),r.behavior)}},j=["parentNode"],I="form_item";function T(t){return void 0===t||!1===t?[]:Array.isArray(t)?t:[t]}function F(t,e){if(t.length){var n=t.join("_");return e?"".concat(e,"_").concat(n):j.includes(n)?"".concat(I,"_").concat(n):n}}function L(t){return T(t).join("_")}function k(t){var e=Object(b.g)(),n=Object(p.a)(e,1)[0],r=c.useRef({}),i=c.useMemo((function(){return null!==t&&void 0!==t?t:Object(a.a)(Object(a.a)({},n),{__INTERNAL__:{itemRef:function(t){return function(e){var n=L(t);e?r.current[n]=e:delete r.current[n]}}},scrollToField:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=F(T(t),i.__INTERNAL__.name),r=n?document.getElementById(n):null;r&&C(r,Object(a.a)({scrollMode:"if-needed",block:"nearest"},e))},getFieldInstance:function(t){var e=L(t);return r.current[e]}})}),[t,n]);return[i]}var D=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i0||$.length>0||t.extra){var _=[];(t.help||Z.length>0)&&_.push("".concat(p,"_help")),t.extra&&_.push("".concat(p,"_extra")),b["aria-describedby"]=_.join(" ")}Z.length>0&&(b["aria-invalid"]="true"),g&&(b["aria-required"]="true"),Object(z.c)(d)&&(b.ref=Q(f,d)),new Set([].concat(Object(o.a)(T(x)),Object(o.a)(T(E)))).forEach((function(t){b[t]=function(){for(var e,n,r,i,a,o=arguments.length,s=new Array(o),l=0;l0&&f.a.createElement("ul",{className:"".concat(O,"-item-action"),key:"actions"},o.map((function(t,e){return f.a.createElement("li",{key:"".concat(O,"-item-action-").concat(e)},t,e!==o.length-1&&f.a.createElement("em",{className:"".concat(O,"-item-action-split")}))}))),w=v?"div":"li",M=f.a.createElement(w,Object(i.a)({},h,v?{}:{ref:e},{className:u()("".concat(O,"-item"),Object(a.a)({},"".concat(O,"-item-no-flex"),!("vertical"===y?s:!function(){var t;return c.Children.forEach(r,(function(e){"string"===typeof e&&(t=!0)})),t&&c.Children.count(r)>1}())),l)}),"vertical"===y&&s?[f.a.createElement("div",{className:"".concat(O,"-item-main"),key:"content"},r,P),f.a.createElement("div",{className:"".concat(O,"-item-extra"),key:"extra"},s)]:[r,P,Object(x.a)(s,{key:"extra"})]);return v?f.a.createElement(b.a,{ref:e,flex:1,style:p},M):M},P=Object(c.forwardRef)(O);P.Meta=function(t){var e=t.prefixCls,n=t.className,r=t.avatar,a=t.title,o=t.description,s=_(t,["prefixCls","className","avatar","title","description"]),l=(0,Object(c.useContext)(d.b).getPrefixCls)("list",e),p=u()("".concat(l,"-item-meta"),n),h=f.a.createElement("div",{className:"".concat(l,"-item-meta-content")},a&&f.a.createElement("h4",{className:"".concat(l,"-item-meta-title")},a),o&&f.a.createElement("div",{className:"".concat(l,"-item-meta-description")},o));return f.a.createElement("div",Object(i.a)({},s,{className:p}),r&&f.a.createElement("div",{className:"".concat(l,"-item-meta-avatar")},r),(a||o)&&h)};var w=P,M=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);iut&&(lt.current=ut);var ct=l?c.createElement("div",{className:"".concat(rt,"-pagination")},c.createElement(v.a,Object(i.a)({},lt,{onChange:et,onShowSizeChange:nt}))):null,ft=Object(r.a)(I);l&&I.length>(lt.current-1)*lt.pageSize&&(ft=Object(r.a)(I).splice((lt.current-1)*lt.pageSize,lt.pageSize));var dt=Object.keys(C||{}).some((function(t){return["xs","sm","md","lg","xl","xxl"].includes(t)})),pt=Object(g.a)(dt),ht=c.useMemo((function(){for(var t=0;t0){var yt=ft.map((function(t,e){return function(t,e){return N?((n="function"===typeof R?R(t):R?t[R]:t.key)||(n="list-item-".concat(e)),c.createElement(c.Fragment,{key:n},N(t,e))):null;var n}(t,e)}));vt=C?c.createElement(h.a,{gutter:C.gutter},c.Children.map(yt,(function(t){return c.createElement("div",{key:null===t||void 0===t?void 0:t.key,style:gt},t)}))):c.createElement("ul",{className:"".concat(rt,"-items")},yt)}else w||at||(vt=function(t,e){return c.createElement("div",{className:"".concat(t,"-empty-text")},B&&B.emptyText||e("List"))}(rt,Q||p.a));var mt=lt.position||"bottom",bt=c.useMemo((function(){return{grid:C,itemLayout:A}}),[JSON.stringify(C),A]);return c.createElement(S.Provider,{value:bt},c.createElement("div",Object(i.a)({className:st},z),("top"===mt||"both"===mt)&&ct,F&&c.createElement("div",{className:"".concat(rt,"-header")},F),c.createElement(y.a,Object(i.a)({},it),vt,w),L&&c.createElement("div",{className:"".concat(rt,"-footer")},L),E||("bottom"===mt||"both"===mt)&&ct))}A.Item=w;e.b=A},302:function(t,e,n){"use strict";var r=n(3),i=n(2),a=n(4),o=n(66),s=n(8),l=n.n(s),u=n(63),c=n(0),f=n(38),d=n(213),p=n(96),h=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i0&&(e.percent=e.loaded/e.total*100),t.onProgress(e)});var n=new FormData;t.data&&Object.keys(t.data).forEach((function(e){var r=t.data[e];Array.isArray(r)?r.forEach((function(t){n.append("".concat(e,"[]"),t)})):n.append(e,r)})),t.file instanceof Blob?n.append(t.filename,t.file,t.file.name):n.append(t.filename,t.file),e.onerror=function(e){t.onError(e)},e.onload=function(){return e.status<200||e.status>=300?t.onError(function(t,e){var n="cannot ".concat(t.method," ").concat(t.action," ").concat(e.status,"'"),r=new Error(n);return r.status=e.status,r.method=t.method,r.url=t.action,r}(t,e),x(e)):t.onSuccess(x(e),e)},e.open(t.method,t.action,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var r=t.headers||{};return null!==r["X-Requested-With"]&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(t){null!==r[t]&&e.setRequestHeader(t,r[t])})),e.send(n),{abort:function(){e.abort()}}}var O=+new Date,P=0;function w(){return"rc-upload-".concat(O,"-").concat(++P)}var M=n(17),S=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(","),r=t.name||"",i=t.type||"",a=i.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim();if(/^\*(\/\*)?$/.test(t))return!0;if("."===e.charAt(0)){var n=r.toLowerCase(),o=e.toLowerCase(),s=[o];return".jpg"!==o&&".jpeg"!==o||(s=[".jpg",".jpeg"]),s.some((function(t){return n.endsWith(t)}))}return/\/\*$/.test(e)?a===e.replace(/\/.*$/,""):i===e||!!/^\w+$/.test(e)&&(Object(M.a)(!1,"Upload takes an invalidate 'accept' type '".concat(e,"'.Skip for check.")),!0)}))}return!0};var A=function(t,e,n){var r=function t(r,i){r.path=i||"",r.isFile?r.file((function(t){n(t)&&(r.fullPath&&!t.webkitRelativePath&&(Object.defineProperties(t,{webkitRelativePath:{writable:!0}}),t.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(t,{webkitRelativePath:{writable:!1}})),e([t]))})):r.isDirectory&&function(t,e){var n=t.createReader(),r=[];!function t(){n.readEntries((function(n){var i=Array.prototype.slice.apply(n);r=r.concat(i),i.length?t():e(r)}))}()}(r,(function(e){e.forEach((function(e){t(e,"".concat(i).concat(r.name,"/"))}))}))};t.forEach((function(t){r(t.webkitGetAsEntry())}))},E=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],C=function(t){Object(g.a)(n,t);var e=Object(v.a)(n);function n(){var t;Object(p.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:"").split("/"),e=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(e)||[""])[0]}(e);return!(!/^data:image\//.test(e)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(e)&&!n},lt=200;function ut(t){return new Promise((function(e){if(t.type&&ot(t.type)){var n=document.createElement("canvas");n.width=lt,n.height=lt,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(lt,"px; height: ").concat(lt,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),i=new Image;if(i.onload=function(){var t=i.width,a=i.height,o=lt,s=lt,l=0,u=0;t>a?u=-((s=a*(lt/t))-o)/2:l=-((o=t*(lt/a))-s)/2,r.drawImage(i,l,u,o,s);var c=n.toDataURL();document.body.removeChild(n),e(c)},i.crossOrigin="anonymous",t.type.startsWith("image/svg+xml")){var a=new FileReader;a.addEventListener("load",(function(){a.result&&(i.src=a.result)})),a.readAsDataURL(t)}else i.src=window.URL.createObjectURL(t)}else e("")}))}var ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},ft=function(t,e){return i.createElement(G.a,Object(z.a)(Object(z.a)({},t),{},{ref:e,icon:ct}))};ft.displayName="DeleteOutlined";var dt=i.forwardRef(ft),pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ht=function(t,e){return i.createElement(G.a,Object(z.a)(Object(z.a)({},t),{},{ref:e,icon:pt}))};ht.displayName="DownloadOutlined";var gt=i.forwardRef(ht),vt=n(227),yt=n(94),mt=n(256),bt=n(92),xt=n(66),_t=n(63),Ot=n(42),Pt=n(55),wt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Mt=function(){var t=Object(i.useRef)([]),e=Object(i.useRef)(null);return Object(i.useEffect)((function(){var n=Date.now(),r=!1;t.current.forEach((function(t){if(t){r=!0;var i=t.style;i.transitionDuration=".3s, .3s, .3s, .06s",e.current&&n-e.current<100&&(i.transitionDuration="0s, 0s")}})),r&&(e.current=Date.now())})),t.current};var St=n(13),At=0,Et=Object(St.a)();var Ct=function(t){var e=i.useState(),n=Object(c.a)(e,2),r=n[0],a=n[1];return i.useEffect((function(){a("rc_progress_".concat(function(){var t;return Et?(t=At,At+=1):t="TEST_OR_SSR",t}()))}),[]),t||r},jt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function It(t){return+t.replace("%","")}function Tt(t){var e=null!==t&&void 0!==t?t:[];return Array.isArray(e)?e:[e]}var Ft=100,Lt=function(t,e,n,r,i,a,o,s,l,u){var c=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,f=n/100*360*((360-a)/360),d=0===a?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*e;return"round"===l&&100!==r&&(p+=u/2)>=e&&(p=e-.01),{stroke:"string"===typeof s?s:void 0,strokeDasharray:"".concat(e,"px ").concat(t),strokeDashoffset:p+c,transform:"rotate(".concat(i+f+d,"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};var kt=function(t){var e=Object(z.a)(Object(z.a)({},wt),t),n=e.id,a=e.prefixCls,o=e.steps,s=e.strokeWidth,u=e.trailWidth,c=e.gapDegree,f=void 0===c?0:c,p=e.gapPosition,h=e.trailColor,g=e.strokeLinecap,v=e.style,m=e.className,b=e.strokeColor,x=e.percent,_=Object(y.a)(e,jt),O=Ct(n),P="".concat(O,"-gradient"),w=50-s/2,M=2*Math.PI*w,S=f>0?90+f/2:-90,A=M*((360-f)/360),E="object"===Object(l.a)(o)?o:{count:o,space:2},C=E.count,j=E.space,I=Lt(M,A,0,100,S,f,p,h,g,s),T=Tt(x),F=Tt(b),L=F.find((function(t){return t&&"object"===Object(l.a)(t)})),k=Mt();return i.createElement("svg",Object(r.a)({className:d()("".concat(a,"-circle"),m),viewBox:"".concat(-50," ").concat(-50," ").concat(Ft," ").concat(Ft),style:v,id:n,role:"presentation"},_),L&&i.createElement("defs",null,i.createElement("linearGradient",{id:P,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(L).sort((function(t,e){return It(t)-It(e)})).map((function(t,e){return i.createElement("stop",{key:e,offset:t,stopColor:L[t]})})))),!C&&i.createElement("circle",{className:"".concat(a,"-circle-trail"),r:w,cx:0,cy:0,stroke:h,strokeLinecap:g,strokeWidth:u||s,style:I}),C?function(){var t=Math.round(C*(T[0]/100)),e=100/C,n=0;return new Array(C).fill(null).map((function(r,o){var u=o<=t-1?F[0]:h,c=u&&"object"===Object(l.a)(u)?"url(#".concat(P,")"):void 0,d=Lt(M,A,n,e,S,f,p,u,"butt",s,j);return n+=100*(A-d.strokeDashoffset+j)/A,i.createElement("circle",{key:o,className:"".concat(a,"-circle-path"),r:w,cx:0,cy:0,stroke:c,strokeWidth:s,opacity:1,style:d,ref:function(t){k[o]=t}})}))}():function(){var t=0;return T.map((function(e,n){var r=F[n]||F[F.length-1],o=r&&"object"===Object(l.a)(r)?"url(#".concat(P,")"):void 0,u=Lt(M,A,t,e,S,f,p,r,g,s);return t+=e,i.createElement("circle",{key:n,className:"".concat(a,"-circle-path"),r:w,cx:0,cy:0,stroke:o,strokeLinecap:g,strokeWidth:s,opacity:0===e?0:1,style:u,ref:function(t){k[n]=t}})})).reverse()}())};function Dt(t){return!t||t<0?0:t>100?100:t}function Rt(t){var e=t.success,n=t.successPercent;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}function Nt(t){var e=t.percent,n=Dt(Rt({success:t.success,successPercent:t.successPercent}));return[n,Dt(Dt(e)-n)]}var Bt=function(t){var e=t.prefixCls,n=t.width,r=t.strokeWidth,a=t.trailColor,s=void 0===a?null:a,l=t.strokeLinecap,u=void 0===l?"round":l,c=t.gapPosition,f=t.gapDegree,p=t.type,h=t.children,g=t.success,v=n||120,y={width:v,height:v,fontSize:.15*v+6},m=r||6,b=c||"dashboard"===p&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(t.strokeColor),_=function(t){var e=t.success,n=void 0===e?{}:e,r=t.strokeColor;return[n.strokeColor||Pt.b.green,r||null]}({success:g,strokeColor:t.strokeColor}),O=d()("".concat(e,"-inner"),Object(o.a)({},"".concat(e,"-circle-gradient"),x));return i.createElement("div",{className:O,style:y},i.createElement(kt,{percent:Nt(t),strokeWidth:m,trailWidth:m,strokeColor:_,strokeLinecap:u,trailColor:s,prefixCls:e,gapDegree:f||0===f?f:"dashboard"===p?75:void 0,gapPosition:b}),h)},zt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=100?"success":e||"normal"}(),M=function(e,n){var r,a=t.format,o=Rt(t);if(!g)return null;var s="line"===y;return a||"exception"!==n&&"success"!==n?r=(a||function(t){return"".concat(t,"%")})(Dt(c),Dt(o)):"exception"===n?r=s?i.createElement(bt.a,null):i.createElement(xt.a,null):"success"===n&&(r=s?i.createElement(yt.a,null):i.createElement(mt.a,null)),i.createElement("span",{className:"".concat(e,"-text"),title:"string"===typeof r?r:void 0},r)}(P,w),S=Array.isArray(l)?l[0]:l,A="string"===typeof l||Array.isArray(l)?l:void 0;"line"===y?b=s?i.createElement(Wt,Object(r.a)({},t,{strokeColor:A,prefixCls:P,steps:s}),M):i.createElement(Gt,Object(r.a)({},t,{strokeColor:S,prefixCls:P,direction:O}),M):"circle"!==y&&"dashboard"!==y||(b=i.createElement(Bt,Object(r.a)({},t,{strokeColor:S,prefixCls:P,progressStatus:w}),M));var E=d()(P,(e={},Object(o.a)(e,"".concat(P,"-").concat(("dashboard"===y?"circle":s&&"steps")||y),!0),Object(o.a)(e,"".concat(P,"-status-").concat(w),!0),Object(o.a)(e,"".concat(P,"-show-info"),g),Object(o.a)(e,"".concat(P,"-").concat(p),p),Object(o.a)(e,"".concat(P,"-rtl"),"rtl"===O),e),a);return i.createElement("div",Object(r.a)({},Object(_t.a)(m,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"]),{className:E,role:"progressbar"}),b)},Xt=n(190),qt=i.forwardRef((function(t,e){var n,a,s,l=t.prefixCls,u=t.className,f=t.style,p=t.locale,h=t.listType,g=t.file,v=t.items,y=t.progress,m=t.iconRender,b=t.actionIconRender,x=t.itemRender,_=t.isImgUrl,O=t.showPreviewIcon,P=t.showRemoveIcon,w=t.showDownloadIcon,M=t.previewIcon,S=t.removeIcon,A=t.downloadIcon,E=t.onPreview,C=t.onDownload,j=t.onClose,I=g.status,T=i.useState(I),F=Object(c.a)(T,2),L=F[0],k=F[1];i.useEffect((function(){"removed"!==I&&k(I)}),[I]);var R=i.useState(!1),N=Object(c.a)(R,2),B=N[0],z=N[1],V=i.useRef(null);i.useEffect((function(){return V.current=setTimeout((function(){z(!0)}),300),function(){V.current&&clearTimeout(V.current)}}),[]);var G="".concat(l,"-span"),W=m(g),Y=i.createElement("div",{className:"".concat(l,"-text-icon")},W);if("picture"===h||"picture-card"===h)if("uploading"===L||!g.thumbUrl&&!g.url){var H,U=d()((H={},Object(o.a)(H,"".concat(l,"-list-item-thumbnail"),!0),Object(o.a)(H,"".concat(l,"-list-item-file"),"uploading"!==L),H));Y=i.createElement("div",{className:U},W)}else{var X,q=(null===_||void 0===_?void 0:_(g))?i.createElement("img",{src:g.thumbUrl||g.url,alt:g.name,className:"".concat(l,"-list-item-image"),crossOrigin:g.crossOrigin}):W,K=d()((X={},Object(o.a)(X,"".concat(l,"-list-item-thumbnail"),!0),Object(o.a)(X,"".concat(l,"-list-item-file"),_&&!_(g)),X));Y=i.createElement("a",{className:K,onClick:function(t){return E(g,t)},href:g.url||g.thumbUrl,target:"_blank",rel:"noopener noreferrer"},q)}var Z,$=d()((n={},Object(o.a)(n,"".concat(l,"-list-item"),!0),Object(o.a)(n,"".concat(l,"-list-item-").concat(L),!0),Object(o.a)(n,"".concat(l,"-list-item-list-type-").concat(h),!0),n)),J="string"===typeof g.linkProps?JSON.parse(g.linkProps):g.linkProps,tt=P?b(("function"===typeof S?S(g):S)||i.createElement(dt,null),(function(){return j(g)}),l,p.removeFile):null,et=w&&"done"===L?b(("function"===typeof A?A(g):A)||i.createElement(gt,null),(function(){return C(g)}),l,p.downloadFile):null,nt="picture-card"!==h&&i.createElement("span",{key:"download-delete",className:d()("".concat(l,"-list-item-card-actions"),{picture:"picture"===h})},et,tt),rt=d()("".concat(l,"-list-item-name")),it=g.url?[i.createElement("a",Object(r.a)({key:"view",target:"_blank",rel:"noopener noreferrer",className:rt,title:g.name},J,{href:g.url,onClick:function(t){return E(g,t)}}),g.name),nt]:[i.createElement("span",{key:"view",className:rt,onClick:function(t){return E(g,t)},title:g.name},g.name),nt],at=O?i.createElement("a",{href:g.url||g.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:g.url||g.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(t){return E(g,t)},title:p.previewFile},"function"===typeof M?M(g):M||i.createElement(vt.a,null)):null,ot="picture-card"===h&&"uploading"!==L&&i.createElement("span",{className:"".concat(l,"-list-item-actions")},at,"done"===L&&et,tt);Z=g.response&&"string"===typeof g.response?g.response:(null===(a=g.error)||void 0===a?void 0:a.statusText)||(null===(s=g.error)||void 0===s?void 0:s.message)||p.uploadError;var st=i.createElement("span",{className:G},Y,it),lt=(0,i.useContext(D.b).getPrefixCls)(),ut=i.createElement("div",{className:$},i.createElement("div",{className:"".concat(l,"-list-item-info")},st),ot,B&&i.createElement(Q.b,{motionName:"".concat(lt,"-fade"),visible:"uploading"===L,motionDeadline:2e3},(function(t){var e=t.className,n="percent"in g?i.createElement(Ut,Object(r.a)({},y,{type:"line",percent:g.percent})):null;return i.createElement("div",{className:d()("".concat(l,"-list-item-progress"),e)},n)}))),ct=d()("".concat(l,"-list-").concat(h,"-container"),u),ft="error"===L?i.createElement(Xt.a,{title:Z,getPopupContainer:function(t){return t.parentNode}},ut):ut;return i.createElement("div",{className:ct,style:f,ref:e},x?x(ft,g,v,{download:C.bind(null,g),preview:E.bind(null,g),remove:j.bind(null,g)}):ft)})),Kt=Object(r.a)({},et.a);delete Kt.onAppearEnd,delete Kt.onEnterEnd,delete Kt.onLeaveEnd;var Zt=function(t,e){var n,a=t.listType,s=void 0===a?"text":a,l=t.previewFile,f=void 0===l?ut:l,p=t.onPreview,h=t.onDownload,g=t.onRemove,v=t.locale,y=t.iconRender,m=t.isImageUrl,b=void 0===m?st:m,x=t.prefixCls,_=t.items,O=void 0===_?[]:_,P=t.showPreviewIcon,w=void 0===P||P,M=t.showRemoveIcon,S=void 0===M||M,A=t.showDownloadIcon,E=void 0!==A&&A,C=t.removeIcon,j=t.previewIcon,I=t.downloadIcon,T=t.progress,F=void 0===T?{strokeWidth:2,showInfo:!1}:T,L=t.appendAction,k=t.appendActionVisible,R=void 0===k||k,N=t.itemRender,B=t.disabled,z=Object(tt.a)(),V=i.useState(!1),G=Object(c.a)(V,2),W=G[0],U=G[1];i.useEffect((function(){"picture"!==s&&"picture-card"!==s||(O||[]).forEach((function(t){"undefined"!==typeof document&&"undefined"!==typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",f&&f(t.originFileObj).then((function(e){t.thumbUrl=e||"",z()})))}))}),[s,O,f]),i.useEffect((function(){U(!0)}),[]);var X=function(t,e){if(p)return null===e||void 0===e||e.preventDefault(),p(t)},K=function(t){"function"===typeof h?h(t):t.url&&window.open(t.url)},Z=function(t){null===g||void 0===g||g(t)},et=function(t){if(y)return y(t,s);var e="uploading"===t.status,n=b&&b(t)?i.createElement($,null):i.createElement(Y,null),r=e?i.createElement(H.a,null):i.createElement(q,null);return"picture"===s?r=e?i.createElement(H.a,null):n:"picture-card"===s&&(r=e?v.uploading:n),r},rt=function(t,e,n,a){var o={type:"text",size:"small",title:a,disabled:B,onClick:function(n){e(),Object(nt.c)(t)&&t.props.onClick&&t.props.onClick(n)},className:"".concat(n,"-list-item-card-actions-btn")};if(Object(nt.c)(t)){var s=Object(nt.a)(t,Object(r.a)(Object(r.a)({},t.props),{onClick:function(){}}));return i.createElement(J.a,Object(r.a)({},o,{icon:s}))}return i.createElement(J.a,Object(r.a)({},o),i.createElement("span",null,t))};i.useImperativeHandle(e,(function(){return{handlePreview:X,handleDownload:K}}));var it=i.useContext(D.b),at=it.getPrefixCls,ot=it.direction,lt=at("upload",x),ct=d()((n={},Object(o.a)(n,"".concat(lt,"-list"),!0),Object(o.a)(n,"".concat(lt,"-list-").concat(s),!0),Object(o.a)(n,"".concat(lt,"-list-rtl"),"rtl"===ot),n)),ft=Object(u.a)(O.map((function(t){return{key:t.uid,file:t}}))),dt="picture-card"===s?"animate-inline":"animate",pt={motionDeadline:2e3,motionName:"".concat(lt,"-").concat(dt),keys:ft,motionAppear:W};return"picture-card"!==s&&(pt=Object(r.a)(Object(r.a)({},Kt),pt)),i.createElement("div",{className:ct},i.createElement(Q.a,Object(r.a)({},pt,{component:!1}),(function(t){var e=t.key,n=t.file,r=t.className,a=t.style;return i.createElement(qt,{key:e,locale:v,prefixCls:lt,className:r,style:a,file:n,items:O,progress:F,listType:s,isImgUrl:b,showPreviewIcon:w,showRemoveIcon:S,showDownloadIcon:E,removeIcon:C,previewIcon:j,downloadIcon:I,iconRender:et,actionIconRender:rt,itemRender:N,onPreview:X,onDownload:K,onClose:Z})})),L&&i.createElement(Q.b,Object(r.a)({},pt,{visible:R,forceRender:!0}),(function(t){var e=t.className,n=t.style;return Object(nt.a)(L,(function(t){return{className:d()(t.className,e),style:Object(r.a)(Object(r.a)(Object(r.a)({},n),{pointerEvents:e?"none":void 0}),t.style)}}))})))};var $t=i.forwardRef(Zt),Qt=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(e){a(e)}}function s(t){try{l(r.throw(t))}catch(e){a(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))},Jt="__LIST_IGNORE_".concat(Date.now(),"__"),te=function(t,e){var n,a=t.fileList,f=t.defaultFileList,p=t.onRemove,h=t.showUploadList,g=void 0===h||h,v=t.listType,y=void 0===v?"text":v,m=t.onPreview,b=t.onDownload,x=t.onChange,_=t.onDrop,O=t.previewFile,P=t.disabled,w=t.locale,M=t.iconRender,S=t.isImageUrl,A=t.progress,E=t.prefixCls,C=t.className,j=t.type,I=void 0===j?"select":j,T=t.children,z=t.style,V=t.itemRender,G=t.maxCount,W=t.data,Y=void 0===W?{}:W,H=t.multiple,U=void 0!==H&&H,X=t.action,q=void 0===X?"":X,K=t.accept,Z=void 0===K?"":K,$=t.supportServerRender,Q=void 0===$||$,J=i.useContext(R.b),tt=null!==P&&void 0!==P?P:J,et=Object(L.a)(f||[],{value:a,postState:function(t){return null!==t&&void 0!==t?t:[]}}),nt=Object(c.a)(et,2),ot=nt[0],st=nt[1],lt=i.useState("drop"),ut=Object(c.a)(lt,2),ct=ut[0],ft=ut[1],dt=i.useRef(null);i.useMemo((function(){var t=Date.now();(a||[]).forEach((function(e,n){e.uid||Object.isFrozen(e)||(e.uid="__AUTO__".concat(t,"_").concat(n,"__"))}))}),[a]);var pt=function(t,e,n){var r=Object(u.a)(e);1===G?r=r.slice(-1):G&&(r=r.slice(0,G)),Object(k.flushSync)((function(){st(r)}));var i={file:t,fileList:r};n&&(i.event=n),Object(k.flushSync)((function(){null===x||void 0===x||x(i)}))},ht=function(t){var e=t.filter((function(t){return!t.file[Jt]}));if(e.length){var n=e.map((function(t){return rt(t.file)})),r=Object(u.a)(ot);n.forEach((function(t){r=it(t,r)})),n.forEach((function(t,n){var i=t;if(e[n].parsedFile)t.status="uploading";else{var a,o=t.originFileObj;try{a=new File([o],o.name,{type:o.type})}catch(s){(a=new Blob([o],{type:o.type})).name=o.name,a.lastModifiedDate=new Date,a.lastModified=(new Date).getTime()}a.uid=t.uid,i=a}pt(i,r)}))}},gt=function(t,e,n){try{"string"===typeof t&&(t=JSON.parse(t))}catch(a){}if(at(e,ot)){var r=rt(e);r.status="done",r.percent=100,r.response=t,r.xhr=n;var i=it(r,ot);pt(r,i)}},vt=function(t,e){if(at(e,ot)){var n=rt(e);n.status="uploading",n.percent=t.percent;var r=it(n,ot);pt(n,r,t)}},yt=function(t,e,n){if(at(n,ot)){var r=rt(n);r.error=t,r.response=e,r.status="error";var i=it(r,ot);pt(r,i)}},mt=function(t){var e;Promise.resolve("function"===typeof p?p(t):p).then((function(n){var i;if(!1!==n){var a=function(t,e){var n=void 0!==t.uid?"uid":"name",r=e.filter((function(e){return e[n]!==t[n]}));return r.length===e.length?null:r}(t,ot);a&&(e=Object(r.a)(Object(r.a)({},t),{status:"removed"}),null===ot||void 0===ot||ot.forEach((function(t){var n=void 0!==e.uid?"uid":"name";t[n]!==e[n]||Object.isFrozen(t)||(t.status="removed")})),null===(i=dt.current)||void 0===i||i.abort(e),pt(e,a))}}))},bt=function(t){ft(t.type),"drop"===t.type&&(null===_||void 0===_||_(t))};i.useImperativeHandle(e,(function(){return{onBatchStart:ht,onSuccess:gt,onProgress:vt,onError:yt,fileList:ot,upload:dt.current}}));var xt=i.useContext(D.b),_t=xt.getPrefixCls,Ot=xt.direction,Pt=_t("upload",E),wt=Object(r.a)(Object(r.a)({onBatchStart:ht,onError:yt,onProgress:vt,onSuccess:gt},t),{data:Y,multiple:U,action:q,accept:Z,supportServerRender:Q,prefixCls:Pt,disabled:tt,beforeUpload:function(e,n){return Qt(void 0,void 0,void 0,Object(s.a)().mark((function r(){var i,a,o,u;return Object(s.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=t.beforeUpload,a=t.transformFile,o=e,!i){r.next=13;break}return r.next=5,i(e,n);case 5:if(!1!==(u=r.sent)){r.next=8;break}return r.abrupt("return",!1);case 8:if(delete e[Jt],u!==Jt){r.next=12;break}return Object.defineProperty(e,Jt,{value:!0,configurable:!0}),r.abrupt("return",!1);case 12:"object"===Object(l.a)(u)&&u&&(o=u);case 13:if(!a){r.next=17;break}return r.next=16,a(o);case 16:o=r.sent;case 17:return r.abrupt("return",o);case 18:case"end":return r.stop()}}),r)})))},onChange:void 0});delete wt.className,delete wt.style,T&&!tt||delete wt.id;var Mt=function(t,e){return g?i.createElement(N.a,{componentName:"Upload",defaultLocale:B.a.Upload},(function(n){var a="boolean"===typeof g?{}:g,o=a.showRemoveIcon,s=a.showPreviewIcon,l=a.showDownloadIcon,u=a.removeIcon,c=a.previewIcon,f=a.downloadIcon;return i.createElement($t,{prefixCls:Pt,listType:y,items:ot,previewFile:O,onPreview:m,onDownload:b,onRemove:mt,showRemoveIcon:!tt&&o,showPreviewIcon:s,showDownloadIcon:l,removeIcon:u,previewIcon:c,downloadIcon:f,iconRender:M,locale:Object(r.a)(Object(r.a)({},n),w),isImageUrl:S,progress:A,appendAction:t,appendActionVisible:e,itemRender:V,disabled:tt})})):t};if("drag"===I){var St,At=d()(Pt,(St={},Object(o.a)(St,"".concat(Pt,"-drag"),!0),Object(o.a)(St,"".concat(Pt,"-drag-uploading"),ot.some((function(t){return"uploading"===t.status}))),Object(o.a)(St,"".concat(Pt,"-drag-hover"),"dragover"===ct),Object(o.a)(St,"".concat(Pt,"-disabled"),tt),Object(o.a)(St,"".concat(Pt,"-rtl"),"rtl"===Ot),St),C);return i.createElement("span",null,i.createElement("div",{className:At,onDrop:bt,onDragOver:bt,onDragLeave:bt,style:z},i.createElement(F,Object(r.a)({},wt,{ref:dt,className:"".concat(Pt,"-btn")}),i.createElement("div",{className:"".concat(Pt,"-drag-container")},T))),Mt())}var Et,Ct=d()(Pt,(n={},Object(o.a)(n,"".concat(Pt,"-select"),!0),Object(o.a)(n,"".concat(Pt,"-select-").concat(y),!0),Object(o.a)(n,"".concat(Pt,"-disabled"),tt),Object(o.a)(n,"".concat(Pt,"-rtl"),"rtl"===Ot),n)),jt=(Et=T?void 0:{display:"none"},i.createElement("div",{className:Ct,style:Et},i.createElement(F,Object(r.a)({},wt,{ref:dt}))));return"picture-card"===y?i.createElement("span",{className:d()("".concat(Pt,"-picture-card-wrapper"),C)},Mt(jt,!!T)):i.createElement("span",{className:C},jt,Mt())};var ee=i.forwardRef(te),ne=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i-1?e.splice(n,1):e.push(t)}r.setActiveKey(e)},r.getNewChild=function(t,e){if(!t)return null;var n=r.state.activeKey,i=r.props,a=i.prefixCls,o=i.openMotion,s=i.accordion,l=i.destroyInactivePanel,u=i.expandIcon,f=i.collapsible,d=t.key||String(e),p=t.props,h=p.header,g=p.headerClass,v=p.destroyInactivePanel,y=p.collapsible,m=null!==y&&void 0!==y?y:f,b={key:d,panelKey:d,header:h,headerClass:g,isActive:s?n[0]===d:n.indexOf(d)>-1,prefixCls:a,destroyInactivePanel:null!==v&&void 0!==v?v:l,openMotion:o,accordion:s,children:t.props.children,onItemClick:"disabled"===m?null:r.onClickItem,expandIcon:u,collapsible:m};return"string"===typeof t.type?t:(Object.keys(b).forEach((function(t){"undefined"===typeof b[t]&&delete b[t]})),c.cloneElement(t,b))},r.getItems=function(){var t=r.props.children;return Object(z.a)(t).map(r.getNewChild)},r.setActiveKey=function(t){"activeKey"in r.props||r.setState({activeKey:t}),r.props.onChange(r.props.accordion?t[0]:t)};var o=t.activeKey,s=t.defaultActiveKey;return"activeKey"in t&&(s=o),r.state={activeKey:$(s)},r}return Object(o.a)(n,[{key:"shouldComponentUpdate",value:function(t,e){return!G()(this.props,t)||!G()(this.state,e)}},{key:"render",value:function(){var t,e=this.props,n=e.prefixCls,r=e.className,i=e.style,a=e.accordion,o=N()((t={},Object(k.a)(t,n,!0),Object(k.a)(t,r,!!r),t));return c.createElement("div",{className:o,style:i,role:a?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(t){var e={};return"activeKey"in t&&(e.activeKey=$(t.activeKey)),e}}]),n}(c.Component);Q.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},Q.Panel=Z;var J=Q,tt=(Q.Panel,n(63)),et=n(38),nt=n(43),rt=n(51),it=function(t){var e,n=c.useContext(et.b),r=n.getPrefixCls,i=n.direction,a=t.prefixCls,o=t.className,s=void 0===o?"":o,l=t.bordered,u=void 0===l||l,f=t.ghost,d=t.expandIconPosition,p=void 0===d?"start":d,h=r("collapse",a),g=c.useMemo((function(){return"left"===p?"start":"right"===p?"end":p}),[p]),v=N()("".concat(h,"-icon-position-").concat(g),(e={},Object(k.a)(e,"".concat(h,"-borderless"),!u),Object(k.a)(e,"".concat(h,"-rtl"),"rtl"===i),Object(k.a)(e,"".concat(h,"-ghost"),!!f),e),s),y=Object(L.a)(Object(L.a)({},nt.a),{motionAppear:!1,leavedClassName:"".concat(h,"-content-hidden")});return c.createElement(J,Object(L.a)({openMotion:y},t,{expandIcon:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.expandIcon,r=n?n(e):c.createElement(D.a,{rotate:e.isActive?90:void 0});return Object(rt.a)(r,(function(){return{className:N()(r.props.className,"".concat(h,"-arrow"))}}))},prefixCls:h,className:v}),function(){var e=t.children;return Object(z.a)(e).map((function(t,e){var n;if(null===(n=t.props)||void 0===n?void 0:n.disabled){var r=t.key||String(e),i=t.props,a=i.disabled,o=i.collapsible,s=Object(L.a)(Object(L.a)({},Object(tt.a)(t.props,["disabled"])),{key:r,collapsible:null!==o&&void 0!==o?o:a?"disabled":void 0});return Object(rt.a)(t,s)}return t}))}())};it.Panel=function(t){var e=c.useContext(et.b).getPrefixCls,n=t.prefixCls,r=t.className,i=void 0===r?"":r,a=t.showArrow,o=void 0===a||a,s=e("collapse",n),l=N()(Object(k.a)({},"".concat(s,"-no-arrow"),!o),i);return c.createElement(J.Panel,Object(L.a)({},t,{prefixCls:s,className:l}))};var at=it,ot=n(416),st=n(182),lt=n(301),ut=n(190),ct=n(302),ft=n(25),dt=n(56),pt=n(419),ht=n(300),gt=n(438),vt=n(424),yt=n(415),mt=n(84),bt=n.n(mt),xt=n(164),_t=n.n(xt),Ot=n(116),Pt=n(157),wt=n(160),Mt=n(82),St=n(5),At={required:"${label} \u4e0d\u80fd\u4e3a\u7a7a\uff01"},Et=function(t){Object(s.a)(n,t);var e=Object(l.a)(n);function n(){var t;Object(a.a)(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0){var r=t.children.filter((function(t){return t.marketNumber}));r&&r.length>0&&(n=r.map((function(t){return _t()(t.marketNumber||0)})).reduce((function(t,e){return t.plus(e)})))}return Object(St.jsx)(Vt,{header:"".concat(t.children.length,"\u4e2a").concat(t.name,"\u8d26\u6237 ").concat(n&&!e?"(".concat(Object(Pt.a)(t.id,n,a.symbol),")"):""),children:Object(St.jsx)(lt.b,{itemLayout:"horizontal",dataSource:t.children,renderItem:function(t){var n=[];if(e)n.push("***");else if(t.marketNumber){var r=(t.positions||[]).filter((function(e){return e.currency!==t.marketCurrency}));r.length>0?(n.push(Object(St.jsx)("span",{children:r.map((function(e){return Object(Pt.a)(t.account,e.number,e.currencySymbol)}))})),n.push(Object(St.jsx)("div",{children:Object(Pt.a)(t.account,t.marketNumber,t.marketCurrencySymbol)}))):n.push(Object(St.jsx)("div",{children:Object(Pt.a)(t.account,t.marketNumber,t.marketCurrencySymbol)}))}return t.loading?n.push(Object(St.jsx)(u.a,{})):(n.push(Object(St.jsx)(ut.a,{title:"\u65b0\u589e\u4ea4\u6613",children:Object(St.jsx)(g,{onClick:function(){o(t)}},"list-more")})),n.push(Object(St.jsx)(ut.a,{title:"\u66f4\u591a\u64cd\u4f5c",children:Object(St.jsx)(m,{onClick:function(){i(t,t.currency==a.currency)}},"list-more")}))),Object(St.jsx)(lt.b.Item,{actions:n,children:Object(St.jsx)(lt.b.Item.Meta,{avatar:Object(St.jsx)(wt.a,{iconType:Object(Mt.e)(t.account)}),title:Object(St.jsxs)("div",{children:[t.endDate&&Object(St.jsx)(ct.a,{color:"#f50",children:"\u5df2\u5173\u95ed"}),Object(St.jsx)("span",{children:Object(Mt.f)(t.account)})]}),description:Object(St.jsxs)("div",{children:[t.startDate,t.endDate?"~"+t.endDate:"","\xa0",t.currency||"",t.price&&Object(St.jsx)(ut.a,{title:t.priceDate,children:Object(St.jsxs)("span",{children:["\u2248",t.price]})})]})})})}})},t.id)}))})})})},Ht=function(t){Object(s.a)(n,t);var e=Object(l.a)(n);function n(){var t;Object(a.a)(this,n);for(var o=arguments.length,s=new Array(o),l=0;l